@charset "UTF-8";
/**
 * site.css — 《暗黑征途2》玩家站设计系统
 * 定版依据：docs/策划文档/玩家站-定版.md v1.0 §二 B
 *
 * 视觉语言直接继承游戏登录页：近黑褐底 + 血红月 + 暗金书法 + 羊皮纸。
 * 三条底层原则：
 *   1) 层级靠字号/留白/细线，不靠卡片堆叠——母版 9 张等权重卡片的教训；
 *   2) 每屏只允许一个视觉重心；
 *   3) 动效只做两件事：入场淡入上移、悬停浮起发光。其余一律不做。
 */

/* ============================================================ 设计令牌 */
:root {
  /* 色板——全部取自游戏本体 */
  --bg:        #0d0a0b;   /* 登录页主视觉近黑褐 */
  --bg-2:      #141010;
  --panel:     #1a1514;
  --panel-2:   #241c19;
  --blood:     #c8342f;   /* 血红月 */
  --blood-dim: #7a1e1b;
  --gold:      #c9a23a;   /* 暗金 */
  --gold-lit:  #e8c36a;
  --gold-deep: #8a6d24;
  --paper:     #e8d7ae;   /* 角色页亮纸签（羊皮纸） */
  --ink:       #1a1208;   /* 压亮纸时的墨色 */

  --text:      #ece4d6;
  --text-2:    #b6a894;
  --text-3:    #8b7d6b;

  --line:      rgba(201, 162, 58, .22);
  --line-soft: rgba(201, 162, 58, .11);
  --line-lit:  rgba(232, 195, 106, .55);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, Georgia, serif;
  --sans:  "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 3px;                        /* 暗黑风：几乎不用圆角，用细线与倒角 */

  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, .55);
}

/* ============================================================ 基础 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全站底噪：极淡的暖色渐层 + 顶部血月光晕，避免大面积死黑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 620px at 78% -10%, rgba(200, 52, 47, .10), transparent 62%),
    radial-gradient(900px 500px at 12% 4%, rgba(201, 162, 58, .07), transparent 60%);
}

::selection { background: var(--gold); color: var(--ink); }

/* 滚动条：不画宽度，滚动照常 */
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }

a { color: var(--gold-lit); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #fff0c4; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: .01em; }

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

/* figure 默认 margin: 1em 40px 会把定宽图推出容器（实测致移动端横向溢出 20px），全局归零 */
figure { margin: 0; }

.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; position: relative; z-index: 1; }

main.wrap { padding-block: clamp(40px, 7vw, 96px) clamp(60px, 9vw, 120px); }

/* ============================================================ 排版零件 */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  letter-spacing: .02em;
  margin: 0 0 20px;
  background: linear-gradient(175deg, #fff4d8 8%, var(--gold-lit) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 36px;
  line-height: 1.95;
}

.sec-h {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: clamp(56px, 8vw, 96px) 0 28px;
  color: var(--text);
}
.sec-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-lit), transparent 70%);
  transform: translateY(-6px);
}
.sec-n {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 2px 10px;
  white-space: nowrap;
}
.sec-h .sec-n + * { flex: none; }

p { margin: 0 0 18px; }
strong, b { color: var(--gold-lit); font-weight: 600; }

/* 顶栏搜索的即时建议面板 */
.search-suggest {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 320px;
  max-width: 78vw;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #14100f;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  z-index: 80;
}
.search-suggest a { display: block; padding: 9px 14px; border-left: 2px solid transparent; }
.search-suggest a:hover { background: rgba(201, 162, 58, .09); border-left-color: var(--gold); }
.search-suggest b { display: block; font-size: 14px; color: var(--text); }
.search-suggest span { display: block; font-size: 11.5px; color: var(--text-3); }
.is-broken { display: none !important; }

