/* ═══════════════════════════════════════════════════════════════
   解放雙手天堂 — v3 台式黑暗帝王風
   俗氣 × 大氣 × 接地氣 × 深邃黑暗之力
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── 背景深淵 ── */
  --bg-base:       #04030a;
  --bg-dark:       #07050f;
  --bg-alt:        #090714;
  --bg-card:       #0e0a1e;
  --bg-card-hover: #160e2c;
  --bg-surface:    #1a1230;

  /* ── 帝王金 ── */
  --gold:          #d4a820;
  --gold-bright:   #ffe060;
  --gold-pale:     #fff0a0;
  --gold-dim:      #7a6018;
  --gold-faint:    rgba(212, 168, 32, 0.08);
  --gold-glow:     rgba(212, 168, 32, 0.55);
  --gold-glow-lg:  rgba(212, 168, 32, 0.25);

  /* ── 血紅火焰 ── */
  --red:           #cc0000;
  --red-bright:    #ff2424;
  --red-dim:       #7a0000;
  --red-faint:     rgba(200, 0, 0, 0.08);
  --red-glow:      rgba(200, 0, 0, 0.65);
  --red-glow-lg:   rgba(200, 0, 0, 0.3);

  /* ── 噬魂紫 —— 第三色調，靈魂能量 ── */
  --soul:          #7a00cc;
  --soul-bright:   #b040ff;
  --soul-dim:      #3a0060;
  --soul-faint:    rgba(120, 0, 200, 0.08);
  --soul-glow:     rgba(120, 0, 200, 0.55);
  --soul-glow-lg:  rgba(120, 0, 200, 0.22);

  /* ── 文字 ── */
  --text:          #e8d090;
  --text-bright:   #fff4b8;
  --text-dim:      #a07840;
  --text-muted:    #5a4020;

  /* ── 邊框 ── */
  --border-gold:   rgba(212, 168, 32, 0.25);
  --border-red:    rgba(200, 0, 0, 0.3);
  --border-hi:     rgba(212, 168, 32, 0.65);

  /* ── 版型 ── */
  --container-max: 1200px;
  --header-h:      62px;
  --ease:          0.24s ease;

  /* ── 間距系統 ── */
  --section-py:    80px;
  --card-p:        22px;
  --gap-md:        20px;
}

/* ══════════════════════════════════
   RESET
══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #04030a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--red-dim), var(--gold-dim));
}

/* ══════════════════════════════════
   BODY ── 極深暗紫黑 + 紅色格線氣場
══════════════════════════════════ */
body {
  background-color: var(--bg-base);
  background-image:
    /* 頂部紅色深淵 */
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 0, 0, 0.2) 0%, transparent 60%),
    /* 底部靈魂紫氣 */
    radial-gradient(ellipse 100% 40% at 50% 110%, rgba(80, 0, 150, 0.25) 0%, transparent 60%),
    /* 格線：紅紫混合氣場 */
    linear-gradient(rgba(140, 0, 180, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  color: var(--text);
  font-family: 'Noto Serif TC', 'STSong', '宋體', serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════
   CONTAINER
══════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════
   SECTION BASE
══════════════════════════════════ */
.section { padding: var(--section-py) 0; }

.section--alt {
  background: linear-gradient(180deg, rgba(10,6,20,0.95) 0%, rgba(6,3,14,0.98) 50%, rgba(8,4,18,0.95) 100%);
  border-top: 1px solid var(--border-red);
  border-bottom: 1px solid var(--border-red);
  box-shadow: inset 0 8px 32px rgba(0,0,0,0.5), inset 0 -8px 32px rgba(0,0,0,0.5);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-header__left { flex-shrink: 0; }

.section-header__right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
}

/* Eyebrow */
.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.48em;
  /* 紅色眼眉，俗氣大氣感 */
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--red-glow);
}

/* Section Title */
.section-title {
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(212,168,32,0.35), 0 0 40px rgba(212,168,32,0.15);
}

.section-title::before {
  content: '◆';
  font-size: 0.58em;
  color: var(--red);
  margin-right: 8px;
  vertical-align: middle;
  text-shadow: 0 0 8px var(--red-glow);
}

/* 延伸線：紅金漸層 */
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--red-bright), var(--red), var(--gold-dim), transparent);
  box-shadow: 0 0 6px rgba(200,0,0,0.4);
}

.section-link {
  font-size: 0.78rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color var(--ease);
}
.section-link:hover { color: var(--gold-bright); }

.data-loading {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  grid-column: 1 / -1;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 3, 10, 0.97);
  /* 底部：左紅右金漸層線，俗氣而大氣 */
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(to right, var(--red), var(--gold), var(--red)) 1;
  box-shadow:
    0 2px 0 rgba(200, 0, 0, 0.5),
    0 4px 30px rgba(200, 0, 0, 0.25),
    0 4px 60px rgba(212, 168, 32, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1440px;
  padding: 0 16px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: -12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  object-fit: cover;
  flex-shrink: 0;
}
.site-logo .logo-text,
.site-logo .logo-sub {
  display: block;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-shadow:
    0 0 10px var(--gold-glow),
    0 0 24px var(--gold-glow),
    0 0 50px var(--gold-glow-lg),
    0 1px 0 rgba(0,0,0,0.9);
}

.logo-sub {
  display: none;
}

