
/* ==========================================================================
   Brand Tokens — 宏儒升大學 全站色彩變數
   單一來源：對應 docs/brand-guidelines.md §4
   套用方式：貼到 WordPress「外觀 → 自訂 → 額外的 CSS」最上方，
            其他 CSS 片段一律從這組變數取色，不要散落 hex 值
   ========================================================================== */

:root {
  /* ── 主色 / 輔助色（§4.1–4.2） ── */
  --brand-primary: #FF6600;          /* 宏儒橘 */
  --brand-primary-dark: #E8670A;     /* 深橘 hover、漸層 */

  /* ── 中性色（§4.3） ── */
  --brand-text: #333333;
  --brand-text-muted: #666666;
  --brand-bg: #FFFFFF;
  --brand-bg-muted: #F5F5F5;
  --brand-border: #E0E0E0;

  /* ── 功能色（§4.4） ── */
  --brand-success: #2E7D32;
  --brand-error: #C62828;

  /* ── 班系識別色（§4.5） ── */
  --class-retake: #D7E8BC;           /* 高四重考 — Lime Cream（淺） */
  --class-summer-review: #A9C0CB;    /* 高三外地暑期 — Déjà Vu Blue（淺） */
  --class-final-sprint: #E2552D;     /* 學測分科衝刺 — Orangeade（與主色同色系） */
  --class-overall-review: #E3BD33;   /* 學測總複習 — Misted Marigold */
  --class-personal-app: #C67FAE;     /* 個人申請 — Crocus */
  --class-medical: #98DDDE;          /* 醫學專班 — Limpet Shell（淺） */

  /* ── 文章配色（§4.6，依序輪用） ── */
  --article-color-1: #66CCCC;        /* 蒂芬妮綠 */
  --article-color-2: #99D8B9;        /* 薄荷綠 */
  --article-color-3: #FF9966;        /* 蜜桃橘（同主色色相，不可與 --brand-primary 大面積並列） */
  --article-color-4: #FE7A7B;        /* 珊瑚紅 */
  --article-color-5: #FFCC66;        /* 暖黃 */

  /* ── 設計協作延伸色（§4.7，限非官網素材） ── */
  --extend-deep-blue: #1A2E4A;
  --extend-warm-gold: #F5A623;
  --extend-coral: #E8553E;

  /* ── 共用 token ── */
  --brand-radius: 12px;          /* 內容卡 */
  --brand-radius-lg: 16px;       /* 大型 feature 卡（2026-08-06 新增） */
  --brand-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   班系頁面套色（依 body class 切換 --class-color）
   使用範例：body 加上 class page-class-medical 即啟用醫學專班色
   ========================================================================== */

.page-class-retake          { --class-color: var(--class-retake); }
.page-class-summer-review   { --class-color: var(--class-summer-review); }
.page-class-final-sprint    { --class-color: var(--class-final-sprint); }
.page-class-overall-review  { --class-color: var(--class-overall-review); }
.page-class-personal-app    { --class-color: var(--class-personal-app); }
.page-class-medical         { --class-color: var(--class-medical); }

/* ==========================================================================
   文章配色自動輪用（依 :nth-child 套色）
   使用範例：article 元件加上 class article-card 後直接使用 var(--c)
   ========================================================================== */

.article-card { --c: var(--article-color-1); }
.article-card:nth-child(5n+1) { --c: var(--article-color-1); }
.article-card:nth-child(5n+2) { --c: var(--article-color-2); }
.article-card:nth-child(5n+3) { --c: var(--article-color-3); }
.article-card:nth-child(5n+4) { --c: var(--article-color-4); }
.article-card:nth-child(5n)   { --c: var(--article-color-5); }

/* ==========================================================================
   OnePress Theme Overrides — 宏儒升大學 OnePress 主題覆寫集中檔
   套用方式：貼到 WordPress「外觀 → 自訂 → 額外的 CSS」brand-tokens.css 之後
   定位：所有針對 OnePress 主題（home 區塊、選單、navigation 等）的客製覆寫集中於本檔。
        本檔僅處理 OnePress 結構覆寫，色票一律從 brand-tokens.css 取 var(--brand-*)
   ========================================================================== */

/* ==========================================================================
   §1 首頁 #about 區塊：卡片標題與段落兩端對齊
   原因：h3 與 p 預設左對齊，右邊緣不齊圖片右邊，視覺上鬆散
   ========================================================================== */

.section-about .col-lg-6 > h3,
.section-about .col-lg-6 > p {
  text-align: left;
}

.section-about .col-lg-6 > h3 {
  text-wrap: wrap;
}

@media screen and (max-width: 767px) {
  .section-about .col-lg-6 > h3 {
    text-align: center !important;
  }
}

/* ==========================================================================
   §2 Chaty 浮動視窗：手機版隱藏自動展開的 CTA 提示框
   原因：Chaty plugin 設定 trigger_on_time=yes / time=0，載入立刻展開
        「立即諮詢」白色提示框，在手機窩螢幕會壓住頁面內容
   做法：只隱藏 .chaty-cta-main（提示框本體），保留圓形圖示與點擊功能
   範圍：手機版 (max-width: 767px)；桌機照常顯示
   ========================================================================== */

@media screen and (max-width: 767px) {
  .chaty-cta-main {
    display: none !important;
  }
}

/* ==========================================================================
   §3 #features 宏儒特色區塊：手機版維持置中對齊
   原因：chinese-rwd-readability 在 max-width 480px 對 .feature-item-content 設了
        text-align: left（為了一般中文閱讀），導致師資卡片描述
        被拉到左對齊，但圖示與大標題仍置中，視覺不一致
   注意：feature-item 結構是 .feature-media（圖示）→ h3（大標題）→ .feature-item-content > h3（描述）
        兩層 h3，內層被 .feature-item-content 包住，所以受 chinese-rwd 影響
   做法：使用 !important 強制把 feature-item 內所有文字回到置中
   ========================================================================== */

@media screen and (max-width: 480px) {
  .section-features .feature-item,
  .section-features .feature-item h3,
  .section-features .feature-item-content,
  .section-features .feature-item-content h3,
  .section-features .feature-item-content p {
    text-align: center !important;
  }
}

/* ==========================================================================
   §4 全站手機版區塊間距收斂
   原因：OnePress 預設 .section-padding=70px / -lg=90px / -larger=140px 沿用至手機，
        在小螢幕造成視覺斷裂（特別是 #Testimonials → #videolightbox 高達 230px gap）
   做法：手機版統一上下 padding 為 44px，所有區塊間距一致 = 88px
   範圍：max-width 767px；桌機不動，保留原本視覺層次
   注意：只覆寫 padding-top/padding-bottom，左右沿用原本的 0
   ========================================================================== */

@media screen and (max-width: 767px) {
  .section-padding,
  .section-padding-lg,
  .section-padding-larger {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
}

/* ==========================================================================
   §5 #news 最新消息：手機版卡片內文字置中對齊
   原因：chinese-rwd-readability 在 max-width 480px 把 .section-news 設了 left，
        在窩螢幕（單欄）卡片視覺需要置中才平衡（meta、標題、摘要對齊圖片中軸）
   做法：覆寫 .list-article-content 全部文字元件為置中
   範圍：max-width 767px（含 iPad 直立單欄狀態）
   ========================================================================== */

@media screen and (max-width: 767px) {
  .section-news .list-article,
  .section-news .list-article-content,
  .section-news .list-article-meta,
  .section-news .entry-title,
  .section-news .entry-title a,
  .section-news .entry-excerpt,
  .section-news .entry-excerpt p {
    text-align: center !important;
  }
}

/* ==========================================================================
   §6 /news/ 文章列表頁 typography RWD
   範圍：body.blog 與 body.archive（含分類、標籤封存頁）
   原因：OnePress 主題預設沒有針對裝置調整 .entry-title / .list-article-meta /
        .entry-excerpt 的字級，造成視覺層次模糊；chinese-rwd 已處理 body p
        但未涵蓋這些列表卡片元件
   設計：標題層級三段式（24/22/20px），meta 弱化（14/13px），摘要中間層（16/15px）
        標題 hover 改宏儒橘提供互動回饋；meta 分類連結用深橘 brand-primary-dark
   ========================================================================== */

.blog .list-article .entry-title,
.archive .list-article .entry-title {
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.blog .list-article .entry-title a,
.archive .list-article .entry-title a {
  color: var(--brand-text, #333333);
  transition: color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.blog .list-article .entry-title a:hover,
.archive .list-article .entry-title a:hover {
  color: var(--brand-primary, #FF6600);
}

.blog .list-article .list-article-meta,
.archive .list-article .list-article-meta {
  font-size: 0.875rem;
  color: var(--brand-text-muted, #777777);
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}

.blog .list-article .list-article-meta a,
.archive .list-article .list-article-meta a {
  color: var(--brand-primary-dark, #E8670A);
}

.blog .list-article .entry-excerpt p,
.archive .list-article .entry-excerpt p {
  font-size: 1rem;
  line-height: 1.85;
  color: #555555;
  margin-bottom: 0;
}

@media screen and (max-width: 991px) {
  .blog .list-article .entry-title,
  .archive .list-article .entry-title {
    font-size: 1.375rem;
    line-height: 1.5;
  }
}

@media screen and (max-width: 767px) {
  .blog .list-article .entry-title,
  .archive .list-article .entry-title {
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 0.4em;
  }
  .blog .list-article .list-article-meta,
  .archive .list-article .list-article-meta {
    font-size: 0.8125rem;
  }
  .blog .list-article .entry-excerpt p,
  .archive .list-article .entry-excerpt p {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
}

/* ====================================

OnePress 繁體中文優化

20260419-1600 ===== OnePress Nav Premium Enhancement v2 ===== & 精選圖片比例修正-文章列表頁& 最新消息文章標題行距縮小

20260419-1230 Header動畫&美化
20260419-1230 iPad & 響應式修復 & 首頁關於我們圖片圓角

==================================== */

/* ===== 1. 全站字體與基本排版 ===== */
body,
button,
input,
select,
textarea {
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    word-break: break-word;
}

p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 1em;
}

/* ===== 2. 標題層級優化 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
    line-height: 1.45;
    letter-spacing: 0.02em;
    font-weight: 700;
    word-break: break-word;
    margin-top: 0;
}

h1 { font-size: 2.5rem; line-height: 1.3; }
h2 { font-size: 2rem; line-height: 1.35; }
h3 { font-size: 1.75rem; line-height: 1.4; }
h4 { font-size: 1.5rem; line-height: 1.45; }
h5 { font-size: 1.25rem; line-height: 1.5; }
h6 { font-size: 1.05rem; line-height: 1.5; }

/* ===== 3. 連結與列表 ===== */
a { text-decoration: none; }
ul, ol { line-height: 1.9; margin-bottom: 1em; }

/* ===== 4. 按鈕優化 (精準修正版：放過社群外掛) ===== */
.btn,
.onepress-btn,
input[type="submit"],
input[type="reset"] {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
    padding: 12px 24px;
    border-radius: 6px;
}

.hero-slideshow-wrapper .btn,
.hero-content-style1 .btn,
.hero-content-style2 .btn {
    font-size: 1.125rem;
    line-height: 1.4;
    padding: 14px 28px;
}

/* ===== 5. Header / 選單置中（桌機版 >= 1141px） ===== */
/* 與 OnePress 原生漢堡斷點 1140px 對齊，避免 992–1140px 同時套到桌機 flex 與行動選單。 */
@media screen and (min-width: 1141px) {
    .site-header .container {
        display: flex;
        align-items: center;
        min-height: 76px;
    }

    .site-header .site-branding,
    .site-header .header-right-wrapper,
    .site-header #site-navigation {
        display: flex;
        align-items: center;
    }

    .site-header .header-right-wrapper,
    .site-header #site-navigation {
        margin-left: auto;
        justify-content: flex-end;
        float: none;
    }

    .site-header .site-branding {
        margin: 0;
        float: none;
        flex-shrink: 0; /* 關鍵修復：防止 Logo 在螢幕縮小時被 Flexbox 壓縮消失 */
    }

    #site-navigation .onepress-menu {
        display: flex;
        align-items: center;
        margin: 0;
    }

    #site-navigation .onepress-menu > li {
        display: flex;
        align-items: center;
    }

    /* 👇 終極破解：強制桌機版絕對顯示，權重加到最高！ */
    body .site-header #site-navigation .onepress-menu > li.mobile-hide {
        display: flex !important;
    }
    
    body .site-header #site-navigation .onepress-menu ul li.mobile-hide {
        display: block !important;
    }

    #site-navigation .onepress-menu > li > a {
        display: flex;
        align-items: center;
        height: 76px;
        line-height: 1.2;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 16px;
        letter-spacing: 0.03em;
    }

    #site-navigation ul ul a {
        font-size: 15px;
        line-height: 1.6;
        padding-top: 10px;
        padding-bottom: 10px;
        height: auto;
    }
}

/* ===== 6. 首頁 Hero 區塊 ===== */
.hero-content-style1 h2,
.hero-content-style2 h2,
.hero__content h1,
.hero__content h2 {
    font-size: 2.5rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.hero-content-style1 p,
.hero-content-style2 p,
.hero-small-text,
.hero-large-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===== 7 ~ 13. 各區塊排版優化 ===== */
.section-title-area .section-title, .section-title-area h2 { font-size: 2rem; line-height: 1.4; letter-spacing: 0.03em; }
.section-title-area .section-subtitle, .section-title-area p { font-size: 1rem; line-height: 1.9; color: #666; }

.section-services .service-item .service-title, .section-services .service-item h4 { font-size: 1.375rem; line-height: 1.45; margin-bottom: 12px; }
.section-services .service-item .service-content p { font-size: 17px; line-height: 1.9; color: #444; }
.section-services .service-item { margin-bottom: 30px; }

.feature-item-content h3 { font-size: 1.375rem; line-height: 1.45; color: #555; margin-bottom: 10px; }
.feature-item-content p { font-size: 16px; line-height: 1.9; }

.member-name { font-size: 1.5rem; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }
.team-member .member-position { font-size: 1.0625rem; line-height: 1.6; color: #777; margin-bottom: 12px; }
.team-member .member-desc, .team-member p { font-size: 16px; line-height: 1.9; }

.section-about p, .section-news p, .section-contact p, .section-counter p, .section-blog p { font-size: 17px; line-height: 1.9; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], textarea, select {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px; line-height: 1.6; padding: 10px 12px;
}

.site-footer, .site-footer p, .site-footer li, .site-info { font-size: 15px; line-height: 1.8; }


/* ===== 14, 15, 16. 手機版與平板版（<= 1140px）精確修正版 ===== */
/* 與 OnePress 原生漢堡斷點一致，涵蓋 iPad 直／橫與窄螢幕筆電。 */
@media screen and (max-width: 1140px) {

    /* --- [14] 手機/平板版 Header 分散對齊 --- */
    .site-header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 64px;
        padding: 0 14px;
    }

    .site-header .container::before,
    .site-header .container::after {
        display: none !important;
    }

    .site-header .site-branding {
        max-width: calc(100% - 60px);
        margin: 0;
        flex-shrink: 0; /* 關鍵修復：確保平板模式下 Logo 不會縮水 */
    }

    .site-header .header-right-wrapper {
        margin: 0 !important;
        display: flex;
        align-items: center;
    }

    .site-header #site-navigation {
        display: block !important;
    }

    #nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
    }

    /* --- [15] 手機版展開選單邏輯 (修復收合) --- */
    #site-navigation .onepress-menu {
        display: none;
        width: 100%;
        margin: 0;
        padding: 0;
        clear: both;
    }

    #site-navigation.toggled-on .onepress-menu {
        display: block !important;
    }

    #site-navigation .onepress-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    #site-navigation .onepress-menu > li > a {
        display: block;
        height: auto !important;
        padding: 12px 16px;
        line-height: 1.5;
        text-align: left;
    }

    #site-navigation .menu-item-has-children {
        position: relative;
    }

    #site-navigation .menu-item-has-children > .sub-arrow {
        position: absolute;
        right: 12px;
        top: 10px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- [16] 文字與按鈕大小 --- */
    body, input, select, textarea, p { font-size: 16px; line-height: 1.8; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }

    .btn, input[type="submit"] {
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* --- 隱藏手機版特定選單項目 --- */
    #site-navigation li.mobile-hide,
    .onepress-menu li.mobile-hide {
        display: none !important;
    }
}

/* ===== 17. 破解 OnePress 專案區塊的寬度計算誤差，強制顯示 4 欄 ===== */
@media screen and (min-width: 992px) {
    body .section-projects .project-item {
        -ms-flex: 0 0 24.9% !important;
        flex: 0 0 24.9% !important;
        max-width: 24.9% !important;
        width: 24.9% !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    body .section-projects .project-item {
        -ms-flex: 0 0 49.9% !important;
        flex: 0 0 49.9% !important;
        max-width: 49.9% !important;
        width: 49.9% !important;
    }
}
/* ===== 18. 首頁關於我們圖片圓角（與執行長 PNG 透明圓角視覺一致） ===== */
.section-about .about-image {
    overflow: hidden;
    border-radius: 80px;
    aspect-ratio: 4 / 3;
    line-height: 0;
}
.section-about .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
}


/* ===== OnePress Nav Premium Enhancement v2 ===== */

/* --- Header Base: Glassmorphism --- */
#masthead.site-header {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,.04) !important;
  transition: background var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), box-shadow var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
#masthead.site-header.header-scroll {
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.07) !important;
}

/* --- Top-level Items: Typography --- */
.onepress-menu > li > a {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .03em !important;
  text-transform: none !important;
  color: #2d3548 !important;
  padding: 0 18px !important;
  line-height: 72px !important;
  position: relative;
  transition: color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)) !important;
}

/* --- Gold Underline Hover (all items, use ::before to avoid conflict) --- */
.onepress-menu > li > a::before {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  height: 2.5px;
  background: linear-gradient(90deg, #c9a353, #e0c068);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  z-index: 1;
}
.onepress-menu > li:hover > a::before {
  transform: scaleX(1);
}
.onepress-menu > li:hover > a {
  color: #1a1f2e !important;
}

/* --- Separator Dots (desktop) --- */
@media(min-width:1141px) {
  .onepress-menu > li + li::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d4d0c8;
    opacity: .5;
    pointer-events: none;
  }
}

