/* ============================================================
   匕首心 Daggerheart 中文版 Landing Page — Design System
   深蓝近黑底色 · 希望金点缀 · 恐惧蓝辅助 · 官方封面美术
   ============================================================ */

/* ---------- 显示字体（思源宋体子集，仅标题用；缺字自动回退系统衬线） ---------- */
@font-face {
  font-family: "DH Serif Display";
  src: url("../assets/fonts/dh-serif-display.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* 底色（ink） */
  --ink-900: #0B0E14;
  --ink-800: #111725;
  --ink-700: #18202F;
  --ink-600: #232C3D;
  /* 希望 · 金 */
  --gold-500: #C79A3A;
  --gold-400: #D9B45A;
  --gold-300: #EAD08A;
  /* 恐惧 · 蓝 */
  --fear-500: #3F5D80;
  --fear-400: #5B7CA6;
  /* 文本 */
  --text-hi: #F4EFE6;
  --text-mid: #B9C0CC;
  --text-low: #8B96A8;
  /* 字体 */
  --font-display: "DH Serif Display", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-latin-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  /* 布局 */
  --container: 1200px;
  --container-narrow: 760px;
  --pad-x: clamp(1.25rem, 5vw, 2rem);
  --radius: 6px;
  /* 分隔线 */
  --gold-line: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); text-decoration: none; }
a:hover { color: var(--gold-300); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 4px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text-hi); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--text-hi); font-weight: 600; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: clamp(4rem, 9vw, 6.5rem); }
section:nth-of-type(even) { background: var(--ink-800); }

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.9rem;
}
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-head .lede { max-width: 640px; margin-inline: auto; color: var(--text-mid); }

.divider {
  width: 220px; height: 1px; border: 0;
  background: var(--gold-line);
  margin: 0 auto 1.2rem;
}

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn small { font-size: 0.72rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.05em; }
.btn--primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #1A1408;
  box-shadow: 0 2px 14px rgba(199, 154, 58, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 4px 22px rgba(199, 154, 58, 0.5); color: #1A1408; }
.btn--ghost {
  border-color: rgba(199, 154, 58, 0.45);
  color: var(--gold-300);
  background: rgba(11, 14, 20, 0.35);
}
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(199, 154, 58, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(5rem, 12vh, 8rem);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 30%;
}
.hero__mask {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0.15) 35%, rgba(11,14,20,0.82) 88%, var(--ink-900) 100%),
    linear-gradient(100deg, rgba(11,14,20,0.88) 0%, rgba(11,14,20,0.55) 38%, rgba(11,14,20,0.05) 70%);
}
.hero__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.hero__content { max-width: 560px; }
.hero__wordmark { width: min(320px, 60vw); margin-bottom: 1.6rem; }
.hero__kicker {
  font-size: 0.82rem; letter-spacing: 0.28em;
  color: var(--gold-300);
  margin-bottom: 0.5rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  letter-spacing: 0.06em;
  display: inline-block;
  max-width: 100%;
  line-height: 1.25;
  padding-block: 0.08em 0.14em;
  margin-bottom: 0.12em;
  overflow: visible;
  background: linear-gradient(180deg, #FFF7E3 30%, var(--gold-300) 75%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-300);
  text-shadow: none;
}
.hero__tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-hi);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.hero__sub { color: var(--text-mid); max-width: 46ch; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__corner {
  position: absolute; width: clamp(90px, 12vw, 160px); opacity: 0.85; pointer-events: none; z-index: 1;
}
.hero__corner--tl { top: 18px; left: 18px; }
.hero__corner--br { right: 18px; bottom: 18px; transform: rotate(180deg); }

/* ---------- 众筹状态条 ---------- */
.status {
  padding-block: 0;
  background: var(--ink-800);
  border-block: 1px solid rgba(199, 154, 58, 0.28);
  position: relative;
}
.status::before, .status::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--gold-line);
}
.status::before { top: -1px; } .status::after { bottom: -1px; }
.status__grid {
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
  align-items: center; gap: 1.5rem;
  padding-block: 1.4rem;
}
.status__item { text-align: center; }
.status__label { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--text-low); display: block; margin-bottom: 0.2rem; }
.status__value { color: var(--text-hi); font-weight: 600; font-size: 1.02rem; }
.status__value .num { color: var(--gold-300); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.status__dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-400); margin-right: 0.45em;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217,180,90,0.5);} 50% { opacity: 0.55; box-shadow: 0 0 0 7px rgba(217,180,90,0);} }
.status__note { grid-column: 1 / -1; text-align: center; font-size: 0.75rem; color: var(--text-low); padding-bottom: 0.9rem; margin: 0; }

