:root {
  --iw-ink: #221827;
  --iw-muted: #6f5c68;
  --iw-rose: #ff85a1;
  --iw-rose-deep: #d94e78;
  --iw-gold: #fdba3b;
  --iw-blue: #4676d7;
  --iw-violet: #6944b8;
  --iw-cream: #fff4dc;
  --iw-paper: #fffaf1;
  --iw-white: #ffffff;
  --iw-line: rgba(34, 24, 39, .14);
  --iw-shadow: 0 28px 80px rgba(85, 48, 91, .18);
  --iw-radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--iw-paper);
}

body {
  margin: 0;
  color: var(--iw-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
  background:
    linear-gradient(180deg, rgba(255, 133, 161, .23), rgba(255, 244, 220, .92) 34%, #fffaf1 100%),
    radial-gradient(circle at 16% 8%, rgba(253, 186, 59, .42), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(70, 118, 215, .22), transparent 34%);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 24, 39, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 24, 39, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent 72%);
  z-index: -1;
}

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

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

.iw-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2a1930;
  color: #fff7e8;
  transition: top .18s ease;
}

.iw-skip:focus {
  top: 12px;
}

p {
  margin: 0;
  color: var(--iw-muted);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

button, input {
  font: inherit;
}

.iw-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px clamp(16px, 3vw, 42px);
  background: rgba(255, 250, 241, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 24, 39, .08);
}

.iw-masthead {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.iw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.iw-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(217, 78, 120, .28);
}

.iw-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.iw-brand span {
  display: block;
  color: var(--iw-muted);
  font-size: 12px;
  line-height: 1.2;
}

.iw-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--iw-line);
  border-radius: 50%;
  background: var(--iw-white);
  color: var(--iw-ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.iw-nav-toggle span,
.iw-nav-toggle::before,
.iw-nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: absolute;
}

.iw-nav-toggle::before { transform: translateY(-6px); }
.iw-nav-toggle::after { transform: translateY(6px); }

.iw-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.iw-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b3547;
  font-size: 14px;
}

.iw-nav a:hover,
.iw-nav a:focus-visible {
  color: var(--iw-ink);
  background: rgba(255, 133, 161, .18);
  outline: none;
}

.iw-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px clamp(16px, 3vw, 42px) 80px;
}

.iw-hero,
.iw-page-hero {
  min-height: min(720px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) 0 clamp(34px, 6vw, 78px);
  border-bottom: 1px solid rgba(34, 24, 39, .1);
}

.iw-page-hero {
  min-height: 520px;
}

.iw-hero-copy {
  max-width: 680px;
}

.iw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--iw-rose-deep);
  font-weight: 800;
  letter-spacing: 0;
  font-size: 13px;
}

.iw-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--iw-rose), var(--iw-gold));
}

.iw-hero h1,
.iw-page-hero h1 {
  max-width: 11ch;
  font-size: clamp(48px, 9vw, 112px);
  color: #25142a;
  text-wrap: balance;
}

.iw-page-hero h1 {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 82px);
}

.iw-hero p,
.iw-page-hero p {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 21px);
}

.iw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.iw-btn:hover,
.iw-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.iw-btn-primary {
  background: linear-gradient(135deg, var(--iw-rose), #ef5d8c 48%, var(--iw-gold));
  color: #301321;
  box-shadow: 0 16px 36px rgba(217, 78, 120, .28);
}

.iw-btn-soft {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(34, 24, 39, .12);
  color: var(--iw-ink);
}

.iw-hero-cover {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .2s ease;
}

.iw-hero-cover picture,
.iw-page-hero img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--iw-shadow);
  border: 1px solid rgba(255, 255, 255, .72);
}

.iw-hero-cover img,
.iw-page-hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  min-height: 320px;
}

.iw-ticket {
  position: absolute;
  width: min(210px, 44%);
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(34, 24, 39, .12);
  box-shadow: 0 16px 44px rgba(34, 24, 39, .16);
}

.iw-ticket span {
  display: block;
  color: var(--iw-rose-deep);
  font-size: 12px;
  font-weight: 800;
}

.iw-ticket strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

.iw-ticket-a {
  top: 28px;
  left: -24px;
}

.iw-ticket-b {
  right: -18px;
  bottom: 40px;
}

.iw-section {
  padding: clamp(42px, 7vw, 92px) 0;
  border-bottom: 1px solid rgba(34, 24, 39, .1);
}

.iw-section-head {
  max-width: 740px;
  margin-bottom: 28px;
}

.iw-section-head h2,
.iw-split h2,
.iw-risk h2,
.iw-tool-lane h2 {
  font-size: clamp(30px, 5vw, 58px);
  color: #25142a;
  text-wrap: balance;
}

.iw-section-head p:last-child,
.iw-split p,
.iw-risk p {
  margin-top: 14px;
  font-size: 18px;
}