/* --- Dropdown Arrow (items with children) --- */
@media(min-width:1141px) {
  .onepress-menu > li.menu-item-has-children > a {
    padding-right: 30px !important;
  }
  .onepress-menu > li.menu-item-has-children > a::after {
    content: '' !important;
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid #b0a898;
    transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), border-color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
    background: none !important;
    bottom: auto !important;
    left: auto !important;
  }
  .onepress-menu > li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #c9a353;
  }
}

/* --- Dropdown Panel --- */
.onepress-menu ul {
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 48px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04) !important;
  padding: 10px 6px !important;
  min-width: 280px !important;
  /* Smooth entrance */
  transform: translateY(8px);
  transition: opacity var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)) !important;
}
.onepress-menu li:hover > ul,
.onepress-menu li.sfHover > ul {
  transform: translateY(0);
}

/* --- 3rd-level nested --- */
.onepress-menu ul ul {
  left: calc(100% + 4px) !important;
  top: 0 !important;
  border-radius: 12px !important;
}

/* --- Dropdown Items --- */
.onepress-menu ul li {
  white-space: normal !important;
}
.onepress-menu ul li a {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4b5563 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  position: relative;
  overflow: hidden;
  transition: all var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)) !important;
}
.onepress-menu ul li a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, #c9a353, #e0c068);
  border-radius: 10px 0 0 10px;
  transition: width var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
.onepress-menu ul li a:hover {
  background: #faf8f3 !important;
  color: #1a1f2e !important;
  padding-left: 22px !important;
}
.onepress-menu ul li a:hover::before {
  width: 3.5px;
}

/* --- Mobile Menu --- */
@media(max-width:1140px) {
  /* Hamburger button */
  #nav-toggle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: transparent !important;
    transition: background var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)) !important;
  }
  #nav-toggle:hover {
    background: transparent !important;
  }
  #nav-toggle span,
  #nav-toggle span::before,
  #nav-toggle span::after {
    background: #2d3548 !important;
    border-radius: 2px !important;
    height: 2px !important;
  }

  /* Menu panel */
  #site-navigation {
    background: rgba(255,255,255,.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.1) !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
  }

  .onepress-menu > li > a {
    line-height: 52px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,.04) !important;
  }
  .onepress-menu > li > a::before {
    display: none !important;
  }
  .onepress-menu > li > a:hover {
    background: #faf8f3 !important;
    padding-left: 24px !important;
  }

  /* Mobile sub-menu */
  .onepress-menu ul {
    background: #faf8f3 !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 8px !important;
    position: static !important;
    min-width: auto !important;
    transform: none !important;
  }
  .onepress-menu ul li a {
    padding: 8px 16px 8px 32px !important;
    font-size: 13.5px !important;
    border-radius: 0 !important;
  }
  .onepress-menu ul li a::before {
    display: none !important;
  }
  .onepress-menu ul li a:hover {
    background: transparent !important;
    padding-left: 36px !important;
  }

  /* Hide separator dots */
  .onepress-menu > li + li::before {
    display: none !important;
  }
}

/* --- Logo subtle enhance --- */
.site-branding .site-title a,
.site-branding .site-text-logo {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
/* 精選圖片比例修正 - 文章列表頁 */
.archive .list-article-thumb,
.blog .list-article-thumb {
  width: 320px;
  flex-shrink: 0;
}
.archive .list-article-thumb img,
.blog .list-article-thumb img {
  width: 320px;
  height: 168px;
  object-fit: cover;
  border-radius: 8px;
}
@media screen and (max-width: 720px) {
  .archive .list-article-thumb,
  .blog .list-article-thumb {
    width: 100%;
  }
  .archive .list-article-thumb img,
  .blog .list-article-thumb img {
    width: 100%;
    height: auto;
  }
}

/* 最新消息文章標題行距縮小 */
.section-news .list-article .entry-title,
.section-news .list-article .entry-title a {
  line-height: 1.4;
}
/* ===== 20260420 漢堡選單位置修正：對齊 Logo + 不貼右邊 ===== */
@media screen and (max-width: 1140px) {
  #nav-toggle {
    margin-top: 16px !important;
    margin-right: 8px !important;
    background: transparent !important;
  }
}
/* Feature section spacing */
.feature-media {
  margin-bottom: 28px;
}
.feature-item-content h3 {
  margin-bottom: 14px;
}
.feature-item-content p {
  margin-top: 6px;
}
.feature-item {
  margin-bottom: 40px;
}
/* Topbar height reduction */
.hr-topbar-item {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: .8rem;
}

/* Menu font size + vertical alignment */
.onepress-menu > li > a {
  font-size: 15px;
  line-height: 75px;
  padding-top: 4px;
}
/* ===== 20260428 首頁首屏重點訊息優化 ===== */
.hero-content-style1 .hr-hero-subline,
.hero-content-style2 .hr-hero-subline {
    display: inline-block;
    margin-top: 14px;
    font-size: 1.55rem;
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

@media screen and (max-width: 768px) {
    .hero-content-style1 .hr-hero-subline,
    .hero-content-style2 .hr-hero-subline {
        margin-top: 10px;
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

/* ==========================================================================
   Chinese RWD Readability — 宏儒升大學 全站中文閱讀優化
   用途：追加於 WordPress「外觀 → 自訂 → 額外的 CSS」底部
   原則：不改色系、不動版型，只修中文斷行、字距、行高與手機閱讀節奏
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

p,
li {
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: balance;
}

.entry-content,
.section-about,
.section-news,
.section-contact,
.section-counter,
.section-blog,
.section-services,
.feature-item-content {
  text-wrap: pretty;
}

.entry-content p,
.section-about p,
.section-news p,
.section-contact p,
.section-counter p,
.section-blog p,
.section-services .service-item .service-content p,
.feature-item-content p,
.team-member .member-desc,
.team-member p {
  line-height: 1.85;
}

.section-about .row .about-image,
.section-about .row h3,
.section-about .row > [class*="col-"] > p {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-about .row h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.25rem, 1.45vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 700;
}

.section-about .row h3 a {
  display: block;
  width: 100%;
  color: #333333;
}

.section-about .row h3 a:hover {
  color: var(--brand-primary, #FF6600);
}

.section-about .row > [class*="col-"] > p {
  margin-top: 0;
  color: var(--brand-primary-dark, #E8670A);
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.archive .list-article-thumb,
.blog .list-article-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.archive .list-article-thumb img,
.blog .list-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 991px) {
  body,
  input,
  select,
  textarea,
  p,
  li {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    letter-spacing: 0;
  }

  h1 { line-height: 1.32; }
  h2 { line-height: 1.38; }
  h3 { line-height: 1.42; }
  h4,
  h5,
  h6 { line-height: 1.5; }

  .entry-content p,
  .section-about p,
  .section-news p,
  .section-contact p,
  .section-counter p,
  .section-blog p,
  .section-services .service-item .service-content p,
  .feature-item-content p,
  .team-member .member-desc,
  .team-member p {
    font-size: 16px;
    line-height: 1.82;
    margin-bottom: 0.9em;
  }

  .section-about .row h3 {
    margin-top: 16px;
    font-size: 1.25rem;
    line-height: 1.55;
  }

  .section-about .row .about-image,
  .section-about .row > [class*="col-"] > p {
    max-width: none;
    font-size: 16px;
    line-height: 1.86;
    letter-spacing: 0.01em;
  }

  .section-title-area .section-title,
  .section-title-area h2 {
    line-height: 1.38;
    letter-spacing: 0;
  }

  .hero-content-style1 .hr-hero-subline,
  .hero-content-style2 .hr-hero-subline {
    letter-spacing: 0.01em;
    line-height: 1.68;
  }
}

@media screen and (max-width: 720px) {
  .archive .list-article-thumb,
  .blog .list-article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .archive .list-article-thumb img,
  .blog .list-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media screen and (max-width: 480px) {
  .entry-content,
  .section-about,
  .section-news,
  .section-contact,
  .section-counter,
  .section-blog,
  .section-services,
  .feature-item-content {
    text-align: left;
  }

  .hero-content-style1 .hr-hero-subline,
  .hero-content-style2 .hr-hero-subline {
    font-size: 1rem;
    line-height: 1.72;
    letter-spacing: 0;
  }
}

/* ==========================================================================
   文章（single post）一律套用「全版」寬度
   2026-08-09 Lyndon 拍板：「全部改成全版，這樣比較有一致性」
   貼在 WordPress「外觀 → 自訂 → 額外的 CSS」，位置在 reduced-motion 區塊之前。

   為什麼需要這一層：
   - 「全版」＝OnePress 的**頁面**範本 `template-fullwidth-stretched.php`，
     後台只有「頁面」選得到；**文章走 `single.php`，主題沒有提供範本選項**，
     所以文章一律被包在固定寬度的 `.container` 裡（1140／960／720／540px）。
   - 換句話說「頁面 vs 文章」的版面差異，就只是 `#content-inside` 多了一層 `.container`。
     這一層 CSS 把該限制解除，讓 18 篇文章與全版頁面同一個骨架。
   - 站上原本已有兩個**單頁**版本的同款覆寫（`body.postid-4779`＝108 課綱、
     `body.page-id-4318`＝分科攻略），本段沿用它們的宣告寫法（含 `.no-sidebar`
     變體與 `!important`），只是把作用範圍改成「所有文章」。
     那兩處單頁規則屬重複但無害，日後重構該頁時再移除。

   ⚠️ 為什麼不用「把文章轉成頁面」的做法：
   轉 post→page 會失去分類、發布日期、文章列表／RSS 與 Article schema，
   `breadcrumbs-hook.php` 的 post ID 映射與 sitemap 位置都要重接。
   CSS 這一層可逆、不動 post type，URL／SEO／分類完全不受影響。
   ========================================================================== */

body.single-post #content-inside.container,
body.single-post #content-inside.container.no-sidebar {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --------------------------------------------------------------------------
   純文字型文章：外框滿版，但內容再置中一次
   這 5 篇沒有自帶版型（沒有 inline style 標籤，也沒有 section 骨架），
   單純的長文若直接滿版，1440px 螢幕上一行會超過 1400px，完全不能讀。
   下面的斷點與寬度**刻意抄 OnePress `.container` 的原始值**
   （540／720／960／1140px ＋ 左右 15px 內距），
   所以這 5 篇的視覺與改版前逐像素相同，只是骨架換成了全版。

   2169 gsat-application-interview-coaching
   2419 114-gsat-application-schedule
   2532 114-gsat-stage2-seminar
   2683 medical-program-stage2-guide
   3681 115-gsat-seminar-news

   註：3740 self-intro-guide 與 4166 app-stage2-guide 雖然也是純文字型文章，
   但前台由 sandbox template 攔截輸出（沒有 `#content-inside`），
   本段對它們無作用，故不列入。
   -------------------------------------------------------------------------- */

body.single-post.postid-2169 #primary,
body.single-post.postid-2419 #primary,
body.single-post.postid-2532 #primary,
body.single-post.postid-2683 #primary,
body.single-post.postid-3681 #primary {
  box-sizing: border-box;
  float: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media screen and (min-width: 576px) {
  body.single-post.postid-2169 #primary,
  body.single-post.postid-2419 #primary,
  body.single-post.postid-2532 #primary,
  body.single-post.postid-2683 #primary,
  body.single-post.postid-3681 #primary {
    max-width: 540px;
  }
}

@media screen and (min-width: 768px) {
  body.single-post.postid-2169 #primary,
  body.single-post.postid-2419 #primary,
  body.single-post.postid-2532 #primary,
  body.single-post.postid-2683 #primary,
  body.single-post.postid-3681 #primary {
    max-width: 720px;
  }
}

@media screen and (min-width: 992px) {
  body.single-post.postid-2169 #primary,
  body.single-post.postid-2419 #primary,
  body.single-post.postid-2532 #primary,
  body.single-post.postid-2683 #primary,
  body.single-post.postid-3681 #primary {
    max-width: 960px;
  }
}

@media screen and (min-width: 1200px) {
  body.single-post.postid-2169 #primary,
  body.single-post.postid-2419 #primary,
  body.single-post.postid-2532 #primary,
  body.single-post.postid-2683 #primary,
  body.single-post.postid-3681 #primary {
    max-width: 1140px;
  }
}

/* --------------------------------------------------------------------------
   單篇補丁：4703 115 增值榜單頁的「誠信辦學聲明」段
   這一段是 .entry-content 的直系子元素、自己沒有左右內距，
   原本靠 .container 的 15px 撐開；滿版後在 991px 以下會貼齊螢幕邊緣。
   桌機（1024px 以上）實測不貼邊，所以只補窄螢幕。
   18 篇文章 x 4 viewport 全掃只有這一處，其餘各頁的區塊都自帶內距。
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  body.single-post.postid-4703 .hr-upgrade__disclaimer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==========================================================================
   Environment Page — 宏儒教室環境頁專屬樣式
   套用方式：貼到 WordPress「外觀 → 自訂 → 額外的 CSS」brand-tokens.css 之後
   對應片段：snippets/environment-page.md
   ========================================================================== */

.environment-page {
  --env-radius: var(--brand-radius, 12px);
  --env-shadow: 0 14px 36px rgba(51, 51, 51, 0.1);
  --env-shadow-soft: 0 8px 24px rgba(51, 51, 51, 0.08);

  color: var(--brand-text, #333333);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
}

.environment-page *,
.environment-page *::before,
.environment-page *::after {
  box-sizing: border-box;
}

.environment-page a {
  color: inherit;
  text-decoration: none;
}

.environment-page img {
  display: block;
  width: 100%;
  height: auto;
}

.environment-page__section {
  padding: 72px 0;
}

.environment-page__section--muted {
  background: var(--brand-bg-muted, #F5F5F5);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(20px, calc((100vw - 1140px) / 2));
  padding-right: max(20px, calc((100vw - 1140px) / 2));
}

.environment-page__section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.environment-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--brand-primary-dark, #E8670A);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
}

.environment-page__eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-primary, #FF6600);
}

.environment-page__title,
.environment-page__heading,
.environment-page__subheading,
.environment-page__card-title,
.environment-page__photo-title {
  color: var(--brand-text, #333333);
  font-weight: 700;
  letter-spacing: 0;
}

.environment-page__title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.3;
}

.environment-page__lead {
  margin: 18px 0 0;
  color: var(--brand-text-muted, #666666);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.environment-page__heading {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.35;
}

.environment-page__intro {
  margin: 14px 0 0;
  color: var(--brand-text-muted, #666666);
  font-size: 1rem;
  line-height: 1.85;
}

.environment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 72px;
}

.environment-hero__content {
  max-width: 620px;
}

.environment-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.environment-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), opacity var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.environment-page__button:hover,
.environment-page__button:focus-visible {
  transform: translateY(-2px);
}

.environment-page__button--primary {
  background: var(--brand-primary, #FF6600);
  color: var(--brand-bg, #FFFFFF);
}

.environment-page__button--ghost {
  background: var(--brand-bg, #FFFFFF);
  border-color: var(--brand-border, #E0E0E0);
  color: var(--brand-text, #333333);
}

.environment-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--env-radius);
  overflow: hidden;
  box-shadow: var(--env-shadow);
  background: var(--brand-bg-muted, #F5F5F5);
}

.environment-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(51, 51, 51, 0.58) 100%);
  pointer-events: none;
}

.environment-hero__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.environment-hero__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--brand-bg, #FFFFFF);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.environment-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.environment-info-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--brand-border, #E0E0E0);
  border-radius: var(--env-radius);
  background: var(--brand-bg, #FFFFFF);
  box-shadow: var(--env-shadow-soft);
}

.environment-info-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-primary-dark, #E8670A);
  font-size: 0.8125rem;
  font-weight: 700;
}

.environment-info-card__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.45;
}

.environment-info-card__text {
  margin: 0;
  color: var(--brand-text-muted, #666666);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.environment-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.environment-feature__panel {
  position: sticky;
  top: 96px;
}

.environment-feature__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.environment-page .environment-feature__list {
  margin: 0;
  padding-left: 0;
}

.environment-feature__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 22px;
  border-radius: var(--env-radius);
  background: var(--brand-bg, #FFFFFF);
  box-shadow: var(--env-shadow-soft);
}

.environment-page .environment-feature__item {
  margin-left: 0;
}

.environment-feature__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.12);
  color: var(--brand-primary-dark, #E8670A);
  font-weight: 700;
}

