/* 旧雨新知 官网 —— Apple 式：大留白、大字号、系统字体、单色 + 品牌紫点缀 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --brand: #7c5ce6;
  --brand-soft: #ddd6fe;
  --dark: #000000;
  --dark-2: #161617;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --radius: 28px;
  --max: 1080px;
  --nav-h: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--dark-ink);
  font-size: 12px;
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav .logo img { width: 22px; height: 22px; border-radius: 6px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { opacity: 0.82; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.nav .cta {
  opacity: 1; background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 500;
}

/* 通用 section */
section { padding: 120px 0; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 17px; letter-spacing: 0.01em; margin: 0 0 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.08; }
.lead { font-size: clamp(19px, 2.2vw, 26px); color: var(--ink-2); font-weight: 400; margin: 20px 0 0; max-width: 32em; line-height: 1.35; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 96px 0 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 230, 0.45), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; text-align: center; }
.hero .icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 20px 60px rgba(124, 92, 230, 0.35); }
.hero h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 700; line-height: 1; }
.hero .lead { color: var(--dark-ink-2); margin: 22px auto 0; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 17px; font-weight: 500;
  background: var(--brand); color: #fff; transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: #6b4bd6; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--dark-ink); border: 1px solid rgba(255, 255, 255, 0.28); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.hero .stage {
  margin: 64px auto 0; width: min(1000px, 100%);
  display: flex; justify-content: center; align-items: flex-end; gap: 24px;
  transform: translateY(1px);
}
.hero .stage img {
  border-radius: 38px 38px 0 0; border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: none;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.5);
}
.hero .stage .phone { width: 280px; }
.hero .stage .pad { width: 680px; border-radius: 22px 22px 0 0; }

/* 亮点 */
.features .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px;
}
.card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 40px 36px 36px;
  display: flex; flex-direction: column; gap: 14px; min-height: 260px;
}
.card .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.card .glyph svg { width: 24px; height: 24px; }
.card h3 { font-size: 24px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 40px; padding: 48px; }
.card.wide .text { flex: 1; }
.card.wide img { height: 540px; width: auto; flex: none; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }

/* 截图长廊 */
.gallery { background: var(--dark); color: var(--dark-ink); }
.gallery .lead { color: var(--dark-ink-2); }
.gallery .rail {
  display: flex; gap: 24px; margin-top: 64px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 22px 32px;
  scrollbar-width: none;
}
.gallery .rail::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: center; }
.gallery figure img { border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.gallery figcaption { text-align: center; margin-top: 16px; font-size: 15px; color: var(--dark-ink-2); }

/* 多端 */
.devices .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.devices .card { min-height: 0; padding: 32px; }
.devices .card h3 { font-size: 21px; }

/* 下载 */
.download { background: var(--bg-alt); }
.download .stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.store {
  display: grid; grid-template-columns: 30px 145px; align-items: center; justify-content: center; column-gap: 12px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; min-width: 230px;
  text-align: left; line-height: 1.15; transition: transform 0.2s;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 30px; height: 30px; fill: currentColor; }
.store span { min-width: 0; }
.store small { display: block; font-size: 11px; opacity: 0.75; }
.store b { font-size: 19px; font-weight: 600; }
.store.soon { background: #d2d2d7; color: var(--ink); cursor: default; }
.store.soon:hover { transform: none; }
.download .note { color: var(--ink-3); font-size: 14px; margin-top: 20px; }

/* 品牌 + 联系 */
.about .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.about p { font-size: 19px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }
.about .apps { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.about .apps li { background: var(--bg-alt); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--ink); }
.about .apps li a { color: var(--brand); font-weight: 500; }
.contact { background: var(--bg-alt); border-radius: var(--radius); padding: 40px 36px; }
.contact h3 { font-size: 24px; margin-bottom: 20px; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; font-size: 17px; }
.contact dt { color: var(--ink-3); }
.contact dd { margin: 0; }
.contact dd a { color: var(--brand); }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--ink-3); background: var(--bg-alt); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .beian img { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* 文档页（隐私政策） */
.doc { padding: 72px 0 120px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; margin-bottom: 8px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; font-weight: 600; margin: 48px 0 14px; line-height: 1.3; }
.doc h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; color: var(--ink); line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.doc th { color: var(--ink-3); font-weight: 500; }
.doc .toc { background: var(--bg-alt); border-radius: 20px; padding: 22px 28px; margin: 0 0 24px; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.doc .toc li { font-size: 15px; margin: 3px 0; }
.doc .toc a { color: var(--brand); }
.doc .todo { background: #fff4e5; color: #9a5b00; border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.doc a { color: var(--brand); }
.doc .back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--brand); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero .stage .pad { width: 520px; }
}
@media (max-width: 820px) {
  section { padding: 84px 0; }
  .hero { padding-top: 72px; }
  .hero .stage { gap: 16px; }
  .hero .stage .pad { display: none; }
  .hero .stage .phone { width: min(300px, 72vw); }
  .features .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 28px; padding: 36px 28px; }
  .card.wide img { height: 460px; width: auto; margin: 0 auto; }
  .devices .grid { grid-template-columns: 1fr; }
  .about .cols { grid-template-columns: 1fr; gap: 32px; }
  .nav ul li.hide-sm { display: none; }
  .gallery figure { width: 220px; }
  .doc .toc ol { columns: 1; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .card { padding: 30px 24px; min-height: 0; }
  .card h3 { font-size: 21px; }
  .btn { width: 100%; justify-content: center; }
  .store { width: 100%; justify-content: center; }
  .contact { padding: 30px 24px; }
  .contact dl { grid-template-columns: 1fr; gap: 4px; }
  .contact dt { margin-top: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store { transition: none; }
}
