/* ============================================================
   崔斯特姆典藏馆 · 视觉系统
   ============================================================ */

:root {
  --bg: #080706;
  --bg-2: #0d0b08;
  --panel: #12100c;
  --panel-2: #17130e;
  --ink: #e9e0cf;
  --ink-dim: #c5b8a3;
  --muted: #948773;
  --muted-2: #6f6454;
  --gold: #c9a35c;
  --gold-bright: #e8cd93;
  --gold-dim: #7c6438;
  --line: rgba(201, 163, 92, .16);
  --line-strong: rgba(201, 163, 92, .34);
  --blood: #8f1f22;
  --green: #6fcf8a;
  --orange: #e09045;
  --violet: #b07ad8;
  --blue: #5aa9e6;
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1240px;
  --pad: 24px;
  --shadow: 0 28px 70px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.is-locked { overflow: hidden; }

#main:focus { outline: none; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 760px at 82% -8%, rgba(120, 30, 26, .13), transparent 62%),
    radial-gradient(900px 620px at -6% 24%, rgba(201, 163, 92, .055), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .45) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(201, 163, 92, .28);
  color: #fff6e4;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0806; }
::-webkit-scrollbar-thumb {
  background: #2c251a;
  border: 2px solid #0a0806;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #4a3c27; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: #160f05;
  font-size: 12px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* ---------------- 页头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 7, 6, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(160, 40, 34, .45));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-cn {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .14em;
  color: var(--ink);
}
.brand-en {
  font-size: 8px;
  letter-spacing: .34em;
  color: var(--gold-dim);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--muted);
  padding: 6px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .25s;
}
.nav a:hover { color: var(--gold-bright); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--gold-bright); }
.nav a.is-active::after { width: 100%; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted-2);
  padding-left: 28px;
  border-left: 1px solid var(--line);
  flex: none;
}
.header-meta__sep { opacity: .4; }
.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9a2a24;
  box-shadow: 0 0 0 0 rgba(180, 50, 40, .5);
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 50, 40, .45); }
  70% { box-shadow: 0 0 0 6px rgba(180, 50, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 50, 40, 0); }
}

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: min(860px, 94vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 520px at 72% 46%, rgba(130, 28, 24, .2), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .3));
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  top: 42%;
  left: 68%;
  width: 54%;
  height: 58%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(150, 40, 32, .2), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 90px 0 80px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 30px;
}

.hero-copy { max-width: 650px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .38em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
  display: inline-block;
}

.hero-h1 { margin: 0 0 26px; }
.hero-h1-cn {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.2vw, 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #f7e8c6 0%, #d9ba7c 46%, #9a7638 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .55));
}
.hero-h1-en {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .58em;
  color: var(--gold-dim);
  padding-left: 4px;
}

.hero-lede {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted-2);
}
.hero-meta .sep { color: var(--gold-dim); opacity: .6; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: fadeIn 1.4s .25s both;
}

.soulstone {
  width: 88%;
  height: auto;
  animation: float 10s ease-in-out infinite;
  filter: drop-shadow(0 0 38px rgba(140, 30, 26, .35));
  position: relative;
  z-index: 2;
}

.soulstone-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.soulstone-orbit--outer {
  inset: 1%;
  border: 1px dashed rgba(201, 163, 92, .14);
  animation: spin 80s linear infinite;
}
.soulstone-orbit--inner {
  inset: 11%;
  border: 1px solid rgba(201, 163, 92, .09);
  animation: spin 55s linear infinite reverse;
}
.soulstone-orbit--outer::before,
.soulstone-orbit--inner::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 163, 92, .7);
}
.soulstone-orbit--inner::before {
  top: 50%;
  left: -2px;
  width: 4px;
  height: 4px;
}

.rune-ring { transform-origin: 210px 210px; animation: spin 120s linear infinite; }

.hero-art-label {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: .52em;
  color: var(--muted-2);
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------- 统计带 ---------------- */
.stat-band {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: 0; }
.stat-cell strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-bright);
  letter-spacing: .04em;
}
.stat-cell span {
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--muted-2);
}

