/* ============================================================
   玄甲 Web 设计系统 · 暗色版 v1.0
   中国全甲格斗官网（HMB China）— 中式武备美学
   意象：玄甲札甲 / 城墙垛口 / 令旗 / 青铜铭刻 / 卷云纹
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 玄甲墨阶 */
  --bg-0: #141519;        /* 页面底 */
  --bg-1: #1a1c21;        /* 区块交替底 */
  --surface: #202329;     /* 卡面 */
  --surface-2: #272b32;   /* 卡面浮起 */
  --line: #363a41;        /* 常规描边 */
  --line-2: #4a4f57;      /* 强描边 */

  /* 朱漆 */
  --red: #9e2830;         /* 朱漆面 */
  --red-deep: #7c1f26;
  --red-hi: #c0393f;      /* 交互红 */
  --red-text: #e0717a;    /* 可读红（正文用） */

  /* 青铜金 */
  --gold: #c9a24b;
  --gold-bright: #e2c87e;
  --bronze: #8a6430;
  --bronze-text: #b08a4f;

  /* 文字 */
  --text: #e7e2d7;
  --text-sub: #a7a297;
  --text-faint: #7c786e;

  /* 字体 */
  --font-display: "KaiTi", "STKaiti", "楷体", "Georgia", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-latin-display: Georgia, "Times New Roman", serif;

  /* 间距（8 点阵） */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem; --sp-24: 6rem;

  --radius: 3px;          /* 甲片感：小圆角 */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);

  /* 甲片纹：错缝圆点 */
  --pattern-scales:
    radial-gradient(circle at 50% 42%, rgba(201, 162, 75, 0.10) 0 2.2px, transparent 2.6px),
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.45) 0 2.6px, transparent 3.2px);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-bright); text-decoration: none; transition: color 0.15s var(--ease-out); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--red); color: #f5efdf; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.04em;
}
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-sub); }
.small { font-size: 0.875rem; }

/* ---------- 三语机制（中 / 英 / 俄） ---------- */
[data-lang="zh"] .lang-en, [data-lang="zh"] .lang-ru { display: none !important; }
[data-lang="en"] .lang-zh, [data-lang="en"] .lang-ru { display: none !important; }
[data-lang="ru"] .lang-zh { display: none !important; }
[data-lang="ru"] .lang-en.lang-en--ru { display: none !important; } /* 有俄语译文的英文标签隐藏 */
[data-lang="ru"] .lang-ru { display: revert; }
html[data-lang="en"] body, html[data-lang="ru"] body { font-size: 16px; }
html[data-lang="en"] h1, html[data-lang="en"] h2,
html[data-lang="en"] h3, html[data-lang="en"] h4,
html[data-lang="ru"] h1, html[data-lang="ru"] h2,
html[data-lang="ru"] h3, html[data-lang="ru"] h4 { font-family: var(--font-latin-display); letter-spacing: 0.02em; }
.section-title .lang-en, .section-title .lang-ru { letter-spacing: 0.02em; }

/* ---------- 纹样构件 ---------- */

/* 垛口齿线：城墙压边 */
.crenellation {
  height: 10px;
  background:
    linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 28px) 0 0 / 28px 5px repeat-x,
    linear-gradient(90deg, var(--line) 0 100%) 0 100% / 100% 5px repeat-x;
  opacity: 0.9;
}
.crenellation--gold {
  background:
    linear-gradient(90deg, var(--bronze) 0 14px, transparent 14px 28px) 0 0 / 28px 5px repeat-x,
    linear-gradient(90deg, var(--gold) 0 100%) 0 100% / 100% 2px repeat-x;
  height: 9px;
}

