/* ————————————————————————————————————————————
   做了么 · zuoleme.app
   夜色奢华 —— 深夜蓝 × 鎏金细线 × 宋体大字阶
   零外链：无 CDN 字体、无外部脚本（国内可直连）
   ———————————————————————————————————————————— */

:root {
  --ink: #101018;           /* 页面底色 */
  --ink-soft: #16162200;
  --surface: rgba(35, 35, 64, 0.38);
  --line: rgba(240, 237, 232, 0.08);
  --line-strong: rgba(240, 237, 232, 0.16);
  --gold: #c9a96e;
  --gold-bright: #e6cd9a;
  --gold-line: rgba(201, 169, 110, 0.32);
  --gold-faint: rgba(201, 169, 110, 0.12);
  --purple: #6b4c9a;
  --purple-bright: #a488d4;
  --text: #f0ede8;
  --text-dim: #a8a3b5;
  --text-faint: #6f6a80;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(107, 76, 154, 0.55); color: var(--text); }

a { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-bright); }

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

.wrap {
  width: min(1120px, calc(100% - clamp(40px, 8vw, 96px)));
  margin: 0 auto;
}

/* ——— 鎏金细线(渐隐式分隔) ——— */
.hairline {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* ——— 顶部导航 ——— */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(16, 16, 24, 0.66);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px; letter-spacing: 0.08em; font-weight: 600;
}
.brand-sub {
  font-size: 10px; letter-spacing: 0.34em; color: var(--text-faint);
  text-transform: uppercase; margin-left: 2px;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 34px); font-size: 13.5px; letter-spacing: 0.06em; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--gold-bright); }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(88px, 14vh, 150px) 0 clamp(56px, 9vh, 110px);
  isolation: isolate;
  overflow: clip;
}
/* 氛围:紫金双色辉光 + 噪点 */
.hero::before {
  content: "";
  position: absolute; inset: -30% -10%;
  background:
    radial-gradient(42% 46% at 76% 34%, rgba(107, 76, 154, 0.30), transparent 68%),
    radial-gradient(30% 34% at 22% 74%, rgba(201, 169, 110, 0.09), transparent 70%),
    radial-gradient(20% 22% at 60% 90%, rgba(107, 76, 154, 0.14), transparent 70%);
  z-index: -2; pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  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.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.94 0 0 0 0 0.93 0 0 0 0 0.91 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* 星点 */
.stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(240,237,232,0.5), transparent 100%),
    radial-gradient(1px 1px at 34% 12%, rgba(240,237,232,0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 8%, rgba(201,169,110,0.5), transparent 100%),
    radial-gradient(1px 1px at 82% 18%, rgba(240,237,232,0.4), transparent 100%),
    radial-gradient(1px 1px at 90% 42%, rgba(164,136,212,0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(240,237,232,0.28), transparent 100%),
    radial-gradient(1px 1px at 8% 64%, rgba(201,169,110,0.4), transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: 0.42em; color: var(--gold);
  margin-bottom: clamp(22px, 4vh, 36px);
  text-transform: uppercase;
}
.kicker::before { content: ""; height: 1px; width: 44px; background: var(--gold-line); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-bright) 50%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lede {
  margin-top: clamp(20px, 3.5vh, 30px);
  max-width: 33em;
  color: var(--text-dim);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: clamp(30px, 5vh, 48px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px;
  font-size: 15px; letter-spacing: 0.05em; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #b08f56);
  color: #191322;
  box-shadow: 0 10px 32px rgba(201, 169, 110, 0.22), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
  color: #191322;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(201, 169, 110, 0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  border-color: var(--line-strong); color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-bright); }
.cta-note { margin-top: 16px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-faint); }

/* Hero 月标 */
.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark img {
  width: clamp(180px, 24vw, 300px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 26.5%;
  box-shadow:
    0 0 0 1px rgba(240, 237, 232, 0.09),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(107, 76, 154, 0.35);
  animation: moonFloat 7s ease-in-out infinite;
}
.hero-mark::before {
  content: "";
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--gold-faint);
  animation: haloSpin 26s linear infinite;
  mask: linear-gradient(140deg, #000 20%, transparent 65%);
  -webkit-mask: linear-gradient(140deg, #000 20%, transparent 65%);
}
@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

/* 入场动画(逐级上浮) */
.reveal {
  opacity: 0; transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.44s; }
.reveal.d5 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* 滚动进场(配合内联 IntersectionObserver) */
.watch { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.watch.in { opacity: 1; transform: none; }

/* ——— 承诺条 ——— */
.pledge { padding: clamp(18px, 3vh, 26px) 0; }
.pledge-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(28px, 5vw, 64px);
  padding: clamp(20px, 3.5vh, 30px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pledge-item {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; letter-spacing: 0.14em; color: var(--text-dim);
}
.pledge-item svg { flex: none; color: var(--gold); opacity: 0.9; }

/* ——— 区块通用 ——— */
.section { padding: clamp(72px, 12vh, 130px) 0; }
.section-head { margin-bottom: clamp(40px, 7vh, 72px); max-width: 40em; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.4em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::after { content: ""; height: 1px; flex: 0 0 44px; background: var(--gold-line); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600; letter-spacing: 0.02em; line-height: 1.3;
  text-wrap: balance;
}
.section-head p { margin-top: 16px; color: var(--text-dim); }

/* ——— 编号功能列表(编辑式) ——— */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 88px);
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: clamp(26px, 4vh, 36px) 4px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.feature:hover { border-top-color: var(--gold-line); }
.feature-num {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.12em;
  color: var(--gold); opacity: 0.85;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.feature h3 {
  font-family: var(--serif); font-size: clamp(19px, 2vw, 22px);
  font-weight: 600; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.feature h3 svg { color: var(--purple-bright); opacity: 0.9; flex: none; }
.feature p { margin-top: 10px; font-size: 14.5px; color: var(--text-dim); line-height: 1.9; }

/* ——— 隐私宣言 ——— */
.manifesto {
  position: relative;
  padding: clamp(72px, 12vh, 130px) 0;
  isolation: isolate;
  overflow: clip;
}
.manifesto::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(52% 70% at 50% 42%, rgba(107, 76, 154, 0.16), transparent 72%);
}
.manifesto-inner { max-width: 46em; margin: 0 auto; text-align: center; }
.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 600; line-height: 1.5; letter-spacing: 0.02em;
  text-wrap: balance;
}
.manifesto blockquote em { font-style: normal; color: var(--gold); }
.manifesto-list {
  margin: clamp(36px, 6vh, 56px) auto 0;
  display: grid; gap: 0;
  max-width: 34em; text-align: left;
  list-style: none;
}
.manifesto-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 4px;
  font-size: 14.5px; color: var(--text-dim);
  border-top: 1px solid var(--line);
}
.manifesto-list li:last-child { border-bottom: 1px solid var(--line); }
.manifesto-list svg { flex: none; color: var(--gold); transform: translateY(2px); }
.manifesto .btn { margin-top: clamp(32px, 5vh, 44px); }

/* ——— 页脚 ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 7vh, 64px) 0 clamp(36px, 6vh, 56px);
  font-size: 13.5px; color: var(--text-faint);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; opacity: 0.9; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer a { color: var(--text-faint); }
.footer a:hover { color: var(--gold-bright); }

/* ——— 文档页(隐私政策) ——— */
.doc {
  max-width: 720px; margin: 0 auto;
  padding: clamp(64px, 10vh, 100px) clamp(20px, 5vw, 28px) clamp(88px, 14vh, 140px);
}
.doc-kicker {
  font-size: 11px; letter-spacing: 0.4em; color: var(--gold);
  margin-bottom: 20px; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.doc-kicker::after { content: ""; height: 1px; flex: 0 0 44px; background: var(--gold-line); }
.doc h1 {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 44px);
  font-weight: 600; letter-spacing: 0.02em; line-height: 1.3;
  text-wrap: balance;
}
.doc .meta {
  margin-top: 16px; font-size: 13.5px; color: var(--text-faint);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--gold-line);
}
.doc h2 {
  font-family: var(--serif); font-size: clamp(21px, 2.6vw, 25px); font-weight: 600;
  letter-spacing: 0.03em; margin: 60px 0 16px; line-height: 1.4;
}
.doc h3 { font-size: 16.5px; margin: 30px 0 10px; color: var(--gold-bright); font-weight: 600; }
.doc p { margin: 14px 0; color: #d5d1ca; }
.doc ul { margin: 14px 0 14px 1.35em; color: #d5d1ca; }
.doc li { margin: 9px 0; }
.doc li strong, .doc p strong { color: var(--text); }
.doc .callout {
  margin: 24px 0; padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--gold-faint);
  border-radius: 0 12px 12px 0;
  font-size: 14.5px; color: #d5d1ca;
}
.doc table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
  display: block; overflow-x: auto;
}
.doc th, .doc td {
  text-align: left; padding: 11px 14px;
  border: 1px solid var(--line); color: #d5d1ca; vertical-align: top;
  min-width: 120px;
}
.doc th { color: var(--text); background: rgba(35, 35, 64, 0.5); font-weight: 600; white-space: nowrap; }
.doc-footer {
  margin-top: 80px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ——— 响应式 ——— */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark img { width: clamp(96px, 18vw, 140px); }
  .hero-mark::before { display: none; }
  .features { grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 640px) {
  .nav-inner { height: 60px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-links { gap: 14px; font-size: 12.5px; letter-spacing: 0.02em; }
  .nav-links .hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .cta-row .btn { flex: 1 1 100%; }
  .pledge-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .manifesto-inner { text-align: left; }
  .manifesto-list { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .watch { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-mark img, .hero-mark::before { animation: none; }
  .btn { transition: none; }
}