/* ---------------- 区块 ---------------- */
.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
}
.section-note {
  max-width: 440px;
  text-align: right;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
  cursor: pointer;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { color: var(--gold-bright); border-bottom-color: var(--gold-dim); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn-gold {
  background: linear-gradient(180deg, #dfbd7e 0%, #c9a35c 52%, #ae8a45 100%);
  color: #1a1205;
  border-color: #e4c78c;
  box-shadow: inset 0 1px 0 rgba(255, 245, 219, .55), 0 8px 26px rgba(201, 163, 92, .13);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #ecd099 0%, #d8b46c 52%, #bd9750 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 245, 219, .65), 0 12px 32px rgba(201, 163, 92, .2);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--gold-bright);
  background: rgba(201, 163, 92, .03);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 163, 92, .09);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 14px; font-size: 10px; letter-spacing: .12em; }
.btn-chevron { width: 13px !important; height: 13px !important; transition: transform .3s; }
.btn[aria-expanded="true"] .btn-chevron { transform: rotate(180deg); }

.fav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.fav-btn .icon { width: 17px; height: 17px; }
.fav-btn:hover { color: var(--gold-bright); border-color: var(--line); background: rgba(201, 163, 92, .05); }
.fav-btn.is-active { color: var(--gold-bright); }
.fav-btn.is-active .icon-bookmark path { fill: rgba(232, 205, 147, .18); }

/* ---------------- 职业 ---------------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.class-card {
  position: relative;
  min-height: 232px;
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(140px 100px at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(0, 0, 0, .18));
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.class-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: .45;
  transition: opacity .3s;
}
.class-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45), 0 0 34px color-mix(in srgb, var(--c) 10%, transparent);
}
.class-card:hover::before { opacity: 1; }
.class-card__num {
  position: absolute;
  top: 11px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted-2);
  opacity: .6;
}
.class-medallion {
  width: 62px;
  height: 62px;
  margin: 12px 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 50%;
  color: var(--c);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .6), 0 0 22px color-mix(in srgb, var(--c) 8%, transparent);
}
.class-medallion .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.class-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .14em;
  color: var(--ink);
  line-height: 1.3;
}
.class-card__en {
  font-size: 7px;
  letter-spacing: .24em;
  color: var(--muted-2);
  margin-top: 5px;
  text-transform: uppercase;
}
.class-card__res {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
}
.class-card__arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--c);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
}
.class-card__arrow .icon { width: 15px; height: 15px; }
.class-card:hover .class-card__arrow { opacity: .9; transform: translateX(0); }

/* ---------------- 推荐流派 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(0, 0, 0, .2));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: .7;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 48%, transparent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}
.feature-watermark {
  position: absolute;
  right: -6px;
  bottom: 28px;
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: .04em;
  color: #fff;
  opacity: .025;
  pointer-events: none;
  white-space: nowrap;
}
.feature-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.feature-class {
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--c);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 31px;
  letter-spacing: .08em;
  font-weight: 600;
}
.feature-en {
  font-size: 8px;
  letter-spacing: .26em;
  color: var(--muted-2);
  margin-top: 5px;
  text-transform: uppercase;
}
.feature-tag {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.8;
}
.feature-gear {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.feature-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
}
.feature-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}
.feature-go .icon { width: 14px; height: 14px; }

/* ---------------- 馆藏三卷 ---------------- */
.codex-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.codex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.codex-feature {
  position: relative;
  padding: 34px 30px 30px;
  background: var(--bg);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: background .3s;
}
.codex-feature:hover { background: #0e0b08; }
.codex-numeral {
  position: absolute;
  top: 20px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: var(--gold);
  opacity: .1;
}
.codex-icon {
  width: 34px;
  height: 34px;
  color: var(--gold-dim);
  margin-bottom: 22px;
}
.codex-icon .icon { width: 100%; height: 100%; stroke-width: 1.2; }
.codex-feature h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: 12px;
}
.codex-feature p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 22px;
}
.codex-feature .text-link { margin-top: auto; align-self: flex-start; }

/* ---------------- 誓词 ---------------- */
.oath {
  position: relative;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(600px 260px at 50% 50%, rgba(130, 30, 26, .12), transparent 70%);
}
.oath-ornament { color: var(--gold-dim); font-size: 18px; margin-bottom: 24px; }
.oath-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--ink);
}
.oath-rule {
  width: 70px;
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ---------------- 页面标题 ---------------- */
.page-hero {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 78px 0 46px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero .lede {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted-2);
}
.page-hero-meta b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold-bright);
  margin-right: 5px;
}

/* ---------------- 筛选 ---------------- */
.filter-panel {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 30px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 163, 92, .035), transparent 40%),
    rgba(12, 10, 7, .62);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.search-box {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .3);
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 163, 92, .15), inset 0 0 24px rgba(201, 163, 92, .035);
}
.search-icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .04em;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box kbd {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  line-height: 1.4;
}
.result-count {
  flex: none;
  min-width: 110px;
  text-align: right;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted-2);
}
.result-count b {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--gold-bright);
  margin-right: 5px;
  font-weight: 500;
}

.filter-groups { margin-top: 20px; display: grid; gap: 13px; }
.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.filter-label {
  flex: none;
  width: 40px;
  padding-top: 5px;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 5px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--gold-bright); background: rgba(201, 163, 92, .05); }
.chip.is-active {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(201, 163, 92, .08);
}

.filter-group--selects { justify-content: flex-end; gap: 12px; }
.select-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted-2);
}
.select-wrap select {
  appearance: none;
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 50%, var(--gold-dim) 50%) calc(100% - 14px) 52% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--gold-dim) 50%, transparent 50%) calc(100% - 9px) 52% / 5px 5px no-repeat,
    rgba(0, 0, 0, .32);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
}
.select-wrap select:focus { outline: 1px solid var(--gold); }

/* ---------------- 装备卡 ---------------- */
.results-section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding-bottom: 90px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 15px;
}

.codex-card {
  --accent: var(--gold);
  position: relative;
  min-height: 306px;
  padding: 19px 20px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .2));
  cursor: pointer;
  overflow: hidden;
  transition: transform .28s, border-color .28s, box-shadow .28s, background .28s;
}
.codex-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-right: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  opacity: .5;
  transition: width .3s, height .3s, opacity .3s;
}
.codex-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .48), 0 0 30px color-mix(in srgb, var(--accent) 7%, transparent);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(0, 0, 0, .18));
}
.codex-card:hover::after { width: 48px; height: 48px; opacity: 1; }
.codex-card:focus-visible { border-color: var(--accent); }