/* 桌面 Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-btn {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: all var(--ease);
}
.nav-btn:hover {
  color: var(--gold-bright);
  border-color: var(--border-gold);
  background: var(--gold-faint);
  text-shadow: 0 0 8px var(--gold-glow);
}

.nav-btn--primary {
  background: var(--red-dim);
  color: var(--text-bright) !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 10px var(--red-glow);
}
.nav-btn--primary:hover {
  background: var(--red);
  box-shadow: 0 0 20px var(--red-glow), 0 0 40px var(--red-glow-lg);
}

/* 漢堡 */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 4px var(--red-glow);
}

/* 手機選單 */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(4, 3, 10, 0.99);
  border-top: 1px solid var(--border-red);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 13px 24px;
  font-size: 0.88rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-red);
  transition: all var(--ease);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold-bright); background: var(--gold-faint); }

/* 下拉選單 */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__toggle {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--ease);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-dropdown__toggle::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-dropdown__toggle.is-active,
.nav-dropdown__toggle:hover {
  color: var(--gold-bright);
  border-color: var(--border-gold);
  background: var(--gold-faint);
  text-shadow: 0 0 8px var(--gold-glow);
}
.nav-dropdown__toggle.is-active::after {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 150px;
  background: #0a0514;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  z-index: 300;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,168,32,0.08);
}
.nav-dropdown__menu.is-open {
  display: flex;
}
.nav-dropdown__menu a {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  border-bottom: 1px solid #1e1630;
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-dropdown__menu a:last-child { border-bottom: none; }
.nav-dropdown__menu a:hover {
  color: var(--gold-bright);
  background: var(--gold-faint);
  padding-left: 20px;
}
/* 手機：下拉子項目縮排 */
.mobile-nav .mobile-sub {
  padding: 11px 24px 11px 38px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-bottom: 1px solid #1a1230;
  letter-spacing: 0.08em;
  transition: all var(--ease);
}
.mobile-nav .mobile-sub:hover { color: var(--gold-bright); background: var(--gold-faint); }
.mobile-nav .mobile-group-label {
  padding: 12px 24px 6px;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  font-family: 'Cinzel', serif;
  border-bottom: 1px solid #1a1230;
  background: rgba(212,168,32,0.04);
}

/* ══════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════ */
.search-toggle {
  background:none; border:1px solid transparent; color:var(--gold-dim);
  font-size:0.8rem; padding:4px 10px; cursor:pointer;
  transition:all var(--ease); font-family:'Cinzel',serif;
  letter-spacing:0.1em; display:flex; align-items:center; gap:4px;
}
.search-toggle:hover { color:var(--gold-bright); border-color:var(--gold-dim); background:var(--gold-faint); text-shadow:0 0 8px var(--gold-glow); }

.search-overlay {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(4,3,10,0.97); backdrop-filter:blur(16px);
  flex-direction:column; align-items:center; justify-content:flex-start;
  padding-top:100px;
}
.search-overlay.is-open { display:flex; }
.search-overlay__close {
  position:absolute; top:20px; right:24px;
  background:none; border:1px solid #2a1f40; color:var(--gold-dim);
  font-size:1.2rem; cursor:pointer; padding:8px 12px;
  font-family:'Cinzel',serif; transition:all 0.2s;
}
.search-overlay__close:hover { color:var(--gold-bright); border-color:var(--gold-dim); background:var(--gold-faint); }
.search-overlay__box {
  width:90%; max-width:640px;
}
.search-overlay__label {
  font-family:'Noto Serif TC',serif; font-size:1.2rem; font-weight:700;
  color:var(--gold-bright); letter-spacing:0.2em; text-align:center;
  margin-bottom:20px;
  text-shadow:0 0 16px rgba(212,168,32,0.4);
}
.search-overlay__input {
  width:100%; padding:16px 24px; font-size:1rem;
  background:linear-gradient(135deg,#120e24,#0c0818);
  border:1px solid var(--gold-dim);
  color:var(--text-bright); font-family:'Noto Serif TC',serif;
  letter-spacing:0.1em; outline:none; border-radius:2px;
  box-shadow:0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,168,32,0.08);
}
.search-overlay__input::placeholder { color:#5a4020; letter-spacing:0.15em; }
.search-overlay__input:focus { border-color:var(--gold); box-shadow:0 0 30px rgba(212,168,32,0.25), 0 4px 20px rgba(0,0,0,0.5); }
.search-overlay__results {
  margin-top:12px; max-height:50vh; overflow-y:auto;
  background:linear-gradient(180deg,#0c0818,#08050f);
  border:1px solid #1e1630; border-radius:2px;
}
.search-result {
  display:block; padding:14px 20px; border-bottom:1px solid #1a1230;
  text-decoration:none; transition:all 0.2s;
}
.search-result:hover { background:linear-gradient(90deg,rgba(212,168,32,0.06),transparent); border-left:3px solid var(--gold-dim); }
.search-result__title { color:var(--gold-bright); font-family:'Noto Serif TC',serif; font-weight:700; font-size:0.92rem; margin-bottom:4px; letter-spacing:0.08em; }
.search-result__path { display:none; }
.search-result__match { color:var(--text-dim); font-size:0.78rem; margin-top:4px; }
.search-result__match mark { background:rgba(212,168,32,0.25); color:var(--gold-bright); padding:1px 4px; border-radius:1px; }
.search-no-result { color:var(--text-muted); text-align:center; padding:40px; font-size:0.88rem; letter-spacing:0.1em; }

/* ══════════════════════════════════
   FLOATING SIDEBAR
══════════════════════════════════ */
.float-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 62px;
  background: rgba(10, 6, 20, 0.96);
  border: 1px solid;
  border-right: none;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  gap: 5px;
  transition: all var(--ease);
}

.float-icon { font-size: 1.2rem; line-height: 1; display: block; }
.float-label { font-size: 0.62rem; letter-spacing: 0.05em; line-height: 1; }

.float-btn--sponsor {
  color: var(--gold);
  border-color: var(--gold-dim);
  box-shadow: -2px 0 10px var(--gold-glow-lg);
}
.float-btn--sponsor:hover {
  width: 66px;
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: -3px 0 20px var(--gold-glow);
  text-shadow: 0 0 8px var(--gold-glow);
}

.float-btn--download {
  color: var(--red);
  border-color: var(--red-dim);
  box-shadow: -2px 0 10px var(--red-glow-lg);
}
.float-btn--download:hover {
  width: 66px;
  color: var(--red-bright);
  border-color: var(--red);
  box-shadow: -3px 0 20px var(--red-glow);
  text-shadow: 0 0 8px var(--red-glow);
}

.float-btn--line:hover {
  width: 66px;
  color: #fff !important;
  background: #06C755 !important;
  border-color: #06C755 !important;
  box-shadow: -3px 0 20px rgba(6,199,85,0.5) !important;
}

/* ══════════════════════════════════
   贊助說明 金光特效（全站共用）
══════════════════════════════════ */
@keyframes sponsor-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(255,224,96,0.4), 0 0 12px rgba(212,168,32,0.2); }
  50% { text-shadow: 0 0 14px rgba(255,224,96,0.8), 0 0 28px rgba(212,168,32,0.5), 0 0 40px rgba(255,200,0,0.3); }
}
@keyframes coin-orbit  { 0% { transform:rotate(0deg) translateX(18px) rotate(0deg); } 100% { transform:rotate(360deg) translateX(18px) rotate(-360deg); } }
@keyframes coin-orbit2 { 0% { transform:rotate(120deg) translateX(22px) rotate(-120deg); } 100% { transform:rotate(480deg) translateX(22px) rotate(-480deg); } }
@keyframes coin-orbit3 { 0% { transform:rotate(240deg) translateX(16px) rotate(-240deg); } 100% { transform:rotate(600deg) translateX(16px) rotate(-600deg); } }
@keyframes sparkle-burst { 0%,100% { opacity:0; transform:scale(0.5); } 50% { opacity:1; transform:scale(1.2); } }

