﻿/* 思远恒 · 设计系统
   风格：编辑部 / 游戏公司 / 暖中性暗调 + 琥珀金
   字：Inter + 系统中文
   间距：8pt 网格
   圆角：克制（0-4px，仅按钮/输入框有 2px）
   ===================================================== */

:root {
  /* 颜色 */
  --ink:        #0E1118;
  --ink-1:      #161A22;
  --ink-2:      #1F242E;
  --line:       rgba(240,234,224,0.10);
  --line-2:     rgba(240,234,224,0.18);
  --bone:       #F0EAE0;
  --bone-dim:   #C8C2B6;
  --bone-mute:  #888379;
  --bone-quiet: #5A5650;
  --gold:       #D4A574;
  --gold-deep:  #B08858;
  --gold-soft:  rgba(212,165,116,0.16);
  --slate:      #7A8FA6;

  /* 字号（1.5 模数） */
  --t-xxs: 11px;
  --t-xs:  13px;
  --t-sm:  15px;
  --t-md:  17px;
  --t-lg:  20px;
  --t-xl:  26px;
  --t-2xl: 34px;
  --t-3xl: 46px;
  --t-4xl: 64px;
  --t-5xl: 88px;
  --t-6xl: 120px;

  /* 间距 */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;
  --s-11: 160px;

  /* 字体 */
  --f-display:  "Inter Tight", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --f-body:     "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --f-mono:     "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* 容器 */
  --maxw: 1240px;

  /* 头部 */
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--t-md)/1.65 var(--f-body);
  font-feature-settings: "ss01", "ss02", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--gold); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select {
  font: inherit; color: inherit; background: transparent; border: none; outline: none;
}

::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ====== 排版 ====== */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--bone);
}
h1 { font-size: var(--t-5xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: var(--t-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--t-lg); font-weight: 600; }
h5 { font-size: var(--t-md); font-weight: 600; letter-spacing: 0; }
p  { color: var(--bone-dim); }
small { font-size: var(--t-xs); color: var(--bone-mute); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: var(--s-3);
}
.lead {
  font-size: var(--t-lg);
  color: var(--bone-dim);
  max-width: 60ch;
  line-height: 1.55;
}
.lead--xl {
  font-size: var(--t-xl);
  max-width: 32ch;
  line-height: 1.4;
  color: var(--bone);
}
.dim    { color: var(--bone-mute); }
.gold   { color: var(--gold); }
.center { text-align: center; }

/* ====== 布局 ====== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.section {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section--tight { padding: var(--s-8) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 800px;
  margin-bottom: var(--s-8);
}
.section-head h2 { font-size: var(--t-3xl); }
.section-head h2 em { font-style: normal; color: var(--gold); }
.section-head .lead { max-width: 56ch; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-7); } }

.row { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }

/* ====== 头部 ====== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,17,24,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--s-6);
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-md);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 800;
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-weight: 700; }
.brand-text small { font-family: var(--f-mono); font-size: 10px; color: var(--bone-mute); letter-spacing: 0.1em; }

.nav-links {
  display: flex; gap: var(--s-6); align-items: center;
  font-size: var(--t-sm);
}
.nav-links a {
  color: var(--bone-dim);
  font-weight: 500;
  position: relative;
  padding: var(--s-2) 0;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
}

.nav-toggle { display: none; font-size: 22px; padding: var(--s-2); color: var(--bone); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: flex-start;
    padding: var(--s-7) var(--s-6);
    background: var(--ink);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: var(--t-lg); }
}

/* ====== 按钮 / 链接样式 ====== */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }

.btn--ghost {
  background: transparent; color: var(--bone);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }

.btn--link {
  background: transparent; color: var(--gold);
  border: none; padding: var(--s-2) 0;
  font-family: var(--f-display);
}
.btn--link::after { content: "→"; transition: transform .2s ease; }
.btn--link:hover { color: var(--gold-deep); }
.btn--link:hover::after { transform: translateX(4px); }

.btn--large { padding: var(--s-4) var(--s-6); font-size: var(--t-md); }

.link-arrow { color: var(--gold); display: inline-flex; gap: var(--s-2); align-items: center; }
.link-arrow:hover { color: var(--bone); }

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-11);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 980px; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { max-width: 60ch; margin-bottom: var(--s-7); }
.hero__actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__corner {
  position: absolute; top: var(--s-7); right: var(--s-7);
  font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute);
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: right;
}
.hero__corner b { color: var(--gold); font-weight: 600; }