.codex-card--set { --accent: var(--green); }
.codex-card--legendary { --accent: var(--orange); }
.codex-card--gem { --accent: var(--violet); }
.codex-card--crafted { --accent: #d6c06a; }

.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.card-top .fav-btn { margin-left: auto; }

.slot-seal {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--gold)) 40%, transparent);
  background: radial-gradient(circle at 50% 30%, rgba(201, 163, 92, .1), transparent 70%);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}
.slot-seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 163, 92, .13);
  pointer-events: none;
}

.rarity-tag {
  font-size: 9px;
  letter-spacing: .22em;
  padding: 3px 8px;
  border: 1px solid currentColor;
  opacity: .85;
  line-height: 1.4;
}
.rarity-tag--set { color: var(--green); }
.rarity-tag--legendary { color: var(--orange); }
.rarity-tag--gem { color: var(--violet); }
.rarity-tag--crafted { color: #d6c06a; }

.card-main { display: flex; flex-direction: column; flex: 1; }
.card-kicker {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted-2);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--ink);
}
.card-en {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted-2);
  margin-top: 4px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-effect {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.set-bonus-preview {
  display: grid;
  gap: 4px;
  margin-top: 13px;
}
.set-bonus-preview > span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.set-bonus-preview b {
  flex: none;
  width: 28px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--green);
  line-height: 1.75;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  min-height: 36px;
}
.piece-dots { display: flex; gap: 3px; flex: none; }
.piece-dots i {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: 1px solid color-mix(in srgb, var(--green) 65%, transparent);
  background: color-mix(in srgb, var(--green) 20%, transparent);
}
.card-foot__tag {
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-foot .tier-seal { margin-left: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card-tags span {
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 6px;
}
.cube-mark {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--gold-dim);
  border: 1px solid rgba(201, 163, 92, .16);
  padding: 2px 7px;
  white-space: nowrap;
}
.cube-mark--gem { color: var(--violet); border-color: rgba(176, 122, 216, .22); }

.tier-seal {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: linear-gradient(140deg, rgba(201, 163, 92, .18), rgba(201, 163, 92, .02));
  box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 4px rgba(201, 163, 92, .18);
}
.tier--a {
  border-color: #aeb7c0;
  color: #d6dde3;
  background: linear-gradient(140deg, rgba(174, 183, 192, .16), rgba(174, 183, 192, .02));
  box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 4px rgba(174, 183, 192, .16);
}
.tier--b {
  border-color: #b47c4c;
  color: #d8a06b;
  background: linear-gradient(140deg, rgba(180, 124, 76, .16), rgba(180, 124, 76, .02));
  box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 4px rgba(180, 124, 76, .16);
}
.tier-seal--small {
  width: 25px;
  height: 25px;
  font-size: 11px;
  box-shadow: inset 0 0 0 2px var(--bg-2), inset 0 0 0 3px rgba(201, 163, 92, .16);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 78px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, .14);
}
.empty-sigil {
  display: block;
  font-size: 30px;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 24px;
}
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.empty-state--large {
  width: min(100% - 48px, var(--max));
  margin: 20px auto 100px;
  padding: 100px 24px;
}

/* ---------------- 职业页 ---------------- */
.class-page {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding-top: 26px;
}

.class-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
  scrollbar-width: none;
}
.class-rail::-webkit-scrollbar { display: none; }
.rail-item {
  position: relative;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  color: var(--muted-2);
  transition: color .25s, background .25s;
}
.rail-item:last-child { border-right: 0; }
.rail-item .icon { width: 25px; height: 25px; stroke-width: 1.4; }
.rail-name { font-size: 10px; letter-spacing: .12em; }
.rail-item::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 1px;
  background: var(--rc);
  opacity: 0;
  transition: opacity .25s;
}
.rail-item:hover { color: var(--ink-dim); background: rgba(255, 255, 255, .015); }
.rail-item.is-active { color: var(--rc); background: radial-gradient(120px 60px at 50% 100%, color-mix(in srgb, var(--rc) 12%, transparent), transparent 70%); }
.rail-item.is-active::after { opacity: 1; }

.class-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
  align-items: center;
  padding: 18px 0 46px;
  border-bottom: 1px solid var(--line);
}
.class-banner__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 6.4vw, 82px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.class-epithet {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  color: var(--c);
}
.class-banner .lede {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.class-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.meta-pill {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  background: rgba(201, 163, 92, .03);
}
.class-banner__emblem {
  position: relative;
  justify-self: center;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  color: var(--c);
}
.class-banner__emblem .icon {
  width: 128px;
  height: 128px;
  stroke-width: .9;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 35%, transparent));
}
.emblem-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 12%, transparent), transparent 68%);
}
.emblem-halo::before,
.emblem-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c) 18%, transparent);
}
.emblem-halo::before { inset: 9%; }
.emblem-halo::after { inset: -9%; border-style: solid; opacity: .4; }
.emblem-en {
  position: absolute;
  bottom: 2px;
  font-size: 7px;
  letter-spacing: .4em;
  color: var(--muted-2);
}

