/* ==========================================================================
   contest_new · 全螢幕滾動敘事 + 響應式（v2）
   新增：stage / scene / subnav / side-cta / 大螢幕流體排版
   ========================================================================== */

/* ---------- 流體容器：大螢幕跟著放大 ---------- */
:root{
  --w-container:1140px;
  --page-pad:16px;
}
@media(min-width:768px){:root{--page-pad:24px;--w-container:min(1400px, 92vw)}}
@media(min-width:1440px){:root{--page-pad:40px;--w-container:min(1600px, 90vw)}}
@media(min-width:1800px){:root{--page-pad:56px;--w-container:min(1760px, 88vw)}}
@media(min-width:2200px){:root{--page-pad:72px;--w-container:min(1960px, 86vw)}}

.wrap{max-width:var(--w-container);margin:0 auto;padding:0 var(--page-pad)}

/* ================= 全螢幕滾動舞台 ================= */
.stage{position:relative;background:#07111c}
.stage__viewport{
  position:sticky;top:0;
  height:100svh;min-height:560px;
  overflow:hidden;
}
.stage__track{height:1px} /* JS 會設成 (場景數 × 100vh) */

.stage__bg{position:absolute;inset:0;overflow:hidden}
.stage__img{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.08);
  transition:transform .9s cubic-bezier(.22,1,.36,1),filter .9s ease;
  will-change:transform;
  filter:saturate(.9) brightness(.86);
}
.stage__scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(7,17,28,.82) 0%, rgba(7,17,28,.55) 42%, rgba(4,32,58,.92) 100%);
}
.stage__glow{
  position:absolute;inset:0;opacity:.55;
  background:
    radial-gradient(60% 45% at 18% 22%, rgba(127,205,237,.35) 0%, transparent 62%),
    radial-gradient(50% 40% at 82% 74%, rgba(248,229,74,.20) 0%, transparent 60%);
  mix-blend-mode:screen;pointer-events:none;
}

.stage__viewport{
  display:grid;
  place-items:center;
}

/* ---------- 場景 ---------- */
.scene{
  position:absolute;inset:0;
  display:grid;place-items:center;
  padding:clamp(80px, 9vw, 140px) var(--page-pad) clamp(72px, 8vw, 120px);
  opacity:0;visibility:hidden;
  transform:translate3d(0, 6vh, 0) scale(.985);
  transition:opacity .62s cubic-bezier(.22,1,.36,1),
             transform .72s cubic-bezier(.22,1,.36,1),
             visibility 0s linear .62s;
  will-change:opacity,transform;
}
.scene.is-active{
  opacity:1;visibility:visible;transform:none;
  transition-delay:0s;
}
.scene.is-past{transform:translate3d(0,-6vh,0) scale(.985)}

.scene__inner{
  width:100%;max-width:min(760px, 92vw);
  text-align:center;color:#fff;
}
.scene__inner--wide{max-width:min(var(--w-container), 92vw);text-align:left}

.scene__pill{margin-bottom:18px}
.scene__eyebrow{
  display:inline-block;margin-bottom:14px;
  font-size:14px;line-height:20px;font-weight:700;letter-spacing:.06em;
  color:rgba(255,255,255,.62);text-transform:uppercase;
}
.scene__title{
  font-size:clamp(34px, 5.4vw, 76px);
  line-height:1.14;font-weight:800;letter-spacing:-.03em;
  text-shadow:0 4px 30px rgba(0,0,0,.42);
}
.scene__h2{
  font-size:clamp(27px, 3.4vw, 54px);
  line-height:1.2;font-weight:800;letter-spacing:-.02em;
  text-shadow:0 2px 22px rgba(0,0,0,.32);
}
.scene__h2--big{font-size:clamp(32px, 4.6vw, 68px)}
.scene__lead{
  margin-top:18px;
  font-size:clamp(16px, 1.5vw, 21px);
  line-height:1.65;color:rgba(255,255,255,.82);
}
.scene__note{margin-top:16px;font-size:clamp(14px,1.05vw,16px);color:rgba(255,255,255,.62)}
.scene__cta{
  margin-top:clamp(24px, 3vw, 40px);
  display:flex;flex-wrap:wrap;gap:14px;justify-content:center;
}
.scene__inner--wide .scene__cta{justify-content:flex-start}

/* ---------- 場景 2：三大價值 ---------- */
.value-grid{
  display:grid;gap:clamp(14px,1.4vw,24px);
  grid-template-columns:1fr;
  margin-top:clamp(24px,2.6vw,44px);
}
@media(min-width:768px){.value-grid{grid-template-columns:repeat(3,1fr)}}
.value-card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  padding:clamp(20px,1.8vw,30px);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:transform .3s ease,background .3s ease,border-color .3s ease;
}
.value-card:hover{transform:translateY(-4px);background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.3)}
.value-card__no{
  display:block;margin-bottom:12px;
  font-size:clamp(24px,2.2vw,34px);font-weight:800;letter-spacing:-.02em;
  color:var(--c-secondary);
}
.value-card h3{font-size:clamp(19px,1.5vw,24px);line-height:1.35;font-weight:800}
.value-card p{margin-top:10px;font-size:clamp(14px,1vw,17px);line-height:1.72;color:rgba(255,255,255,.74)}

