/* 大逃殺網頁版 (BR Online) 首頁風格 (電影級黑金/血紅大逃殺氛圍) */
:root {
  --bg-dark: #080a0e;
  --bg-card: #10141d;
  --bg-card-hover: #161c28;
  --panel-border: #242c3d;
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-yellow: #f59e0b;
  --accent-blue: #38bdf8;
  --gold: #f1c40f;
  --gold-glow: rgba(241, 196, 15, 0.35);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 頂部導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-btn-play {
  background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
  color: #000 !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: bold !important;
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.nav-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
}

/* Hero 首屏 */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: url("assets/hero_br.png") center/cover no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8, 10, 14, 0.75) 0%, rgba(8, 10, 14, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.danger-tag {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  font-size: 13.5px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.5), 0 0 10px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 17px;
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: all 0.2s ease;
  border: 1px solid #f87171;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
}

.btn-hero-primary.large {
  font-size: 19px;
  padding: 16px 40px;
}

.btn-hero-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--gold);
  color: #fff;
}

.pulse {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.9); }
}

.hero-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 30px;
  background: rgba(16, 20, 29, 0.8);
  border: 1px solid var(--panel-border);
  padding: 18px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-pill .val {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
}

.stat-pill .lbl {
  font-size: 13px;
  color: var(--text-dim);
}

/* 區塊共用樣式 */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
}

.section-wrap.dark-bg {
  max-width: 100%;
  background: #0b0e14;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.section-wrap.dark-bg .section-head,
.section-wrap.dark-bg .clubs-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* 玩法規則格 */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.rule-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
}

.rule-icon {
  font-size: 36px;
}

.rule-title {
  font-size: 18px;
  color: var(--gold);
  font-weight: bold;
}

.rule-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* 社團專精 */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.club-card {
  background: #11151f;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.club-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.club-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-icon { font-size: 24px; }
.club-name { font-size: 17px; font-weight: bold; color: #fff; }

.club-tag {
  margin-left: auto;
  font-size: 11.5px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 2px 8px;
  border-radius: 4px;
}

.club-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* 合成表格 */
.craft-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
}

.craft-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.craft-table th {
  background: #161b26;
  color: var(--gold);
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
}

.craft-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #1a2230;
  color: #cbd5e1;
}

.craft-table tr:hover td {
  background: #151a24;
}

.res-name { font-weight: bold; }
.text-yellow { color: var(--gold); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }

/* 底部 CTA 滿版區 */
.cta-banner {
  background: radial-gradient(circle at center, #241315 0%, #080a0e 100%);
  border-top: 1px solid #3b1d22;
  padding: 80px 20px;
  text-align: center;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* 頁尾 */
.site-footer {
  background: #050608;
  border-top: 1px solid #181d26;
  padding: 30px 20px;
  text-align: center;
}

.footer-container p {
  font-size: 13.5px;
  color: #64748b;
}

.footer-sub {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

/* 手機 RWD 適應 */
@media (max-width: 900px) {
  .hero-title { font-size: 36px; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .clubs-grid { grid-template-columns: 1fr; }
  .hero-stats-banner { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-btn-play) { display: none; }
}

@media (max-width: 580px) {
  .rules-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
}