.nav-sponsor-wrap { position:relative; display:inline-flex; align-items:center; }
.nav-sponsor-wrap .nav-btn { animation:sponsor-glow 2s ease-in-out infinite; color:#ffe060 !important; font-weight:700; }
.nav-sponsor-coin { position:absolute; font-size:0.6rem; pointer-events:none; top:50%; left:50%; margin-top:-5px; margin-left:-5px; }
.nav-sponsor-coin:nth-child(2) { animation:coin-orbit 3s linear infinite; }
.nav-sponsor-coin:nth-child(3) { animation:coin-orbit2 4s linear infinite; }
.nav-sponsor-coin:nth-child(4) { animation:coin-orbit3 3.5s linear infinite; }
.nav-sponsor-sparkle { position:absolute; font-size:0.5rem; pointer-events:none; color:#ffe060; }
.nav-sponsor-sparkle:nth-child(5) { top:-4px; right:-8px; animation:sparkle-burst 1.5s ease infinite 0s; }
.nav-sponsor-sparkle:nth-child(6) { bottom:-2px; left:-6px; animation:sparkle-burst 1.8s ease infinite 0.4s; }
.nav-sponsor-sparkle:nth-child(7) { top:-2px; left:10px; animation:sparkle-burst 2s ease infinite 0.8s; }
.nav-sponsor-sparkle:nth-child(8) { bottom:-4px; right:4px; animation:sparkle-burst 1.6s ease infinite 1.2s; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (max-width: 768px) {
  .hero-video { display: none; }
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(140, 0, 0, 0.6) 0%, transparent 55%),
    radial-gradient(ellipse 45% 80% at 5%  50%,  rgba(80, 0, 150, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 45% 80% at 95% 50%,  rgba(80, 0, 150, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4,2,12,0.55) 0%, rgba(4,2,12,0.15) 50%, rgba(4,2,12,0.7) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-base), transparent);
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── 巨型裝飾背景字 ── */
.hero-deco-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif;
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 0, 0, 0.08);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
}

/* ── Hero 內容：左右分流 ── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* 左側 */
.hero-left {
  flex: 1;
  max-width: 580px;
  animation: heroFadeUp 1s ease both;
}

/* eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-eyebrow__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-dim));
}
.hero-eyebrow__line:last-child {
  background: linear-gradient(to left, transparent, var(--red-dim));
}
.hero-eyebrow__text {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--red-bright);
  text-shadow: 0 0 8px var(--red-glow);
  white-space: nowrap;
  text-transform: uppercase;
}

/* 主標題 */
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.32em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--gold-bright);
  text-shadow:
    0 0 20px var(--gold-glow),
    0 0 55px var(--gold-glow),
    0 0 100px var(--gold-glow-lg),
    0 2px 0 rgba(200,0,0,0.55),
    0 4px 12px rgba(0,0,0,0.95);
}

/* 標語 */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.tagline-cn {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--text);
  text-shadow: 0 0 16px rgba(212,168,32,0.4), 0 2px 8px rgba(0,0,0,0.8);
}
.tagline-sep {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.7;
  text-shadow: 0 0 8px var(--gold-glow);
  flex-shrink: 0;
}

