/* ==========================================================================
   桌面歌词 · 官网样式
   设计基调：Apple 风格 —— 大字距紧、留白大、深/浅段交替、圆角与毛玻璃。
   无外部依赖（不引任何 CDN / 字体），方便离线与任意静态托管部署。
   ========================================================================== */

:root {
  /* 品牌色：与 App 默认主色一致（渐变取自封面主色提取的兜底值） */
  --brand1: #7dd3fc;
  --brand2: #c4b5fd;
  --grad: linear-gradient(135deg, var(--brand1), var(--brand2));
  --ink: #0b0d14;

  /* 深色面 */
  --d-bg: #000;
  --d-bg2: #0a0a0c;
  --d-surface: rgba(255, 255, 255, .045);
  --d-surface-2: rgba(255, 255, 255, .075);
  --d-line: rgba(255, 255, 255, .10);
  --d-line-2: rgba(255, 255, 255, .18);
  --d-text: #f5f5f7;
  --d-dim: #a1a1a6;
  --d-dim2: #6e6e73;

  /* 浅色面 */
  --l-bg: #f5f5f7;
  --l-bg2: #ffffff;
  --l-surface: rgba(0, 0, 0, .028);
  --l-line: rgba(0, 0, 0, .085);
  --l-text: #1d1d1f;
  --l-dim: #6e6e73;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --maxw: 1120px;
  --ease: cubic-bezier(.22, .68, .24, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
               "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- 版式 ---------- */

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.08; }

h1 { font-size: clamp(38px, 6.6vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.012em; line-height: 1.3; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--d-dim); margin: 20px 0 0; }
.sec--light .lead { color: var(--l-dim); }

.small { font-size: 14px; color: var(--d-dim2); }
.sec--light .small { color: var(--l-dim); }

/* 隐私政策里的说明表格：窄屏不许把整页撑出横向滚动条。
   英文页列里有长文件名（t2s.tsv / 下载字体 / Downloaded from…），360px 视口下
   表格最小宽度 434px，会把页面撑到 459px —— 页面本体横向滚动，正文右侧被切。
   表格自身改成可横向滚动的块，溢出留在表内，页面宽度不受影响。 */
.policy table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 区块 ---------- */

.sec { position: relative; padding: clamp(72px, 11vw, 148px) 0; }
.sec--dark { background: var(--d-bg); color: var(--d-text); }
.sec--dark2 { background: var(--d-bg2); color: var(--d-text); }
.sec--light { background: var(--l-bg); color: var(--l-text); }
.sec--light + .sec--light { border-top: 1px solid var(--l-line); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 导航 ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 12, .72);
  border-bottom: 1px solid var(--d-line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 56px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0;
         font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
/* 产品名「桌面歌词|Desktop-sing」比原来的「桌面歌词」长了近一倍，窄屏（≤390px）
   会被挤成两三行 —— 宁可省略号也不能换行：换行会把 56px 的导航栏撑高，
   观感也垮。min-width:0 是让 flex 项能被压下去、省略号才生效的前提。 */
.brand span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--d-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--d-text); }

.nav-cta {
  font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 980px;
  background: var(--grad); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(125, 211, 252, .3); }

@media (max-width: 720px) { .nav-links { display: none; } }
/* 小屏（360/375 这类）上品牌 + 右侧按钮本就紧张，英文页按钮写着「Download」更宽：
   收一收字号与间距，让完整产品名尽量不被省略号截掉。320px 才轮到省略号兜底。 */
