/* ==========================================================================
   《Mac天堂》官方網站設計系統 — 深緋暗夜 × 鍛金史詩中世紀美學
   底色嚴格對齊三張 1920×1080 原創油畫下緣 #120305，達成全站無縫融合
   ========================================================================== */

:root {
  --bg-void: #120305;
  --bg-deep: #170508;
  --bg-surface: #1e080c;
  --bg-surface-2: #270b10;
  --bg-elevated: rgba(34, 10, 14, 0.86);
  --bg-glass: rgba(18, 3, 5, 0.84);

  --gold-bright: #fae2a3;
  --gold-main: #dfb15b;
  --gold-mid: #c58d35;
  --gold-deep: #855718;
  --gold-line: rgba(223, 177, 91, 0.24);
  --gold-line-strong: rgba(223, 177, 91, 0.52);

  --crimson-bright: #d9363e;
  --crimson-main: #9f1b24;
  --crimson-deep: #5e0d14;
  --crimson-glow: rgba(180, 28, 38, 0.35);

  --line-green: #06c755;
  --line-green-dark: #05a847;
  --status-green: #3ddc84;

  --text-primary: #f6ede2;
  --text-secondary: #d5c4b4;
  --text-muted: #a58f7f;

  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 28px rgba(223, 177, 91, 0.22);

  --nav-height: 74px;
  --container-max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(120, 18, 28, 0.22), transparent 65%),
    var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container-max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--gold-main);
  color: #1a0608;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 通用按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(180deg, #f3d284 0%, #cf9538 52%, #a66c1b 100%);
  color: #1f0709;
  border-color: rgba(255, 236, 179, 0.75);
  box-shadow: 0 8px 26px rgba(212, 152, 56, 0.34), inset 0 1px 0 rgba(255, 248, 224, 0.65);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #fbe2a2 0%, #dea445 52%, #b57720 100%);
  box-shadow: 0 12px 34px rgba(223, 177, 91, 0.48), inset 0 1px 0 rgba(255, 250, 230, 0.8);
}

.btn-crimson {
  background: linear-gradient(180deg, #b8232d 0%, #801119 100%);
  color: #fff3e6;
  border-color: rgba(235, 165, 110, 0.48);
  box-shadow: 0 8px 24px rgba(159, 27, 36, 0.38);
}

.btn-crimson:hover {
  background: linear-gradient(180deg, #cf2b36 0%, #96161f 100%);
  box-shadow: 0 12px 30px rgba(190, 32, 43, 0.5);
}

.btn-outline {
  background: rgba(24, 6, 9, 0.72);
  color: var(--gold-bright);
  border-color: var(--gold-line-strong);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(223, 177, 91, 0.14);
  border-color: var(--gold-bright);
}

.btn-line {
  background: linear-gradient(180deg, #07d15a 0%, #05a847 100%);
  color: #ffffff;
  border-color: rgba(150, 255, 190, 0.45);
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.28);
}

.btn-line:hover {
  background: linear-gradient(180deg, #0ce063 0%, #06b84f 100%);
  box-shadow: 0 12px 28px rgba(6, 199, 85, 0.42);
}

.btn-lg {
  min-height: 54px;
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ---------- 頂部導覽列 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(18, 3, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 177, 91, 0.14);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(16, 3, 5, 0.94);
  border-bottom-color: rgba(223, 177, 91, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  width: min(1320px, calc(100% - 36px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 0 16px rgba(223, 177, 91, 0.25);
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff1c9 0%, #e1b257 58%, #b37822 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-link {
  padding: 7px 9px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-bright);
  background: rgba(223, 177, 91, 0.1);
}

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

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 10, 13, 0.85);
  border: 1px solid var(--gold-line);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 10px var(--status-green);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 10, 14, 0.9);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(16, 3, 5, 0.98);
  border-bottom: 1px solid var(--gold-line-strong);
  padding: 18px 20px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-line);
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- Hero 史詩首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-void);
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: contrast(1.04) saturate(1.06);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 3, 5, 0.56) 0%, rgba(18, 3, 5, 0.08) 28%, rgba(18, 3, 5, 0.42) 56%, rgba(18, 3, 5, 0.94) 78%, var(--bg-void) 100%),
    radial-gradient(ellipse 75% 55% at 50% 24%, transparent 32%, rgba(18, 3, 5, 0.58) 100%);
}

/* 輕量餘燼粒子（純 CSS，零主執行緒負擔） */
.ember-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.65;
}