/* CTA 按鈕 */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 13px 32px;
  border: 1px solid;
  transition: all var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.cta-icon { font-size: 0.8rem; opacity: 0.85; }

.cta-btn--primary {
  background: linear-gradient(135deg, var(--red-dim) 0%, var(--red) 100%);
  color: var(--text-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 20px var(--red-glow), 0 0 50px var(--red-glow-lg),
              inset 0 1px 0 rgba(255,100,100,0.2);
}
.cta-btn--primary:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  box-shadow: 0 0 30px var(--red-glow), 0 0 70px var(--red-glow-lg);
  transform: translateY(-2px);
}
.cta-btn--outline {
  background: rgba(4,3,10,0.6);
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow-lg), inset 0 0 8px rgba(212,168,32,0.05);
  text-shadow: 0 0 8px var(--gold-glow);
  backdrop-filter: blur(4px);
}
.cta-btn--outline:hover {
  background: rgba(212, 168, 32, 0.12);
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px var(--gold-glow), 0 0 50px var(--gold-glow-lg);
  transform: translateY(-2px);
}

/* ── 右側 HUD ── */
.hero-right {
  flex-shrink: 0;
  animation: heroFadeUp 1s 0.3s ease both;
}

.hero-hud {
  background: rgba(4, 3, 10, 0.82);
  border: 1px solid var(--border-red);
  backdrop-filter: blur(12px);
  padding: 20px 26px;
  min-width: 196px;
  box-shadow: 0 0 30px rgba(200,0,0,0.15), 0 0 60px rgba(120,0,200,0.08),
              inset 0 0 20px rgba(200,0,0,0.04);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.hud-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  color: var(--red-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hud-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #44ff88;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.hud-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #44ff88;
  box-shadow: 0 0 8px #44ff88;
  animation: hudPulse 1.6s ease infinite;
  flex-shrink: 0;
}
.hud-divider {
  height: 1px;
  background: linear-gradient(to right, var(--red-dim), var(--gold-dim), transparent);
  margin: 10px 0;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 5px 0;
}
.hud-key {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.hud-val {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.06em;
}
.hud-val.gold { color: var(--gold-bright); text-shadow: 0 0 10px var(--gold-glow); }
.hud-val.red  { color: var(--red-bright);  text-shadow: 0 0 10px var(--red-glow); }

/* ── 動畫 ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hudPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #44ff88; }
  50%       { opacity: 0.4; box-shadow: 0 0 3px #44ff88; }
}

/* ── 石碑浮雕伺服器狀態列 ── */
.hero-statusbar {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: linear-gradient(180deg, #09060f 0%, #06030c 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(to right,
    transparent 0%, var(--red-dim) 8%,
    var(--gold-dim) 25%, var(--gold) 50%,
    var(--gold-dim) 75%, var(--red-dim) 92%,
    transparent 100%) 1;
  box-shadow: inset 0 6px 24px rgba(0,0,0,0.85), inset 0 1px 0 rgba(212,168,32,0.1);
}

/* 左側線上狀態 */
.statusbar-online {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(212,168,32,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.statusbar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #44ff88;
  box-shadow: 0 0 12px #44ff88, 0 0 24px rgba(68,255,136,0.4);
  animation: hudPulse 1.6s ease infinite;
  flex-shrink: 0;
}
.statusbar-online span:last-child {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #44ff88;
}

/* 格子容器 */
.statusbar-cells {
  flex: 1;
  display: flex;
  align-items: stretch;
}

/* 單格 */
.statusbar-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  gap: 6px;
  transition: background var(--ease);
  cursor: default;
}
.statusbar-cell:hover { background: rgba(212,168,32,0.03); }

/* Label — 小字在上，帶左右短線 */
.statusbar-key {
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  color: var(--gold-dim);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.statusbar-key::before,
.statusbar-key::after {
  content: '';
  width: 10px; height: 1px;
  background: var(--gold-dim);
  opacity: 0.45;
  display: block;
}

/* 主數值 — 大字在下 */
.statusbar-val {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  line-height: 1;
}
.statusbar-val.gold {
  color: var(--gold-bright);
  text-shadow: 0 0 16px var(--gold-glow);
}
.statusbar-val.red {
  color: var(--red-bright);
  text-shadow: 0 0 16px var(--red-glow);
}

/* 縮小次要文字（.81、全天、限3） */
.statusbar-unit {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* 經驗倍率特殊格：左手動 右內掛 */
.statusbar-cell--exp { flex: 1.6; }
.statusbar-exp {
  display: flex;
  align-items: center;
  gap: 10px;
}
.statusbar-exp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.statusbar-exp-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.statusbar-exp-div {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(212,168,32,0.4), transparent);
  flex-shrink: 0;
}

/* 金色豎線分隔 */
.statusbar-sep {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(212,168,32,0.3) 20%,
    rgba(212,168,32,0.5) 50%,
    rgba(212,168,32,0.3) 80%,
    transparent 100%);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}
.scroll-line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--red), var(--gold-dim), transparent);
  margin: 6px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.9); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ══════════════════════════════════
   ANNOUNCEMENTS
══════════════════════════════════ */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-red);
}

