/* ==========================================================================
   contest_new · demo 共用樣式（v1 融合版）
   字級最小 14px；其餘依比例放大（係數 1.143）
   ========================================================================== */
:root{
  --c-surface:#fff; --c-surface-lowest:#fff; --c-surface-low:#faf8f4; --c-surface-high:#ded8ce;
  --c-hairline:#ded8ce; --c-primary:#004f8e; --c-primary-deep:#003867; --c-secondary:#f8e54a;
  --c-secondary-deep:#dbc82e; --c-tertiary:#bbe9ff; --c-on-secondary:#201c00;
  --c-ink:#22303f; --c-muted:#5f6b78; --c-on-primary:#fff; --c-success:#15803d;
  --c-stripe-violet:#a685ba; --c-stripe-sky:#7fcded; --c-stripe-gold:#ffeb50;
  --g-stripe:linear-gradient(90deg,var(--c-stripe-violet) 0 33.33%,var(--c-stripe-sky) 33.33% 66.66%,var(--c-stripe-gold) 66.66% 100%);
  --g-stripe-v:linear-gradient(180deg,var(--c-stripe-violet),var(--c-stripe-sky) 50%,var(--c-stripe-gold));
  --g-hero-overlay:linear-gradient(to top,rgba(0,56,103,.95),rgba(0,56,103,.40),rgba(0,0,0,0));
  --sh-card:0 1px 2px rgba(74,62,45,.04),0 2px 8px -2px rgba(74,62,45,.06);
  --sh-float:0 8px 20px -4px rgba(74,62,45,.12),0 3px 8px -3px rgba(74,62,45,.06);
  --sh-lift:0 12px 28px -8px rgba(74,62,45,.16),0 4px 10px -4px rgba(74,62,45,.08);
  --sh-hero-text:0 2px 12px rgba(0,0,0,.35);
  --f-family:"Noto Sans TC","Noto Sans",system-ui,sans-serif;
  --sp-xs:4px; --sp-sm:8px; --sp-md:20px; --sp-lg:28px; --sp-xl:40px; --sp-2xl:64px;
  --gutter:16px; --gutter-lg:24px;
  --r-md:10px; --r-lg:16px; --r-xl:24px; --r-full:9999px;
  --w-prose:660px; --h-header:76px; --h-tap:48px;
  --e-out:cubic-bezier(.22,1,.36,1); --e-inout:cubic-bezier(.4,0,.2,1);
  --d-fast:180ms; --d-base:280ms; --d-slow:640ms;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--c-surface);color:var(--c-ink);
  font-family:var(--f-family);font-size:16px;line-height:24px;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,p,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.ms{font-family:"Material Symbols Outlined";font-variation-settings:'FILL' 0,'wght' 400;
  line-height:1;vertical-align:middle;font-size:24px}
:focus-visible{outline:2px solid var(--c-primary);outline-offset:2px}

/* ---------- 型階 ---------- */
.t-label{font-size:14px;line-height:20px;letter-spacing:.02em;font-weight:600}
.t-body{font-size:16px;line-height:24px}
.t-body-lg{font-size:18px;line-height:26px}
.t-title{font-size:20px;line-height:28px;font-weight:600}
.t-head-m{font-size:24px;line-height:32px;font-weight:700;letter-spacing:-.005em}
.t-head{font-size:28px;line-height:38px;font-weight:700;letter-spacing:-.01em}
.t-display{font-size:36px;line-height:46px;font-weight:700;letter-spacing:-.02em}
.t-display-lg{font-size:44px;line-height:54px;font-weight:700;letter-spacing:-.02em}
@media(max-width:767px){
  .t-display-lg{font-size:34px;line-height:44px}
  .t-display{font-size:30px;line-height:40px}
  .t-head{font-size:24px;line-height:32px}
}
.muted{color:var(--c-muted)}
.center{text-align:center}

/* ---------- 版面 ---------- */
.wrap{max-width:var(--w-container, 1140px);margin:0 auto;padding:0 var(--page-pad, 16px)}
.sec{padding-top:var(--sp-2xl)}
.sec--tight{padding-top:var(--sp-xl)}
.lead{max-width:var(--w-prose)}
.sec-head{max-width:760px}
.h2{position:relative;padding-left:14px;font-size:28px;line-height:38px;font-weight:700;
  letter-spacing:-.01em}
