:root{
  --bg: #fff7ed;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(148,163,184,.35);

  --orange: #f97316;
  --orange2:#fb923c;

  --blue:#3b82f6;
  --sky:#38bdf8;
  --violet:#8b5cf6;
  --fuchsia:#d946ef;
  --rose:#fb7185;
  --emerald:#10b981;
  --lime:#84cc16;
  --amber:#f59e0b;

  --cardShadow: 0 14px 34px rgba(15,23,42,.10);
  --cardShadowHover: 0 26px 60px rgba(15,23,42,.16);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:"Noto Sans TC", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  background: radial-gradient(1200px 520px at 20% -10%, rgba(251,146,60,.22), transparent 60%),
              radial-gradient(900px 420px at 88% 10%, rgba(59,130,246,.16), transparent 55%),
              radial-gradient(1200px 600px at 70% 110%, rgba(139,92,246,.12), transparent 60%),
              var(--bg);
  overflow-x:hidden;
}

/* Full-bleed sections: content centered, background fills screen */
.wrap{
  width:min(1320px, calc(100% - 56px));
  margin:0 auto;
}
@media (max-width:640px){
  .wrap{ width:calc(100% - 28px); }
}

.sectionInner{
  position:relative;
  z-index:1;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,247,237,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(148,163,184,.25);
}
.topbar__inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  user-select:none;
}
.brand__mark{
  width:48px;height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.02em;
  color:#fff;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  box-shadow: 0 10px 22px rgba(249,115,22,.25);
}
.brand__text{ line-height:1.1; }
.brand__name{ font-weight:900; font-size:16px; }
.brand__sub{ font-weight:700; font-size:13px; color:var(--muted); margin-top:4px; }

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

.btn{
  border:1px solid rgba(148,163,184,.35);
  background:#fff;
  color:var(--ink);
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,23,42,.10); }
.btn--primary{
  border-color: rgba(249,115,22,.45);
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color:#fff;
  box-shadow: 0 18px 42px rgba(249,115,22,.24);
}
.btn--ghost{ background: rgba(255,255,255,.72); }
.btn i{ opacity:.95; }

/* Sections = one full screen on desktop */
section.full{
  min-height: 100vh;
  display:flex;
  align-items:center;
  position:relative;
  padding: 40px 0;
}
@media (max-width:900px){
  section.full{ min-height: unset; padding: 46px 0; }
}

/* Background decorations */
.decor{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
}
.dots{
  position:absolute;
  inset:-40px;
  background-image: radial-gradient(rgba(148,163,184,.18) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  opacity:.55;
  transform: translateZ(0);
  mask-image: radial-gradient(circle at 50% 40%, black 0 55%, transparent 70%);
}
.blob{
  position:absolute;
  width:560px;height:560px;
  border-radius: 999px;
  filter: blur(2px);
  opacity:.55;
  transform: translateZ(0);
  animation: floaty 7.5s ease-in-out infinite;
}
.blob--a{ left:-220px; top:-120px; background: radial-gradient(circle, rgba(59,130,246,.24), transparent 62%); }
.blob--b{ right:-260px; top:60px; background: radial-gradient(circle, rgba(249,115,22,.22), transparent 62%); animation-delay: .8s; }
.blob--c{ right:12%; bottom:-260px; background: radial-gradient(circle, rgba(217,70,239,.16), transparent 62%); animation-delay: 1.2s; }
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(12px); }
}

/* Student / Parent section dot masks (replacing inline styles) */
.dots--student{
  opacity:.40;
  mask-image: radial-gradient(circle at 45% 45%, black 0 60%, transparent 78%);
}
.blob--student-a{ background: radial-gradient(circle, rgba(56,189,248,.18), transparent 62%); }
.blob--student-b{ background: radial-gradient(circle, rgba(59,130,246,.18), transparent 62%); }

.dots--parent{
  opacity:.38;
  mask-image: radial-gradient(circle at 55% 45%, black 0 60%, transparent 78%);
}
.blob--parent-a{ background: radial-gradient(circle, rgba(251,113,133,.18), transparent 62%); }
.blob--parent-b{ background: radial-gradient(circle, rgba(217,70,239,.15), transparent 62%); }

/* HERO */
.hero{ z-index:1; text-align:center; }
.hero__pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(249,115,22,.35);
  background: rgba(255,255,255,.75);
  font-weight:900;
  color:var(--ink);
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
}
.hero__pill i{ color: var(--orange); }

