/* ==========================================================================
   《九州镇妖志》官方网站样式表
   华韵色板：松烟玄墨 (#071012 / #0c181b) · 古铜宣金 (#c8a962) · 碧玉品牌青 (#15c5ce)
   零外部字体与 CDN 依赖，全端响应式，竖屏移动端优先兼容
   ========================================================================== */

:root {
  --ink-950: #060d0f;
  --ink-900: #091316;
  --ink-850: #0d1a1e;
  --ink-800: #112227;
  --ink-700: #182f35;

  --paper-100: #f4eee1;
  --paper-200: #dcd4c3;
  --paper-400: #9cb0ae;
  --paper-500: #728887;

  --gold-300: #ebd397;
  --gold-400: #d6b66f;
  --gold-500: #b9954c;
  --gold-border: rgba(214, 182, 111, 0.28);
  --gold-border-strong: rgba(214, 182, 111, 0.54);
  --gold-soft: rgba(214, 182, 111, 0.11);

  --taptap-cyan: #15c5ce;
  --taptap-cyan-bright: #33d9e1;
  --taptap-cyan-deep: #0b969e;
  --taptap-ink: #052023;
  --taptap-glow: rgba(21, 197, 206, 0.24);

  --cls-warrior: #d9a452;
  --cls-mage: #2dc9c0;
  --cls-assassin: #d46256;

  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1180px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ink-950);
  color: var(--paper-100);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-200);
  background:
    radial-gradient(circle at 82% 8%, rgba(21, 197, 206, 0.08), transparent 36%),
    radial-gradient(circle at 12% 38%, rgba(214, 182, 111, 0.06), transparent 40%),
    var(--ink-950);
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部细导航栏 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  background: rgba(6, 13, 15, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 182, 111, 0.16);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--gold-border-strong);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper-100);
}

.nav-ver {
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--gold-300);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--paper-400);
}

.nav-links a {
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-300);
}

.nav-taptap-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--taptap-cyan);
  color: var(--taptap-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px var(--taptap-glow);
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.nav-taptap-pill:hover,
.nav-taptap-pill:focus-visible {
  background: var(--taptap-cyan-bright);
  transform: translateY(-1px);
}

.taptap-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- 首屏 Hero 黄金转化区 ---------- */
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--nav-height)));
  display: flex;
  align-items: center;
  padding: 44px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 182, 111, 0.16);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 20%;
  opacity: 0.62;
  transform: scale(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 15, 0.99) 0%, rgba(6, 13, 15, 0.96) 44%, rgba(6, 13, 15, 0.64) 64%, rgba(6, 13, 15, 0.28) 84%, rgba(6, 13, 15, 0.56) 100%),
    linear-gradient(180deg, rgba(6, 13, 15, 0.42) 0%, rgba(6, 13, 15, 0.1) 46%, rgba(6, 13, 15, 0.98) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(250px, 310px);
  gap: 44px;
  align-items: center;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-app-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 1.5px solid var(--gold-border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-badges {
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.badge-version {
  background: rgba(214, 182, 111, 0.16);
  color: var(--gold-300);
  border: 1px solid var(--gold-border-strong);
}

.badge-rating {
  background: rgba(21, 197, 206, 0.16);
  color: #79eff4;
  border: 1px solid rgba(21, 197, 206, 0.48);
}

.rating-star {
  width: 13px;
  height: 13px;
  color: #f3c867;
}

.badge-genre {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper-200);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-studio {
  margin: 0;
  font-size: 13px;
  color: var(--paper-400);
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper-100);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

.hero-desc {
  margin: 0 0 26px;
  max-width: 580px;
  font-size: 15px;
  color: var(--paper-200);
}

/* ---------- TapTap REP 官网品牌挂件区 ---------- */
.rep-brand-widget {
  max-width: 650px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(13, 28, 32, 0.92), rgba(7, 16, 18, 0.94));
  border: 1px solid rgba(21, 197, 206, 0.34);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(235, 211, 151, 0.14);
}

.rep-widget-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(214, 182, 111, 0.14);
}

.rep-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--taptap-cyan-bright);
  letter-spacing: 0.03em;
}