/* Hero visual (placeholder) */
.hero__art {
  position: absolute; right: -5%; bottom: -10%;
  width: 60%; height: 110%;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(212,165,116,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(122,143,166,0.10) 0%, transparent 60%);
}
@media (max-width: 860px) { .hero__art { width: 100%; opacity: 0.25; } }

/* ====== 卡片 ====== */
.card {
  background: var(--ink-1);
  border: 1px solid var(--line);
  padding: var(--s-6);
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: var(--s-3); }
.card .num {
  position: absolute; top: var(--s-5); right: var(--s-5);
  font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute);
  letter-spacing: 0.1em;
}
.card .tag {
  display: inline-block; padding: 2px var(--s-2);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-soft); color: var(--gold);
}

/* ====== 段落辅助：editorial ====== */
.colophon {
  display: grid; grid-template-columns: 1fr; gap: var(--s-3);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: var(--t-xxs);
  color: var(--bone-mute); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ====== 时间线 ====== */
.timeline { position: relative; padding-left: var(--s-7); }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 12px;
  width: 1px; background: var(--line-2);
}
.timeline-item { position: relative; padding-bottom: var(--s-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--gold);
}
.timeline-item .yr {
  font-family: var(--f-mono); font-size: var(--t-sm); color: var(--gold);
  margin-bottom: var(--s-2);
}
.timeline-item h4 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.timeline-item p  { color: var(--bone-dim); max-width: 60ch; }

/* ====== 在研作品卡片 ====== */
.game-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7);
  align-items: center;
  background: var(--ink-1);
  border: 1px solid var(--line);
  padding: var(--s-7);
}
.game-cover {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(212,165,116,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink-1) 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.game-cover__svg { width: 65%; height: auto; opacity: 0.92; }
.game-cover__label {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-family: var(--f-mono); font-size: 10px; color: var(--bone-mute);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.game-card__body .eyebrow { padding-bottom: var(--s-2); }
.game-card__body h3 { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.game-card__body p  { margin-bottom: var(--s-5); }
@media (max-width: 700px) { .game-card { grid-template-columns: 1fr; } }

/* 阶段 */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); margin: var(--s-5) 0; }
.stage {
  font-family: var(--f-mono); font-size: var(--t-xxs);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
  padding: var(--s-3) 0;
  border: 1px solid var(--line);
  color: var(--bone-mute);
}
.stage.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.stage.cur { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 600px) {
  .stages { grid-template-columns: repeat(5, 1fr); gap: 2px; font-size: 9px; }
}

/* ====== 数据点 ====== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 700; color: var(--bone); margin-bottom: var(--s-2); }
.stat span { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stat { border-left: none; border-top: 1px solid var(--line); } }

/* ====== 新闻列表 ====== */
.news-list { display: grid; gap: var(--s-5); }
.news-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item .date { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--bone-mute); letter-spacing: 0.05em; }
.news-item h4 { font-size: var(--t-md); font-weight: 600; margin-bottom: var(--s-2); }
.news-item h4 a:hover { color: var(--gold); }
.news-item p { font-size: var(--t-sm); color: var(--bone-mute); }
@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ====== 联系页 / 表单 ====== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: var(--s-5); }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; }
.info-row .k { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.info-row .v { font-size: var(--t-md); color: var(--bone); }
.info-row .v a:hover { color: var(--gold); }

.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-2); }
.form-row label { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  font-size: var(--t-md);
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-bottom-color: var(--gold);
}
.form-row textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.form-msg { font-size: var(--t-sm); color: var(--bone-mute); padding-top: var(--s-2); }
.form-msg.ok { color: var(--gold); }

.form-actions { display: flex; gap: var(--s-4); align-items: center; padding-top: var(--s-3); }

