/* 发呆证道 · Doze Dao Studio —— 全站共用样式
   颜色取自主菜单那套夜色油画：深靛的天 · 云海的冷白 · 标题字的金和「录」字的朱 */
:root {
  --night: #0b1120;
  --night-2: #111a2e;
  --night-3: #18233b;
  --line: rgba(217, 178, 99, 0.22);
  --ink: #e8e3d6;
  --ink-dim: #b9b4a6;
  --gold: #d9b263;
  --gold-hi: #f0d28c;
  --cinnabar: #c8452e;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ── 顶栏 ─────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em;
}
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand small { color: var(--ink-dim); font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; }
.top nav { display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--ink-dim); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ── 首屏 ─────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 40%;
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,17,32,.86) 0%, rgba(11,17,32,.55) 38%, rgba(11,17,32,0) 66%),
    linear-gradient(0deg, var(--night) 0%, rgba(11,17,32,0) 28%);
}
.hero-inner { padding: 120px 0 96px; max-width: 560px; }
.logo {
  width: min(520px, 100%); height: auto;
  /* 尾巴末端那几块方格的边在暗底上会露 ⇒ 右端淡出 */
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 99%);
          mask-image: linear-gradient(90deg, #000 88%, transparent 99%);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.5));
}
.tagline {
  margin: 22px 0 6px;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.6;
  letter-spacing: 0.06em;
}
.sub { margin: 0 0 30px; color: var(--ink-dim); font-size: 16px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; min-height: 48px;
  border: 1px solid var(--gold); border-radius: 3px;
  background: linear-gradient(180deg, #e3bf72, #c79a45);
  color: #1b1408; text-decoration: none;
  font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 0.12em;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: #1b1408; filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] {
  background: rgba(11,17,32,.55); color: var(--gold-hi);
  cursor: default; transform: none; filter: none;
}
.cta-note { color: var(--ink-dim); font-size: 14px; }

/* ── 通用段落 ─────────────────────────── */
section { padding: 88px 0; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  color: var(--cinnabar); font-size: 13px; letter-spacing: 0.24em;
}
h2 {
  margin: 0 0 18px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.35; letter-spacing: 0.06em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
.lead { color: var(--ink-dim); max-width: 36em; }

/* 实机片段 */
.reel { padding-top: 32px; }
.reel-frame {
  position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.reel-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.reel figcaption { margin-top: 12px; color: var(--ink-dim); font-size: 14px; }

/* 图文交替的四节 */
.feature {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text p { color: var(--ink-dim); }
.feature-text p:first-of-type { color: var(--ink); }

/* 截图墙 */
.gallery-section { background: var(--night-2); border-block: 1px solid rgba(255,255,255,.04); }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 3px;
  background: none; cursor: zoom-in; overflow: hidden;
}
.gallery img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .4s ease;
}
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 8px 2px 0; color: var(--ink-dim); font-size: 13px; text-align: left; }

dialog.lightbox {
  width: min(1600px, 96vw); max-height: 94vh; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; background: #05080f; color: var(--ink);
}
dialog.lightbox::backdrop { background: rgba(3,5,10,.86); }
dialog.lightbox img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; }
dialog.lightbox p { margin: 0; padding: 10px 16px 14px; color: var(--ink-dim); font-size: 14px; }
dialog.lightbox .close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
}

/* 工作室 */
.studio .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.seal {
  width: 112px; height: 112px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.studio-name { font-family: var(--serif); letter-spacing: 0.08em; }
.studio p { color: var(--ink-dim); max-width: 38em; }

/* 页脚 */
footer {
  padding: 36px 0 48px; border-top: 1px solid rgba(255,255,255,.06);
  color: var(--ink-dim); font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-dim); }

/* ── 隐私页 ───────────────────────────── */
.doc { padding: 120px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 {
  margin: 0 0 6px; font-family: var(--serif); font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.06em; line-height: 1.3;
}
.doc .meta { color: var(--ink-dim); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; color: var(--gold); font-weight: 600; }
.doc p, .doc li { color: var(--ink-dim); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .summary {
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--night-2);
}
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }

/* ── 窄屏 ─────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .studio .wrap { grid-template-columns: 1fr; gap: 20px; }
  .seal { width: 84px; height: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .hero { min-height: 92svh; align-items: flex-end; }
  .hero picture img { object-position: 74% 50%; }
  .hero::after {
    background: linear-gradient(0deg, var(--night) 4%, rgba(11,17,32,.7) 45%, rgba(11,17,32,.1) 80%);
  }
  .hero-inner { padding: 100px 0 56px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery img { transition: none; }
}

/* 常见问题 */
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-family: var(--sans); font-size: 22px; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-dim); max-width: 44em; }
