/* =============================================================
   天赐DNF · P11 暗夜哥特 · style.css
   深紫 #2d1b3d + 血红 #8b1538 + 烛金 #c9a96b + 银灰 / 漆黑
   blackletter 哥特字 · 教堂彩绘玻璃 · 烛光 flicker · 石碑雕刻渐显
   ============================================================= */

:root {
  --bg:          #0a0a0a;
  --bg2:         #120b1a;
  --panel:       #170f22;
  --panel2:      #1e1430;
  --purple:      #2d1b3d;
  --purple-lt:   #5a2a4a;
  --blood:       #8b1538;
  --blood-lt:    #b0284c;
  --gold:        #c9a96b;
  --gold-lt:     #f0dca8;
  --gold-dim:    #9c8452;
  --silver:      #c0c0c0;
  --text:        #ece6ef;
  --text-dim:    #a094ab;
  --text-mute:   #6f6479;
  --line:        rgba(201,169,107,.22);
  --line-soft:   rgba(201,169,107,.12);

  --font-black:  'UnifrakturMaguntia', 'Noto Serif SC', serif;
  --font-latin:  'Cormorant Garamond', 'Noto Serif SC', serif;
  --font-cn:     'Noto Serif SC', 'Songti SC', serif;

  --shadow:      0 18px 50px rgba(0,0,0,.55);
  --glow-gold:   0 0 24px rgba(201,169,107,.45);
  --glow-blood:  0 0 24px rgba(139,21,56,.45);
  --radius:      14px;
  --maxw:        1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(139,21,56,.14), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(90,42,74,.18), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(45,27,61,.35), transparent 60%);
  background-attachment: fixed;
}

/* 细纹圣堂石壁纹理叠加 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.16) 3px, rgba(0,0,0,.16) 4px);
  opacity: .30; mix-blend-mode: multiply;
}

@media (max-width: 820px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- 滚动进度条 ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blood), var(--gold), var(--gold-lt));
  z-index: 10001; box-shadow: 0 0 12px rgba(201,169,107,.6);
}

/* =============================================================
   预加载 · 玫瑰窗旋转
   ============================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 100000;
  background: radial-gradient(circle at 50% 45%, var(--purple), var(--bg) 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity .7s ease, visibility .7s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-rose {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
  box-shadow: var(--glow-gold);
  animation: preSpin 3.4s linear infinite;
}
.pre-rose::before, .pre-rose::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  border: 1.5px solid var(--gold); opacity: .6;
}
.pre-rose::after { inset: 26px; border-color: var(--blood-lt); }
.pre-rose-inner {
  position: absolute; inset: 32px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-lt), var(--gold) 60%, transparent);
  animation: candleFlicker 1.6s ease-in-out infinite;
}
.pre-text {
  font-family: var(--font-cn); font-weight: 900;
  letter-spacing: 8px; text-indent: 8px;
  color: var(--gold);
  font-size: 1rem;
  text-shadow: var(--glow-gold);
}
@keyframes preSpin { to { transform: rotate(360deg); } }

/* =============================================================
   自定义光标 · 哥特十字（非圆主形状 · P11 唯一识别）
   ============================================================= */
.cursor-anchor {
  position: fixed; top: 0; left: 0; z-index: 100002;
  pointer-events: none; translate: -100px -100px;
  mix-blend-mode: screen;
}
.cursor-shape {
  position: absolute; left: -13px; top: -13px;
  width: 26px; height: 26px;
  border-radius: 2px;             /* 非圆：明确非 50% */
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 0 6px rgba(201,169,107,.85));
}
/* 十字竖臂 + 横臂，构成哥特十字 */
.cursor-shape::before, .cursor-shape::after {
  content: ""; position: absolute;
  background: linear-gradient(var(--gold-lt), var(--gold));
  border-radius: 1px;
}
.cursor-shape::before { left: 11px; top: 0;  width: 4px; height: 26px; }   /* 竖 */
.cursor-shape::after  { left: 4px; top: 8px; width: 18px; height: 4px; }   /* 横 */
.cursor-inner {
  position: absolute; left: 9px; top: 9px;
  width: 8px; height: 8px;
  background: var(--blood-lt);
  transform: rotate(45deg);       /* 菱形核心，非圆 */
  border-radius: 1px;
  box-shadow: 0 0 8px var(--blood);
}
.cursor-anchor.active .cursor-shape { transform: scale(1.5) rotate(45deg); filter: drop-shadow(0 0 10px rgba(176,40,76,.9)); }
.cursor-anchor.click  .cursor-shape { transform: scale(.8); }
body.cursor-hidden .cursor-anchor { opacity: 0; }

/* 光标火花拖尾 */
#cursorFx { position: fixed; inset: 0; z-index: 100001; pointer-events: none; }
.spark {
  position: fixed; width: 4px; height: 4px; border-radius: 1px;
  background: var(--gold-lt); transform: rotate(45deg);
  pointer-events: none; box-shadow: 0 0 6px var(--gold);
  animation: sparkTrail 1s ease-out forwards;
}
.spark.amber { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.spark.red   { background: var(--blood-lt); box-shadow: 0 0 6px var(--blood); }
.spark.burst { animation: sparkBurst .8s ease-out forwards; }
@keyframes sparkTrail {
  0%   { opacity: .95; transform: translate(0,0) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx,0), var(--dy,20px)) rotate(45deg) scale(.2); }
}
@keyframes sparkBurst {
  0%   { opacity: 1; transform: translate(0,0) rotate(45deg) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--dx,0), var(--dy,0)) rotate(45deg) scale(0); }
}