/* ============================================================ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: linear-gradient(160deg, var(--gold-lit), var(--gold) 58%, var(--gold-deep));
  cursor: pointer;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 162, 58, .3); filter: brightness(1.07); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--gold-lit);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(201, 162, 58, .09); border-color: var(--line-lit); box-shadow: none; color: #fff0c4; }

/* ============================================================ 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 10, 11, .86);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 22%, var(--gold) 50%, var(--gold-deep) 78%, transparent);
  opacity: .5;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-sub {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--text-3);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.nav a {
  flex: none;
  padding: 8px 13px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover { color: var(--gold-lit); border-bottom-color: var(--gold-deep); }
.nav a.is-active { color: var(--gold-lit); border-bottom-color: var(--gold); }

.head-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.search-box { position: relative; }
.search-box input {
  width: 190px;
  padding: 8px 14px 8px 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft);
  outline: none;
  transition: border-color .18s var(--ease), width .22s var(--ease), background .18s var(--ease);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { border-color: var(--gold); width: 240px; background: rgba(201, 162, 58, .07); }
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-54%);
  color: var(--gold);
  font-size: 15px;
  pointer-events: none;
}

/* ============================================================ 首页 Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 5.5vw, 76px) clamp(48px, 6vw, 84px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
/* 英雄区底衬：血红月晕 + 底部渐隐入正文 */
.hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--pad) * -1) 0 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 76% 30%, rgba(200, 52, 47, .22), transparent 66%),
    linear-gradient(180deg, transparent 62%, var(--bg) 100%);
}
.hero-body { position: relative; z-index: 2; }
.hero-logo {
  width: min(460px, 100%);
  margin-bottom: 26px;
  filter: drop-shadow(0 6px 26px rgba(201, 162, 58, .3));
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.42;
  color: var(--text);
  margin: 0 0 22px;
  max-width: 17ch;
}
.hero-tagline em {
  font-style: normal;
  color: var(--gold-lit);
  position: relative;
  white-space: nowrap;
}
.hero-tagline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--blood), transparent);
}
.hero-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-2);
  max-width: 46ch;
  margin: 0 0 34px;
  line-height: 2;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 主视觉「门」：登录页美术按原比例立在一侧。
   限高是必须的——源图 1080×1920 竖长比，不限高在 900px 视口下会被切掉底部教堂台阶。 */
.hero-art {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(400px, 100%);
  max-height: min(74vh, 620px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(201, 162, 58, .07) inset;
  background: #000;
  animation: gateIn 1.1s var(--ease) both;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(13, 10, 11, .55));
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================ 数据条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin: clamp(40px, 6vw, 72px) 0 0;
}
.stat {
  background: var(--bg-2);
  padding: 26px 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-lit);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--text-3); letter-spacing: .1em; }

/* ============================================================ 入口卡网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }

.card {
  display: block;
  padding: 34px 30px;
  background: var(--bg-2);
  position: relative;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.card:hover { background: var(--panel); color: inherit; transform: translateY(-3px); }
.card:hover .card-ico { border-color: var(--gold); box-shadow: 0 0 26px rgba(201, 162, 58, .2); }
.card h3 { font-size: 21px; color: var(--text); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-3); margin: 0; line-height: 1.85; }
.card-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  margin-bottom: 20px;
  font-size: 24px;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card-ico img { width: 100%; height: 100%; object-fit: contain; }
.card-en { font-size: 11px; letter-spacing: .26em; color: var(--gold-deep); text-transform: uppercase; }

/* ============================================================ 卖点三联 */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.pillar { padding-top: 26px; border-top: 1px solid var(--line); }
.pillar h3 { font-size: 23px; margin-bottom: 12px; }
.pillar p { color: var(--text-2); font-size: 15px; }
.pillar .pillar-ico { font-size: 30px; margin-bottom: 14px; display: block; }

/* ============================================================ 图鉴 */
.cx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.tab:hover { color: var(--gold-lit); }
.tab.is-active { color: var(--gold-lit); border-bottom-color: var(--gold); }
.tab-n { font-size: 11px; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.tab.is-active .tab-n { color: var(--gold); }

.cx-filter { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.cx-filter input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft);
  outline: none;
}
.cx-filter input:focus { border-color: var(--gold); }
.cx-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }

.cx-panel { display: none; }
.cx-panel.is-active { display: block; }