.class-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.class-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.class-stat:first-child { padding-left: 0; }
.class-stat:last-child { border-right: 0; }
.class-stat__label {
  font-size: 10px;
  letter-spacing: .19em;
  color: var(--muted-2);
  white-space: nowrap;
}
.class-stat__hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  margin-left: auto;
}
.pips { display: inline-flex; gap: 4px; }
.pips i {
  width: 15px;
  height: 3px;
  background: rgba(201, 163, 92, .1);
  transition: background .3s;
}
.pips i.on { background: var(--c, var(--gold)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--gold)) 40%, transparent); }

.builds-section { padding-top: 64px; }
.build-list { display: grid; gap: 16px; }

.build-card {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--c) 4%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(0, 0, 0, .16));
  overflow: hidden;
}
.build-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--c), transparent);
  opacity: .55;
}
.build-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
}
.build-tier { padding-top: 2px; }
.build-kicker {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted-2);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.build-title h3 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
}
.build-tagline {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .03em;
}
.build-actions { display: flex; align-items: center; gap: 8px; }

.build-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
}
.build-meta em {
  display: inline-block;
  margin-right: 7px;
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.build-detail {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: detailIn .35s ease both;
}
@keyframes detailIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.build-summary {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-dim);
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  margin-bottom: 24px;
}

.build-columns {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 18px;
  align-items: start;
}
.gear-panel {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  padding: 18px 20px 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h4,
.side-block h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.build-progress { display: flex; align-items: center; gap: 9px; font-size: 9px; color: var(--muted-2); }
.progress-track {
  display: block;
  width: 85px;
  height: 3px;
  background: rgba(201, 163, 92, .12);
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width .35s ease;
}
.gear-list { display: flex; flex-direction: column; }
.gear-row {
  display: grid;
  grid-template-columns: 24px 1fr 28px;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(201, 163, 92, .09);
  transition: opacity .2s;
}
.gear-row:last-child { border-bottom: 0; }
.gear-row.is-checked { opacity: .52; }
.gear-seal {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 92, .2);
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--gold-dim);
}
.gear-info { min-width: 0; display: flex; flex-direction: column; }
.gear-slot {
  font-size: 8.5px;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-transform: uppercase;
  line-height: 1.4;
}
.gear-item {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
button.gear-item:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.gear-item.is-muted { color: var(--muted-2); cursor: default; }
.gear-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.gear-check .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.gear-check:hover { border-color: var(--gold); color: var(--gold-dim); }
.gear-check.is-checked { color: #1a1205; background: var(--gold); border-color: var(--gold); }
.gear-check:disabled { opacity: .25; cursor: not-allowed; }
.gear-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-2);
}
.text-btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
}
.text-btn:hover { color: var(--gold-bright); border-bottom-color: var(--gold-dim); }

.build-side { display: grid; gap: 12px; }
.side-block {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .16);
  padding: 16px 18px;
}
.side-block h4 { margin-bottom: 13px; }
.skill-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.skill-label {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.skill-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-dim);
  padding: 2px 0;
}
.skill-index {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(201, 163, 92, .2);
  border-radius: 50%;
  font-size: 8px;
  color: var(--gold-dim);
}
.skill-list li.is-primary { color: var(--gold-bright); }
.skill-primary {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid rgba(201, 163, 92, .28);
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
.passive-list li {
  position: relative;
  padding: 2px 0 2px 12px;
  font-size: 13px;
  color: var(--ink-dim);
}
.passive-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--gold-dim);
}
.gem-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gem-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(176, 122, 216, .22);
  background: rgba(176, 122, 216, .045);
  color: var(--ink-dim);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.gem-chip:hover { color: #e2c6f4; border-color: rgba(176, 122, 216, .55); background: rgba(176, 122, 216, .09); }
.gem-dot {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #d8b0f0, #7a3fa8);
  box-shadow: 0 0 8px rgba(176, 122, 216, .4);
}
.cube-list { display: grid; gap: 5px; }
.cube-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .2s;
}
.cube-row:hover { color: var(--gold-bright); }
.cube-seal {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(201, 163, 92, .22);
  font-size: 8px;
  color: var(--gold-dim);
}

.build-lower {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
  margin-top: 12px;
}
.affix-list { display: flex; flex-wrap: wrap; gap: 6px; }
.affix {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-dim);
}
.affix b {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  color: var(--gold-dim);
}
.rotation { counter-reset: step; display: grid; gap: 8px; }
.rotation li {
  position: relative;
  counter-increment: step;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-dim);
}
.rotation li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--gold);
}
.build-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.build-foot__note { font-size: 10px; color: var(--muted-2); line-height: 1.6; }

