/* 外送騎士官網共用樣式。配色與字型照官網 B 版畫板。 */
:root {
  --ink: #EAF2FA;
  --body: #B5C6D8;
  --body-strong: #C7D6E6;
  --muted: #9FB3C8;
  --ice: #6CC8F5;
  --gold: #C9A45C;
  --gold-light: #E3C784;
  --panel: #0F1B2F;
  --panel-deep: #0B1424;
  --page: #070C16;
  --serif: 'Noto Serif TC', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
a { color: var(--ice); }
a:hover { color: #A9E0FA; }
img { display: block; max-width: 100%; height: auto; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
h1, h2, h3, p { margin: 0; }

.page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 70% 0%, #13233D 0%, #0B1424 45%, #070C16 100%);
  overflow-x: clip;
}
.page-privacy { line-height: 1.75; }

/* 導覽列 */
.site-header { border-bottom: 1px solid rgba(201,164,92,0.35); background: rgba(7,12,22,0.85); }
.site-header.sticky { position: sticky; top: 0; z-index: 100; }
.nav { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; flex: none; width: auto; height: 38px; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--gold-light); letter-spacing: 1px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 15px; }
.nav-link { color: var(--body-strong); text-decoration: none; padding: 8px 0; }
.nav-link.gold { color: var(--gold-light); }
.nav-link.active { color: var(--ice); border-bottom: 2px solid var(--gold); font-weight: 700; }
.nav-download { display: inline-block; padding: 5px 18px; border-radius: 999px; border: 1px solid var(--gold); color: var(--ink); text-decoration: none; font-size: 14px; }

/* 頁尾 */
.site-footer { border-top: 1px solid rgba(201,164,92,0.35); padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p + p { margin-top: 6px; }
.site-footer .gold-link { color: var(--gold-light); }

/* 卡片 */
.card {
  border-radius: 20px;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--panel-deep), inset 0 0 0 4px rgba(108,200,245,0.4);
  background: var(--panel);
}

/* 內頁骨架 */
.inner { margin: 0 auto; padding: 56px 20px 64px; position: relative; }
.inner-860 { max-width: 860px; }
.inner-900 { max-width: 900px; }
.inner-960 { max-width: 960px; }
.inner-1120 { max-width: 1120px; }
.watermark { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: min(420px, 90vw); height: auto; opacity: 0.05; pointer-events: none; z-index: 0; }
.layer { position: relative; z-index: 1; }
.page-head { text-align: center; margin-bottom: 48px; }
.page-head.tight { margin-bottom: 32px; }
.page-title { margin-bottom: 10px; font-family: var(--serif); font-weight: 900; font-size: 42px; color: var(--ice); letter-spacing: 1px; }
.page-lead { color: var(--body); font-size: 18px; }

/* 下載橫條 */
.cta { border-radius: 18px; border: 1px solid var(--gold); box-shadow: inset 0 0 0 2px var(--panel-deep), inset 0 0 0 3px rgba(108,200,245,0.35); background: var(--panel); padding: 20px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.cta-text { font-size: 17px; font-weight: 700; color: var(--ink); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(201,164,92,0.6); background: rgba(11,20,36,0.8); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.cta-button.primary { border-color: var(--gold); }

/* 真實截圖 */
.shot { width: 100%; border-radius: 14px; border: 1px solid rgba(201,164,92,0.5); }
.shot-crop { height: 420px; object-fit: cover; object-position: top; }
.phone-shot { width: 100%; max-width: 230px; border-radius: 30px; border: 2px solid rgba(201,164,92,0.6); background: #070C16; padding: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.phone-shot img { width: 100%; border-radius: 24px; }

/* 首頁 */
.hero { max-width: 1120px; margin: 0 auto; padding: 64px 20px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-copy { flex: 1 1 420px; min-width: 0; }
.eyebrow { margin-bottom: 14px; color: var(--gold-light); font-size: 14px; letter-spacing: 3px; }
.hero-title { margin-bottom: 18px; font-family: var(--serif); font-weight: 900; font-size: 52px; line-height: 1.2; }
.hero-title span { color: var(--ice); }
.hero-lead { margin-bottom: 28px; color: var(--body); font-size: 18px; max-width: 520px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; border: 1px solid var(--gold); text-decoration: none; }
.store-button.play, .store-button.play:hover { background: var(--ink); color: var(--panel-deep); }
.store-button.apple, .store-button.apple:hover { background: #000; color: #fff; }
.store-label { display: flex; flex-direction: column; line-height: 1.15; }
.store-os { font-size: 11px; }
.play .store-os { color: #3A4D63; }
.apple .store-os { color: var(--body-strong); }
.store-name { font-size: 19px; font-weight: 700; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-phones { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
.hero-phone { border: 3px solid var(--gold); background: #000; padding: 6px; }
.hero-phone img { width: 100%; }
.hero-phone.back { width: 230px; border-radius: 38px; box-shadow: 0 0 0 6px #0A1220, 0 30px 70px rgba(0,0,0,0.6), 0 0 50px rgba(108,200,245,0.15); transform: rotate(-4deg) translateY(36px); margin-right: -36px; }
.hero-phone.back img { border-radius: 32px; }
.hero-phone.front { width: 250px; border-radius: 40px; box-shadow: 0 0 0 6px #0A1220, 0 30px 80px rgba(0,0,0,0.65), 0 0 60px rgba(108,200,245,0.2); transform: rotate(3deg); position: relative; }
.hero-phone.front img { border-radius: 34px; }

.payday { max-width: 760px; margin: 0 auto; padding: 0 20px 56px; }
.payday .card { padding: 22px 24px; box-shadow: inset 0 0 0 3px var(--panel-deep), inset 0 0 0 4px rgba(108,200,245,0.45); }
.payday h2 { margin-bottom: 14px; font-size: 20px; text-align: center; color: var(--gold-light); }
.payday-rows { display: flex; flex-direction: column; gap: 10px; }
.payday-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel-deep); }
.payday-name { font-weight: 700; }
.payday-desc { color: var(--body); font-size: 15px; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill.ice { background: rgba(108,200,245,0.15); color: var(--ice); }
.pill.gold { background: rgba(201,164,92,0.18); color: var(--gold-light); }

.features { max-width: 1120px; margin: 0 auto; padding: 24px 20px 56px; }
.section-title { font-family: var(--serif); text-align: center; }
.features .section-title { margin-bottom: 8px; font-size: 34px; color: var(--ink); }
.features-lead { margin-bottom: 32px; text-align: center; color: var(--muted); }
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature { flex: 1 1 300px; min-width: 0; padding: 26px 24px; border-radius: 18px; }
.feature h3 { margin: 12px 0 6px; font-size: 20px; }
.feature p { color: var(--body); margin-bottom: 16px; }

.promise { max-width: 1120px; margin: 0 auto; padding: 8px 20px 56px; }
.promise-box { border-radius: 20px; border: 2px solid var(--gold); box-shadow: inset 0 0 0 5px var(--panel-deep), inset 0 0 0 6px rgba(201,164,92,0.55); background: linear-gradient(180deg, #14284A, #0F1B2F); padding: 36px 24px; text-align: center; }
.promise-box h2 { margin-bottom: 8px; font-family: var(--serif); font-size: 32px; }
.promise-box p { color: var(--body); font-size: 17px; }

.narrow { max-width: 860px; margin: 0 auto; padding: 8px 20px 56px; }
.narrow.last { padding-bottom: 64px; }
.narrow .section-title { margin-bottom: 24px; font-size: 30px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 10px; }
.tip { display: flex; gap: 16px; align-items: flex-start; border-radius: 16px; border: 1px solid rgba(201,164,92,0.6); background: var(--panel); padding: 18px 20px; }
.tip-num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tip h3 { margin-bottom: 4px; font-size: 18px; }
.tip p { color: var(--body); }
.qa { border-radius: 14px; border: 1px solid rgba(108,200,245,0.4); background: var(--panel); padding: 16px 20px; }
.qa summary { font-weight: 700; font-size: 17px; }
.qa p { margin-top: 10px; color: var(--body); }

/* 常見問題 */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip { padding: 7px 18px; border-radius: 999px; background: var(--panel); border: 1px solid rgba(201,164,92,0.45); color: var(--body); font-size: 14px; }
.chip.active { padding: 7px 20px; background: rgba(108,200,245,0.2); border-color: var(--ice); color: var(--ink); font-weight: 700; }
.faq { border-radius: 16px; border: 1px solid rgba(201,164,92,0.6); box-shadow: inset 0 0 0 2px var(--panel-deep), inset 0 0 0 3px rgba(108,200,245,0.3); background: var(--panel); padding: 18px 22px; }
.faq[open] { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--panel-deep), inset 0 0 0 3px rgba(108,200,245,0.4); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq-icon { color: var(--ice); font-size: 22px; line-height: 1; font-weight: 400; }
.faq-icon::before { content: "+"; }
.faq[open] .faq-icon::before { content: "−"; }
.faq p { margin-top: 12px; color: var(--body); font-size: 15px; line-height: 1.7; }
.contact-bar { margin-top: 36px; }
.contact-bar .cta-text { font-size: 18px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 24px; border-radius: 999px; border: 1px solid var(--ice); background: rgba(108,200,245,0.15); color: var(--ice); text-decoration: none; font-weight: 700; font-size: 15px; }

/* 外送報酬試算 */
.calc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.calc-card { flex: 1 1 360px; min-width: 0; max-width: 440px; padding: 32px 28px; }
.calc-card.result { display: flex; flex-direction: column; justify-content: space-between; }
.calc-card h2 { font-size: 24px; color: var(--ink); }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.toggle { display: flex; gap: 8px; }
.toggle button { padding: 5px 16px; border-radius: 999px; background: transparent; border: 1px solid rgba(201,164,92,0.45); color: var(--body); font: inherit; font-size: 14px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ice); border-color: var(--ice); color: var(--panel-deep); font-weight: 700; }
.calc-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.calc-field { border-radius: 14px; border: 1px solid rgba(108,200,245,0.5); background: var(--panel-deep); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.calc-field:focus-within { border-color: var(--ice); box-shadow: 0 0 0 1px var(--ice); }
.calc-field label { color: var(--body); font-size: 16px; }
.calc-value { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-weight: 700; font-size: 18px; white-space: nowrap; }
.calc-value input { width: 3.4em; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: right; outline: none; appearance: textfield; -moz-appearance: textfield; }
.calc-value input::-webkit-outer-spin-button, .calc-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.calc-card.result h2 { margin-bottom: 16px; }
.calc-total-box { text-align: center; margin: 12px 0 20px; }
.calc-total { font-size: 52px; font-weight: 900; color: var(--ice); line-height: 1.1; text-shadow: 0 0 30px rgba(108,200,245,0.45); letter-spacing: 1px; }
.calc-total-label { color: var(--body); font-size: 15px; margin-top: 6px; }
.calc-min-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.calc-rows { border-radius: 14px; background: var(--panel-deep); border: 1px solid rgba(108,200,245,0.3); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.calc-row-label { color: var(--body); font-size: 15px; }
.calc-row-value { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; }
.higher { padding: 2px 10px; border-radius: 999px; background: rgba(201,164,92,0.25); border: 1px solid var(--gold); color: var(--gold-light); font-size: 12px; font-weight: 700; white-space: nowrap; }
.higher[hidden] { display: none; }

/* 更新紀錄 */
.timeline { position: relative; padding-left: 36px; border-left: 2px solid rgba(108,200,245,0.4); margin-left: 12px; }
.timeline-dot { position: absolute; left: -11px; top: 0; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ice); background: var(--panel-deep); box-shadow: 0 0 12px rgba(108,200,245,0.6); }
.release { padding: 32px 28px; }
.release-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.release-tag { font-size: 15px; font-weight: 700; color: var(--gold-light); letter-spacing: 1px; margin-bottom: 4px; }
.release h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.badge { padding: 6px 16px; border-radius: 999px; background: rgba(108,200,245,0.15); border: 1px solid var(--ice); color: var(--ice); font-size: 14px; font-weight: 700; }
.release-lead { margin-bottom: 28px; color: var(--body); font-size: 16px; line-height: 1.7; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.release-item { border-radius: 14px; background: var(--panel-deep); border: 1px solid rgba(108,200,245,0.25); padding: 18px; }
.release-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.release-item h3 { font-size: 17px; color: var(--gold-light); }
.release-item p { color: var(--body); font-size: 14px; line-height: 1.6; }
.release-item .shot { margin-top: 14px; }

/* 使用教學 */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 48px; }
.step { flex: 1 1 320px; min-width: 0; max-width: 350px; padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-num { position: absolute; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle, #E3C784 0%, #C9A45C 70%, #8A6D30 100%); color: var(--panel-deep); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.step h2 { margin: 8px 0 6px; font-size: 22px; color: var(--ink); text-align: center; }
.step-text { margin-bottom: 20px; color: var(--body); font-size: 14px; text-align: center; min-height: 42px; }
.divider { margin: 48px 0 28px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.divider-line { flex: 1; height: 1px; }
.divider-line.left { background: linear-gradient(90deg, transparent, rgba(201,164,92,0.6)); }
.divider-line.right { background: linear-gradient(90deg, rgba(201,164,92,0.6), transparent); }
.divider-title { font-size: 20px; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tricks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 48px; }
.trick { flex: 1 1 300px; min-width: 0; border-radius: 18px; border: 1px solid rgba(201,164,92,0.6); box-shadow: inset 0 0 0 2px var(--panel-deep), inset 0 0 0 3px rgba(108,200,245,0.3); background: var(--panel); padding: 22px 20px; }
.trick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.trick h3 { font-size: 18px; color: var(--ink); }
.trick p { color: var(--body); font-size: 14px; line-height: 1.6; }
.trick .shot { margin-top: 14px; }
.cta.flush { margin-top: 0; }

/* 隱私權政策 */
.policy { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.policy h1 { margin-bottom: 6px; font-family: var(--serif); font-weight: 900; font-size: 40px; color: var(--ice); }
.policy-date { margin-bottom: 32px; color: var(--muted); }
.policy-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 26px; }
.policy-card h2 { margin-bottom: 6px; font-size: 21px; color: var(--gold-light); }
.policy-card p { color: var(--body-strong); }

/* 手機 */
@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .hero-title { font-size: 40px; }
  .hero-copy, .hero-phones { flex-basis: 100%; }
  .hero-phone.back { width: 43%; border-radius: 28px; margin-right: -6%; }
  .hero-phone.back img { border-radius: 22px; }
  .hero-phone.front { width: 47%; border-radius: 30px; }
  .hero-phone.front img { border-radius: 24px; }
  .hero-phones { padding-bottom: 36px; }
  .page-title { font-size: 34px; }
  .features .section-title { font-size: 28px; }
  .promise-box h2 { font-size: 26px; }
  .narrow .section-title { font-size: 26px; }
  .calc-card, .release, .policy-card { padding: 26px 20px; }
  .calc-total { font-size: 44px; }
  .timeline { padding-left: 22px; margin-left: 8px; }
  .cta { padding: 20px; }
  .policy h1 { font-size: 34px; }
}

/* privacy / faq additions */
.policy-lang { margin-bottom: 12px; font-size: 15px; }
.policy-en { margin-top: 56px; }
.policy-card p + p, .policy-card ul + p { margin-top: 10px; }
.policy-card ul { margin: 8px 0 0; padding-left: 1.3em; color: var(--body-strong); }
.policy-card li { margin-top: 4px; }
.policy-card a { overflow-wrap: anywhere; }
.policy h1[id] { scroll-margin-top: 90px; }
