/* ==========================================================================
   魔兽争霸3地图大全 — 设计系统
   基调：暗黑羊皮纸 + 熔金描边
   禁用：紫色渐变、玻璃拟态、大圆角、高饱和色块
   ========================================================================== */

:root {
  --ink:        #0B0A08;
  --ink-2:      #100E0B;
  --surface:    #14110D;
  --surface-2:  #1A1611;
  --surface-3:  #211C15;

  --gold:       #C8A24A;
  --gold-hi:    #E8C878;
  --gold-dim:   #8A6F35;
  --gold-line:  rgba(200, 162, 74, .22);
  --gold-line-2:rgba(200, 162, 74, .4);

  --parch:      #E8DCC0;
  --parch-2:    #C9BC9E;
  --muted:      #938872;
  --muted-2:    #6E6554;

  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans:  "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --r: 2px;
  --wrap: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parch);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 羊皮纸颗粒 + 暗角，纯 CSS/SVG，无外部资源 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(200,162,74,.07), transparent 65%),
    radial-gradient(900px 600px at 8% 105%, rgba(120,80,40,.09), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(200,162,74,.28); color: #fff; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  margin: 0;
  color: var(--parch);
}

h1 { font-size: clamp(26px, 3.2vw, 40px); }
h2 { font-size: clamp(19px, 1.9vw, 24px); }
h3 { font-size: 17px; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.lede { color: var(--parch-2); font-size: 15.5px; }
.dim { color: var(--muted); }

/* 行内文字链接：默认继承色，只有 .link 才显示为金色下划线 */
.link { color: var(--gold); border-bottom: 1px solid var(--gold-line-2); transition: color .18s var(--ease), border-color .18s var(--ease); }
.link:hover { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }

/* ---------- 首屏：官方壁纸压暗做底 ---------- */
.masthead--hero {
  margin-top: 10px;
  padding: 92px 24px 76px;
  border: 1px solid var(--gold-line);
  background-color: var(--ink);
  background-image: url('/assets/hero/hero-1600.jpg');
  background-size: cover;
  background-position: center 32%;
  position: relative;
  overflow: hidden;
}
/* 左右两侧再压一层，保证长标题不出血 */
.masthead--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(11,10,8,.55) 78%, rgba(11,10,8,.9) 100%),
    linear-gradient(180deg, rgba(11,10,8,.55) 0%, transparent 26%, transparent 62%, rgba(11,10,8,.82) 100%);
  pointer-events: none;
}
.masthead--hero > * { position: relative; z-index: 1; }
.masthead--hero .eyebrow { color: var(--gold-hi); letter-spacing: .26em; }
.masthead--hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 46px rgba(0,0,0,.6); }
.masthead--hero p { text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.masthead--hero .stats { border-top-color: rgba(200,162,74,.28); }
.masthead--hero .stats b { text-shadow: 0 1px 12px rgba(0,0,0,.85); }

@media (max-width: 980px) {
  .masthead--hero {
    background-image: url('/assets/hero/hero-960.jpg');
    padding: 66px 18px 56px;
  }
}
@media (max-width: 620px) {
  .masthead--hero { padding: 48px 14px 44px; }
}

/* ---------- 攻略单页文章 ---------- */
.wrap--narrow { max-width: 780px; }

.ga { padding-top: 8px; }
.ga__head { padding-bottom: 22px; border-bottom: 1px solid var(--gold-line); }
.ga__head h1 {
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.45;
  color: var(--parch);
  margin: 10px 0 14px;
}
.ga__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.ga__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-dim);
}
.ga__lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  color: var(--parch-2);
  margin: 26px 0 8px;
  padding-left: 16px;
  border-left: 2px solid var(--gold-dim);
}
.ga__body { font-size: 15px; line-height: 2.0; color: var(--parch-2); }
.ga__body p { margin: 0 0 18px; }
.ga__h {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--parch);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.ga__h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gold-hi);
  margin: 24px 0 10px;
}
.ga__fig {
  margin: 22px 0 26px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
}
.ga__fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r) - 2px);
  background: var(--ink-2);
}
.ga__fig figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gold-dim);
  text-align: center;
}
.ga__related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
}
.ga__related h2 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-dim);
  letter-spacing: .1em;
  margin: 0 0 14px;
}
.ga__rels { display: flex; flex-wrap: wrap; gap: 8px; }
.ga__rel {
  font-size: 13px;
  color: var(--parch-2);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.ga__rel:hover { border-color: var(--gold-line-2); color: var(--gold-hi); }
.ga__foot { margin-top: 32px; }

@media (max-width: 640px) {
  .ga__lead { font-size: 16px; padding-left: 12px; }
  .ga__body { font-size: 14.5px; line-height: 1.95; }
}

/* ---------- 地图详情：评论区 ---------- */
.cmWrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.cmWrap__list { padding: 8px 4px; }
.cmWrap__form { padding: 22px 24px; }

.cm__list { list-style: none; margin: 0; padding: 0; }
.cm {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(200, 162, 74, .1);
}
.cm:last-child { border-bottom: 0; }
.cm__av {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  color: #0B0A08;
  font-weight: 700;
}
.cm__main { min-width: 0; flex: 1; }
.cm__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.cm__nick { font-size: 13.5px; color: var(--parch); }
.cm__time { font-size: 11.5px; color: var(--muted-2); }
.cm__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--parch-2);
  word-break: break-word;
}
.cm__acts { display: flex; gap: 16px; margin-top: 8px; }
.cm__like, .cm__reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.cm__like:hover, .cm__reply-btn:hover { color: var(--gold-hi); }
.cm__like.is-on { color: var(--gold); }
.cm__heart { font-size: 13px; }
.cm__replies {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--ink-2);
  border-left: 2px solid var(--gold-line-2);
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.8;
  color: var(--parch-2);
}
.cm__reply + .cm__reply { margin-top: 6px; }
.cm__reply b { color: var(--gold-dim); font-weight: 600; }