.environment-feature__item p {
  margin: 6px 0 0;
  color: var(--brand-text-muted, #666666);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* 安心三大保證（履約 / 公共意外險 / 補課，2026-06-13；2026-06-13 改大照片版型） */
.environment-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.environment-trust-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--brand-border, #E0E0E0);
  border-top: 4px solid var(--brand-primary, #FF6600);
  border-radius: var(--env-radius);
  background: var(--brand-bg, #FFFFFF);
  box-shadow: var(--env-shadow-soft);
  overflow: hidden;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), box-shadow var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
.environment-trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 102, 0, 0.12);
}
.environment-trust-card__photo {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  background: #FFFFFF;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #F1ECE5;
  cursor: zoom-in;
  text-decoration: none !important;
}
.environment-trust-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  display: block;
}
.environment-trust-card__photo:hover img {
  transform: scale(1.04);
}
.environment-trust-card__photo::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23E8670A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M9 11h4M11 9v4'/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0;
  transition: opacity var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.environment-trust-card__photo:hover::after {
  opacity: 1;
}
.environment-trust-card__body {
  padding: 22px 24px 24px;
}
.environment-trust-card__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  line-height: 1.45;
}
.environment-trust-card__text {
  margin: 0;
  color: var(--brand-text-muted, #666666);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.environment-trust-card__text strong {
  color: var(--brand-primary-dark, #E8670A);
  font-weight: 700;
}
.environment-trust-card__meta {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--brand-border, #E0E0E0);
  color: var(--brand-text-muted, #666666);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.environment-page__section--map {
  padding-top: 0;
}

.environment-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: var(--env-radius);
  background: var(--brand-bg-muted, #F5F5F5);
}

.environment-map__content {
  max-width: 440px;
}

.environment-map__points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.environment-map__points li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: var(--brand-text, #333333);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.environment-map__points li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary, #FF6600);
}

.environment-map__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--env-radius);
  background: var(--brand-bg, #FFFFFF);
  box-shadow: var(--env-shadow);
}

.environment-map__figure img {
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.environment-map__figure figcaption {
  padding: 12px 16px 14px;
  color: var(--brand-text-muted, #666666);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.environment-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.environment-photo {
  position: relative;
  margin: 0;
  border-radius: var(--env-radius);
  overflow: hidden;
  background: var(--brand-bg-muted, #F5F5F5);
  box-shadow: var(--env-shadow-soft);
}

.environment-photo--wide {
  grid-column: span 2;
}

.environment-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.environment-photo:hover img {
  transform: scale(1.04);
}

.environment-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, rgba(51, 51, 51, 0) 0%, rgba(51, 51, 51, 0.78) 100%);
  color: var(--brand-bg, #FFFFFF);
}

.environment-page__photo-title {
  display: block;
  color: var(--brand-bg, #FFFFFF);
  font-size: 1rem;
  line-height: 1.35;
}

.environment-page__photo-text {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.9;
}

.environment-visit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.environment-visit__step {
  padding: 24px;
  border-left: 4px solid var(--brand-primary, #FF6600);
  border-radius: var(--env-radius);
  background: var(--brand-bg, #FFFFFF);
  box-shadow: var(--env-shadow-soft);
}

.environment-visit__step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-text, #333333);
  font-size: 1.125rem;
  line-height: 1.45;
}

.environment-visit__step p {
  margin: 0;
  color: var(--brand-text-muted, #666666);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.environment-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: var(--env-radius);
  background: #FFF6EE;
  border: 1px solid #FBE3CF;
  color: var(--brand-text, #333333);
}

.environment-cta .environment-page__eyebrow,
.environment-cta .environment-page__heading {
  color: var(--brand-text, #333333);
}

.environment-cta .environment-page__eyebrow::before {
  background: var(--brand-primary, #FF6600);
}

.environment-cta .environment-page__intro {
  color: var(--brand-text-muted, #666666);
  opacity: 1;
}

@media screen and (max-width: 991px) {
  .environment-hero,
  .environment-map,
  .environment-feature,
  .environment-cta {
    grid-template-columns: 1fr;
  }

  .environment-hero {
    gap: 28px;
    padding-top: 28px;
  }

  .environment-info-grid,
  .environment-visit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .environment-feature__panel {
    position: static;
  }

  .environment-map__content {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  .environment-page__section {
    padding: 52px 0;
  }

  .environment-page__section--muted {
    padding-left: 20px;
    padding-right: 20px;
  }

  .environment-page__title {
    font-size: 1.75rem;
  }

  .environment-page__heading {
    font-size: 1.375rem;
  }

  .environment-page__lead,
  .environment-page__intro {
    font-size: 1rem;
  }

  .environment-info-grid,
  .environment-gallery,
  .environment-trust__grid,
  .environment-visit {
    grid-template-columns: 1fr;
  }

  .environment-photo--wide {
    grid-column: span 1;
  }

  .environment-feature__item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 18px;
  }

  .environment-feature__number {
    width: 38px;
    height: 38px;
  }

  .environment-map {
    padding: 20px;
  }

  .environment-cta {
    padding: 26px 22px;
  }

  .environment-page__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .environment-page *,
  .environment-page *::before,
  .environment-page *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   §A environment-page RWD 補強（2026-06-05）
   原因：原 layout 假設 entry-content 容器寬度 1140，但 OnePress single-page
        實際容器可能不同；muted section 用 calc(50% - 50vw) 撐 100vw 容易
        在某些斷點撐出横向捲軸。同時 info-grid/gallery/visit 寫死欄數沒有
        中間 breakpoint，桌機窄屏與 iPad 直橫式可能擠版。
   做法：
     1. scoped overflow-x: hidden 於 .environment-page 防横向捲軸
     2. muted section 改回正常容器寬（移除 50vw 撐邊）、保留背景色區隔
     3. info-grid / gallery / visit 改 auto-fit minmax 自動降欄
     4. 桌機窄屏 1199 與 iPad 直式 768-991 加中間規則
   ========================================================================== */

.environment-page {
  overflow-x: hidden;
}

.environment-page__section--muted {
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px;
  padding-right: 20px;
}

.environment-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.environment-gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.environment-visit {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .environment-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
    gap: 32px;
  }
}

@media screen and (max-width: 1199px) {
  .environment-feature,
  .environment-page .environment-feature {
    display: block;
  }

  .environment-feature__panel,
  .environment-page .environment-feature__panel {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .environment-feature__list,
  .environment-page .environment-feature__list {
    width: 100%;
    max-width: 100%;
  }

  .environment-feature__item,
  .environment-page .environment-feature__item {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .environment-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .environment-cta .environment-page__button {
    justify-self: center;
  }

  .environment-trust__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 480px) {
  .environment-page__section {
    padding: 40px 0;
  }

  .environment-map {
    padding: 18px;
  }

  .environment-info-card {
    padding: 18px;
  }

  .environment-feature__item {
    padding: 14px;
  }
}


/* ==========================================================================
   §7 #map Google InfoWindow 樣式
   結構：.gmap_marker > .map-address (含 hr-map-title + hr-map-addr)
                     > .map-extra-info (含 ul.hr-map-info)
   原因：theme 預設 customizer 讓使用者直接寫 inline HTML，無語意 class，
        視覺擁擠、字級無層次。改採我們命名的 hr-map-* class 配 §7 CSS 控制
   來源：customizer 內容已透過 set_theme_mod 更新（onepress_map_address /
        onepress_map_html）
   ========================================================================== */

.gmap_marker {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  padding: 6px 4px 4px;
  max-width: 360px;
  color: var(--brand-text, #333333);
}

.gmap_marker .map-address {
  border-bottom: 1px solid #f0e6d6;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.gmap_marker .hr-map-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--brand-primary, #FF6600);
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.gmap_marker .hr-map-addr {
  font-size: 0.9375rem;
  color: var(--brand-text, #333333);
  line-height: 1.5;
  font-weight: 500;
}

.gmap_marker .map-extra-info {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-text, #333333);
}

.gmap_marker .hr-map-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gmap_marker .hr-map-info li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
  line-height: 1.6;
}

.gmap_marker .hr-map-info .hr-map-icon {
  flex-shrink: 0;
  font-size: 0.95em;
  margin-top: 1px;
}

.gmap_marker .hr-map-info a {
  color: var(--brand-primary-dark, #E8670A);
  text-decoration: none;
  font-weight: 600;
}

.gmap_marker .hr-map-info a:hover {
  color: var(--brand-primary, #FF6600);
  text-decoration: underline;
}

/* ==========================================================================
   §8 首頁 Hero 視覺重設（A 方案）
   覆蓋 OnePress 預設 hero（黃綠主題色 + 藍色按鈕 + 黑色 30% 遮罩）
   宿主：#hero.hero-slideshow-wrapper（內含 video 標籤背景 + .container 文字層）
   ========================================================================== */

/* 8.1 拿掉 OnePress 內建 30% 黑遮罩，自己畫漸層 */
.hero-slideshow-wrapper:after {
  display: none !important;
}

#hero.hero-slideshow-wrapper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 8.2 多層漸層覆蓋：水青光暈 + 品牌橘暈 + 深色漸層（增強文字可讀性） */
#hero.hero-slideshow-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255, 248, 232, 0.78) 0%, rgba(255, 248, 232, 0.55) 35%, rgba(255, 248, 232, 0.25) 65%, transparent 85%);
  z-index: 1;
  pointer-events: none;
}

/* 8.3 內容層抬到漸層之上 */
#hero.hero-slideshow-wrapper .container {
  position: relative;
  z-index: 2;
  padding-top: 88px !important;
  padding-bottom: 96px !important;
}

#hero.hero-slideshow-wrapper .hero__content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* 8.4 H1 主標 — 白色襯線字（蓋掉 inline 黃色 #dbc81c） */
#hero.hero-slideshow-wrapper .hero-large-text {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: 0;
  color: #1A1A1A;
}

#hero.hero-slideshow-wrapper .hero-large-text > span:first-child[style] {
  color: #1A1A1A !important;
  display: block;
  text-shadow:
    0 0 12px rgba(255, 248, 232, 1),
    0 0 24px rgba(255, 248, 232, 0.9),
    0 2px 4px rgba(255, 248, 232, 1);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 18px;
}

/* H1 下方裝飾橘條（取代舊 inline 黃字 highlight） */
#hero.hero-slideshow-wrapper .hero-large-text > span:first-child[style]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF6600 0%, #E8670A 100%);
  box-shadow: 0 2px 10px rgba(255, 102, 0, 0.5);
}

/* 8.5 副標 hr-hero-subline — 加大加深 (2026-05-18) */
#hero.hero-slideshow-wrapper .hr-hero-subline {
  display: block;
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.7;
  color: #2C1810;
  letter-spacing: 3px;
  text-shadow:
    0 0 8px rgba(255, 248, 232, 1),
    0 0 16px rgba(255, 248, 232, 0.9),
    0 1px 2px rgba(255, 248, 232, 1);
  margin-top: 0;
}

/* 8.6 旋轉文字 — 加大變主視覽 (2026-05-18) */
#hero.hero-slideshow-wrapper .hero-small-text {
  margin: 32px auto 40px;
  max-width: 820px;
}

#hero.hero-slideshow-wrapper .hero-small-text p {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 3px;
  margin: 0;
  color: #C84A07;
  text-shadow:
    0 0 8px rgba(255, 248, 232, 1),
    0 0 16px rgba(255, 248, 232, 0.9),
    0 1px 2px rgba(255, 248, 232, 1);
}

#hero.hero-slideshow-wrapper .hero-content-style1 .morphext {
  color: #C84A07 !important;
  font-weight: 800;
}

/* 旋轉文字 sandbox 切換版本 (hero-rotate-text.php) 也吃同樣大小 */
#hero .js-rotating > .hr-rot-item {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 3px;
  color: #C84A07;
  text-shadow:
    0 0 8px rgba(255, 248, 232, 1),
    0 0 16px rgba(255, 248, 232, 0.9),
    0 1px 2px rgba(255, 248, 232, 1);
}

/* 8.7 兩顆按鈕統一 pill 形 */
#hero.hero-slideshow-wrapper .btn,
#hero.hero-slideshow-wrapper .btn-lg {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 36px !important;
  margin: 6px 8px;
  font-size: 1rem !important;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.3;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  text-decoration: none !important;
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#hero.hero-slideshow-wrapper .btn:hover,
#hero.hero-slideshow-wrapper .btn:focus-visible {
  transform: translateY(-2px);
}

/* 主按鈕（加入 LINE 諮詢）— 白底橘字 */
#hero.hero-slideshow-wrapper .btn.btn-success {
  background: #06C755 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
}

#hero.hero-slideshow-wrapper .btn.btn-success:hover {
  background: #04A648 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 12px 32px rgba(6, 199, 85, 0.45);
}

/* 次按鈕（查看課程）— ghost 白邊框 */
#hero.hero-slideshow-wrapper .btn.btn-primary {
  background: #FF6600 !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.35);
}

#hero.hero-slideshow-wrapper .btn.btn-primary:hover {
  background: #E8670A !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.45);
}

/* 8.8 RWD：平板 */
@media screen and (max-width: 991px) {
  #hero.hero-slideshow-wrapper .container {
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }
}

/* 8.9 RWD：手機 */
@media screen and (max-width: 600px) {
  #hero.hero-slideshow-wrapper .container {
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }
  #hero.hero-slideshow-wrapper .hero-large-text {
    font-size: clamp(22px, 7vw, 30px);
  }
  #hero.hero-slideshow-wrapper .hero-small-text {
    margin: 24px auto 28px;
  }
  #hero.hero-slideshow-wrapper .btn {
    display: flex !important;
    width: auto;
    max-width: 240px;
    margin: 14px auto;
    padding: 13px 26px !important;
    min-height: 50px;
    font-size: 1.05rem !important;
  }
}

/* 8.10 reduced-motion 支援 */
@media (prefers-reduced-motion: reduce) {
  #hero.hero-slideshow-wrapper .btn {
    transition: none !important;
  }
  #hero.hero-slideshow-wrapper .btn:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   Resit For Test Additions  v2 — full visual redesign
   貼齊 #resit-lp 既有 landing 設計（深綠 + 淺綠 + 橘漸層 + 襯線標題 + 玻璃卡片）
   對應片段：snippets/resit-for-test-additions.md
   不要動 HTML 結構與 class 名，純 CSS 重做視覺
   ========================================================================== */

.resit-additions {
  /* 配色與宿主 #resit-lp 統一 */
  --resit-text: #2C3E2D;
  --resit-text-muted: #4A5D4E;
  --resit-text-soft: #6B7F6E;
  --resit-accent: #9ACA68;
  --resit-accent-deep: #7DB445;
  --resit-accent-soft: #EFF5E8;
  --resit-accent-line: rgba(181, 213, 136, 0.45);
  --resit-cta-orange: #EA6A0A;
  --resit-cta: linear-gradient(135deg, #EA6A0A 0%, #FF6600 50%, #EA6A0A 100%);
  --resit-radius: 16px;
  --resit-radius-sm: 10px;
  --resit-shadow: 0 8px 28px rgba(44, 62, 45, 0.10);
  --resit-shadow-soft: 0 4px 18px rgba(44, 62, 45, 0.06);
  --resit-shadow-strong: 0 16px 40px rgba(44, 62, 45, 0.14);
  --resit-card-bg: rgba(255, 255, 255, 0.85);
  --resit-card-bg-strong: rgba(255, 255, 255, 0.95);
  --resit-transition: var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));

  position: relative;
  color: var(--resit-text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
}

.resit-additions *,
.resit-additions *::before,
.resit-additions *::after {
  box-sizing: border-box;
}

.resit-additions a:not(.resit-additions__button) {
  color: inherit;
  text-decoration: none;
}

.resit-additions a.resit-additions__button {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section frame
   -------------------------------------------------------------------------- */

.resit-additions__section {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  padding: 88px 24px;
}

/* 第一段（接 #resit-lp 結尾）平滑過渡 */
.resit-additions > .resit-additions__section:first-child {
  background: linear-gradient(180deg, var(--resit-accent-soft) 0%, transparent 60%);
}

/* 滿版淺綠段 */
.resit-additions__section--muted {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  background: var(--resit-accent-soft);
}

/* 末段壓縮上下間距 */
.resit-additions__section--compact {
  padding-top: 48px;
  padding-bottom: 88px;
}

/* --------------------------------------------------------------------------
   Section head — eyebrow / title / intro
   -------------------------------------------------------------------------- */

.resit-additions__head {
  max-width: 760px;
  margin-bottom: 44px;
}

.resit-additions__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--resit-accent-deep);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.resit-additions__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--resit-accent-deep);
}

.resit-additions__title {
  margin: 0;
  color: var(--resit-text);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.resit-additions__intro {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--resit-text-muted);
  font-size: 1rem;
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   For Whom (.resit-fit-grid + .resit-fit-card) — 4 卡片
   -------------------------------------------------------------------------- */

.resit-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.resit-fit-card {
  position: relative;
  padding: 32px 26px 28px;
  border: 1px solid var(--resit-accent-line);
  border-radius: var(--resit-radius);
  background: var(--resit-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--resit-shadow-soft);
  transition:
    transform var(--resit-transition),
    box-shadow var(--resit-transition),
    border-color var(--resit-transition);
}

.resit-fit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--resit-accent) 0%, var(--resit-accent-deep) 100%);
  border-radius: var(--resit-radius) var(--resit-radius) 0 0;
}

.resit-fit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 213, 136, 0.7);
  box-shadow: var(--resit-shadow);
}

.resit-fit-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 50%;
  background: var(--resit-accent-soft);
  color: var(--resit-accent-deep);
  font-family: "Noto Serif TC", serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.resit-fit-card__title {
  margin: 0;
  color: var(--resit-text);
  font-family: "Noto Serif TC", serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}

.resit-fit-card__text {
  margin: 12px 0 0;
  color: var(--resit-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Class Tracks (.resit-track) — 表格轉並排對照卡
   -------------------------------------------------------------------------- */

.resit-track {
  display: grid;
  gap: 28px;
}

.resit-track__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.resit-track__row--head {
  display: none;
}

.resit-track__row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 28px;
  border: 1px solid var(--resit-accent-line);
  border-radius: var(--resit-radius);
  background: var(--resit-card-bg-strong);
  box-shadow: var(--resit-shadow);
  transition:
    transform var(--resit-transition),
    box-shadow var(--resit-transition);
}

.resit-track__row:hover {
  transform: translateY(-4px);
  box-shadow: var(--resit-shadow-strong);
}

.resit-track__row > div {
  position: relative;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--resit-accent-line);
  color: var(--resit-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.resit-track__row > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resit-track__row > div::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 6px;
  color: var(--resit-accent-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* 第一格（班別）特殊樣式：襯線標題 + 綠底線 */
.resit-track__row > div:first-child {
  padding-top: 0;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--resit-accent);
  color: var(--resit-text);
  font-family: "Noto Serif TC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.resit-track__row > div:first-child::before {
  display: none;
}

.resit-track strong {
  color: var(--resit-text);
}

/* --------------------------------------------------------------------------
   Daily System (.resit-system) — 拆掉 sticky，改置中 head + 2×2 列表
   -------------------------------------------------------------------------- */

.resit-system {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.resit-system__content {
  position: static;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.resit-system__content .resit-additions__head {
  max-width: none;
  margin-bottom: 0;
}

.resit-system__content .resit-additions__intro {
  margin-left: auto;
  margin-right: auto;
}

.resit-system__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resit-system__list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 26px;
  border: 1px solid var(--resit-accent-line);
  border-radius: var(--resit-radius);
  background: var(--resit-card-bg-strong);
  box-shadow: var(--resit-shadow-soft);
  transition:
    transform var(--resit-transition),
    box-shadow var(--resit-transition);
}

.resit-system__list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--resit-shadow);
}

.resit-system__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--resit-accent-soft);
  color: var(--resit-accent-deep);
  font-family: "Noto Serif TC", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.resit-system h3 {
  margin: 0;
  color: var(--resit-text);
  font-family: "Noto Serif TC", serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}

.resit-system p {
  margin: 8px 0 0;
  color: var(--resit-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Exam Feedback (.resit-feedback) — 3 卡片 + 圓號 + 連接箭頭
   -------------------------------------------------------------------------- */

.resit-feedback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.resit-feedback article {
  position: relative;
  padding: 36px 26px 30px;
  border: 1px solid var(--resit-accent-line);
  border-radius: var(--resit-radius);
  background: var(--resit-card-bg-strong);
  box-shadow: var(--resit-shadow-soft);
  text-align: center;
  transition:
    transform var(--resit-transition),
    box-shadow var(--resit-transition);
}

.resit-feedback article:hover {
  transform: translateY(-4px);
  box-shadow: var(--resit-shadow);
}

.resit-feedback article::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--resit-accent-soft);
  color: var(--resit-accent-deep);
  font-family: "Noto Serif TC", serif;
  font-size: 1.125rem;
  font-weight: 800;
}