/* 甲片纹面（英雄横幅 / 深色大卡） */
.armor-surface {
  background:
    var(--pattern-scales) 9px 0 / 18px 20px repeat,
    var(--pattern-scales) 0 0 / 18px 20px repeat,
    linear-gradient(160deg, #23262c 0%, #191b1f 55%, #16181c 100%);
}

/* 令旗标记：区块标题前的竖旗 */
.flag-marker {
  display: inline-block;
  width: 11px; height: 1.05em;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 50% 86%, 0 100%, 0 18%);
  margin-right: 0.6em;
  flex: none;
}

/* 回纹角框：重点卡片四角金饰 */
.gold-corners { position: relative; }
.gold-corners::before, .gold-corners::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.gold-corners::before {
  top: 6px; left: 6px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.gold-corners::after {
  bottom: 6px; right: 6px;
  border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 21, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.25);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--text); }
.brand:hover { color: var(--gold-bright); }
.brand svg { width: 30px; height: 30px; }
.brand-logo { display: block; width: 26px; height: 36px; object-fit: contain; flex: none; }
.site-footer .brand-logo { width: 34px; height: 47px; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.brand-sub { font-size: 0.65rem; color: var(--text-faint); letter-spacing: 0.28em; display: block; line-height: 1; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-link {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: color 0.15s var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold-bright); }
.nav-link[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* 语言切换：语言下拉菜单（位于国际交流右侧） */
.lang-menu { position: relative; }
.lang-menu-btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  height: 38px; padding: 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--gold-bright);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.lang-menu-btn:hover, .lang-menu-btn[aria-expanded="true"] { border-color: var(--gold); background: var(--surface-2); }
.lang-caret { transition: transform 0.15s var(--ease-out); }
.lang-menu-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 172px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 0.3rem;
  z-index: 200;
}
.lang-dropdown.is-open { display: block; }
.lang-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: transparent; border: none; border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: background 0.12s var(--ease-out);
}
.lang-option:hover { background: rgba(201, 162, 75, 0.12); }
.lang-option.is-current { color: var(--gold-bright); background: rgba(201, 162, 75, 0.08); }
.lang-option.is-current::after { content: "✓"; margin-left: auto; color: var(--gold); }
.lang-option-name { font-size: 0.72rem; font-weight: 400; color: var(--text-faint); }