@media(max-width:767px){.h2{font-size:24px;line-height:32px}}
.h2::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:62%;border-radius:2px;background:var(--g-stripe-v)}
.h3{font-size:20px;line-height:28px;font-weight:700}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;background:var(--c-surface-lowest);
  border-bottom:1px solid var(--c-hairline);box-shadow:var(--sh-card);
  transition:box-shadow var(--d-base) var(--e-inout)}
.site-header.is-scrolled{box-shadow:var(--sh-float)}
.stripe{display:flex;height:4px}
.stripe i{display:block;height:100%}
.stripe i:nth-child(1){width:33%;background:var(--c-stripe-violet)}
.stripe i:nth-child(2){width:33%;background:var(--c-stripe-sky)}
.stripe i:nth-child(3){width:34%;background:var(--c-stripe-gold)}
.hd{height:72px;display:flex;align-items:center;gap:16px}
@media(max-width:767px){.hd{height:56px}}
.brand{display:flex;align-items:center;gap:8px}
.brand img{height:34px;width:34px;object-fit:contain}
.brand span{font-size:20px;line-height:28px;font-weight:700;color:var(--c-primary)}
@media(min-width:768px){.brand span{font-size:22px;line-height:30px}}
.hd__nav{margin-left:auto;display:none;gap:28px;font-size:16px;font-weight:500}
.hd__nav a{color:var(--c-muted);padding:6px 0;border-bottom:2px solid transparent;
  transition:color var(--d-fast),border-color var(--d-fast)}
.hd__nav a:hover,.hd__nav a.is-active{color:var(--c-primary);border-color:var(--c-primary)}
@media(min-width:1024px){.hd__nav{display:flex}}

/* ---------- 平板主選單（768～1023px）
   小於 768px 有底部 tabbar，不需要這個；
   大於等於 1024px 有原本的 hd__nav。 ---------- */
.nav-mobile{display:none;position:relative}
@media(min-width:768px) and (max-width:1023px){.nav-mobile{display:block}}

.nav-mobile__btn{display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:9px;border:1px solid var(--c-hairline);
  background:#fff;color:var(--c-ink);font-size:14px;font-weight:700;
  font-family:inherit;cursor:pointer;transition:all .15s ease}
.nav-mobile__btn:hover{border-color:var(--c-primary);color:var(--c-primary)}
.nav-mobile__btn .ms{font-size:20px;color:var(--c-primary)}
.nav-mobile__arrow{font-size:18px!important;transition:transform .2s ease}
.nav-mobile__btn[aria-expanded="true"] .nav-mobile__arrow{transform:rotate(180deg)}

.nav-mobile__panel{position:absolute;top:calc(100% + 8px);right:0;
  min-width:200px;padding:6px;border-radius:12px;
  background:#fff;border:1px solid var(--c-hairline);
  box-shadow:0 12px 32px rgba(23,49,82,.16);z-index:120}
.nav-mobile__panel[hidden]{display:none}
.nav-mobile__panel a{display:block;padding:10px 14px;border-radius:8px;
  font-size:15px;font-weight:600;color:var(--c-ink);text-decoration:none;
  white-space:nowrap;transition:background .12s ease}
.nav-mobile__panel a:hover{background:var(--c-surface-low)}
.nav-mobile__panel a.is-on{background:var(--c-primary);color:#fff}

.hd__tel{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--c-muted)}
@media(max-width:1023px){.hd__tel{margin-left:auto}}
@media(min-width:1024px){.hd__tel{margin-left:24px}}
.hd__tel .ms{font-size:18px;color:var(--c-primary)}
@media(max-width:479px){.hd__tel span{display:none}}

/* ---------- 底部導覽（行動） ---------- */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;
  background:var(--c-surface-lowest);border-top:1px solid var(--c-hairline);
  box-shadow:var(--sh-float);padding-bottom:env(safe-area-inset-bottom)}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;padding:8px 0 6px;min-height:56px;font-size:14px;line-height:20px;font-weight:600;
  color:var(--c-muted);transition:color var(--d-fast)}
.tabbar a .ms{font-size:22px}
.tabbar a.is-active{color:var(--c-primary)}
@media(min-width:768px){.tabbar{display:none}}
body{padding-top:76px;padding-bottom:64px}
@media(min-width:768px){body{padding-top:76px;padding-bottom:0}}