/* ====== 页脚 ====== */
.site-foot {
  margin-top: var(--s-11);
  padding: var(--s-9) 0 var(--s-6);
  background: var(--ink-1);
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-grid h6 {
  font-family: var(--f-mono); font-size: var(--t-xxs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s-4); font-weight: 600;
}
.foot-grid ul { list-style: none; display: grid; gap: var(--s-2); }
.foot-grid ul a { color: var(--bone-dim); font-size: var(--t-sm); }
.foot-grid ul a:hover { color: var(--bone); }
.foot-grid .brand { margin-bottom: var(--s-4); }
.foot-grid .col { font-size: var(--t-sm); color: var(--bone-mute); }

.foot-bottom {
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--t-xs); color: var(--bone-mute);
}
.foot-bottom a { color: var(--bone-mute); }
.foot-bottom a:hover { color: var(--bone); }

/* ====== util ====== */
.mt-1{margin-top:var(--s-1)} .mt-2{margin-top:var(--s-2)} .mt-3{margin-top:var(--s-3)} .mt-4{margin-top:var(--s-4)} .mt-5{margin-top:var(--s-5)} .mt-6{margin-top:var(--s-6)} .mt-7{margin-top:var(--s-7)} .mt-8{margin-top:var(--s-8)} .mt-9{margin-top:var(--s-9)}
.mb-3{margin-bottom:var(--s-3)} .mb-4{margin-bottom:var(--s-4)} .mb-5{margin-bottom:var(--s-5)} .mb-6{margin-bottom:var(--s-6)} .mb-7{margin-bottom:var(--s-7)} .mb-8{margin-bottom:var(--s-8)}

.tag-row { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--bone-dim);
  background: var(--ink-2);
  border: 1px solid var(--line);
}

/* "intro block" — 大段说明 */
.brief {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--s-7);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .brief { grid-template-columns: 1fr; gap: var(--s-3); } }
.brief .label { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.16em; text-transform: uppercase; padding-top: 8px; }

/* 团队格子 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-5); }
.person { padding: var(--s-5); background: var(--ink-1); border: 1px solid var(--line); }
.person .avatar {
  width: 56px; height: 56px; background: var(--ink-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--gold);
  margin-bottom: var(--s-4);
}
.person h4 { font-size: var(--t-md); margin-bottom: 2px; }
.person p  { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.08em; text-transform: uppercase; }

/* 通用：placeholder 表 */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
@media (max-width: 700px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-grid dt { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-2); }
.profile-grid dd { color: var(--bone); margin-bottom: var(--s-5); font-size: var(--t-md); }

/* 子导航 */
.subnav { display: flex; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); flex-wrap: wrap; }
.subnav a { font-size: var(--t-sm); color: var(--bone-dim); }
.subnav a.active, .subnav a:hover { color: var(--bone); }

/* 段落样式（详情页正文） */
.prose { max-width: 70ch; }
.prose p { margin-bottom: var(--s-4); }
.prose h2 { margin: var(--s-7) 0 var(--s-3); }
.prose h3 { margin: var(--s-5) 0 var(--s-2); font-size: var(--t-lg); }

/* KPI 行 */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--bone-mute); letter-spacing: 0.12em; text-transform: uppercase; padding-top: 4px; }
.kv .v { color: var(--bone); }

.hide { display: none !important; }

/* ============================================
   动效增强 · Animations & Micro-interactions
   ============================================ */

/* JS 可用时才隐藏待进场元素（无 JS 用户直接可见） */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #f0d4a8, var(--gold));
  background-size: 200% 100%;
  z-index: 9999; transition: width .1s linear;
  animation: progressGrad 3s linear infinite;
}
@keyframes progressGrad {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Hero 首屏分层入场 */
.js .hero .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn .9s cubic-bezier(.22,.61,.36,1) forwards;
}
.js .hero .reveal:nth-child(1) { animation-delay: .12s; }
.js .hero .reveal:nth-child(2) { animation-delay: .28s; }
.js .hero .reveal:nth-child(3) { animation-delay: .44s; }
.js .hero .reveal:nth-child(4) { animation-delay: .60s; }
.js .hero .hero-stats .reveal:nth-child(1) { animation-delay: .78s; }
.js .hero .hero-stats .reveal:nth-child(2) { animation-delay: .90s; }
.js .hero .hero-stats .reveal:nth-child(3) { animation-delay: 1.02s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 浮动光球 */
.float-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .32; pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
.float-orb:nth-child(2) { animation-duration: 18s; animation-delay: -5s; opacity: .28; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(36px, -44px) scale(1.1); }
  60%      { transform: translate(-24px, 28px) scale(.93); }
}