/* =============================================================
   烛烬飘落层
   ============================================================= */
.ember-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; top: -12px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 2px rgba(201,169,107,.7);
  animation: emberFall linear forwards;
}
.ember.blood { background: var(--blood-lt); box-shadow: 0 0 8px 2px rgba(176,40,76,.7); }
.ember.pale  { background: var(--gold-lt);  box-shadow: 0 0 10px 3px rgba(240,220,168,.65); }
@keyframes emberFall {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .9; }
  90%  { opacity: .7; }
  100% { transform: translateY(102vh) translateX(28px); opacity: 0; }
}

/* =============================================================
   导航
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw;
  background: linear-gradient(180deg, rgba(10,10,10,.72), rgba(10,10,10,0));
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(14,9,20,.92);
  padding: 10px 5vw;
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.nav-logo-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 8px;
  background: radial-gradient(circle, rgba(139,21,56,.5), transparent);
  box-shadow: var(--glow-gold);
}
.nav-logo-text {
  font-family: var(--font-cn); font-weight: 900; font-size: 1.4rem;
  color: var(--gold-lt); letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(201,169,107,.4);
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-cn); font-weight: 500; font-size: 1rem; color: var(--text-dim);
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blood), var(--gold)); transition: width .28s;
}
.nav-links a:hover { color: var(--gold-lt); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-cn); font-weight: 700; font-size: .95rem;
  padding: 10px 24px; border-radius: 8px; color: var(--gold-lt);
  background: linear-gradient(135deg, var(--blood), var(--purple));
  border: 1px solid var(--gold); box-shadow: var(--glow-blood);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(201,169,107,.6); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold); transition: .3s; }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 5vw 160px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(45,27,61,.9), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0e0715 50%, var(--bg) 100%);
}
.hero-bg-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .5; z-index: 0;
}
.hero-bg-mask {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.35), rgba(10,10,10,.9));
}

/* 教堂玫瑰窗 */
.hero-rose {
  position: absolute; top: 46%; left: 50%;
  width: min(760px, 96vw); height: min(760px, 96vw);
  transform: translate(-50%, -50%);
  z-index: 1; opacity: .5;
  filter: drop-shadow(0 0 40px rgba(139,21,56,.35));
}
.rose-petals { transform-origin: 300px 300px; animation: roseSpin 90s linear infinite; }
.rose-inner  { animation: roseSpin 60s linear infinite reverse; }
.rose-core   { animation: candleFlicker 2.4s ease-in-out infinite; transform-origin: 300px 300px; }
@keyframes roseSpin { to { transform: rotate(360deg); } }

/* 尖拱窗框 */
.hero-arch { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.arch-col {
  position: absolute; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(90deg, rgba(45,27,61,.6), transparent);
}
.arch-col-l { left: 0; }
.arch-col-r { right: 0; transform: scaleX(-1); }
.arch-col::before {
  content: ""; position: absolute; top: 12%; left: 26px; width: 3px; bottom: 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: .4;
}

/* 夜雾 */
.hero-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.55) 60%, var(--bg));
  pointer-events: none;
}

/* 烛光 */
.hero-candles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.candle {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-lt), var(--gold) 55%, transparent);
  box-shadow: 0 0 30px 12px rgba(201,169,107,.35);
  animation: candleFlicker 1.8s ease-in-out infinite;
}
.candle-1 { left: 12%; top: 64%; animation-delay: .1s; }
.candle-2 { right: 14%; top: 58%; animation-delay: .6s; }
.candle-3 { left: 24%; top: 40%; animation-delay: 1.1s; width: 7px; height: 7px; }
.candle-4 { right: 26%; top: 46%; animation-delay: .8s; width: 7px; height: 7px; }
@keyframes candleFlicker {
  0%, 100% { opacity: .95; transform: scale(1); }
  25% { opacity: .7; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
  75% { opacity: .8; transform: scale(.96); }
}

.hero-content { position: relative; z-index: 5; max-width: 880px; }
.hero-latin {
  font-family: var(--font-black);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--gold); letter-spacing: 6px; text-indent: 6px;
  margin-bottom: 10px; opacity: .92;
  text-shadow: 0 0 22px rgba(201,169,107,.5);
  animation: fadeUp .9s ease both;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-cn); font-weight: 500; font-size: .92rem;
  color: var(--gold-lt); letter-spacing: 3px; text-indent: 3px;
  padding: 7px 22px; margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(45,27,61,.5);
  backdrop-filter: blur(4px);
  animation: fadeUp .9s .1s ease both;
}
.hero-title {
  font-family: var(--font-cn); font-weight: 900;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.05; letter-spacing: 4px;
  background: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 45%, var(--blood-lt) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 4px 30px rgba(139,21,56,.4);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.6));
  margin-bottom: 20px;
  animation: fadeUp 1s .15s ease both;
  position: relative;
}
/* 哥特描边（叠一层深色描边模拟雕刻） */
.hero-title::after {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 2px rgba(201,169,107,.35);
}
.hero-title.flicker { animation: titleFlicker .18s steps(2) 1; }
@keyframes titleFlicker {
  0% { opacity: 1; }
  50% { opacity: .55; filter: drop-shadow(0 0 18px rgba(201,169,107,.9)); }
  100% { opacity: 1; }
}
.hero-sub {
  font-family: var(--font-cn); font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--text); font-weight: 500; letter-spacing: 2px;
  margin-bottom: 14px; animation: fadeUp 1s .25s ease both;
}
.hero-sub em {
  font-style: normal; color: var(--gold-lt); font-weight: 700;
  text-shadow: 0 0 14px rgba(201,169,107,.5);
}
.hero-tagline {
  font-family: var(--font-latin); font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim); margin-bottom: 28px;
  animation: fadeUp 1s .32s ease both;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 36px; animation: fadeUp 1s .4s ease both;
}
.hero-tags span {
  font-family: var(--font-cn); font-size: .85rem; font-weight: 500;
  color: var(--gold); padding: 6px 16px;
  border: 1px solid var(--line-soft); border-radius: 6px;
  background: rgba(23,15,34,.6);
}