.hero__title{
  margin:18px auto 0;
  font-size: clamp(34px, 5.2vw, 74px);
  line-height:1.05;
  font-weight: 1000;
  letter-spacing: -0.02em;
}
.hero__title .accent{
  color: var(--orange);
  display:inline-block;
  position:relative;
}
.hero__title .accent::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-10px;
  height:10px;
  border-radius:999px;
  background: rgba(16,185,129,.25);
  transform: scaleX(0);
  transform-origin:left;
  animation: underline 900ms ease 420ms forwards;
}
@keyframes underline{ to{ transform: scaleX(1); } }

.hero__lines{
  margin:26px auto 0;
  width:min(780px, 100%);
  color: var(--muted);
  font-weight:800;
  font-size:18px;
  line-height:1.85;
}
.hero__lines p{ margin:0; }

.hero__cta{
  margin-top:26px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

/* entrance animation */
.fadeUp{ opacity:0; transform: translateY(14px); animation: fadeUp .7s ease forwards; }
.d1{ animation-delay:.05s; }
.d2{ animation-delay:.18s; }
.d3{ animation-delay:.32s; }
.d4{ animation-delay:.48s; }
@keyframes fadeUp{ to{ opacity:1; transform: translateY(0); } }

/* Zone header */
.zoneHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.zoneTitle{
  margin:0;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight:1000;
  letter-spacing:-0.02em;
}
.zoneDesc{
  margin:10px 0 0;
  color:var(--muted);
  font-weight:800;
  font-size:16px;
  line-height:1.75;
}
.zoneDesc p{ margin:0; }

.zoneTag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius:999px;
  padding:10px 14px;
  background: rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.28);
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
  font-weight:1000;
  white-space:nowrap;
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--zoneColor);
  box-shadow: 0 0 0 5px rgba(255,255,255,.65);
}

/* Rail */
.railWrap{ position:relative; margin-top:18px; }
.rail{
  display:flex;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:auto;
  -webkit-overflow-scrolling:touch;
  padding: 10px 6px 26px;
  cursor: grab;
  user-select:none;
}
.rail:active{ cursor: grabbing; }
.rail::-webkit-scrollbar{ height:10px; }
.rail::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.45);
  border-radius:999px;
}
.rail::-webkit-scrollbar-track{
  background: rgba(255,255,255,.65);
  border-radius:999px;
  border:1px solid rgba(148,163,184,.20);
}

/* Cards */
.card{
  min-width: 360px;
  max-width: 360px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow: var(--cardShadow);
  overflow:hidden;
  position:relative;
  text-decoration:none;
  color:inherit;
  transition: transform .18s ease, box-shadow .18s ease;
  flex: 0 0 auto;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--cardShadowHover); }
.card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:12px;
  background: var(--accent);
}

.cardInner{ padding:22px; }
.meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid rgba(148,163,184,.26);
  background: rgba(255,255,255,.82);
  color: #334155;
  white-space:nowrap;
}
.pill .pdot{ width:8px;height:8px;border-radius:50%; background: var(--accent); }
.enter{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.78);
  color:#334155;
  white-space:nowrap;
}
.card:hover .enter{ color: var(--accent); }

.cTitle{
  margin-top:16px;
  font-weight:1000;
  font-size:19px;
  letter-spacing:-0.01em;
  line-height:1.35;
}
.cDesc{
  margin-top:10px;
  color:var(--muted);
  font-weight:800;
  font-size:14px;
  line-height:1.75;
}
.cDesc p{ margin:0; }

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(255,255,255,.86);
  white-space:nowrap;
}
.tag::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background: var(--tagColor);
}

/* responsive cards */
@media (max-width:640px){
  .topbar__inner{ height:68px; }
  .brand__mark{ width:44px;height:44px;border-radius:14px; }
  .card{ min-width: 84vw; max-width: 84vw; }
}

/* Booking modal */
.modal.hidden{ display:none; }
.modal{ position:fixed; inset:0; z-index:2000; }
.modal__overlay{
  position:absolute; inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:absolute; right:0; top:0;
  height:100%;
  width:min(520px, 100%);
  background: #fff;
  border-left:1px solid rgba(148,163,184,.25);
  box-shadow: 0 30px 90px rgba(15,23,42,.28);
  display:flex;
  flex-direction:column;
}
.modal__head{
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(148,163,184,.20);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: rgba(255,247,237,.75);
}
.modal__title{
  font-weight:1000;
  letter-spacing:-0.01em;
  font-size:16px;
  line-height:1.2;
}
.iconbtn{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.28);
  background:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
}
.modal__body{ padding:16px 18px 18px; overflow:auto; }
.modal__hint{
  margin:0 0 14px 0;
  color:#334155;
  font-weight:900;
  line-height:1.7;
}
.modal__hint p{ margin:0; }