/* ---------- 按鈕 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;
  min-height:var(--h-tap);padding:12px 24px;border-radius:var(--r-md);border:1px solid transparent;
  font-family:inherit;font-size:18px;line-height:26px;font-weight:600;cursor:pointer;
  transition:all var(--d-fast) var(--e-inout)}
.btn .ms{font-size:20px}
.btn--primary{background:var(--c-primary);color:var(--c-on-primary)}
.btn--primary:hover{background:var(--c-primary-deep);transform:translateY(-1px)}
.btn--trophy{background:var(--c-secondary);color:var(--c-on-secondary);box-shadow:var(--sh-card)}
.btn--trophy:hover{background:var(--c-secondary-deep);transform:translateY(-1px);box-shadow:var(--sh-float)}
.btn--ghost{background:transparent;color:var(--c-primary);border-color:var(--c-primary)}
.btn--ghost:hover{background:rgba(0,79,142,.05)}
.btn--glass{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.30);
  backdrop-filter:blur(8px)}
.btn--glass:hover{background:rgba(255,255,255,.20)}
.btn--block{width:100%}
@media(max-width:479px){.btn{width:100%}}

/* ---------- 卡片 ---------- */
.card{background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);padding:var(--sp-md);
  transition:box-shadow var(--d-fast) var(--e-inout),border-color var(--d-fast) var(--e-inout),
  transform var(--d-fast) var(--e-inout)}
.card--hover:hover{border-color:var(--c-primary);box-shadow:var(--sh-lift);transform:translateY(-2px)}
.card--certified{position:relative;overflow:hidden}
.card--certified::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:var(--g-stripe)}
.card__icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  background:var(--c-tertiary);color:var(--c-primary);margin-bottom:14px}
.card__icon .ms{font-size:26px}

/* ---------- 標籤 ---------- */
.tag{display:inline-flex;align-items:center;gap:6px;border-radius:12px;padding:4px 12px;
  background:var(--c-tertiary);color:var(--c-primary);font-size:14px;line-height:20px;
  letter-spacing:.02em;font-weight:600}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:var(--r-full);padding:5px 14px;
  background:var(--c-secondary);color:var(--c-on-secondary);font-size:14px;line-height:20px;font-weight:700}

/* ---------- Bento Grid ---------- */
.bento{display:grid;gap:var(--gutter);grid-template-columns:1fr}
@media(min-width:768px){.bento{grid-template-columns:repeat(2,1fr);gap:20px}}
@media(min-width:1024px){.bento{grid-template-columns:repeat(4,1fr);gap:var(--gutter-lg)}}
.bento .span2{grid-column:span 1}
@media(min-width:768px){.bento .span2{grid-column:span 2}}
@media(min-width:1024px){.bento .span2{grid-column:span 2}
  .bento .hero-cell{grid-column:span 2;grid-row:span 2}}
.bento .foot{grid-column:1/-1}

/* ---------- Hero（首屏） ---------- */
.hero{padding-top:20px}
.hero__frame{position:relative;border-radius:var(--r-xl);overflow:hidden;
  box-shadow:var(--sh-float)}
.hero__img{width:100%;height:300px;object-fit:cover}
@media(min-width:768px){.hero__img{height:440px}}
@media(min-width:1280px){.hero__img{height:500px}}
.hero__shade{position:absolute;inset:0;background:var(--g-hero-overlay)}
.hero__body{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:24px}
@media(min-width:768px){.hero__body{padding:40px}}
.hero__title{font-size:26px;line-height:36px;font-weight:700;letter-spacing:-.02em;color:#fff;
  text-shadow:var(--sh-hero-text)}
@media(min-width:480px){.hero__title{font-size:32px;line-height:42px}}
@media(min-width:768px){.hero__title{font-size:44px;line-height:54px}}
.hero__sub{margin-top:10px;font-size:18px;line-height:28px;color:rgba(255,255,255,.88);
  max-width:640px}
.hero__cta{margin-top:20px;display:flex;flex-wrap:wrap;gap:12px}
.hero__cta .btn{flex:0 0 auto}
@media(max-width:479px){.hero__cta .btn{flex:1 1 100%}}

