/* ============================================================
   Arvo Program Site —— 苹果风格独立程序官网样式
   支持浅色 / 深色主题：html[data-theme="light"|"dark"]
   ============================================================ */

/* ---------- 主题令牌 ---------- */
:root {
  --ps-radius-lg: 28px;
  --ps-radius-md: 20px;
  --ps-radius-sm: 12px;
  --ps-max-width: 1120px;
  --ps-header-height: 52px;
  --ps-ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --ps-bg: #ffffff;
  --ps-bg-soft: #f5f5f7;
  --ps-bg-deep: #020a22;
  --ps-surface: #ffffff;
  --ps-text: #1d1d1f;
  --ps-text-secondary: #6e6e73;
  --ps-line: rgba(0, 0, 0, 0.08);
  --ps-line-strong: rgba(0, 0, 0, 0.16);
  --ps-header-bg: rgba(255, 255, 255, 0.72);
  --ps-hero-glow: color-mix(in srgb, var(--product-accent, #8b73ff) 9%, transparent);
  --ps-hero-video-opacity: 0.13;
  --ps-shot-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.1);
  --ps-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --ps-hero-card-shadow: 0 40px 100px -20px rgba(2, 10, 34, 0.16), 0 2px 10px rgba(2, 10, 34, 0.04);
  --ps-pill-bg: rgba(0, 0, 0, 0.045);
  --ps-pill-bg-hover: rgba(0, 0, 0, 0.09);
  --ps-nav-capsule-bg: rgba(255, 255, 255, 0.62);
  --ps-nav-capsule-border: rgba(0, 0, 0, 0.09);
  --ps-nav-capsule-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  --ps-notebook-paper: #fbfaf7;
  --ps-notebook-line: rgba(93, 124, 209, 0.16);
  --ps-notebook-margin: rgba(233, 96, 96, 0.28);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ps-bg: #020a22;
  --ps-bg-soft: #071230;
  --ps-bg-deep: #020a22;
  --ps-surface: #0b1836;
  --ps-text: #f2f5ff;
  --ps-text-secondary: #9aa7c7;
  --ps-line: rgba(148, 170, 255, 0.14);
  --ps-line-strong: rgba(148, 170, 255, 0.28);
  --ps-header-bg: rgba(5, 13, 38, 0.72);
  --ps-hero-glow: color-mix(in srgb, var(--product-accent, #8b73ff) 20%, transparent);
  --ps-hero-video-opacity: 0.2;
  --ps-shot-shadow: 0 32px 80px rgba(0, 2, 12, 0.6), 0 0 0 1px rgba(148, 170, 255, 0.08);
  --ps-card-shadow: 0 1px 2px rgba(0, 2, 12, 0.4), 0 10px 28px rgba(0, 2, 12, 0.34);
  --ps-hero-card-shadow: 0 48px 120px -24px rgba(0, 2, 12, 0.7), 0 0 0 1px rgba(148, 170, 255, 0.05) inset;
  --ps-pill-bg: rgba(148, 170, 255, 0.09);
  --ps-pill-bg-hover: rgba(148, 170, 255, 0.18);
  --ps-nav-capsule-bg: rgba(13, 24, 56, 0.58);
  --ps-nav-capsule-border: rgba(148, 170, 255, 0.2);
  --ps-nav-capsule-shadow: 0 14px 36px rgba(0, 2, 12, 0.55), 0 0 0 1px rgba(148, 170, 255, 0.04) inset;
  --ps-notebook-paper: #0b1633;
  --ps-notebook-line: rgba(148, 163, 255, 0.12);
  --ps-notebook-margin: rgba(255, 122, 122, 0.24);
}

/* ---------- 基础 ---------- */
/* 隐藏页面级滚动条的视觉呈现，保留滚动能力 */
html:has(body.program-site) { scrollbar-width: none; }
html:has(body.program-site)::-webkit-scrollbar { width: 0; height: 0; display: none; }

.program-site {
  margin: 0;
  background: var(--ps-bg);
  color: var(--ps-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ps-ease), color 0.35s var(--ps-ease);
}

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

.program-site img { max-width: 100%; display: block; }

.program-site a { color: inherit; text-decoration: none; }

.program-site .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ps-container { width: min(var(--ps-max-width), calc(100% - 48px)); margin-inline: auto; }

.program-site main [id] { scroll-margin-top: 104px; }

.ps-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--program-accent, #8b73ff);
  margin-bottom: 14px;
}

/* ---------- 顶部导航（悬浮胶囊毛玻璃） ---------- */
.ps-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.ps-header-inner {
  pointer-events: auto;
  height: var(--ps-header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 12px 0 20px;
  border-radius: 999px;
  background: var(--ps-nav-capsule-bg);
  border: 1px solid var(--ps-nav-capsule-border);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--ps-nav-capsule-shadow);
  transition: background-color 0.35s var(--ps-ease), border-color 0.35s var(--ps-ease), box-shadow 0.35s var(--ps-ease);
}

.ps-header.scrolled .ps-header-inner { background: var(--ps-header-bg); }

.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ps-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.ps-nav {
  display: flex;
  align-items: center;
  /* 导航项间距放宽，避免胶囊内条目挨得过近显得拥挤 */
  gap: 8px;
  margin-left: auto;
}

.ps-nav a {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  /* 全局要求：导航文字禁止双行显示，始终单行 */
  white-space: nowrap;
  /* 导航项字体统一：同一字重与字距，避免描边胶囊与普通链接视觉不一致 */
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ps-text-secondary);
  transition: color 0.2s var(--ps-ease), background-color 0.2s var(--ps-ease);
}

.ps-nav a:hover, .ps-nav a:focus-visible { color: var(--ps-text); background: var(--ps-pill-bg); }

.ps-nav a.ps-nav-download {
  color: #fff;
  background: var(--program-accent, #8b73ff);
}

.ps-nav a.ps-nav-download:hover { filter: brightness(1.08); }

/* 注册 / 登录账户入口：描边胶囊，与下载主按钮区分 */
.ps-nav a.ps-nav-account {
  border: 1px solid var(--ps-line);
  color: var(--ps-text);
}

/* 后台管理 / 资产中心控制台入口：与账户入口同款描边胶囊 */
.ps-nav a.ps-nav-console {
  border: 1px solid var(--ps-line);
  color: var(--ps-text);
}

.ps-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ps-line);
  background: transparent;
  color: var(--ps-text);
  cursor: pointer;
  transition: background-color 0.2s var(--ps-ease), border-color 0.2s var(--ps-ease), transform 0.2s var(--ps-ease);
}