.ann-card {
  display: block;
  background: linear-gradient(135deg, #110d22 0%, #0e0a1c 55%, #130a1e 100%);
  padding: 18px 22px;
  border-top: 2px solid transparent;
  transition: all var(--ease);
}
.ann-card:hover {
  background: linear-gradient(135deg, #1c1030 0%, #180c2a 60%, #1a0c28 100%);
  border-top-color: var(--red);
  box-shadow: 0 6px 32px rgba(200,0,0,0.3), 0 0 24px rgba(120,0,200,0.1);
  transform: translateY(-3px);
  position: relative; z-index: 1;
}

.ann-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.ann-card__tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border: 1px solid var(--red);
  color: var(--red);
  flex-shrink: 0;
}

.ann-card__date {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.ann-card__title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ann-card:hover .ann-card__title { color: var(--text-bright); }

/* ══════════════════════════════════
   QUICK NAV
══════════════════════════════════ */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-red);
}

.dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 14px 20px;
  background: linear-gradient(160deg, #120e24 0%, #0e0a1c 55%, #100820 100%);
  gap: 5px;
  border-top: 2px solid transparent;
  transition: all var(--ease);
  position: relative;
}
.dir-card:hover {
  background: linear-gradient(160deg, #1e1232 0%, #1a0e2c 55%, #1c0a2e 100%);
  border-top-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 8px 36px rgba(200,0,0,0.35), 0 0 30px rgba(120,0,200,0.15), 0 0 60px rgba(212,168,32,0.06);
  z-index: 1;
}
.dir-card--highlight { border-top-color: var(--gold) !important; }
.dir-card--highlight .dir-icon {
  color: var(--gold) !important;
  text-shadow: 0 0 12px var(--gold-glow) !important;
}

.dir-icon {
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
  transition: all var(--ease);
}
.dir-card:hover .dir-icon {
  color: var(--red-bright);
  text-shadow: 0 0 14px var(--red-glow);
}

.dir-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
}
.dir-card:hover .dir-title { color: var(--text-bright); }

.dir-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════
   SERVER INFO
══════════════════════════════════ */
.server-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-gold);
  box-shadow: 0 0 30px rgba(212,168,32,0.1);
}

.server-card {
  background: linear-gradient(160deg, #120e24 0%, #0c0818 55%, #100a1e 100%);
  padding: 28px 16px;
  text-align: center;
  position: relative;
  transition: background var(--ease);
}
.server-card:hover { background: linear-gradient(160deg, #1c1230 0%, #160e28 100%); }

/* 頂部金線 */
.server-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.server-card__label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.server-card__value {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 0 14px var(--gold-glow), 0 0 30px var(--gold-glow-lg);
}

.server-card__note {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════
   EVENT CAROUSEL
══════════════════════════════════ */
#event-carousel { padding-bottom: 0; }
#event-carousel .section-header { margin-bottom: 20px; }

.ev-carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  user-select: none;
}

.ev-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.ev-slide.is-active { opacity: 1; pointer-events: auto; }

.ev-slide__img-placeholder {
  position: absolute;
  inset: 0;
}

/* 左側暗色遮罩讓文字可讀 */
.ev-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(4,3,10,0.92) 0%,
    rgba(4,3,10,0.55) 45%,
    transparent 75%);
  z-index: 1;
}

.ev-slide__content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 640px;
}

.ev-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  padding: 3px 12px;
  border: 1px solid var(--red);
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.ev-tag--gold { border-color: var(--gold-dim); color: var(--gold); }
.ev-tag--soul { border-color: var(--soul); color: var(--soul-bright); }

.ev-title {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.ev-date {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.ev-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: 1px solid var(--red);
  color: var(--text-bright);
  background: rgba(150,0,0,0.2);
  transition: all var(--ease);
}
.ev-btn:hover { background: var(--red); color: #fff; }
.ev-btn--gold { border-color: var(--gold-dim); background: rgba(120,90,0,0.2); }
.ev-btn--gold:hover { background: var(--gold-dim); color: var(--bg-base); }
.ev-btn--soul { border-color: var(--soul); background: rgba(80,0,150,0.2); }
.ev-btn--soul:hover { background: var(--soul); color: #fff; }

/* 底部導航點 */
.ev-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.ev-dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  padding: 0;
}
.ev-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  width: 44px;
}

/* 左右箭頭 */
.ev-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(4,3,10,0.6);
  border: 1px solid var(--border-red);
  color: var(--text-dim);
  font-size: 1.4rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
}
.ev-arrow:hover { border-color: var(--gold); color: var(--gold-bright); }
.ev-arrow--prev { left: 16px; }
.ev-arrow--next { right: 16px; }

/* ══════════════════════════════════
   NEWBIE ZONE
══════════════════════════════════ */
.newbie-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* 標籤 */
.newbie-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-red);
}
.newbie-tab {
  background: none;
  border: none;
  padding: 10px 22px;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease);
}
.newbie-tab:hover { color: var(--text); }
.newbie-tab.is-active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* 面板 */
.newbie-panel { display: none; }
.newbie-panel.is-active { display: block; }

/* 影片佔位 */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder__inner { text-align: center; }
.video-play-icon {
  font-size: 2.8rem;
  color: var(--red);
  opacity: 0.5;
  margin-bottom: 14px;
}
.video-placeholder__text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.video-placeholder__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* 圖文攻略列表 */
.guide-list { display: flex; flex-direction: column; gap: 2px; }
.guide-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: linear-gradient(90deg, #0e0a1c 0%, #0c0818 100%);
  border-left: 2px solid transparent;
  transition: all var(--ease);
}
.guide-item:hover {
  background: linear-gradient(90deg, #1a1206 0%, #160e04 50%, #140c20 100%);
  border-left-color: var(--gold);
  padding-left: 26px;
  box-shadow: inset 3px 0 14px rgba(212,168,32,0.12);
}
.guide-num {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-dim);
  min-width: 28px;
  flex-shrink: 0;
}
.guide-item:hover .guide-num { color: var(--gold-dim); }
.guide-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.guide-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}
.guide-item:hover .guide-title { color: var(--text-bright); }
.guide-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.guide-arrow {
  color: var(--gold-dim);
  font-size: 1rem;
  transition: transform var(--ease);
  flex-shrink: 0;
}
.guide-item:hover .guide-arrow { transform: translateX(4px); color: var(--gold); }