.cm__empty {
  padding: 26px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.cm-form h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--parch);
  margin: 0 0 8px;
}
.cm-form__note { font-size: 12px; line-height: 1.8; margin: 0 0 16px; }
.cm-form .field { margin-bottom: 14px; }
.cm-form__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-form__out { font-size: 12px; }
.cm-form__out.is-ok { color: var(--gold-hi); }
.cm-form__out.is-bad { color: #C4694A; }

@media (max-width: 900px) {
  .cmWrap { grid-template-columns: 1fr; }
  .cm { padding: 14px 14px; }
  .cmWrap__form { padding: 18px 16px; }
}

/* ---------- 投稿页 ---------- */
.hero--compact { padding: 34px 0 26px; }
.hero--compact h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 12px; }

.submit {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.submit__form { padding: 28px 30px 30px; }
.submit__form h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--parch);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold-dim);
  margin-bottom: 7px;
}
.field .req {
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: .06em;
  border: 1px solid var(--gold-line-2);
  border-radius: var(--r);
  padding: 1px 5px;
  margin-left: 4px;
}
.field input[type=text],
.field input[type=url],
.field input[type=file],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--parch);
  background: var(--ink-2);
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  outline: none;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-line-2);
  background: var(--surface);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input[type=file] { padding: 8px 10px; font-size: 13px; color: var(--muted); }

.submit__tips { font-size: 12px; margin: 7px 0 0; min-height: 1em; }
.submit__tips.is-ok { color: #7FB069; }
.submit__tips.is-bad { color: #C4694A; }

.submit__out { font-size: 13px; margin: 12px 0 0; min-height: 1em; }
.submit__out.is-ok { color: var(--gold-hi); }
.submit__out.is-bad { color: #C4694A; }

.submit__side { display: grid; gap: 16px; }
.submit__side .card { padding: 20px 22px; }
.submit__side h3 {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--parch);
  margin: 0 0 12px;
}
.submit__list {
  margin: 0;
  padding-left: 18px;
  color: var(--parch-2);
  font-size: 13px;
  line-height: 1.9;
}
.submit__list li::marker { color: var(--gold-dim); }
.submit__mail {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--parch-2);
  background: var(--ink-2);
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  resize: vertical;
}

@media (max-width: 900px) {
  .submit { grid-template-columns: 1fr; }
  .submit__form { padding: 22px 20px 24px; }
}

/* ---------- 详情页：多网盘下载容器 ---------- */
.dlp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.dlp {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 16px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  border-top: 2px solid var(--prov, var(--gold-dim));
  border-radius: var(--r);
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.dlp:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
.p-baidu  { --prov: #4E6EF2; }
.p-quark  { --prov: #7A5CF0; }
.p-xunlei { --prov: #2FB3FF; }

.dlp__head { display: flex; align-items: center; gap: 10px; }
.dlp__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--prov, var(--gold));
  border: 1px solid color-mix(in srgb, var(--prov, var(--gold)) 45%, transparent);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--prov, var(--gold)) 12%, transparent);
}
.dlp__icon svg { width: 17px; height: 17px; }
.dlp__name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--parch);
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.dlp__sub {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
  word-break: break-all;
}