.rep-widget-meta {
  font-size: 12px;
  color: var(--paper-400);
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-taptap-primary {
  justify-content: flex-start;
  background: linear-gradient(135deg, #19cfd8 0%, #11b5be 100%);
  color: var(--taptap-ink);
  border: 1px solid rgba(154, 248, 252, 0.55);
  box-shadow: 0 10px 26px rgba(21, 197, 206, 0.3);
}

.btn-taptap-primary:hover,
.btn-taptap-primary:focus-visible {
  background: linear-gradient(135deg, #2ce0e9 0%, #15c5ce 100%);
  box-shadow: 0 12px 30px rgba(21, 197, 206, 0.42);
}

.btn-taptap-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
}

.btn-taptap-logo svg {
  width: 100%;
  height: 100%;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
  min-width: 0;
}

.btn-main-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-sub-label {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.84;
  margin-top: 2px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-gold-secondary {
  justify-content: flex-start;
  background: linear-gradient(145deg, rgba(214, 182, 111, 0.14), rgba(214, 182, 111, 0.05));
  color: var(--gold-300);
  border: 1px solid var(--gold-border-strong);
}

.btn-gold-secondary:hover,
.btn-gold-secondary:focus-visible {
  background: linear-gradient(145deg, rgba(214, 182, 111, 0.24), rgba(214, 182, 111, 0.1));
  border-color: var(--gold-300);
}

.btn-gold-solid {
  background: linear-gradient(135deg, #e2c57e 0%, #bf9649 100%);
  color: #15120a;
  border: 1px solid rgba(255, 240, 198, 0.55);
  box-shadow: 0 8px 22px rgba(185, 149, 76, 0.28);
}

.btn-gold-solid:hover,
.btn-gold-solid:focus-visible {
  background: linear-gradient(135deg, #edd28f 0%, #cca252 100%);
}

.btn-taptap-outline {
  background: rgba(21, 197, 206, 0.08);
  color: var(--taptap-cyan-bright);
  border: 1px solid rgba(21, 197, 206, 0.42);
}

.btn-taptap-outline:hover,
.btn-taptap-outline:focus-visible {
  background: rgba(21, 197, 206, 0.16);
  border-color: var(--taptap-cyan-bright);
}

.pc-entry-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(214, 182, 111, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--paper-400);
  transition: color 0.2s ease;
}

.pc-entry-link:hover,
.pc-entry-link:focus-visible {
  color: var(--taptap-cyan-bright);
}

.pc-icon {
  width: 16px;
  height: 16px;
}

.pc-entry-arrow {
  font-size: 14px;
}

/* ---------- 首屏册页扫码匣 ---------- */
.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.qr-panel {
  position: relative;
  width: 100%;
  max-width: 286px;
  padding: 22px 22px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 28, 32, 0.92), rgba(8, 17, 20, 0.95));
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.qr-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-400);
  border-style: solid;
  pointer-events: none;
}

.qr-tl { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.qr-tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }
.qr-bl { bottom: 8px; left: 8px; border-width: 0 0 1.5px 1.5px; }
.qr-br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qr-seal {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}

.qr-brand-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--taptap-cyan-bright);
  background: rgba(21, 197, 206, 0.14);
  border: 1px solid rgba(21, 197, 206, 0.35);
}

.qr-frame {
  width: 186px;
  height: 186px;
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 12px;
  background: #f8f4ea;
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-fallback-text {
  margin: 0;
  font-size: 12px;
  color: #1d2c2e;
}

.qr-caption {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper-100);
}

.qr-facts {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--paper-400);
}

/* ---------- 通用章节结构 ---------- */
.section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 26, 30, 0.72) 0%, rgba(7, 15, 18, 0.9) 100%);
  border-top: 1px solid rgba(214, 182, 111, 0.12);
  border-bottom: 1px solid rgba(214, 182, 111, 0.12);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-400);
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--paper-100);
}

.section-lead {
  margin: 0;
  font-size: 15px;
  color: var(--paper-400);
}

/* ---------- 四大核心体验 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 33, 38, 0.85), rgba(10, 21, 24, 0.92));
  border: 1px solid var(--gold-border);
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border-strong);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.seal-index {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(214, 182, 111, 0.12);
  border: 1px solid var(--gold-border-strong);
}

.feature-metric {
  font-size: 12px;
  color: var(--taptap-cyan-bright);
  font-weight: 600;
}

.feature-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--paper-100);
}

.feature-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--paper-200);
}

/* ---------- 三职业交互切换面板 ---------- */
.class-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.class-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 26, 30, 0.8);
  border: 1px solid rgba(214, 182, 111, 0.2);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.class-tab:hover {
  border-color: var(--gold-border-strong);
  transform: translateY(-1px);
}