/* 打卡牆卡片 */
.checkin-card {
  background: linear-gradient(160deg, #130e26 0%, #0e0a1c 55%, #120820 100%);
  border: 1px solid var(--border-red);
  border-top: 2px solid var(--gold-dim);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(212,168,32,0.04);
}
.checkin-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-red);
  background: linear-gradient(90deg, rgba(212,168,32,0.1) 0%, rgba(212,168,32,0.03) 50%, transparent 100%);
}
.checkin-card__icon {
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.checkin-card__title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.16em;
}
.checkin-card__sub {
  font-family: 'Cinzel', serif;
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkin-card__body { padding: 18px 22px; }
.checkin-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.85;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.checkin-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.checkin-reward-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(200,0,0,0.09) 0%, #1a1230 100%);
  border-left: 2px solid var(--red-dim);
}
.checkin-reward-item.reward-special {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(212,168,32,0.1) 0%, #1a1230 100%);
}
.reward-day {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.reward-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}
.reward-special .reward-name { color: var(--gold-bright); }

.checkin-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--red-dim) 0%, rgba(120,0,0,0.6) 100%);
  border-top: 1px solid var(--border-red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-bright);
  transition: all var(--ease);
}
.checkin-btn:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dim) 100%);
  color: #fff;
}
.checkin-btn__arrow {
  font-size: 1rem;
  transition: transform var(--ease);
}
.checkin-btn:hover .checkin-btn__arrow { transform: translateX(4px); }

/* ══════════════════════════════════
   UPDATE LIST
══════════════════════════════════ */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-red);
}

.update-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  background: linear-gradient(90deg, #0e0a1c 0%, #0c0818 100%);
  padding: 13px 22px;
  transition: all var(--ease);
  border-left: 2px solid transparent;
}
.update-item:hover {
  background: linear-gradient(90deg, #1a0a10 0%, #160818 60%, #140c24 100%);
  border-left-color: var(--red);
  padding-left: 26px;
  box-shadow: inset 3px 0 12px rgba(200,0,0,0.15);
}

.update-item__date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 88px;
  flex-shrink: 0;
}

.update-item__title {
  font-size: 0.86rem;
  color: var(--text);
  letter-spacing: 0.04em;
  flex: 1;
}

.update-item__tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 2px 8px;
  border: 1px solid var(--border-red);
  color: var(--red);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ══════════════════════════════════
   CLASS CAROUSEL
══════════════════════════════════ */
#class-section { padding-bottom: 0; }
#class-section .section-header { margin-bottom: 24px; }

.class-carousel {
  position: relative;
  height: 580px;
  overflow: hidden;
  user-select: none;
}

.class-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.class-slide.is-active { opacity: 1; pointer-events: auto; }

.class-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  filter: brightness(0.32) saturate(0.55);
  transition: filter 1s ease;
}
.class-slide.is-active .class-slide__bg {
  filter: brightness(0.45) saturate(0.75);
}

.class-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    /* 左側文字區深色 → 右側角色區透明 */
    linear-gradient(105deg,
      rgba(4, 3, 10, 0.95) 0%,
      rgba(4, 3, 10, 0.65) 38%,
      rgba(4, 3, 10, 0.10) 62%,
      transparent 80%),
    /* 底部漸層只蓋縮圖列，不蓋臉 */
    linear-gradient(to top,
      rgba(4, 3, 10, 0.98) 0%,
      rgba(4, 3, 10, 0.15) 22%,
      transparent 38%);
}

/* Step 1：職業圖 LOGO 浮水印 */
.class-slide__logo {
  position: absolute;
  bottom: 76px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: url('assets/images/logo-circle.jpg') center / cover;
  border-radius: 50%;
  opacity: 0.28;
  border: 1px solid rgba(212, 168, 32, 0.35);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.class-slide.is-active .class-slide__logo {
  opacity: 0.42;
}

.class-slide__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.class-slide__inner {
  max-width: 500px;
  padding: 0 0 64px;
}

.class-num {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--red);
  margin-bottom: 10px;
}

.class-name {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.22em;
  line-height: 1.05;
  text-shadow:
    0 0 24px var(--gold-glow),
    0 0 60px var(--gold-glow-lg),
    0 2px 0 rgba(200,0,0,0.5),
    0 4px 8px rgba(0,0,0,0.95);
  margin-bottom: 4px;
}

.class-name-en {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.55em;
  color: var(--red);
  margin-bottom: 14px;
}

.class-role {
  font-size: 0.82rem;
  color: var(--gold-dim);
  letter-spacing: 0.16em;
  padding-left: 12px;
  border-left: 2px solid var(--red);
  margin-bottom: 16px;
}

.class-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.class-quote {
  font-size: 0.86rem;
  color: var(--text);
  font-style: italic;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.class-quote::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--red), var(--gold-dim), transparent);
  margin-bottom: 10px;
}