.ember {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe8a3 0%, #e58e26 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(255, 194, 82, 0.85);
  animation: floatEmber var(--dur, 11s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
}

@keyframes floatEmber {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  15% { opacity: 0.9; }
  75% { opacity: 0.5; }
  100% { transform: translate3d(var(--drift, 32px), -72vh, 0) scale(0.2); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(235px, 31vh, 330px) 0 36px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 17px;
  border-radius: 999px;
  background: rgba(26, 6, 9, 0.84);
  border: 1px solid var(--gold-line-strong);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 0 auto 14px;
  max-width: 920px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: #fff6ea;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.85);
  text-wrap: balance;
}

.gold-gradient-text {
  background: linear-gradient(180deg, #fff3cc 0%, #e7ba62 54%, #ba7c23 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 24px;
  max-width: 760px;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.78;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
  background: rgba(25, 7, 10, 0.84);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 12px;
  border-right: 1px solid rgba(223, 177, 91, 0.14);
}

.trust-item:last-child {
  border-right: none;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.trust-value {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.trust-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ---------- 通用章節樣式 ---------- */
.section {
  position: relative;
  padding: 92px 0;
}

.section-alt {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(130, 19, 30, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(25, 7, 10, 0.55) 0%, rgba(18, 3, 5, 0.96) 100%);
  border-top: 1px solid rgba(223, 177, 91, 0.12);
  border-bottom: 1px solid rgba(223, 177, 91, 0.12);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 12px;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main));
}

.section-kicker::after {
  background: linear-gradient(90deg, var(--gold-main), transparent);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.68rem, 2.9vw, 2.45rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: #fff5e8;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-wrap: balance;
}

/* ---------- 特色卡（Mac 原生＋四大核心支柱） ---------- */
.mac-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 15%, rgba(223, 177, 91, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(46, 12, 17, 0.92) 0%, rgba(22, 6, 9, 0.96) 100%);
  border: 1px solid var(--gold-line-strong);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  margin-bottom: 32px;
  align-items: center;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(159, 27, 36, 0.35);
  border: 1px solid rgba(223, 177, 91, 0.45);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.mac-spotlight h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.2vw, 1.82rem);
  color: #fff6ea;
}

.mac-spotlight p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(18, 3, 5, 0.72);
  border: 1px solid var(--gold-line);
  font-size: 0.86rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.compare-mini {
  background: rgba(14, 3, 5, 0.78);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.compare-mini-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-line);
}

.compare-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(223, 177, 91, 0.14);
  font-size: 0.88rem;
}

.compare-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compare-key {
  color: var(--text-muted);
  font-weight: 600;
}

.compare-val {
  color: var(--text-primary);
}

.compare-val strong {
  color: var(--gold-bright);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(35, 11, 15, 0.92) 0%, rgba(22, 6, 9, 0.96) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 177, 91, 0.14);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.22), rgba(159, 27, 36, 0.34));
  border: 1px solid var(--gold-line-strong);
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  color: #fff6ea;
}

.card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.62rem;
  color: var(--gold-main);
}

.bullet-list strong {
  color: var(--gold-bright);
}

/* ---------- 伺服器倍率與設定 ---------- */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.rate-card {
  background: linear-gradient(180deg, rgba(44, 12, 17, 0.92), rgba(22, 6, 9, 0.96));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.rate-num {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff3cc 0%, #dfb15b 62%, #b0741e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.rate-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rate-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.specs-table-wrap {
  background: rgba(24, 7, 10, 0.9);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(223, 177, 91, 0.12);
  vertical-align: top;
}

.specs-table thead th {
  background: rgba(159, 27, 36, 0.22);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom-color: var(--gold-line-strong);
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.specs-table tbody tr:hover {
  background: rgba(223, 177, 91, 0.04);
}

.spec-name {
  font-weight: 700;
  color: var(--gold-bright);
  width: 24%;
  white-space: nowrap;
}

.spec-val {
  font-weight: 700;
  color: #fff6ea;
  width: 26%;
}

.spec-detail {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ---------- 五大經典職業（連動史詩主圖） ---------- */
.classes-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--bg-void);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.classes-artwork-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--bg-void);
}

.classes-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.classes-artwork-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 3, 5, 0.08) 0%, transparent 50%, rgba(18, 3, 5, 0.78) 86%, var(--bg-void) 100%);
  pointer-events: none;
}

/* 對應畫面上左→右五位英雄的優雅定位熱區按鈕 */
.hero-hotspots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 18% 20% 24% 20% 18%;
  z-index: 2;
}

.hero-hotspot {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  transition: background 0.3s ease;
}

