:root {
  --ink: #17202e;
  --ink-2: #4b5566;
  --muted: #6c7686;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #e4ded3;
  --accent: #b5652a;
  --accent-ink: #ffffff;
  --navy: #1d2b44;
  --soft: #efe8dc;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; letter-spacing: .01em; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.ribbon { background: #fff3cd; color: #6b4e00; text-align: center; font-size: .85rem; padding: 6px 16px; }

.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-weight: 400; color: #b9c4d6; font-size: .8rem; }
.mark { color: #f0b27a; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #d8e0ec; text-decoration: none; font-size: .9rem; padding: 4px 10px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }

.hero { background: linear-gradient(160deg, var(--navy) 0%, #2c3f5f 60%, #6b4a33 100%); color: #fff; padding: 72px 0 80px; }
.eyebrow { color: #f0b27a; letter-spacing: .15em; font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 16px; font-weight: 800; }
.lead { font-size: 1.08rem; max-width: 640px; color: inherit; opacity: .92; }
.hero-cta, .buy-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border: 2px solid var(--accent); border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn.ghost { color: #fff; }
.btn.disabled { opacity: .5; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23,32,46,.12); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 16px; position: relative; flex: 1; }
.card h3 { margin: 2px 0 2px; font-size: 1.1rem; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.card.off { background: var(--soft); border-style: dashed; }
.code { font-weight: 800; letter-spacing: .08em; color: var(--accent); font-size: .85rem; }
.price { font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.price small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.price.big { font-size: 2rem; margin: 8px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: .92rem; }
.steps.vertical { grid-template-columns: 1fr; }
.steps.vertical .btn { margin-top: 6px; }

.notice { background: var(--soft); border-radius: var(--radius); padding: 4px 24px 12px; margin-top: 40px; }
.notice li { margin-bottom: 6px; }

.product .crumb { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.product-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 14px; align-items: start; }
.product-top figure { margin: 0; }
.product-top img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.buy h1 { font-size: 1.45rem; margin: 4px 0; }
.buy .en { color: var(--muted); margin: 0; font-size: .9rem; }
.tagline { display: inline-block; background: #e8f3ec; color: #22663d; border-radius: 6px; padding: 2px 10px; font-size: .9rem; font-weight: 700; }
.product section { border-top: 1px solid var(--line); margin-top: 28px; }
.product section h2 { margin-top: 20px; }
.consent { background: #fbf3e9; border-radius: var(--radius); padding: 0 20px 6px; border-top: none !important; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody th { font-weight: 700; }
.credits td { font-size: .85rem; word-break: break-word; }

.prose h2 { font-size: 1.15rem; margin-top: 1.8rem; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; margin: 28px 0; }
.form label { display: block; margin: 12px 0; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid #cfc7b9; border-radius: 10px; background: #fffdfa;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; padding: 4px 14px; }
.form legend { font-weight: 700; padding: 0 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 7px; width: 18px; height: 18px; flex: none; }
.total { font-size: 1.1rem; }
.err { color: #b3261e; font-weight: 600; min-height: 1.5em; }

.foot { background: var(--navy); color: #c9d2e0; margin-top: 64px; padding: 32px 0; font-size: .88rem; }
.foot a { color: #f0b27a; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.foot b { color: #fff; }

@media (max-width: 720px) {
  .product-top, .foot-in, .form .row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .brand small { display: none; }
}