.dlp__go {
  display: block;
  text-align: center;
  padding: 9px 14px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-radius: var(--r);
  transition: filter .18s var(--ease);
}
.dlp__go:hover { filter: brightness(1.08); }

.dlp__code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--ink-2);
  border: 1px dashed var(--gold-line);
  border-radius: var(--r);
}
.dlp__code-label {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.dlp__code-val {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--gold-hi);
  flex: 1;
}

.dlp__foot { margin-top: auto; }
.dlp__copy {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 3px 6px;
  cursor: pointer;
  border-radius: var(--r);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.dlp__copy:hover { color: var(--gold-hi); background: rgba(200, 162, 74, .1); }
.dlp__copy--url { width: 100%; text-align: left; }

.dlp__note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold-dim);
  border-radius: var(--r);
}
.dlp__note .dl__path { margin: 0; }

.dl__empty { padding: 24px 26px; }

@media (max-width: 860px) {
  .dlp__grid { grid-template-columns: 1fr; gap: 12px; }
  .dlp { padding: 16px 16px 14px; }
}

/* ---------- 详情页：玩法简介 ---------- */
.intro { padding: 26px 28px; }
.intro__lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.95;
  color: var(--parch-2);
  margin: 0 0 22px;
  max-width: 74ch;
}
.intro__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 24px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
}
.intro__facts > div { min-width: 0; }
.intro__facts dt {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.intro__facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--parch);
  line-height: 1.6;
  word-break: break-word;
}
@media (max-width: 860px) {
  .intro__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .intro { padding: 20px 18px; }
  .intro__lead { font-size: 15px; line-height: 1.85; }
  .intro__facts { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- 素材库：壁纸 / 原声 / 攻略 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wall { display: block; border: 1px solid var(--gold-line); background: var(--surface); position: relative; overflow: hidden; }
.wall img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease), filter .3s var(--ease); filter: saturate(.92); }
.wall:hover img { transform: scale(1.035); filter: saturate(1.05); }
.wall__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--gold-line); }
.wall__cap b { font-family: var(--serif); font-weight: 400; font-size: 14px; color: var(--parch); }
.wall__cap span { font-size: 11px; color: var(--muted-2); font-family: var(--mono); letter-spacing: .04em; }
.wallBig { border: 1px solid var(--gold-line); padding: 8px; background: rgba(0,0,0,.4); }
.wallBig img { display: block; width: 100%; height: auto; }

.ost { display: grid; gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.track { display: grid; grid-template-columns: 46px minmax(0, 1fr) 92px 74px; align-items: center; gap: 14px; padding: 12px 18px; background: var(--surface); transition: background .14s; }
.track:hover { background: var(--surface-2); }
.track__no { font-family: var(--mono); font-size: 12px; color: var(--gold-dim); }
.track__t { font-family: var(--serif); font-size: 14.5px; color: var(--parch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__a { font-size: 11px; color: var(--muted-2); letter-spacing: .1em; }
.track__s { font-size: 11.5px; color: var(--muted); font-family: var(--mono); text-align: right; }
.track audio { grid-column: 1 / -1; width: 100%; height: 34px; margin-top: 2px; filter: sepia(.25) saturate(.7) brightness(.95); }
.albumHead { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-line); }
.albumHead h2 { font-size: 21px; margin: 0; }

.guideGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--gold-line); background: var(--surface); transition: border-color .16s var(--ease), background .16s var(--ease); }
.guide:hover { border-color: var(--gold-line-2); background: var(--surface-2); }
.guide__ext { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gold-line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.guide__t { font-family: var(--serif); font-size: 14.5px; color: var(--parch); line-height: 1.45; }
.guide__m { font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .guideGrid { grid-template-columns: 1fr; }
  .track { grid-template-columns: 34px minmax(0, 1fr) 68px; }
  .track__a { display: none; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
}

/* 分隔线：细金线 + 中央菱形 */
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  border: 0;
  height: 1px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-2), transparent);
}
.rule i {
  width: 5px; height: 5px;
  rotate: 45deg;
  background: var(--gold-dim);
  flex: none;
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,10,8,.86);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--gold-line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line-2);
  background: linear-gradient(160deg, #241D13, #14110D);
  position: relative;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(200,162,74,.16);
}
.brand__mark svg { width: 15px; height: 15px; }