/* 倒计时 */
.hero-countdown { margin-bottom: 34px; animation: fadeUp 1s .48s ease both; }
.cd-title {
  display: block; font-family: var(--font-cn); font-weight: 700;
  color: var(--gold-lt); letter-spacing: 3px; text-indent: 3px;
  margin-bottom: 14px; font-size: 1.05rem;
}
.cd-row { display: inline-flex; align-items: center; gap: 8px; }
.cd-unit {
  min-width: 66px; padding: 12px 8px; border-radius: 10px;
  background: linear-gradient(160deg, var(--panel2), var(--purple));
  border: 1px solid var(--line);
}
.cd-num {
  font-family: var(--font-latin); font-weight: 700; font-size: 2rem;
  color: var(--gold-lt); line-height: 1;
}
.cd-label { font-size: .8rem; color: var(--text-dim); margin-top: 6px; }
.cd-sep { font-size: 1.8rem; color: var(--blood-lt); font-weight: 700; }
.cd-placeholder {
  display: inline-block; font-family: var(--font-cn);
  color: var(--gold); font-size: 1.05rem; letter-spacing: 2px;
  padding: 12px 26px; border: 1px dashed var(--line);
  border-radius: 40px; background: rgba(45,27,61,.4);
}

/* CTA 按钮 */
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s .56s ease both; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cn); font-weight: 700; font-size: 1.05rem;
  padding: 15px 34px; border-radius: 10px; cursor: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  color: #1a0a12;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border: 1px solid var(--gold-lt);
  box-shadow: var(--glow-gold);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(201,169,107,.75); }
.btn-ghost {
  color: var(--gold-lt);
  background: rgba(45,27,61,.5);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(139,21,56,.4); transform: translateY(-2px); }
.btn-icon { width: 20px; height: 20px; }

/* 首屏快捷入口 */
.hero-quicknav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 14px;
  justify-content: center; margin-top: 26px; animation: fadeUp 1s .7s ease both;
}
.hqn-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 15px 12px; border-radius: 12px; cursor: none; text-decoration: none;
  background: rgba(45,27,61,.42); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.hqn-item:hover {
  transform: translateY(-3px); border-color: var(--gold);
  background: rgba(139,21,56,.32); box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.hqn-ic { color: var(--gold-lt); display: flex; }
.hqn-ic svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(201,169,107,.4)); }
.hqn-t { font-family: var(--font-cn); font-weight: 700; font-size: 1rem; color: var(--txt); letter-spacing: .5px; }
.hqn-d { font-size: .74rem; color: var(--txt-dim); letter-spacing: .5px; }
@media (max-width: 620px) {
  .hero-quicknav { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; margin-left: auto; margin-right: auto; }
}