.ps-theme-toggle:hover { background: var(--ps-pill-bg); transform: scale(1.06); }
.ps-theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-theme-toggle .ps-icon-sun { display: none; }
html[data-theme="dark"] .ps-theme-toggle .ps-icon-sun { display: block; }
html[data-theme="dark"] .ps-theme-toggle .ps-icon-moon { display: none; }

/* 全站统一深蓝主题：浅深切换入口停用并隐藏，固定深蓝显示，避免白色界面冲突 */
.ps-theme-toggle { display: none; }

/* ---------- Hero：圆角舞台卡 + 环境视频 + 悬浮坞 ---------- */
.ps-hero {
  padding: 52px 0 76px;
  background:
    radial-gradient(ellipse 72% 42% at 50% -6%, var(--ps-hero-glow), transparent),
    var(--ps-bg);
}

.ps-hero-card {
  position: relative;
  border-radius: 44px;
  border: 1px solid var(--ps-line);
  background:
    radial-gradient(ellipse 90% 52% at 50% -12%, var(--ps-hero-glow), transparent 68%),
    var(--ps-surface);
  box-shadow: var(--ps-hero-card-shadow);
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px);
  transition: background-color 0.35s var(--ps-ease), border-color 0.35s var(--ps-ease), box-shadow 0.35s var(--ps-ease);
}

.ps-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 92%);
}

.ps-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: var(--ps-hero-video-opacity, 0.14);
  transition: transform 1.2s var(--ps-ease);
}

.ps-hero-content { position: relative; z-index: 2; }

.ps-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  object-fit: cover;
  margin: 0 auto 30px;
  box-shadow: 0 18px 44px rgba(2, 10, 34, 0.22), 0 0 0 1px var(--ps-line);
}

.ps-hero-category {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--ps-line-strong);
  background: var(--ps-pill-bg);
  color: var(--ps-text-secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.ps-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(46px, 7.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.ps-hero-tagline {
  margin: 0 auto 16px;
  max-width: 680px;
  font-size: clamp(21px, 2.7vw, 28px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ps-text);
  text-wrap: balance;
}

.ps-hero-description {
  margin: 0 auto;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ps-text-secondary);
}

.ps-hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ps-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ps-ease), filter 0.2s var(--ps-ease), background-color 0.2s var(--ps-ease);
}