.resit-feedback article:nth-child(1)::before { content: "1"; }
.resit-feedback article:nth-child(2)::before { content: "2"; }
.resit-feedback article:nth-child(3)::before { content: "3"; }

/* 桌機橫向箭頭連接（前 2 張右側） */
.resit-feedback article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translate(0, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--resit-accent-deep);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--resit-shadow-soft);
  z-index: 2;
}

.resit-feedback h3 {
  margin: 0;
  color: var(--resit-text);
  font-family: "Noto Serif TC", serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.resit-feedback p {
  margin: 10px 0 0;
  color: var(--resit-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   FAQ (.resit-faq) — 左側 vertical bar + chevron 動畫
   -------------------------------------------------------------------------- */

.resit-faq {
  display: grid;
  gap: 14px;
}

.resit-faq__group {
  margin: 18px 0 0;
  color: var(--resit-accent-deep);
  font-family: "Noto Serif TC", serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
}

.resit-faq__group:first-child {
  margin-top: 0;
}

.resit-faq details {
  padding: 0;
  border: 1px solid var(--resit-accent-line);
  border-left: 4px solid var(--resit-accent);
  border-radius: var(--resit-radius-sm);
  background: var(--resit-card-bg-strong);
  box-shadow: var(--resit-shadow-soft);
  overflow: hidden;
  transition:
    border-left-color var(--resit-transition),
    box-shadow var(--resit-transition);
}

.resit-faq details[open] {
  border-left-color: var(--resit-cta-orange);
  box-shadow: var(--resit-shadow);
}

.resit-faq summary {
  cursor: pointer;
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--resit-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
  transition: color var(--resit-transition);
}

.resit-faq summary::-webkit-details-marker {
  display: none;
}

/* chevron 雙邊框構成的箭頭，open 時旋轉 */
.resit-faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--resit-accent-deep);
  border-bottom: 2px solid var(--resit-accent-deep);
  transform: translateY(-70%) rotate(45deg);
  transition:
    transform var(--resit-transition),
    border-color var(--resit-transition);
}

.resit-faq summary:hover {
  color: var(--resit-accent-deep);
}

.resit-faq details[open] summary {
  color: var(--resit-cta-orange);
}

.resit-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--resit-cta-orange);
}

.resit-faq p {
  margin: 0;
  padding: 4px 24px 22px;
  color: var(--resit-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Final CTA (.resit-related) — 中央堆疊 + 雙圓裝飾光
   -------------------------------------------------------------------------- */

.resit-related {
  position: relative;
  padding: 56px 40px;
  border-radius: var(--resit-radius);
  background: linear-gradient(135deg, #7DB445 0%, #9ACA68 50%, #7DB445 100%);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(125, 180, 69, 0.30);
}

.resit-related::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.resit-related::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* 第一個 div（不含 class）：含 head 內容 */
.resit-related > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 32px;
}

.resit-related .resit-additions__head {
  max-width: none;
  margin-bottom: 0;
}

.resit-related .resit-additions__eyebrow,
.resit-related .resit-additions__title,
.resit-related .resit-additions__intro {
  color: #FFFFFF;
}

.resit-related .resit-additions__title {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}

.resit-related .resit-additions__intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.resit-related .resit-additions__eyebrow {
  color: #FFFFFF;
  opacity: 0.9;
}

.resit-related .resit-additions__eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}

.resit-related__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Buttons — pill 形 + 強陰影
   -------------------------------------------------------------------------- */

.resit-additions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition:
    transform var(--resit-transition),
    box-shadow var(--resit-transition),
    background var(--resit-transition),
    color var(--resit-transition);
}

.resit-additions__button:hover,
.resit-additions__button:focus-visible {
  transform: translateY(-2px);
}

.resit-additions__button--primary {
  background: #FFFFFF;
  color: var(--resit-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.resit-additions__button--primary:hover,
.resit-additions__button--primary:focus-visible {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.resit-additions__button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.resit-additions__button--ghost:hover,
.resit-additions__button--ghost:focus-visible {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   RWD：平板（≤991px）
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .resit-additions__section {
    padding: 64px 20px;
  }

  .resit-additions__section--compact {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .resit-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .resit-track__table {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .resit-feedback {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 平板改縱向流程箭頭 */
  .resit-feedback article:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -28px;
    transform: translate(50%, 0);
  }

  .resit-system__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .resit-related {
    padding: 44px 28px;
  }
}

/* --------------------------------------------------------------------------
   RWD：手機（≤600px）
   -------------------------------------------------------------------------- */

@media screen and (max-width: 600px) {
  .resit-additions__section {
    padding: 52px 16px;
  }

  .resit-additions__section--muted {
    padding-left: 16px;
    padding-right: 16px;
  }

  .resit-additions__section--compact {
    padding-top: 32px;
    padding-bottom: 52px;
  }

  .resit-additions__title {
    font-size: 1.375rem;
  }

  .resit-additions__head {
    margin-bottom: 32px;
  }

  .resit-fit-grid {
    grid-template-columns: 1fr;
  }

  .resit-track__row {
    padding: 26px 22px;
  }

  .resit-track__row > div:first-child {
    font-size: 1.25rem;
  }

  .resit-system__list li {
    padding: 22px 20px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .resit-system__list span {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .resit-faq summary {
    padding: 18px 48px 18px 20px;
    font-size: 0.9375rem;
  }

  .resit-faq p {
    padding: 4px 20px 20px;
  }

  .resit-related {
    padding: 36px 20px;
    border-radius: var(--resit-radius-sm);
  }

  .resit-related__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resit-additions__button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   無障礙：尊重減少動畫
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .resit-additions *,
  .resit-additions *::before,
  .resit-additions *::after {
    transition: none !important;
    animation: none !important;
  }

  .resit-fit-card:hover,
  .resit-track__row:hover,
  .resit-system__list li:hover,
  .resit-feedback article:hover,
  .resit-additions__button:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   Medical Success Page — 114 學測醫牙榜單頁
   對應頁面：/114-gsat-medical-dental-success-stories/
   依賴：brand-tokens.css（色彩變數）、success-card.css（學員卡）
   BEM block：medical-success-page
   套用方式：貼到 WordPress「外觀 → 自訂 → 額外的 CSS」尾端
   ========================================================================== */

.medical-success-page {
  /* 醫學專班淺底（§4.5）+ 主色（§4.1）雙軌：
     淺底建立班系識別，主色保留全站 CTA 與品牌印象 */
  --msp-bg-soft: var(--class-medical);
  --msp-radius: var(--brand-radius);
  --msp-transition: var(--brand-transition);

  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  color: var(--brand-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.medical-success-page * { box-sizing: border-box; }

.medical-success-page__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Hero — 醫學專班淺底漸入白
   -------------------------------------------------------------------------- */
.medical-success-page__hero {
  background: linear-gradient(180deg, var(--msp-bg-soft) 0%, var(--brand-bg) 100%);
  padding: 96px 24px 80px;
  text-align: center;
}

.medical-success-page__eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 102, 0, 0.12);
  color: var(--brand-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}

.medical-success-page__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--brand-text);
  margin: 0 0 18px;
}

.medical-success-page__title-accent {
  color: var(--brand-primary);
}

.medical-success-page__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--brand-text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.85;
}

.medical-success-page__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.medical-success-page__stat {
  background: var(--brand-bg);
  border-radius: var(--msp-radius);
  padding: 24px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.medical-success-page__stat-num {
  display: block;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
}

.medical-success-page__stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--brand-text-muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Schools — 錄取學校 chip 帶
   -------------------------------------------------------------------------- */
.medical-success-page__schools {
  background: var(--brand-bg);
  padding: 56px 24px;
  border-bottom: 1px solid var(--brand-border);
}

.medical-success-page__schools-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-text-muted);
  letter-spacing: 0.25em;
  margin: 0 0 24px;
}

.medical-success-page__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.medical-success-page__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-bg-muted);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-text);
  transition:
    transform var(--msp-transition),
    box-shadow var(--msp-transition),
    border-color var(--msp-transition);
}

.medical-success-page__chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-primary);
}

.medical-success-page__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Pillars — 三大準備支柱
   -------------------------------------------------------------------------- */
.medical-success-page__pillars {
  background: var(--brand-bg-muted);
  padding: 80px 24px;
}

.medical-success-page__section-head {
  text-align: center;
  margin-bottom: 56px;
}

.medical-success-page__section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.medical-success-page__section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--brand-text);
  margin: 0 0 16px;
}

.medical-success-page__section-rule {
  width: 56px;
  height: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  margin: 0 auto;
}

.medical-success-page__pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.medical-success-page__pillar {
  background: var(--brand-bg);
  border-radius: var(--msp-radius);
  padding: 36px 32px;
  border-top: 4px solid var(--brand-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--msp-transition),
    box-shadow var(--msp-transition);
}

.medical-success-page__pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(232, 103, 10, 0.18);
}

.medical-success-page__pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: var(--brand-bg);
  font-weight: 900;
  font-size: 1.125rem;
  border-radius: 50%;
  margin-bottom: 18px;
}

.medical-success-page__pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-text);
  margin: 0 0 12px;
}

.medical-success-page__pillar-text {
  font-size: 0.95rem;
  color: var(--brand-text-muted);
  line-height: 1.78;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Roster — 學員榜單 grid（盛裝 .success-card 元件）
   -------------------------------------------------------------------------- */
.medical-success-page__roster {
  background: var(--brand-bg);
  padding: 80px 24px;
}

/* --------------------------------------------------------------------------
   Final CTA — 主色橘漸層
   -------------------------------------------------------------------------- */
.medical-success-page__cta {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--brand-bg);
}

.medical-success-page__cta-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--brand-bg);
  margin: 0 0 16px;
}

.medical-success-page__cta-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.medical-success-page__cta-button {
  display: inline-block;
  background: var(--brand-bg);
  color: var(--brand-primary);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--msp-transition),
    box-shadow var(--msp-transition);
}

.medical-success-page__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  color: var(--brand-primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   RWD — 平板（≤991px）
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .medical-success-page__hero { padding: 72px 20px 56px; }
  .medical-success-page__schools { padding: 48px 20px; }
  .medical-success-page__pillars { padding: 64px 20px; }
  .medical-success-page__roster { padding: 64px 20px; }
  .medical-success-page__cta { padding: 64px 20px; }

  .medical-success-page__pillars-grid { grid-template-columns: 1fr; gap: 18px; }
  .medical-success-page__section-head { margin-bottom: 40px; }
}

/* --------------------------------------------------------------------------
   RWD — 手機（≤600px）
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .medical-success-page__container { padding: 0 16px; }
  .medical-success-page__hero { padding: 56px 16px 44px; }
  .medical-success-page__schools { padding: 40px 16px; }
  .medical-success-page__pillars { padding: 48px 16px; }
  .medical-success-page__roster { padding: 48px 16px; }
  .medical-success-page__cta { padding: 56px 16px; }

  .medical-success-page__lead { margin-bottom: 36px; }
  .medical-success-page__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .medical-success-page__stat { padding: 20px 10px; }
  .medical-success-page__chip { padding: 8px 16px; font-size: 0.875rem; }
  .medical-success-page__cta-button { display: block; padding: 16px 24px; font-size: 1rem; }
  .medical-success-page__pillar { padding: 28px 22px; }
}

/* --------------------------------------------------------------------------
   無障礙：尊重使用者偏好的減少動畫
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .medical-success-page__chip,
  .medical-success-page__pillar,
  .medical-success-page__cta-button {
    transition: none;
  }

  .medical-success-page__chip:hover,
  .medical-success-page__pillar:hover,
  .medical-success-page__cta-button:hover {
    transform: none;
  }
}

/* ==========================================================================
   §9 桌機選單下拉「有更深一層子選單」的右側指示符
   原因：頂層選單已有 ▾ caret 提示有下拉，但下拉裡的二級項目若還有
        sub-sub menu（例：師資介紹 → 各科目 → 各老師），目前完全沒
        視覺提示，使用者不易發現可繼續展開
   做法：在 .sub-menu .menu-item-has-children > a 右側加 ›（U+203A）
        預設淡灰、hover 時轉品牌橘並右移 2px
   範圍：min-width 768px（桌機）；手機已有 .sub-arrow toggle 不重複
   ========================================================================== */

@media screen and (min-width: 768px) {
  /* OnePress 既有規則 `.onepress-menu ul li a { padding: 10px 16px !important; }`
     以 shorthand + !important 重設 padding-right，會蓋過我的設定。
     必須用 !important 才搶得回，否則文字會貼著 › 顯示沒有留白 */
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 44px !important;
  }

  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a::after {
    content: '\203A';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    line-height: 1;
    color: rgba(51, 51, 51, 0.35);
    transition: color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
    pointer-events: none;
  }

  #site-navigation .onepress-menu .sub-menu .menu-item-has-children:hover > a::after,
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a:hover::after,
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a:focus::after {
    color: var(--brand-primary, #FF6600);
    transform: translate(2px, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a::after {
    transition: none;
  }
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children:hover > a::after,
  #site-navigation .onepress-menu .sub-menu .menu-item-has-children > a:hover::after {
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   §10「數位學習」選單項：綠底膠囊強調（外部 elearning 平台識別）
   原因：選單最後一項「數位學習」連到 https://elearn.6-one.com.tw（外站），
        單純改文字綠色不夠醒目（OnePress 既有 !important 規則影響、且綠色
        在白底上不夠跳）。改成膠囊按鈕，視覺上明確區分為「外部 CTA」
   做法：用 #menu-item-3097 鎖定該項
        - 桌機：綠底白字、bold、padding 3px 14px、font-size 13px、border-radius 999px
        - hover：底色加深 + 上推 1px + subtle shadow
        - 預設色 #2CA84A 採樣自 elearning 站；hover 加深至 #1F8F3D
        - 用 !important 覆蓋 OnePress `.current-menu-item > a` 的 #dbc81c 黃色
   範圍：min-width 768px（桌機）；手機沿用文字色 + bold（不變膠囊避免 layout 跑掉）
   ========================================================================== */

@media screen and (min-width: 768px) {
  #site-navigation .onepress-menu li#menu-item-3097 {
    align-self: center;
  }

  #site-navigation .onepress-menu li#menu-item-3097 > a,
  #site-navigation .onepress-menu li#menu-item-3097 > a:visited,
  #site-navigation .onepress-menu li#menu-item-3097.current-menu-item > a,
  #site-navigation .onepress-menu li#menu-item-3097.current-menu-ancestor > a {
    display: inline-flex !important;
    align-items: center;
    height: auto !important;
    min-height: 0 !important;
    padding: 3px 14px !important;
    margin-left: 0;
    background: #2CA84A;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2 !important;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(31, 143, 61, 0.2);
    transition: background var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), box-shadow var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  }

  #site-navigation .onepress-menu li#menu-item-3097 > a:hover,
  #site-navigation .onepress-menu li#menu-item-3097 > a:focus {
    background: #1F8F3D !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 143, 61, 0.3);
  }

  /* OnePress 內建 hover 金色線 ::before 原預設 `bottom: 18px` 是針對 76px
     高的選單列計算；膠囊只有 ~30px 高，金色線會跑到文字上方甚至超過頂端。
     重新定位到膠囊下方 6px 並換成綠色漸層，與膠囊配色一致 */
  #site-navigation .onepress-menu li#menu-item-3097 > a::before {
    bottom: -3px !important;
    left: 14px !important;
    right: 14px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #1F8F3D, #2CA84A) !important;
  }
}

@media screen and (max-width: 767px) {
  #site-navigation .onepress-menu li#menu-item-3097 > a {
    color: #1F8F3D !important;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-navigation .onepress-menu li#menu-item-3097 > a {
    transition: none;
  }
  #site-navigation .onepress-menu li#menu-item-3097 > a:hover,
  #site-navigation .onepress-menu li#menu-item-3097 > a:focus {
    transform: none;
  }
}

/* ==========================================================================
   §10.1「成績儀表板」選單項：橘底膠囊（Lyndon 2026-09-17）
   原因：Lyndon 要求在「數位學習」旁再放一顆成績儀表板登入入口，
        與綠膠囊同一套規格、換品牌橘，兩顆之間留一點間隔以免黏在一起。
   做法：用 #menu-item-5167 鎖定該項；規格完全比照 §10，只換三處
        - 底色 #FF6600 / hover #E8670A
        - 間距改由 .hr-navpills 容器的 gap 負責（2026-09-17 改雙層排列後，兩顆 margin-left 皆歸 0）
        - hover 金色線改橘色漸層
   ⚠ 這兩顆是「同系列元件」：日後改其中一顆的尺寸、圓角、padding 或動畫，
     另一顆必須一起改，否則並排時會看出高度或形狀不一致。
   ========================================================================== */

@media screen and (min-width: 768px) {
  #site-navigation .onepress-menu li#menu-item-5167 {
    align-self: center;
  }

  #site-navigation .onepress-menu li#menu-item-5167 > a,
  #site-navigation .onepress-menu li#menu-item-5167 > a:visited,
  #site-navigation .onepress-menu li#menu-item-5167.current-menu-item > a,
  #site-navigation .onepress-menu li#menu-item-5167.current-menu-ancestor > a {
    display: inline-flex !important;
    align-items: center;
    height: auto !important;
    min-height: 0 !important;
    padding: 3px 14px !important;
    margin-left: 0;
    background: #FF6600;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2 !important;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(232, 103, 10, 0.22);
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  #site-navigation .onepress-menu li#menu-item-5167 > a:hover,
  #site-navigation .onepress-menu li#menu-item-5167 > a:focus {
    background: #E8670A !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(232, 103, 10, 0.32);
  }

  #site-navigation .onepress-menu li#menu-item-5167 > a::before {
    bottom: -3px !important;
    left: 14px !important;
    right: 14px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #E8670A, #FF6600) !important;
  }
}

@media screen and (max-width: 767px) {
  #site-navigation .onepress-menu li#menu-item-5167 > a {
    color: #E8670A !important;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-navigation .onepress-menu li#menu-item-5167 > a {
    transition: none;
  }
  #site-navigation .onepress-menu li#menu-item-5167 > a:hover,
  #site-navigation .onepress-menu li#menu-item-5167 > a:focus {
    transform: none;
  }
}