.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cx-grid-tight { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

.cx-card { background: var(--bg-2); padding: 24px 22px; transition: background .2s var(--ease); }
.cx-card:hover { background: var(--panel); }
.cx-card h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-meta { font-size: 12.5px; color: var(--text-3); letter-spacing: .04em; }
.cx-sum { font-size: 14px; color: var(--text-2); margin: 10px 0; line-height: 1.8; }
.cx-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cx-icon { width: 44px; height: 44px; object-fit: contain; flex: none; }
.cx-emoji { font-size: 26px; flex: none; width: 44px; text-align: center; }
.cx-effect {
  font-size: 14px;
  color: var(--gold-lit);
  border-left: 2px solid var(--gold-deep);
  padding-left: 12px;
  margin: 0 0 12px;
  line-height: 1.75;
}
.cx-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; color: var(--text-2); }
.cx-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(201, 162, 58, .1); }
.cx-list li:last-child { border-bottom: 0; }
.cx-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.cx-pieces { display: flex; gap: 6px; margin-bottom: 16px; }
.cx-piece { width: 40px; height: 40px; object-fit: contain; }
.cx-pieces-list { font-size: 12px; color: var(--text-3); margin-top: 10px; line-height: 1.9; }

.cx-runes { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.cx-rune { width: 40px; height: 40px; object-fit: contain; }
.cx-plus { color: var(--gold-deep); font-size: 15px; }
.cx-rune1 { text-align: center; }
.cx-rune1 .cx-icon { margin: 0 auto 12px; width: 52px; height: 52px; }
.cx-af h3 { font-size: 16px; justify-content: space-between; }
.cx-af .cx-meta { font-size: 12px; }

.tag-rename {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--blood);
  border: 1px solid var(--blood-dim);
  padding: 1px 7px;
  white-space: nowrap;
  cursor: help;
}