.ps-button:active { transform: scale(0.97); }

.ps-button-primary {
  background: var(--program-accent, #8b73ff);
  color: #fff;
}

.ps-button-primary:hover { filter: brightness(1.08); }

.ps-button-primary:disabled { background: var(--ps-pill-bg); color: var(--ps-text-secondary); cursor: not-allowed; filter: none; }

.ps-text-link {
  font-size: 16px;
  color: var(--program-accent, #8b73ff);
  font-weight: 500;
}

.ps-text-link:hover { text-decoration: underline; }
.ps-text-link::after { content: " ›"; }

.ps-hero-release {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ps-text-secondary);
}

/* 悬浮坞：卡内页内快速导航胶囊 */
.ps-hero-dock {
  position: relative;
  z-index: 2;
  margin: 40px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ps-nav-capsule-bg);
  border: 1px solid var(--ps-nav-capsule-border);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--ps-nav-capsule-shadow);
}

.ps-hero-dock a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ps-text-secondary);
  transition: color 0.2s var(--ps-ease), background-color 0.2s var(--ps-ease);
}

.ps-hero-dock a:hover, .ps-hero-dock a:focus-visible { color: var(--ps-text); background: var(--ps-pill-bg); }

.ps-hero-dock .ps-hero-dock-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  background: var(--program-accent, #8b73ff);
  color: #fff;
  font-weight: 500;
}

.ps-hero-dock .ps-hero-dock-cta:hover { filter: brightness(1.08); background: var(--product-accent, #8b73ff); color: #fff; }

.ps-hero-dock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ps-hero-shot {
  position: relative;
  z-index: 2;
  margin: 64px auto 0;
  width: min(980px, 100%);
}

.ps-shot-frame {
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  box-shadow: var(--ps-shot-shadow);
  border: 1px solid var(--ps-line);
  background: var(--ps-surface);
  transition: background-color 0.35s var(--ps-ease);
}

.ps-shot-frame img { width: 100%; height: auto; }

.ps-shot-caption {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ps-text-secondary);
}

/* ---------- 通用分区 ---------- */
.ps-section { padding: clamp(88px, 11vw, 138px) 0; }
.ps-section-alt { background: var(--ps-bg-soft); transition: background-color 0.35s var(--ps-ease); }

.ps-section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.ps-section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 700;
  text-wrap: balance;
}

.ps-section-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ps-text-secondary);
}

/* ---------- 功能亮点 ---------- */
.ps-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.ps-feature-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-md);
  padding: 34px 28px;
  box-shadow: var(--ps-card-shadow);
  transition: transform 0.25s var(--ps-ease), border-color 0.25s var(--ps-ease), background-color 0.35s var(--ps-ease);
}

.ps-feature-card:hover { transform: translateY(-4px); border-color: var(--ps-line-strong); }

.ps-feature-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--program-accent, #8b73ff);
  margin-bottom: 12px;
}

.ps-feature-card strong { display: block; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.ps-feature-card small { font-size: 14px; color: var(--ps-text-secondary); }

/* ---------- 截图 Showcase ---------- */
.ps-showcase { padding: clamp(88px, 11vw, 138px) 0; }
.ps-showcase:nth-of-type(even) { background: var(--ps-bg-soft); transition: background-color 0.35s var(--ps-ease); }

.ps-showcase-copy { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.ps-showcase-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.ps-showcase-copy p.ps-showcase-description {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ps-text-secondary);
}

.ps-showcase-copy p.ps-showcase-scene {
  margin: 18px 0 0;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ps-pill-bg);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ps-text-secondary);
}

.ps-showcase-shot { width: min(980px, 100%); margin: 0 auto; }

/* 笔记本风格展示区：纯净纸张底色，不再绘制横格线与页边线 */
.ps-showcase-notebook {
  position: relative;
  background: var(--ps-notebook-paper);
}

.ps-showcase-notebook::before,
.ps-showcase-notebook::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 48px));
  height: 14px;
  border-radius: 0 0 8px 8px;
  background: var(--ps-surface);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--ps-line);
  border-top: 0;
}

.ps-showcase-notebook::before { top: 0; border-radius: 0 0 8px 8px; }
.ps-showcase-notebook::after { bottom: 0; border-radius: 8px 8px 0 0; border-top: 1px solid var(--ps-line); border-bottom: 0; box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.06); }