.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.62rem 1.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  color: #f7f1e3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(158, 40, 48, 0.35);
}
.btn--primary:hover { background: linear-gradient(180deg, #cc444b, #ab2e36); color: #fff; transform: translateY(-1px); }
.btn--gold {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--bronze);
}
.btn--gold:hover { border-color: var(--gold); background: rgba(201, 162, 75, 0.08); color: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--text-sub); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--line-2); background: var(--surface); }
.btn--sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- 区块 ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.section-title {
  display: flex; align-items: center;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--text);
}
.section-title .lang-en { letter-spacing: 0.02em; }
.section-kicker {
  font-size: 0.75rem; color: var(--bronze-text);
  letter-spacing: 0.35em; text-transform: uppercase;
}
.section-more { margin-left: auto; font-size: 0.9rem; color: var(--gold-bright); }
.section-more:hover { color: var(--gold); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card--link { display: block; color: inherit; }
.card--link:hover { transform: translateY(-2px); }
.card--link:hover .card-title { color: var(--gold-bright); }

.card-title {
  font-size: 1.15rem; color: var(--text);
  transition: color 0.15s var(--ease-out);
  margin-bottom: var(--sp-2);
}
.card--armor {
  background:
    var(--pattern-scales) 9px 0 / 18px 20px repeat,
    var(--pattern-scales) 0 0 / 18px 20px repeat,
    linear-gradient(160deg, #22252b, #17191d);
  border-color: #3d4149;
}

/* 卡片头图区（赛事实拍位） */
.card-banner {
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-4);
  height: 150px;
  background: linear-gradient(140deg, #2b2f36, #1b1e22);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.card-banner .card-banner-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(201, 162, 75, 0.3);
}
.card-banner-mark svg { width: 56px; height: 56px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.1em 0.65em;
  font-size: 0.78rem; letter-spacing: 0.08em;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.tag--red { border-color: rgba(192, 57, 63, 0.55); color: var(--red-text); background: rgba(158, 40, 48, 0.12); }
.tag--gold { border-color: rgba(201, 162, 75, 0.55); color: var(--gold-bright); background: rgba(201, 162, 75, 0.08); }
.tag--bronze { border-color: rgba(138, 100, 48, 0.6); color: var(--bronze-text); background: rgba(138, 100, 48, 0.1); }

/* ---------- 英雄横幅 ---------- */
.hero {
  position: relative;
  background:
    var(--pattern-scales) 9px 0 / 22px 24px repeat,
    var(--pattern-scales) 0 0 / 22px 24px repeat,
    radial-gradient(1200px 500px at 78% 10%, rgba(158, 40, 48, 0.22), transparent 60%),
    linear-gradient(165deg, #22252b 0%, #17191d 60%, #131519 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after { /* 底部垛口 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 28px) 0 0 / 28px 6px repeat-x,
    linear-gradient(90deg, var(--line) 0 100%) 0 100% / 100% 6px repeat-x;
}
.hero-inner {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: var(--sp-12);
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--bronze-text); font-size: 0.8rem; letter-spacing: 0.4em;
  margin-bottom: var(--sp-4);
}
.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.18;
  margin-bottom: var(--sp-4);
}
.hero-title em { font-style: normal; color: var(--gold-bright); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-sub); max-width: 34em; margin-bottom: var(--sp-8); }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero-emblem {
  display: grid; place-items: center;
  padding: var(--sp-8);
}
.hero-emblem svg { width: min(300px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }
.hero-emblem .hero-logo { width: min(300px, 100%); height: auto; object-fit: contain; }

/* ---------- 数据横条（战功榜） ---------- */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
.stat-cell { background: var(--bg-1); padding: var(--sp-6) var(--sp-4); text-align: center; }
.stat-num {
  font-family: var(--font-latin-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700;
  color: var(--gold-bright); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.85rem; color: var(--text-sub); letter-spacing: 0.1em; }

/* ---------- 表格（赛程 / 名录） ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.92rem; }
.table th {
  font-family: var(--font-display);
  text-align: left; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold-bright);
  background: var(--surface-2);
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--bronze);
  white-space: nowrap;
}
.table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-sub); }
.table td strong { color: var(--text); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s var(--ease-out); }
.table tbody tr:hover { background: var(--surface-2); }

/* ---------- 时间线（发展历程 / 赛事动态） ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--line-2));
}
.timeline-item { position: relative; padding-bottom: var(--sp-8); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 8px;
  width: 12px; height: 12px; transform: translateX(1px) rotate(45deg);
  background: var(--bg-0); border: 2px solid var(--gold);
}
.timeline-year {
  font-family: var(--font-latin-display); font-weight: 700;
  color: var(--gold-bright); letter-spacing: 0.05em; margin-bottom: 2px;
}
.timeline-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--sp-2); }

/* ---------- FAQ 折叠（details 原生） ---------- */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: var(--sp-3);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  transition: background 0.15s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--bronze-text); border-bottom: 2px solid var(--bronze-text);
  transform: rotate(45deg); transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); color: var(--gold-bright); }
.faq-body { padding: var(--sp-4) var(--sp-6) var(--sp-6); color: var(--text-sub); }

