/* Miss Surfer 官網。顏色跟 11/8 的合成圖同一組：深海藍、浪綠、沙色、陽光黃 */
:root {
  --ink: #1F3A43; --navy: #223140; --sea: #2E5D66; --teal: #3F7C7D; --teal-l: #DCEAEA;
  --sand: #F4EFE6; --paper: #FBF9F5; --gold: #D9A21B; --gold-l: #F7EAC6; --gold-ink: #2A2112;
  --line: #E2DDD3; --muted: #63727A; --text: #26353A; --red: #B5523B; --line-green: #06C755;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --logo: "DM Serif Display", Georgia, serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(26px, 6.4vw, 40px); }
h2 { font-size: clamp(20px, 4.8vw, 26px); margin-top: 1.4em; }
.sec h2:first-child, .sec .eyebrow + h2 { margin-top: 0; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: #43555B; }
.note { font-size: 14.5px; color: var(--muted); margin-top: 1em; }
.hint { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- 版頭 ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font: italic 400 24px/1 var(--logo); color: var(--gold); text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo small { display: block; font: 500 10px/1.6 var(--sans); color: var(--muted); letter-spacing: .2em; font-style: normal; margin-top: 2px; }
.navcta { font: 700 14px var(--sans); color: #fff; background: var(--ink); border-radius: 999px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: fixed; left: 0; right: 0; top: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: grid; padding: 8px 20px 18px; box-shadow: 0 18px 30px -20px rgba(20,40,45,.35); max-height: calc(100vh - 60px); overflow: auto; }
.menu nav a, .nav-wide a { color: var(--ink); text-decoration: none; font-weight: 500; }
.menu nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.menu nav a:last-child { border-bottom: 0; }
[aria-current="page"] { color: var(--teal) !important; font-weight: 700 !important; }
.nav-wide { display: none; }
@media (min-width: 1000px) {
  .menu { display: none; }
  .nav-wide { display: flex; gap: 18px; font-size: 15px; margin-right: 8px; }
  .top { padding: 0 max(20px, calc((100vw - 1040px) / 2)); }
}

/* ---------- 按鈕 ---------- */
.btn { display: inline-block; text-align: center; font: 700 16px/1.3 var(--sans); border-radius: 12px; padding: 14px 20px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.block { display: block; width: 100%; }
.btn.pri { background: var(--gold); color: var(--gold-ink); }
.btn.dk { background: var(--ink); color: #fff; }
.btn.line { background: var(--line-green); color: #fff; }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn:active { transform: translateY(1px); }
.btns { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .btns { display: flex; } }

/* ---------- 區塊 ---------- */
.sec { padding: 40px 0; }
.sec.alt { background: var(--paper); }
.sec.sand { background: var(--sand); }
.sec.dark { background: var(--navy); color: #D5DFE2; }
.sec.dark h2 { color: #fff; }
.eyebrow { font: 700 12.5px var(--sans); letter-spacing: .18em; color: var(--teal); margin-bottom: 6px; }
.dark .eyebrow { color: var(--gold); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }

/* 照片：沒有照片時是一塊海的顏色 */
.ph { background: linear-gradient(165deg, #A9CDD1 0%, #5E9599 48%, #2E5D66 100%); }
.pic { object-fit: cover; width: 100%; height: auto; }

/* ---------- 首頁 ---------- */
.hero .hero-pic { width: 100%; height: clamp(240px, 52vw, 520px); object-fit: cover; }
.hero-text { padding-top: 26px; padding-bottom: 34px; }
.hero h1 { margin-bottom: .4em; }
@media (min-width: 900px) {
  .hero { position: relative; }
  .hero .hero-pic { height: 560px; }
  .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 48px; color: #fff; }
  .hero-text h1 { color: #fff; max-width: 640px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
  .hero-text .lead { color: #EEF3F4; max-width: 560px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(15,30,36,.6)); pointer-events: none; }
  .hero-text { z-index: 1; }
  .hero .btn.ghost { background: rgba(255,255,255,.92); }
}
.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.assure li { display: flex; gap: 14px; align-items: flex-start; }
.assure .n { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--teal-l); color: var(--sea); font-weight: 700; display: grid; place-items: center; }
.assure b, .day b, .method b { display: block; color: var(--ink); }
.assure small, .day small, .method small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
@media (min-width: 800px) { .assure { grid-template-columns: repeat(3, 1fr); } }
.levels { display: grid; gap: 10px; }
.level { display: block; position: relative; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 44px 14px 16px; text-decoration: none; color: var(--text); background: #fff; }
.level::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-52%); font-size: 26px; color: var(--muted); }
.level small { display: block; color: var(--teal); font-weight: 700; font-size: 13px; }
.level:hover { border-color: var(--teal); }
@media (min-width: 800px) { .levels { grid-template-columns: 1fr 1fr; } }
.day { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.day li { display: flex; gap: 16px; }
.day .tm { flex: none; width: 52px; font-weight: 700; color: var(--gold); }
.dark .day b { color: #fff; } .dark .day small { color: #AFC0C4; }
.method { margin: 0; display: grid; gap: 16px; }
.method div { display: flex; gap: 16px; }
.method dt { flex: none; width: 56px; font-size: 13px; font-weight: 700; color: var(--teal); padding-top: 3px; }
.method dd { margin: 0; }
.rating { font-size: 18px; margin-bottom: 14px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.reviews { display: grid; gap: 12px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; }
.review blockquote { margin: 0 0 8px; font-size: 15.5px; }
.review figcaption { font-size: 13.5px; color: var(--muted); }
.more { display: inline-block; margin-top: 14px; font-weight: 700; }

/* 價格列表 */
.plist { display: grid; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.prow b { color: var(--ink); }
.prow small, .pr small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.pr { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; font-size: 17px; }

/* ---------- 找到你的起點 ---------- */
.finder fieldset { border: 0; padding: 0; margin: 26px 0 0; }
.finder legend { font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.finder legend small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.q { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.col { display: grid; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff; transition: .15s; }
.opt.tall span { border-radius: var(--r); padding: 12px 40px 12px 16px; }
.opt.tall small { display: block; color: var(--teal); font-weight: 700; font-size: 13px; }
.opt input:checked + span { border-color: var(--sea); background: var(--sea); color: #fff; }
.opt.tall input:checked + span { background: #F1F7F7; color: var(--text); box-shadow: inset 0 0 0 1px var(--sea); }
.opt.tall input:checked + span::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 7px; border-left: 2.5px solid var(--sea); border-bottom: 2.5px solid var(--sea); transform: translateY(-70%) rotate(-45deg); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder #go { margin-top: 28px; }
#miss { color: var(--red); margin-top: 10px; }
.result { margin-top: 8px; outline: none; }
.result .eyebrow { margin-top: 8px; }
.pick { border: 2px solid var(--ink); border-radius: 16px; padding: 20px; }
.pick h2 { margin: 0 0 6px; font-size: 26px; }
.pick .times { display: block; color: var(--muted); font-size: 14.5px; }
.pick .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.pick .total { font-size: 30px; font-weight: 700; color: var(--ink); }
.pick .total small { font-size: 13px; color: var(--muted); font-weight: 400; margin-right: 6px; }
.slot { margin-top: 14px; }
.slot .opts { margin-top: 6px; }
.reply { background: var(--teal-l); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; color: #24464A; }
.reply b { color: var(--sea); }
.altbox { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; font-size: 15px; }
.copybox { border: 1.5px dashed #C9C2B4; border-radius: var(--r); padding: 14px 16px; margin: 14px 0; background: var(--paper); }
.copybox small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.copybox pre { margin: 0; font: 500 15.5px/1.8 var(--sans); white-space: pre-wrap; color: var(--ink); }
.again { display: block; text-align: center; margin-top: 14px; font-weight: 700; background: none; border: 0; color: var(--sea); font-size: 15px; cursor: pointer; width: 100%; padding: 8px; }

/* ---------- 課程 ---------- */
.cards { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.ccard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); background: #fff; }
.ccard-pic { height: 170px; width: 100%; object-fit: cover; }
.ccard-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ccard h2 { font-size: 20px; margin: 2px 0 6px; }
.ccard p { font-size: 15px; color: #4A5A5F; }
.ccard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.ccard-foot .pr { text-align: left; }
.en { font: italic 700 13px var(--sans); letter-spacing: .14em; color: var(--teal); }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.course-head { padding-bottom: 20px; }
.wide-pic .course-pic, .wide-pic .ph { width: 100%; height: clamp(220px, 50vw, 460px); object-fit: cover; border-radius: var(--r); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.facts b { display: block; color: var(--ink); font-size: 18px; line-height: 1.3; }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.tiers { margin-top: 12px; font-size: 15px; }
.tiers span { color: var(--line); }
.tiers small { color: var(--muted); margin-left: 6px; }
.chk { list-style: none; padding: 0; margin: 0 0 .5em; }
.chk li { position: relative; padding-left: 26px; margin: 6px 0; }
.chk li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.chk.no li::before { border: 0; width: 11px; height: 2px; background: var(--red); transform: none; top: 13px; }
.chk.dot li::before { border: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: none; top: 11px; left: 5px; }
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.times .card b { color: var(--teal); } .times .card p { margin: 4px 0 0; font-size: 15px; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.incl li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.incl b { display: block; color: var(--ink); font-size: 15px; }
.incl small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.common p { font-size: 15px; color: #45565B; }
.common b { color: var(--ink); margin-right: 4px; }
.svc { display: grid; gap: 14px; margin-top: 18px; }
.svc-pic { border-radius: 12px; height: 200px; object-fit: cover; }
.svc .ph { border-radius: 12px; height: 120px; }
@media (min-width: 700px) { .svc { grid-template-columns: 260px 1fr; } .svc .ph { height: 100%; min-height: 140px; } }
.buybar { position: sticky; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px -14px rgba(20,40,45,.4); }
.buybar .wrap { display: flex; align-items: center; gap: 16px; }
.buybar .pr { text-align: left; }
.buybar .btn { flex: 1; padding: 12px; }

/* ---------- 住宿、教練、周邊、交通、FAQ ---------- */
.two { display: grid; gap: 10px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; gap: 40px; } }
.pline { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 10px 0; }
.pline b { color: var(--ink); font-size: 18px; } .pline small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.quote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-size: 18px; color: var(--ink); }
.coaches { display: grid; gap: 22px; }
.coach { display: grid; gap: 14px; }
.coach-pic { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; max-width: 320px; }
.coach .ph { border-radius: var(--r); aspect-ratio: 4 / 3; max-width: 320px; }
@media (min-width: 760px) { .coach { grid-template-columns: 260px 1fr; gap: 28px; } }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal); background: var(--teal-l); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 800px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { display: flex; flex-direction: column; gap: 2px; }
.product .prod-pic, .product .ph { aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.product .ph { background: linear-gradient(165deg, #EADFCB, #CDB998 60%, #9C8A6C); }
.product b { color: var(--ink); } .product small { color: var(--muted); font-size: 14px; } .product .muted { font-size: 14px; }
.member { max-width: 560px; }
.member .btn { margin-top: 14px; }
.vrow { padding: 16px 0; border-bottom: 1px solid var(--line); }
.vrow h2 { font-size: 17px; margin: 0 0 4px; color: var(--teal); }
.vrow p { margin: 0 0 .6em; }
.vrow .btn { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; background: #fff; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; color: var(--ink); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; color: var(--muted); }
.qa[open] summary::after { content: "−"; }
.qa p { color: #43555B; }

/* ---------- 版尾 ---------- */
.foot { background: var(--navy); color: #BFCBCF; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14.5px; line-height: 1.9; }
.foot b { color: #fff; } .foot a { color: #DCE6E8; }
.foot-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.social { display: flex; gap: 16px; margin-top: 6px; }
.foot .btn { display: block; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot .btn { display: inline-block; padding: 14px 40px; } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; z-index: 50; max-width: calc(100vw - 40px); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; }
.toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.manual { position: fixed; inset: 0; background: rgba(15,30,36,.55); z-index: 60; display: grid; place-items: end center; padding: 16px; }
.manual-in { background: #fff; border-radius: 18px; padding: 18px; width: 100%; max-width: 480px; display: grid; gap: 10px; }
.manual textarea { width: 100%; font: 15px/1.7 var(--sans); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
@media (min-width: 700px) { .svc.nopic { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .coach:not(:has(.coach-pic)) { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .buybar .wrap { justify-content: space-between; } .buybar .btn { flex: none; min-width: 280px; } }
