/* ============================================================
   雨滴 RAINDROP — 前台樣式
   主色：橘 #F97316 ／ 底色：白
   ============================================================ */

:root {
  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;
  --orange-300: #FDBA74;
  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;

  --ink:        #1C1917;
  --ink-2:      #44403C;
  --ink-3:      #78716C;
  --ink-4:      #A8A29E;

  --line:       #E7E5E4;
  --line-2:     #F5F5F4;
  --bg:         #FFFFFF;
  --bg-soft:    #FAFAF9;

  --green:      #16A34A;
  --red:        #DC2626;

  --radius:     16px;
  --radius-lg:  22px;
  --radius-sm:  10px;

  --shadow-sm:  0 1px 2px rgba(28,25,23,.05);
  --shadow:     0 4px 16px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.04);
  --shadow-lg:  0 18px 44px rgba(28,25,23,.10), 0 4px 12px rgba(28,25,23,.05);
  --shadow-orange: 0 12px 32px rgba(249,115,22,.24);

  --max:        1120px;
  --nav-h:      66px;

  --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 通用元件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap; background: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--orange-200); outline-offset: 2px; }

.btn-primary { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-primary:disabled { background: var(--orange-200); box-shadow: none; cursor: not-allowed; transform: none; }

.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--orange-300); color: var(--orange-600); background: var(--orange-50); }

.btn-line { background: #06C755; color: #fff; box-shadow: 0 10px 26px rgba(6,199,85,.26); }
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--orange-600); background: var(--orange-50);
  border: 1px solid var(--orange-100);
  padding: 6px 15px; border-radius: 999px;
}

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(27px, 4.2vw, 39px); line-height: 1.28;
  margin: 18px 0 14px; letter-spacing: -.02em; font-weight: 800;
}
.section-head p { color: var(--ink-3); font-size: 16.5px; margin: 0; }

.hl { color: var(--orange-500); }