/* ---------------- 其他装备 ---------------- */
.extras-section { padding-top: 0; }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.extra-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.extra-card:hover { border-color: color-mix(in srgb, var(--ec) 45%, transparent); background: rgba(255, 255, 255, .018); }
.extra-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.extra-name { font-size: 13px; color: var(--ink-dim); }
.extra-effect {
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.extra-arrow { width: 14px; height: 14px; color: var(--muted-2); margin-top: 3px; }
.extra-card:hover .extra-arrow { color: var(--ec); }

/* ---------------- 收藏匣 ---------------- */
.collection-actions {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0 0 20px;
}
.collection-section { padding-top: 0; padding-bottom: 54px; }
.saved-build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.saved-build {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--c) 6%, transparent), rgba(0, 0, 0, .12));
  transition: border-color .25s, transform .25s;
}
.saved-build:hover { border-color: color-mix(in srgb, var(--c) 42%, transparent); transform: translateY(-2px); }
.saved-build__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.saved-build__class { font-size: 9px; letter-spacing: .16em; color: var(--muted-2); }
.saved-build__name { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; }
.saved-build__progress { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 9px; color: var(--muted-2); }
.saved-arrow { width: 16px; height: 16px; color: var(--c); opacity: .6; }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.saved-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.saved-kicker { font-size: 9px; letter-spacing: .12em; color: var(--muted-2); }
.saved-name {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-name:hover { color: var(--gold-bright); }

/* ---------------- 攻略 ---------------- */
.guide-index-hero { padding-bottom: 38px; }
.guide-index-wrap {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding-bottom: 90px;
}

.guide-path {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.guide-path__copy h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.guide-path__copy p {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-2);
}
.guide-path__steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-path__step {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .16);
  transition: border-color .25s, background .25s, transform .25s;
}
.guide-path__step:hover {
  border-color: var(--line-strong);
  background: rgba(201, 163, 92, .045);
  transform: translateY(-2px);
}
.guide-path__num {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-dim);
  flex: none;
}
.guide-path__body { display: flex; flex-direction: column; min-width: 0; }
.guide-path__body strong { font-size: 13px; color: var(--ink-dim); }
.guide-path__body em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-path__step .icon { width: 14px; height: 14px; color: var(--gold-dim); margin-left: auto; }
.guide-path__line { width: 16px; height: 1px; background: var(--line-strong); flex: none; }

.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 16px;
}
.guide-count {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted-2);
  white-space: nowrap;
}
.guide-count b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-bright);
  margin-right: 3px;
}

.guide-featured {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-top-color: rgba(201, 163, 92, .45);
  background:
    linear-gradient(120deg, rgba(201, 163, 92, .07), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, .024), rgba(0, 0, 0, .18));
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.guide-featured[hidden] { display: none; }
.guide-featured:hover {
  border-color: rgba(201, 163, 92, .5);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .42);
}
.guide-featured__flag {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--gold);
  border: 1px solid rgba(201, 163, 92, .28);
  padding: 3px 8px;
}
.guide-featured__num {
  font-family: var(--font-display);
  font-size: 82px;
  line-height: 1;
  color: var(--gold);
  opacity: .18;
  justify-self: center;
}
.guide-featured__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.guide-card__meta {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.guide-featured__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.3;
  color: var(--ink);
}
.guide-featured__summary {
  max-width: 820px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.guide-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--gold);
}
.guide-featured__cta .icon { width: 14px; height: 14px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(201, 163, 92, .035), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(0, 0, 0, .18));
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.guide-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .42);
}
.guide-card__num {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: .055;
  pointer-events: none;
}
.guide-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-cat {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--gold);
}
.guide-cat--basics { color: var(--gold); }
.guide-cat--season { color: var(--green); }
.guide-cat--gear { color: var(--orange); }
.guide-cat--push { color: #c9553d; }
.guide-cat--system { color: var(--blue); }
.guide-card__time { font-size: 9px; color: var(--muted-2); white-space: nowrap; }
.guide-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--ink);
  margin: 16px 0 10px;
}
.guide-card__summary {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__tags { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 14px; margin-top: auto; }
.guide-card__tags i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: .06em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.guide-card__more {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--gold);
}
.guide-card__more .icon { width: 14px; height: 14px; }

