/* ==========================================================================
   DeskPan 官网落地页样式
   取法 WenzFlow：白底、大留白、编号分段、1px 细边、单一蓝色强调、克制的圆角
   与控制台的 static/css/app.css 相互独立，互不影响
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-sunken: #f1f4f8;
  --border: #e9ecf1;
  --border-strong: #dbe0e8;
  --text: #10141b;
  --text-2: #525c6b;
  --text-3: #8f98a6;
  --brand: #2f6bf6;
  --brand-hover: #2459d4;
  --brand-soft: #edf2ff;
  --success: #16a34a;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1140px;
  --nav-h: 64px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4a80f8, #2459d4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px -6px rgba(47, 107, 246, 0.8);
}

.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -0.02em; }

.nav { display: flex; gap: 26px; margin-left: 18px; }
.nav a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); font-weight: 600; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 顶栏已登录账号入口 ---------- */
.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  /* 头像 + 用户名/邮箱 + 「账号中心」标签，宽度留够避免用户名被截断得太早 */
  max-width: 320px;
  padding: 4px 4px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.nav-user:hover {
  background: var(--bg-soft);
  border-color: var(--border);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
}

.nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.nav-user-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-email {
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 「账号中心」标识：明确这块点进去是账号中心，而不是退出登录 */
.nav-user-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--brand-soft);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-user-tag i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  margin-top: -1px;
}

.nav-user:hover .nav-user-tag {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  border-color: #c9d3e2;
  background: #fbfcfe;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(47, 107, 246, 0.9);
}
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-sunken); border-color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 92px; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -220px -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(58% 58% at 28% 22%, rgba(47, 107, 246, 0.13), transparent 70%),
    radial-gradient(46% 46% at 82% 0%, rgba(124, 92, 255, 0.10), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  margin: 16px 0 6px;
}

.lede {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-2);
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: 12px; color: var(--text-3); }

/* ---------- 首屏打字效果 ---------- */
.typed-line {
  display: flex;
  align-items: center;
  min-height: 1.8em;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--text);
}

.typed-text { white-space: pre; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.02em;
  margin-left: 3px;
  border-radius: 1px;
  background: var(--brand);
  animation: caret-blink 1.06s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 屏幕阅读器专用：给出完整静态描述，避免逐字播报 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 首屏产品截图 ---------- */
/* 直接放客户端真实界面：截图自带窗口边界，这里只补外框与投影，
   不额外造一圈假标题栏，避免和截图里的窗口 chrome 叠成两层。 */
.hero-shot {
  margin: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 80px -48px rgba(16, 24, 40, 0.5),
    0 1px 2px rgba(16, 24, 40, 0.04);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* 小标签（下载页的「已发布 / 暂无」也用它） */
.tag {
  justify-self: start;
  font-size: 10.5px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text-3);
}
.tag.ok { background: #e9f8ef; color: var(--success); }
.tag.warn { background: #fff6e6; color: #b57a18; }

/* ---------- 平台支持面板 ---------- */
.provider-section { border-top: none; padding-top: 0; padding-bottom: 88px; }

.provider-panel {
  position: relative;
  padding: 34px 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
  overflow: hidden;
}
/* 顶部一条极淡的品牌色光带，避免整块面板显得平 */
.provider-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.35;
}

.provider-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--border-strong);
}
.provider-panel-kicker {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.provider-panel-title h3 {
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}
.provider-panel-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.provider-panel-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.provider-panel-stats b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.provider-panel-stats .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* 宽屏一行放下全部平台（目前 5 个），窄屏自动回落 */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.provider-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 15px 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.provider-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -28px rgba(16, 24, 40, 0.6);
  transform: translateY(-1px);
}

.provider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  /* 官方图标自带底色（夸克蓝圆、123 蓝方块）或是透明底图形（UC 橙色图案），
     这里只能透明，不能垫底色，否则透明底图标会露出一块灰方块。 */
  background: transparent;
}
/* object-fit: contain —— 官方素材尺寸不一（32×32 / 48×48 / 299×299），
   统一按比例装进 34px 框，避免被拉伸变形。 */
.provider-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.provider-initial { font-size: 13px; font-weight: 650; color: var(--text-2); }