/* ---------- 筛选 / 标签页 ---------- */
.filter-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.chip {
  padding: 0.35rem 1.1rem;
  font-size: 0.88rem; letter-spacing: 0.05em;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-active {
  background: rgba(158, 40, 48, 0.15);
  border-color: var(--red-hi);
  color: var(--red-text);
  font-weight: 600;
}
/* 二级子栏目小号按钮（字号与尺寸均小于一级栏目） */
.chip--sm {
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.chip--sm:hover { border-color: var(--line-2); color: var(--text); }
.chip--sm.is-active {
  background: rgba(158, 40, 48, 0.15);
  border-color: var(--red-hi);
  color: var(--red-text);
  font-weight: 600;
}

/* 面板切换（选手分级 / 资料分类） */
[data-panel] { display: none; }
[data-panel].is-active { display: block; }

/* ---------- 选手卡 ---------- */
.fighter-card { text-align: center; padding: var(--sp-8) var(--sp-4) var(--sp-6); }
.fighter-avatar {
  width: 96px; height: 96px; margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700;
  color: var(--gold-bright);
  background:
    var(--pattern-scales) 6px 0 / 14px 16px repeat,
    linear-gradient(160deg, #2b2f36, #1c1f24);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
}
.fighter-avatar::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 50%;
}
.fighter-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.fighter-meta { font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.05em; margin-bottom: var(--sp-3); }
.fighter-honors { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- 资料列表 ---------- */
.doc-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.doc-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.doc-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.doc-glyph {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--gold-bright);
  background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.doc-info { min-width: 0; flex: 1; }
.doc-title { font-weight: 600; color: var(--text); }
.doc-meta { font-size: 0.8rem; color: var(--text-faint); }
.doc-locked { opacity: 0.62; }
.doc-lock {
  flex: none; font-size: 0.75rem; color: var(--bronze-text);
  border: 1px solid rgba(138, 100, 48, 0.6); border-radius: 2px;
  padding: 0.15em 0.6em; letter-spacing: 0.1em;
}

/* ---------- 表单 ---------- */
.form-field { margin-bottom: var(--sp-5); }
.form-label {
  display: block; margin-bottom: var(--sp-2);
  font-size: 0.85rem; letter-spacing: 0.12em; color: var(--bronze-text);
  font-weight: 600;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--text-faint); margin-top: var(--sp-2); }

/* ---------- 步骤条（行军 steps） ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step;
  content: counter(step, cjk-ideographic);
  position: absolute; left: 0; top: 2px;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--gold-bright);
  background: var(--surface);
  border: 1px solid var(--bronze); border-radius: 50%;
}
.step-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--sp-2); }

/* ---------- 通用徽记图腾（空位 / 提示） ---------- */
.totem { display: grid; place-items: center; padding: var(--sp-12) 0; color: var(--text-faint); }
.totem svg { width: 60px; height: 60px; opacity: 0.5; margin-bottom: var(--sp-3); }
.totem-text { font-family: var(--font-display); letter-spacing: 0.3em; font-size: 0.95rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: var(--sp-12);
  background: #101114;
  border-top: 1px solid var(--line);
}
.footer-cren { height: 12px; background: linear-gradient(90deg, var(--bronze) 0 14px, transparent 14px 28px) 0 0 / 28px 6px repeat-x; opacity: 0.8; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding: var(--sp-12) 0;
}
.footer-title { font-size: 0.85rem; color: var(--gold-bright); letter-spacing: 0.2em; margin-bottom: var(--sp-4); font-family: var(--font-display); }
.footer-link { display: block; color: var(--text-sub); font-size: 0.9rem; padding: 0.2rem 0; }
.footer-link:hover { color: var(--gold-bright); }
.footer-brand p { color: var(--text-faint); font-size: 0.85rem; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: var(--sp-4) 0;
  display: flex; gap: var(--sp-6); flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-faint);
}
.footer-bottom span { white-space: nowrap; }

/* ---------- 动效与可达性 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.fade-up { animation: fadeUp 0.6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    background: var(--surface); color: var(--gold-bright);
    border: 1px solid var(--line-2); border-radius: var(--radius);
    cursor: pointer; margin-left: auto;
  }
  .main-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #141519; border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    gap: 2px;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 0.6rem 0.5rem; border-bottom: none; border-left: 2px solid transparent; }
  .nav-link[aria-current="page"] { border-left-color: var(--gold); }
  .header-actions { margin-left: var(--sp-3); }
  .brand-sub { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .doc-item { flex-wrap: wrap; }
}