.hero-spires { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; pointer-events: none; }
.hero-spires svg { display: block; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   数据统计条
   ============================================================= */
.stats-bar {
  position: relative; z-index: 6;
  background: linear-gradient(180deg, var(--purple), var(--bg2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 5vw;
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: -10px; top: 15%; bottom: 15%; width: 1px;
  background: var(--line-soft);
}
.stat-num {
  font-family: var(--font-latin); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-lt); line-height: 1;
  text-shadow: 0 0 18px rgba(201,169,107,.4);
}
.stat-label { color: var(--text-dim); font-size: .95rem; margin-top: 8px; letter-spacing: 1px; }

/* =============================================================
   通用 section
   ============================================================= */
.sec { position: relative; z-index: 6; padding: 90px 5vw; }
.sec-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-eyebrow {
  display: block; font-family: var(--font-black);
  font-size: 1.7rem; color: var(--gold-dim);
  letter-spacing: 4px; text-indent: 4px; opacity: .8; margin-bottom: 8px;
}
.sec-title {
  font-family: var(--font-cn); font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  color: var(--gold-lt); letter-spacing: 3px; text-indent: 3px;
  text-shadow: 0 2px 20px rgba(139,21,56,.4);
  position: relative; display: inline-block;
}
/* 石碑雕刻渐显：section 进入视口时标题浮现 */
.sec-head.reveal .sec-title { opacity: 0; transform: translateY(12px); filter: blur(4px); }
.sec-head.in .sec-title {
  opacity: 1; transform: translateY(0); filter: blur(0);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}
.sec-desc, .sec-sub { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; letter-spacing: 1px; }
.sec-divider {
  width: 120px; height: 2px; margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.sec-divider::after {
  content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--gold); font-size: .9rem; background: var(--bg); padding: 0 8px;
}

/* =============================================================
   版本特色卡片
   ============================================================= */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.feature-card {
  position: relative; padding: 34px 26px 30px;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:nth-child(odd)  { border-top: 2px solid var(--blood); }
.feature-card:nth-child(even) { border-top: 2px solid var(--gold); }
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 50% 0%, rgba(201,169,107,.14), transparent 60%);
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.4rem; display: block; margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(201,169,107,.4)); }
.feature-tag {
  position: absolute; top: 20px; right: 18px;
  font-size: .72rem; color: var(--gold); padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(45,27,61,.6);
}
.feature-title {
  font-family: var(--font-cn); font-weight: 700; font-size: 1.3rem;
  color: var(--gold-lt); margin-bottom: 10px;
}
.feature-desc { color: var(--text-dim); font-size: .98rem; }

/* =============================================================
   开服福利时间线
   ============================================================= */
.rewards-layout { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 20px; }
.rewards-spine { position: relative; display: flex; flex-direction: column; align-items: center; }
.spine-line { flex: 1; width: 2px; background: linear-gradient(var(--blood), var(--gold)); min-height: 20px; }
.spine-dot { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); box-shadow: var(--glow-gold); }
.reward-card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-left: 3px solid var(--blood);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
}
.reward-time { color: var(--gold); font-family: var(--font-latin); font-weight: 700; font-size: 1.1rem; }
.reward-title { font-weight: 700; color: var(--gold-lt); margin: 6px 0 10px; }
.reward-items li { color: var(--text-dim); font-size: .95rem; padding-left: 18px; position: relative; }
.reward-items li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* =============================================================
   职业介绍 · 翻转卡（3×2 grid · 禁圆盘）
   ============================================================= */
.classes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.cls-wrap { perspective: 1200px; }
.cls-card {
  position: relative; height: 340px; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1); cursor: none;
}
.cls-wrap:hover .cls-card, .cls-card.flipped { transform: rotateY(180deg); }
.cls-front, .cls-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px; text-align: center; overflow: hidden;
}
.cls-front { background: linear-gradient(160deg, var(--panel2), var(--purple)); }
.cls-back {
  background: linear-gradient(160deg, var(--blood), var(--purple));
  transform: rotateY(180deg); gap: 12px;
}
.cls-portrait { width: 100%; flex: 1; overflow: hidden; border-radius: 10px; margin-bottom: 12px; }
.cls-portrait img { width: 100%; height: 100%; object-fit: cover; }
.cls-icon { font-size: 4rem; margin-bottom: 14px; filter: drop-shadow(0 0 12px rgba(201,169,107,.5)); }
.cls-name { font-family: var(--font-cn); font-weight: 900; font-size: 1.5rem; color: var(--gold-lt); }
.cls-sub { font-family: var(--font-latin); font-style: italic; color: var(--gold); letter-spacing: 2px; }
.cls-desc { color: var(--gold-lt); font-size: .95rem; }
.cls-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cls-tag { font-size: .78rem; color: var(--gold-lt); padding: 3px 10px; border: 1px solid var(--gold); border-radius: 20px; }

/* =============================================================
   充值套餐
   ============================================================= */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.pack-card {
  position: relative; padding: 34px 24px; text-align: center;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.pack-card.featured { border-color: var(--gold); box-shadow: var(--glow-gold); }
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pack-badge { position: absolute; top: 14px; right: 14px; font-size: .72rem; padding: 3px 12px; border-radius: 20px; color: #1a0a12; background: var(--gold); }
.pack-name { font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: 1.2rem; }
.pack-price { margin: 12px 0 4px; color: var(--gold-lt); }
.pack-price-currency { font-size: 1.2rem; }
.pack-price-num { font-family: var(--font-latin); font-weight: 700; font-size: 2.6rem; }
.pack-original { color: var(--text-mute); text-decoration: line-through; font-size: .9rem; }
.pack-items { margin: 16px 0; }
.pack-items li { color: var(--text-dim); font-size: .92rem; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.pack-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px 26px; border-radius: 8px; color: #1a0a12; font-weight: 700; cursor: none;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
}

/* 充值 / 赞助 单入口 CTA */
.recharge-cta {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: 46px 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel2), var(--purple));
  border: 1px solid var(--gold);
  box-shadow: var(--glow-gold);
}
.recharge-cta-icon { font-size: 2.8rem; margin-bottom: 12px; filter: drop-shadow(0 0 12px rgba(201,169,107,.5)); }
.recharge-cta-title { font-family: var(--font-cn); font-weight: 900; font-size: 1.6rem; color: var(--gold-lt); letter-spacing: 2px; margin-bottom: 12px; }
.recharge-cta-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.9; margin-bottom: 26px; }
.recharge-cta-btn { font-size: 1.1rem; padding: 15px 40px; }
.recharge-cta-note { margin-top: 18px; color: var(--text-mute); font-size: .85rem; letter-spacing: .5px; }