.provider-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.provider-name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-sub {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-tag {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.provider-tag.ok { color: #0b7a4d; background: #f1fbf5; border-color: #c8ecd8; }
.provider-tag.wait { color: var(--text-3); background: var(--bg-soft); border-color: var(--border); }

/* 待支持的平台图标去色，避免视觉上和已支持的一样「亮」 */
.provider-item.off { background: #fbfcfe; }
.provider-item.off .provider-logo { filter: grayscale(1); opacity: 0.55; }
.provider-item.off .provider-name { color: var(--text-2); }
.provider-empty { font-size: 12.5px; color: var(--text-3); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.26;
  letter-spacing: -0.026em;
  margin: 12px 0 12px;
}
.section-head p { color: var(--text-2); font-size: 14.5px; line-height: 1.78; }

/* ---------- 能力卡 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.cap-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cap-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px -30px rgba(16, 24, 40, 0.4);
  transform: translateY(-2px);
}

/* 图标块：渐变色底 + 白色描边图标；色值由下方 tone-* 提供 */
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cap-a), var(--cap-b));
  color: #fff;
  box-shadow: 0 10px 22px -16px var(--cap-b);
}
.cap-icon svg { width: 22px; height: 22px; }

.tone-violet { --cap-a: #8b5cf6; --cap-b: #6d28d9; --cap-soft: #f2ecff; }
.tone-cyan { --cap-a: #22d3ee; --cap-b: #0e93b0; --cap-soft: #e8f9fd; }
.tone-blue { --cap-a: #60a5fa; --cap-b: #2563eb; --cap-soft: #eaf2ff; }
.tone-green { --cap-a: #34d399; --cap-b: #15803d; --cap-soft: #e9f9f0; }
.tone-indigo { --cap-a: #818cf8; --cap-b: #4f46e5; --cap-soft: #edeeff; }
.tone-magenta { --cap-a: #e879f9; --cap-b: #a21caf; --cap-soft: #fbeafd; }

.cap-card h3 { font-size: 17px; margin: 20px 0 6px; }
.cap-sub { font-size: 13px; color: var(--brand); margin-bottom: 12px; }
.cap-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.78; margin-bottom: 18px; }

/* 底部分类标签：与图标同色系，margin-top:auto 让它贴到卡片底部 */
.cap-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--cap-b);
  background: var(--cap-soft);
}

.pricing-note { margin-top: 22px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 工作流 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.flow-no {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.flow-item h3 { font-size: 15px; margin: 14px 0 6px; }
.flow-item p { font-size: 13.5px; color: var(--text-2); line-height: 1.74; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 20px 44px -32px rgba(47, 107, 246, 0.6);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  padding: 0 9px;
  border-radius: 999px;
}

.price-card h3 { font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 2px; }
.price .cur { font-size: 13px; color: var(--text-2); }
.price .amount {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.price .per { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.price-desc { font-size: 12.5px; color: var(--text-3); min-height: 20px; line-height: 1.6; }
.price-card .points { margin: 2px 0 8px; }
.price-card .btn { margin-top: auto; }

/* ---------- 结尾 CTA ---------- */
.cta {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcff, #f3f7ff);
  padding: 90px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.26;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta p { color: var(--text-2); font-size: 14.5px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- 客户端下载 ---------- */
.download-hero,
.page-hero {
  position: relative;
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(52% 60% at 20% 0%, rgba(47, 107, 246, 0.11), transparent 70%),
    radial-gradient(42% 50% at 88% 10%, rgba(124, 92, 255, 0.08), transparent 72%);
}
.download-hero h1,
.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
}
.download-lede,
.page-lede { max-width: 46em; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.download-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
}
.download-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px -24px rgba(16, 20, 27, 0.35);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  white-space: nowrap;
}
.download-facts .download-fact-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--brand);
}
.download-section { padding-top: 72px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.download-card.is-empty { background: #fcfdff; }
.download-card.is-preview {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.preview-bar { padding: 10px 0; background: var(--bg-sunken); border-bottom: 1px solid var(--border); }
.preview-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.preview-bar strong { color: var(--brand); }
.preview-bar a { margin-left: auto; color: var(--brand); }
.download-card-head { display: flex; align-items: flex-start; gap: 10px; }
.download-platform { font-size: 15px; font-weight: 650; }
.download-channel { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.download-card-head .tag { margin-left: auto; flex: 0 0 auto; }
.download-version {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.download-changelog {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.download-changelog li {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.download-changelog li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
  content: "";
}
.download-sha {
  display: grid;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.download-sha code {
  overflow-wrap: anywhere;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.5;
}
.download-btn { margin-top: auto; }
.btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.download-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: center;
}
.download-empty strong { color: var(--text-2); font-size: 13.5px; }
.download-note { margin-top: 22px; font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* 下载页首屏：主下载 + 版本信息卡 */
.download-hero-inner { max-width: 840px; margin: 0 auto; text-align: center; }
.download-release-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-2);
  font-size: 12.5px;
}
.download-release-pill svg { width: 16px; height: 16px; color: var(--text-3); }
.download-release-pill .mono { color: var(--text); font-weight: 650; }

.download-hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(2.35rem, 4.6vw, 3.45rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.download-hero-copy .download-lede { max-width: 44em; margin: 0 auto; font-size: 15.5px; line-height: 1.85; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }
.download-hero-inner .download-facts { justify-content: center; }
.download-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: auto;
  min-width: 290px;
  padding: 16px 20px;
  border-radius: 16px;
  text-align: left;
}
.download-main-btn .download-main-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.download-main-btn strong { font-size: 16px; font-weight: 650; }
.download-main-btn small { font-size: 12.5px; opacity: 0.8; }
.download-main-btn .download-main-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}
.download-main-btn .download-main-ico svg { display: block; width: 24px; height: 24px; }
.download-main-btn:not(.primary) .download-main-ico { background: var(--bg-sunken); color: var(--text-2); }
.download-main-btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }


/* 版本列表：每个平台一张卡，卡内按通道分块 */
/* 安装说明：纵向列表，编号 + 标题 + 正文 */
.install-section { padding-top: 84px; }
.install-title {
  margin-bottom: 34px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
}
.install-list { display: grid; margin: 0; padding: 0; list-style: none; }
.install-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.install-item:last-child { border-bottom: 1px solid var(--border); }
.install-no { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.install-item p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.install-item strong { margin-right: 4px; color: var(--text); font-weight: 650; }

.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.version-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.version-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcff, #f7f9fd);
}
.version-count { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.channel-block { display: grid; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.channel-block:last-child { border-bottom: 0; }
.channel-block.is-preview { background: linear-gradient(180deg, var(--brand-soft), #fff); }
.channel-block.is-empty { background: #fcfdff; }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.channel-name { font-size: 13px; font-weight: 650; }
.channel-arch {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-sunken);
  color: var(--text-2);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}
.channel-note { font-size: 11.5px; color: var(--text-3); }
.channel-head .tag { margin-left: auto; }
.channel-version-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.channel-version { font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.channel-block .download-changelog { margin: 0; }
.channel-empty { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.channel-block .download-btn { margin-top: 2px; }
.channel-block .download-sha { padding-top: 2px; }

/* 四步安装说明 */
.flow-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .flow-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .download-actions { flex-direction: column; }
  .download-main-btn { width: 100%; min-width: 0; }
  .download-facts { gap: 8px; width: auto; }
  .download-facts span { padding: 5px 11px; font-size: 11.5px; }
  .version-card-head,
  .channel-block { padding-left: 16px; padding-right: 16px; }
  .channel-version { font-size: 23px; }
  .flow-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.flow-item code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg-sunken);
  color: var(--text-2);
  font-size: 0.92em;
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { font-size: 14px; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.footer-links a { color: var(--text-2); transition: color 0.16s ease; }
.footer-links a:hover { color: var(--text); }
.footer-qq { color: var(--text-2); }
.footer-qq b { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
/* 备案信息整块居中：© 行与商标声明都跟着 text-align 走 */
.footer-copy {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-icp { color: var(--text-2); }
.footer-icp:hover { color: var(--text); text-decoration: underline; }
/* 商标归属声明：用了各网盘官方图标，必须说明「仅说明兼容性、非官方合作」 */
.footer-trademark {
  margin: 8px auto 0;
  max-width: 720px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 1; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cap-card:hover { transform: none; }
  .caret { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  /* 单列后截图移到文案下方，居中并给一个更宽的展示上限 */
  .hero-shot { max-width: 640px; margin: 0 auto; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .cap-grid, .flow-grid, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .cta { padding: 64px 0; }
  .download-hero,
  .page-hero { padding: 56px 0 48px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  /* 窄屏收紧账号入口：邮箱隐藏，用户名可省略，头像与「账号中心」标识保留 */
  .nav-user { max-width: 210px; }
  .nav-user-email { display: none; }
  .nav-user-tag { height: 22px; padding: 0 7px; font-size: 10.5px; }
  .typed-line { font-size: 15.5px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  /* 窄屏：面板内信息改为单列，避免名称与状态挤在一行 */
  .provider-section { padding-bottom: 64px; }
  .provider-panel { padding: 24px 20px 20px; }
  .provider-panel-side { align-items: flex-start; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { padding: 18px; }
  .download-version { font-size: 30px; }
}