/* 倒计时（日期公布后由 content.js 激活） */
.countdown { display: flex; gap: 0.9rem; justify-content: center; }
.countdown__cell { text-align: center; min-width: 64px; padding: 0.5rem 0.4rem; background: var(--ink-700); border: 1px solid rgba(199,154,58,0.3); border-radius: var(--radius); }
.countdown__num { font-size: 1.6rem; font-weight: 700; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: 0.72rem; color: var(--text-low); }

/* ---------- What is ---------- */
.whatis__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.whatis__art { position: relative; }
.whatis__art img {
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(199,154,58,0.25);
  transform: rotate(1.5deg);
}
.badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.badge {
  flex: 1 1 150px;
  background: var(--ink-700);
  border: 1px solid rgba(199,154,58,0.22);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
}
.badge__num { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-300); }
.badge__label { font-size: 0.82rem; color: var(--text-mid); }

/* ---------- 核心特色卡片 ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
  align-content: start;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid rgba(199, 154, 58, 0.22);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 180, 90, 0.6);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.feature__icon { width: 38px; height: 38px; margin: 0; color: var(--gold-400); }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.3rem; letter-spacing: 0.02em; color: var(--gold-400); margin: 0; }
.feature p { grid-column: 1 / -1; font-size: 0.95rem; color: var(--text-mid); margin: 1rem 0 0; }

/* ---------- 众筹内容（产品） ---------- */
.product {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: calc(var(--radius) * 2);
  border: 1px solid rgba(199, 154, 58, 0.25);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 70%);
  margin-bottom: 2.2rem;
}
.product--fear {
  border-color: rgba(91, 124, 166, 0.4);
  background: linear-gradient(160deg, #131B2B, var(--ink-800) 70%);
}
.product__cover img {
  margin-inline: auto;
  max-width: 340px; width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.product:hover .product__cover img { transform: rotate(0deg) scale(1.02); }
.product__tag {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.16em;
  color: var(--gold-300);
  border: 1px solid rgba(199,154,58,0.4);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.9rem;
}
.product--fear .product__tag { color: var(--fear-400); border-color: rgba(91,124,166,0.55); }
.product h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.product .en-name { font-family: var(--font-latin-serif); font-size: 0.9em; color: var(--text-low); font-style: italic; }
.product ul { list-style: none; padding: 0; margin: 1.1rem 0; }
.product li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; font-size: 0.98rem; }
.product li::before {
  content: "◆"; position: absolute; left: 0; top: 0.42rem;
  color: var(--gold-500); font-size: 0.7rem;
}
.product--fear li::before { color: var(--fear-400); }
.product .fineprint { font-size: 0.78rem; color: var(--text-low); margin: 0; }

/* ---------- 众筹内容：版本对比 ---------- */
.cf-product {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) * 2);
  border: 1px solid rgba(199, 154, 58, 0.25);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 70%);
  margin-bottom: 2.2rem;
}
.cf-product--fear {
  border-color: rgba(91, 124, 166, 0.4);
  background: linear-gradient(160deg, #131B2B, var(--ink-800) 70%);
}
.cf-head { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.cf-cover img {
  margin-inline: auto; max-width: 220px; width: 100%; border-radius: 4px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-2deg); transition: transform 0.3s ease;
}
.cf-product:hover .cf-cover img { transform: rotate(0) scale(1.02); }
.cf-intro h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.4em; }
.cf-intro p { font-size: 0.96rem; color: var(--text-mid); margin: 0; }

.cf-table-wrap { overflow-x: auto; margin-top: 1.6rem; -webkit-overflow-scrolling: touch; }
.cf-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 420px; }
.cf-table th, .cf-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cf-table thead th { font-family: var(--font-body); font-weight: 600; color: var(--text-low); font-size: 0.82rem; letter-spacing: 0.06em; border-bottom-color: rgba(199,154,58,0.35); }
.cf-table thead th.is-deluxe, .cf-table td.is-deluxe { background: rgba(199, 154, 58, 0.07); }
.cf-product--fear .cf-table thead th.is-deluxe, .cf-product--fear .cf-table td.is-deluxe { background: rgba(91, 124, 166, 0.1); }
.cf-table thead th.is-deluxe { color: var(--gold-300); }
.cf-product--fear .cf-table thead th.is-deluxe { color: var(--fear-400); }
.cf-table tbody th { font-weight: 400; color: var(--text-mid); font-family: var(--font-body); }
.cf-table td { color: var(--text-mid); }
.cf-table td.is-deluxe { color: var(--text-hi); font-size: 0.85rem; }
.cf-table .yes { color: var(--gold-400); font-weight: 700; }
.cf-product--fear .cf-table .yes { color: var(--fear-400); }
.cf-table .no { color: var(--text-low); }
.cf-table tbody tr:hover th, .cf-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.cf-table tbody tr:hover td.is-deluxe { background: rgba(199,154,58,0.12); }