@media (max-width: 430px) {
  .nav .wrap { gap: 14px; }
  .brand { font-size: 14px; }
  .nav-cta { padding: 7px 12px; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s;
  will-change: transform;
}
.btn--primary { background: var(--grad); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(125, 211, 252, .32); }
.btn--ghost { color: var(--d-text); border: 1px solid var(--d-line-2); }
.btn--ghost:hover { background: var(--d-surface-2); }
.sec--light .btn--ghost { color: var(--l-text); border-color: rgba(0, 0, 0, .16); }
.sec--light .btn--ghost:hover { background: rgba(0, 0, 0, .05); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.sec-head.center .btn-row { justify-content: center; }

/* ---------- 首屏 ---------- */

.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -30%; height: 90%;
  background:
    radial-gradient(46% 52% at 42% 30%, rgba(125, 211, 252, .22), transparent 68%),
    radial-gradient(42% 48% at 68% 12%, rgba(196, 181, 253, .18), transparent 70%);
  filter: blur(18px); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-text { max-width: 820px; }
.hero h1 { margin-top: 4px; }
.hero .lead { max-width: 640px; }

.hero-shot { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-shot::after {
  content: ""; position: absolute; inset: 12% 8% -6%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(196, 181, 253, .26), transparent 72%);
  filter: blur(40px); z-index: 0; pointer-events: none;
}
.hero-shot .shot { position: relative; z-index: 1; }

/* ---------- 截图外框 ---------- */

.shot {
  border-radius: var(--r-lg);
  border: 1px solid var(--d-line);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.shot img { width: 100%; height: auto; }
.sec--light .shot { border-color: var(--l-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .13); background: #fff; }

/* ---------- 特性三栏 ---------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

.card {
  padding: 30px 28px 32px; border-radius: var(--r-lg);
  background: var(--d-surface); border: 1px solid var(--d-line);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); background: var(--d-surface-2); border-color: var(--d-line-2); }
.sec--light .card { background: #fff; border-color: var(--l-line); }
.sec--light .card:hover { background: #fff; border-color: rgba(0, 0, 0, .16); }

.card p { margin: 12px 0 0; font-size: 15.5px; color: var(--d-dim); }
.sec--light .card p { color: var(--l-dim); }

.ico {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad); color: var(--ink);
}
.ico svg { width: 24px; height: 24px; }

/* ---------- 样式画廊（横向滚动） ---------- */

.gallery {
  display: flex; gap: 22px; overflow-x: auto; padding: 6px 24px 30px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > figure {
  flex: 0 0 auto; width: min(78vw, 520px); margin: 0; scroll-snap-align: center;
}
.gallery figcaption { margin-top: 16px; font-size: 15px; color: var(--d-dim); text-align: center; }
.gallery figcaption b { color: var(--d-text); font-weight: 600; }

.hint-swipe { text-align: center; font-size: 13px; color: var(--d-dim2); }

/* ---------- 标签 ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li {
  padding: 8px 16px; border-radius: 980px; font-size: 14px;
  background: var(--d-surface); border: 1px solid var(--d-line); color: var(--d-dim);
}
.sec--light .chips li { background: rgba(0, 0, 0, .04); border-color: var(--l-line); color: var(--l-dim); }

/* ---------- 双栏（图文） ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 15.5px; color: var(--d-dim); }
.sec--light .ticks li { color: var(--l-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 9px; border-left: 2px solid var(--brand1); border-bottom: 2px solid var(--brand1);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks li b { color: var(--d-text); font-weight: 600; }
.sec--light .ticks li b { color: var(--l-text); }

/* 面板是竖长条，窄一些更好看 */
.split--panel { grid-template-columns: 1.05fr .72fr; }
@media (max-width: 900px) { .split--panel { grid-template-columns: 1fr; } }

/* ---------- 屏保 2×2 ---------- */

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .grid2 { grid-template-columns: 1fr; } }
.grid2 figure { margin: 0; }
.grid2 figcaption { margin-top: 14px; font-size: 15px; color: var(--d-dim); }
.grid2 figcaption b { color: var(--d-text); font-weight: 600; }

/* ---------- 数据条 ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 26px 24px; border-radius: var(--r-md); background: var(--d-surface); border: 1px solid var(--d-line); }
.stat .n { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .t { margin-top: 8px; font-size: 14px; color: var(--d-dim); }
.stat .o { margin-top: 4px; font-size: 12.5px; color: var(--d-dim2); }

/* ---------- 下载 ---------- */

.dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }.dl {
  display: flex; flex-direction: column; gap: 6px;
  padding: 32px 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--l-line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.dl:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); border-color: rgba(0, 0, 0, .18); }
.dl .k { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--l-dim); }
.dl .v { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.dl .v svg { width: 24px; height: 24px; flex: 0 0 auto; }
.dl .d { font-size: 14.5px; color: var(--l-dim); }
.dl .go { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #0a84ff; }
.dl .go::after { content: "›"; font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.dl:hover .go::after { transform: translateX(3px); }
/* 主推渠道用淡品牌色底 + 品牌色描边做区分。
   注意别写 grid-column: 1/-1 —— 那只让第一张卡片占满整行，第二张会孤零零
   留在下一行的左半格，看起来像排版坏了。两张等宽并排，靠配色区分主次。 */
.dl--main { background: linear-gradient(135deg, rgba(125, 211, 252, .1), rgba(196, 181, 253, .12)); border-color: rgba(125, 211, 252, .34); }

.dl-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; color: var(--l-dim); }
.dl-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dl-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand1); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--d-line); }
.faq details { border-bottom: 1px solid var(--d-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--d-dim2); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 40px 26px 0; color: var(--d-dim); font-size: 15.5px; }
.faq .a code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px;
  background: var(--d-surface-2); padding: 2px 7px; border-radius: 6px;
}

/* ---------- 页脚 ---------- */

.foot { background: var(--d-bg2); border-top: 1px solid var(--d-line); padding: 56px 0 48px; font-size: 14px; color: var(--d-dim2); }
.foot .row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.foot a:hover { color: var(--d-text); }
.foot .rules { margin-top: 26px; line-height: 1.7; max-width: 720px; }

/* ---------- 滚动入场动画（渐进增强） ----------
   默认是**可见**的：禁用 JS、或 assets/main.js 没随文件一起部署时，
   页面照常完整显示，绝不会出现"整站空白"。
   只有 <html class="js"> 存在时才切到"先隐藏、滚动到就入场"。
   js 类由 index.html <head> 里的内联脚本同步加上（早于首次绘制，不闪）。
   万一 main.js 加载失败，那个内联脚本会在 2.5s 后补一个 reveal-all 兜底。 */

.reveal { opacity: 1; transform: none; }

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js.reveal-all .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 这里必须带 .js 前缀，否则特异性低于上面的 .js .reveal，关不掉动画 */
  html.js .reveal { opacity: 1; transform: none; }
  html.js .reveal.in { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