/* 渐变文字流动 */
.gradient-text {
  background: linear-gradient(110deg, var(--gold-deep) 0%, var(--gold) 20%, #f5deb3 40%, var(--gold) 60%, var(--gold-deep) 80%, var(--gold) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* 徽章脉冲点 */
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border: 1px solid var(--line-2);
  border-radius: 100px; font-size: var(--t-xs);
  color: var(--bone-dim); margin-bottom: var(--s-5);
}
.badge .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 8px; flex-shrink: 0;
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,165,116,.55); }
  50%      { opacity: .65; box-shadow: 0 0 0 7px rgba(212,165,116,0); }
}

/* 卡片悬停：上浮 + 金色描边 + 投影 + 图标弹动 */
.card {
  transition: border-color .35s ease, transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
  will-change: transform;
}
.card:hover {
  border-color: rgba(212,165,116,.45);
  box-shadow: 0 16px 48px -14px rgba(212,165,116,.2), 0 0 0 1px rgba(212,165,116,.08);
}
.card .ico {
  display: inline-block; font-size: 28px; margin-bottom: var(--s-3);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .ico {
  transform: scale(1.18) rotate(-6deg);
}

/* 按钮微交互：上浮 + 发光 + 光泽扫过 */
.btn {
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .3s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover, .btn-gold:hover {
  box-shadow: 0 10px 28px -6px rgba(212,165,116,.5);
}
.btn-ghost:hover {
  box-shadow: 0 10px 28px -6px rgba(240,234,224,.12);
}
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::before { left: 130%; }

/* 导航链接下划线从中间展开 */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease, left .3s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%; left: 0;
}

/* 导航滚动收缩态 */
.nav {
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(14,17,24,.96);
  box-shadow: 0 6px 32px -12px rgba(0,0,0,.6);
}

/* 预约横幅微光扫过 */
.reserve-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-7); background: var(--ink-1);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  flex-wrap: wrap;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.reserve-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(212,165,116,.35);
  box-shadow: 0 20px 56px -18px rgba(212,165,116,.22);
}
.reserve-banner::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,.07), transparent);
  animation: bannerShimmer 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bannerShimmer {
  0%   { left: -100%; }
  55%, 100% { left: 160%; }
}