.class-tab.is-active {
  background: linear-gradient(135deg, rgba(24, 47, 53, 0.96), rgba(13, 28, 32, 0.96));
  border-color: var(--gold-400);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.tab-seal {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(214, 182, 111, 0.1);
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.class-tab[data-class="Warrior"].is-active .tab-seal {
  color: var(--cls-warrior);
  border-color: rgba(217, 164, 82, 0.65);
  background: rgba(217, 164, 82, 0.14);
}

.class-tab[data-class="Mage"].is-active .tab-seal {
  color: var(--cls-mage);
  border-color: rgba(45, 201, 192, 0.65);
  background: rgba(45, 201, 192, 0.14);
}

.class-tab[data-class="Assassin"].is-active .tab-seal {
  color: var(--cls-assassin);
  border-color: rgba(212, 98, 86, 0.65);
  background: rgba(212, 98, 86, 0.14);
}

.tab-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tab-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--paper-100);
  line-height: 1.2;
}

.tab-hint {
  font-size: 12.5px;
  color: var(--paper-400);
  margin-top: 3px;
}

.class-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 31, 35, 0.92), rgba(8, 17, 20, 0.96));
  border: 1px solid var(--gold-border);
  position: relative;
}

.class-stage[data-theme="Warrior"] {
  --cls-accent: var(--cls-warrior);
}

.class-stage[data-theme="Mage"] {
  --cls-accent: var(--cls-mage);
}

.class-stage[data-theme="Assassin"] {
  --cls-accent: var(--cls-assassin);
}

.class-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cls-accent, var(--gold-400)), transparent);
}

.class-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.class-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--paper-100);
}

.class-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cls-accent, var(--gold-300));
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cls-accent, var(--gold-border));
}

.class-positioning {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--paper-200);
}

.class-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.stat-tile {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 15, 0.62);
  border: 1px solid rgba(214, 182, 111, 0.16);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--paper-400);
  margin-bottom: 2px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper-100);
}

.sub-heading {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

.routes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-box {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 15, 0.65);
  border: 1px solid rgba(214, 182, 111, 0.2);
}

.route-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper-100);
  margin-bottom: 8px;
}

.route-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot-chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--paper-200);
  background: rgba(24, 47, 53, 0.85);
  border: 1px solid rgba(214, 182, 111, 0.22);
}

.skills-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.skills-head .sub-heading {
  margin: 0;
}

.skills-note {
  font-size: 12px;
  color: var(--paper-500);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-card {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 13, 15, 0.68);
  border: 1px solid rgba(214, 182, 111, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skill-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--paper-100);
}

.skill-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--cls-accent, var(--gold-300));
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(214, 182, 111, 0.24);
  flex-shrink: 0;
}

.skill-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-200);
}

.skill-nums {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(214, 182, 111, 0.14);
  font-size: 12px;
  color: var(--paper-400);
  display: flex;
  gap: 12px;
}

/* ---------- 实机竖屏画廊 ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.phone-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.phone-bezel {
  display: block;
  padding: 7px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1d3237 0%, #0a1417 100%);
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.phone-trigger:hover .phone-bezel,
.phone-trigger:focus-visible .phone-bezel {
  transform: translateY(-5px);
  border-color: var(--gold-300);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.62);
}

.phone-bezel img {
  width: 100%;
  aspect-ratio: 1110 / 2322;
  object-fit: cover;
  border-radius: 15px;
  background: var(--ink-900);
}

.phone-caption {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-caption strong {
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--paper-100);
  letter-spacing: 0.05em;
}

.phone-caption span {
  font-size: 12.5px;
  color: var(--paper-400);
}

/* 仙界十三境简览带 */
.realms-strip {
  margin-top: 34px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(13, 26, 30, 0.72);
  border: 1px solid var(--gold-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.realms-label {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.realms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.realms-list li {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(6, 13, 15, 0.7);
  border: 1px solid rgba(214, 182, 111, 0.2);
  color: var(--paper-200);
}

.realms-list li.is-peak {
  color: var(--gold-300);
  border-color: var(--gold-border-strong);
  background: rgba(214, 182, 111, 0.14);
  font-weight: 700;
}

/* ---------- 5.1.1 九州庙会与 800 灵石活动区 ---------- */
.event-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 34, 38, 0.92), rgba(8, 17, 20, 0.95));
  border: 1px solid var(--gold-border-strong);
  margin-bottom: 24px;
}

.event-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
}

.event-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(214, 182, 111, 0.14);
  border: 1px solid var(--gold-border-strong);
  margin-bottom: 12px;
}

.event-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  color: var(--paper-100);
}

.event-text {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--paper-200);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fair-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fair-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(9, 19, 22, 0.86);
  border: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
}

.fair-head {
  margin-bottom: 10px;
}

.fair-order {
  display: inline-block;
  font-size: 11.5px;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.fair-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--paper-100);
}

.fair-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper-200);
}

.fair-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(214, 182, 111, 0.16);
  font-size: 12px;
  color: var(--taptap-cyan-bright);
}