.ps-showcase-notebook .ps-showcase-shot .ps-shot-frame {
  transform: rotate(-0.4deg);
  transition: transform 0.35s var(--ps-ease), background-color 0.35s var(--ps-ease);
}

.ps-showcase-notebook .ps-showcase-shot .ps-shot-frame:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- 界面巡览长廊：全部界面融进一条无缝滑动模块 ---------- */
.ps-tour-marquee {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ps-tour-marquee::-webkit-scrollbar { display: none; }

.ps-tour-marquee:has(.ps-tour-track.is-scrolling) { overflow: hidden; }

.ps-tour-track {
  display: flex;
  width: max-content;
  padding: 6px 24px 14px;
}

.ps-tour-track.is-scrolling { animation: ps-tour-scroll 96s linear infinite; }

.ps-tour-marquee:hover .ps-tour-track.is-scrolling,
.ps-tour-marquee:focus-within .ps-tour-track.is-scrolling { animation-play-state: paused; }

@keyframes ps-tour-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ps-tour-item {
  flex: none;
  width: min(430px, 82vw);
  margin-right: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-card-shadow);
  scroll-snap-align: center;
  transition: transform 0.25s var(--ps-ease), border-color 0.25s var(--ps-ease), background-color 0.35s var(--ps-ease);
}

.ps-tour-item:hover { transform: translateY(-4px); border-color: var(--ps-line-strong); }

.ps-tour-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ps-tour-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--program-accent, #8b73ff);
}

.ps-tour-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.ps-tour-shot { margin: 0; }

.ps-tour-shot .ps-shot-frame { border-radius: var(--ps-radius-sm); }

.ps-tour-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ps-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ps-tour-track.is-scrolling { animation: none; }
  .ps-tour-marquee { scroll-snap-type: x proximity; }
}

/* 截图下方跳转链接 */
.ps-showcase-links {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-showcase-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ps-pill-bg);
  font-size: 14px;
  color: var(--ps-text);
  transition: background-color 0.2s var(--ps-ease), color 0.2s var(--ps-ease), transform 0.2s var(--ps-ease);
}

.ps-showcase-links a:hover { background: var(--ps-pill-bg-hover); transform: translateY(-1px); }

.ps-showcase-links a.ps-link-download {
  background: var(--program-accent, #8b73ff);
  color: #fff;
  font-weight: 500;
}

.ps-showcase-links a.ps-link-download:hover { filter: brightness(1.08); }

.ps-showcase-links a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 五步流程 ---------- */
.ps-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: ps-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-steps li {
  position: relative;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--ps-card-shadow);
}

.ps-steps li strong { display: block; font-size: 16px; letter-spacing: -0.01em; }

.ps-steps li span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--program-accent, #8b73ff);
}

.ps-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  color: var(--ps-text-secondary);
  font-size: 14px;
  z-index: 1;
}

/* ---------- 下载区（苹果风格：居中大卡 + 层级排版） ---------- */
.ps-download-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--ps-hero-glow), transparent),
    var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  padding: 72px 40px;
  box-shadow: var(--ps-card-shadow);
  overflow: hidden;
}

.ps-download-panel img {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--ps-card-shadow);
}

.ps-download-info { flex: none; display: grid; gap: 6px; }
.ps-download-info strong { display: block; font-size: 28px; letter-spacing: -0.02em; }
.ps-download-info span { font-size: 15px; color: var(--ps-text-secondary); }