.hero-hotspot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(18, 3, 5, 0.78);
  border: 1px solid rgba(223, 177, 91, 0.25);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.hero-hotspot:hover::after,
.hero-hotspot.active::after {
  color: #1c0507;
  background: linear-gradient(180deg, #fae2a3 0%, #d29639 100%);
  border-color: #fff2cc;
  box-shadow: 0 0 22px rgba(223, 177, 91, 0.65);
  transform: translateX(-50%) translateY(-4px);
}

.hero-hotspot.active {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(250, 226, 163, 0.14), transparent 72%);
  box-shadow: inset 0 -3px 0 var(--gold-main);
}

.class-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.class-tab {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(28, 9, 12, 0.9);
  border: 1px solid var(--gold-line);
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.22s var(--ease);
}

.class-tab small {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.class-tab:hover {
  border-color: var(--gold-line-strong);
  color: var(--gold-bright);
}

.class-tab.active {
  background: linear-gradient(180deg, rgba(159, 27, 36, 0.42), rgba(45, 11, 16, 0.96));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 10px 28px rgba(159, 27, 36, 0.32), var(--shadow-gold);
}

.class-tab.active small {
  color: var(--text-primary);
}

.class-detail-panel {
  background: linear-gradient(180deg, rgba(35, 10, 14, 0.94), rgba(20, 5, 8, 0.98));
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  box-shadow: var(--shadow-card);
}

.class-detail-panel[hidden] {
  display: none;
}

.class-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.class-panel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--gold-bright);
}

.class-role-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(159, 27, 36, 0.38);
  border: 1px solid rgba(223, 177, 91, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffe9d6;
}

.class-panel-summary {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.skill-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(18, 3, 5, 0.78);
  border: 1px solid var(--gold-line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.class-stats-box {
  background: rgba(16, 4, 6, 0.78);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.stat-meter-top strong {
  color: var(--gold-bright);
}

.stat-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9f1b24 0%, #dfb15b 70%, #fae2a3 100%);
  transition: width 0.35s var(--ease);
}

.class-footnote {
  margin-top: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- 金蘋果良心商城與公開零親友 ---------- */
.vow-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.vow-card {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(130, 18, 28, 0.34), rgba(26, 7, 10, 0.94));
  border: 1px solid rgba(223, 177, 91, 0.38);
  text-align: center;
}

.vow-zero {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.vow-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pill-tab {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(28, 8, 12, 0.88);
  border: 1px solid var(--gold-line);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.pill-tab:hover {
  border-color: var(--gold-line-strong);
  color: var(--gold-bright);
}

.pill-tab.active {
  background: linear-gradient(180deg, #ecc570 0%, #c08328 100%);
  color: #1f0608;
  border-color: #fff0c2;
}

.mall-panel {
  display: none;
}

.mall-panel.active {
  display: block;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mall-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(26, 8, 11, 0.92);
  border: 1px solid var(--gold-line);
}

.mall-item h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #fff6ea;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mall-tag {
  font-size: 0.74rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(223, 177, 91, 0.16);
  border: 1px solid rgba(223, 177, 91, 0.34);
  color: var(--gold-bright);
  font-weight: 600;
}

.mall-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.mall-price {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold-bright);
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(159, 27, 36, 0.28);
  border: 1px solid rgba(223, 177, 91, 0.38);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 奇岩城攻城戰史詩專區 ---------- */
.siege-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  background: var(--bg-void);
  box-shadow: var(--shadow-card);
}

.siege-banner-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  width: 100%;
  overflow: hidden;
}

.siege-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.siege-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 3, 5, 0.22) 0%, rgba(18, 3, 5, 0.14) 38%, rgba(18, 3, 5, 0.88) 84%, var(--bg-void) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px 26px;
}

.siege-live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.siege-schedule-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 900;
  color: #fff6ea;
  margin: 0 0 6px;
}

.siege-schedule-sub {
  margin: 0;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.96rem;
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(18, 3, 5, 0.88);
  border: 1px solid var(--gold-line-strong);
  backdrop-filter: blur(8px);
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.countdown-timer {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.siege-body {
  padding: 28px 36px 36px;
  background: var(--bg-void);
}

.siege-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.siege-step {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(30, 9, 13, 0.88);
  border: 1px solid var(--gold-line);
}

.siege-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3d284, #b57720);
  color: #1f0608;
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.siege-step h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--gold-bright);
}