/* 攻略详情 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
  background: rgba(0, 0, 0, .2);
}
.reading-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: transform .12s linear;
}

.guide-detail-hero {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-bright); }
.guide-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.15;
  margin: 8px 0 18px;
}
.guide-detail-summary {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.guide-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.guide-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.guide-detail-tags i {
  font-style: normal;
  color: var(--gold-dim);
  border: 1px solid rgba(201, 163, 92, .18);
  padding: 2px 7px;
}

.guide-layout {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 44px 0 100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 60px;
  justify-content: start;
  align-items: start;
}
.guide-aside { position: sticky; top: 108px; align-self: start; }
.guide-aside__label {
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 12px;
}
.guide-toc {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.guide-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 5px;
  padding: 6px 0 6px 12px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-2);
  transition: color .2s, border-color .2s, background .2s;
}
.guide-toc a span {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--gold-dim);
  padding-top: 1px;
}
.guide-toc a:hover { color: var(--gold-bright); background: rgba(201, 163, 92, .035); }
.guide-toc a.is-active {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: rgba(201, 163, 92, .05);
}
.guide-share { width: 100%; margin-top: 20px; }
.guide-share .icon { width: 13px; height: 13px; }
.guide-back {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted-2);
}
.guide-back .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.guide-back:hover { color: var(--gold-bright); }

.guide-toc-mobile { display: none; }

.guide-article {
  min-width: 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-dim);
}
.guide-article > p { margin: 16px 0; }
.guide-article strong { color: var(--ink); font-weight: 600; }
.guide-article code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .86em;
  color: var(--gold-bright);
  background: rgba(201, 163, 92, .07);
  border: 1px solid rgba(201, 163, 92, .14);
  padding: 1px 5px;
}
.guide-h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 44px 0 16px;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: 108px;
}
.guide-h2__num {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--gold-dim);
}
.guide-h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
.guide-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.guide-list li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-dim);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--gold-dim);
}
.guide-checklist {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-dim);
}
.guide-checklist .icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--gold);
}
.guide-steps {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  counter-reset: none;
}
.guide-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.guide-step__num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--gold);
}
.guide-steps strong { display: block; font-size: 14px; color: var(--ink); }
.guide-steps p { margin: 3px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.guide-callout {
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 163, 92, .04);
}
.guide-callout--warn {
  border-left-color: #b5533d;
  background: rgba(181, 83, 61, .055);
}
.guide-callout__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--gold);
}
.guide-callout--warn .guide-callout__label { color: #d58068; }
.guide-callout__label .icon { width: 13px; height: 13px; }
.guide-callout strong { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink); }
.guide-callout p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.guide-table-wrap {
  margin: 20px 0;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.guide-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
  background: rgba(201, 163, 92, .045);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.guide-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(201, 163, 92, .07);
  color: var(--muted);
  line-height: 1.7;
  vertical-align: top;
}
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { color: var(--ink-dim); }
.guide-quote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 163, 92, .035);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
}
.guide-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
  transition: border-color .2s, background .2s;
}
.guide-link:hover { border-color: var(--line-strong); background: rgba(201, 163, 92, .04); }
.guide-link > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-link strong { font-size: 12px; color: var(--ink-dim); line-height: 1.5; }
.guide-link em { font-style: normal; font-size: 8px; letter-spacing: .08em; color: var(--gold-dim); }
.guide-link .icon { width: 14px; height: 14px; color: var(--gold-dim); }

.guide-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.guide-article-tags span {
  font-size: 9px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.guide-inline-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
}
.guide-inline-share:hover { color: var(--gold-bright); }
.guide-inline-share .icon { width: 12px; height: 12px; }

.guide-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.guide-related h2 {
  margin: 6px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .05em;
}
.guide-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guide-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
  transition: border-color .2s, transform .2s;
}
.guide-mini:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.guide-mini strong { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-dim); }
.guide-mini__more { margin-top: auto; font-size: 9px; color: var(--gold); display: flex; align-items: center; gap: 5px; }
.guide-mini__more .icon { width: 12px; height: 12px; }

.guide-next {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(110deg, rgba(201, 163, 92, .05), rgba(0, 0, 0, .14));
  transition: border-color .2s, transform .2s;
}
.guide-next:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.guide-next__label { font-size: 9px; letter-spacing: .18em; color: var(--gold-dim); white-space: nowrap; }
.guide-next strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink-dim); }
.guide-next__time { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted-2); white-space: nowrap; }
.guide-next__time .icon { width: 13px; height: 13px; }

.guide-home-section { border-top: 1px solid var(--line); }
.guide-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(201, 163, 92, .04), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(0, 0, 0, .18));
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.guide-home-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .42);
}
.guide-home-card__num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1;
  color: var(--gold);
  opacity: .09;
}
.guide-home-card__cat { font-size: 9px; letter-spacing: .16em; color: var(--gold); }
.guide-home-card h3 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--ink);
}
.guide-home-card p { font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.guide-home-card__more {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 10px;
  color: var(--gold);
}
.guide-home-card__more .icon { width: 14px; height: 14px; }

/* ---------------- 弹窗 ---------------- */
.item-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.item-dialog::backdrop {
  background: rgba(3, 2, 2, .82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .25s ease both;
}
.item-dialog[open] .dialog-shell { animation: dialogIn .32s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 38px 44px 26px;
  border: 1px solid rgba(201, 163, 92, .38);
  background:
    radial-gradient(560px 280px at 50% 0%, color-mix(in srgb, var(--d, var(--gold)) 8%, transparent), transparent 70%),
    linear-gradient(180deg, #18140f 0%, #0d0b08 100%);
  box-shadow: 0 50px 140px rgba(0, 0, 0, .8), inset 0 0 70px rgba(201, 163, 92, .025);
}
.dialog-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 163, 92, .12);
  pointer-events: none;
}
.dialog-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--d, var(--gold)), transparent);
  opacity: .6;
  pointer-events: none;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.dialog-close:hover { color: var(--gold-bright); border-color: var(--line); }
.dialog-close .icon { width: 18px; height: 18px; }

