@font-face {
  font-family: Cinzel;
  src: url("assets/cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101111;
  --panel: #191a1a;
  --text: #eee9df;
  --muted: #a6a8a5;
  --gold: #d5b576;
  --line: #30312e;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; object-fit: cover; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.page { width: min(1232px, calc(100% - 80px)); margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 20px; z-index: 10; background: var(--gold); color: #171713; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 14px; align-items: center; font: 500 1.35rem/1.2 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; white-space: nowrap; }
.brand b { font-weight: 500; color: var(--gold); }
.brand small { display: block; margin-top: 9px; color: var(--muted); font: 500 .625rem/1.5 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; letter-spacing: .21em; }
.brand-mark { width: 36px; height: 40px; color: var(--gold); }
nav { display: flex; gap: 32px; font-size: .875rem; }
nav a { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); }
nav a:hover, nav .current { color: var(--gold); }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0 34px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .6875rem; font-weight: 600; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 clamp(2rem, 3.4vw, 2.875rem)/1.25 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; margin-bottom: 12px; letter-spacing: -.025em; }
.intro-copy { color: var(--muted); margin-bottom: 0; }
.collection-status { margin: 0; padding-left: 28px; border-left: 1px solid var(--line); flex-shrink: 0; }
.collection-status strong { display: block; color: var(--gold); font: 500 2rem/1.3 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; }
.collection-status strong span { color: #696c67; font-size: 1.375rem; }
.collection-status > span { color: var(--muted); font-size: .8125rem; }
.status { display: inline-flex; align-items: center; width: fit-content; font-size: .8125rem; line-height: 1.4; padding: 5px 10px; border-radius: 3px; }
.live { gap: 7px; color: #c0d7a8; background: #263025; border: 1px solid #43533a; }
.live::before { content: ""; width: 5px; height: 5px; background: #b2d998; border-radius: 50%; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { font: 500 1.375rem/1.4 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; margin-bottom: 0; }
.section-heading p { font-size: .875rem; color: var(--muted); margin-bottom: 0; }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.class-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 48px 1fr 44px; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(115deg, color-mix(in srgb, var(--class-color) 4%, #191a1a), #171818); }
.class-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, var(--class-color), transparent); opacity: .5; }
.class-card > img { border: 1px solid #6c695d; border-radius: 3px; filter: saturate(.65); }
.class-card h3 { align-self: center; color: var(--class-color); font: 500 1.25rem/1.4 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; margin: 0; }
.class-card > p { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; line-height: 1.65; min-height: 2.9em; margin: 0; }
.soon { grid-column: 1 / -1; align-self: center; color: #aaa99f; background: #222320; border: 1px solid #383a34; }
.druid { --class-color: #eda65d; }
.available-class { border-color: #6d5d40; background: linear-gradient(115deg, color-mix(in srgb, var(--class-color) 8%, #191a1a), #1c1e19); transition: border-color .15s, box-shadow .15s; }
.available-class:hover, .available-class:focus-within { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.available-class > img { filter: none; }
.coverage-note { display: block; color: var(--muted); font-size: .75rem; }
.card-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-footer .status { flex-shrink: 0; font-size: .75rem; padding: 5px 8px; }
.class-calculator { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #e6c28a; font-size: .8125rem; }
.class-calculator::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.class-calculator:focus-visible { outline: none; }
.class-calculator:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 4px; }
.class-calculator:hover { color: #ffe1b0; text-decoration: underline; text-underline-offset: 4px; }
.hunter { --class-color: #afd18b; }
.mage { --class-color: #8cc6d8; }
.paladin { --class-color: #eaaac8; }
.priest { --class-color: #dedbd0; }
.rogue { --class-color: #e4d68a; }
.shaman { --class-color: #80a7df; }
.warlock { --class-color: #b5a0da; }
.warrior { --class-color: #c9ac8b; }
.racial-directory { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.racial-directory .section-heading a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gold); }
.racial-directory .section-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.race-alliance { --class-color: #9cbbdf; }
.race-horde { --class-color: #e6a293; }
.faction-directory { margin-top: 24px; }
.faction-directory + .faction-directory { margin-top: 32px; }
.faction-directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--class-color) 35%, var(--line)); }
.faction-directory-heading h3 { margin: 0; color: var(--class-color); font: 500 1.125rem/1.4 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; }
.faction-directory-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.race-card-title { align-self: center; }
.racial-directory-card { grid-template-rows: minmax(48px, auto) 1fr 44px; }
.race-card-title h4 { margin: 0; color: var(--class-color); font: 500 1.25rem/1.4 Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; }
.race-card-title > span { display: block; margin-top: 3px; font-size: .6875rem; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer > p:last-child { text-align: right; }
.footer-brand { font: 500 .875rem Cinzel, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif; color: var(--gold); }
.footer-divider { color: #5e6057; padding: 0 12px; }
.site-footer a { display: inline-block; padding-top: 7px; color: #c2b28f; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 1050px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-card > p { min-height: 0; }
}

@media (max-width: 760px) {
  .class-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page { width: calc(100% - 36px); }
  .site-header { min-height: 88px; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand-mark { width: 28px; }
  .brand small { font-size: .5rem; letter-spacing: .14em; }
  nav { gap: 22px; font-size: .8125rem; width: 100%; }
  .intro { padding: 32px 0 26px; display: block; }
  .intro-copy { max-width: 320px; }
  .collection-status { margin-top: 20px; padding: 0; border: 0; display: flex; align-items: baseline; gap: 10px; }
  .collection-status strong { font-size: 1.25rem; }
  .collection-status strong span { font-size: 1rem; }
  .collection-status > span { font-size: .75rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 5px; }
  .class-grid { gap: 12px; }
  .class-card { padding: 20px; gap: 12px; }
  .class-card::before { left: 20px; right: 20px; }
  .class-card h3 { font-size: 1.125rem; }
  .class-card > p { font-size: .8125rem; }
  .soon { font-size: .75rem; padding: 5px 8px; }
  .racial-directory { margin-top: 32px; padding-top: 24px; }
  .faction-directory-heading { display: block; }
  .faction-directory-heading p { margin-top: 5px; }
  .race-card-title h4 { font-size: 1.125rem; }
  .site-footer { display: block; }
  .site-footer > p:last-child { text-align: left; margin-top: 14px; }
  .footer-divider { padding: 0 6px; }
}

@media (max-width: 359px) {
  .brand small { letter-spacing: .05em; }
  .class-calculator { font-size: .75rem; gap: 4px; }
}

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

/* ===== 简体中文适配：字体、字距与断行 ===== */
/* 标题：Cinzel 仍处理拉丁字符（如 WoW Forever），中文落到微软雅黑。
   宋体在黑底上笔画发虚，所以标题改雅黑并给足字重。
   前面那些用 `font:` 简写指定的类级选择器优先级高于 h1,h2,h3 元素选择器，
   必须在这里显式点名，否则职业名/种族名这些标题会漏掉。 */
h1,h2,h3,.section-heading h2,.class-card h3,.faction-directory-heading h3,.race-card-title h4,.race-heading h3{
  font-family:Cinzel,"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Noto Sans SC",sans-serif;font-weight:700}
/* 中文全角字自带侧边距，原文给拉丁字母设计的字距会让中文整行散开 */
.eyebrow{letter-spacing:.12em}
.brand small{letter-spacing:.09em}
.brand{letter-spacing:.02em}
.tier-label{letter-spacing:0;text-orientation:mixed}
.allocation span{letter-spacing:0}
.level-control,.point-readout>span,.field-label,.effect-label,.tip-header .eyebrow{letter-spacing:.05em}
.talent-name{line-break:strict;word-break:normal;overflow-wrap:anywhere;hyphens:none}
/* 10px 的中文天赋名已是清晰下限，桌面端抬到 11px；6 字名 66px 仍在 90px 格子内 */
@media(min-width:851px){.talent-name{font-size:11px}}