/* =============================================================
   公告列表
   ============================================================= */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-left: 3px solid var(--purple-lt);
  border-radius: 10px; transition: transform .2s, border-color .2s;
}
.news-item:hover { transform: translateX(6px); border-left-color: var(--gold); }
.news-item.pinned { border-left-color: var(--blood); background: linear-gradient(160deg, rgba(139,21,56,.18), var(--bg2)); }
.news-type { font-size: .78rem; padding: 3px 12px; border-radius: 6px; color: var(--gold-lt); }
.news-type.activity { background: var(--blood); }
.news-type.update { background: var(--purple-lt); }
.news-type.maintenance { background: var(--gold-dim); color: #1a0a12; }
.news-type.notice { background: var(--purple); }
.news-pin { font-size: .78rem; color: var(--blood-lt); }
.news-title { flex: 1; min-width: 200px; color: var(--text); font-weight: 500; }
.news-date { color: var(--text-mute); font-family: var(--font-latin); font-size: .95rem; }

/* =============================================================
   游戏攻略（首页板块 / 列表页 / 详情页）
   ============================================================= */
.guide-home-sec { background: linear-gradient(180deg, var(--bg), var(--bg2)); }

/* 分类 tab */
.guide-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.guide-tab {
  font-family: var(--font-cn); font-size: .95rem; color: var(--text-dim);
  padding: 8px 20px; border-radius: 40px; cursor: none;
  border: 1px solid var(--line-soft); background: rgba(23,15,34,.6);
  transition: color .2s, border-color .2s, background .2s;
}
.guide-tab span { color: var(--gold-dim); font-size: .82rem; margin-left: 2px; }
.guide-tab:hover { color: var(--gold-lt); border-color: var(--line); }
.guide-tab.active { color: #1a0a12; background: linear-gradient(135deg, var(--gold-lt), var(--gold)); border-color: var(--gold-lt); }
.guide-tab.active span { color: #4a2a10; }

/* 卡片网格 */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: none;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.guide-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.guide-card-cover {
  position: relative; height: 168px; overflow: hidden;
  display: grid; place-items: center;
}
.guide-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-cover-icon { font-size: 3rem; filter: drop-shadow(0 0 10px rgba(201,169,107,.4)); opacity: .85; }
.guide-cover-gold   { background: linear-gradient(150deg, var(--purple), #3a2416); }
.guide-cover-blood  { background: linear-gradient(150deg, var(--purple), var(--blood)); }
.guide-cover-purple { background: linear-gradient(150deg, var(--panel2), var(--purple-lt)); }
.guide-card-cat {
  position: absolute; top: 12px; left: 12px; font-size: .74rem; font-weight: 700;
  color: var(--gold-lt); padding: 3px 12px; border-radius: 20px;
  background: rgba(10,10,10,.55); border: 1px solid var(--line);
}
.guide-card-pin {
  position: absolute; top: 12px; right: 12px; font-size: .72rem;
  color: var(--blood-lt); padding: 3px 10px; border-radius: 20px; background: rgba(10,10,10,.55);
}
.guide-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card-title { font-family: var(--font-cn); font-weight: 700; font-size: 1.15rem; color: var(--gold-lt); line-height: 1.5; margin-bottom: 10px; }
.guide-card-summary { color: var(--text-dim); font-size: .92rem; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: .82rem; color: var(--text-mute); }
.guide-card-more { color: var(--gold); }
.guide-home-more { text-align: center; margin-top: 40px; }
.guide-empty { text-align: center; color: var(--text-dim); padding: 70px 0; font-size: 1.05rem; letter-spacing: 1px; }

/* 详情页 */
.guide-list-sec, .guide-article { padding-top: 120px; }
.guide-article-inner { max-width: 820px; margin: 0 auto; }
.guide-crumb { font-size: .9rem; color: var(--text-mute); margin-bottom: 18px; }
.guide-crumb a { color: var(--gold-dim); }
.guide-crumb a:hover { color: var(--gold-lt); }
.guide-crumb span { margin: 0 6px; }
.guide-article-title { font-family: var(--font-cn); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--gold-lt); line-height: 1.35; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(139,21,56,.35); }
.guide-article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font-size: .9rem; color: var(--text-mute); }
.guide-article-cat { font-size: .78rem; font-weight: 700; color: var(--gold-lt); padding: 4px 14px; border-radius: 20px; border: 1px solid var(--line); }
.guide-article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line-soft); }
.guide-article-cover img { width: 100%; display: block; }

/* 正文排版 */
.guide-article-body { color: var(--text); font-size: 1.06rem; line-height: 2; }
.guide-article-body h2, .guide-article-body h3, .guide-article-body h4 {
  font-family: var(--font-cn); color: var(--gold-lt); margin: 32px 0 14px;
  padding-left: 14px; border-left: 3px solid var(--blood); line-height: 1.4;
}
.guide-article-body h2 { font-size: 1.5rem; }
.guide-article-body h3 { font-size: 1.28rem; }
.guide-article-body h4 { font-size: 1.1rem; }
.guide-article-body p { margin: 0 0 16px; }
.guide-article-body ul, .guide-article-body ol { margin: 0 0 18px; padding-left: 4px; }
.guide-article-body li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--text-dim); list-style: none; }
.guide-article-body ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.guide-article-body ol { counter-reset: gi; }
.guide-article-body ol li { counter-increment: gi; }
.guide-article-body ol li::before { content: counter(gi); position: absolute; left: 0; color: var(--gold); font-family: var(--font-latin); font-weight: 700; }
.guide-article-body img { max-width: 100%; border-radius: 10px; margin: 18px 0; border: 1px solid var(--line-soft); }
.guide-article-body a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 3px; }
.guide-article-body b, .guide-article-body strong { color: var(--gold-lt); }
.guide-article-body blockquote { border-left: 3px solid var(--gold); padding: 8px 18px; margin: 18px 0; background: rgba(45,27,61,.4); color: var(--text-dim); border-radius: 0 8px 8px 0; }
.guide-article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.guide-article-body th, .guide-article-body td { border: 1px solid var(--line-soft); padding: 10px 12px; text-align: left; }
.guide-article-body th { background: rgba(139,21,56,.25); color: var(--gold-lt); }