.linkList{ display:flex; flex-direction:column; gap:10px; }
.linkItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.26);
  background:#fff;
  text-decoration:none;
  color:var(--ink);
  font-weight:1000;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.linkItem:hover{ transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,.10); }
.linkItem small{
  display:block;
  font-weight:900;
  color:#64748b;
  margin-top:4px;
  line-height:1.25;
}
.modal__foot{
  padding:16px 18px 18px;
  border-top:1px solid rgba(148,163,184,.20);
  background: rgba(255,255,255,.9);
}
.wfull{ width:100%; justify-content:center; }

/* Keep sections visually “one page” on desktop */
.zoneGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items:start;
}
.muted{ color:var(--muted); }

/* Footer */
.siteFooter{
  padding: 14px 0;
  border-top: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
}
.siteFooter__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.siteFooter__left{
  font-size:12px;
  font-weight:600;
  color:#64748b;
}
.siteFooter__right{
  font-size:12px;
  font-weight:700;
  color:#475569;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  opacity:.95;
}
.siteFooter__right:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset: 3px;
}

/* =========================
   Mobile polish
   ========================= */
@media (max-width: 768px){
  .wrap{
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero{
    min-height: 92svh;
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .hero__title{
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  .hero__title span{ display: block; }

  .hero__lines{
    font-size: 15px;
    line-height: 1.65;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* ✅ 你原本寫 hero__actions，但 HTML 是 hero__cta；這裡做對應修正 */
  .hero__cta{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(520px, 100%);
    margin-left:auto;
    margin-right:auto;
  }

  .btn{
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .zoneTitle{
    font-size: 22px;
    line-height: 1.2;
  }
  .zoneDesc{
    font-size: 14px;
    line-height: 1.7;
  }

  .railWrap{ margin-top: 14px; }
  .rail{
    gap: 12px;
    padding: 8px 2px 14px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    touch-action: pan-x;
  }

  .card{
    scroll-snap-align: start;
    width: min(86vw, 380px);
    flex: 0 0 auto;
    border-radius: 22px;
  }

  .cTitle{ font-size: 18px; line-height: 1.25; }
  .cDesc{ font-size: 14px; line-height: 1.7; }

  .pill, .enter, .tag{
    font-size: 12px;
    padding: 6px 10px;
  }

  .siteFooter{
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }
  .siteFooter__left,
  .siteFooter__right{
    font-size: 12px;
  }
}

@media (max-width: 390px){
  .hero__title{ font-size: 30px; }
  .card{ width: 88vw; }
}
/* =========================================================
   Mobile / Tablet Hardening Patch
   - 不改文字、不改 SEO，只修 RWD 版面與爆版問題
   - 請貼在 portal.css 最底部
========================================================= */

/* ---------- 1) Topbar：手機不爆版 ---------- */
@media (max-width: 900px){
  .topbar__inner{
    height:auto;
    padding: 10px 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .brand{
    flex: 1 1 auto;
    min-width: 220px;
  }

  .brand__mark{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand__name{ font-size: 15px; }
  .brand__sub{ font-size: 12px; }

  /* 你截圖第三張：上方兩顆大按鈕會爆版
     手機先收起兩個 ghost 錨點，只保留「預約試聽」 */
  .topbar__actions{
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }
  .topbar__actions a.btn--ghost{
    display:none;
  }
  .topbar__actions .btn--primary{
    width: 100%;
    justify-content: center;
    border-radius: 16px;
    padding: 14px 16px;
  }
}

/* ---------- 2) Hero / Section：維持滿版一頁式視覺 ---------- */
@media (max-width: 900px){
  section.full{
    min-height: 92svh;     /* 手機也有滿版感 */
    padding: 32px 0;
  }

  .hero{
    text-align: left;      /* 手機閱讀更穩 */
  }

  .hero__pill{
    justify-content: center;
    width: fit-content;
  }

  .hero__cta{
    flex-direction: column;
    align-items: stretch;
    width: min(520px, 100%);
    margin-left: 0;
    margin-right: 0;
  }

  .hero__cta .btn{
    width: 100%;
    justify-content: center;
    border-radius: 16px;
    padding: 14px 16px;
  }
}

/* ---------- 3) Zone Header：大標 + 右側膠囊改直向堆疊 ---------- */
@media (max-width: 900px){
  .zoneHead{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .zoneGrid{
    width: 100%;
  }

  /* 你截圖 1/2：右側 pill 太長，手機需要可換行 */
  .zoneTag{
    width: 100%;
    justify-content: center;
    white-space: normal;       /* ✅ 允許換行 */
    flex-wrap: wrap;           /* ✅ 允許換行 */
    text-align: center;
    line-height: 1.3;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .zoneTitle{
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .zoneDesc{
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ---------- 4) Rail + Card：卡片 meta 不擠壓、可點擊 ---------- */
@media (max-width: 900px){
  .rail{
    gap: 12px;
    padding: 8px 2px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    touch-action: pan-x;
  }

  .card{
    width: min(88vw, 420px);
    max-width: none;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  .cardInner{
    padding: 18px;
  }

  /* 你截圖 1/2：左上 pill + 右上「進入工具」在手機會擠爆
     改成可以換行、右側按鈕往下掉 */
  .meta{
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .pill{
    white-space: normal;
    max-width: 100%;
  }

  .enter{
    margin-left: auto;
    white-space: nowrap;
  }

  .cTitle{
    font-size: 18px;
    line-height: 1.25;
  }

  .cDesc{
    font-size: 14px;
    line-height: 1.7;
  }

  .tags{
    gap: 8px;
  }

  .tag{
    white-space: nowrap;
    border-radius: 999px;
  }
}

/* ---------- 5) 你的「學生學習區 / 家長工具區」上方分頁（浮動列）RWD override ----------
   你截圖第三張很像是 /assets/platform/floatingbar.css 的元件。
   我不知道你該檔案的 class 命名，所以用多組 selector 盡量覆蓋。
   這段不會影響桌機，只救手機爆版。 */
@media (max-width: 900px){
  /* 常見命名猜測：floatingbar / floating-bar / floatingBar */
  .floatingbar, .floating-bar, .floatingBar,
  .floatingbar * , .floating-bar * , .floatingBar *{
    box-sizing: border-box;
  }

  .floatingbar, .floating-bar, .floatingBar{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 嘗試把裡面按鈕排成「兩顆一列」或自動換行 */
  .floatingbar .tabs, .floating-bar .tabs, .floatingBar .tabs,
  .floatingbar .tabGroup, .floating-bar .tabGroup, .floatingBar .tabGroup,
  .floatingbar .btnRow, .floating-bar .btnRow, .floatingBar .btnRow{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* 常見的 tab/button 元素 */
  .floatingbar a, .floatingbar button,
  .floating-bar a, .floating-bar button,
  .floatingBar a, .floatingBar button{
    max-width: 100%;
  }

  /* 如果它是膠囊大按鈕：縮小高度與字級，允許換行 */
  .floatingbar .pill, .floating-bar .pill, .floatingBar .pill,
  .floatingbar .tab,  .floating-bar .tab,  .floatingBar .tab,
  .floatingbar .btn,  .floating-bar .btn,  .floatingBar .btn{
    padding: 12px 14px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    white-space: normal !important;
  }
}
/* =========================================================
   Mobile UX (App-like)
   - 手機頂部列 + 底部導覽 + 安全區 + 滿版節奏
   - 不改文字，只改布局/互動容器
========================================================= */

.is-portal{
  scroll-behavior: smooth;
}

/* 桌機維持原 topbar；手機改用 mHeader + mBottomNav */
@media (max-width: 900px){
  .topbar{ display:none; }

  /* 讓內容避開頂部列與底部導覽 */
  body.is-portal{
    padding-top: calc(64px + env(safe-area-inset-top));
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  /* section 仍保持「滿版一頁式」感，但允許內容自然長 */
  section.full{
    min-height: calc(100svh - 64px - 76px);
    padding: 22px 0;
  }

  /* Hero 手機閱讀更像 App 首屏 */
  .hero{
    text-align: left;
  }
  .hero__pill{
    margin-left: 0;
    margin-right: 0;
  }
  .hero__lines{
    margin-left: 0;
    margin-right: 0;
  }
  .hero__cta{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Zone header：直向堆疊 */
  .zoneHead{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .zoneTag{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    border-radius: 18px;
  }

  /* Rail：手機原生滑動 + snap */
  @media (max-width: 900px){
  .rail{
    scroll-snap-type: x proximity; /* ✅ 減少撞牆感 */
  }
}

  .card{
    scroll-snap-align: start;
    width: min(88vw, 420px);
    border-radius: 22px;
  }
  .meta{
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ---------- Mobile Header ---------- */
.mHeader{
  display:none;
}
@media (max-width: 900px){
  .mHeader{
    display:block;
    position: fixed;
    left:0; right:0; top:0;
    z-index: 1200;
    background: rgba(255,247,237,.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148,163,184,.22);
    padding-top: env(safe-area-inset-top);
  }

  .mHeader__inner{
    height: 64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 0 14px;
    gap: 10px;
  }

  .mBrand{
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 0;
  }
  .mBrand__mark{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    font-weight: 1000;
    color:#fff;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    box-shadow: 0 10px 22px rgba(249,115,22,.22);
    flex: 0 0 auto;
  }
  .mBrand__text{
    min-width:0;
    line-height: 1.1;
  }
  .mBrand__name{
    font-weight: 1000;
    font-size: 14px;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .mBrand__sub{
    margin-top: 3px;
    font-weight: 900;
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }

  .mHeader__actions{
    display:flex;
    align-items:center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .mIconBtn{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .mIconBtn i{ font-size: 16px; color: #0f172a; }
}

/* ---------- Mobile Menu ---------- */
.mMenu.hidden{ display:none; }
@media (max-width: 900px){
  .mMenu{
    position: fixed;
    inset: 0;
    z-index: 1400;
  }
  .mMenu__backdrop{
    position:absolute;
    inset:0;
    background: rgba(2,6,23,.45);
    backdrop-filter: blur(6px);
  }
  .mMenu__panel{
    position:absolute;
    left: 12px;
    right: 12px;
    top: calc(64px + env(safe-area-inset-top) + 10px);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(15,23,42,.18);
    padding: 10px;
  }
  .mMenu__item{
    width:100%;
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.92);
    text-decoration:none;
    color: #0f172a;
    font-weight: 1000;
    cursor:pointer;
  }
  .mMenu__item + .mMenu__item{ margin-top: 10px; }
  .mMenu__item--btn{
    justify-content: flex-start;
  }
}

/* ---------- Bottom Nav ---------- */
.mBottomNav{
  display:none;
}
@media (max-width: 900px){
  .mBottomNav{
    display:flex;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1200;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(15,23,42,.16);
    padding: 8px;
    gap: 8px;
  }

  .mNavItem{
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 10px 8px;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 6px;
    text-decoration:none;
    color:#0f172a;
    font-weight: 1000;
    cursor:pointer;
  }
  .mNavItem i{ font-size: 16px; }
  .mNavItem span{
    font-size: 12px;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }

  /* 中間主 CTA：預約 */
  .mNavItem--primary{
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color:#fff;
    border-color: rgba(249,115,22,.35);
    box-shadow: 0 18px 40px rgba(249,115,22,.22);
  }
  .mNavItem--primary i{ color:#fff; }

  /* Active state */
  .mNavItem.is-active{
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 16px 38px rgba(59,130,246,.14);
  }
}
/* =========================================================
   PATCH: HERO CTA 統一字體粗細/大小 + Mobile Rail 改垂直堆疊
   位置：貼在 portal.css 最底部（並刪掉舊的重複版本）
========================================================= */

/* -----------------------------
   HERO CTA：三顆按鈕文字一致（粗細/大小/高度）
------------------------------ */
.hero__cta{
  gap: 12px;
  align-items: stretch;
}

.hero__cta .btn{
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont;
  font-size: 18px;        /* 三顆一致 */
  font-weight: 600;       /* 三顆一致 */
  line-height: 1;

  height: 56px;           /* 直接鎖高度，視覺最一致 */
  padding: 0 22px;
  min-width: 240px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px;
}

/* icon 不必同大小，只要清楚即可：不強制 font-size */
/* 若你想讓 icon 不要太擠，可以留這行 */
.hero__cta .btn i{ line-height: 1; }

/* 手機：維持文字一致，只調整寬度與尺寸 */
@media (max-width: 900px){
  .hero__cta .btn{
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 17px;
  }
}

/* -----------------------------
   Mobile：Rail 改 IG 式垂直堆疊（不橫滑）
------------------------------ */
@media (max-width: 900px){
  .railWrap{ margin-top: 14px; }

  .rail{
    overflow: visible;
    scroll-snap-type: none;
    touch-action: pan-y;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 6px 0 6px;

    cursor: default;
    user-select: auto;
  }

  .rail::-webkit-scrollbar{ display: none; }

  .card{
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    border-radius: 22px;
  }
}
/* =========================================
   Mobile Menu：按鈕字體大小/粗細統一
========================================= */

#mMenu a,
#mMenu button{
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont;
  font-size: 18px;        /* 🔑 全部同大小 */
  font-weight: 600;       /* 🔑 全部同粗細 */
  line-height: 1.1;

  display: flex;
  align-items: center;
  gap: 12px;
}

/* icon 不干擾文字大小，只對齊 */
#mMenu i{
  font-size: 18px;        /* 可略小或相同，都 OK */
  line-height: 1;
}