/* ==========================================================================
   §11 隱藏 OnePress 預設頁面標題區塊
   原因：部分固定頁內容本身已有完整 hero 與主標題；OnePress 在內容上方
        額外輸出 .page-header / .entry-title，會造成頁首重複標題與空白間隔。
   範圍：只鎖定指定 page ID，不影響其他固定頁或文章標題。新增頁時加新
        selector 即可。
   ========================================================================== */

.page-id-4691 .page-header,
.page-id-4691 .entry-title,
.page-id-4667 .page-header,
.page-id-4667 .entry-title,
.page-id-3548 .page-header,
.page-id-3548 .entry-title,
.page-id-3574 .page-header,
.page-id-3574 .entry-title,
.page-id-2699 .page-header,
.page-id-2699 .entry-title,
.page-id-2722 .page-header,
.page-id-2722 .entry-title,
.page-id-4317 .page-header,
.page-id-4317 .entry-title,
.page-id-4806 .page-header,
.page-id-4806 .entry-title,
.postid-4779 .page-header,
.postid-4779 .entry-title,
.postid-5039 .page-header,
.postid-5039 .entry-title,
.postid-5052 .page-header,
.postid-5052 .entry-title,
.postid-5055 .page-header,
.postid-5055 .entry-title,
.postid-5058 .page-header,
.postid-5058 .entry-title,
.postid-5061 .page-header,
.postid-5061 .entry-title,
.postid-5064 .page-header,
.postid-5064 .entry-title,
.postid-5067 .page-header,
.postid-5067 .entry-title,
.postid-5070 .page-header,
.postid-5070 .entry-title,
.postid-5073 .page-header,
.postid-5073 .entry-title,
.page-id-4726 .page-header,
.page-id-4726 .entry-title,
.page-id-4318 .page-header,
.page-id-4318 .entry-title,
.page-id-24 .page-header,
.page-id-24 .entry-title,
.page-id-25 .page-header,
.page-id-25 .entry-title,
.page-id-4377 .page-header,
.page-id-4377 .entry-title,
.page-id-22 .page-header,
.page-id-22 .entry-title,
.postid-1753 .page-header,
.postid-1753 .entry-title,
.page-id-2440 .page-header,
.page-id-2440 .entry-title,
.page-id-2557 .page-header,
.page-id-2557 .entry-title,
.postid-2589 .page-header,
.postid-2589 .entry-title,
.postid-3235 .page-header,
.postid-3235 .entry-title,
.page-id-3516 .page-header,
.page-id-3516 .entry-title,
.page-id-3680 .page-header,
.page-id-3680 .entry-title,
.postid-3740 .page-header,
.postid-3740 .entry-title,
.postid-4045 .page-header,
.postid-4045 .entry-title,
.postid-4054 .page-header,
.postid-4054 .entry-title,
.postid-4703 .page-header,
.postid-4703 .entry-title,
.page-id-4465 .page-header,
.page-id-4465 .entry-title,
.page-id-4543 .page-header,
.page-id-4543 .entry-title,
.page-id-3755 .page-header,
.page-id-3755 .entry-title,
.page-id-3765 .page-header,
.page-id-3765 .entry-title,
.page-id-3769 .page-header,
.page-id-3769 .entry-title,
.page-id-3799 .page-header,
.page-id-3799 .entry-title,
.page-id-4009 .page-header,
.page-id-4009 .entry-title,
.page-id-4030 .page-header,
.page-id-4030 .entry-title,
.page-id-4401 .page-header,
.page-id-4401 .entry-title,
.page-id-4416 .page-header,
.page-id-4416 .entry-title,
.page-id-4417 .page-header,
.page-id-4417 .entry-title,
.page-id-4418 .page-header,
.page-id-4418 .entry-title,
.page-id-4419 .page-header,
.page-id-4419 .entry-title,
.page-id-4420 .page-header,
.page-id-4420 .entry-title,
.page-id-4421 .page-header,
.page-id-4421 .entry-title,
.page-id-4422 .page-header,
.page-id-4422 .entry-title,
.page-id-4423 .page-header,
.page-id-4423 .entry-title,
.page-id-4424 .page-header,
.page-id-4424 .entry-title,
.page-id-4425 .page-header,
.page-id-4492 .page-header,
.page-id-4492 .entry-title,
.page-id-4496 .page-header,
.page-id-4496 .entry-title,
.page-id-4497 .page-header,
.page-id-4497 .entry-title,
.page-id-4551 .page-header,
.page-id-4551 .entry-title,
.page-id-4559 .page-header,
.page-id-4559 .entry-title,
.page-id-4425 .entry-title {
  display: none !important;
}

body:is(
  .page-id-22, .postid-22,
  .page-id-24, .postid-24,
  .page-id-25, .postid-25,
  .page-id-1753, .postid-1753,
  .page-id-2440, .postid-2440,
  .page-id-2557, .postid-2557,
  .page-id-2589, .postid-2589,
  .page-id-2699, .postid-2699,
  .page-id-2722, .postid-2722,
  .page-id-3235, .postid-3235,
  .page-id-3516, .postid-3516,
  .page-id-3548, .postid-3548,
  .page-id-3574, .postid-3574,
  .page-id-3680, .postid-3680,
  .page-id-3740, .postid-3740,
  .page-id-3755, .postid-3755,
  .page-id-3765, .postid-3765,
  .page-id-3769, .postid-3769,
  .page-id-3799, .postid-3799,
  .page-id-4009, .postid-4009,
  .page-id-4030, .postid-4030,
  .page-id-4045, .postid-4045,
  .page-id-4054, .postid-4054,
  .page-id-4317, .postid-4317,
  .page-id-4318, .postid-4318,
  .page-id-4377, .postid-4377,
  .page-id-4401, .postid-4401,
  .page-id-4416, .postid-4416,
  .page-id-4417, .postid-4417,
  .page-id-4418, .postid-4418,
  .page-id-4419, .postid-4419,
  .page-id-4420, .postid-4420,
  .page-id-4421, .postid-4421,
  .page-id-4422, .postid-4422,
  .page-id-4423, .postid-4423,
  .page-id-4424, .postid-4424,
  .page-id-4425, .postid-4425,
  .page-id-4465, .postid-4465,
  .page-id-4492, .postid-4492,
  .page-id-4496, .postid-4496,
  .page-id-4497, .postid-4497
) #content,
body:is(
  .page-id-22, .postid-22,
  .page-id-24, .postid-24,
  .page-id-25, .postid-25,
  .page-id-1753, .postid-1753,
  .page-id-2440, .postid-2440,
  .page-id-2557, .postid-2557,
  .page-id-2589, .postid-2589,
  .page-id-2699, .postid-2699,
  .page-id-2722, .postid-2722,
  .page-id-3235, .postid-3235,
  .page-id-3516, .postid-3516,
  .page-id-3548, .postid-3548,
  .page-id-3574, .postid-3574,
  .page-id-3680, .postid-3680,
  .page-id-3740, .postid-3740,
  .page-id-3755, .postid-3755,
  .page-id-3765, .postid-3765,
  .page-id-3769, .postid-3769,
  .page-id-3799, .postid-3799,
  .page-id-4009, .postid-4009,
  .page-id-4030, .postid-4030,
  .page-id-4045, .postid-4045,
  .page-id-4054, .postid-4054,
  .page-id-4317, .postid-4317,
  .page-id-4318, .postid-4318,
  .page-id-4377, .postid-4377,
  .page-id-4401, .postid-4401,
  .page-id-4416, .postid-4416,
  .page-id-4417, .postid-4417,
  .page-id-4418, .postid-4418,
  .page-id-4419, .postid-4419,
  .page-id-4420, .postid-4420,
  .page-id-4421, .postid-4421,
  .page-id-4422, .postid-4422,
  .page-id-4423, .postid-4423,
  .page-id-4424, .postid-4424,
  .page-id-4425, .postid-4425,
  .page-id-4465, .postid-4465,
  .page-id-4492, .postid-4492,
  .page-id-4496, .postid-4496,
  .page-id-4497, .postid-4497
) #content-inside.container {
  padding-top: 0 !important;
}

body:is(
  .page-id-22, .postid-22,
  .page-id-24, .postid-24,
  .page-id-25, .postid-25,
  .page-id-1753, .postid-1753,
  .page-id-2440, .postid-2440,
  .page-id-2557, .postid-2557,
  .page-id-2589, .postid-2589,
  .page-id-2699, .postid-2699,
  .page-id-2722, .postid-2722,
  .page-id-3235, .postid-3235,
  .page-id-3516, .postid-3516,
  .page-id-3548, .postid-3548,
  .page-id-3574, .postid-3574,
  .page-id-3680, .postid-3680,
  .page-id-3740, .postid-3740,
  .page-id-3755, .postid-3755,
  .page-id-3765, .postid-3765,
  .page-id-3769, .postid-3769,
  .page-id-3799, .postid-3799,
  .page-id-4009, .postid-4009,
  .page-id-4030, .postid-4030,
  .page-id-4045, .postid-4045,
  .page-id-4054, .postid-4054,
  .page-id-4317, .postid-4317,
  .page-id-4318, .postid-4318,
  .page-id-4377, .postid-4377,
  .page-id-4401, .postid-4401,
  .page-id-4416, .postid-4416,
  .page-id-4417, .postid-4417,
  .page-id-4418, .postid-4418,
  .page-id-4419, .postid-4419,
  .page-id-4420, .postid-4420,
  .page-id-4421, .postid-4421,
  .page-id-4422, .postid-4422,
  .page-id-4423, .postid-4423,
  .page-id-4424, .postid-4424,
  .page-id-4425, .postid-4425,
  .page-id-4465, .postid-4465,
  .page-id-4492, .postid-4492,
  .page-id-4496, .postid-4496,
  .page-id-4497, .postid-4497
) .entry-content {
  margin-top: 0 !important;
}

body:is(
  .page-id-22, .postid-22,
  .page-id-24, .postid-24,
  .page-id-25, .postid-25,
  .page-id-1753, .postid-1753,
  .page-id-2440, .postid-2440,
  .page-id-2557, .postid-2557,
  .page-id-2589, .postid-2589,
  .page-id-2699, .postid-2699,
  .page-id-2722, .postid-2722,
  .page-id-3235, .postid-3235,
  .page-id-3516, .postid-3516,
  .page-id-3548, .postid-3548,
  .page-id-3574, .postid-3574,
  .page-id-3680, .postid-3680,
  .page-id-3740, .postid-3740,
  .page-id-3755, .postid-3755,
  .page-id-3765, .postid-3765,
  .page-id-3769, .postid-3769,
  .page-id-3799, .postid-3799,
  .page-id-4009, .postid-4009,
  .page-id-4030, .postid-4030,
  .page-id-4045, .postid-4045,
  .page-id-4054, .postid-4054,
  .page-id-4317, .postid-4317,
  .page-id-4318, .postid-4318,
  .page-id-4377, .postid-4377,
  .page-id-4401, .postid-4401,
  .page-id-4416, .postid-4416,
  .page-id-4417, .postid-4417,
  .page-id-4418, .postid-4418,
  .page-id-4419, .postid-4419,
  .page-id-4420, .postid-4420,
  .page-id-4421, .postid-4421,
  .page-id-4422, .postid-4422,
  .page-id-4423, .postid-4423,
  .page-id-4424, .postid-4424,
  .page-id-4425, .postid-4425,
  .page-id-4465, .postid-4465,
  .page-id-4492, .postid-4492,
  .page-id-4496, .postid-4496,
  .page-id-4497, .postid-4497
) #primary {
  padding-top: 0 !important;
}

/* ==========================================================================
   §12 首頁評價區（#Testimonials 醫牙錄取見證）改版
   原因：OnePress 預設 card-inverse 彩色卡偏傳單感；改為參考頁 testimonial.to
        乾淨白卡——錄取校系改成頂部橘色徽章、作者移到底部圓形頭像。
   範圍：只鎖定 .section-testimonials，不影響其他 .card。
   搭配：首頁 Google 評論精選帶由 sandbox homepage-reviews-strip.php 注入。
   ========================================================================== */