.dialog-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold-dim);
}
.dialog-ornament span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.dialog-ornament i { font-style: normal; font-size: 10px; }
.dialog-eyebrow {
  font-size: 9px;
  letter-spacing: .35em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dialog-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
}
.dialog-en {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 6px;
}
.dialog-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.dialog-chip {
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.dialog-chip--gold { color: var(--gold); border-color: rgba(201, 163, 92, .28); }
.dialog-chip--tier { color: var(--gold-bright); border-color: var(--line-strong); }
.dialog-body { margin-top: 24px; }
.dialog-section { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.dialog-section:first-child { margin-top: 0; }
.dialog-section h3 {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 13px;
  text-transform: uppercase;
}
.bonus-list { display: grid; gap: 10px; }
.bonus-row { display: flex; gap: 13px; align-items: flex-start; }
.bonus-num {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-bright);
}
.bonus-row p { font-size: 14px; line-height: 1.85; color: var(--ink-dim); padding-top: 4px; }
.piece-list { display: flex; flex-wrap: wrap; gap: 6px; }
.piece {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.piece i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 92, .18);
  font-family: var(--font-display);
  font-size: 9px;
  font-style: normal;
  color: var(--gold-dim);
}
.dialog-effect {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-dim);
  padding: 14px 16px;
  border-left: 2px solid var(--d, var(--gold));
  background: rgba(201, 163, 92, .035);
}
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-tags span {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
}
.dialog-note { font-size: 12px; color: var(--muted); line-height: 1.8; }
.dialog-note--small { margin-top: 10px; font-size: 10px; color: var(--muted-2); line-height: 1.7; }
.related-list { display: grid; }
.related-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid rgba(201, 163, 92, .08);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .2s;
}
.related-row:hover { background: rgba(201, 163, 92, .045); }
.related-dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--rc);
  box-shadow: 0 0 8px color-mix(in srgb, var(--rc) 45%, transparent);
  flex: none;
}
.related-name { font-size: 13px; color: var(--ink-dim); }
.related-class { font-size: 9px; color: var(--muted-2); letter-spacing: .1em; }
.related-row .tier-seal { margin-left: auto; }
.related-arrow { width: 14px; height: 14px; color: var(--muted-2); }
.related-row:hover .related-arrow { color: var(--gold); }
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dialog-fav { gap: 8px; }
.dialog-fav .icon-bookmark { width: 14px; height: 14px; }
.dialog-hint { font-size: 9px; letter-spacing: .12em; color: var(--muted-2); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .45));
  padding: 52px 0 40px;
}
.footer-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-sigil { color: var(--gold); font-size: 15px; }
.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .12em;
}
.footer-sub {
  font-size: 8px;
  letter-spacing: .26em;
  color: var(--gold-dim);
  margin-top: 3px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.footer-nav a { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-note,
.footer-legal {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted-2);
  max-width: 900px;
}
.footer-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-legal { grid-column: 1 / -1; font-size: 10px; opacity: .75; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  background: #17130e;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #080706;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: .1em;
}

/* ---------------- 动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1120px) {
  .class-grid { grid-template-columns: repeat(4, 1fr); }
  .class-card { min-height: 214px; }
  .header-meta { display: none; }
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 54px; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-art { width: min(76%, 420px); justify-self: center; }
  .hero-h1-en { letter-spacing: .42em; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  .codex-grid { grid-template-columns: 1fr; }
  .codex-feature { min-height: 0; }
  .class-banner { grid-template-columns: 1fr; }
  .class-banner__emblem { position: absolute; right: -30px; top: -10px; width: 220px; height: 220px; opacity: .22; }
  .class-banner__copy { position: relative; z-index: 1; }
  .build-columns { grid-template-columns: 1fr; }
  .build-lower { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .saved-build-grid { grid-template-columns: 1fr; }
  .saved-grid { grid-template-columns: repeat(2, 1fr); }
  .class-rail { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .rail-item { padding: 14px 4px 12px; }
  .filter-group--selects { justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; }
  .header-inner { height: 66px; width: calc(100% - 32px); gap: 18px; }
  .brand-cn { font-size: 14px; }
  .brand-en { display: none; }
  .nav { gap: 15px; }
  .nav a { font-size: 10.5px; letter-spacing: .1em; }
  .hero-inner,
  .stat-band,
  .section,
  .page-hero,
  .filter-panel,
  .results-section,
  .class-page,
  .oath,
  .collection-actions,
  .empty-state--large,
  .footer-inner { width: calc(100% - 32px); }
  .hero-h1-cn { font-size: clamp(48px, 12vw, 64px); }
  .hero-lede { font-size: 14px; }
  .hero-art { width: min(88%, 360px); }
  .stat-cell strong { font-size: 30px; }
  .section { padding: 62px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .section-note { text-align: left; max-width: 100%; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .class-card { min-height: 196px; }
  .class-medallion { width: 54px; height: 54px; margin: 8px 0 14px; }
  .class-medallion .icon { width: 30px; height: 30px; }
  .class-card__name { font-size: 18px; }
  .page-hero { padding: 54px 0 34px; }
  .filter-panel { padding: 18px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .result-count { text-align: left; }
  .filter-group { flex-direction: column; gap: 7px; }
  .filter-label { width: auto; padding-top: 0; }
  .filter-group--selects { flex-direction: row; flex-wrap: wrap; }
  .item-grid { grid-template-columns: 1fr; }
  .class-page { padding-top: 12px; }
  .class-rail { margin-bottom: 28px; }
  .class-banner { padding-bottom: 32px; }
  .class-stats { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .class-stat { padding: 0; border-right: 0; }
  .class-stat__hint { margin-left: auto; }
  .build-card { padding: 20px 18px; }
  .build-head { grid-template-columns: auto 1fr; gap: 13px; }
  .build-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: 4px; }
  .build-meta { gap: 6px 16px; }
  .build-foot { flex-direction: column; align-items: flex-start; }
  .extra-grid { grid-template-columns: 1fr; }
  .saved-grid { grid-template-columns: 1fr; }
  .saved-build-grid { grid-template-columns: 1fr; }
  .oath { padding: 70px 0; }
  .oath-text { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .dialog-shell { padding: 32px 22px 22px; }
  .dialog-close { top: 8px; right: 8px; }
  .dialog-foot { flex-direction: column; align-items: flex-start; }
  .dialog-hint { display: none; }
}

@media (max-width: 540px) {
  .brand-text { display: none; }
  .header-inner { gap: 10px; }
  .nav { margin-left: 0; width: auto; flex: 1; min-width: 0; justify-content: space-between; gap: 5px; }
  .nav a { font-size: 9px; letter-spacing: 0; white-space: nowrap; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 6px; letter-spacing: .1em; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-cell { padding: 12px 0; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .class-grid { gap: 8px; }
  .class-card { min-height: 186px; padding: 20px 10px 16px; }
  .page-hero h1 { font-size: 40px; }
  .class-banner__copy h1 { font-size: 44px; }
  .class-epithet { font-size: 10px; letter-spacing: .18em; }
  .class-banner__emblem { display: none; }
  .build-title h3 { font-size: 25px; }
  .skill-columns { grid-template-columns: 1fr; }
  .filter-group--selects { flex-direction: column; align-items: stretch; }
  .select-wrap { justify-content: space-between; }
  .select-wrap select { flex: 1; }
  .search-box kbd { display: none; }
  .empty-state { padding: 54px 18px; }
  .class-rail { grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
  .rail-item { padding: 12px 2px 10px; gap: 5px; }
  .rail-item .icon { width: 21px; height: 21px; }
  .rail-name { font-size: 8.5px; letter-spacing: 0; white-space: nowrap; }
}

@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-related-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-home-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-home-card:last-child { grid-column: 1 / -1; min-height: 210px; }
}

@media (max-width: 960px) {
  .guide-path { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .guide-path__copy p { max-width: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .guide-aside { display: none; }
  .guide-toc-mobile {
    display: block;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .16);
  }
  .guide-toc-mobile summary {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--gold);
    list-style: none;
  }
  .guide-toc-mobile summary::-webkit-details-marker { display: none; }
  .guide-toc-mobile[open] summary { border-bottom: 1px solid var(--line); }
  .guide-toc-mobile ol { padding: 10px 16px 14px 34px; display: grid; gap: 6px; }
  .guide-toc-mobile a { font-size: 12px; color: var(--muted); }
  .guide-toc-mobile a:hover { color: var(--gold-bright); }
  .guide-detail-hero { padding-top: 44px; }
  .guide-home-grid { grid-template-columns: 1fr 1fr; }
  .guide-home-card:last-child { grid-column: auto; min-height: 0; }
}

@media (max-width: 760px) {
  .guide-grid,
  .guide-related-grid,
  .guide-link-grid,
  .guide-home-grid { grid-template-columns: 1fr; }
  .guide-featured { grid-template-columns: 1fr; padding: 24px; gap: 0; }
  .guide-featured__num { display: none; }
  .guide-featured__flag { position: static; align-self: flex-start; margin-bottom: 12px; }
  .guide-path__steps { flex-direction: column; align-items: stretch; }
  .guide-path__line { display: none; }
  .guide-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .guide-detail-hero { width: calc(100% - 32px); padding: 38px 0 26px; }
  .guide-detail-hero h1 { font-size: 38px; }
  .guide-detail-summary { font-size: 14px; }
  .guide-layout { width: calc(100% - 32px); padding: 26px 0 70px; }
  .guide-h2 { font-size: 24px; gap: 8px; margin-top: 34px; }
  .guide-article { font-size: 15px; }
  .guide-next { flex-wrap: wrap; }
  .guide-next__time { margin-left: 0; width: 100%; }
  .guide-card { min-height: 0; }
  .guide-home-card { min-height: 0; }
  .guide-home-card:last-child { grid-column: auto; }
  .guide-featured__title { font-size: 27px; }
}

@media (max-width: 540px) {
  .nav a { font-size: 9.5px; letter-spacing: 0; }
  .guide-detail-hero h1 { font-size: 32px; }
  .guide-h2 { font-size: 22px; }
  .guide-featured__title { font-size: 25px; }
  .guide-home-card h3 { font-size: 24px; }
  .guide-steps li { grid-template-columns: 28px 1fr; gap: 10px; padding: 12px; }
  .guide-step__num { width: 28px; height: 28px; font-size: 9px; }
  .guide-table { font-size: 11.5px; min-width: 480px; }
  .guide-article { font-size: 14.5px; }
  .guide-article-tags { gap: 4px; }
  .guide-inline-share { margin-left: 0; width: 100%; padding-top: 6px; }
  .guide-path__step { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .soulstone, .rune-ring, .soulstone-orbit { animation: none; }
}

/* 2K / 4K 屏幕：整体放大，避免正文与标签显得过小 */
@media (min-width: 1800px) {
  body { zoom: 1.12; }
}

@media (min-width: 2200px) {
  body { zoom: 1.25; }
}

@media (min-width: 3000px) {
  body { zoom: 1.35; }
}
