/* OldHue 官网共享样式 — 与 App 的「灰黑 · 咖啡」主题同源配色 */
:root {
  color-scheme: dark;
  --bg: #161513;
  --bg-soft: #1b1916;
  --surface: #232019;
  --surface-2: #2a2620;
  --ink: #f2ede6;
  --ink-2: #b4ada4;
  --ink-3: #857e76;
  --accent: #b47b4b;
  --accent-2: #d09a63;
  --accent-soft: rgba(180, 123, 75, 0.14);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 细颗粒质感层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { position: relative; z-index: 1; }

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

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 21, 19, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav__brand .wordmark { font-family: var(--serif); font-size: 19px; letter-spacing: 0.04em; }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__pill {
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 13px;
  white-space: nowrap;
}
.nav__pill:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: -180px;
  width: 900px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(180, 123, 75, 0.22) 0%, rgba(180, 123, 75, 0.07) 42%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 30px;
  border-radius: 24px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--hairline), 0 0 70px -12px rgba(180, 123, 75, 0.55);
}
.eyebrow {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1 {
  margin: 0 auto 20px;
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.hero h1 .amp { color: var(--accent); }
.hero__lede {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #17120c; }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }

/* ---------- 通用 section ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-soft); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.section__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section__head h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.section__head p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- 功能卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(180, 123, 75, 0.4); }
.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- 滤镜画廊 / 跑马灯 ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 8px 0 26px;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  width: 128px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 隐私 / 信任 ---------- */
.trust {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.trust h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.18;
}
.trust__lede { color: var(--ink-2); font-size: 17px; margin: 0 0 24px; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust__list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.trust__list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(180, 123, 75, 0.7);
}
.trust__list strong { color: var(--ink); font-weight: 600; }

/* ---------- 联系 CTA ---------- */
.cta {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: radial-gradient(120% 160% at 50% 0%, rgba(180, 123, 75, 0.12) 0%, transparent 55%), var(--surface);
}
.cta h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 36px); }
.cta p { margin: 0 0 8px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 34px 0 44px;
  margin-top: 72px;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.footer__brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; }
.footer__links a { color: var(--ink-3); }
.footer__links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- 阅读页（隐私 / 支持） ---------- */
.prose-wrap { padding: 56px 0 72px; }
.prose { max-width: 720px; }
.prose .eyebrow { margin-bottom: 18px; }
.prose h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.14;
}
.prose .date { color: var(--ink-3); font-size: 14px; margin: 0 0 40px; }
.prose h2 {
  margin: 42px 0 12px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 19px;
  font-weight: 600;
  color: var(--accent-2);
}
.prose h3 { margin: 24px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose .notice {
  margin: 34px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(180, 123, 75, 0.35);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* 支持页 FAQ 折叠 */
.faq details {
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  background: var(--surface);
  margin: 0 0 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 20px 18px; color: var(--ink-2); }
.faq .faq__body p { margin: 0 0 10px; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; }
  .nav__pill { display: none; }
  .marquee__track img { width: 104px; height: 130px; }
  .container { width: calc(100% - 40px); }
}
