:root {
  --primary: #B42318;
  --primary-dark: #7f1d1d;
  --secondary: #F59E0B;
  --accent: #FFF7ED;
  --bg: #FFF7ED;
  --bg-soft: #FEEFD8;
  --surface: #FFFFFF;
  --surface-alt: #FFF1E6;
  --text: #431407;
  --text-soft: #7C2D12;
  --border: #FECDA6;
  --shadow: 0 18px 44px rgba(122, 30, 19, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fffaf2 45%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 247, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 35, 24, 0.12);
}

.header-inner,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand,
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-weight: 800;
  color: var(--primary);
}

.brand-mark::before,
.brand::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7c76b 0%, var(--secondary) 46%, var(--primary) 100%);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
}

.brand-name small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links,
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.main-nav a,
.mobile-drawer a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
}

.nav-links a:hover,
.main-nav a:hover,
.mobile-drawer a:hover,
.nav-links a:focus-visible,
.main-nav a:focus-visible,
.mobile-drawer a:focus-visible {
  background: rgba(180, 35, 24, 0.08);
  color: var(--primary);
}

.mobile-drawer {
  display: none;
  padding: 0 0 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.hamburger {
  display: none;
}

.button,
.button-secondary,
.btn,
.btn-primary,
.btn-secondary,
.cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button,
.btn-primary,
.cta,
.nav-cta {
  background: var(--primary);
  color: #fff7f2;
  box-shadow: 0 14px 30px rgba(180, 35, 24, 0.2);
}

.button-secondary,
.btn-secondary {
  background: rgba(245, 158, 11, 0.14);
  color: var(--primary);
  border-color: rgba(245, 158, 11, 0.38);
}

.button:hover,
.button-secondary:hover,
.btn:hover,
.cta:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 0;
}

.eyebrow,
.hero-eyebrow,
.section-kicker,
.card-kicker,
.rank-tag,
.step-label,
.callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before,
.hero-eyebrow::before,
.section-kicker::before,
.card-kicker::before,
.rank-tag::before,
.step-label::before,
.callout-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

.hero h1,
.section-title,
h1,
h2,
h3,
h4 {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  color: var(--primary-dark);
}

.hero p,
.section-sub,
.lede,
.card-body,
.meta {
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel,
.hero-media {
  min-width: 0;
}

.voucher-collage,
.scoreboard-card,
.road-panel,
.hero-card {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, #fffdf8 0%, #fff3e6 100%);
  border: 2px dashed rgba(180, 35, 24, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.voucher-collage::before,
.scoreboard-card::before,
.road-panel::before,
.hero-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ef4444 0%, var(--primary) 70%);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.15);
  opacity: 0.92;
}

.voucher-collage::after,
.scoreboard-card::after,
.road-panel::after,
.hero-card::after {
  content: "LIMITED OFFER";
  position: absolute;
  left: -26px;
  top: 34px;
  background: linear-gradient(135deg, #f8c35b 0%, var(--secondary) 100%);
  color: #5f2500;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 36px;
  transform: rotate(-8deg);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.18);
}

.voucher-collage img,
.scoreboard-card img,
.road-panel img,
.hero-card img {
  width: 100%;
  aspect-ratio: 1216 / 640;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(180, 35, 24, 0.1);
}

.section {
  padding: 72px 0;
}

.surface-card,
.summary-box,
.cta-box,
.faq-block,
.article-hero,
.inline-image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-grid,
.reel-grid,
.panel-grid,
.callout-grid,
.footer-grid,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card,
.reel-card,
.ranking-card,
.slot-panel,
.bonus-panel,
.method-card,
.callout-card,
.article-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,243,230,0.98) 100%);
  border: 2px dashed rgba(180, 35, 24, 0.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-card::before,
.reel-card::before,
.ranking-card::before,
.slot-panel::before,
.bonus-panel::before,
.method-card::before,
.callout-card::before,
.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.coupon-stack {
  display: grid;
  gap: 18px;
}

.coupon-stack .guide-card,
.coupon-stack .reel-card {
  transform: rotate(-1deg);
}

.coupon-stack .guide-card:nth-child(2n),
.coupon-stack .reel-card:nth-child(2n) {
  transform: rotate(1deg);
}

.editorial-callout,
.method-callout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.editorial-callout .callout-number,
.method-callout .callout-number,
.step-number,
.reel-num,
.rank-number {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(180, 35, 24, 0.18);
}

.bonus-panel .rank-band,
.rank-tag {
  display: inline-flex;
  background: var(--primary);
  color: #fff7f2;
  padding: 8px 14px;
  border-radius: 999px;
}

.article-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(180, 35, 24, 0.12);
  margin-bottom: 16px;
}

.article-main,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.article-body,
.article-content {
  min-width: 0;
}

.article-body h2,
.article-content h2 {
  margin-top: 36px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.article-body h3,
.article-content h3 {
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--primary);
}

.article-hero {
  overflow: hidden;
  margin: 24px 0;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 1216 / 640;
  object-fit: cover;
}

.inline-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.inline-image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cta-box {
  padding: 22px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.08) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.faq-block {
  padding: 24px;
  margin-top: 36px;
}

.faq-item + .faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(180, 35, 24, 0.18);
}

.article-aside,
.sidebar-card {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.site-footer,
footer {
  background: linear-gradient(180deg, #7f1d1d 0%, #5b1414 100%);
  color: #fff7f2;
  padding: 48px 0 28px;
}

.site-footer a,
footer a {
  color: #ffd7c2;
}

.footer-note,
.footer-meta {
  color: rgba(255, 240, 230, 0.78);
}

@media (max-width: 980px) {
  .hero-grid,
  .article-main,
  .article-layout,
  .editorial-callout,
  .method-callout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .reel-grid,
  .panel-grid,
  .callout-grid,
  .grid-3,
  .inline-image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .main-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .mobile-drawer {
    display: flex;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .reel-grid,
  .panel-grid,
  .callout-grid,
  .grid-3,
  .inline-image-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .button,
  .button-secondary,
  .btn,
  .btn-primary,
  .btn-secondary,
  .cta,
  .nav-cta {
    width: 100%;
  }
}