.siege-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.siege-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.siege-rule {
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(159, 27, 36, 0.14);
  border: 1px solid rgba(223, 177, 91, 0.22);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.siege-rule strong {
  color: var(--gold-bright);
}

/* ---------- 社群、交易所與血盟生態 ---------- */
.social-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- macOS 原生桌面版下載專區 ---------- */
.download-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 32px 34px;
  margin-bottom: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(223, 177, 91, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(46, 12, 17, 0.94) 0%, rgba(20, 5, 8, 0.98) 100%);
  border: 1px solid var(--gold-line-strong);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.download-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(223, 177, 91, 0.25);
  flex-shrink: 0;
}

.download-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.26rem, 2vw, 1.56rem);
  color: #fff6ea;
}

.download-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.download-desc {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.download-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.download-meta-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(18, 3, 5, 0.76);
  border: 1px solid var(--gold-line);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(14, 3, 5, 0.78);
  border: 1px dashed rgba(223, 177, 91, 0.26);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  overflow: hidden;
}

.sha-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-guide-panel {
  background: rgba(14, 3, 5, 0.78);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.install-guide-panel h4 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--gold-bright);
}

.install-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.install-steps strong {
  color: var(--gold-bright);
}

.install-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 177, 91, 0.14);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 新手 3 步入坑與指令小抄 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}

.step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(35, 10, 14, 0.92), rgba(20, 5, 8, 0.98));
  border: 1px solid var(--gold-line);
}

.step-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(223, 177, 91, 0.14);
  border: 1px solid var(--gold-line-strong);
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff6ea;
}

.step-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.cmd-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(26, 8, 11, 0.92);
  border: 1px solid var(--gold-line);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cmd-card:hover {
  border-color: var(--gold-bright);
  background: rgba(42, 12, 17, 0.94);
}

.cmd-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.cmd-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cmd-copy-hint {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(223, 177, 91, 0.2);
}

/* ---------- 官方 LINE 與技術保障（E-E-A-T） ---------- */
.trust-community-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.line-cta-card {
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 15%, rgba(6, 199, 85, 0.16), transparent 48%),
    linear-gradient(135deg, rgba(26, 14, 15, 0.95), rgba(18, 5, 8, 0.98));
  border: 1px solid rgba(6, 199, 85, 0.42);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.16);
  border: 1px solid rgba(6, 199, 85, 0.45);
  color: #6df2a0;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.line-cta-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff7ed;
}

.line-cta-card p {
  margin: 0;
  color: var(--text-secondary);
}

.eeat-card {
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(35, 10, 14, 0.92), rgba(20, 5, 8, 0.98));
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card);
}

.eeat-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.36rem;
  color: var(--gold-bright);
}

.eeat-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(223, 177, 91, 0.16);
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 首頁最新攻略與深度文章區塊 ---------- */
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-article-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(35, 11, 15, 0.94) 0%, rgba(20, 5, 8, 0.98) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.home-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line-strong);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 177, 91, 0.16);
}

.home-article-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #140406;
  border-bottom: 1px solid rgba(223, 177, 91, 0.15);
}

.home-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.home-article-card:hover .home-article-thumb img {
  transform: scale(1.04);
}

.home-article-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(18, 3, 5, 0.86);
  border: 1px solid rgba(223, 177, 91, 0.5);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.home-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.home-article-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.42;
  color: #fff6ea;
}

.home-article-summary {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

.home-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 177, 91, 0.14);
  font-size: 0.84rem;
}

.home-article-more {
  color: var(--gold-bright);
  font-weight: 700;
}

.home-articles-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---------- 常見問題 FAQ ---------- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(27, 8, 12, 0.92);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--gold-line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.faq-q {
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff6ea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(223, 177, 91, 0.14);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  transition: transform 0.22s ease, background 0.22s ease;
}

.faq-item[open] .faq-q::after {
  content: "−";
  background: rgba(223, 177, 91, 0.25);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.82;
  border-top: 1px solid rgba(223, 177, 91, 0.1);
  padding-top: 16px;
}

.faq-a strong {
  color: var(--gold-bright);
}

/* ---------- 頁尾終極 CTA 與 Footer ---------- */
.final-cta {
  padding: 74px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 75% 80% at 50% 50%, rgba(159, 27, 36, 0.28), transparent 72%),
    var(--bg-void);
  border-top: 1px solid var(--gold-line);
}

.final-cta-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 16px;
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 0 28px rgba(223, 177, 91, 0.34);
}

.final-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: #fff6ea;
}

.final-cta p {
  margin: 0 auto 28px;
  max-width: 640px;
  color: var(--text-secondary);
}

.site-footer {
  background: #0c0203;
  border-top: 1px solid rgba(223, 177, 91, 0.18);
  padding: 44px 0 68px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(223, 177, 91, 0.12);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--gold-bright);
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