.cf-unbox { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0 0; }
.cf-unbox figure { margin: 0; }
.cf-unbox img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4 / 3; object-fit: contain;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  border: 1px solid rgba(199,154,58,0.2);
  background: #ffffff;
}
.cf-unbox figcaption { text-align: center; margin-top: 0.7rem; }
.cf-unbox .v {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.05em;
  padding: 0.18rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14); color: var(--text-mid);
}
.cf-unbox .v--dlx { color: var(--gold-300); border-color: rgba(199,154,58,0.5); background: rgba(199,154,58,0.08); }
.cf-product--fear .cf-unbox .v--dlx { color: var(--fear-400); border-color: rgba(91,124,166,0.55); background: rgba(91,124,166,0.1); }
.cf-caption { text-align: center; font-size: 0.78rem; color: var(--text-low); margin: 0.8rem 0 0; }
.cf-note { text-align: center; font-size: 0.8rem; color: var(--text-low); margin: 0.5rem 0 0; }

/* ---------- 授权 ---------- */
.license { text-align: center; }
.license > p { text-align: left; }
.license .fineprint { text-align: center; }
.license__badge {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(199,154,58,0.45);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: rgba(199,154,58,0.06);
}
.license .fineprint { font-size: 0.78rem; color: var(--text-low); margin-top: 1.4rem; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid rgba(199,154,58,0.2);
  border-radius: var(--radius);
  background: var(--ink-700);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600; color: var(--text-hi);
  position: relative;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-400); font-size: 1.3rem; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--gold-300); }
.faq .faq__body { padding: 0 1.3rem 1.15rem; font-size: 0.96rem; }
.faq .faq__body p { margin: 0; }

/* ---------- 动态区块（content.js 驱动，空数据自动隐藏） ---------- */
[hidden] { display: none !important; }
.tiers__list { display: grid; gap: 1rem; }
.tier {
  display: flex; align-items: center; gap: 1.2rem;
  border: 1px solid rgba(199,154,58,0.25);
  border-radius: var(--radius);
  background: var(--ink-700);
  padding: 1rem 1.3rem;
}
.tier--unlocked { border-color: var(--gold-400); }
.tier__state { font-size: 0.8rem; color: var(--gold-300); white-space: nowrap; }
.news__list { display: grid; gap: 1rem; }
.news__item { border-left: 2px solid var(--gold-500); padding-left: 1.1rem; }
.news__date { font-size: 0.8rem; color: var(--text-low); }
.downloads__list { display: grid; gap: 0.8rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  border-top: 1px solid transparent;
  position: relative;
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9rem;
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold-line); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2rem; }
.footer__brand img { width: 200px; margin-bottom: 0.8rem; }
.footer__slogan { color: var(--text-mid); }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { color: var(--text-mid); }
.footer__links a:hover { color: var(--gold-300); }
.footer__links-title { font-size: 0.8rem; letter-spacing: 0.15em; color: var(--text-low); margin-bottom: 0.3rem; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.6rem;
  font-size: 0.74rem; line-height: 1.8;
  color: var(--text-low);
}
.footer__legal p { margin: 0 0 0.35em; }
.footer__legal a { color: var(--text-low); text-decoration: underline; }

/* ---------- 移动端 Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 0.7rem var(--pad-x) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(199,154,58,0.35);
  display: none;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding-block: 0.7rem; }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1), transform 0.6s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .whatis__grid, .product { grid-template-columns: 1fr; }
  .whatis__art { order: -1; max-width: 420px; margin-inline: auto; }
  .status__grid { grid-template-columns: 1fr; gap: 0.7rem; text-align: center; }
  .status__cta { justify-self: center; }
  .cf-head { grid-template-columns: 1fr; text-align: center; }
  .cf-cover { max-width: 200px; margin-inline: auto; }
  .cf-intro p { text-align: left; }
  .cf-unbox { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero__content { max-width: 100%; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .sticky-cta { display: block; }
  .product__cover img { max-width: 260px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