.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__cn {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--parch);
}
.brand__en {
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  padding: 8px 13px;
  font-size: 13.5px;
  color: var(--parch-2);
  border: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--gold-hi); border-color: var(--gold-line); background: rgba(200,162,74,.05); }
.nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold-line); }

.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-width: 200px;
  border: 1px solid var(--gold-line);
  background: rgba(0,0,0,.3);
  color: var(--muted);
  font-size: 13px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.topbar__search:hover { border-color: var(--gold-line-2); color: var(--parch-2); }
.topbar__search kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--gold-line);
  color: var(--muted-2);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.crumbs a { color: var(--muted); transition: color .16s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span.sep { color: var(--muted-2); opacity: .6; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  border: 1px solid var(--gold-dim);
  color: var(--gold-hi);
  background:
    linear-gradient(180deg, rgba(200,162,74,.14), rgba(200,162,74,.04));
  transition: all .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  color: #1A1509;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-hi);
  box-shadow: 0 0 28px -8px rgba(200,162,74,.6);
}
.btn--ghost {
  background: transparent;
  color: var(--parch-2);
  border-color: var(--gold-line);
}
.btn--ghost:hover {
  color: var(--gold-hi);
  background: rgba(200,162,74,.07);
  border-color: var(--gold-line-2);
  box-shadow: none;
}
.btn--sm { padding: 8px 15px; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- 标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--parch-2);
  border: 1px solid var(--gold-line);
  background: rgba(200,162,74,.045);
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--gold-line-2); color: var(--gold-hi); }
.chip--solid { background: rgba(200,162,74,.14); color: var(--gold-hi); border-color: var(--gold-line-2); }
.chip--mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  position: relative;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
/* 卡片四角装饰 */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--gold-dim);
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.card::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
a.card:hover { border-color: var(--gold-line-2); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); }
a.card:hover::before, a.card:hover::after { opacity: .9; }

/* ---------- 封面 ---------- */
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
  isolation: isolate;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(11,10,8,.55) 82%, rgba(11,10,8,.92)),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(11,10,8,.5));
}
a:hover > .cover img, a.card:hover .cover img { transform: scale(1.045); filter: saturate(1.06) brightness(1.05); }

/* 程序化兜底图版：无封面时使用 */
.cover--gen {
  display: grid;
  place-items: center;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(135deg, rgba(200,162,74,.09), transparent 55%),
    repeating-linear-gradient(45deg, rgba(200,162,74,.035) 0 1px, transparent 1px 9px);
}
.cover--gen::before {
  content: attr(data-glyph);
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 62px);
  color: rgba(200,162,74,.2);
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  letter-spacing: .06em;
  z-index: 1;
}
.cover--gen i {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200,162,74,.14);
  z-index: 1;
}

.cover--real::before {
  content: "实拍地形";
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .16em;
  padding: 2px 7px;
  color: #1A1509;
  background: rgba(232,200,120,.92);
}

/* ---------- 页头（详情页） ---------- */
.hero { padding: 22px 0 34px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.hero__art { border: 1px solid var(--gold-line); padding: 6px; background: rgba(0,0,0,.35); }
.hero__art .cover { aspect-ratio: 16 / 9; }

.hero__meta { display: flex; flex-direction: column; gap: 20px; }

.hero h1 { margin-top: 2px; word-break: break-word; }

.metaList { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.metaList div { background: var(--surface); padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.metaList dt { font-size: 10.5px; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
.metaList dd { margin: 0; font-size: 14px; color: var(--parch); }
.metaList dd a { color: var(--gold); border-bottom: 1px solid rgba(200,162,74,.3); }
.metaList dd a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* ---------- 下载区 ---------- */
.section { padding: 44px 0; }
.section--tight { padding: 30px 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section__head h2 { display: flex; align-items: center; gap: 12px; }
.section__head h2::before {
  content: "";
  width: 3px; height: 18px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-dim));
}

.dl {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  align-items: start;
}
.dl__main { padding: 26px; }
.dl__path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 11px 13px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--gold-line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--parch-2);
  word-break: break-all;
}
.dl__path button {
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  font-size: 11px;
  border: 1px solid var(--gold-line);
  color: var(--muted);
  transition: all .16s;
}
.dl__path button:hover { color: var(--gold-hi); border-color: var(--gold-line-2); }

.dl__steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 9px; }
.dl__steps li {
  counter-increment: s;
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--parch-2);
}
.dl__steps li::before {
  content: counter(s);
  flex: none;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  border: 1px solid var(--gold-line-2);
  margin-top: 1px;
}