/* ---------- 場景 3：三科 ---------- */
.subject-row{
  display:grid;gap:clamp(14px,1.4vw,24px);
  grid-template-columns:1fr;
  margin-top:clamp(24px,2.6vw,44px);
}
@media(min-width:768px){.subject-row{grid-template-columns:repeat(3,1fr)}}
.subject{
  border-top:2px solid rgba(255,255,255,.28);
  padding-top:18px;
}
.subject__tag{
  display:inline-block;margin-bottom:12px;
  padding:4px 12px;border-radius:999px;
  background:rgba(187,233,255,.16);color:#bbe9ff;
  font-size:14px;line-height:20px;font-weight:800;letter-spacing:.04em;
}
.subject h3{font-size:clamp(18px,1.45vw,23px);line-height:1.4;font-weight:800}
.subject p{margin-top:10px;font-size:clamp(14px,1vw,16px);line-height:1.75;color:rgba(255,255,255,.7)}

/* ---------- 場景 4：數字 ---------- */
.stat-row{
  display:grid;gap:clamp(14px,1.4vw,24px);
  grid-template-columns:repeat(2,1fr);
  margin-top:clamp(24px,2.6vw,44px);
}
@media(min-width:768px){.stat-row{grid-template-columns:repeat(4,1fr)}}
.stat-big{
  border-left:3px solid rgba(248,229,74,.9);
  padding-left:clamp(12px,1.2vw,20px);
}
.stat-big strong{
  display:block;
  font-size:clamp(32px,4vw,64px);line-height:1.05;font-weight:800;
  letter-spacing:-.03em;color:#fff;
  font-variant-numeric:tabular-nums;
}
.stat-big span{display:block;margin-top:8px;font-size:clamp(14px,1vw,16px);
  font-weight:700;color:rgba(255,255,255,.62)}

/* ---------- 舞台 UI：圓點 + 提示 + 進度 ---------- */
.stage__ui{
  position:absolute;left:0;right:0;bottom:clamp(18px,2.4vh,34px);
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;z-index:4;
}
.stage__dots{
  display:flex;align-items:center;gap:10px;margin:0;padding:0;list-style:none;
  pointer-events:auto;
}
.stage__dots button{
  display:grid;place-items:center;width:34px;height:34px;
  background:none;border:0;cursor:pointer;padding:0;
}
.stage__dots i{
  display:block;width:9px;height:9px;border-radius:999px;
  background:rgba(255,255,255,.34);
  transition:width .35s cubic-bezier(.22,1,.36,1),background .3s ease;
}
.stage__dots button.is-on i{width:30px;background:var(--c-secondary)}
.stage__dots button:hover i{background:rgba(255,255,255,.7)}
.stage__hint{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:4px;
  font-size:14px;line-height:20px;font-weight:700;color:rgba(255,255,255,.6);
  transition:opacity .4s ease;
}
.stage__hint .ms{font-size:22px;animation:nudge 1.8s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(6px);opacity:1}}
.stage__hint.is-hidden{opacity:0}

/* ---------- 品牌 logo ---------- */
.brand{gap:0}
.brand__logo{
  height:clamp(40px, 3.4vw, 54px);
  width:auto;max-width:none;object-fit:contain;display:block;
}
@media(min-width:768px){.brand__logo{height:clamp(52px, 3.4vw, 68px)}}
.footer__logo{height:44px;width:auto;object-fit:contain;display:block}
.footer__brand{gap:12px;align-items:center}
.footer__brand strong{font-size:clamp(15px,1.1vw,17px);color:var(--c-muted);font-weight:700}

/* ---------- 分頁選單（sticky） ---------- */
.subnav{margin-top:0}
.subnav__inner{padding-top:0;padding-bottom:0}