/* 全局背景微光漂移 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 600px 420px at 15% 25%, rgba(212,165,116,.045), transparent 70%),
    radial-gradient(ellipse 520px 520px at 85% 75%, rgba(122,143,166,.035), transparent 70%);
  animation: bgDrift 22s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -28px) scale(1.06); }
}
body > header, body > section, body > footer { position: relative; z-index: 1; }

/* Hero 统计区 */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.stat b {
  display: block; font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 700; color: var(--bone); margin-bottom: 4px;
  transition: color .3s ease;
}
.stat:hover b { color: var(--gold); }
.stat span {
  font-family: var(--f-mono); font-size: var(--t-xxs);
  color: var(--bone-mute); letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* Logo 悬停微旋转 */
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: var(--gold); color: var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 17px;
  border-radius: 4px; flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.brand:hover .logo {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 6px 20px -4px rgba(212,165,116,.55);
}

/* 页脚链接右滑 */
.foot-grid ul a {
  position: relative; display: inline-block;
  transition: color .25s ease, transform .25s ease;
}
.foot-grid ul a:hover {
  transform: translateX(5px);
}

/* 区块标题下划线装饰 */
.section-head h2 {
  position: relative; display: inline-block;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .float-orb { animation: none !important; }
}

/* ============================================
   v2.0 新增样式
   ============================================ */

/* --- 版本日志时间线 --- */
.changelog-item { margin-bottom: 36px; position: relative; padding-left: 28px; }
.changelog-item::before { content:''; position:absolute; left:7px; top:36px; bottom:-36px; width:2px; background:var(--line-2); }
.changelog-item:last-child::before { display:none; }
.changelog-meta { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.changelog-version { font-family:var(--f-display); font-weight:800; font-size:15px; padding:4px 12px; border-radius:20px; background:var(--ink-2); color:var(--bone-mute); border:1px solid var(--line-2); }
.changelog-version.current { background:var(--gold); color:var(--ink); border-color:var(--gold); }
.changelog-date { font-family:var(--f-mono); font-size:13px; color:var(--bone-mute); }
.changelog-card { background:var(--ink-1); border:1px solid var(--line-2); border-radius:8px; padding:24px; }
.changelog-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.changelog-title h3 { font-size:19px; margin:0; }
.changelog-tag { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; letter-spacing:.03em; }
.changelog-tag.major { background:rgba(212,165,116,.15); color:var(--gold); border:1px solid var(--gold); }
.changelog-tag.feature { background:rgba(122,143,166,.15); color:#7A8FA6; border:1px solid #7A8FA6; }
.changelog-tag.minor { background:rgba(126,217,87,.12); color:#7ed957; border:1px solid #7ed957; }
.changelog-tag.release { background:rgba(160,107,255,.15); color:#a06bff; border:1px solid #a06bff; }
.changelog-card > p { color:var(--bone-dim); font-size:14px; margin-bottom:16px; line-height:1.7; }
.changelog-groups { display:flex; flex-direction:column; gap:14px; }
.changelog-group { border-left:3px solid var(--line-2); padding-left:14px; }
.cg-label { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:3px; margin-bottom:6px; }
.cg-label.new { background:rgba(126,217,87,.15); color:#7ed957; }
.cg-label.improve { background:rgba(107,181,255,.15); color:#6bb5ff; }
.cg-label.fix { background:rgba(255,107,107,.15); color:#ff6b6b; }
.changelog-group ul { margin:0; padding-left:18px; }
.changelog-group li { font-size:13.5px; color:var(--bone-dim); line-height:1.8; }

/* --- 团队卡片 --- */
.team-card { text-align:center; padding:28px 20px; }
.team-avatar { width:64px; height:64px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:800; color:#fff; font-family:var(--f-display); }
.team-card h3 { font-size:16px; margin-bottom:4px; }
.team-role { font-size:12px; color:var(--gold); font-weight:600; margin-bottom:10px; }
.team-card p { font-size:13px; color:var(--bone-dim); line-height:1.6; }
.team-tags { display:flex; flex-wrap:wrap; gap:5px; justify-content:center; margin-top:12px; }

/* --- 技术栈卡片 --- */
.tech-card { padding:20px 16px; }
.tech-ico { font-size:28px; margin-bottom:10px; }
.tech-card h4 { font-size:14px; margin-bottom:6px; color:var(--bone); }
.tech-card p { font-size:12.5px; color:var(--bone-dim); line-height:1.6; margin:0; }

/* --- 发展历程时间线 --- */
.timeline { position:relative; padding-left:30px; max-width:640px; margin:0 auto; }
.timeline::before { content:''; position:absolute; left:9px; top:8px; bottom:8px; width:2px; background:var(--line-2); }
.timeline-item { position:relative; margin-bottom:28px; }
.timeline-dot { position:absolute; left:-30px; top:4px; width:20px; height:20px; border-radius:50%; background:var(--ink-1); border:3px solid var(--gold); z-index:1; }
.timeline-dot.future { border-color:var(--line-2); background:var(--ink-2); }
.timeline-content { background:var(--ink-1); border:1px solid var(--line-2); border-radius:8px; padding:18px 20px; }
.timeline-date { font-family:var(--f-mono); font-size:12px; color:var(--gold); font-weight:600; }
.timeline-content h4 { font-size:16px; margin:4px 0 8px; }
.timeline-content p { font-size:13.5px; color:var(--bone-dim); line-height:1.7; margin:0; }

/* --- FAQ 折叠 --- */
.faq-category { margin-bottom:36px; }
.faq-cat-title { font-size:18px; margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid var(--line-2); }
.faq-item { border:1px solid var(--line-2); border-radius:6px; margin-bottom:8px; background:var(--ink-1); overflow:hidden; transition:border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color:var(--line); }
.faq-item.open { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold), 0 4px 20px rgba(212,165,116,.12); background:var(--ink-2); }
.faq-item.active-highlight { animation:faqGlow 1.5s ease; }
@keyframes faqGlow { 0%{box-shadow:0 0 0 1px var(--gold),0 0 30px rgba(212,165,116,.4);} 100%{box-shadow:0 0 0 1px var(--gold),0 4px 20px rgba(212,165,116,.12);} }
.faq-q { width:100%; text-align:left; background:none; border:none; color:var(--bone); font-size:15px; font-weight:600; padding:16px 20px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-family:inherit; position:relative; }
.faq-q:hover { color:var(--gold); }
.faq-item.open .faq-q { color:var(--gold); border-bottom:1px solid var(--line-2); }
.faq-icon { font-size:20px; color:var(--gold); transition:transform .25s; flex-shrink:0; margin-left:10px; }
.faq-item.open .faq-icon { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .4s ease, padding .4s ease; padding:0 20px; }
.faq-item.open .faq-a { max-height:1200px; padding:16px 20px 20px; }
.faq-a p, .faq-a ol { font-size:14px; color:var(--bone-dim); line-height:1.8; margin:0; }
.faq-a ol { padding-left:20px; }
.faq-a li { margin-bottom:6px; }
.faq-a ul { padding-left:20px; margin:8px 0; }
.faq-a ul li { font-size:13.5px; color:var(--bone-dim); line-height:1.7; margin-bottom:4px; }
.faq-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.faq-toolbar .faq-count { font-size:13px; color:var(--bone-mute); font-family:var(--f-mono); }
.faq-collapse-btn { background:none; border:1px solid var(--line-2); color:var(--bone-mute); padding:6px 14px; border-radius:4px; font-size:12px; cursor:pointer; font-family:inherit; transition:all .2s; }
.faq-collapse-btn:hover { border-color:var(--gold); color:var(--gold); }
.faq-q .faq-num { font-size:11px; color:var(--bone-mute); font-family:var(--f-mono); margin-right:8px; opacity:.6; }

/* --- 回到顶部 --- */
.back-to-top { position:fixed; bottom:28px; right:28px; width:44px; height:44px; border-radius:50%; background:var(--gold); color:var(--ink); border:none; font-size:20px; font-weight:800; cursor:pointer; opacity:0; transform:translateY(20px); transition:all .3s; z-index:999; box-shadow:0 4px 20px rgba(212,165,116,.3); }
.back-to-top.show { opacity:1; transform:translateY(0); }
.back-to-top:hover { transform:translateY(-3px); box-shadow:0 6px 24px rgba(212,165,116,.5); }

/* --- v2.0 首页数据看板 --- */
.dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin-bottom:32px; }
.dash-card { background:var(--ink-1); border:1px solid var(--line-2); border-radius:8px; padding:22px 18px; text-align:center; transition:all .25s; }
.dash-card:hover { border-color:var(--gold); transform:translateY(-3px); }
.dash-num { font-family:var(--f-display); font-size:32px; font-weight:800; color:var(--gold); line-height:1; }
.dash-label { font-size:12px; color:var(--bone-mute); margin-top:6px; }

/* --- 精选游戏展示 --- */
.featured-games { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.featured-game { background:var(--ink-1); border:1px solid var(--line-2); border-radius:8px; padding:20px; text-decoration:none; color:inherit; transition:all .25s; display:block; }
.featured-game:hover { border-color:var(--gold); transform:translateY(-3px); }
.featured-game .fg-emoji { font-size:32px; margin-bottom:8px; }
.featured-game h4 { font-size:15px; margin-bottom:4px; }
.featured-game p { font-size:12px; color:var(--bone-dim); margin:0; }

/* --- 合作流程步骤 --- */
.process-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; counter-reset:step; }
.process-step { background:var(--ink-1); border:1px solid var(--line-2); border-radius:8px; padding:24px 20px; position:relative; counter-increment:step; }
.process-step::before { content:counter(step); position:absolute; top:-12px; left:20px; width:28px; height:28px; border-radius:50%; background:var(--gold); color:var(--ink); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; font-family:var(--f-display); }
.process-step h4 { font-size:15px; margin:8px 0 8px; }
.process-step p { font-size:13px; color:var(--bone-dim); line-height:1.6; margin:0; }

/* --- 版本徽章 --- */
.version-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(212,165,116,.12); border:1px solid var(--gold); color:var(--gold); padding:5px 14px; border-radius:20px; font-size:12px; font-weight:700; font-family:var(--f-mono); }
.version-badge .pulse { width:6px; height:6px; border-radius:50%; background:var(--gold); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* --- 页面加载动画 --- */
.page-loader { position:fixed; inset:0; background:var(--ink); z-index:99999; display:flex; align-items:center; justify-content:center; transition:opacity .5s, visibility .5s; }
.page-loader.hidden { opacity:0; visibility:hidden; }
.loader-spinner { width:40px; height:40px; border:3px solid var(--line-2); border-top-color:var(--gold); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }

/* --- 响应式 --- */
@media(max-width:640px){
  .changelog-item { padding-left:20px; }
  .changelog-card { padding:18px 16px; }
  .changelog-title h3 { font-size:17px; }
  .back-to-top { bottom:18px; right:18px; width:38px; height:38px; font-size:16px; }
  .dashboard-grid { grid-template-columns:repeat(2,1fr); }
  .dash-num { font-size:26px; }
}

/* ============================================
   v3.0 隐私同意弹窗
   ============================================ */
#privacy-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100000;
  background: var(--ink-1); border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 30px rgba(0,0,0,.5);
  padding: 18px 24px;
  animation: slideUp .4s ease;
}
@keyframes slideUp { from{transform:translateY(100%);} to{transform:translateY(0);} }
#privacy-banner.hidden { transform: translateY(100%); transition: transform .4s ease; }
.privacy-content { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.privacy-icon { font-size: 32px; flex-shrink: 0; }
.privacy-text { flex: 1; min-width: 260px; }
.privacy-text h4 { font-size: 15px; margin: 0 0 6px; color: var(--gold); }
.privacy-text p { font-size: 13px; color: var(--bone-dim); margin: 0; line-height: 1.6; }
.privacy-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.privacy-btn { padding: 10px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; border: none; transition: all .2s; }
.privacy-btn.accept { background: var(--gold); color: var(--ink); }
.privacy-btn.accept:hover { background: #e0b584; transform: translateY(-1px); }
.privacy-btn.decline { background: transparent; color: var(--bone-mute); border: 1px solid var(--line-2); }
.privacy-btn.decline:hover { border-color: var(--bone-mute); color: var(--bone); }
@media(max-width:640px){
  .privacy-content { gap: 12px; }
  .privacy-buttons { width: 100%; }
  .privacy-btn { flex: 1; }
}

/* 设备信息展示 */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.device-card { background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; }
.device-card h4 { font-size: 13px; color: var(--gold); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.device-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.device-row:last-child { border-bottom: none; }
.device-row .label { color: var(--bone-mute); }
.device-row .value { color: var(--bone); font-weight: 600; font-family: var(--f-mono); font-size: 12px; text-align: right; max-width: 60%; word-break: break-all; }

/* 反馈表单 */
.feedback-form { max-width: 600px; margin: 0 auto; }
.feedback-group { margin-bottom: 18px; }
.feedback-group label { display: block; font-size: 13px; color: var(--bone); margin-bottom: 6px; font-weight: 600; }
.feedback-group select, .feedback-group textarea, .feedback-group input {
  width: 100%; padding: 12px 14px; background: var(--ink-1); border: 1px solid var(--line-2);
  border-radius: 4px; color: var(--bone); font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.feedback-group select:focus, .feedback-group textarea:focus, .feedback-group input:focus {
  outline: none; border-color: var(--gold);
}
.feedback-group textarea { min-height: 120px; resize: vertical; }
.feedback-device-info { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 16px; margin-top: 10px; font-size: 12px; color: var(--bone-mute); }
.feedback-list { margin-top: 30px; }
.feedback-item { background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 6px; padding: 16px 20px; margin-bottom: 10px; }
.feedback-item .fb-type { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; font-weight: 600; }
.feedback-item .fb-type.bug { background: rgba(255,107,107,.15); color: #ff6b6b; }
.feedback-item .fb-type.suggestion { background: rgba(107,181,255,.15); color: #6bb5ff; }
.feedback-item .fb-type.praise { background: rgba(126,217,87,.15); color: #7ed957; }
.feedback-item .fb-type.other { background: rgba(122,143,166,.15); color: #7A8FA6; }
.feedback-item .fb-content { font-size: 14px; color: var(--bone-dim); line-height: 1.6; margin-bottom: 8px; }
.feedback-item .fb-meta { font-size: 11px; color: var(--bone-mute); font-family: var(--f-mono); display: flex; justify-content: space-between; }
.feedback-item .fb-delete { background: none; border: none; color: var(--bone-mute); cursor: pointer; font-size: 12px; }
.feedback-item .fb-delete:hover { color: #ff6b6b; }
