/* 识台 TuneID 官网 —— 与 App 同一套深色 + 琥珀色表盘语言（AppTheme）。
   纯静态、无任何外部请求（字体、脚本、统计都不引外链），与隐私政策的承诺一致。 */

:root {
  --bg: #14161B;
  --panel: #1C1F27;
  --panel-2: #232732;
  --line: #2E333F;
  --text: #E9E7E2;
  --muted: #9AA0AD;
  --dim: #7E8595;
  --amber: #FFB340;
  --amber-dim: #C98A2E;
  --amber-soft: rgba(255, 179, 64, 0.12);
  --live: #37D3A0;
  --on-primary: #201A0E;
  --radius: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 语言切换：同一页面装中英两份，按 html[data-lang] 显示其一 */
[data-lang="zh"] [lang="en"] { display: none; }
[data-lang="en"] [lang="zh"] { display: none; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 22, 27, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 14px;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font);
  padding: 8px 14px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--amber);
  color: var(--on-primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  text-align: center;
}

/* 表盘的琥珀色辉光，作为品牌记忆点 */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -220px;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 179, 64, 0.16), transparent);
  pointer-events: none;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 26px 0 6px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero h1 .accent { color: var(--amber); }

.hero .tagline {
  margin: 0 auto 8px;
  max-width: 640px;
  font-size: clamp(17px, 2.6vw, 21px);
  color: var(--muted);
}

.hero .badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero .badges li {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 14px;
}

/* ---------- 按钮 ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--on-primary);
}

.btn-primary:hover { background: #FFC05E; }

.btn-secondary {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-soon {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--dim);
  cursor: default;
}

.btn-soon:hover { transform: none; }

.btn .pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--amber-soft);
  color: var(--amber);
}

.btn-soon .pill {
  background: rgba(126, 133, 149, 0.16);
  color: var(--dim);
}

.btn small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
}

.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }

/* ---------- 区块 ---------- */
section { padding: 56px 0; }

.section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
}

.section-sub {
  margin: 0 auto 40px;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 功能卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.shots-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

/* ---------- 下载 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-card h3 { margin: 0; font-size: 18px; }
.download-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.download-card .btn { justify-content: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.site-footer p { margin: 6px 0; }

/* ---------- 隐私政策页 ---------- */
.policy {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.policy h1 {
  font-size: clamp(26px, 4.5vw, 36px);
  margin: 18px 0 10px;
}

.policy .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 34px;
}

.policy h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.policy h3 {
  margin: 28px 0 8px;
  font-size: 16.5px;
}

.policy p, .policy li { color: var(--text); font-size: 15px; }
.policy ul, .policy ol { padding-left: 22px; }
.policy li { margin: 6px 0; }

.policy strong { color: var(--amber); font-weight: 700; }

.back-link {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots-wide { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .btn { width: 100%; justify-content: center; }
}