/* ---------- 右下角桌機精緻圓形浮動 LINE（平時不擋文字，懸停顯示標籤） ---------- */
.floating-line {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #07d15a 0%, #05a847 100%);
  color: #ffffff;
  border: 1px solid rgba(180, 255, 208, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.58), 0 0 18px rgba(6, 199, 85, 0.34);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.floating-line-tip {
  position: absolute;
  right: 62px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(16, 4, 6, 0.95);
  border: 1px solid rgba(6, 199, 85, 0.55);
  color: #8bf5b5;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.floating-line:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 28px rgba(6, 199, 85, 0.52);
}

.floating-line:hover .floating-line-tip,
.floating-line:focus-visible .floating-line-tip {
  opacity: 1;
  transform: translateX(0);
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 3, 5, 0.96);
  border-top: 1px solid var(--gold-line-strong);
  backdrop-filter: blur(14px);
  grid-template-columns: 1.25fr 0.95fr;
  gap: 10px;
}

/* ---------- 複製回饋提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(16px);
  z-index: 2000;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(24, 7, 10, 0.96);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 捲動淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 響應式斷點 ---------- */
@media (max-width: 1260px) {
  .nav-status-pill {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .mac-spotlight,
  .class-detail-panel,
  .download-box,
  .trust-community-grid {
    grid-template-columns: 1fr;
  }

  .rates-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-eco-grid,
  .steps-grid,
  .cmd-grid,
  .home-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 62px;
  }

  body {
    padding-bottom: 74px;
  }

  .container,
  .header-inner {
    width: calc(100% - 28px);
  }

  .header-actions .btn-line {
    display: none;
  }

  .header-actions .btn-gold {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  /* 手機版 Hero：上方完整展示 16:9 古堡＋Mac天堂字標，下方純深緋暗底零重疊清晰排版 */
  .hero {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-backdrop {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }

  .hero-bg-img {
    object-position: center 26%;
  }

  .hero-vignette {
    background: linear-gradient(180deg, rgba(18, 3, 5, 0.25) 0%, transparent 25%, rgba(18, 3, 5, 0.35) 68%, var(--bg-void) 100%);
  }

  .hero-content {
    padding: 8px 0 32px;
  }

  .hero-eyebrow {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 1.44rem;
    line-height: 1.32;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.72;
    margin-bottom: 18px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 22px;
  }

  .hero-cta-row .btn-lg {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 0.96rem;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr 1fr;
    padding: 14px 12px;
    gap: 12px;
  }

  .trust-item {
    padding-inline: 6px;
    border-right: none;
  }

  .trust-value {
    font-size: 0.92rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .mac-spotlight,
  .download-box {
    padding: 22px 18px;
  }

  .feature-grid,
  .mall-grid,
  .siege-steps,
  .siege-rules-grid,
  .social-eco-grid,
  .steps-grid,
  .cmd-grid,
  .home-articles-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rates-grid,
  .vow-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 表格於手機版自動轉成易讀區塊，零橫向溢出 */
  .specs-table thead {
    display: none;
  }

  .specs-table,
  .specs-table tbody,
  .specs-table tr,
  .specs-table td {
    display: block;
    width: 100%;
  }

  .specs-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(223, 177, 91, 0.14);
  }

  .specs-table td {
    padding: 3px 0;
    border: none;
    white-space: normal;
  }

  .spec-name {
    font-size: 0.84rem;
  }

  .spec-val {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .hero-hotspots {
    display: none;
  }

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

  .class-tab {
    min-height: 44px;
    padding: 7px 3px;
    font-size: 0.82rem;
  }

  .class-tab small {
    display: none;
  }

  .class-detail-panel {
    padding: 20px 18px;
  }

  /* 手機版奇岩攻城戰：圖片完整展示在上，標題與倒數自然流式排列於下，零裁切 */
  .siege-banner-wrap {
    aspect-ratio: auto;
    max-height: none;
  }

  .siege-banner-img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .siege-banner-overlay {
    position: static;
    inset: auto;
    background: var(--bg-void);
    padding: 18px 18px 8px;
  }

  .siege-schedule-title {
    font-size: 1.24rem;
  }

  .siege-schedule-sub {
    font-size: 0.86rem;
  }

  .siege-body {
    padding: 14px 18px 24px;
  }

  .countdown-box {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  .countdown-timer {
    font-size: 1.04rem;
  }

  .mall-item {
    flex-direction: column;
    gap: 10px;
  }

  .floating-line {
    display: none;
  }

  .mobile-sticky-bar {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ember,
  .status-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
