/* 聖臨M天堂 官方暗黑奇幻樣式庫 */
:root {
  --bg-primary: #050811;
  --bg-surface: #0b1120;
  --bg-card: #0f172a;
  --bg-card-hover: #17223b;
  --border-subtle: #1e293b;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-glow: rgba(212, 175, 55, 0.6);
  
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #d4af37;
  --gold-600: #ca8a04;
  --gold-glow: 0 0 16px rgba(212, 175, 55, 0.35);

  --blue-accent: #38bdf8;
  --red-accent: #ef4444;
  --green-accent: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-serif: "Cinzel", "Noto Serif TC", "Songti TC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.18) 0%, transparent 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 頂部導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 12px 24px;
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-400);
}
.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--gold-500);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 20%, var(--gold-400) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-ver {
  font-size: 0.75rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-left: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-block;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}
.nav-btn-dl {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #000 !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.5) !important;
}

/* 漢堡按鈕與手機抽屜 */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-400);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
}
.mobile-drawer {
  position: fixed;
  top: 65px;
  left: 0;
  width: 100%;
  height: calc(100vh - 65px);
  background: rgba(5, 8, 17, 0.98);
  border-top: 1px solid var(--border-gold);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-align: center;
}
.mobile-drawer a:hover, .mobile-drawer a.active {
  border-color: var(--gold-500);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
}

/* 容器與版面 */
.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

/* 標題與字體 */
h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-title {
  font-size: 2.4rem;
  color: var(--gold-300);
  text-shadow: var(--gold-glow);
  margin-bottom: 12px;
}
.page-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
}

/* 卡片與容器樣式 */
.gold-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.gold-card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.15);
  transform: translateY(-3px);
}
.gold-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

/* 按鈕樣式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #050811;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-gold);
}
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

/* 規格清單與表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.spec-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-300);
  font-size: 0.95rem;
  font-weight: 700;
}
.spec-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.spec-table td:first-child {
  color: var(--gold-400);
  font-weight: 600;
  width: 25%;
}

/* 待填醒目標籤 */
.pending-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Hero 主視覺 */
.hero-section {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.2rem;
  color: var(--text-main);
  margin-bottom: 16px;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
}
.hero-highlight {
  background: linear-gradient(135deg, #fff 0%, var(--gold-400) 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 36px;
  max-width: 800px;
}
.pill {
  display: inline-block;
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
  vertical-align: middle;
}
.pill.gold {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.08);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 時程區塊 */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.schedule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--gold-500);
}
.schedule-time {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-300);
  font-family: var(--font-serif);
}
.schedule-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--text-main);
}
.schedule-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 網格系統 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

/* 頁尾 */
.site-footer {
  background: #02040a;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}
.footer-title {
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold-300);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* 響應式微調 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 2.3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* =================================================================
   進階遊戲門戶 UI 組件（跑馬燈、裝備展示窗、暗金角飾、手風琴、懸浮下載列）
   ================================================================= */

/* 頂部即時公告跑馬燈 */
.news-ticker-bar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 16px;
  font-size: 0.88rem;
  overflow: hidden;
}
.ticker-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.ticker-text {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

/* 創角禮包裝備展示櫥窗 */
.starter-showcase {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.65));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 40px auto 0;
  max-width: 960px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 175, 55, 0.08);
  position: relative;
}
.starter-showcase-title {
  text-align: center;
  color: var(--gold-300);
  font-size: 1.4rem;
  font-family: var(--font-serif);
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.starter-showcase-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.starter-slot {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.starter-slot:hover {
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
}
.starter-slot-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}
.starter-slot-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
}
.starter-slot-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* 卡片金屬質感與微光裝飾 */
.gold-card {
  position: relative;
}
.gold-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--gold-500);
  border-right: 2px solid var(--gold-500);
  border-top-right-radius: 10px;
  pointer-events: none;
  opacity: 0.6;
}

/* 常見問題手風琴交互 */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--gold-500);
}
.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--gold-300);
  font-size: 1.05rem;
  user-select: none;
}
.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}
.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* 手機底部懸浮下載列 */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 8, 17, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.7);
  align-items: center;
  justify-content: space-between;
}
.mobile-sticky-cta-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-300);
}
.mobile-sticky-cta-btn {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #000;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .mobile-sticky-cta {
    display: flex;
  }
}


/* =================================================================
   官方美術視覺 Hero 與 遊戲客戶端 ICON 樣式
   ================================================================= */