.cx-board { margin-bottom: 40px; }
.cx-board > header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cx-board h3 { font-size: 22px; }
.cx-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.cx-node { background: var(--bg-2); border: 1px solid var(--line-soft); padding: 12px 14px; }
.cx-node b { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; }
.cx-node span { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

/* ============================================================ 怪物志 */
.bs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.bs-fam { background: var(--bg-2); border: 1px solid var(--line-soft); padding: 24px; }
.bs-fam-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.bs-fam-head h3 { font-size: 21px; }
.bs-el { font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.bs-mobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bs-mob { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.bs-emoji { font-size: 17px; flex: none; }
.bs-arch { font-size: 11px; color: var(--text-3); margin-left: auto; }
.bs-boss {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 13px 15px;
  background: rgba(200, 52, 47, .08);
  border: 1px solid var(--blood-dim);
}
.bs-boss .bs-emoji { font-size: 24px; }
.bs-tag { display: block; font-size: 10px; letter-spacing: .24em; color: var(--blood); }
.bs-boss b { font-family: var(--serif); font-size: 17px; color: var(--text); }

.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud li {
  font-size: 13.5px; color: var(--text-2);
  border: 1px solid var(--line-soft);
  padding: 5px 14px;
  background: var(--bg-2);
}

.bs-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.bs-ch { margin: 0; border: 1px solid var(--line-soft); background: var(--bg-2); position: relative; overflow: hidden; }
.bs-ch img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; transition: transform .5s var(--ease); filter: saturate(.85) brightness(.85); }
.bs-ch:hover img { transform: scale(1.06); filter: none; }
.bs-ch figcaption { padding: 10px 13px; display: flex; align-items: baseline; gap: 8px; }
.bs-ch figcaption b { font-family: var(--serif); font-size: 14px; color: var(--gold); flex: none; }
.bs-ch figcaption span { font-size: 13px; color: var(--text-2); }

/* ============================================================ 表格 / 步骤 / 清单 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
td { color: var(--text-2); }
tbody tr:hover td { background: rgba(201, 162, 58, .04); color: var(--text); }
td b, td strong { color: var(--gold-lit); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 30px 62px;
  border-left: 1px solid var(--line-soft);
  margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-lit);
  background: var(--bg);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
}
.steps b { display: block; font-family: var(--serif); font-size: 19px; color: var(--text); margin-bottom: 5px; }
.steps span { color: var(--text-2); font-size: 14.5px; }

.card-note {
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold-deep);
  background: rgba(201, 162, 58, .045);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-2);
  margin: 26px 0;
}
.card-note b { color: var(--gold-lit); }

/* ============================================================ 画廊 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line-soft); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(.8) brightness(.8); }
.gallery figure:hover img { transform: scale(1.05); filter: none; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(13, 10, 11, .92));
  font-size: 13px;
  color: var(--text-2);
}
.gallery figcaption b { color: var(--gold-lit); margin-right: 8px; font-family: var(--serif); }

/* ============================================================ 搜索页 */
.search-hero { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 40px; }
.search-big {
  width: min(620px, 100%);
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  outline: none;
  text-align: center;
}
.search-big:focus { border-color: var(--gold); background: rgba(201, 162, 58, .08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line-soft); background: var(--bg-2);
  padding: 5px 14px; cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { color: var(--gold-lit); border-color: var(--line-lit); }
.results { list-style: none; margin: 0; padding: 0; }
.results li { border-bottom: 1px solid var(--line-soft); }
.results a { display: block; padding: 16px 4px; color: inherit; }
.results a:hover { background: rgba(201, 162, 58, .05); }
.results b { font-family: var(--serif); font-size: 17px; color: var(--gold-lit); display: block; margin-bottom: 4px; }
.results span { font-size: 13.5px; color: var(--text-3); }
.results em { font-style: normal; color: var(--text-2); display: block; font-size: 13px; margin-top: 4px; }
.empty { text-align: center; color: var(--text-3); padding: 60px 0; font-size: 15px; }

/* ============================================================ 页脚 */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, .28); margin-top: 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-block: clamp(44px, 6vw, 72px);
}
.foot-brand { font-family: var(--serif); font-size: 22px; color: var(--gold-lit); margin-bottom: 12px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.foot-grid a { display: block; font-size: 14px; color: var(--text-3); padding: 4px 0; }
.foot-grid a:hover { color: var(--gold-lit); }
.foot-grid p { font-size: 13.5px; color: var(--text-3); line-height: 1.9; }
.foot-note { margin: 0; }

.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--panel);
  color: var(--gold-lit);
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), background .2s var(--ease);
  z-index: 70;
  font-size: 17px;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--panel-2); }

/* ============================================================ 入场动效 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================ 响应式 */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { justify-self: start; width: min(340px, 76%); max-height: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; gap: 10px; }
  .nav { order: 3; width: 100%; flex-basis: 100%; padding-bottom: 4px; }
  .head-tools { margin-left: auto; }
  .search-box input { width: 150px; }
  .search-box input:focus { width: 190px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.8; }
  /* 手机上先给标题与按钮，主视觉压成横幅——否则整屏竖长图把首屏文字全顶到折叠线以下 */
  .hero-art {
    order: 2;
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 5 / 3;
    max-height: none;
  }
  .hero-logo { width: min(300px, 78%); }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .search-box input { width: 120px; }
  .bs-mobs { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cx-grid, .grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ── 词条百科（affixes.html）逐条卡 ── */
.entry { margin: 22px 0; padding-left: 14px; border-left: 2px solid var(--gold); }
.entry h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 17px; color: var(--gold-bright); }
.entry .where { margin: 0 0 6px; color: #b3a68b; font-size: 13px; }
.entry p { margin: 0; }

/* ── 图鉴签内分组标签（2026-10-14）── */
.cx-group { display: flex; align-items: baseline; gap: 8px; margin: 30px 0 12px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--gold);
  border-bottom: 1px solid rgba(201, 162, 58, .25); padding-bottom: 7px; }
.cx-group-n { font-size: 11px; letter-spacing: 0; color: #8a7f6a; }

/* ── 长页顶部跳转标签（2026-10-14）── */
.toc-chips { justify-content: flex-start; margin: 20px 0 4px; }