/* ---------- 數字磚 ---------- */
.stats{display:grid;gap:var(--gutter);grid-template-columns:repeat(2,1fr);margin-top:var(--sp-lg)}
@media(min-width:768px){.stats{grid-template-columns:repeat(4,1fr);gap:20px}}
.stat{background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);padding:20px;text-align:center}
.stat__num{font-size:36px;line-height:46px;font-weight:800;letter-spacing:-.02em;
  color:var(--c-primary);font-variant-numeric:tabular-nums}
@media(min-width:768px){.stat__num{font-size:44px;line-height:54px}}
.stat__label{margin-top:4px;font-size:14px;line-height:20px;font-weight:600;color:var(--c-muted)}

/* ---------- 三價值 / 科目 ---------- */
.three{display:grid;gap:var(--gutter);margin-top:var(--sp-lg)}
@media(min-width:768px){.three{grid-template-columns:repeat(3,1fr);gap:20px}}

/* ---------- 資訊清單（表格型） ---------- */
.infolist{background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);overflow:hidden;margin-top:var(--sp-lg)}
.infolist__row{display:flex;flex-wrap:wrap;gap:4px 16px;padding:18px 20px;
  border-bottom:1px solid var(--c-hairline)}
.infolist__row:last-child{border-bottom:0}
.infolist__k{flex:0 0 132px;font-size:16px;line-height:24px;font-weight:700;color:var(--c-primary)}
.infolist__v{flex:1 1 220px;font-size:16px;line-height:24px}
.tbd{color:#a8760f;background:#fff6d6;border-radius:6px;padding:1px 8px;font-size:14px;
  font-weight:600;white-space:nowrap}

/* ---------- 日程 ---------- */
.timeline{display:grid;gap:var(--gutter);margin-top:var(--sp-lg)}
@media(min-width:768px){.timeline{grid-template-columns:repeat(3,1fr);gap:20px}}
@media(min-width:1024px){.timeline{grid-template-columns:repeat(5,1fr);gap:16px}}
.tl{position:relative;background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);padding:22px 20px 20px}
.tl::before{content:"";position:absolute;top:0;left:20px;right:20px;height:3px;
  border-radius:0 0 3px 3px;background:var(--g-stripe)}
.tl__date{font-size:20px;line-height:28px;font-weight:800;color:var(--c-primary);
  font-variant-numeric:tabular-nums}
.tl__title{margin-top:4px;font-size:18px;line-height:26px;font-weight:700}
.tl__desc{margin-top:8px;font-size:16px;line-height:24px;color:var(--c-muted)}