/* 頂部美術視覺 Hero 區域 */
.hero-section {
  position: relative;
  background-color: var(--bg-primary);
  text-align: center;
  padding: 0 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gold);
}
.hero-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.25));
}
.hero-banner-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0) 0%, rgba(5, 8, 17, 0.75) 50%, #050811 100%);
  pointer-events: none;
}
.hero-banner-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.85) 0%, rgba(5, 8, 17, 0) 100%);
  pointer-events: none;
}
.hero-content-box {
  position: relative;
  max-width: 1100px;
  margin: -60px auto 0;
  padding: 0 20px;
  z-index: 10;
}
.hero-tagline-text {
  font-size: 1.15rem;
  color: var(--gold-300);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
  .hero-banner-img {
    max-height: 280px;
    object-position: center 22%;
  }
  .hero-content-box {
    margin: -25px auto 0;
  }
  .hero-tagline-text {
    font-size: 1rem;
  }
}

/* 遊戲客戶端真實圖示樣式 (Client Icons) */
.client-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}
.client-icon-lg {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
  transition: transform 0.25s ease;
}
.starter-slot:hover .client-icon-lg {
  transform: scale(1.18);
}
.mini-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: -3px;
  margin-right: 5px;
  display: inline-block;
}
.item-icon-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-icon-cell .client-icon {
  flex-shrink: 0;
}


/* =================================================================
   實用運營模組：官方 LINE 懸浮按鈕、下載問題彈窗、地圖掉寶速查器、7職特色標籤
   ================================================================= */

/* 官方 LINE 懸浮按鈕群組（右下角雙膠囊：官方客服 ＋ 官方社群） */
.floating-line-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.floating-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #06C755;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid #ffffff;
  outline: 2px solid #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(6, 199, 85, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  white-space: nowrap;
}
.floating-line-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.9), 0 0 24px rgba(6, 199, 85, 0.7);
  filter: brightness(1.06);
  color: #ffffff !important;
}
.line-icon-badge {
  background: #ffffff;
  color: #06C755;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.line-btn-text {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
@media (max-width: 900px) {
  .floating-line-group {
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }
  .floating-line-btn {
    padding: 6px 14px;
    font-size: 0.92rem;
  }
  .line-icon-badge {
    font-size: 0.76rem;
    padding: 2px 6px;
  }
  .line-btn-text {
    font-size: 0.9rem;
  }
}

/* 下載問題浮動觸發按鈕 */
.floating-help-btn {
  position: fixed;
  bottom: 142px;
  right: 22px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--gold-300);
  border: 1px solid var(--border-gold);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.floating-help-btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--gold-400);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.3);
}
@media (max-width: 900px) {
  .floating-help-btn {
    bottom: 116px;
    right: 14px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }
}

/* 新手入門六部曲浮動按鈕（左側） */
.floating-guide-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(26, 20, 12, 0.95), rgba(12, 14, 24, 0.95));
  color: var(--gold-300) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45);
  transition: all 0.25s ease;
  border: 1px solid var(--gold-400);
  backdrop-filter: blur(8px);
}
.floating-guide-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.7);
  border-color: var(--gold-light);
  color: #fff !important;
}
@media (max-width: 900px) {
  .floating-guide-btn {
    bottom: 18px;
    left: 14px;
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

/* 「下載問題」通用彈窗 Modal */
.custom-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.custom-modal-backdrop.open {
  display: flex;
}
.custom-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}
.custom-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}
.custom-modal-title {
  color: var(--gold-300);
  font-size: 1.3rem;
  font-family: var(--font-serif);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.custom-modal-close:hover {
  color: #fff;
}
.custom-modal-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text-main);
  font-size: 0.92rem;
}

/* 教學步驟卡片 */
.step-card {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.step-number {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

/* 7 大職業特色切換標籤 (Class Tabs) */
.class-tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.class-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.class-tab-btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.08);
}
.class-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(153, 101, 21, 0.15));
  border-color: var(--gold-400);
  color: var(--gold-light);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}
.class-tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}
.class-tab-panel.active {
  display: block;
}

/* 掉寶速查器快捷按鈕 */
.quick-tag {
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
  border-radius: 4px !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 掉寶速查器專屬美化排版 */
#drop-table {
  width: 100%;
  border-collapse: collapse;
}
#drop-table th, #drop-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
#drop-table th {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-300);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
#drop-table th.col-threshold,
#drop-table td.col-threshold {
  text-align: center;
  white-space: nowrap;
}
#drop-table td.col-threshold .pill {
  min-width: 82px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#drop-table td:first-child {
  width: auto; /* override 25% */
}
