:root {
  --bg: #070e17;
  --surface: #101d2a;
  --surface-soft: #152536;
  --text: #f7f1e3;
  --muted: #a9b7c4;
  --gold: #e4b86a;
  --gold-bright: #f5d99a;
  --line: rgba(228, 184, 106, 0.24);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(7, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; gap: 0; }
.brand-mark { color: var(--gold-bright); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.12em; }
.brand-subtitle { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.18em; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 0.92rem; }
.nav a:hover { color: var(--gold-bright); }
.hero {
  min-height: 610px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.98) 0%, rgba(4, 10, 18, 0.58) 45%, rgba(4, 10, 18, 0.18) 100%),
    url("assets/bg1.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-content { width: min(var(--max-width), 100%); margin: 0 auto; padding: 86px 24px 90px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; }
h1, h2, h3 { line-height: 1.2; }
h1 { max-width: 560px; margin: 0; font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: 0.12em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); }
h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { margin: 0 0 10px; font-size: 1.25rem; }
.hero-text { max-width: 560px; margin: 20px 0 28px; color: #e9e4d9; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; padding: 10px 20px; border: 1px solid var(--gold); border-radius: 999px; font-weight: 700; transition: transform 0.2s, background 0.2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1a140b; background: var(--gold); }
.button-ghost { color: var(--gold-bright); background: rgba(0, 0, 0, 0.24); }
.button-small { min-width: 0; padding: 10px 16px; white-space: nowrap; }
.section { max-width: var(--max-width); margin: 0 auto; padding: 92px 24px; }
.section-dark { max-width: none; padding-right: max(24px, calc((100% - var(--max-width)) / 2 + 24px)); padding-left: max(24px, calc((100% - var(--max-width)) / 2 + 24px)); background: linear-gradient(135deg, #0b1724, #0a121d); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 0; }
.feature-grid, .video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .video-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.feature-card p, .video-card p { margin: 0; color: var(--muted); }
.feature-number { display: inline-block; margin-bottom: 26px; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.15em; }
.video-card { min-height: 210px; display: grid; align-content: center; text-align: center; }
.video-placeholder { display: grid; place-items: center; min-height: 120px; margin-bottom: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--gold); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.download-card h3 { margin: 0 0 6px; }
.download-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.download-meta { color: var(--gold); font-size: 0.8rem; }
.download-button { flex: 0 0 auto; padding: 9px 16px; color: #1a140b; background: var(--gold); border-radius: 999px; font-weight: 700; }
.download-button:hover { background: var(--gold-bright); }
.download-button.is-disabled { color: var(--muted); background: #263545; cursor: not-allowed; }
.drop-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.drop-controls { display: flex; align-items: center; gap: 10px; }
.search-box input { width: min(360px, 100%); padding: 12px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; outline: none; }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 184, 106, 0.12); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: rgba(16, 29, 42, 0.72); }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid rgba(228, 184, 106, 0.12); }
th { color: var(--gold-bright); font-size: 0.85rem; letter-spacing: 0.08em; background: var(--surface-soft); }
td { color: #e7ebee; }
.monster-image { width: 150px; min-width: 150px; height: 88px; }
.monster-image img { display: block; max-width: 140px; max-height: 78px; object-fit: contain; }
.drop-items { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.drop-item { color: #e7ebee; }
.empty-state { padding: 38px; color: var(--muted); text-align: center; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--max-width); margin: 0 auto; padding: 28px 24px 42px; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); }
.footer-banner { display: inline-flex; width: min(470px, 100%); line-height: 0; }
.footer-banner img { display: block; width: 100%; height: auto; border: 1px solid rgba(228, 184, 106, 0.45); border-radius: 5px; }
.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; }
code { color: var(--gold-bright); }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { gap: 14px; }
  .hero { min-height: 560px; background-position: 62% center; }
  .hero-content { padding-top: 120px; }
  .feature-grid, .video-grid, .download-grid { grid-template-columns: 1fr; }
  .drop-heading { align-items: stretch; flex-direction: column; }
  .drop-controls { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