.guide-article-foot { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin: 40px 0 10px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.guide-article-foot .btn-ghost, .guide-article-foot .btn-primary { text-decoration: none; }

.guide-related { margin-top: 40px; }
.guide-related-title { font-family: var(--font-cn); font-weight: 700; font-size: 1.2rem; color: var(--gold-lt); margin-bottom: 16px; }
.guide-related-list { display: flex; flex-direction: column; gap: 10px; }
.guide-related-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: linear-gradient(160deg, var(--panel), var(--bg2)); transition: transform .2s, border-color .2s; }
.guide-related-item:hover { transform: translateX(6px); border-color: var(--gold); }
.guide-related-cat { font-size: .74rem; font-weight: 700; color: var(--gold-lt); padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line); flex: none; }
.guide-related-name { color: var(--text); font-weight: 500; }

@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }

/* =============================================================
   下载区
   ============================================================= */
.download-sec { background: linear-gradient(180deg, var(--bg), var(--purple) 120%); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.dl-item {
  position: relative; padding: 30px 22px; text-align: center;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.dl-item:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.dl-item-featured { border-color: var(--gold); box-shadow: var(--glow-gold); }
.dl-item-tag { position: absolute; top: 12px; right: 12px; font-size: .72rem; color: #1a0a12; background: var(--gold); padding: 3px 10px; border-radius: 20px; }
.dl-item-icon { font-size: 2.6rem; margin-bottom: 12px; }
.dl-item-name { font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: 1.15rem; }
.dl-item-desc { color: var(--text-dim); font-size: .9rem; margin: 8px 0; min-height: 40px; }
.dl-item-size { color: var(--text-mute); font-size: .85rem; margin-bottom: 12px; }
.dl-item-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; color: #1a0a12; font-weight: 700; cursor: none;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  transition: box-shadow .2s;
}
.dl-item-btn:hover { box-shadow: 0 0 20px rgba(201,169,107,.6); }
.dl-tips { text-align: center; margin-top: 34px; color: var(--text-dim); font-size: .92rem; }
.dl-tips b { color: var(--gold-lt); }
.dl-faq-callout {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  max-width: 680px; margin: 18px auto 0; padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, rgba(139,21,56,.22), rgba(45,27,61,.5));
  color: var(--text); font-size: .95rem; cursor: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dl-faq-callout:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--glow-gold); }
.dl-faq-callout b { color: var(--gold-lt); }
.dl-faq-icon { font-size: 1.4rem; flex: none; }

/* =============================================================
   页脚
   ============================================================= */
footer { position: relative; z-index: 6; background: var(--bg2); border-top: 1px solid var(--line); padding: 60px 5vw 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.footer-brand-name { display: flex; align-items: center; gap: 12px; font-family: var(--font-cn); font-weight: 900; font-size: 1.4rem; color: var(--gold-lt); margin-bottom: 14px; }
.footer-brand-img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand-desc { color: var(--text-dim); font-size: .95rem; }
.footer-col-title { font-family: var(--font-cn); font-weight: 700; color: var(--gold); margin-bottom: 16px; letter-spacing: 1px; }
.footer-links li, .footer-contacts li { margin-bottom: 10px; color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-lt); }
.footer-contacts .contact-icon { margin-right: 6px; }
.contact-value { color: var(--gold); }
.footer-links-bar { padding: 20px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; color: var(--text-mute); }
.footer-links-label { color: var(--text-dim); }
.footer-links-bar a { color: var(--text-dim); }
.footer-links-bar a:hover { color: var(--gold-lt); }
.footer-links-sep { margin: 0 8px; color: var(--text-mute); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 22px; }
.footer-copy { color: var(--text-mute); font-size: .88rem; line-height: 1.8; }
.footer-beian { display: flex; gap: 16px; }
.footer-beian a { color: var(--text-mute); font-size: .85rem; }
.footer-beian a:hover { color: var(--gold); }