/* 方向鈕 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(4, 3, 10, 0.85);
  border: 1px solid var(--border-red);
  color: var(--red);
  width: 44px; height: 44px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
}
.carousel-btn:hover {
  background: rgba(4, 3, 10, 0.98);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold-glow);
}
.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

/* 縮圖列 */
.class-thumbs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(3, 2, 8, 0.96);
  border-top: 1px solid var(--border-red);
  z-index: 10;
  overflow-x: auto;
  scrollbar-width: none;
}
.class-thumbs::-webkit-scrollbar { display: none; }

.class-thumb {
  flex: 1;
  min-width: 78px;
  padding: 10px 8px;
  background: none;
  border: none;
  border-right: 1px solid var(--border-red);
  border-bottom: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all var(--ease);
}
.class-thumb:last-child { border-right: none; }
.class-thumb:hover { background: var(--red-faint); }
.class-thumb.is-active {
  border-bottom-color: var(--red);
  background: rgba(150, 0, 0, 0.1);
}

.thumb-num {
  font-family: 'Cinzel', serif;
  font-size: 0.54rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color var(--ease);
}
.thumb-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color var(--ease);
}
.class-thumb:hover .thumb-num,
.class-thumb:hover .thumb-name { color: var(--red); }
.class-thumb.is-active .thumb-num { color: var(--red-dim); }
.class-thumb.is-active .thumb-name { color: var(--red-bright); text-shadow: 0 0 6px var(--red-glow); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
#site-footer {
  background: var(--bg-dark);
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, var(--red-dim), var(--gold-dim), var(--red-dim)) 1;
  padding: 40px 0 24px;
}

/* Footer 上半：品牌 + 五連結 */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-red);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.footer-logo-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  object-fit: cover;
  flex-shrink: 0;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 五連結水平列 */
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border: 1px solid var(--border-red);
  background: rgba(200,0,0,0.04);
  transition: all var(--ease);
}
.footer-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: rgba(212,168,32,0.07);
}
.footer-link__icon {
  font-size: 0.72rem;
  color: var(--red);
  transition: color var(--ease);
}
.footer-link:hover .footer-link__icon { color: var(--gold); }

.footer-link-sep {
  color: var(--border-red);
  font-size: 0.9rem;
  padding: 0 2px;
  user-select: none;
}

.footer-copy { text-align: center; }
.footer-copy__line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-dim), var(--gold-dim), var(--red-dim), transparent);
  margin-bottom: 16px;
}
.footer-copy p {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  line-height: 1.7;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-mobile-toggle { display: flex; }
  .ann-grid { grid-template-columns: repeat(2, 1fr); }
  .server-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-content { flex-direction: column; align-items: flex-start; padding: 0 24px 56px; gap: 24px; }
  .hero-left { max-width: 100%; }
  .hero-right { width: 100%; }
  .hero-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
  .hud-label, .hud-status, .hud-divider { grid-column: 1 / -1; }
  .hero-deco-text { font-size: 30vw; opacity: 0.5; }
}

@media (max-width: 640px) {
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .ann-grid { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: repeat(2, 1fr); }
  .class-carousel { height: 520px; }
  .class-slide__inner { padding: 0 0 56px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 8px; }
  .newbie-layout { grid-template-columns: 1fr; }
  .float-sidebar { display: none; }
  .hero-logo-img img { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-btn { text-align: center; justify-content: center; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .update-item { flex-wrap: wrap; gap: 4px; }
  .footer-links { flex-direction: column; align-items: flex-start; }
  .footer-link-sep { display: none; }
  .statusbar-online { display: none; }
  .statusbar-cell { padding: 10px 8px; }
  .statusbar-val { font-size: 1rem; }
  .statusbar-key { font-size: 0.48rem; }
}

/* ══════════════════════════════════════════════════
   FEATURE SUB-PAGES — 遊戲特色子頁面共用元件
   漸層配色 + 重點強調升級版
══════════════════════════════════════════════════ */

/* ─── Page Hero ─── */
.page-hero {
  background: linear-gradient(180deg, #0a0514 0%, #060310 60%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--gold-dim);
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% -5%, rgba(212,168,32,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  margin-bottom: 14px;
  position: relative;
}
.page-hero__title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  text-shadow: 0 2px 24px rgba(212,168,32,0.18);
  position: relative;
}
.page-hero__title span { color: var(--gold); }
.page-hero__sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  position: relative;
}

/* ─── Main Content Wrap ─── */
.fp-wrap { max-width: 960px; margin: 0 auto; padding: 60px 24px 80px; }

/* ─── Section Heading — 漸層左邊框 + 背景光帶 ─── */
.fp-heading {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: linear-gradient(90deg, rgba(212,168,32,0.09) 0%, rgba(212,168,32,0.03) 45%, transparent 100%);
  border-left: 3px solid var(--gold-dim);
  border-radius: 0 2px 2px 0;
}
.fp-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212,168,32,0.4), transparent);
}