.ps-release-meta {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ps-pill-bg);
  font-size: 13px;
  color: var(--ps-text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ps-download-panel .ps-button { margin-top: 10px; padding: 15px 44px; font-size: 17px; box-shadow: 0 10px 28px color-mix(in srgb, var(--program-accent, #8b73ff) 34%, transparent); }

/* 多平台直下按钮：Windows 与 macOS 并列展示，窄屏自动换行 */
.ps-download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.ps-download-actions .ps-button { margin-top: 0; padding: 15px 32px; white-space: nowrap; }

.ps-download-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ps-text-secondary);
}

/* ---------- 程序矩阵（其它程序官网入口） ---------- */
.ps-family {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ps-family-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-md);
  padding: 26px;
  box-shadow: var(--ps-card-shadow);
  transition: transform 0.25s var(--ps-ease), border-color 0.25s var(--ps-ease);
}

.ps-family-card:hover { transform: translateY(-4px); border-color: var(--ps-line-strong); }
.ps-family-card[aria-current="page"] { border-color: var(--program-accent, #8b73ff); }

.ps-family-card img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.ps-family-card strong { display: block; font-size: 17px; }
.ps-family-card small { font-size: 13px; color: var(--ps-text-secondary); }
.ps-family-card b { margin-left: auto; color: var(--ps-text-secondary); font-weight: 400; }

/* ---------- 数据背书：大数字区 + 折线氛围图（复刻 reactbits Stats 8） ---------- */
.ps-stats .ps-container { position: relative; }

.ps-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.ps-stat { display: flex; flex-direction: column; gap: 10px; }

.ps-stat b {
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps-stat span { font-size: 15px; font-weight: 500; color: var(--program-accent, #8b73ff); }
.ps-stat small { font-size: 14px; line-height: 1.7; color: var(--ps-text-secondary); }

.ps-stats-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(6px, 2vw, 18px);
  width: 100%;
  height: clamp(90px, 16vw, 220px);
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- 下载行动号召：蓝图网格卡片（复刻 reactbits CTA 12） ---------- */
.ps-download-cta .ps-section-head .ps-eyebrow::before { content: "// "; color: var(--ps-line-strong); }
.ps-download-cta .ps-section-head .ps-eyebrow::after { content: " \\ \\ "; color: var(--ps-line-strong); }

.ps-download-cta .ps-download-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: color-mix(in srgb, var(--ps-surface) 72%, transparent);
  background-image:
    radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--product-accent, #8b73ff) 13%, transparent), transparent 34%),
    linear-gradient(var(--ps-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ps-line) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.ps-download-cta .ps-download-panel::before,
.ps-download-cta .ps-download-panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.ps-download-cta .ps-download-panel::before {
  top: 14px;
  left: 14px;
  border-top: 2px solid var(--ps-line-strong);
  border-left: 2px solid var(--ps-line-strong);
}

.ps-download-cta .ps-download-panel::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 2px solid var(--ps-line-strong);
  border-right: 2px solid var(--ps-line-strong);
}

.ps-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 22px;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  background: var(--ps-bg-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-family: var(--ps-mono, ui-monospace, "SF Mono", Menlo, monospace);
  color: var(--ps-text-secondary);
}

.ps-download-pill::before { content: "◆"; color: var(--program-accent, #8b73ff); font-size: 11px; }

@media (max-width: 900px) {
  .ps-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 页脚：多列站点地图 + 品牌条（复刻 reactbits Footer 11） ---------- */
.ps-footer { padding: 72px 0 44px; border-top: 1px solid var(--ps-line); color: var(--ps-text-secondary); }

.ps-footer-grid {
  display: grid;
  /* 按内容自适应列宽并整体水平居中，避免四列内容不均时被均分挤压造成拥挤 */
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 32px 72px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--ps-line);
}

.ps-footer-label {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ps-text-secondary);
}

.ps-footer-col nav { display: flex; flex-direction: column; gap: 16px; }

.ps-footer-col nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ps-text);
  transition: color 0.2s var(--ps-ease);
}

.ps-footer-col nav a:hover { color: var(--program-accent, #8b73ff); }

.ps-footer-col nav a img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
}

.ps-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 13px;
}

.ps-footer-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
}

.ps-footer-mark img { width: 24px; height: 24px; object-fit: contain; }

.ps-footer-brand strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ps-text); }
.ps-footer-brand small { color: var(--ps-text-secondary); }
.ps-footer-copy { margin-left: auto; font-size: 13px; color: var(--ps-text-secondary); }

@media (max-width: 760px) {
  .ps-footer-grid { grid-template-columns: repeat(2, max-content); justify-content: center; gap: 28px 56px; }
  .ps-footer-copy { margin-left: 0; width: 100%; }
}

/* 下载中心页脚已统一为官网排版，隐藏 app.js 注入的程序快捷入口卡片 */
.download-center-page .footer-product-hub { display: none; }

/* ---------- 入场动画 ---------- */
.ps-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ps-ease), transform 0.7s var(--ps-ease); }
.ps-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ps-reveal { opacity: 1; transform: none; transition: none; }
  .program-site, .ps-section-alt, .ps-showcase:nth-of-type(even), .ps-header { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ps-steps { grid-template-columns: repeat(2, 1fr); }
  .ps-steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 980px) {
  /* 中等宽度收窄导航条目，防止胶囊溢出 */
  .ps-nav { gap: 4px; }
  .ps-nav a { padding: 6px 11px; }
  .ps-header-inner { gap: 18px; }
}

