/* ============================================================
   星云盘 · 落地首页
   ============================================================ */

.landing { display: flex; flex-direction: column; min-height: 100vh; }

/* ── 顶部导航 ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  gap: 18px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16.5px; letter-spacing: -.02em;
  flex: none;              /* 品牌区固定尺寸，不参与 flex 收缩 */
  white-space: nowrap;     /* 中文永远横排，绝不被压成竖排 */
}
.brand > span { white-space: nowrap; }
.brand-logo {
  display: block; flex: none;
  border-radius: 24%;
  box-shadow: 0 6px 18px -8px rgba(109,140,255,.85);
}
.nav .brand-logo, .site-footer .brand-logo { width: 32px; height: 32px; }
.side-brand .brand-logo { width: 30px; height: 30px; }
.side-brand span, .footer-brand span { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: background .16s, color .16s;
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: clamp(14.5px, 1.5vw, 17px); color: var(--text-2); max-width: 560px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 12.5px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 32px; padding: 5px 13px 5px 8px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  width: fit-content; max-width: 100%;
}
.pill .tag { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; white-space: nowrap; }

.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 6px; }
.hero-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--muted); }

/* ── Hero 预览（模拟网盘界面） ──────────────────────────── */
.hero-visual { position: relative; }
.glow {
  position: absolute; inset: -14% 0 -18%;
  background: radial-gradient(60% 55% at 62% 38%, rgba(109,140,255,.34), transparent 70%),
              radial-gradient(50% 50% at 24% 74%, rgba(34,211,238,.26), transparent 72%);
  filter: blur(28px); z-index: 0; pointer-events: none;
}
.mock {
  position: relative; z-index: 1;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--solid);
  box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-url {
  margin-left: 10px; flex: 1; height: 22px; border-radius: 6px;
  background: var(--surface-3); display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; color: var(--muted); font-family: var(--mono);
}
.mock-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 300px; }
.mock-side { border-right: 1px solid var(--border); padding: 12px 10px; display: grid; gap: 4px; align-content: start; background: var(--surface); }
.mock-side-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: 12px; color: var(--text-2); }
.mock-side-item.active { background: var(--active); color: var(--brand); font-weight: 600; }
.mock-main { padding: 14px; display: grid; gap: 8px; align-content: start; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); font-size: 12px; }
.mock-row .bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: 1; }
.mock-row .bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; animation: fill 3.6s ease-in-out infinite; }
@keyframes fill { 0%,100% { width: 34%; } 50% { width: 88%; } }
.mock-chip { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.mock-float {
  position: absolute; z-index: 2;
  padding: 10px 14px; border-radius: 14px;
  background: var(--solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.mock-float.a { top: -18px; right: 6%; animation-delay: -2s; }
.mock-float.b { bottom: -20px; left: -2%; animation-delay: -4s; }
.mock-float .ico { color: var(--brand); }

/* ── 通用区块 ───────────────────────────────────────────── */
.section { padding: clamp(52px, 7vw, 96px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; width: 100%; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font-size: clamp(25px, 3.4vw, 38px); letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--text-2); max-width: 620px; font-size: 14.5px; line-height: 1.75; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── 功能网格 ───────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.feature {
  padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 11px;
  transition: transform .22s var(--ease), border-color .22s, background .22s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .25s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature:hover::after { opacity: 1; }
.feature > * { position: relative; z-index: 1; }
.feature .fi {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand);
  border: 1px solid rgba(109,140,255,.24);
}
.feature h3 { font-size: 15px; }
.feature p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ── 架构 ───────────────────────────────────────────────── */
.arch { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.arch-list { display: flex; flex-direction: column; gap: 14px; }
.arch-item { display: flex; gap: 14px; align-items: flex-start; }
.arch-item .num {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: var(--grad-soft); color: var(--brand); border: 1px solid rgba(109,140,255,.28);
}
.arch-item h4 { font-size: 14.5px; margin-bottom: 3px; }
.arch-item p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.arch-diagram {
  padding: 24px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 12px;
}
.arch-layer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s;
}
.arch-layer:hover { transform: translateX(4px); border-color: var(--brand); }
.arch-layer .ico { color: var(--brand); }
.arch-layer b { font-size: 13.5px; display: block; }
.arch-layer span { font-size: 12px; color: var(--muted); }
.arch-arrow { display: grid; place-items: center; color: var(--muted); }

/* ── 价格 ───────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  padding: 26px 22px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .22s var(--ease), border-color .22s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: transparent;
  background: linear-gradient(var(--solid), var(--solid)) padding-box,
              var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 60px -30px rgba(109,140,255,.9);
  position: relative;
}
.plan.featured .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { display: grid; gap: 10px; font-size: 13px; color: var(--text-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ico { color: var(--success); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-size: 14px; font-weight: 600; text-align: left;
}
.faq-q .ico { margin-left: auto; color: var(--muted); transition: transform .22s var(--ease); }
.faq-item.open .faq-q .ico { transform: rotate(180deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 18px 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

/* ── CTA ────────────────────────────────────────────────── */
.cta {
  margin: 0 auto clamp(40px, 6vw, 72px);
  max-width: 1180px; width: calc(100% - clamp(32px, 8vw, 96px));
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(109,140,255,.16), rgba(34,211,238,.13));
  border: 1px solid rgba(109,140,255,.28);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cta h2 { font-size: clamp(23px, 3vw, 33px); letter-spacing: -.03em; }
.cta p { color: var(--text-2); max-width: 540px; }

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .nav-actions { margin-left: 0; gap: 6px; flex: none; }
  .nav-auth { gap: 6px; }
}

/* 小屏：按钮只留图标，保证导航不溢出 */
@media (max-width: 640px) {
  .nav-auth .btn { width: 38px; padding: 0; justify-content: center; }
  .nav-auth .btn-text { display: none; }
  .nav { padding: 0 14px; }
}
@media (max-width: 620px) {
  .mock-body { grid-template-columns: 96px minmax(0, 1fr); min-height: 240px; }
  .hero-stats { gap: 18px; }
  .hero-stat b { font-size: 18px; }
  .mock-float { display: none; }
}