/* =============================================================
   客服侧栏（标准位置）
   ============================================================= */
.side-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9998; }
.side-tab {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 36px; min-height: 180px; border-radius: 10px 0 0 10px;
  background: linear-gradient(160deg, var(--blood), var(--purple));
  border: 1px solid var(--gold); border-right: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: none; box-shadow: -4px 0 18px rgba(0,0,0,.4);
  transition: opacity .3s, transform .3s;
}
.side-tab-icon { width: 20px; height: 20px; color: var(--gold-lt); }
.side-tab-text { font-family: var(--font-cn); font-size: .8rem; color: var(--gold-lt); line-height: 1.3; letter-spacing: 1px; }
.side-tab-dot { position: absolute; top: 10px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 8px var(--gold); animation: candleFlicker 1.6s infinite; }
.side-panel {
  width: 268px; background: linear-gradient(160deg, var(--panel2), var(--bg2));
  border: 1px solid var(--gold); border-radius: 12px 0 0 12px;
  box-shadow: -8px 0 30px rgba(0,0,0,.5); overflow: hidden;
  transition: transform .35s ease, opacity .35s ease;
}
.side-bar.collapsed .side-panel { transform: translateX(100%); opacity: 0; pointer-events: none; }
.side-bar.collapsed .side-tab { opacity: 1; }
.side-bar:not(.collapsed) .side-tab { opacity: 0; pointer-events: none; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: linear-gradient(135deg, var(--blood), var(--purple)); }
.side-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 8px var(--gold); }
.side-head-text { flex: 1; font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); }
.side-head-close { background: none; border: none; color: var(--gold-lt); font-size: 1rem; cursor: none; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.side-row-icon { font-size: 1.3rem; }
.side-row-info { flex: 1; }
.side-row-label { font-size: .8rem; color: var(--text-mute); }
.side-row-value { color: var(--gold-lt); font-weight: 500; }
.side-row-copy { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px; color: var(--gold); cursor: none; }
.side-row-copy svg { width: 16px; height: 16px; }
.side-row-copy.copied { background: var(--gold); color: #1a0a12; }
.side-top { position: absolute; right: 0; bottom: -54px; width: 44px; height: 44px; border-radius: 10px 0 0 10px; border: 1px solid var(--gold); border-right: none; background: var(--purple); color: var(--gold-lt); cursor: none; opacity: 0; transform: translateY(10px); transition: .3s; display: grid; place-items: center; }
.side-top.show { opacity: 1; transform: translateY(0); }
.side-top svg { width: 20px; height: 20px; }

/* =============================================================
   浮动公告 toast
   ============================================================= */
.notice-toast { position: fixed; right: 24px; bottom: 24px; z-index: 9997; width: 340px; max-width: calc(100vw - 48px); }
.notice-toast-trigger {
  position: absolute; bottom: 0; right: 0;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blood), var(--purple));
  border: 1px solid var(--gold); color: var(--gold-lt); cursor: none;
  display: grid; place-items: center; box-shadow: var(--glow-blood);
  opacity: 0; transform: scale(0); transition: opacity .3s, transform .3s;
}
.notice-toast-trigger svg { width: 24px; height: 24px; }
.notice-toast-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 8px var(--gold); animation: candleFlicker 1.4s infinite; }
.notice-toast.collapsed .notice-toast-trigger { opacity: 1; transform: scale(1); }
.notice-toast.collapsed .notice-toast-box { opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; }
.notice-toast-box {
  background: linear-gradient(160deg, var(--panel2), var(--bg2));
  border: 1px solid var(--gold); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: opacity .35s ease, transform .35s ease;
}
.notice-toast-gold   { border-color: var(--gold); }
.notice-toast-purple { border-color: var(--purple-lt); }
.notice-toast-red    { border-color: var(--blood-lt); }
.notice-toast-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, var(--blood), var(--purple)); }
.notice-toast-type { font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: .95rem; }
.notice-toast-close { background: none; border: none; color: var(--gold-lt); font-size: 1rem; cursor: none; }
.notice-toast-body { padding: 16px; }
.notice-toast-pin { font-size: .8rem; color: var(--blood-lt); margin-bottom: 6px; }
.notice-toast-title { font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: 1.05rem; margin-bottom: 8px; }
.notice-toast-date { color: var(--text-mute); font-size: .85rem; margin-bottom: 10px; }
.notice-toast-content { color: var(--text-dim); font-size: .9rem; max-height: 160px; overflow-y: auto; }
.notice-toast-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.notice-toast-nshow { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-mute); cursor: none; }
.notice-toast-link { font-size: .85rem; color: var(--gold); }

/* =============================================================
   网页在线客服浮动按钮（左下角）
   ============================================================= */
.chat-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 9996;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 40px;
  font-family: var(--font-cn); font-weight: 700; font-size: .98rem;
  color: var(--gold-lt); cursor: none;
  background: linear-gradient(135deg, var(--blood), var(--purple));
  border: 1px solid var(--gold);
  box-shadow: var(--glow-blood), 0 8px 24px rgba(0,0,0,.45);
  transition: transform .22s ease, box-shadow .22s ease;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(201,169,107,.7), 0 10px 28px rgba(0,0,0,.5); }