/* ---------- 分頁選單（sticky） ---------- */
.subnav{
  position:sticky;z-index:40;
  background:var(--c-surface);
  border-top:1px solid var(--c-hairline);
  border-bottom:1px solid var(--c-hairline);
  box-shadow:0 1px 0 rgba(74,62,45,.04);
}
.subnav__inner{
  display:flex;align-items:center;gap:8px;
  height:56px;overflow-x:auto;scrollbar-width:none;
}
.subnav__inner::-webkit-scrollbar{display:none}
.subnav__label{
  flex:0 0 auto;font-size:14px;line-height:20px;font-weight:800;
  color:var(--c-muted);letter-spacing:.06em;padding-right:10px;
  border-right:1px solid var(--c-hairline);margin-right:6px;
}
.subnav__link{
  flex:0 0 auto;padding:8px 16px;border-radius:999px;
  font-size:15px;line-height:22px;font-weight:700;color:var(--c-muted);
  border:1px solid transparent;white-space:nowrap;
  transition:all .2s ease;
}
.subnav__link:hover{color:var(--c-primary);border-color:var(--c-hairline);background:#fff}
.subnav__link.is-on{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}

/* ---------- 雙欄說明 ---------- */
.sec-split{display:grid;gap:clamp(24px,3vw,48px);align-items:center}
@media(min-width:900px){.sec-split{grid-template-columns:1.05fr .95fr}}
.sec-split__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.info-panel{
  background:#fff;border:1px solid var(--c-hairline);border-radius:var(--r-xl);
  box-shadow:var(--sh-card);overflow:hidden;
}
.info-panel__row{
  display:flex;justify-content:space-between;gap:16px;align-items:baseline;
  padding:clamp(14px,1.2vw,18px) clamp(16px,1.4vw,24px);
  border-bottom:1px solid var(--c-hairline);
  font-size:clamp(15px,1vw,17px);
}
.info-panel__row:last-child{border-bottom:0}
.info-panel__row span{color:var(--c-muted);font-weight:600;white-space:nowrap}
.info-panel__row strong{text-align:right;font-weight:800;color:var(--c-ink)}

/* ---------- 年度資訊主卡 ---------- */
.info-hero{
  padding:clamp(24px,2.4vw,40px) !important;
  background:linear-gradient(150deg,#004f8e,#003867 65%,#002744) !important;
  border-color:transparent !important;color:#fff;
  display:flex;flex-direction:column;justify-content:center;
}
.info-hero .pill{align-self:flex-start}
.info-hero .t-display{margin-top:18px;font-size:clamp(26px,2.4vw,40px) !important}
.info-hero p{margin-top:10px;color:rgba(255,255,255,.84)}
.info-hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(18px,2vw,28px)}

/* ---------- 右側浮動報名鈕 ---------- */
.side-cta{
  position:fixed;right:clamp(12px,1.6vw,28px);top:50%;transform:translateY(-50%);
  z-index:45;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  padding:clamp(22px,2vw,32px) clamp(14px,1.2vw,20px);
  border-radius:999px;
  background:var(--c-secondary);color:var(--c-on-secondary);
  box-shadow:0 14px 40px -10px rgba(74,62,45,.42), 0 3px 10px -2px rgba(74,62,45,.22);
  font-size:16px;line-height:1.3;font-weight:800;
  text-align:center;text-decoration:none;
  border:2px solid rgba(255,255,255,.55);
  transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease,background .2s ease;
}
.side-cta .ms{font-size:clamp(28px,2.6vw,36px)}
.side-cta:hover{transform:translateY(-50%) scale(1.05);background:var(--c-secondary-deep);
  box-shadow:0 18px 48px -12px rgba(74,62,45,.5)}
.side-cta__text{writing-mode:vertical-rl;letter-spacing:.18em;font-size:clamp(15px,1.3vw,19px);
  font-weight:800;line-height:1.25}
.side-cta.is-hidden{opacity:0;pointer-events:none;transform:translateY(-50%) translateX(20px)}
@media(max-width:767px){
  .side-cta{
    top:auto;bottom:calc(86px + env(safe-area-inset-bottom));
    right:14px;transform:none;z-index:70;
    flex-direction:row;gap:8px;padding:16px 24px;border-radius:999px;
    font-size:17px;
  }
  .side-cta .ms{font-size:26px}
  .side-cta:hover{transform:none}
  .side-cta__text{writing-mode:horizontal-tb;font-size:17px;letter-spacing:.04em;font-weight:800}
  .side-cta.is-hidden{transform:translateY(20px)}
}

/* ---------- 手機：分頁內容改卡片橫滑，不再單調堆疊 ---------- */
@media(max-width:767px){
  .value-grid,.subject-row,.stat-row{gap:12px}
  .value-card,.subject{
    background:rgba(255,255,255,.06);
    border-radius:16px;padding:18px;
  }
  .subject{border-top:0;border-left:2px solid rgba(255,255,255,.28);border-radius:0 16px 16px 0}
  .stat-big{border-left-width:2px;padding-left:14px}

  /* 首頁說明雙欄 → 卡片堆疊 */
  .info-panel__row{flex-direction:column;gap:4px;align-items:flex-start}
  .info-panel__row strong{text-align:left}

  /* 年度資訊 bento 手機單欄，主卡滿版 */
  .info-hero{grid-column:1/-1 !important}

  /* 跑馬燈卡片縮小 */
  .quote{width:min(78vw, 300px);padding:16px}
  .quote__text{font-size:15px;line-height:24px}
}

/* ---------- 手機：分校卡片橫向滑動（避免長條堆疊） ---------- */
@media(max-width:767px){
  .bento[data-branch-grid]{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
    gap:12px;padding-bottom:8px;margin-left:calc(var(--page-pad) * -1);
    margin-right:calc(var(--page-pad) * -1);padding-left:var(--page-pad);padding-right:var(--page-pad);
  }
  .bento[data-branch-grid] > .branch-card{
    flex:0 0 78vw;scroll-snap-align:center;
  }
}

/* ---------- 減少動態 ---------- */
@media(prefers-reduced-motion:reduce){
  .scene{transition:none;opacity:1;visibility:visible;transform:none}
  .stage__img{transition:none}
  .stage__hint .ms{animation:none}
}


/* ---------- 手機修正：舞台文字不溢出、按鈕可用 ---------- */
@media(max-width:767px){
  .scene{padding-left:20px;padding-right:20px}
  .scene__inner{max-width:100%}
  .scene__title{font-size:clamp(28px, 8.4vw, 38px);line-height:1.2}
  .scene__h2{font-size:clamp(22px, 6.4vw, 30px);line-height:1.28}
  .scene__h2--big{font-size:clamp(26px, 7.6vw, 34px)}
  .scene__lead{font-size:15px;line-height:1.7;margin-top:14px}
  .scene__lead br{display:none}
  .scene__cta{gap:10px;margin-top:22px}
  .scene__cta .btn{flex:1 1 100%;width:100%;justify-content:center}
  .value-grid,.subject-row{gap:10px}
  .value-card h3{font-size:17px}
  .value-card p,.subject p{font-size:14px;line-height:1.7}
  .stat-big strong{font-size:clamp(28px,7vw,36px)}
  .stage__dots{gap:6px}
  .stage__dots button{width:28px;height:28px}
  .stage__hint{font-size:13px}
  .subnav__inner{height:52px}
  .subnav__label{display:none}
  .subnav__link{padding:7px 13px;font-size:14px}
}


/* ---------- 覆蓋 demo.css 的 .brand img 固定尺寸 ---------- */
.brand img{width:auto !important;height:clamp(40px,3.4vw,54px) !important}
@media(min-width:768px){.brand img{height:clamp(52px,3.4vw,68px) !important}}

/* ---------- 頁首灰字（麵包屑）與頁首的距離 ---------- */
.pagehead{padding-top:clamp(28px, 3.4vw, 48px) !important}
.pagehead__crumb{margin-bottom:clamp(16px, 1.6vw, 22px) !important;
  margin-top:clamp(4px, 0.6vw, 10px)}
.hd{height:auto !important;padding-top:14px;padding-bottom:14px;
  min-height:88px}
@media(max-width:767px){.hd{min-height:68px;padding-top:10px;padding-bottom:10px}}

/* body 上緣留白跟著 header 實際高度調整 */
body{padding-top:calc(92px + 8px) !important}
@media(min-width:768px){body{padding-top:calc(100px + 10px) !important}}
@media(max-width:767px){body{padding-top:calc(72px + 8px) !important;padding-bottom:64px !important}}

/* sticky 選單與 header 對齊 */
/* header 高度：手機 70 / 桌機 100，sticky 選單緊貼其下，不留縫 */
.subnav{top:100px}
@media(max-width:767px){.subnav{top:70px}}

/* 舞台 sticky 的 top 也要跟著 header */
.stage__viewport{top:0}


/* ---------- 手機：避免場景文字被切、底部預留浮動鈕與導覽 ---------- */
@media(max-width:767px){
  .scene{
    padding-top:clamp(88px, 24vw, 150px);
    padding-bottom:clamp(150px, 26vw, 210px);
    align-items:center;
  }
  .scene__title{font-size:clamp(26px, 7.6vw, 34px)}
  .scene__lead{font-size:14px;line-height:1.65;max-width:100%;
    word-break:break-word;overflow-wrap:anywhere}
  .scene__lead br{display:none}
  .scene__title,.scene__h2{word-break:break-word;overflow-wrap:anywhere;hyphens:auto}
  .scene__inner{max-width:100%;padding:0 4px}
  .scene__cta .btn{min-height:52px;font-size:16px}
  .stage__ui{bottom:clamp(64px, 12vw, 96px)}
  .stage__hint{bottom:-18px}
}


/* ---------- 日程卡：西元＋民國雙標 ---------- */
.tl__date{font-size:clamp(19px,1.5vw,24px);line-height:1.25;font-weight:800;
  color:var(--c-primary);font-variant-numeric:tabular-nums}
.tl__date-sub{margin-top:2px;font-size:14px;line-height:20px;font-weight:700;color:var(--c-muted)}

/* ---------- 表格：休息列淡化 ---------- */
table.data tr.is-rest td{color:var(--c-muted);background:var(--c-surface-low);font-weight:600}

/* ---------- 手機：日程卡改 2 欄 ---------- */
@media(max-width:767px){
  .timeline{grid-template-columns:repeat(2,1fr) !important;gap:10px !important}
  .tl{padding:16px 14px 14px}
  .tl__date{font-size:17px}
  .tl__title{font-size:16px}
  .tl__desc{font-size:14px;line-height:1.6}
}


/* ---------- 報名倒計時 ---------- */
.countdown{
  margin-top:clamp(20px,2.2vw,30px);
  padding:clamp(16px,1.6vw,24px);
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.countdown--wide{
  background:var(--c-surface-lowest);
  border:1px solid var(--c-hairline);
  box-shadow:var(--sh-card);
  margin-top:0;
}
.countdown__top{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin-bottom:10px}
.countdown__label{
  display:inline-block;
  font-size:14px;line-height:20px;font-weight:800;letter-spacing:.08em;
  color:var(--c-secondary);
}
.countdown--wide .countdown__label{color:var(--c-primary);background:rgba(0,79,142,.08);
  padding:4px 12px;border-radius:999px;display:inline-block}
.countdown__note-inline{font-size:14px;line-height:20px;color:var(--c-muted);font-weight:600}

.countdown__digits{
  display:flex;align-items:baseline;gap:clamp(6px,0.8vw,14px);
  font-variant-numeric:tabular-nums;
}
.countdown__unit{display:flex;align-items:baseline;gap:4px}
.countdown__unit strong{
  display:block;
  font-size:clamp(30px,3.6vw,54px);
  line-height:1.05;font-weight:800;letter-spacing:-.03em;
  color:#fff;
}
.countdown--wide .countdown__unit strong{color:var(--c-primary);font-weight:800}
.countdown--wide .countdown__digits{gap:clamp(8px,1vw,16px)}
.countdown--wide .countdown__unit span{color:var(--c-muted);font-weight:700}
.countdown__unit span{font-size:clamp(13px,1vw,15px);font-weight:700;color:rgba(255,255,255,.62)}
.countdown--wide .countdown__unit span{color:var(--c-muted)}
.countdown__sep{
  font-size:clamp(22px,2.6vw,38px);line-height:1;font-weight:800;
  color:rgba(255,255,255,.34);align-self:center;
}
.countdown--wide .countdown__sep{color:var(--c-surface-high)}
.countdown__note{margin-top:12px;font-size:14px;line-height:22px;color:rgba(255,255,255,.7)}

/* 狀態色 */
.countdown.is-open .countdown__label{color:#7ff0a6}
.countdown.is-closed .countdown__label{color:#ffd166}
.countdown__label{transition:color .3s ease}

/* 尚未開放：CTA 外觀 */
.btn.is-disabled,
a.is-disabled{
  opacity:.55;cursor:not-allowed;pointer-events:auto;
  filter:saturate(.5);
}
.side-cta.is-disabled{opacity:.6;filter:saturate(.4)}

/* 手機 */
@media(max-width:767px){
  .countdown{padding:14px 16px;border-radius:14px}
  .countdown__digits{gap:4px;justify-content:flex-start;flex-wrap:nowrap}
  .countdown__unit strong{font-size:clamp(26px,8vw,34px)}
  .countdown__unit span{font-size:12px}
  .countdown__sep{font-size:20px}
  .countdown__note{font-size:13px;line-height:1.55}
}


/* ---------- 尚未開放報名：通知區塊 ---------- */
.notify-box{
  display:grid;gap:clamp(16px,1.8vw,24px);
  padding:clamp(22px,2.4vw,36px);
  border-radius:var(--r-xl);
  background:linear-gradient(140deg,#0a3c63,#004f8e 70%);
  color:#fff;box-shadow:var(--sh-float);
}
@media(min-width:768px){.notify-box{grid-template-columns:auto 1fr;align-items:start}}
.notify-box__icon{
  width:clamp(52px,4vw,68px);height:clamp(52px,4vw,68px);
  border-radius:18px;display:grid;place-items:center;
  background:rgba(248,229,74,.18);color:var(--c-secondary);
}
.notify-box__icon .ms{font-size:clamp(28px,2.4vw,36px)}
.notify-box h2{font-size:clamp(20px,1.7vw,26px);line-height:1.35;font-weight:800}
.notify-box p{margin-top:10px;color:rgba(255,255,255,.86)}
.notify-box p strong{color:var(--c-secondary)}
.notify-box__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.notify-box__hint{margin-top:12px;font-size:14px;line-height:22px;color:rgba(255,255,255,.62)}
.notify-box__hint strong{color:var(--c-secondary)}

/* 報名頁的倒計時：未開放時用中性色，不誤導 */
body[data-signup-state="before"] .countdown--wide .countdown__label{color:#8a6100;
  background:rgba(255,243,205,.9)}


/* ---------- 手機：場景文字強制收邊（覆蓋所有來源） ---------- */
@media(max-width:767px){
  .scene,
  .scene *{
    max-width:100% !important;
    box-sizing:border-box;
  }
  .scene{padding-left:18px !important;padding-right:18px !important}
  .scene__inner{width:100% !important;padding:0 !important}
  .scene__title,
  .scene__h2,
  .scene__lead,
  .scene__note,
  .scene__eyebrow{
    display:block;
    width:100% !important;
    max-width:100% !important;
    word-break:break-word;
    overflow-wrap:anywhere;
    white-space:normal;
  }
  .scene__title{font-size:clamp(24px,7vw,32px) !important;line-height:1.24}
  .scene__lead{font-size:14px !important;line-height:1.7}
  .scene__cta{width:100%}
  .scene__cta .btn{width:100%}
  .scene .pill{white-space:normal;text-align:left;font-size:13px}

  /* logo：手機放大 */
  .brand__logo{height:46px !important}
  .brand img{height:46px !important}
  .hd{min-height:70px !important;padding-top:10px !important;padding-bottom:10px !important}
  body{padding-top:70px !important}
  .hd__tel{font-size:14px !important}
  .hd__tel .ms{font-size:20px !important}
}


/* ==========================================================================
   Header / sticky 選單：最終對齊（放最後，蓋掉前面所有衝突值）
   實測 header 高度：手機 70px、桌機 100px
   ========================================================================== */
.site-header .hd{
  min-height:0 !important;
  height:auto !important;
  padding-top:14px !important;
  padding-bottom:14px !important;
}
@media(min-width:768px){
  .site-header .hd{padding-top:18px !important;padding-bottom:18px !important}
}
body{padding-top:0 !important}

/* 選單緊貼 header，不留縫 */
.subnav{
  margin-top:0 !important;
  border-top:1px solid var(--c-hairline);
  border-bottom:1px solid var(--c-hairline);
}
.subnav__inner{padding-top:0 !important;padding-bottom:0 !important;height:56px}
@media(max-width:767px){.subnav__inner{height:52px}}

/* header 是 fixed，用 JS 量測後寫入 --header-h，選單與內文精準對齊（不加緩衝，避免縫） */
.subnav{top:var(--header-h, 100px) !important}
body{padding-top:var(--header-h, 100px) !important}
@media(max-width:767px){
  body{padding-top:var(--header-h, 70px) !important;padding-bottom:64px !important}
}


/* ---------- 選單與下方內容：移除多餘間距，避免吸附時露白 ---------- */
#sec-about.sec{padding-top:clamp(24px,2.4vw,40px) !important}
.subnav + .sec{padding-top:clamp(24px,2.4vw,40px) !important}
.sec > .wrap{overflow:visible}

/* 錨點跳轉要扣掉 header + 選單高度 */
section[id]{scroll-margin-top:calc(var(--header-h, 100px) + 64px)}


/* ---------- 重要日期時間軸：最終樣式（覆蓋 demo.css 的 .tl 卡片） ---------- */
.tl-line{position:relative;margin-top:clamp(22px,2.4vw,36px)}
.tl-line__item{
  position:relative !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:5px !important;
  padding:0 0 26px 32px !important;
  border:0 !important;
  border-left:2px solid var(--c-surface-high) !important;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
  margin:0 0 0 7px !important;
  min-height:0 !important;
}
.tl-line__item::before{
  content:"" !important;
  position:absolute !important;
  left:-8px !important;top:5px !important;
  width:14px !important;height:14px !important;
  border-radius:50% !important;
  background:#fff !important;
  border:3px solid var(--c-surface-high) !important;
  box-shadow:none !important;
}
.tl-line__item::after{content:none !important}
.tl-line__item.is-done::before{
  border-color:var(--c-primary) !important;
  background:var(--c-primary) !important;
}
.tl-line__item:last-child{border-left-color:transparent !important;padding-bottom:0 !important}
.tl-line__when{
  font-size:clamp(18px,1.6vw,22px) !important;
  font-weight:800 !important;
  color:var(--c-primary) !important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
  line-height:1.3 !important;
}
.tl-line__when small{
  display:inline-block;
  font-size:13px !important;font-weight:700 !important;
  color:var(--c-muted) !important;
  margin-left:10px;
  letter-spacing:0;
}
.tl-line__what{
  font-size:clamp(16px,1.25vw,19px) !important;
  font-weight:800 !important;
  color:var(--c-ink) !important;
  line-height:1.4 !important;
}
.tl-line__desc{
  font-size:15px !important;line-height:24px !important;
  color:var(--c-muted) !important;
  max-width:var(--w-prose);
}
@media(min-width:768px){
  .tl-line__item{
    grid-template-columns:190px 1fr !important;
    column-gap:28px !important;
    align-items:baseline;
  }
}


/* ---------- 時間軸間距收緊 ---------- */
.tl-line__item{
  padding-bottom:20px !important;
  row-gap:2px !important;
}
.tl-line__when{line-height:1.25 !important}
.tl-line__when small{
  display:block !important;
  margin-left:0 !important;
  margin-top:2px !important;
  font-size:12px !important;
}
@media(min-width:768px){
  .tl-line__item{
    grid-template-columns:150px 1fr !important;
    column-gap:20px !important;
    row-gap:2px !important;
    padding-bottom:22px !important;
  }
  .tl-line__when{grid-column:1 !important;grid-row:1 !important}
  .tl-line__when small{display:block !important;margin-left:0 !important}
  .tl-line__what{grid-column:2 !important;grid-row:1 !important}
  .tl-line__desc{grid-column:2 !important;grid-row:2 !important;margin-top:2px}
}


/* ---------- 深色場景文字：提高對比，不再發灰 ---------- */
/* 背景有照片 + 遮罩，白字要夠亮才讀得清 */
.scene__eyebrow{color:rgba(255,255,255,.92) !important;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.scene__lead{color:rgba(255,255,255,.95) !important;text-shadow:0 1px 10px rgba(0,0,0,.42)}
.scene__note{color:rgba(255,255,255,.86) !important;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.scene__title,.scene__h2{text-shadow:0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.35)}

.value-card p{color:rgba(255,255,255,.92) !important}
.value-card h3{color:#fff}
.value-card__no{color:var(--c-secondary);text-shadow:0 1px 8px rgba(0,0,0,.4)}
.subject p{color:rgba(255,255,255,.9) !important}
.subject h3{color:#fff}
.subject__tag{color:#d4f2ff !important;background:rgba(187,233,255,.24) !important}
.stat-big span{color:rgba(255,255,255,.86) !important}
.stat-big strong{text-shadow:0 2px 12px rgba(0,0,0,.4)}

/* 卡片底色略加深，讓白字更突出 */
.value-card{background:rgba(12,28,42,.42) !important;border-color:rgba(255,255,255,.22) !important}
.value-card:hover{background:rgba(12,28,42,.55) !important;border-color:rgba(255,255,255,.34) !important}




/* ---------- 歷屆榜單：寬鬆排版 ---------- */
.honors{display:grid;gap:14px;margin-top:clamp(24px,2.6vw,36px)}

.honor-year{
  background:#fff;border:1px solid var(--c-hairline);border-radius:var(--r-lg);
  box-shadow:var(--sh-card);overflow:hidden;
}
.honor-year__summary{
  display:flex;align-items:center;gap:12px;
  padding:clamp(16px,1.5vw,20px) clamp(18px,1.8vw,24px);
  cursor:pointer;list-style:none;
  transition:background .2s ease;
}
.honor-year__summary::-webkit-details-marker{display:none}
.honor-year__summary:hover{background:var(--c-surface-low)}
.honor-year__id{display:flex;align-items:baseline;gap:10px}
.honor-year__session{font-size:clamp(17px,1.4vw,20px);font-weight:800;color:var(--c-ink)}
.honor-year__year{
  font-size:14px;font-weight:700;color:var(--c-muted);
  background:var(--c-surface-low);border-radius:999px;padding:2px 10px;
}
.honor-year__count{margin-left:auto;font-size:14px;font-weight:600;color:var(--c-muted)}
.honor-year__chev{color:var(--c-primary);transition:transform .25s ease}
.honor-year[open] .honor-year__chev{transform:rotate(180deg)}

.honor-year__body{
  display:grid;gap:clamp(16px,2vw,28px);
  padding:0 clamp(18px,1.8vw,24px) clamp(20px,2vw,28px);
  border-top:1px solid var(--c-hairline);
  padding-top:clamp(18px,1.8vw,24px);
}
@media(min-width:900px){.honor-year__body{grid-template-columns:repeat(3,1fr)}}

.honor-grade{min-width:0}
.honor-grade__title{
  font-size:15px;line-height:22px;font-weight:800;color:var(--c-primary);
  letter-spacing:.04em;margin-bottom:12px;
}
.honor-grade.is-pending .honor-grade__title{color:var(--c-muted)}
.honor-grade__empty{
  display:flex;align-items:center;gap:8px;
  padding:16px;border-radius:var(--r-md);
  background:var(--c-surface-low);border:1px dashed var(--c-surface-high);
  font-size:14px;color:var(--c-muted);font-weight:600;
}

.honor-table-wrap{overflow-x:auto}
.honor-table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:15px;font-variant-numeric:tabular-nums;
}
.honor-table th{
  text-align:left;padding:8px 10px;font-size:13px;font-weight:700;
  color:var(--c-muted);background:var(--c-surface-low);
  border-bottom:1px solid var(--c-hairline);white-space:nowrap;
}
.honor-table th:first-child{border-radius:8px 0 0 0}
.honor-table th:last-child{border-radius:0 8px 0 0}
.honor-table td{padding:12px 10px;border-bottom:1px solid var(--c-surface-low)}
.honor-table tr:last-child td{border-bottom:0}
.honor-name{font-weight:700;white-space:nowrap}
.honor-total{font-weight:800;color:var(--c-primary);white-space:nowrap}
.honor-rank{
  display:inline-grid;place-items:center;
  width:24px;height:24px;border-radius:50%;
  font-size:13px;font-weight:800;color:#fff;
}
.honor-rank--gold{background:#c9a227}
.honor-rank--silver{background:#8d959c}
.honor-rank--bronze{background:#a9713f}

/* 完整榜單縮圖 */
.honor-thumbs{
  display:grid;gap:16px;grid-template-columns:repeat(2,1fr);
  margin-top:clamp(20px,2vw,28px);
}
@media(min-width:768px){.honor-thumbs{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){.honor-thumbs{grid-template-columns:repeat(6,1fr)}}
.honor-thumb{
  display:block;background:#fff;border:1px solid var(--c-hairline);
  border-radius:var(--r-md);overflow:hidden;box-shadow:var(--sh-card);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.honor-thumb:hover{transform:translateY(-3px);border-color:var(--c-primary);box-shadow:var(--sh-lift)}
.honor-thumb img{width:100%;height:auto;display:block;border-bottom:1px solid var(--c-hairline)}
.honor-thumb span{
  display:flex;flex-direction:column;gap:2px;
  padding:10px 12px;font-size:13px;font-weight:700;color:var(--c-ink);
}
.honor-thumb em{font-style:normal;font-size:12px;font-weight:600;color:var(--c-muted)}

/* 手機：榜單表格縮小字級 */
@media(max-width:767px){
  .honor-table{font-size:14px}
  .honor-table th,.honor-table td{padding:9px 7px}
  .honor-year__count{display:none}
}


/* ---------- 歷屆榜單：與 hero 同寬（滿版容器） ---------- */

/* 桌機：三張表並排，撐滿卡片 */
.honor-year__body{
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:clamp(18px,2vw,32px) !important;
  max-width:100%;
}
@media(max-width:1023px){
  .honor-year__body{grid-template-columns:1fr !important}
}
.honor-grade{max-width:100%}
.honor-table{width:100%;table-layout:auto}
.honor-table th,.honor-table td{padding-left:8px;padding-right:8px}
.honor-table th:first-child,.honor-table td:first-child{width:52px}
.honor-table th:nth-child(2),.honor-table td:nth-child(2){width:80px}
.honor-table th:nth-child(3),.honor-table td:nth-child(3){width:auto}
.honor-grade__title{
  display:flex;align-items:center;gap:10px;
  font-size:15px;color:var(--c-primary);
  padding-bottom:8px;margin-bottom:10px;
  border-bottom:1px solid var(--c-hairline);
}

/* 手機：表格不橫向溢出 */
@media(max-width:767px){
  .honor-table{font-size:13.5px}
  .honor-table th,.honor-table td{padding:8px 5px}
  .honor-table th:first-child,.honor-table td:first-child{width:44px}
  .honor-table th:nth-child(2),.honor-table td:nth-child(2){width:58px}
  .honor-rank{width:20px;height:20px;font-size:12px}
}


/* ---------- 榜單頁引言：控制行寬，避免擠成兩行 ---------- */
.honor-intro{
  max-width:46em;
  line-height:1.85;
  letter-spacing:.01em;
}
@media(max-width:767px){
  .honor-intro{max-width:100%;line-height:1.8;font-size:16px}
}


/* ---------- 時間軸：日期不換行、說明緊貼標題 ---------- */
.tl-line__when{
  white-space:nowrap !important;
  display:block;
}
.tl-line__when small{
  display:block !important;
  margin-top:3px !important;
  white-space:nowrap;
}
@media(min-width:768px){
  .tl-line__item{
    grid-template-columns:clamp(200px,17vw,240px) 1fr !important;
    column-gap:24px !important;
    row-gap:6px !important;
    align-items:start !important;
    padding-bottom:22px !important;
  }
  .tl-line__when{grid-column:1 !important;grid-row:1 !important}
  .tl-line__what{grid-column:2 !important;grid-row:1 !important;align-self:start}
  .tl-line__desc{grid-column:2 !important;grid-row:2 !important;margin-top:2px !important}
}

/* ---------- 分區列表：名稱與電話之間留空 ---------- */
.zone-row__head{
  display:flex;
  align-items:baseline;
  gap:14px;
  flex-wrap:wrap;
}
.zone-row__list strong{min-width:auto}
.zone-row__tel{
  margin-left:2px;
  padding-left:2px;
}
@media(max-width:767px){
  .zone-row__head{gap:10px}
}