/* ---------- Marquee（信任牆） ---------- */
.marquee{overflow:hidden;margin-top:var(--sp-lg);padding:8px 0;
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.marquee__track{display:flex;gap:var(--gutter);width:max-content;
  animation:marquee 44s linear infinite;will-change:transform}
.marquee:hover .marquee__track{animation-play-state:paused}
@keyframes marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media(max-width:767px){.marquee__track{animation-duration:58s}}
.quote{width:320px;flex:0 0 auto;background:var(--c-surface-lowest);
  border:1px solid var(--c-hairline);border-radius:var(--r-lg);box-shadow:var(--sh-card);
  padding:20px}
@media(max-width:479px){.quote{width:272px}}
.quote__text{font-size:16px;line-height:26px}
.quote__by{margin-top:14px;display:flex;align-items:center;gap:10px;font-size:14px;
  line-height:20px;color:var(--c-muted);font-weight:600}
.quote__dot{width:34px;height:34px;border-radius:50%;background:var(--g-stripe);flex:0 0 auto;
  display:grid;place-items:center;color:#fff;font-size:14px;font-weight:800}

/* ---------- 滾動敘事（Sticky） ---------- */
.story{margin-top:var(--sp-2xl)}
.story__track{position:relative}
.story__sticky{position:sticky;top:var(--story-top, 96px);height:var(--story-h, 560px);min-height:0;z-index:1;
  border-radius:var(--r-xl);overflow:hidden;background:var(--c-primary-deep);
  box-shadow:var(--sh-float)}
.story__bg{position:absolute;inset:0;opacity:.28;
  background:radial-gradient(circle at 30% 30%,#7fcded 0,transparent 55%),
             radial-gradient(circle at 75% 70%,#f8e54a 0,transparent 50%);}
.story__inner{position:relative;height:100%;display:grid;place-items:center;padding:32px 24px}
.story__panel{max-width:660px;text-align:center;color:#fff}
.story__panel .pill{margin-bottom:16px}
.story__panel h3{font-size:34px;line-height:44px;font-weight:800;letter-spacing:-.02em;
  text-shadow:var(--sh-hero-text)}
@media(min-width:768px){.story__panel h3{font-size:44px;line-height:54px}}
.story__panel p{margin-top:14px;font-size:18px;line-height:28px;color:rgba(255,255,255,.86)}
.story__panels > *{position:absolute;inset:0;display:grid;place-items:center;
  opacity:0;visibility:hidden;transform:translateY(40px) scale(.97);
  transition:opacity 480ms var(--e-out),transform 480ms var(--e-out),
    visibility 0s linear 480ms;
  padding:32px 24px}
.story__panels > .is-active{visibility:visible;transition-delay:0s}
.story__panels > .is-active{opacity:1;transform:none;visibility:visible}
.story__panels > .is-past{opacity:0;transform:translateY(-40px) scale(.98);visibility:visible}
/* 無 JS 時（.no-js）第一段仍可見 */
.no-js .story__panels > *{opacity:1;transform:none;visibility:visible;position:static}
.story__bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.16)}
.story__bar i{display:block;height:100%;width:0;background:var(--g-stripe)}
.story__dots{position:absolute;bottom:20px;left:0;right:0;display:flex;justify-content:center;
  gap:8px}
.story__dots b{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);
  transition:background var(--d-fast),transform var(--d-fast)}
.story__dots b.is-on{background:var(--c-secondary);transform:scale(1.3)}
/* 手機：關閉 sticky，改成靜態卡片堆疊 */
@media(max-width:767px){
  .story__track{height:auto}
  .story__sticky{position:static;height:auto;min-height:0}
  .story__panels > *{position:static;opacity:1;transform:none;padding:28px 20px;
    border-bottom:1px solid rgba(255,255,255,.12);transition:none}
  .story__bar,.story__dots{display:none}
}

/* ---------- CTA 帶 ---------- */
.ctaband{margin-top:var(--sp-2xl);background:var(--c-primary);border-radius:var(--r-xl);
  padding:40px 24px;text-align:center;color:#fff;box-shadow:var(--sh-float);
  position:relative;overflow:hidden}
.ctaband::after{content:"";position:absolute;left:0;right:0;top:0;height:4px;
  background:var(--g-stripe)}
.ctaband h2{font-size:28px;line-height:38px;font-weight:800;letter-spacing:-.01em}
@media(min-width:768px){.ctaband h2{font-size:36px;line-height:46px}}
.ctaband p{margin-top:10px;font-size:18px;line-height:28px;color:rgba(255,255,255,.85)}
.ctaband .btnrow{margin-top:22px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* ---------- 頁面小標題帶 ---------- */
.pagehead{padding-top:28px}
.pagehead__crumb{display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;
  color:var(--c-muted);margin-bottom:14px}
.pagehead__crumb .ms{font-size:16px}
.pagehead h1{font-size:32px;line-height:42px;font-weight:800;letter-spacing:-.02em}
@media(min-width:768px){.pagehead h1{font-size:40px;line-height:50px}}
.pagehead p{margin-top:12px;font-size:18px;line-height:28px;color:var(--c-muted);
  max-width:var(--w-prose)}

/* ---------- FAQ 手風琴 ---------- */
.faq{margin-top:var(--sp-lg);display:grid;gap:12px}
.faq details{background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);overflow:hidden}
.faq summary{display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;
  font-size:18px;line-height:26px;font-weight:700;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary .ms{margin-left:auto;color:var(--c-primary);transition:transform var(--d-fast)}
.faq details[open] summary .ms{transform:rotate(180deg)}
.faq .faq__a{padding:0 20px 20px;font-size:16px;line-height:26px;color:var(--c-muted)}

/* ---------- 表單 ---------- */
.form{margin-top:var(--sp-lg);display:grid;gap:18px}
@media(min-width:768px){.form{grid-template-columns:repeat(2,1fr)}}
.field{display:flex;flex-direction:column;gap:6px}
.field--full{grid-column:1/-1}
.field label{font-size:14px;line-height:20px;font-weight:700}
.field label em{color:#b3261e;font-style:normal}
.field input,.field select,.field textarea{min-height:var(--h-tap);padding:12px 14px;
  border:1px solid var(--c-surface-high);border-radius:var(--r-md);background:var(--c-surface-lowest);
  font-family:inherit;font-size:16px;line-height:24px;color:var(--c-ink);
  transition:border-color var(--d-fast),box-shadow var(--d-fast)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;
  border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(0,79,142,.12)}
.field__hint{font-size:14px;line-height:20px;color:var(--c-muted)}
.steps{display:flex;gap:8px;margin-top:var(--sp-lg);flex-wrap:wrap}
.step{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--r-full);
  background:var(--c-surface-lowest);border:1px solid var(--c-hairline);font-size:14px;
  line-height:20px;font-weight:700;color:var(--c-muted)}
.step.is-on{background:var(--c-primary);border-color:var(--c-primary);color:#fff}
.step b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  background:rgba(0,79,142,.12);font-size:14px;color:var(--c-primary)}
.step.is-on b{background:rgba(255,255,255,.3);color:#fff}

/* ---------- 表格（查榜/名單） ---------- */
.tablewrap{margin-top:var(--sp-lg);overflow-x:auto;border:1px solid var(--c-hairline);
  border-radius:var(--r-lg);box-shadow:var(--sh-card);background:var(--c-surface-lowest)}
table.data{width:100%;border-collapse:collapse;font-size:16px;line-height:24px;
  font-variant-numeric:tabular-nums}
table.data th{background:var(--c-surface-low);text-align:left;padding:14px 16px;
  font-size:14px;line-height:20px;font-weight:700;color:var(--c-muted);white-space:nowrap}
table.data td{padding:14px 16px;border-top:1px solid var(--c-hairline)}
table.data tr:hover td{background:rgba(0,79,142,.03)}
.rank1{color:#a8760f;font-weight:800}

/* ---------- 提示框 ---------- */
.note{margin-top:var(--sp-md);padding:16px 18px;border-radius:var(--r-md);
  background:#fff8e1;border:1px solid #f0dfa8;font-size:16px;line-height:24px;
  display:flex;gap:10px}
.note .ms{color:#a8760f;flex:0 0 auto}
.note--ok{background:#eaf6ec;border-color:#bfe0c6}
.note--ok .ms{color:var(--c-success)}

/* ---------- Footer ---------- */
.site-footer{margin-top:var(--sp-2xl);background:var(--c-surface-low);
  border-top:1px solid var(--c-hairline);
  padding:40px 0 calc(40px + env(safe-area-inset-bottom))}
.footer__grid{display:grid;gap:28px}
@media(min-width:768px){.footer__grid{grid-template-columns:1.4fr 1fr 1fr}}
.footer__brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.footer__brand img{height:40px;width:40px;object-fit:contain}
.footer__brand strong{font-size:20px;line-height:28px;color:var(--c-primary)}
.footer__slogan{font-size:16px;line-height:26px;color:var(--c-muted)}
.footer h4{font-size:14px;line-height:20px;font-weight:700;letter-spacing:.04em;
  color:var(--c-ink);margin-bottom:12px}
.footer ul{display:grid;gap:10px;font-size:16px;line-height:24px}
.footer ul a{color:var(--c-muted);transition:color var(--d-fast)}
.footer ul a:hover{color:var(--c-primary)}
.footer__contact{display:grid;gap:10px;font-size:16px;line-height:24px;color:var(--c-muted)}
.footer__contact div{display:flex;gap:8px;align-items:flex-start}
.footer__contact .ms{font-size:20px;color:var(--c-primary);flex:0 0 auto}
.footer__legal{margin-top:28px;padding-top:20px;border-top:1px solid var(--c-hairline);
  font-size:14px;line-height:22px;color:var(--c-muted);display:grid;gap:10px}
.footer__legal .links{display:flex;flex-wrap:wrap;gap:8px 18px}
.footer__legal .notice{background:var(--c-surface-lowest);border:1px solid var(--c-hairline);
  border-radius:var(--r-md);padding:12px 14px}
.footer__copy{margin-top:6px;font-size:14px;line-height:20px}




/* ---------- LINE 推廣元件 ---------- */
.btn--line{background:#06c755;color:#fff}
.btn--line:hover{background:#05b34c;transform:translateY(-1px);box-shadow:var(--sh-float)}
.btn--line .ms{font-size:22px}

/* 表單上方：隨時可加入 */
.line-strip{display:grid;gap:14px;align-items:center;background:var(--c-surface-lowest);
  border:1px solid var(--c-hairline);border-left:4px solid #06c755;border-radius:var(--r-lg);
  padding:18px 20px;box-shadow:var(--sh-card)}
@media(min-width:768px){.line-strip{grid-template-columns:1fr auto}}
.line-strip__badge{display:inline-flex;align-items:center;gap:6px;background:#e8f8ee;color:#05753a;
  border-radius:var(--r-full);padding:3px 12px;font-size:14px;line-height:20px;font-weight:700;
  margin-bottom:8px}
.line-strip__badge .ms{font-size:16px}
.line-strip__text p{font-size:16px;line-height:26px;color:var(--c-muted)}
.line-strip__text strong{color:var(--c-ink)}
.line-strip__actions{display:flex;gap:10px;flex-wrap:wrap}
.line-strip__qr{grid-column:1/-1;display:flex;gap:16px;align-items:center;
  padding-top:14px;border-top:1px dashed var(--c-hairline)}
.line-strip__qr[hidden]{display:none}
.line-strip__qr img{width:132px;height:132px;object-fit:contain;border-radius:var(--r-md);
  border:1px solid var(--c-hairline);background:#fff;padding:6px}
.line-strip__qr p{font-size:14px;line-height:20px;color:var(--c-muted)}
.line-strip__qr a{color:var(--c-primary);text-decoration:underline}

/* 報名後：加 LINE 催促 */
.line-push{margin-top:16px;background:var(--c-surface-lowest);border:1px solid #b9e6c9;
  border-radius:var(--r-lg);box-shadow:var(--sh-card);overflow:hidden}
.line-push--after::before{content:"";display:block;height:4px;background:#06c755}
.line-push.is-highlight{animation:linePulse 1.6s var(--e-out) 2}
@keyframes linePulse{
  0%,100%{box-shadow:var(--sh-card)}
  40%{box-shadow:0 0 0 4px rgba(6,199,85,.28), var(--sh-float)}
}
.line-push__head{padding:20px 20px 0}
.line-push__head h3{font-size:20px;line-height:28px;font-weight:800;color:var(--c-ink)}
.line-push__head p{margin-top:8px;font-size:16px;line-height:26px;color:var(--c-muted)}
.line-push__head p strong{color:#05753a}
.line-push__badge{display:inline-flex;align-items:center;gap:4px;background:#fff3cd;color:#8a6100;
  border-radius:var(--r-full);padding:3px 10px;font-size:14px;line-height:20px;font-weight:800;
  margin-bottom:10px}
.line-push__badge .ms{font-size:16px}
.line-push__action{display:grid;gap:16px;padding:18px 20px 20px}
@media(min-width:768px){.line-push__action{grid-template-columns:auto 1fr;align-items:center}}
.line-push__qr{width:148px;height:148px;object-fit:contain;border:1px solid var(--c-hairline);
  border-radius:var(--r-md);background:#fff;padding:8px}
.line-push__cta .btn--line{max-width:420px}
.line-push__hint{margin-top:10px;font-size:14px;line-height:20px;color:var(--c-muted)}
.line-push__hint strong{color:var(--c-primary)}
.line-push__alt{margin-top:8px;font-size:14px;line-height:20px;color:var(--c-muted)}
.line-push__alt a{color:var(--c-primary);text-decoration:underline;font-weight:700}

/* 同意勾選區 */
.consent{display:grid;grid-template-columns:auto 1fr;gap:12px;background:var(--c-surface-low);
  border:1px solid var(--c-hairline);border-radius:var(--r-lg);padding:16px 18px}
.consent > input[type="checkbox"]{width:22px;height:22px;margin-top:3px;accent-color:var(--c-primary)}
.consent__title{font-size:16px;line-height:24px;font-weight:700;cursor:pointer;display:block}
.consent__desc{margin-top:6px;font-size:14px;line-height:22px;color:var(--c-muted)}
.consent__desc strong{color:var(--c-ink)}
.consent__legal{margin-top:8px;font-size:14px;line-height:20px;color:var(--c-muted)}
.consent__legal a{color:var(--c-primary);text-decoration:underline}

/* QR 佔位（圖檔尚未提供時） */
img.is-missing{position:relative;background:
  repeating-linear-gradient(45deg,#f4f1ec 0 10px,#e9e4da 10px 20px);
  color:#8a8272;font-size:14px;padding:8px;text-align:center}


/* ---------- 分校卡片 ---------- */
.branch-card{display:flex;flex-direction:column;gap:14px;padding:18px}
.branch-card__head .tag{margin-bottom:8px}
.branch-card__body{display:grid;gap:8px}
.branch-card__addr,.branch-card__tel{display:flex;gap:8px;align-items:flex-start;
  font-size:16px;line-height:24px;color:var(--c-muted)}
.branch-card__addr .ms,.branch-card__tel .ms{font-size:20px;color:var(--c-primary);flex:0 0 auto}
.branch-card__tel a{color:var(--c-ink);font-weight:700;font-variant-numeric:tabular-nums}
.branch-card__foot{margin-top:auto;display:grid;gap:12px}
.branch-card__map{width:100%;height:150px;object-fit:cover;object-position:center;border-radius:var(--r-md);
  border:1px solid var(--c-hairline);background:var(--c-surface-low)}
.branch-card__actions{display:flex;flex-wrap:wrap;gap:8px}
.btn--sm{padding:9px 14px;font-size:14px;line-height:20px;min-height:40px;border-radius:var(--r-md)}
.btn--sm .ms{font-size:18px}
.btn.is-disabled{opacity:.5;pointer-events:none}
@media(min-width:768px){.branch-card__map{height:170px}}

/* ---------- 分校列表（按區） ---------- */
.zone-row{display:grid;gap:12px;padding:18px 20px;margin-top:12px}
.zone-row__list{display:grid;gap:10px}
@media(min-width:768px){.zone-row__list{grid-template-columns:repeat(2,1fr)}}
.zone-row__list li{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;
  font-size:16px;line-height:24px;padding-bottom:8px;border-bottom:1px dashed var(--c-hairline)}
.zone-row__list li:last-child{border-bottom:0;padding-bottom:0}
.zone-row__list strong{min-width:110px}
.zone-row__list span{flex:1 1 200px;color:var(--c-muted)}
.zone-row__list a{color:var(--c-primary);font-weight:700;font-variant-numeric:tabular-nums}

/* ---------- 報名後：分校 LINE ---------- */
.branch-line{display:grid;gap:14px;margin-top:16px;padding:16px 18px;border-radius:var(--r-lg);
  background:var(--c-surface-low);border:1px dashed #9dd3b0}
.branch-line[hidden]{display:none}
@media(min-width:768px){.branch-line{grid-template-columns:1fr auto;align-items:center}}
.branch-line h4{font-size:16px;line-height:24px;font-weight:800}
.branch-line p{margin-top:6px;font-size:14px;line-height:22px;color:var(--c-muted)}
.branch-line p strong{color:var(--c-ink)}
.branch-line__qr{display:flex;align-items:center;gap:12px}
.branch-line__qr img{border:1px solid var(--c-hairline);border-radius:var(--r-md);
  background:#fff;padding:6px;width:132px;height:132px;object-fit:contain}


/* ---------- 榜單卡片 ---------- */
.honor-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.honor-card img{width:100%;height:auto;display:block;border-bottom:1px solid var(--c-hairline)}
.honor-card__meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px}

/* ---------- 照片佔位 ---------- */
.photo-grid{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}
@media(min-width:768px){.photo-grid{grid-template-columns:repeat(4,1fr)}}
.photo-grid__item{aspect-ratio:4/3;border-radius:var(--r-lg);border:1px dashed var(--c-surface-high);
  background:var(--c-surface-low);display:grid;place-content:center;gap:6px;text-align:center;
  color:var(--c-muted);font-size:14px;line-height:20px;font-weight:600}
.photo-grid__item .ms{font-size:30px;color:var(--c-primary);opacity:.5;justify-self:center}
.photo-grid__item:first-child{grid-column:span 2;aspect-ratio:auto;min-height:200px}
@media(min-width:768px){.photo-grid__item:first-child{grid-column:span 2;grid-row:span 2}}

/* ============================================================
   平板寬度：選單與聯絡分校一起靠右（覆蓋用，必須放在檔尾）
   .hd__tel 原本有 margin-left:auto，會與選單平分剩餘空間，
   導致選單卡在 header 正中間。這裡強制改成固定間距。
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .hd .nav-mobile { margin-left: auto !important; margin-right: 0 !important; }
  .hd .hd__tel   { margin-left: 14px !important; flex: none !important; }
}