@media (max-width: 720px) {
  .ps-section, .ps-showcase { padding: 72px 0; }
  .ps-hero { padding: 32px 0 48px; }
  .ps-hero-card { border-radius: 32px; }
  .ps-hero-dock { max-width: calc(100% - 24px); overflow-x: auto; }
  .ps-nav a:not(.ps-nav-download) { display: none; }
  .ps-header-inner { gap: 14px; padding: 0 8px 0 14px; }
  .ps-download-panel { padding: 48px 22px; }
  .ps-steps { grid-template-columns: 1fr; }
}

/* ---------- 下载悬停浮层：鼠标悬停下载按钮展示各平台最新版本 ---------- */
.ps-download-hover { position: relative; display: inline-flex; align-items: center; }

.ps-download-hover-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  min-width: 264px;
  padding: 14px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--ps-nav-capsule-border);
  border-radius: var(--ps-radius-md);
  background: var(--ps-nav-capsule-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--ps-nav-capsule-shadow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s var(--ps-ease), transform 0.24s var(--ps-ease), visibility 0.24s;
}

.ps-download-hover-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

.ps-download-hover:hover .ps-download-hover-panel,
.ps-download-hover:focus-within .ps-download-hover-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.ps-download-hover-title {
  padding: 2px 10px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ps-text-secondary);
}

.ps-download-hover-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px;
  border-radius: var(--ps-radius-sm);
  color: var(--ps-text);
  transition: background-color 0.2s var(--ps-ease);
}

.ps-download-hover-row:hover { background: var(--ps-pill-bg); }
.ps-download-hover-platform { font-size: 14px; font-weight: 600; }
.ps-download-hover-version { font-size: 13px; color: var(--program-accent, #8b73ff); }
.ps-download-hover-row small { font-size: 12px; color: var(--ps-text-secondary); }

.ps-download-hover-note {
  padding: 6px 10px 0;
  border-top: 1px solid var(--ps-line);
  font-size: 12px;
  color: var(--ps-text-secondary);
}

@media (max-width: 720px) {
  .ps-download-hover-panel { position: fixed; top: auto; bottom: 18px; left: 12px; right: 12px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-download-hover-panel { transition: none; }
}

/* ---------- 创作者之声：社会证明区块（精选引言面板 + 点评卡片网格） ---------- */
.ps-voices-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
}

.ps-voices-feature {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 36px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-card-shadow);
  transition: border-color 0.25s var(--ps-ease), background-color 0.35s var(--ps-ease);
}

.ps-voices-feature:hover { border-color: var(--ps-line-strong); }

.ps-voices-stars { display: flex; gap: 4px; color: var(--program-accent, #8b73ff); }
.ps-voices-stars svg { width: 16px; height: 16px; fill: currentColor; }

.ps-voices-feature blockquote {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}

.ps-voices-attribution { display: flex; align-items: center; gap: 14px; }

.ps-voices-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--product-accent, #8b73ff) 85%, #ffffff),
    color-mix(in srgb, var(--product-accent, #8b73ff) 58%, #04122e));
}

.ps-voices-attribution strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.ps-voices-attribution small { font-size: 13px; color: var(--ps-text-secondary); }

.ps-voices-companies { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--ps-line); }

.ps-voices-companies span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ps-text-secondary);
}

.ps-voices-companies p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ps-text-secondary);
}

.ps-voices-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ps-voices-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-card-shadow);
  transition: border-color 0.25s var(--ps-ease), transform 0.25s var(--ps-ease), background-color 0.35s var(--ps-ease);
}

.ps-voices-post:hover { border-color: var(--ps-line-strong); transform: translateY(-3px); }

.ps-voices-post-head { display: flex; align-items: center; gap: 10px; }

.ps-voices-post .ps-voices-avatar { width: 40px; height: 40px; font-size: 15px; }

.ps-voices-who strong { display: block; font-size: 14px; }
.ps-voices-who small { font-size: 12px; color: var(--ps-text-secondary); }

.ps-voices-badge {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--program-accent, #8b73ff);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-voices-post p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ps-text); }

@media (max-width: 900px) {
  .ps-voices-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ps-voices-posts { grid-template-columns: 1fr; }
}