.dl__side {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl__side h3 { font-size: 15px; }
.dl__side .dim { font-size: 12.5px; line-height: 1.7; }

/* ---------- 表格 ---------- */
.tableWrap { border: 1px solid var(--gold-line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left;
  padding: 11px 16px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--gold-line);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(200,162,74,.09);
  color: var(--parch-2);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(200,162,74,.035); color: var(--parch); }
td.v { font-family: var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
td.f { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
td.s { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.tile { display: flex; flex-direction: column; }
.tile__body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tile__title {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--parch);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.tile__foot .v { font-family: var(--mono); color: var(--gold-dim); }

/* ---------- 首页 ---------- */
.masthead {
  padding: 66px 0 52px;
  text-align: center;
  position: relative;
}
.masthead h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  letter-spacing: .1em;
  margin: 16px 0 0;
  background: linear-gradient(178deg, #F3E7C8 8%, #C8A24A 62%, #8A6F35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.masthead p { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 14.5px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.stats div { padding: 20px 10px; text-align: center; border-left: 1px solid var(--gold-line); }
.stats div:first-child { border-left: 0; }
.stats b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.2;
}
.stats span { font-size: 11px; letter-spacing: .2em; color: var(--muted-2); }

/* 大搜索 */
.searchBox { max-width: 660px; margin: 34px auto 0; position: relative; }
.searchBox input {
  width: 100%;
  padding: 17px 54px 17px 20px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--parch);
  background: rgba(0,0,0,.45);
  border: 1px solid var(--gold-line-2);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.searchBox input::placeholder { color: var(--muted-2); }
.searchBox input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(200,162,74,.25), 0 12px 40px -20px rgba(200,162,74,.5);
}
.searchBox .ico {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  pointer-events: none;
}

/* 分类磁贴 */
.catGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(120deg, rgba(200,162,74,.055), transparent 60%);
  position: relative;
  overflow: hidden;
  transition: all .2s var(--ease);
}
.cat::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--acc, var(--gold-dim));
  opacity: .75;
  transition: width .2s var(--ease);
}
.cat:hover { border-color: var(--gold-line-2); background: linear-gradient(120deg, rgba(200,162,74,.11), transparent 65%); }
.cat:hover::after { width: 4px; }
.cat__n {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--acc, var(--gold));
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.cat__t { font-family: var(--serif); font-size: 15.5px; color: var(--parch); }
.cat__s { font-size: 11px; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 60px;
  border-top: 1px solid var(--gold-line);
  padding: 40px 0 46px;
  background: rgba(0,0,0,.3);
}
.foot__in { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot__col { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.foot__col b { color: var(--parch-2); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.foot__col a:hover { color: var(--gold); }
.foot__bot { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(200,162,74,.1); font-size: 12px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold-dim);
  background: rgba(200,162,74,.045);
  font-size: 13px;
  color: var(--parch-2);
}
.notice b { color: var(--gold); font-weight: 500; }

/* ---------- 搜索页 ---------- */
.searchPage { padding: 40px 0 70px; }
.searchPage h1 { margin-bottom: 22px; }
.results { margin-top: 26px; display: grid; gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: var(--surface);
  transition: background .14s;
}
.result:hover { background: var(--surface-2); }
.result__t { font-family: var(--serif); font-size: 14.5px; color: var(--parch); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__t mark { background: none; color: var(--gold-hi); border-bottom: 1px solid var(--gold-dim); }
.result__c { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.result:hover .result__t { color: var(--gold-hi); }
.empty { padding: 50px 0; text-align: center; color: var(--muted-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .dl { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 30px); }
  .topbar__in { height: 56px; gap: 14px; }
  .nav { display: none; }
  .topbar__search { min-width: 0; flex: 1; justify-content: flex-end; }
  .topbar__search span { display: none; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--2 { grid-template-columns: 1fr; }
  .catGrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--gold-line); }
  .metaList { grid-template-columns: 1fr; }
  .masthead { padding: 44px 0 34px; }
  .section { padding: 32px 0; }
  .dl__main, .dl__side { padding: 18px; }
  .foot__in { flex-direction: column; gap: 22px; }
  body { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