/* ---------------- 導覽列 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(28,25,23,.04); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--orange-400), var(--orange-600));
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 5px 14px rgba(249,115,22,.35);
}
.logo small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .18em; line-height: 1; margin-top: 3px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--orange-50); color: var(--orange-600); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.avatar-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; max-width: 190px;
}
.avatar-chip img, .avatar-chip .fallback {
  width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--orange-100); color: var(--orange-600);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.avatar-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-chip button {
  border: none; background: none; cursor: pointer; color: var(--ink-4);
  font-size: 12px; padding: 0 0 0 3px; flex: none;
}
.avatar-chip button:hover { color: var(--red); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 84px 0 78px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 420px at 78% -8%, var(--orange-50) 0%, transparent 62%),
    radial-gradient(680px 340px at 2% 6%, #FFFBF5 0%, transparent 58%);
}
/* 淡淡的雨滴斜線紋理 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(74deg,
    transparent 0 46px, rgba(249,115,22,.055) 46px 47px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.14; letter-spacing: -.035em;
  font-weight: 900; margin: 22px 0 20px;
}
.hero .lead { font-size: 17.5px; color: var(--ink-2); margin: 0 0 34px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-4); display: flex; align-items: center; gap: 7px; }

/* 右側資訊卡 */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(150deg, var(--orange-200), transparent 46%);
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 15px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px;
}
.hero-card-head strong { font-size: 15px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  font-weight: 700; color: var(--green);
}
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 1.9s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.match-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.match-row:last-child { border-bottom: none; }
.match-teams { font-size: 14.5px; font-weight: 700; }
.match-meta { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
.match-score {
  font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 8px;
  background: var(--orange-50); color: var(--orange-600); border: 1px solid var(--orange-100);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 數據列 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: #fff; padding: 32px 20px; text-align: center; }
.stat b {
  display: block; font-size: clamp(26px, 3.6vw, 36px); font-weight: 900;
  letter-spacing: -.03em; color: var(--orange-600); font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

/* ---------------- 關於 ---------------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--orange-100), var(--orange-50) 55%, #fff);
  border: 1px solid var(--orange-100); display: grid; place-items: center;
}
.about-portrait .glyph { font-size: 108px; opacity: .3; }
.about-portrait .tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 17px;
  box-shadow: var(--shadow);
}
.about-portrait .tag b { display: block; font-size: 15px; }
.about-portrait .tag span { font-size: 12.5px; color: var(--ink-3); }
.about-body h2 { font-size: clamp(27px, 4vw, 37px); letter-spacing: -.02em; margin: 16px 0 20px; font-weight: 800; }
.about-body p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; white-space: pre-line; }

/* ---------------- 方案卡 ---------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }

.plan {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px 26px; position: relative; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--orange-200); }

.plan.featured {
  border-color: var(--orange-500); border-width: 2px;
  box-shadow: 0 20px 48px rgba(249,115,22,.16);
}
.plan.featured::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--orange-400), var(--orange-600));
}

.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(249,115,22,.4); white-space: nowrap;
}

.plan-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 18px; border: 1px solid var(--line-2); background: var(--orange-50);
}

.plan h3 { font-size: 21px; font-weight: 800; margin: 0 0 5px; letter-spacing: -.015em; }
.plan .sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 20px; min-height: 1.5em; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.price { font-size: 38px; font-weight: 900; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 700; color: var(--ink-3); margin-right: 2px; }
.price-was { font-size: 15px; color: var(--ink-4); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-off {
  font-size: 12px; font-weight: 800; color: var(--orange-600);
  background: var(--orange-50); border: 1px solid var(--orange-100);
  padding: 2px 9px; border-radius: 6px;
}

.plan-desc { font-size: 14px; color: var(--ink-3); margin: 12px 0 20px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan-features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.plan-features li::before {
  content: '✓'; flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--orange-50); color: var(--orange-600);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 900; margin-top: 3px;
}
.plan .plan-cta { margin-top: auto; }
.plan .stock-hint { font-size: 12.5px; color: var(--orange-600); font-weight: 700; text-align: center; margin-top: 11px; }
.plan.sold-out { opacity: .62; }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; counter-increment: s;
}
.step::before {
  content: counter(s); position: absolute; top: 22px; right: 24px;
  font-size: 42px; font-weight: 900; color: var(--orange-50); line-height: 1;
}
.step .ic { font-size: 26px; margin-bottom: 12px; }
.step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--orange-200); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 14px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto; font-size: 22px; font-weight: 400;
  color: var(--orange-500); transition: transform .22s ease; line-height: 1; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }

/* ---------------- CTA 收尾 ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff; border-radius: var(--radius-lg); padding: 54px 42px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(74deg, transparent 0 50px, rgba(255,255,255,.06) 50px 51px);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(25px, 3.6vw, 35px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { margin: 0 auto 28px; opacity: .93; max-width: 34em; font-size: 16px; }
.cta-band .btn-white { background: #fff; color: var(--orange-600); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.cta-band .btn-white:hover { transform: translateY(-2px); background: #fff; }

/* ---------------- 頁尾 ---------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 34px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-3); }
.footer-links a:hover { color: var(--orange-600); }
.disclaimer {
  margin-top: 30px; padding: 17px 20px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--orange-400); border-radius: var(--radius-sm);
  font-size: 12.8px; color: var(--ink-3); line-height: 1.75;
}
.copyright { margin-top: 22px; font-size: 12.5px; color: var(--ink-4); text-align: center; }

/* ---------------- 結帳彈窗 ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(28,25,23,.5);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .2s ease;
}
.modal-backdrop.open { display: flex; opacity: 1; }

.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.modal-backdrop.open .modal { transform: none; }

.modal-head {
  position: sticky; top: 0; background: #fff; z-index: 2;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: flex-start; gap: 14px;
}
.modal-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.modal-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.modal-close {
  margin-left: auto; border: none; background: var(--line-2); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 17px; color: var(--ink-3);
  flex: none; display: grid; place-items: center; transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--orange-50); color: var(--orange-600); }
.modal-body { padding: 22px 26px 26px; }

.summary {
  background: var(--orange-50); border: 1px solid var(--orange-100);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.summary-row + .summary-row { margin-top: 9px; }
.summary-row.total {
  border-top: 1px dashed var(--orange-200); margin-top: 13px; padding-top: 13px;
  font-size: 16px; font-weight: 800;
}
.summary-row.total b { font-size: 24px; color: var(--orange-600); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  font-size: 17px; color: var(--ink-2); transition: background .15s;
}
.qty button:hover:not(:disabled) { background: var(--orange-50); color: var(--orange-600); }
.qty button:disabled { color: var(--line); cursor: not-allowed; }
.qty span { min-width: 34px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.line-box {
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius);
  padding: 17px 18px; margin-bottom: 20px; text-align: center;
}
.line-box p { margin: 0 0 13px; font-size: 14px; color: #166534; }
.line-box.linked { background: var(--bg-soft); border-color: var(--line); text-align: left; }
.line-user { display: flex; align-items: center; gap: 11px; }
.line-user img, .line-user .fallback {
  width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; font-weight: 800;
}
.line-user b { display: block; font-size: 15px; }
.line-user span { font-size: 12.5px; color: var(--ink-3); }
.line-user .ok { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--green); flex: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--orange-600); }
.field .hint { font-size: 12px; color: var(--ink-4); font-weight: 500; margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3.5px var(--orange-50);
}
.field textarea { resize: vertical; min-height: 74px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.pay-options { display: grid; gap: 11px; margin-bottom: 20px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s;
}
.pay-option:hover { border-color: var(--orange-300); }
.pay-option input { margin: 3px 0 0; accent-color: var(--orange-500); flex: none; width: 17px; height: 17px; }
.pay-option:has(input:checked) { border-color: var(--orange-500); background: var(--orange-50); }
.pay-option.disabled { opacity: .5; cursor: not-allowed; background: var(--bg-soft); }
.pay-option.disabled:hover { border-color: var(--line); }
.pay-option.disabled span { color: var(--orange-700); font-weight: 600; }
.pay-option b { display: block; font-size: 14.5px; }
.pay-option span { font-size: 12.5px; color: var(--ink-3); }

.alert {
  padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px;
  display: flex; gap: 9px; align-items: flex-start;
}
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-info  { background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--orange-700); }
.alert-warn  { background: #FEFCE8; border: 1px solid #FEF08A; color: #854D0E; }

.fineprint { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 14px; line-height: 1.65; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--line-2) 25%, #fff 50%, var(--line-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 訂單結果頁 ---------------- */
.result-page { min-height: 100vh; display: flex; flex-direction: column; }
.result-main { flex: 1; display: grid; place-items: center; padding: 56px 24px; }
.result-card {
  width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.result-top { padding: 40px 34px 30px; text-align: center; border-bottom: 1px solid var(--line-2); }
.result-icon {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  font-size: 31px; margin: 0 auto 18px;
}
.result-icon.ok { background: #DCFCE7; color: var(--green); }
.result-icon.wait { background: var(--orange-50); color: var(--orange-500); }
.result-icon.bad { background: #FEE2E2; color: var(--red); }
.result-top h1 { font-size: 25px; font-weight: 800; margin: 0 0 9px; letter-spacing: -.02em; }
.result-top p { margin: 0; color: var(--ink-3); font-size: 15px; }
.result-body { padding: 26px 34px 34px; }

.kv { display: grid; gap: 13px; margin-bottom: 26px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; align-items: baseline; }
.kv-row dt { color: var(--ink-3); flex: none; }
.kv-row dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.kv-row.total dd { font-size: 21px; color: var(--orange-600); letter-spacing: -.02em; }

.bank-box {
  background: var(--orange-50); border: 1px solid var(--orange-100);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px;
}
.bank-box h4 { margin: 0 0 12px; font-size: 14.5px; color: var(--orange-700); }
.copy-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14.5px; }
.copy-row + .copy-row { margin-top: 9px; }
.copy-row b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.copy-btn {
  border: 1px solid var(--orange-200); background: #fff; color: var(--orange-600);
  border-radius: 7px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; flex: none;
}
.copy-btn:hover { background: var(--orange-100); }

.badge-status {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800;
}
.st-pending  { background: var(--orange-50); color: var(--orange-700); }
.st-paid,
.st-shipped  { background: #DCFCE7; color: #15803D; }
.st-cancelled,
.st-failed   { background: #FEE2E2; color: #B91C1C; }
.st-refunded { background: var(--line-2); color: var(--ink-3); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 22px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; box-shadow: var(--shadow-lg); max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 手機版 ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-portrait { max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 62px 0; }
  .hero { padding: 52px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh; transform: translateY(100%);
  }
  .modal-backdrop.open .modal { transform: none; }
  .modal-head, .modal-body { padding-inline: 20px; }
  .result-top, .result-body { padding-inline: 22px; }
  .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