/* ─── Intro Block — 對角漸層底色 ─── */
.fp-intro {
  background: linear-gradient(135deg, #130a28 0%, #0c0818 55%, #100820 100%);
  border: 1px solid rgba(212,168,32,0.18);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.fp-intro strong { color: var(--gold-bright); }

/* ─── System Block — 整體漸層卡片 ─── */
.sys-block {
  background: linear-gradient(135deg, #100c20 0%, #0c0818 55%, #120a1e 100%);
  border: 1px solid #1e1630;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}
.sys-block__head {
  background: linear-gradient(90deg, rgba(212,168,32,0.14) 0%, rgba(212,168,32,0.05) 45%, transparent 100%);
  border-bottom: 1px solid rgba(212,168,32,0.15);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sys-block__icon { font-size: 1.1rem; }
.sys-block__name {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.sys-block__body {
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.sys-block__body strong { color: var(--gold-bright); }
.sys-block__body p { margin: 0 0 10px; }
.sys-block__body p:last-child { margin: 0; }

/* ─── Warning Block ─── */
.fp-warn {
  background: linear-gradient(135deg, #1a0a0a 0%, #140505 100%);
  border: 1px solid rgba(200,0,0,0.3);
  border-left: 4px solid #ff4040;
  border-radius: 2px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #ffb0b0;
  line-height: 1.8;
}
.fp-warn strong { color: #ff6060; }

/* ─── Note / Tip Block ─── */
.fp-note {
  background: linear-gradient(135deg, #0a1020 0%, #08101c 100%);
  border: 1px solid rgba(96,160,255,0.22);
  border-left: 4px solid #4080c0;
  border-radius: 2px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #a0c0e8;
  line-height: 1.8;
  margin-bottom: 24px;
}
.fp-note strong { color: #80b8ff; }

/* ─── Prev / Next Pager ─── */
.fp-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.fp-pager__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0e0a1e 0%, #0c0818 100%);
  border: 1px solid #2a1f40;
  border-radius: 2px;
  padding: 12px 20px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.fp-pager__btn:hover {
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, #160e2c 0%, #110d20 100%);
  box-shadow: 0 0 14px rgba(212,168,32,0.07);
}
.fp-pager__btn--next { justify-content: flex-end; text-align: right; }
.fp-pager__dir {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 3px;
}
.fp-pager__name {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-bright);
}
.fp-pager__arrow { font-size: 1.2rem; color: var(--gold-dim); flex-shrink: 0; }
.fp-pager__btn:hover .fp-pager__arrow { color: var(--gold); }
.fp-pager__center { flex: 1; text-align: center; }
.fp-pager__back {
  font-size: 0.75rem;
  color: var(--gold-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.fp-pager__back:hover { color: var(--gold); }

/* ─── 數值顏色語意 — 重點強調 ─── */
/* 黃金（攻擊 / 重要加成） */
.v-gold   { color: var(--gold-bright); font-weight: 700; font-family: 'Cinzel', serif; }
/* 綠色（正向加成 / HP）*/
.v-green  { color: #70e870; font-weight: 700; font-family: 'Cinzel', serif; }
/* 紅色（負面 / 損失） */
.v-red    { color: #ff6060; font-weight: 700; font-family: 'Cinzel', serif; }
/* 藍色（MP / 魔法相關） */
.v-blue   { color: #60b8ff; font-weight: 700; font-family: 'Cinzel', serif; }
/* 青色（命中 / 速度） */
.v-cyan   { color: #40d8d0; font-weight: 700; font-family: 'Cinzel', serif; }
/* 橙色（擊殺 / 掠奪） */
.v-orange { color: #ffa040; font-weight: 700; font-family: 'Cinzel', serif; }
/* 紫色（特殊 / 魔防） */
.v-purple { color: #c070ff; font-weight: 700; font-family: 'Cinzel', serif; }

/* ══════════════════════════════════
   手機版全站優化（2026 Best Practices）
══════════════════════════════════ */

/* ── 手機版關閉複雜動畫（省電+效能）── */
@media (max-width: 768px) {
  .nav-sponsor-coin,
  .nav-sponsor-sparkle { display: none; }
  .nav-sponsor-wrap .nav-btn { animation: none; }
  #hero-particles { display: none; }
  .hero-deco-text { display: none; }
}

/* ── 手機版觸控優化 ── */
@media (max-width: 860px) {
  /* 選單項目最小 48px 高度 */
  .mobile-nav a,
  .mobile-nav .mobile-sub {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
  }
  /* header 內容加大 */
  .header-inner { padding: 0 12px; }
  /* page-hero 手機間距 */
  .page-hero { padding: 60px 16px 36px; }
  .page-hero__eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; }
  /* fp-wrap 手機間距 */
  .fp-wrap { padding: 40px 16px 60px; }
}

/* ── 手機版字型確保可讀 ── */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.7; }
  .fp-heading { font-size: 0.92rem; padding: 8px 12px; }
  .sys-block__body { font-size: 0.82rem; padding: 14px 16px; }
  .fp-intro { font-size: 0.82rem; padding: 14px 16px; }
  /* 狀態列手機版 */
  .hero-statusbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .statusbar-cells { min-width: 520px; }
}

/* ── 手機版底部按鈕替代懸浮側欄 ── */
@media (max-width: 640px) {
  .float-sidebar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    right: auto;
    left: 0;
    top: auto;
    width: 100%;
    flex-direction: row;
    gap: 0;
    z-index: 900;
    border-top: 1px solid var(--gold-dim);
  }
  .float-btn {
    flex: 1;
    height: 52px;
    width: auto;
    border: none;
    border-right: 1px solid rgba(212,168,32,0.15);
    border-radius: 0;
    flex-direction: row;
    gap: 6px;
    font-size: 0.72rem;
  }
  .float-btn:last-child { border-right: none; }
  .float-icon { font-size: 1rem; }
  .float-label { font-size: 0.65rem; }
  /* 底部留空間給 bottom bar */
  footer#site-footer { padding-bottom: 60px; }
}

/* ── 減少動畫偏好支援 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