.chat-fab-icon {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: rgba(240,220,168,.12);
}
.chat-fab-icon svg { width: 18px; height: 18px; }
.chat-fab-text { white-space: nowrap; letter-spacing: 1px; }
.chat-fab-dot {
  position: absolute; top: 8px; left: 32px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-lt); box-shadow: 0 0 8px var(--gold);
  animation: candleFlicker 1.5s infinite;
}
@media (max-width: 560px) {
  .chat-fab { left: 12px; bottom: 12px; padding: 10px 16px 10px 12px; font-size: .9rem; }
}
/* 内嵌聊天面板 */
.chat-widget.open .chat-fab { opacity: 0; pointer-events: none; }
.chat-panel {
  position: fixed; left: 24px; bottom: 24px; z-index: 9996;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, var(--panel2), var(--bg2));
  border: 1px solid var(--gold); border-radius: 16px;
  box-shadow: var(--glow-gold), 0 20px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(24px) scale(.96); transform-origin: left bottom;
  pointer-events: none; transition: opacity .28s ease, transform .28s ease;
}
.chat-widget.open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex: none;
  background: linear-gradient(135deg, var(--blood), var(--purple));
  border-bottom: 1px solid var(--line);
}
.chat-panel-title { flex: 1; font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: 1rem; letter-spacing: 1px; }
.chat-panel-newtab, .chat-panel-close {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  color: var(--gold-lt); background: rgba(240,220,168,.1); border: none;
  border-radius: 8px; cursor: none; font-size: 1rem; text-decoration: none; transition: background .2s;
}
.chat-panel-newtab:hover, .chat-panel-close:hover { background: rgba(240,220,168,.25); }
.chat-panel-body { flex: 1; background: #fff; position: relative; }
.chat-panel-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) {
  .chat-panel {
    left: 8px; right: 8px; bottom: 8px; width: auto;
    height: 78vh; max-height: calc(100vh - 16px);
  }
}
@media (prefers-reduced-motion: reduce) { .chat-panel { transition: opacity .1ms; } }

/* 进站引导气泡 + 按钮抖动 */
.chat-fab-bubble {
  position: fixed; left: 20px; bottom: 76px; z-index: 9996;
  max-width: 220px; padding: 10px 14px; border-radius: 12px 12px 12px 4px;
  font-family: var(--font-cn); font-size: .88rem; color: var(--gold-lt);
  background: linear-gradient(160deg, var(--panel2), var(--purple));
  border: 1px solid var(--gold); box-shadow: var(--glow-gold);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: left bottom;
  pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.chat-widget.nudge .chat-fab-bubble { opacity: 1; transform: translateY(0) scale(1); }
.chat-widget.nudge .chat-fab { animation: fabShake 1.6s ease-in-out infinite; }
.chat-widget.open .chat-fab-bubble { opacity: 0 !important; }
@keyframes fabShake {
  0%, 92%, 100% { transform: translateY(0) rotate(0); }
  94% { transform: translateY(-3px) rotate(-4deg); }
  96% { transform: translateY(-3px) rotate(4deg); }
  98% { transform: translateY(-2px) rotate(-2deg); }
}
@media (max-width: 560px) { .chat-fab-bubble { left: 12px; bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .chat-widget.nudge .chat-fab { animation: none; } }

/* 品牌客服页 kefu.php */
.kefu-sec { padding-top: 120px; }
.kefu-frame-wrap {
  max-width: 480px; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--gold); border-radius: 16px;
  box-shadow: var(--glow-gold), var(--shadow);
}
.kefu-frame-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  font-family: var(--font-cn); font-weight: 700; color: var(--gold-lt); font-size: .95rem;
  background: linear-gradient(135deg, var(--blood), var(--purple));
  border-bottom: 1px solid var(--line);
}
.kefu-dot { width: 9px; height: 9px; border-radius: 50%; background: #66d17a; box-shadow: 0 0 8px #66d17a; }
.kefu-newtab { margin-left: auto; font-size: .82rem; color: var(--gold-lt); opacity: .85; }
.kefu-newtab:hover { opacity: 1; }
.kefu-frame { display: block; width: 100%; height: 640px; max-height: 74vh; border: 0; background: #fff; }
.kefu-tips { max-width: 480px; margin: 20px auto 0; text-align: center; color: var(--text-dim); font-size: .9rem; line-height: 1.9; }
.kefu-tips a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 3px; }
.kefu-back { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.kefu-back a { text-decoration: none; }

/* =============================================================
   滚动出现动画
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 980px) {
  .features-grid, .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: center; gap: 0; background: rgba(14,9,20,.98); padding: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease; border-bottom: 1px solid var(--line-soft); }
  .nav.open .nav-links { max-height: 400px; padding: 16px 0; }
  .nav-links a { padding: 14px 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-item:nth-child(3)::before, .stat-item:nth-child(2)::before { display: none; }
  .rewards-layout { grid-template-columns: 1fr; }
  .rewards-spine { display: none; }
}
@media (max-width: 560px) {
  .features-grid, .classes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cd-unit { min-width: 54px; }
  .cd-num { font-size: 1.5rem; }
  .hero { padding: 100px 5vw 120px; }
  .notice-toast { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .1ms !important; }
}