.iw-runway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.iw-runway div,
.iw-editorial-grid article,
.iw-market-strip article,
.iw-strip-cards article,
.iw-feed-card a,
.iw-tool-cards a,
.iw-contact-box,
.iw-glossary-grid article,
.iw-map-grid a,
.iw-empty {
  min-height: 160px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(34, 24, 39, .1);
  box-shadow: 0 16px 44px rgba(85, 48, 91, .08);
}

.iw-runway span,
.iw-editorial-grid span,
.iw-tool-cards span,
.iw-contact-box span,
.iw-glossary-grid span,
.iw-map-grid span,
.iw-feed-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--iw-rose-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.iw-runway strong,
.iw-editorial-grid strong,
.iw-feed-card strong,
.iw-tool-cards strong,
.iw-contact-box strong,
.iw-map-grid strong {
  display: block;
  color: var(--iw-ink);
  font-size: 21px;
  line-height: 1.25;
}

.iw-runway p,
.iw-editorial-grid p,
.iw-market-strip p,
.iw-strip-cards p,
.iw-feed-card p,
.iw-tool-cards p,
.iw-contact-box p,
.iw-map-grid p {
  margin-top: 10px;
}

.iw-editorial-grid,
.iw-feed-grid,
.iw-tool-cards,
.iw-contact-grid,
.iw-glossary-grid,
.iw-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.iw-editorial-grid article:nth-child(2),
.iw-tool-cards a:nth-child(2),
.iw-glossary-grid article:nth-child(3n+2) {
  background: rgba(253, 186, 59, .18);
}

.iw-editorial-grid article:nth-child(3),
.iw-tool-cards a:nth-child(3),
.iw-glossary-grid article:nth-child(3n) {
  background: rgba(70, 118, 215, .12);
}

.iw-split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

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

.iw-market-strip,
.iw-strip-cards {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 16px;
}

.iw-market-strip article:first-child,
.iw-strip-cards article:first-child {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(34, 24, 39, .02), rgba(34, 24, 39, .62)),
    url("/images/category-world-cup-fast.webp") center / cover;
  color: var(--iw-white);
}

.iw-market-strip article:first-child p,
.iw-market-strip article:first-child h3,
.iw-strip-cards article:first-child p,
.iw-strip-cards article:first-child h3 {
  color: var(--iw-white);
}

.iw-market-strip h3,
.iw-strip-cards h3 {
  margin: 10px 0;
  font-size: clamp(24px, 4vw, 38px);
}

.iw-odds-stage {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.iw-odds-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 133, 161, .24), rgba(253, 186, 59, .18));
  border: 1px solid rgba(34, 24, 39, .1);
}

.iw-odds-card h2 {
  font-size: clamp(30px, 5vw, 56px);
}

.iw-odds-card p {
  margin-top: 14px;
  font-size: 18px;
}

.iw-odds-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--iw-line);
  background: rgba(255, 255, 255, .72);
}

.iw-odds-row {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(34, 24, 39, .09);
}

.iw-odds-row:last-child {
  border-bottom: 0;
}

.iw-odds-row strong {
  color: var(--iw-ink);
}

.iw-safety {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}

.iw-safety-list {
  display: grid;
  gap: 12px;
}

.iw-safety-list li {
  list-style: none;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--iw-line);
}

.iw-feed-card a,
.iw-tool-cards a,
.iw-map-grid a {
  display: block;
  height: 100%;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.iw-feed-card a:hover,
.iw-tool-cards a:hover,
.iw-map-grid a:hover,
.iw-feed-card a:focus-visible,
.iw-tool-cards a:focus-visible,
.iw-map-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(217, 78, 120, .38);
  outline: none;
}

.iw-empty {
  grid-column: 1 / -1;
  min-height: 140px;
  background: rgba(255, 255, 255, .55);
}

.iw-empty strong {
  display: block;
  font-size: 24px;
}

.iw-risk {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding-left: clamp(20px, 4vw, 42px);
  padding-right: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(105, 68, 184, .12), rgba(255, 133, 161, .16)),
    rgba(255, 255, 255, .45);
  border: 1px solid var(--iw-line);
  border-radius: 8px;
  margin: clamp(34px, 5vw, 62px) 0;
}

.iw-risk ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.iw-risk li {
  list-style: none;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .66);
  border-radius: 8px;
  border: 1px solid rgba(34, 24, 39, .08);
}

.iw-faq-list {
  display: grid;
  gap: 10px;
}

.iw-faq details {
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--iw-line);
  overflow: hidden;
}

.iw-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.iw-faq details p {
  padding: 0 20px 20px;
}