/* ---------- 底部收束 CTA ---------- */
.cta-band {
  padding: 54px 0;
}

.cta-inner {
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(21, 197, 206, 0.12) 0%, rgba(13, 26, 30, 0.92) 48%, rgba(214, 182, 111, 0.12) 100%);
  border: 1px solid var(--gold-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.6vw, 28px);
  color: var(--paper-100);
}

.cta-sub {
  margin: 0;
  font-size: 14px;
  color: var(--paper-400);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-buttons .btn {
  min-height: 48px;
  padding: 10px 22px;
}

/* ---------- 页脚与备案合规区 ---------- */
.site-footer {
  padding: 34px 0 40px;
  background: #04090b;
  border-top: 1px solid rgba(214, 182, 111, 0.16);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-line {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper-200);
}

.footer-disclaimer {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-500);
}

.beian-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--paper-400);
}

.beian-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.beian-item:hover,
.beian-item:focus-visible {
  color: var(--gold-300);
  text-decoration: underline;
}

.mps-badge {
  width: 16px;
  height: 16px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.beian-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------- 移动端底部常驻 TapTap 品牌悬浮条 ---------- */
.mobile-sticky-bar {
  display: none;
}

/* ---------- 截图放大灯箱 ---------- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 10, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-close {
  align-self: flex-end;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.92);
  border: 1px solid var(--gold-border-strong);
  color: var(--paper-100);
  font-size: 13px;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.lightbox-img {
  max-height: 74vh;
  width: auto;
  max-width: calc(100% - 84px);
  border-radius: 16px;
  border: 1.5px solid var(--gold-border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.lightbox-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.9);
  border: 1px solid var(--gold-border);
  color: var(--gold-300);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-footer strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--paper-100);
}

.lightbox-footer span {
  font-size: 13px;
  color: var(--paper-400);
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1080px) {
  .features-grid,
  .fair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-aside {
    justify-content: flex-start;
  }

  .qr-panel {
    max-width: 100%;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    text-align: left;
    align-items: center;
    padding: 16px;
  }

  .qr-frame {
    grid-row: 1 / 4;
    grid-column: 1;
    width: 116px;
    height: 116px;
    margin: 0;
    padding: 7px;
  }

  .qr-header {
    grid-column: 2;
    margin-bottom: 4px;
    justify-content: flex-start;
    gap: 10px;
  }

  .qr-caption {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 13.5px;
  }

  .qr-facts {
    grid-column: 2;
    justify-content: flex-start;
  }

  .class-stage,
  .event-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-nav {
    height: 58px;
  }

  .nav-title {
    font-size: 16px;
  }

  .nav-taptap-pill {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 34px;
  }

  .hero-bg-img {
    object-position: 74% 18%;
    opacity: 0.36;
  }

  .hero-identity {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .rep-brand-widget {
    padding: 14px;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-entry-row {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .features-grid,
  .fair-grid,
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .class-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .class-tab {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 11px 8px;
  }

  .tab-seal {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .tab-name {
    font-size: 16px;
  }

  .tab-hint {
    display: none;
  }

  .class-stage {
    padding: 20px 16px;
    gap: 20px;
  }

  /* 移动端画廊独立容器内横向滑动，页面主体零溢出 */
  .gallery-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .phone-card {
    flex: 0 0 64%;
    max-width: 240px;
    scroll-snap-align: start;
  }

  .event-banner {
    padding: 16px;
    gap: 18px;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-actions .btn {
    width: 100%;
  }

  .cta-inner {
    padding: 22px 18px;
  }

  .cta-buttons {
    width: 100%;
  }

  .cta-buttons .btn {
    flex: 1 1 auto;
  }

  /* 为移动端底部常驻 TapTap 挂件条留足安全距离，确保备案链接完整可见 */
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 14, 16, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(21, 197, 206, 0.36);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
  }

  .sticky-game {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .sticky-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--gold-border-strong);
    flex-shrink: 0;
  }

  .sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sticky-name {
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--paper-100);
    line-height: 1.2;
    white-space: nowrap;
  }

  .sticky-meta {
    font-size: 11px;
    color: var(--taptap-cyan-bright);
    white-space: nowrap;
  }

  .sticky-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .sticky-btn-welfare {
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-300);
    background: rgba(214, 182, 111, 0.14);
    border: 1px solid var(--gold-border-strong);
    white-space: nowrap;
  }

  .sticky-btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--taptap-ink);
    background: var(--taptap-cyan);
    box-shadow: 0 4px 14px var(--taptap-glow);
    white-space: nowrap;
  }

  .sticky-btn-play .taptap-mark {
    width: 15px;
    height: 15px;
  }
}

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