.section-testimonials { background: #F7F6F4; }
.section-testimonials .section-title { color: #2A2A2A; }
.section-testimonials .section-desc p { color: #6B6B6B; margin: 0; }
.section-testimonials .card-deck { align-items: stretch; }

.section-testimonials .card,
.section-testimonials .card.card-inverse {
  background: #fff !important;
  border: 1px solid #ECE8E2;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(40, 30, 15, 0.07);
  overflow: hidden;
  color: #2A2A2A !important;
  display: flex;
  flex-direction: column;
}

.section-testimonials .card-block {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 錄取校系徽章 → 矮一些、更精緻（漸層 + 柔光），置頂左對齊 */
.section-testimonials .card-title {
  order: -1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FF6600, #E8670A);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 5px 13px;
  border-radius: 999px;
  margin: 0 0 16px;
  box-shadow: 0 3px 10px rgba(232, 103, 10, 0.28);
}
.section-testimonials .card-title::before { content: "🎓"; font-size: 0.82rem; }

/* 內文 → 小一點、輕一點（暖灰、weight 400）。直接鎖 .card-block p：
   OnePress 輸出無效巢狀 `<p class="card-text"><p>…</p></p>`，瀏覽器把內層 p
   拆成 .card-text 的兄弟節點，故 .card-text p 不命中，需鎖 .card-block p。 */
.section-testimonials .card-text,
.section-testimonials .card-text p,
.section-testimonials .card-block p {
  color: #3A3733 !important;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
}

/* 作者區 → margin-top:auto 釘到卡片底部，三卡分隔線/頭像切齊 */
.section-testimonials .tes_author {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #EFEAE3;
}
.section-testimonials .tes_author img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #FFE6D2;
}
/* 姓名 cite 強制深色（蓋過 OnePress Plus `.card-inverse .tes_author cite` 白字 0,2,1）*/
.section-testimonials .tes_author cite,
.section-testimonials .tes__name {
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #2A2A2A !important;
}
.section-testimonials .tes__name span {
  font-weight: 500;
  font-size: 0.78rem;
  color: #9A958C !important;
}

/* ==========================================================================
   §13 首頁各 section 標題區「主標↔副標」間距統一
   對齊首頁 Google 評論精選帶 .hr-hp-rv-head 的緊湊節奏：主標↔副標 4px、
   標題區→內容 34px。OnePress 預設 `.section-desc{margin-top:40px}` 偏鬆、
   `.section-title-area{margin-bottom:60px}`（小螢幕 30px）各斷點不一。
   範圍：只鎖首頁 `body.home`；桌機 / 平板 / 手機一致——靠 (0,2,0) specificity
   蓋過 OnePress (0,1,0) 各斷點規則，故不需 media query。
   ========================================================================== */
.home .section-title-area {
  margin-bottom: 34px;
}
.home .section-desc {
  margin-top: 4px;
}


/* ==========================================================================
   §12 全站 Cookie 使用提示列（來源：repo css/cookie-notice.css）
   HTML/JS 注入點：wp-content/novamira-sandbox/cookie-notice-footer.php（wp_footer hook）
   依 docs/brand-guidelines.md：橘色僅用於 CTA，提示列本體淺色不鋪滿橘
   BEM block = cookie-notice，CSS 變數前綴 --cn-，引用 brand-tokens.css --brand-* 變數（附 fallback）
   ========================================================================== */

.cookie-notice {
  --cn-radius: 14px;
  --cn-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);

  position: fixed;
  right: 16px;
  left: auto;
  bottom: 16px;
  z-index: 9990;
  width: min(440px, calc(100% - 32px));
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background-color: var(--brand-bg, #FFFFFF);
  color: var(--brand-text, #333333);
  border: 1px solid var(--brand-border, #E0E0E0);
  border-radius: var(--cn-radius);
  box-shadow: var(--cn-shadow);
  font-size: 14px;
  line-height: 1.7;
  transition:
    transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    opacity var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

/* JS 加上此 modifier 才滑入顯示 */
.cookie-notice--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-notice .cookie-notice__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--brand-text, #333333);
}

.cookie-notice__link {
  color: var(--brand-primary, #FF6600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__link:hover {
  color: var(--brand-primary-dark, #E8670A);
}

.cookie-notice__actions {
  flex-shrink: 0;
}

/* outlined 樣式：白底＋橘邊框＋橘文字。hover 才填橘色。
   依品牌規範 §5「主色不過載」——Cookie 提示不是主要 CTA，僅以橘色描邊保留識別。 */
.cookie-notice__btn {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 9px 22px;
  border-radius: 999px;
  background-color: transparent;
  border: 1.5px solid var(--brand-primary, #FF6600);
  color: var(--brand-primary, #FF6600);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    border-color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.cookie-notice__btn:hover {
  background-color: var(--brand-primary, #FF6600);
  border-color: var(--brand-primary, #FF6600);
  color: #FFFFFF;
}

.cookie-notice__btn:active {
  background-color: var(--brand-primary-dark, #E8670A);
  border-color: var(--brand-primary-dark, #E8670A);
  color: #FFFFFF;
  transform: scale(0.97);
}

.cookie-notice__btn:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.4);
  outline-offset: 2px;
}

/* 手機：靠底單列，文字在左、按鈕在右，並讓開 iPhone home indicator */
@media (max-width: 600px) {
  .cookie-notice {
    right: 0;
    left: auto;
    bottom: 0;
    width: calc(100% - 72px);
    border-radius: var(--cn-radius) 0 0 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .cookie-notice .cookie-notice__text {
    font-size: 13px;
    line-height: 1.6;
  }

  .cookie-notice__btn {
    width: auto;
    padding: 10px 16px;
    min-height: 40px;
  }
}

/* 尊重「減少動態效果」偏好：不滑入，直接定位顯示 */
@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    transition: none;
    transform: translateY(0);
  }
}


/* ===== 20260522 修復手機漢堡選單 =====
   問題：OnePress/Plus 改版後，開選單時加的 class 由 #site-navigation.toggled-on
   改成 .onepress-menu.onepress-menu-mobile，舊「打開」規則失效，選單卡在 display:none；
   且 #site-navigation 的 backdrop-filter 會成為絕對/固定定位選單的「包含塊」，而它在
   header-right-wrapper(flex) 內寬度為 0，使 .onepress-menu-mobile 的 width:100% 變成 0，
   選單擠成右側細條。
   解法：手機(<=991px)取消 #site-navigation 的定位與濾鏡(使其不再是包含塊)，
   讓 OnePress 的絕對定位選單錨定到全寬 .container，並把下拉面板樣式移到選單本身。 */
@media screen and (max-width: 1140px) {
  #site-navigation {
    position: static !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  #site-navigation .onepress-menu.onepress-menu-mobile {
    display: block !important;
    background: rgba(255, 255, 255, 0.98) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
    border-radius: 0 0 16px 16px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
}


/* 20260522 hamburger open: hide middle bar to form X (pairs with custom #nav-toggle styling) */
#nav-toggle.nav-is-visible span { background: transparent !important; }

/* ==========================================================================
   §16 宏儒麵包屑 hr-breadcrumb
   引擎：Rank Math（rank_math_the_breadcrumbs），注入於 onepress_page_before_content
   結構：.hr-breadcrumb（全寬細條）內含 .hr-breadcrumb__inner（置中容器），
         內層沿用 Rank Math 的 .rank-math-breadcrumb p、a、span.separator、純文字 current
   色彩階層：連結用中性灰、current（純文字）用文字主色、separator 淺灰；hover 宏儒橘。
   來源：css/breadcrumbs.css；部署：Additional CSS post 1554
   注意：CSS 內不可有尖括號（kses 會拒存整份 CSS）
   ========================================================================== */
.hr-breadcrumb {
    background: #F7F5F2;
    border-bottom: 1px solid #ECE8E3;
    width: 100%;
    margin-top: 2px;
}
.hr-breadcrumb__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 9px clamp(16px, 4vw, 30px);
}
.hr-breadcrumb .rank-math-breadcrumb {
    margin: 0;
}
.hr-breadcrumb .rank-math-breadcrumb p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #3A3733;
    font-family: 'Noto Sans TC', sans-serif;
    word-break: break-word;
}
.hr-breadcrumb a {
    color: #8A817A;
    text-decoration: none;
    transition: color var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
    /* 手機點擊目標最小 24px：連結文字僅 12-13px、盒高約 20px，用上下 padding 把
       可點範圍擴到 36px。inline 排版下垂直 padding 不影響行高；600px 以下的
       flex 排版由 media query 內負 margin 抵銷高度，視覺完全不變。 */
    padding-top: 8px;
    padding-bottom: 8px;
}
.hr-breadcrumb a:hover,
.hr-breadcrumb a:focus {
    color: #FF6600;
}
.hr-breadcrumb .separator {
    color: #C9C2BA;
    margin: 0 4px;
}
@media (max-width: 600px) {
    .hr-breadcrumb__inner {
        padding: 8px 16px;
    }
    .hr-breadcrumb .rank-math-breadcrumb p {
        display: flex;
        align-items: center;
        font-size: 12px;
        gap: 0;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }
    .hr-breadcrumb .rank-math-breadcrumb p a,
    .hr-breadcrumb .rank-math-breadcrumb p .separator,
    .hr-breadcrumb .rank-math-breadcrumb p .last:not(:last-child) {
        flex: 0 0 auto;
    }
    /* flex item 的垂直 padding 會撐高整條 bar，用負 margin 抵銷（點擊區仍為 36px） */
    .hr-breadcrumb .rank-math-breadcrumb p a {
        margin-top: -8px;
        margin-bottom: -8px;
    }
    /* mobile: 藏當頁標題 .last:last-child（不論有無 group），保留前一個 separator
       做 trailing 提示「還有層」。改善：原 :has(.last:not(:last-child)) 只在 group
       頁面生效，且連 trailing separator 也藏掉導致斷尾；此處統一處理。 */
    .hr-breadcrumb .rank-math-breadcrumb p .last:last-child {
        display: none;
    }
}

/* 收掉 OnePress content-page.php 內永遠為空的 .entry-header（主題已把 the_title 註解掉），
   否則它的預設 margin 會在麵包屑與內文 hero 之間留下一條空白帶（default template 頁面才有）。
   只比對 article.type-page，不影響文章 single 的 entry-header。
   用後代選擇器（非 child 組合子），因 Additional CSS 不可含尖括號。 */
article.type-page .entry-header {
    display: none;
}

/* 例外：搜尋／彙整／部落格列表頁，page 型結果的 .entry-header 內含「可點的標題連結」，
   不可被上面規則隱藏，否則 page 型搜尋結果點不進去。只在這些列表情境恢復顯示。 */
body.search article.type-page .entry-header,
body.archive article.type-page .entry-header,
body.blog article.type-page .entry-header {
    display: block;
}

/* 搜尋結果頁：摘要內文字級縮到適當大小、改回易讀深灰
   （原 .entry-excerpt 容器被設成 25px、整段橘色 #DD8500，偏大且不好讀）。 */
body.search .entry-summary,
body.search .entry-excerpt,
body.search .entry-summary p,
body.search .entry-excerpt p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555555;
}

/* 自訂 hero 文章由 onepress-hide-duplicate-h1.php 依 _hr_hide_single_entry_title
   加上 .hr-custom-hero-post。這類文章內文已有自己的 H1；
   OnePress single.php 的空 entry-header 與 #primary 上距會在麵包屑與 hero 間留白。 */
body.hr-custom-hero-post article.type-post .entry-header {
    display: none;
}
body.hr-custom-hero-post #primary {
    padding: 0;
}
body.hr-custom-hero-post #content-inside.container {
    padding-top: 0;
}
body.hr-custom-hero-post .entry-content {
    margin-top: 0;
}

/* 預設模板頁面 #primary 有 padding-top/bottom 40px（fullwidth-stretched 模板則為 0）。
   「預設模板 + 自訂全幅 hero」頁面那 40px 會在麵包屑與 hero 之間留白帶；
   比照 fullwidth-stretched 把 #primary padding 歸零，讓 hero 緊貼麵包屑。
   .hr-fullbleed-page 由 breadcrumbs-hook.php 自動偵測加上（新增同類頁面免手動維護）；
   下方 page-id 為保險用的明確清單（即使偵測失效也涵蓋已知 3 頁）。 */
.hr-fullbleed-page #primary,
.page-id-4559 #primary,
.page-id-4543 #primary,
.page-id-4492 #primary {
    padding: 0;
}
/* ==========================================================================
   §17 導覽下拉修正（2026-06-07）
   1) 強調「升學資源連結」(4578)：上分隔線 + 淺橘底 + 橘字加粗
   2) 下拉固定寬 + 長標題換行，避免面板過寬跑出版面（桌機）
   3) 108課綱/升學資訊(3118) 第三層 flyout 改往左開，避免右側溢出畫面（桌機）
   注意：用後代選擇器，不用 child 組合子（避免尖括號被 kses 擋）
   ========================================================================== */
.onepress-menu .sub-menu li.menu-item-4578 { border-top: 1px solid #ECE6DD; background: #FFF4EB; }
#site-navigation .onepress-menu .sub-menu li.menu-item-4578 a { color: #E8670A !important; font-weight: 800 !important; }
#site-navigation .onepress-menu .sub-menu li.menu-item-4578 a:hover { background: #FFE3CC !important; color: #E8670A !important; }
@media (min-width: 1141px) {
  .onepress-menu .sub-menu { width: 288px; max-width: 88vw; }
  .onepress-menu .sub-menu a { white-space: normal; line-height: 1.5; }
  #site-navigation .onepress-menu .menu-item-3118 .sub-menu .sub-menu,#site-navigation .onepress-menu .menu-item-3108 .sub-menu .sub-menu { left: auto !important; right: 100% !important; }
  .onepress-menu .sub-menu li.menu-item-4578 { margin-top: 6px; }
}


/* §18 首頁師資區 #teacher 圖片改 cover（原 fill 會拉變形） */
#teacher .member-thumb img,
.onepress-section-team .member-thumb img {
    object-fit: cover !important;
    object-position: center top !important;
}
/* §19 首頁 hero CLS 修正：預留 hero 高度（viewport-74px）避免 backstretch JS 撐開前塌陷造成位移 */
#hero.hero-slideshow-wrapper { min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); }
/* 2026-11-04 桌機 CLS：父層只有 min-height 時 top:50% 算成 0，文字先偏上、JS 補 height 才跳回正中；給明確高度＝JS 之後寫入的同一值 */
#hero.hero-slideshow-wrapper.hero-slideshow-fullscreen { height: calc(100vh - 74px); height: calc(100svh - 74px); }

/* 115 榜單文章 post 4703：移除 #primary 預設 40px 上 padding，消除 hero 上方白塊 */
.postid-4703 #primary{padding-top:0}

@media (max-width:600px){.postid-4703 .hr-breadcrumb .rank-math-breadcrumb p{flex-wrap:wrap}.postid-4703 .hr-breadcrumb .rank-math-breadcrumb p .last:last-child{display:inline;white-space:normal}}

.cp-mockfig{margin:0 auto}.cp-mockfig + .cp-resource{padding-top:96px}.cp-mockfig ~ .cp-resource{padding-bottom:96px}@media(max-width:640px){.cp-mockfig + .cp-resource{padding-top:56px}.cp-mockfig ~ .cp-resource{padding-bottom:56px}}

.page-id-4726 #primary{padding-top:0}

/* ==========================================================================
   §20 文章分類封存頁（2026-06-21）
   目標：分類名稱與說明先建立清楚層級，再以文章卡片呈現內容。
   範圍：只作用於 category archive，不影響標籤、搜尋、首頁 news 或一般文章頁。
   ========================================================================== */
body.category .page-header:not(.page--cover) {
  padding: 52px 0 46px;
  border: 0;
  border-bottom: 1px solid #F0E7DE;
  background: linear-gradient(180deg, #FFFCF8 0%, #FFF6ED 100%);
  text-align: center;
}

body.category .page-header .container {
  max-width: 920px;
  padding-right: 24px;
  padding-left: 24px;
}

body.category .page-header .page-title {
  margin: 0;
  color: #8A8177;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: none;
}

body.category .page-header .page-title span {
  display: block;
  margin-top: 9px;
  color: #2D3548;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

body.category .taxonomy-description {
  max-width: 760px;
  margin: 18px auto 0;
}

body.category .taxonomy-description p {
  margin: 0;
  color: #555555;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

body.category #content-inside {
  padding-top: 52px;
  padding-bottom: 72px;
}

body.category .site-main {
  display: grid;
  gap: 20px;
}

body.category .site-main .list-article,
body.category .site-main .list-article:first-child,
body.category .site-main .list-article:last-of-type {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 0;
  padding: 24px;
  border: 1px solid #ECE8E2;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(45, 53, 72, 0.06);
  transition: transform var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)), box-shadow var(--brand-transition, 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

body.category .site-main .list-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(45, 53, 72, 0.1);
}

body.category .list-article-thumb {
  display: block;
  float: none;
  flex: 0 0 320px;
  width: 320px;
  margin: 0;
}

body.category .list-article-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 12px;
  object-fit: cover;
}

body.category .list-article-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

body.category .list-article .list-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: transparent;
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

body.category .list-article .list-article-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #FFD9BD;
  border-radius: 999px;
  background: #FFF4EB;
  color: #C95408;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

body.category .list-article .entry-title {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

body.category .list-article .entry-excerpt p {
  color: #5B5B5B;
  font-size: 1rem;
  line-height: 1.8;
}

@media screen and (max-width: 991px) {
  body.category .site-main .list-article,
  body.category .site-main .list-article:first-child,
  body.category .site-main .list-article:last-of-type {
    gap: 22px;
    padding: 20px;
  }

  body.category .list-article-thumb {
    display: block;
    flex-basis: 280px;
    width: 280px;
  }
}

@media screen and (max-width: 767px) {
  body.category .page-header:not(.page--cover) {
    padding: 38px 0 34px;
  }

  body.category .page-header .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.category .page-header .page-title span {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  body.category .taxonomy-description {
    margin-top: 14px;
  }

  body.category .taxonomy-description p {
    font-size: 15px;
    line-height: 1.75;
  }

  body.category #content-inside {
    padding-top: 32px;
    padding-bottom: 52px;
  }

  body.category .site-main {
    gap: 16px;
  }

  body.category .site-main .list-article,
  body.category .site-main .list-article:first-child,
  body.category .site-main .list-article:last-of-type {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
  }

  body.category .list-article-thumb {
    display: block;
    flex-basis: auto;
    width: 100%;
  }

  body.category .list-article .entry-title {
    font-size: 20px;
    line-height: 1.4;
  }

  body.category .list-article .entry-excerpt p {
    font-size: 15px;
    line-height: 1.75;
  }

  body.category .list-article .list-article-meta a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.category .site-main .list-article {
    transition: none;
  }

  body.category .site-main .list-article:hover {
    transform: none;
  }
}

.postid-4779 #primary{padding-top:0}

.page-id-4806 #primary{padding-top:0}

/* ==========================================================================
   全站手機內文可讀性層（2026-08-10）
   用途：Additional CSS 的行動版字級基準；桌機版不變。
   原則：先把 OnePress 手機 root 從 14px 拉回 16px，讓各頁 rem 尺度回到設計值。
   ========================================================================== */
@media screen and (max-width: 991px) {
  html {
    font-size: 16px;
  }
}


/*
 * 掃描命中的內文元件：只提高 2026-08-10 實測低於 16px 的群組。
 * 使用 important 是為了蓋過各頁 post_content 內較晚載入的 scoped style；
 * tag、eyebrow、meta、note 等微文字不在本清單，由既有 12px／14px層管理。
 */
@media screen and (max-width: 991px) {
html body article#post-1753.list-article.clearfix.post-1753 div.list-article-content div.entry-excerpt p,
  html body article#post-2169.list-article.clearfix.post-2169 div.list-article-content div.entry-excerpt p,
  html body article#post-2322.list-article.clearfix.post-2322 div.list-article-content div.entry-excerpt p,
  html body article#post-2419.list-article.clearfix.post-2419 div.list-article-content div.entry-excerpt p,
  html body article#post-2532.list-article.clearfix.post-2532 div.list-article-content div.entry-excerpt p,
  html body article#post-2589.list-article.clearfix.post-2589 div.list-article-content div.entry-excerpt p,
  html body article#post-2664.list-article.clearfix.post-2664 div.list-article-content div.entry-excerpt p,
  html body article#post-2683.list-article.clearfix.post-2683 div.list-article-content div.entry-excerpt p,
  html body article#post-3235.list-article.clearfix.post-3235 div.list-article-content div.entry-excerpt p,
  html body article#post-3343.list-article.clearfix.post-3343 div.list-article-content div.entry-excerpt p,
  html body article#post-3681.list-article.clearfix.post-3681 div.list-article-content div.entry-excerpt p,
  html body article#post-3740.list-article.clearfix.post-3740 div.list-article-content div.entry-excerpt p,
  html body article#post-4045.list-article.clearfix.post-4045 div.list-article-content div.entry-excerpt p,
  html body article#post-4054.list-article.clearfix.post-4054 div.list-article-content div.entry-excerpt p,
  html body article#post-4166.list-article.clearfix.post-4166 div.list-article-content div.entry-excerpt p,
  html body article#post-4671.list-article.clearfix.post-4671 div.list-article-content div.entry-excerpt p,
  html body article#post-4703.list-article.clearfix.post-4703 div.list-article-content div.entry-excerpt p,
  html body article#post-4779.list-article.clearfix.post-4779 div.list-article-content div.entry-excerpt p,
  html body article.cms section.cms-sources div.cms-wrap ul li,
  html body article.gd section.gd-section div.gd-wrap div.gd-callout p,
  html body article.hrvac section.hrvac-sources div.hrvac-wrap ul li,
  html body div div div.ceo-fade div p,
  html body div div div.ceo-hero-flex div.ceo-hero-info p,
  html body div div.d5-flist div.d5-fitem div.d5-ftxt p,
  html body div div.d5-tl div.d5-tli div.d5-tli-bd p,
  html body div div.d5-tl div.d5-tli.open div.d5-tli-bd p,
  html body div div.hrnr-inner div div p,
  html body div#ceo-wrap div.ceo-fade div p,
  html body div#ceo-wrap div.ceo-fade.ceo-vis div p,
  html body div#content.site-content div.page-header div.container div.taxonomy-description p,
  html body div#gp-wrap div.gp-fade div p,
  html body div#lp-page section div.inner details.faq-item.lp-fiu summary.faq-q,
  html body div#prv-wrap div div p,
  html body div#pv-contact.pv-fade div p,
  html body div#sig-lp section.choice-bg div.inner div.tip.fiu p,
  html body div#sig-lp section.tmpl-bg div.inner div.tblock.fiu p.tdesc,
  html body div.card-deck-wrapper div.card-deck.wow.slideInUp div.card.card-inverse.card-primary div.card-block p,
  html body div.card-deck-wrapper div.card-deck.wow.slideInUp div.card.card-inverse.card-theme-primary div.card-block p,
  html body div.card-deck-wrapper div.card-deck.wow.slideInUp div.card.card-inverse.card-warning div.card-block p,
  html body div.ceo-fade.ceo-vis div div div p,
  html body div.ceo-fade.ceo-vis div div.ceo-cred div.ceo-cred-card p,
  html body div.cms-wrap div.cms-trio article.cms-trio-card ul.cms-trio-card__list li,
  html body div.cms-wrap ol.cms-scenes li.cms-scene div p,
  html body div.container div.sol-item div.sol-visual div.sol-box div.v-desc,
  html body div.container div.sol-item.rev div.sol-visual div.sol-box div.v-desc,
  html body div.cp div.cp-resource div.cp-res-inner div p,
  html body div.entry-content article.cms section.cms-section div.cms-wrap p,
  html body div.entry-content div.d5 section.d5-reviews-sec div.d5-in p,
  html body div.entry-content div.hr-roster section.hr-intro.hr-wrap p,
  html body div.entry-content div.hr-roster section.hr-intro.hr-wrap p.hr-intro-scope,
  html body div.entry-content div.sm-wrap div div p,
  html body div.entry-content div.sm-wrap div.sm-fade div p,
  html body div.environment-feature ol.environment-feature__list li.environment-feature__item div p,
  html body div.environment-page__section div.environment-gallery figure.environment-photo figcaption span.environment-page__photo-text,
  html body div.environment-page__section div.environment-gallery figure.environment-photo.environment-photo--wide figcaption span.environment-page__photo-text,
  html body div.environment-page__section.environment-page__section--map div.environment-map div.environment-map__content ul.environment-map__points li,
  html body div.exam-guide__table-wrap table thead tr th,
  html body div.gd-start ol.gd-steps li.gd-step div p,
  html body div.gd-wrap div.gd-shots figure.gd-shot figcaption p,
  html body div.gp-feat-grid div.gp-card div div p,
  html body div.hrac-table-wrap table.hrac-table tbody tr td,
  html body div.hrac-table-wrap table.hrac-table thead tr th,
  html body div.hras-table-wrap table.hras-table tbody tr td,
  html body div.hras-table-wrap table.hras-table tbody tr.is-key td,
  html body div.hrcal section.hrcal-sec.hrcal-sec--alt div.hrcal-c div.hrcal-phase p,
  html body div.hrcal-table-wrap table.hrcal-table tbody tr td,
  html body div.hrcal-table-wrap table.hrcal-table tbody tr.is-key td,
  html body div.hrcal-table-wrap table.hrcal-table thead tr th,
  html body div.hrcg-faq div.hrcg-faq-item div.hrcg-faq-body div.hrcg-faq-body-inner a,
  html body div.hrcg-inner div div a p,
  html body div.hrcg-inner div.hrcg-faq div.hrcg-faq-item div.hrcg-faq-body div.hrcg-faq-body-inner,
  html body div.hrcg-inner div.hrcg-subject-cols div.hrcg-subj-col ul.hrcg-subj-list li,
  html body div.hrcg-inner div.hrcg-subject-cols div.hrcg-subj-col ul.hrcg-subj-list.hrcg-subj-list--blue li,
  html body div.hrcg-inner div.hrcg-timeline div.hrcg-tl-item div.hrcg-tl-card p,
  html body div.hrcg-wrap section.hrcg-section div.hrcg-inner div p,
  html body div.hrcg-wrap section.hrcg-section.hrcg-section--gray div.hrcg-inner div p,
  html body div.hrcn-table-wrap table.hrcn-table tbody tr td,
  html body div.hrcr-c div.hrcr-gears div.hrcr-gear div p,
  html body div.hrcu-inner div.hrcu-trans div.hrcu-trans-item div p,
  html body div.hreng-inner div.hreng-cards div.hreng-card ul.hreng-sublist li,
  html body div.hreng-tablewrap table.hreng-table tbody tr td,
  html body div.hreng-tablewrap table.hreng-table thead tr th,
  html body div.hreng-wrap section.hreng-section div.hreng-inner a.hreng-read p,
  html body div.hreng-wrap section.hreng-section.hreng-section--gray div.hreng-inner a.hreng-read p,
  html body div.hrfd-table-wrap table.hrfd-table tbody tr td,
  html body div.hrhs-table-wrap table.hrhs-table tbody tr td,
  html body div.hrjhs-table-wrap table.hrjhs-table tbody tr td,
  html body div.hrnr-inner div.hrnr-pricing-grid div.hrnr-price-card div.hrnr-price-body a,
  html body div.hrnr-inner div.hrnr-pricing-grid div.hrnr-price-card div.hrnr-price-head.hrnr-price-head--blue div.hrnr-price-desc,
  html body div.hrnr-inner div.hrnr-pricing-grid div.hrnr-price-card div.hrnr-price-head.hrnr-price-head--green div.hrnr-price-desc,
  html body div.hrnr-inner div.hrnr-pricing-grid div.hrnr-price-card.hrnr-price-card--featured div.hrnr-price-head.hrnr-price-head--org div.hrnr-price-desc,
  html body div.hrnr-pricing-grid div.hrnr-price-card div.hrnr-price-body ul.hrnr-price-list li,
  html body div.hrnr-pricing-grid div.hrnr-price-card.hrnr-price-card--featured div.hrnr-price-body ul.hrnr-price-list li,
  html body div.hrnr-wrap div.hrnr-section div.hrnr-inner div p,
  html body div.hrpo-inner div.hrpo-faq div.hrpo-faq-item div.hrpo-faq-body div.hrpo-faq-body-inner,
  html body div.hrpo-tablewrap table.hrpo-table tbody tr td,
  html body div.hrpo-tablewrap table.hrpo-table tbody tr td.hrpo-hl,
  html body div.hrpo-tablewrap table.hrpo-table thead tr th,
  html body div.hrpo-wrap section.hrpo-section div.hrpo-inner div.hrpo-panel p,
  html body div.hrpo-wrap section.hrpo-section.hrpo-section--gray div.hrpo-inner div.hrpo-panel p,
  html body div.hrprep-c div.hrprep-actions div.hrprep-act div p,
  html body div.hrprep-c div.hrprep-actions div.hrprep-act div p.hrprep-act-why,
  html body div.hrres-c div.hrres-group div.hrres-grid a.hrres-card p,
  html body div.hrscore-c div.hrscore-tips div.hrscore-tip div p,
  html body div.hrscore-table-wrap table.hrscore-table tbody tr td,
  html body div.hrsp section.hrsp-sec.hrsp-sec--alt div.hrsp-c div.hrsp-step p,
  html body div.hrsp-c div.hrsp-cards div.hrsp-card ul li,
  html body div.hrsp-table-wrap table.hrsp-table tbody tr td,
  html body div.hrsp-table-wrap table.hrsp-table thead tr th,
  html body div.hrstar-inner div.hrstar-faq div.hrstar-faq-item div.hrstar-faq-body div.hrstar-faq-body-inner,
  html body div.hrstar-inner div.hrstar-panel ul.hrstar-panel-list li p,
  html body div.hrstar-tablewrap table.hrstar-table tbody tr td,
  html body div.hrstar-tablewrap table.hrstar-table thead tr th,
  html body div.hrstar-wrap section.hrstar-section div.hrstar-inner div.hrstar-panel p,
  html body div.hrt section.hrt-sec div.hrt-c div.hrt-intro-body blockquote.hrt-quote,
  html body div.hrt section.hrt-sec.hrt-cta-sec div.hrt-c div.hrt-cta-inner p,
  html body div.hrt-c div.hrt-checklist div.hrt-check-item div.hrt-check-body p,
  html body div.hrt-c div.hrt-faq-list details.hrt-faq div.hrt-faq-ans p,
  html body div.hrt-c div.hrt-hl-card div.hrt-hl-inner div.hrt-hl-text p,
  html body div.hrt-c div.hrt-hl-card div.hrt-hl-inner ul.hrt-hl-features li,
  html body div.hrt-c div.hrt-rank-list div.hrt-rank-card div.hrt-rank-body div.hrt-rank-desc,
  html body div.hrt-c div.hrt-rank-list div.hrt-rank-card.hrt-rank-card--hl div.hrt-rank-body div.hrt-rank-desc,
  html body div.hrtrk-c div.hrtrk-tips div.hrtrk-tip div p,
  html body div.hrtrk-table-wrap table.hrtrk-table tbody tr td,
  html body div.hrtrk-table-wrap table.hrtrk-table thead tr th,
  html body div.hrtw-diff div.hrtw-row div.hrtw-row-grid div.hrtw-col p,
  html body div.hrtw-inner div.hrtw-steps div.hrtw-step div.hrtw-step-body p,
  html body div.hrtw-tablewrap table.hrtw-table tbody tr td,
  html body div.hrtw-tablewrap table.hrtw-table tbody tr.hrtw-key td,
  html body div.hrtw-tablewrap table.hrtw-table thead tr th,
  html body div.hrup-table-wrap table.hrup-table tbody tr td,
  html body div.hrup-table-wrap table.hrup-table tbody tr th,
  html body div.hrup-table-wrap table.hrup-table thead tr th,
  html body div.hrwhy-c div.hrwhy-fit div.hrwhy-fit-col ul li,
  html body div.hrwhy-c div.hrwhy-fit div.hrwhy-fit-col.hrwhy-fit-col--limit ul li,
  html body div.hrwhy-c div.hrwhy-fit div.hrwhy-fit-col.hrwhy-fit-col--ours ul li,
  html body div.hrwhy-c div.hrwhy-system div.hrwhy-sys-item div p,
  html body div.inner div.tblock.fiu div.tstruct ul li,
  html body div.resit-system ol.resit-system__list li div p,
  html body div.roadmap-wrap div.rm-item div.rm-card ul li,
  html body div.sv2-c div.sv2-cores div.sv2-core ul.sv2-core-list li,
  html body div.sv2-mods div.sv2-mod div.sv2-mod-txt ul.sv2-mod-list li,
  html body div.teacher-page section.tp-features div.tp-container p,
  html body div.teacher-page section.tp-results div.tp-container ul.tp-roll.fu.fu4 li,
  html body main#main.site-main section.hr-hp-rv div.hr-hp-in div.hr-hp-rv-head div.hr-hp-sub,
  html body section div.inner div.cmp-row.lp-fiu div.cmp-old div.cmp-desc,
  html body section div.inner div.res-grid.lp-fiu a.res-link div.res-sub,
  html body section#guide.hreng-section.hreng-section--gray div.hreng-inner div.hreng-guide div.hreng-guide-card p,
  html body section#hras-links.hras-sec div.hras-c div.hras-cards.hras-cards--tri div.hras-card p,
  html body section#hras-score.hras-sec div.hras-c div.hras-cards.hras-cards--tri div.hras-card p,
  html body section#hras-target.hras-sec.hras-sec--alt div.hras-c div.hras-cards div.hras-card p,
  html body section#hras-target.hras-sec.hras-sec--alt div.hras-c div.hras-cards.hras-cards--tri div.hras-card p,
  html body section#hrcn-threshold.hrcn-sec.hrcn-sec--alt div.hrcn-c div.hrcn-threshold div.hrcn-threshold-card p,
  html body section#hrcr-why.hrcr-sec.hrcr-sec--alt div.hrcr-c div.hrcr-vs div.hrcr-vs-card.is-lose p,
  html body section#hrcr-why.hrcr-sec.hrcr-sec--alt div.hrcr-c div.hrcr-vs div.hrcr-vs-card.is-lose p.hrcr-res,
  html body section#hrcr-why.hrcr-sec.hrcr-sec--alt div.hrcr-c div.hrcr-vs div.hrcr-vs-card.is-win p,
  html body section#hrcr-why.hrcr-sec.hrcr-sec--alt div.hrcr-c div.hrcr-vs div.hrcr-vs-card.is-win p.hrcr-res,
  html body section#hrjhs-bands.hrjhs-sec.hrjhs-sec--alt div.hrjhs-c div.hrjhs-bands div.hrjhs-band p,
  html body section#hrwhy-support.hrwhy-sec.hrwhy-sec--alt div.hrwhy-c div.hrwhy-pillars div.hrwhy-card p,
  html body section#pv-s2.pv-fade div div.pv-card div p,
  html body section#schedule.hrcg-section div.hrcg-inner div p,
  html body section#schedule.hrcg-section div.hrcg-inner div.hrcg-subject-grid div.hrcg-subj-card p,
  html body section#star-groups.hrstar-section div.hrstar-inner div.hrstar-panel p,
  html body section#star-groups.hrstar-section div.hrstar-inner div.hrstar-two div.hrstar-mini p,
  html body section#summary.hreng-section div.hreng-inner div.hreng-callout ul li,
  html body section.check-bg div.inner div.ck-grid div.ck-card.fiu p,
  html body section.choice-bg div.inner div.choice-grid div.ccard.fiu p,
  html body section.cp-sec div.cp-in div.cp-cards div.cp-card.cp-rv p,
  html body section.cp-sec div.cp-in div.cp-features div.cp-feat.cp-rv p,
  html body section.d5-sec div.d5-in div.d5-faq.d5-rv details.d5-faq-item summary,
  html body section.d5-sec div.d5-in div.d5-pillars div.d5-pil.d5-rv p,
  html body section.d5-sec div.d5-in div.d5-who div.d5-wcard.d5-rv p,
  html body section.environment-page div.environment-page__section div.environment-visit article.environment-visit__step p,
  html body section.environment-page div.environment-page__section.environment-page__section--muted div.environment-visit article.environment-visit__step p,
  html body section.exam-guide__section div.exam-guide__inner div.exam-guide__split a.exam-guide__related-card p,
  html body section.exam-guide__section div.exam-guide__inner div.exam-guide__split.exam-guide__split--tri a.exam-guide__related-card p,
  html body section.exam-guide__section.exam-guide__section--soft div.exam-guide__inner div.exam-guide__split a.exam-guide__related-card p,
  html body section.faq-bg div.inner div.faq-wrap div.faq-item.fiu p,
  html body section.gd-section div.gd-wrap div.gd-feats article.gd-feat p,
  html body section.gd-section div.gd-wrap div.gd-privacy article.gd-privacy-card p,
  html body section.hmad-section.hmad-section--gray div.hmad-inner div.hmad-cards article.hmad-card p,
  html body section.hr-hp-rv div.hr-hp-in div.hr-hp-rv-grid div.hr-hp-rv-card p.hr-hp-rv-text,
  html body section.hr-rel div div a p,
  html body section.hr-sec.hr-wrap div.hr-grid a.hr-card div.hr-card-body div.hr-card-cta,
  html body section.hr-sec.hr-wrap div.hr-grid a.hr-card div.hr-card-body div.hr-card-real,
  html body section.hrac-sec div.hrac-c div.hrac-cards div.hrac-card p,
  html body section.hrac-sec div.hrac-c div.hrac-faq details p,
  html body section.hrac-sec.hrac-sec--alt div.hrac-c div.hrac-cards.hrac-cards--tri div.hrac-card p,
  html body section.hras-sec.hras-sec--alt div.hras-c div.hras-faq details p,
  html body section.hrcal-sec.hrcal-sec--alt div.hrcal-c div.hrcal-faq details p,
  html body section.hrcg-section div.hrcg-inner div.hrcg-features div.hrcg-feature p,
  html body section.hrcg-section.hrcg-section--gray div.hrcg-inner div a p,
  html body section.hrcg-section.hrcg-section--gray div.hrcg-inner div.hrcg-callout div p,
  html body section.hrcn-sec div.hrcn-c div.hrcn-cards div.hrcn-card p,
  html body section.hrcn-sec div.hrcn-c div.hrcn-cards div.hrcn-card.hrcn-card--blue p,
  html body section.hrcn-sec div.hrcn-c div.hrcn-cards.hrcn-cards--three div.hrcn-card p,
  html body section.hrcn-sec div.hrcn-c div.hrcn-cards.hrcn-cards--three div.hrcn-card.hrcn-card--blue p,
  html body section.hrcn-sec div.hrcn-c div.hrcn-cards.hrcn-cards--three div.hrcn-card.hrcn-card--green p,
  html body section.hrcn-sec.hrcn-sec--alt div.hrcn-c div.hrcn-faq details p,
  html body section.hrcr-sec.hrcr-sec--alt div.hrcr-c div.hrcr-faq details p,
  html body section.hrfd-sec div.hrfd-c div.hrfd-cards div.hrfd-card p,
  html body section.hrfd-sec.hrfd-sec--alt div.hrfd-c div.hrfd-faq details p,
  html body section.hrhs-sec.hrhs-sec--alt div.hrhs-c div.hrhs-cards div.hrhs-card p,
  html body section.hrhs-sec.hrhs-sec--alt div.hrhs-c div.hrhs-faq details p,
  html body section.hrhs-sec.hrhs-sec--alt div.hrhs-c div.hrhs-q div p,
  html body section.hrjhs-sec.hrjhs-sec--alt div.hrjhs-c div.hrjhs-cards div.hrjhs-card p,
  html body section.hrjhs-sec.hrjhs-sec--alt div.hrjhs-c div.hrjhs-faq details p,
  html body section.hrpo-section div.hrpo-inner div.hrpo-callout div p,
  html body section.hrpo-section div.hrpo-inner div.hrpo-cards div.hrpo-card p,
  html body section.hrpo-section div.hrpo-inner div.hrpo-reads a.hrpo-read p,
  html body section.hrpo-section div.hrpo-inner div.hrpo-two div.hrpo-mini p,
  html body section.hrpo-section.hrpo-section--gray div.hrpo-inner div.hrpo-callout div p,
  html body section.hrpo-section.hrpo-section--gray div.hrpo-inner div.hrpo-two div.hrpo-mini p,
  html body section.hrpo-section.hrpo-section--gray div.hrpo-inner div.hrpo-two div.hrpo-mini.hrpo-mini--bad p,
  html body section.hrprep-sec div.hrprep-c div.hrprep-faq details p,
  html body section.hrprep-sec div.hrprep-c div.hrprep-gap div.hrprep-gap-row p,
  html body section.hrprep-sec div.hrprep-c div.hrprep-gap div.hrprep-gap-row.is-pain p,
  html body section.hrprep-sec.hrprep-sec--alt div.hrprep-c div.hrprep-cards div.hrprep-card p,
  html body section.hrscore-sec div.hrscore-c div.hrscore-faq details p,
  html body section.hrsp-sec div.hrsp-c div.hrsp-faq details p,
  html body section.hrstar-section div.hrstar-inner div.hrstar-callout div p,
  html body section.hrstar-section.hrstar-section--gray div.hrstar-inner div.hrstar-cards div.hrstar-card p,
  html body section.hrstar-section.hrstar-section--gray div.hrstar-inner div.hrstar-reads a.hrstar-read p,
  html body section.hrtrk-sec div.hrtrk-c div.hrtrk-faq details p,
  html body section.hrtw-section div.hrtw-inner div.hrtw-callout div p,
  html body section.hrtw-section div.hrtw-inner div.hrtw-fork div.hrtw-mini p,
  html body section.hrtw-section div.hrtw-inner div.hrtw-tips div.hrtw-tip p,
  html body section.hrtw-section.hrtw-section--gray div.hrtw-inner div.hrtw-callout div p,
  html body section.hrtw-section.hrtw-section--gray div.hrtw-inner div.hrtw-reads a.hrtw-read p,
  html body section.hrup-sec.hrup-sec--alt div.hrup-c div.hrup-faq details p,
  html body section.hrvac-section div.hrvac-wrap div.hrvac-steps div.hrvac-step p,
  html body section.hrwhy-sec div.hrwhy-c div.hrwhy-pillars div.hrwhy-card p,
  html body section.hrwhy-sec.hrwhy-sec--alt div.hrwhy-c div.hrwhy-proof a.hrwhy-proof-card p,
  html body section.hza-related div.hza-c div.hza-related-grid a.hza-related-card p,
  html body section.hza-sec.hza-partner div.hza-c div.hza-partner-card div.hza-partner-info div.hza-partner-sub,
  html body section.hza-sec.hza-partner div.hza-c div.hza-partner-card div.hza-partner-info p,
  html body section.pain-section div.container.text-center div.pain-grid div.pain-card p,
  html body section.prin-bg div.inner div.prin-grid div.prin-card.fiu p,
  html body section.resit-additions div.resit-additions__section div.resit-faq details p,
  html body section.resit-additions div.resit-additions__section div.resit-faq details summary,
  html body section.resit-additions div.resit-additions__section div.resit-fit-grid article.resit-fit-card p.resit-fit-card__text,
  html body section.resit-additions div.resit-additions__section div.resit-system div.resit-system__content p.resit-additions__intro,
  html body section.resit-additions div.resit-additions__section.resit-additions__section--muted div.resit-feedback article p,
  html body section.rules-bg div.inner div.rules-grid div.rule-card.danger.fiu p,
  html body section.rules-bg div.inner div.rules-grid div.rule-card.fiu p,
  html body section.rules-bg div.inner div.rules-grid div.rule-card.warn.fiu p,
  html body section.sgsl-section.sgsl-section--alt div.sgsl-section-inner div.sgsl-promise-grid div.sgsl-promise-item div.sgsl-promise-text,
  html body section.solution-section div.container div.sol-item div.sol-content div.sol-num,
  html body section.solution-section div.container div.sol-item div.sol-content p,
  html body section.solution-section div.container div.sol-item.rev div.sol-content div.sol-num,
  html body section.solution-section div.container div.sol-item.rev div.sol-content p,
  html body section.timeline-bg div.inner div.tl-grid div.tl-card.fiu p.tl-desc,
  html body section.timeline-bg div.inner div.tl-grid div.tl-card.hot.fiu p.tl-desc,
  html body section.tmpl-bg div.inner div.tblock.fiu div.ex-box p.ex-profile,
  html body section.tmpl-bg div.inner div.tblock.fiu div.ex-box p.ex-text,
  html body section.tmpl-bg div.inner div.tblock.fiu div.tip p,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu div.tp-feat-desc,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu div.tp-feat-sub,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu2 div.tp-feat-desc,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu2 div.tp-feat-sub,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu3 div.tp-feat-desc,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu3 div.tp-feat-sub,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu4 div.tp-feat-desc,
  html body section.tp-features div.tp-container div.tp-feat-grid div.tp-feat-card.fu.fu4 div.tp-feat-sub,
  html body section.tp-lineage div.tp-container div.tp-lineage-support.fu.fu4 div.tp-lineage-support-item div.tp-lineage-support-desc {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  /* 重考班首頁：卡片標題與行動連結另拉開層級，不只勉強達到內文下限。 */
  html body #resit-lp :is(.ct, .rit, .deep-card b) {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  html body #resit-lp :is(.cd, .rid, .deep-card span, .iv, .deep-link) {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  html body .resit-additions .rt-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* 師資卡的特點小標是標題角色，不應只套 16px 內文值。 */
  html body .teacher-page .tp-feat-sub {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  /* 日期、來源、備註等輔助文字維持 14px，不與 16px 主內文爭層級。 */
html body div#asg-lp div.note-bg p,
  html body div#hrvacCountdown.hrvac-countdown span.hrvac-countdown-date,
  html body div#sv2CdAstDate.sv2-cd-date,
  html body div#sv2CdGsatDate.sv2-cd-date,
  html body div.entry-content div.hrcn div.hrcn-c p.hrcn-disclaimer,
  html body div.hrt section.hrt-sec.hrt-sec--alt div.hrt-c div.hrt-source-text a,
  html body div.hza section.hza-sec.hza-sec--alt div.hza-c div.hza-source a,
  html body div.medical-lp section.hero div.container p.hero-note,
  html body section.cms-section div.cms-wrap div.cms-specs div.cms-spec span.cms-spec__note,
  html body section.hrcal-sec.hrcal-sec--alt div.hrcal-c div.hrcal-phase div.hrcal-phase-head span.hrcal-phase-date {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  /* 稽核補齊既有 tag-font-floor 未涵蓋的標籤與英文 eyebrow。 */
html body article#post-4779.list-article.clearfix.list-article--news-grid div.list-article-content div.list-article-meta a,
  html body div#asg-lp section.check-bg div.inner div.tc.mb56.fiu div.eye.eye-orange,
  html body div#asg-lp section.cta-bg div.inner.fiu div.cta-eye,
  html body div#asg-lp section.rules-bg div.inner div.tc.mb56.fiu div.eye,
  html body div#asg-lp section.timeline-bg div.inner div.tc.mb56.fiu div.eye,
  html body div#lp-page section div.inner div.tc.lp-fiu div.eye,
  html body div#lp-page section div.inner div.tc.mb56.lp-fiu div.eye,
  html body div#lp-page section.card-bg div.inner div.tc.mb56.lp-fiu div.eye,
  html body div#lp-page section.dark-bg div.inner div.tc.mb56.lp-fiu div.eye,
  html body div#resit-lp section.adv-bg div.inner div.tc.mb56.rl-fiu div.eye,
  html body div#resit-lp section.deep-bg div.inner div.tc.mb56.rl-fiu div.eye,
  html body div#sig-lp section.choice-bg div.inner div.tc.mb56.fiu div.eye,
  html body div#sig-lp section.embed-bg div.inner div.tc.mb56.fiu div.eye,
  html body div#sig-lp section.prin-bg div.inner div.tc.mb56.fiu div.eye,
  html body div#sig-lp section.tmpl-bg div.inner div.tc.mb56.fiu div.eye,
  html body div.container div.roadmap-wrap div.rm-item div.rm-card div.phase,
  html body div.cp div.cp-stats div.cp-stats-in div.cp-st.cp-rv div.cp-sl,
  html body div.cp div.cp-stats div.cp-stats-in div.cp-st.cp-rv.on div.cp-sl,
  html body div.cp section.cp-sec div.cp-in div.cp-rv div.cp-ey,
  html body div.d5 div.d5-stats div.d5-stats-in div.d5-st.d5-rv div.d5-sl,
  html body div.d5 section.d5-reviews-sec div.d5-in div.d5-rv div.d5-ey,
  html body div.d5 section.d5-sec div.d5-in div.d5-rv div.d5-ey,
  html body div.d5-in div.d5-carousel.d5-rv a.d5-rev-card div.d5-rev-meta div.d5-rev-school,
  html body div.entry-content div.cp section.cp-hero div.cp-hero-in div.cp-badge,
  html body div.entry-content div.d5 div div.d5-rv div.d5-ey,
  html body div.entry-content div.d5 section.d5-hero div.d5-hero-in div.d5-badge,
  html body div.hr-hp-rv-grid div.hr-hp-rv-card div.hr-hp-rv-foot div div.hr-hp-rv-tag,
  html body div.hr-upgrade section.hr-upgrade__section div.hr-upgrade__compare div.hr-upgrade__col span.hr-upgrade__col-tag,
  html body div.hr-upgrade section.hr-upgrade__section div.hr-upgrade__compare div.hr-upgrade__col.hr-upgrade__col--hr span.hr-upgrade__col-tag,
  html body div.hreng-wrap section.hreng-section.hreng-section--gray div.hreng-inner a.hreng-read span,
  html body div.hza-c div.hza-partner-card div.hza-partner-info div.hza-partner-links a,
  html body div.inner div.rg div div.rh.rl-fiu div.eye,
  html body section div.inner div.cmp-row.lp-fiu div.cmp-old div.cmp-label,
  html body section div.inner div.ov-grid.lp-fiu div div.eye,
  html body section#contact.cta-bg div.inner div.lp-fiu div.eye,
  html body section#contact.cta-bg div.inner div.rl-fiu div.eye,
  html body section#six-components.card-bg div.inner div.tc.mb56.lp-fiu div.eye,
  html body section.card-bg div.inner div.prep-card.lp-fiu div.prep-head div.prep-label,
  html body section.d5-sec div.d5-in div.d5-2c.d5-rv div div.d5-ey,
  html body section.d5-sec div.d5-in div.d5-2c.d5-rv div.d5-panel.d5-rv div.d5-panel-label,
  html body section.hmad-section.hmad-section--gray div.hmad-inner div.hmad-cards article.hmad-card div.hmad-card-num,
  html body section.hr-upgrade__section.hr-upgrade__section--soft div.hr-upgrade__roll div.hr-upgrade__roll-item span span.hr-upgrade__roll-tag,
  html body section.hrpo-section div.hrpo-inner div.hrpo-reads a.hrpo-read span,
  html body section.hrtw-section div.hrtw-inner div.hrtw-fork div.hrtw-mini span.hrtw-mini-tag,
  html body section.hrtw-section.hrtw-section--gray div.hrtw-inner div.hrtw-reads a.hrtw-read span,
  html body section.prin-bg div.inner div.prin-grid div.prin-card.fiu div.pnum,
  html body section.rules-bg div.inner div.rules-grid div.rule-card.danger.fiu span.rule-tag,
  html body section.rules-bg div.inner div.rules-grid div.rule-card.warn.fiu span.rule-tag,
  html body section.sv2-gallery-sec div.sv2-c div.sv2-gallery-grid div.sv2-gallery-item div.sv2-gallery-cap,
  html body section.sv2-sec div.sv2-c div.sv2-cores div.sv2-core div.sv2-core-tag,
  html body section.timeline-bg div.inner div.tl-grid div.tl-card.fiu div.tl-step,
  html body section.timeline-bg div.inner div.tl-grid div.tl-card.hot.fiu div.tl-step,
  html body section.tp-hero div.tp-container div.tp-hero-grid div.tp-hero-info div.tp-eyebrow.fu {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* college-guide 的考科表未設專屬 class，改以頁面根容器精準限定。 */
  html body .hrcg-wrap table :is(th, td) {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
}


/* ==========================================================================
   全站 tag／eyebrow 手機最小字級層（2026-08-07 RWD 審計，Lyndon 拍板執行）
   問題：各 landing page 的小標籤多以 rem 定義，手機 root 為 14px，
   0.63rem–0.82rem 實際只剩 8.8–11.5px，80% 手機流量下低於可讀下限。
   政策：手機／平板（991px 以下）tag 類元素字級下限 12px；桌機維持各頁設計不動。
   收斂：日後個別頁面重構時，把該頁 tag 改為 12px 以上後即可從此清單移除該選擇器。
   源頭：css/tag-font-floor.css；審計紀錄：docs/rwd-audit-2026-08-07.md
   ========================================================================== */
@media (max-width: 991px) {
  .hras-tag,
  .hrac-tag,
  .hrcn-tag,
  .hrcr-tag,
  .hrfd-tag,
  .hrhs-tag,
  .hrjhs-tag,
  .hrcal-tag,
  .hrprep-tag,
  .hrres-tag,
  .hrscore-tag,
  .hrsp-tag,
  .hrtrk-tag,
  .hrup-tag,
  .hrwhy-tag,
  .hrwhy-fit-tag,
  .hza-tag,
  .hr-rv-tag,
  .hrcg-eyebrow,
  .hreng-eyebrow,
  .hreng-card-full,
  .hrpo-eyebrow,
  .hrpo-mini-tag,
  .hrstar-eyebrow,
  .hrstar-read span,
  .hrtw-eyebrow,
  .hrtw-col-tag,
  .hmad-eyebrow,
  .hza-lbl,
  .hrt-lbl,
  .hrt-trust-item,
  .sv2-lbl,
  .hrnr-section-label,
  .hrvac-data-badge,
  .hr-upgrade__eyebrow,
  .hr-upgrade__head-eyebrow,
  .medical-success-page__section-eyebrow,
  .environment-page__photo-text,
  .resit-additions__eyebrow,
  .hr-subsec span,
  .cp-res-label,
  .cp-ci span,
  .sig-q-num,
  .q-item .q-num,
  #asg-lp .q-num,
  #asg-lp .tl-tag,
  .wpforms-field-label {
    font-size: 12px !important;
  }
}
/* ==========================================================================
   全站 Reduced Motion（無障礙）— 2026-08-05
   套用方式：貼到 WordPress「外觀 → 自訂 → 額外的 CSS」**最末段**（post 1554）
   規範來源：docs/design-language-spec.md §8 R-ANIM-3（每個有動畫的頁面都要能關動畫）

   為什麼用全站一條，而不是逐頁在 inline style 補：
   - 實測全站有 46 個上線頁含 transition／animation 但沒有 reduced-motion 區塊；
     逐頁改要動 46 次 post_content，寫入風險與後續維護成本都遠高於一條全站規則。
   - 全站版還能同時涵蓋主題本身（選單下拉、sticky 導覽）、外掛（彈窗、輪播）
     與「日後新增的頁面」——逐頁補做不到這三件事。
   - 本規則只在使用者於作業系統開啟「減少動態效果」時才生效，一般訪客完全不受影響。

   ⚠️ 為什麼是 0.01ms 而不是 none / 0s：
   動畫時間若設為 none 或 0s，瀏覽器不會派發 transitionend / animationend 事件，
   任何等待這兩個事件才收尾的 JS（輪播換頁、選單收合、進場動畫解鎖）會直接卡死。
   0.01ms 在視覺上等同瞬間完成，但事件照常發出，因此不會破壞既有 JS。
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* OnePress 主選單：實測上面的 `*` 規則（權重 0）壓不過主題對導覽的宣告，
     選單連結仍保留 0.25s、下拉仍保留 0.3s。這裡用較高權重補上。
     依專案規則一律用後代選擇器（Additional CSS 不可出現尖括號）。 */
  #masthead .onepress-menu a,
  #masthead .onepress-menu ul.sub-menu,
  .onepress-menu a,
  .onepress-menu ul.sub-menu {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   §21 全站版型統一全版（2026-09-15 Lyndon：「有些頁面是全版 有些是半版，全部統一全版」）
   - 固定頁：15 個原本走「預設模板」的頁面已在 WordPress 端改成 template-fullwidth-stretched.php
     （名單見 wp-sync-log 2026-09-15）；頁面內容各自有 min(1120px, …) 或 1060–1200px 的置中容器。
   - 文章列表（/news/ 為 posts page）、分類封存、搜尋結果走主題 index／archive／search.php，
     沒有模板可選，比照上方 single-post 的做法用 CSS 解除 .container 限制，卡片格線改在 #primary
     以 32px 內距置中；手機 16px。
   -------------------------------------------------------------------------- */

body.blog #content-inside.container,
body.blog #content-inside.container.no-sidebar,
body.archive #content-inside.container,
body.archive #content-inside.container.no-sidebar,
body.search #content-inside.container,
body.search #content-inside.container.no-sidebar {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.blog #primary,
body.archive #primary,
body.search #primary {
  box-sizing: border-box;
  float: none;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

@media screen and (max-width: 767px) {
  body.blog #primary,
  body.archive #primary,
  body.search #primary {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* §21.1 教室環境頁（1245）：內容原本依賴主題 .container 置中，改全版模板後文字貼齊螢幕邊；
   在 #primary 補回同尺寸置中容器（其 --muted 區段本就用負邊距滿版，視覺與改版前一致）。 */
body.page-id-1245.template-fullwidth-stretched #primary {
  box-sizing: border-box;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* --------------------------------------------------------------------------
   §22 版面／RWD 覆核修正（2026-09-15 報告 F02／F03／F07；淺色與深色共用）
   來源：2026-09-15 版面／RWD 覆核報告
   -------------------------------------------------------------------------- */

/* F02 教室環境頁（1245）：§21.1 給了 max-width 與 auto margin，但主題 #primary 仍是
   float:left，置中不生效，1440 寬時內容整塊靠左、右側空 300px。清掉浮動即可。 */
body.page-id-1245.template-fullwidth-stretched #primary {
  float: none;
  width: 100%;
}

/* F07 文章（single post）改全版後，主題 #primary 的 40px 上內距會在麵包屑與自訂 hero
   之間留一條空白帶。九篇榜單、中秋公告、AI 學習文章等一律歸零；
   下方五篇「純文字型文章」保留 40px，因為它們沒有 hero，直接貼齊麵包屑會太緊。 */
body.single-post #primary {
  padding-top: 0;
}

body.single-post.postid-2169 #primary,
body.single-post.postid-2419 #primary,
body.single-post.postid-2532 #primary,
body.single-post.postid-2683 #primary,
body.single-post.postid-3681 #primary {
  padding-top: 40px;
}

/* F03 390 寬文字貼邊（實際文字 Range 邊界低於 12px） */
@media screen and (max-width: 600px) {
  body.page-id-4465 .hr-intro.hr-wrap,
  body.page-id-4465 .hr-roster .hr-wrap {
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-id-4868 .gd-disclaimer {
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* 2026-10-21：按鈕可讀性定點修正，追加至 Additional CSS；不變更原底色與版型。 */
#content .hr-expired-event-notice .wp-block-button__link {
  color: #241A05 !important;
}
html:not([data-hr-appearance="dark"]) #content #news .btn-theme-primary-outline {
  color: #E8670A !important;
  border-color: #E8670A !important;
}
html:not([data-hr-appearance="dark"]) #content #news .btn-theme-primary-outline:hover {
  color: #FFFFFF !important;
  background-color: #E8670A !important;
  border-color: #E8670A !important;
}

/* §21 首頁右側區塊導覽（.c-bully）透明標題不攔點擊（2026-10-22 Lyndon：「全站修」）
   OnePress 的 .c-bully__title 平常 opacity:0 卻仍吃點擊（父層 fixed、z-index 600），在視窗右側中段形成約 100×150px 隱形點擊區，
   蓋住底下的按鈕與連結（例：首頁公告條「查看完整公告」）。標題只在滑過導覽點時顯示，導覽點本身照常可點。 */
.c-bully__title {
  pointer-events: none;
}


/* ===================================================================
   最新消息下拉選單捐軸支援（2026-10-29）
   框機版 >1140px：超高時可捐動，捐軸細簽色
   =================================================================== */
@media (min-width: 1141px) {
  #site-navigation .onepress-menu li.menu-item-3116 > ul.sub-menu {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #E0D6CC transparent;
  }
  #site-navigation .onepress-menu li.menu-item-3116 > ul.sub-menu::-webkit-scrollbar {
    width: 4px;
  }
  #site-navigation .onepress-menu li.menu-item-3116 > ul.sub-menu::-webkit-scrollbar-thumb {
    background: #E0D6CC;
    border-radius: 2px;
  }
}