.iw-tool-lane {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

.iw-tool-panel {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.iw-tool-form,
.iw-check-tool,
.iw-tool-result,
.iw-search-panel {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid var(--iw-line);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(85, 48, 91, .08);
}

.iw-tool-form,
.iw-check-tool {
  display: grid;
  gap: 14px;
}

.iw-tool-form label,
.iw-search-panel label {
  display: grid;
  gap: 8px;
  color: var(--iw-ink);
  font-weight: 800;
}

.iw-tool-form input,
.iw-search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 24, 39, .16);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
  color: var(--iw-ink);
}

.iw-tool-result {
  min-height: 260px;
  display: grid;
  align-content: center;
}

.iw-result-number {
  display: block;
  margin: 8px 0;
  color: var(--iw-rose-deep);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.iw-check-tool label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 250, 241, .8);
  border: 1px solid rgba(34, 24, 39, .08);
  color: var(--iw-ink);
  font-weight: 700;
}

.iw-check-tool input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--iw-rose-deep);
  flex: 0 0 auto;
}

.iw-author-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--iw-line);
}

.iw-author-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.iw-author-card h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.iw-author-card .iw-btn {
  margin-top: 18px;
}

.iw-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iw-contact-box a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--iw-rose-deep);
  font-weight: 900;
}

.iw-prose {
  max-width: 820px;
}

.iw-prose h2 {
  margin: 28px 0 10px;
  font-size: clamp(24px, 4vw, 36px);
}

.iw-prose p {
  margin: 0 0 14px;
}

.iw-prose a {
  color: var(--iw-rose-deep);
  font-weight: 800;
}

.iw-glossary-grid article {
  min-height: 150px;
}

.iw-glossary-grid article p {
  margin-top: 8px;
}

.iw-glossary-list dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.iw-term {
  min-height: 190px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--iw-line);
  box-shadow: 0 16px 44px rgba(85, 48, 91, .08);
}

.iw-term dt {
  color: var(--iw-rose-deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.iw-term dd {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.iw-term dd span {
  color: var(--iw-ink);
  font-weight: 800;
}

.iw-search-panel {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.iw-search-results {
  display: grid;
  gap: 10px;
}

.iw-search-results a,
.iw-search-results p {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 250, 241, .8);
  border: 1px solid rgba(34, 24, 39, .08);
}

.iw-search-results strong {
  display: block;
}

.iw-site-footer {
  padding: 44px clamp(16px, 3vw, 42px);
  background: #2a1930;
  color: #fff7e8;
}

.iw-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.iw-footer-inner p,
.iw-site-footer a {
  color: rgba(255, 247, 232, .78);
}

.iw-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.iw-footer-links strong {
  display: block;
  margin-bottom: 8px;
  color: #fff7e8;
}

.iw-footer-links a {
  display: block;
  margin: 5px 0;
}

.iw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.iw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .iw-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .iw-masthead {
    grid-template-columns: 1fr auto;
  }

  .iw-nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .iw-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .iw-nav.is-open {
    display: flex;
  }

  .iw-hero,
  .iw-page-hero,
  .iw-split,
  .iw-odds-stage,
  .iw-safety,
  .iw-risk,
  .iw-tool-lane,
  .iw-tool-panel,
  .iw-footer-inner {
    grid-template-columns: 1fr;
  }

  .iw-hero,
  .iw-page-hero {
    min-height: auto;
  }

  .iw-ticket-a {
    left: 12px;
  }

  .iw-ticket-b {
    right: 12px;
  }

  .iw-runway,
  .iw-editorial-grid,
  .iw-feed-grid,
  .iw-tool-cards,
  .iw-glossary-grid,
  .iw-map-grid,
  .iw-market-strip,
  .iw-strip-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iw-market-strip article:first-child,
  .iw-strip-cards article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .iw-site-header {
    padding: 12px 16px;
  }

  .iw-main {
    padding-top: 20px;
  }

  .iw-brand {
    min-width: 0;
  }

  .iw-brand strong {
    font-size: 15px;
  }

  .iw-brand span {
    display: none;
  }

  .iw-hero h1,
  .iw-page-hero h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .iw-hero p,
  .iw-page-hero p,
  .iw-section-head p:last-child,
  .iw-split p,
  .iw-risk p {
    font-size: 16px;
  }

  .iw-actions,
  .iw-btn {
    width: 100%;
  }

  .iw-runway,
  .iw-editorial-grid,
  .iw-feed-grid,
  .iw-tool-cards,
  .iw-contact-grid,
  .iw-glossary-grid,
  .iw-glossary-list dl,
  .iw-map-grid,
  .iw-market-strip,
  .iw-strip-cards,
  .iw-footer-links,
  .iw-author-card {
    grid-template-columns: 1fr;
  }

  .iw-ticket {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .iw-hero-cover img,
  .iw-page-hero img {
    min-height: 240px;
  }

  .iw-odds-row {
    grid-template-columns: 1fr;
  }

  .iw-author-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
