/* 驅勢英日韓官網（school_site.py）的樣式。顏色一律用 theme.css 的變數（--brand-*、--tone）。
   2026-11 使用者給參考圖改版：米白底、近黑字、細灰分隔線、大字粗體標題、黑色頁尾，重點色只有 AI 的藍。
   不用圓角大卡片和陰影，層次靠細線分隔。 */
.site [hidden] { display: none !important; }
body.site { margin: 0; background: var(--brand-bg); color: var(--brand-ink); font-family: var(--font); line-height: 1.7; }
.site a { color: var(--brand-ink); }
.site .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; box-sizing: border-box; }
.site .ui-ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.site h1, .site h2, .site h3 { letter-spacing: -.01em; }

/* ---------- 頁首 ---------- */
.s-head { background: var(--brand-bg); border-bottom: 1px solid var(--brand-line); position: sticky; top: 0; z-index: 20; }
.s-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.s-brand { font-weight: 900; font-size: 20px; color: var(--brand-ink) !important; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.s-brand img { height: 32px; width: auto; }
.s-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.s-brand small { font-size: 10.5px; font-weight: 700; color: var(--brand-ink-2); letter-spacing: .14em; text-transform: uppercase; }
.s-nav { display: flex; gap: 28px; flex: 1; justify-content: center; flex-wrap: wrap; }
.s-nav a { text-decoration: none; color: var(--brand-ink); font-size: 14px; font-weight: 700; letter-spacing: .08em; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.s-nav a:hover, .s-nav a.on { border-bottom-color: var(--brand-ink); }
.s-head .s-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- 按鈕與連結 ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 999px;   /* 2026-11 使用者要求按鈕都圓角 */ border: 1.5px solid var(--brand-ink);
    cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; background: var(--brand-ink); color: #fff !important; transition: background .15s, color .15s; }
.s-btn:hover { background: transparent; color: var(--brand-ink) !important; }
.s-btn.ghost { background: transparent; color: var(--brand-ink) !important; }
.s-btn.ghost:hover { background: var(--brand-ink); color: #fff !important; }
.s-btn.line { background: var(--line-green); border-color: var(--line-green); }
.s-btn.line:hover { background: transparent; color: var(--line-green) !important; }
.s-btn.small { padding: 7px 14px; font-size: 13.5px; }
.s-btn.big { padding: 15px 32px; font-size: 17px; }
.s-btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
/* 參考圖的「SHOP NOW」：粗體字＋底線的連結 */
.h-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-decoration: none;
    color: var(--brand-ink) !important; padding-bottom: 4px; border-bottom: 2px solid var(--brand-ink); }
.h-link span { transition: transform .15s; }
.h-link:hover span { transform: translateX(4px); }
.h-link.big { font-size: 18px; }
.s-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 800; color: var(--brand-ink-2); margin: 0 0 14px; text-transform: uppercase; }

/* AI 元素：小藍標籤與晶片圖示（只放在真的有 AI 的功能旁邊） */
.s-ai-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--brand-ai);
    border: 1.5px solid var(--brand-ai); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.s-chip { width: 1.6em; height: 1.6em; vertical-align: -0.4em; overflow: visible; }
.s-chip-pins path { stroke: var(--brand-ai); stroke-width: 2.4; stroke-linecap: round; }
.s-chip-body { fill: var(--brand-ink); stroke: var(--brand-ai); stroke-width: 2; }
.s-chip-txt { fill: #fff; font: 900 11px/1 Arial, sans-serif; }
@media (prefers-reduced-motion: no-preference) { .s-chip-pins { animation: s-ai-blink 2.4s ease-in-out infinite; } }
@keyframes s-ai-blink { 50% { opacity: .35; } }

/* ---------- 內頁標題 ---------- */
.s-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--brand-line); }
.s-hero h1 { font-size: 46px; font-weight: 900; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.s-hero p.lead { font-size: 17px; margin: 0 0 24px; color: var(--brand-ink-2); max-width: 720px; }
.s-hero .s-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-crumb { font-size: 12.5px; color: var(--brand-muted); margin-bottom: 18px; letter-spacing: .04em; }
.s-crumb a { color: var(--brand-muted); }
.s-hero[class*="exam-tone-"] h1::before { content: ""; display: block; width: 44px; height: 4px; background: var(--tone); margin-bottom: 18px; }

/* ---------- 區塊、卡片、表格 ---------- */
.s-sec { padding: 52px 0; }
.s-sec + .s-sec { border-top: 1px solid var(--brand-line); }
.s-sec h2 { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.s-sec .sub { color: var(--brand-muted); margin: 0 0 24px; }
.s-band { background: var(--brand-paper); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--brand-line); border-left: 1px solid var(--brand-line); }
.s-card { background: var(--brand-paper); border-right: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); padding: 24px 24px 22px;
    text-decoration: none; color: var(--brand-ink); display: block; }
.s-two .s-card, .mk-intro, .mk-group, .mk-advice { border: 1px solid var(--brand-line); }
a.s-card:hover { background: #fff; }
.s-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.s-card p { margin: 0; color: var(--brand-ink-2); font-size: 15px; }
.s-card .en { font-size: 11.5px; color: var(--brand-muted); letter-spacing: .16em; font-weight: 800; }
.s-card.tone { border-top: 4px solid var(--tone); margin-top: -1px; }
.s-card .more { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 13.5px; letter-spacing: .06em; border-bottom: 2px solid var(--brand-ink); }
.s-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border: 1.5px solid var(--brand-ink); border-radius: 99px; }
.s-badge.soon { color: var(--brand-muted); border-color: var(--brand-line); }
.s-list { margin: 0; padding-left: 20px; }
.s-list li { margin: 6px 0; }
.s-steps { counter-reset: st; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--brand-ink); }
.s-steps li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--brand-line); }
.s-steps li::before { counter-increment: st; content: "0" counter(st); display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand-muted); margin-bottom: 8px; }
.s-table { width: 100%; border-collapse: collapse; background: var(--brand-paper); border-top: 1.5px solid var(--brand-ink); }
.s-table th, .s-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--brand-line); vertical-align: top; }
.s-table th { width: 140px; color: var(--brand-ink-2); font-weight: 800; }
.todo { display: inline-block; background: var(--star-50); color: var(--star-ink); border: 1px dashed var(--star); border-radius: 4px; padding: 0 8px; font-size: 13px; font-weight: bold; }
.s-intro { font-size: 17px; line-height: 1.95; color: var(--brand-ink-2); max-width: 820px; margin: 0 0 8px; }
.s-consult { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px;
    border-top: 1.5px solid var(--brand-ink); border-bottom: 1px solid var(--brand-line); padding: 22px 0; }
.s-consult-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.s-checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.s-checks li { padding-left: 26px; position: relative; color: var(--brand-ink-2); }
.s-checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; }

/* ---------- 表單 ---------- */
.s-form { background: var(--brand-paper); border: 1px solid var(--brand-line); padding: 30px; }
.s-form h2 { font-size: 24px; }
.s-form label.f { display: block; font-weight: 800; margin: 16px 0 6px; font-size: 14.5px; }
.s-form label.f:first-of-type { margin-top: 0; }
.s-form .req { color: var(--bad); }
.s-form input[type=text], .s-form input[type=tel], .s-form input[type=email], .s-form select, .s-form textarea {
    width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--brand-line); border-radius: 2px; font: inherit; font-size: 16px; background: #fff; color: var(--brand-ink); }
.s-form textarea { min-height: 90px; resize: vertical; }
.s-form input:focus, .s-form select:focus, .s-form textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 1px var(--brand-ink); }
.s-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.s-form .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.s-form .checks label { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--brand-line); border-radius: 99px; cursor: pointer; font-size: 15px; background: #fff; }
.s-form .checks label:has(input:checked) { border-color: var(--brand-ink); background: var(--brand-ink); color: #fff; font-weight: bold; }
.s-form .checks input { accent-color: var(--brand-ink); }
.s-form .consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--brand-ink-2); }
.s-form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-ink); }
.s-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-err { background: var(--bad-50); color: var(--bad-ink); border-left: 3px solid var(--bad); padding: 12px 16px; margin-bottom: 14px; }
.s-err ul { margin: 0; padding-left: 20px; }
.s-two { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; }
.s-line-box { border: 1px solid var(--brand-line); background: var(--brand-paper); padding: 26px; text-align: center; }
.s-line-box h3 { margin: 0 0 8px; }

/* ---------- 頁尾：黑底 ---------- */
.s-foot { background: var(--brand-ink); color: color-mix(in srgb, #fff 72%, var(--brand-ink)); padding: 56px 0 96px; font-size: 14px; }
.s-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.s-foot h4 { color: #fff; margin: 0 0 14px; font-size: 12.5px; letter-spacing: .16em; }
.s-foot a { color: color-mix(in srgb, #fff 80%, var(--brand-ink)); text-decoration: none; display: block; margin: 5px 0; }
.s-foot a:hover { color: #fff; }
.s-foot a small { margin-left: 8px; opacity: .6; }
.s-foot p { margin: 0 0 12px; line-height: 1.8; }
.s-foot-brand b { display: block; color: #fff; font-size: 22px; font-weight: 900; }
.s-foot-brand small { display: block; letter-spacing: .14em; font-size: 11px; font-weight: 800; margin-bottom: 14px; text-transform: uppercase; }
.s-foot-social { display: flex; gap: 16px; margin-top: 14px; }
.s-foot-social a { font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.s-foot-go { border-bottom: 1px solid color-mix(in srgb, #fff 35%, var(--brand-ink)); padding: 8px 0; display: flex !important; justify-content: space-between; }
.s-foot .copy { margin-top: 44px; border-top: 1px solid color-mix(in srgb, #fff 18%, var(--brand-ink)); padding-top: 18px; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: .08em; }
.s-foot .copy a { display: inline; margin: 0; }

/* 手機右下角固定的 LINE、諮詢按鈕 */
.s-float { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.s-float .s-btn { box-shadow: 0 6px 18px rgb(0 0 0 / .18); border-radius: 999px; padding-left: 26px; padding-right: 26px; }   /* 手機右下浮動鈕：圓角膠囊（2026-11 使用者要求） */
@media (min-width: 761px) { .s-float { display: none; } }

/* ======================================================================
   首頁（h-*）：2026-11 照使用者兩張參考圖排版，黃（--brand-gold）藍（--brand-ai）都是低彩度的小重點
   ====================================================================== */
.s-eyebrow.lined { display: flex; align-items: center; gap: 14px; }
.s-eyebrow.lined::before { content: ""; width: 36px; height: 1.5px; background: var(--brand-gold); }
.h-more { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-decoration: none; color: var(--brand-ink) !important; }
.h-more-dot { display: inline-flex; width: 24px; height: 24px; border: 1px solid var(--brand-ink); border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; transition: background .15s, color .15s, border-color .15s; }
.h-more:hover .h-more-dot { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-ink); }
.h-link { border-bottom-color: var(--brand-gold); }
.h-hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.h-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.h-sec-head .s-eyebrow { margin: 0; }
.h-big { font-size: 44px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; }
.h-chip-xs { width: 26px; height: 26px; }

/* 1 主視覺：左側直排細欄、文字、出血到右邊的大照片 */
.h-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr); min-height: 600px; border-bottom: 1px solid var(--brand-line); }
.h-rail { border-right: 1px solid var(--brand-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.h-rail span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; font-weight: 800; letter-spacing: .24em; color: var(--brand-muted); }
.h-rail::after { content: ""; width: 1px; height: 90px; background: var(--brand-gold); }
.h-hero-txt { padding: 64px 48px 64px max(40px, calc((100vw - 1180px) / 2 - 36px)); display: flex; flex-direction: column; justify-content: center; }
.h-hero h1 { font-size: 66px; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 24px; }
.h-hero-lead { font-size: 15.5px; color: var(--brand-ink-2); margin: 0 0 34px; max-width: 400px; }
.h-hero-art { position: relative; background: var(--brand-soft); overflow: hidden; }
.h-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.h-seal { position: absolute; width: 128px; height: 128px; border-radius: 50%; background: color-mix(in srgb, var(--brand-paper) 92%, transparent); }
.h-hero .h-seal { top: 50%; left: -2px; transform: translate(-50%, -50%); z-index: 2; border: 1px solid var(--brand-line); }
.h-hero-art { overflow: visible; }
.h-hero-art img { clip-path: inset(0); }
.h-seal text { font: 800 11px/1 Arial, sans-serif; letter-spacing: 1.6px; fill: var(--brand-ink); }
.h-seal-core { fill: var(--brand-ai); }
.h-seal .h-seal-ai { font: 900 26px/1 Arial, sans-serif; fill: #fff; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
    .h-seal-spin { transform-origin: 80px 80px; animation: h-spin 20s linear infinite; }
}
@keyframes h-spin { to { transform: rotate(360deg); } }

/* 2 AI 線上模考：四欄細直線分隔 */
.h-cats { padding: 44px 0 36px; border-bottom: 1px solid var(--brand-line); background: var(--brand-paper); }
.h-cat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-cat { display: flex; flex-direction: column; gap: 6px; padding: 6px 28px 10px; text-decoration: none; color: var(--brand-ink) !important; border-left: 1px solid var(--brand-line); }
.h-cat:first-child { border-left: none; padding-left: 0; }
.h-cat-no { font-size: 11.5px; font-weight: 800; color: var(--brand-gold-ink); letter-spacing: .1em; }
.h-cat-name { font-size: 20px; font-weight: 900; }
.h-cat-mark { height: 104px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; background: var(--brand-ai-50);
    background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand-ai) 25%, transparent) 1px, transparent 0); background-size: 14px 14px; transition: background-color .2s; }
.h-cat-mark b { font: 900 26px/1 Arial, sans-serif; letter-spacing: .04em; color: var(--brand-ink); }
.h-cat-chip { width: 34px; height: 34px; }
.h-cat:hover .h-cat-mark { background-color: var(--brand-gold-50); }
.h-cat-txt { font-size: 13px; color: var(--brand-ink-2); line-height: 1.6; min-height: 42px; }
.h-cat .h-more { margin-top: 6px; }
.h-cat-note { margin: 22px 0 0; font-size: 13.5px; color: var(--brand-muted); }

/* 3 課程：左照片＋學習地圖，右邊大字編號列表 */
.h-split { border-bottom: 1px solid var(--brand-line); }
.h-split-grid { display: grid; grid-template-columns: 340px 1fr; }
.h-split-side { padding: 40px 32px 40px 0; border-right: 1px solid var(--brand-line); }
.h-split-side img { width: 100%; height: 210px; object-fit: cover; display: block; margin-bottom: 24px; }
.h-side-title { font-size: 15px; font-weight: 900; letter-spacing: .08em; margin: 0 0 12px; text-transform: uppercase; }
.h-path { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: p; }
.h-path li { font-size: 13.5px; color: var(--brand-ink-2); padding: 10px 0; border-top: 1px solid var(--brand-line); }
.h-path li b { display: block; color: var(--brand-ink); font-size: 15px; }
.h-path li b::before { counter-increment: p; content: "STEP " counter(p) "　"; font-size: 11px; letter-spacing: .12em; color: var(--brand-gold-ink); }
.h-rows { display: flex; flex-direction: column; }
.h-row { flex: 1; display: grid; grid-template-columns: 56px minmax(200px, 1fr) 1.2fr; align-items: center; gap: 20px; padding: 20px 28px 20px 36px;
    border-bottom: 1px solid var(--brand-line); text-decoration: none; color: var(--brand-ink) !important; transition: background .15s; }
.h-row:last-child { border-bottom: none; }
.h-row:hover { background: var(--brand-paper); }
.h-row-no { font-size: 11.5px; font-weight: 800; color: var(--brand-gold-ink); align-self: start; padding-top: 12px; }
.h-row-name { font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; display: flex; flex-direction: column; }
.h-row-name small { font-size: 11.5px; letter-spacing: .22em; font-weight: 800; color: var(--brand-muted); margin-top: 8px; }
.h-row-lead { font-size: 14px; color: var(--brand-ink-2); }

/* 4、6 左圖右文（參考圖二 Our Story）：照片出血到左邊、角落壓圓形徽章 */
.h-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border-bottom: 1px solid var(--brand-line); }
.h-story-photo { position: relative; background: var(--brand-soft); }
.h-story-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-seal-corner { right: -64px; bottom: 40px; z-index: 2; border: 1px solid var(--brand-line); }
.h-story-txt { padding: 64px max(28px, calc((100vw - 1180px) / 2 + 28px)) 64px 104px; display: flex; flex-direction: column; justify-content: center; background: var(--brand-paper); }
.h-story.is-flip .h-story-txt { padding: 64px 72px 64px max(28px, calc((100vw - 1180px) / 2 + 28px)); background: var(--brand-bg); }
.h-enroll .h-story-txt { background: var(--brand-gold-50); }
.h-enroll-sub { font-size: 16px; font-weight: 800; letter-spacing: .12em; margin: -6px 0 22px; color: var(--brand-ink-2); }
.h-enroll-list > div { padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--brand-gold) 45%, var(--brand-line)); }
.h-enroll-list > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 45%, var(--brand-line)); }
.h-enroll-list h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.h-enroll-list h3 .ui-ic { width: 22px; height: 22px; }
.h-enroll-list p { margin: 0; font-size: 14px; color: var(--brand-ink-2); }
.h-enroll-foot { font-weight: 800; margin: 20px 0 20px; }
.h-about { border-bottom: none; }
.h-about .s-intro { margin: 0; }

/* 5 為什麼選驅勢：三欄細直線 */
.h-sec { padding: 64px 0; border-bottom: 1px solid var(--brand-line); }
.h-why-cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--brand-ink); margin-top: 8px; }
.h-why-cols > div { padding: 24px 28px 8px; border-left: 1px solid var(--brand-line); }
.h-why-cols > div:first-child { border-left: none; padding-left: 0; }
.h-why-cols span { font-size: 11.5px; font-weight: 800; color: var(--brand-gold-ink); letter-spacing: .1em; }
.h-why-cols h3 { margin: 8px 0 6px; font-size: 24px; font-weight: 900; }
.h-why-cols p { margin: 0; color: var(--brand-ink-2); }

@media (max-width: 980px) {
    .h-hero { grid-template-columns: 48px 1fr 1fr; }
    .h-hero h1 { font-size: 50px; }
    .h-cat-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
    .h-cat:nth-child(3) { border-left: none; padding-left: 0; }
    .h-split-grid { grid-template-columns: 1fr; }
    .h-split-side { border-right: none; border-bottom: 1px solid var(--brand-line); padding-right: 0; display: grid; grid-template-columns: 220px 1fr; gap: 0 24px; }
    .h-split-side img { grid-row: span 4; height: 100%; margin: 0; }
    .h-row { padding-left: 0; }
    .s-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .h-hero { grid-template-columns: 1fr; min-height: 0; }
    .h-rail { display: none; }
    .h-hero-art { order: -1; height: 260px; }
    .h-hero .h-seal { top: auto; bottom: -48px; left: auto; right: 18px; transform: none; width: 96px; height: 96px; }
    .h-hero-txt { padding: 40px 18px 44px; }
    .h-hero h1 { font-size: 42px; }
    .h-cat { padding: 4px 14px 8px; }
    .h-cat-mark { height: 80px; }
    .h-cat-mark b { font-size: 20px; }
    .h-cat-chip { width: 26px; height: 26px; }
    .h-split-side { grid-template-columns: 1fr; }
    .h-split-side img { height: 180px; margin-bottom: 18px; }
    .h-row { grid-template-columns: 30px 1fr; gap: 4px 12px; padding: 18px 0; }
    .h-row-name { font-size: 30px; }
    .h-row-lead { grid-column: 2 / -1; grid-row: 2; font-size: 13.5px; }
    .h-story { grid-template-columns: 1fr; min-height: 0; }
    .h-story-photo { height: 240px; }
    .h-story.is-flip .h-story-photo { order: -1; }
    .h-seal-corner { right: 18px; bottom: -40px; width: 96px; height: 96px; }
    .h-story-txt, .h-story.is-flip .h-story-txt { padding: 56px 18px 44px; }
    .h-sec { padding: 44px 0; }
    .h-big { font-size: 32px; }
    .h-why-cols { grid-template-columns: 1fr; }
    .h-why-cols > div { border-left: none; padding: 18px 0; border-bottom: 1px solid var(--brand-line); }
    .s-foot .cols { grid-template-columns: 1fr; }
}

/* ======================================================================
   迷你模考（school_mock.py）
   ====================================================================== */
.mk-intro { background: var(--brand-paper); padding: 26px 28px; }
.mk-intro h2 { margin-top: 0; }
.mk-bar { position: sticky; top: 73px; z-index: 15; background: var(--brand-ink); color: #fff; }
.mk-bar .wrap { display: flex; gap: 20px; align-items: center; min-height: 48px; flex-wrap: wrap; }
.mk-timer { margin-left: auto; font-size: 18px; }
.mk-timer.low { color: var(--warn); }
.mk-part { padding: 32px 0 8px; }
.mk-part h2 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.mk-group { background: var(--brand-paper); padding: 22px 24px; margin-bottom: 16px; }
.mk-audio { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mk-left { color: var(--brand-muted); font-size: 14px; }
.mk-play[disabled] { opacity: .45; cursor: default; }
.mk-passage { white-space: pre-wrap; background: #fff; border-left: 3px solid var(--brand-ink); padding: 16px 20px; margin-bottom: 16px; line-height: 1.85; }
/* 圖片題（菜單、海報）：圖不超過 460px 寬，手機縮到欄寬 */
.mk-figure { margin: 0 0 16px; }
.mk-figure img { display: block; width: 100%; max-width: 460px; height: auto; border: 1px solid var(--brand-line); }
.mk-q { border: none; margin: 0 0 16px; padding: 0; }
.mk-q legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.mk-no { display: inline-flex; min-width: 26px; height: 26px; border-radius: 50%; background: var(--brand-ink); color: #fff; align-items: center; justify-content: center;
    font-size: 12.5px; margin-right: 6px; padding: 0 4px; box-sizing: border-box; font-weight: 800; }
.mk-opts { display: grid; gap: 6px; }
.mk-opts label { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--brand-line); background: #fff; cursor: pointer; }
.mk-opts label:hover { border-color: var(--brand-ink-2); }
.mk-opts label:has(input:checked) { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); background: var(--brand-ai-50); }
.mk-opts input { accent-color: var(--brand-ink); width: 18px; height: 18px; }
.mk-submit { text-align: center; padding: 28px 0; }
.mk-warn { color: var(--warn-ink); background: var(--warn-50); display: inline-block; padding: 8px 14px; }
.mk-score { display: flex; gap: 28px; align-items: center; margin-top: 8px; font-size: 16px; flex-wrap: wrap; }
.mk-big { font-size: 76px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.mk-big small { font-size: 28px; }
.mk-muted { color: var(--brand-muted); font-size: 13.5px; }
.mk-est { padding: 14px 24px; border: 1.5px solid var(--brand-ink); background: var(--brand-paper); }
.mk-est-label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--brand-ink-2); }
.mk-est-total { font-size: 44px; font-weight: 900; line-height: 1.1; }
.mk-est-total small { font-size: 16px; font-weight: 800; color: var(--brand-muted); }
.mk-est-parts { display: flex; gap: 14px; font-size: 14px; font-weight: 800; flex-wrap: wrap; }
.mk-est-note { margin: 14px 0 0; font-size: 13px; color: var(--brand-muted); }
/* 分級版迷你模考（N5 還是 N4？…）的建議報考級數 */
.mk-verdict { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--brand-line); border-left: 3px solid var(--brand-gold); background: #fff;
    border-radius: 10px; font-weight: 700; line-height: 1.7; }
.mk-verdict svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand-gold); }
/* 日檢、韓檢的分級版入口（迷你模考總覽、課程頁、首頁、不分級版的說明） */
.mk-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mk-levels a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--brand-ink); border-radius: 999px;
    font-size: 13.5px; font-weight: 700; color: var(--brand-ink); text-decoration: none; background: #fff; }
.mk-levels a:hover { background: var(--brand-ink); color: #fff; }
.mk-levels-label { width: 100%; font-size: 13px; color: var(--brand-muted); }
.mk-r { background: var(--brand-paper); border: 1px solid var(--brand-line); border-left: 4px solid var(--ok); padding: 16px 20px; margin-bottom: 12px; }
.mk-r.bad { border-left-color: var(--bad); }
.mk-r-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mk-r-part { color: var(--brand-muted); font-size: 13px; }
.mk-r-mark { margin-left: auto; font-weight: 800; font-size: 14px; }
.mk-r.ok .mk-r-mark { color: var(--ok-ink); }
.mk-r.bad .mk-r-mark { color: var(--bad-ink); }
.mk-r-q { margin: 10px 0 4px; font-weight: 800; }
.mk-r-opts { margin: 0; padding-left: 22px; color: var(--brand-ink-2); }
.mk-r-opts li.ans { color: var(--ok-ink); font-weight: 800; }
.mk-r-script { background: #fff; padding: 8px 12px; font-size: 14px; color: var(--brand-ink-2); border-left: 2px solid var(--brand-line); }
.mk-r-exp { background: var(--brand-soft); padding: 10px 14px; margin: 10px 0 0; }
.mk-locked { position: relative; max-height: 260px; overflow: hidden; }
.mk-locked .mk-r { filter: blur(3px); user-select: none; }
.mk-lock-cover { position: absolute; inset: auto 0 0 0; height: 64px; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--brand-ink); color: #fff; font-weight: 800; }
.mk-parts { display: grid; gap: 12px; }
.mk-part-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 14px; align-items: center; }
.mk-barbox { height: 10px; background: var(--brand-line); overflow: hidden; }
.mk-barfill { display: block; height: 100%; background: var(--brand-ink); }
.mk-part-row.weak .mk-barfill { background: var(--warn); }
.mk-part-row.weak .mk-pn { color: var(--warn-ink); font-weight: 800; }
.mk-advice { background: var(--brand-paper); padding: 18px 22px; margin-bottom: 12px; }
.mk-advice h3 { margin: 0 0 6px; color: var(--warn-ink); }
.mk-advice p { margin: 0; }
/* AI 弱點診斷 */
.mk-ai { border: 1.5px solid var(--brand-ai); background: var(--brand-paper); padding: 22px 26px; margin-bottom: 36px; position: relative; }
.mk-ai::before { content: ""; position: absolute; inset: -1.5px -1.5px auto; height: 4px; background: var(--brand-ai); }
.mk-ai-head { display: flex; align-items: center; gap: 10px; }
.mk-ai-head h2 { margin: 0; }
.mk-ai-head .s-ai-pill { font-size: 13px; }
.mk-ai-wait { display: flex; align-items: center; gap: 10px; color: var(--brand-ink-2); }
.mk-ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-ai); animation: s-ai-blink 1s ease-in-out infinite; }
.mk-ai-sum { font-size: 16.5px; line-height: 1.85; }
.mk-ai h3 { font-size: 14px; letter-spacing: .1em; color: var(--brand-ink-2); margin: 20px 0 8px; }
.mk-ai-ok, .mk-ai-plan { margin: 0; padding-left: 22px; }
.mk-ai-ok li, .mk-ai-plan li { margin: 4px 0; }
.mk-ai-weak { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--brand-line); }
.mk-ai-weak p { margin: 2px 0 0; color: var(--brand-ink-2); }
.mk-ai-weak .mk-ai-how { color: var(--brand-ink); }
.mk-ai-no { font-weight: 900; color: var(--brand-ai); }
@media (max-width: 760px) {
    .mk-part-row { grid-template-columns: 1fr 90px; }
    .mk-barbox { grid-column: 1 / -1; grid-row: 2; }
    .mk-bar { top: 0; }
    .mk-big { font-size: 60px; }
    .mk-est { width: 100%; box-sizing: border-box; }
    .mk-ai { padding: 18px; }
}

/* 課程頁上的模考入口 */
.mk-entry { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-paper);
    border: 1px solid var(--brand-line); border-top: 2px solid var(--brand-ai); padding: 24px 28px; }
.mk-entry h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.mk-entry p { margin: 0; color: var(--brand-ink-2); }


/* 黃、藍小重點（2026-11 使用者要求「結合黃色跟藍色，不能太搶眼」） */
.s-nav a:hover, .s-nav a.on { border-bottom-color: var(--brand-gold); }
.s-foot-go span { color: var(--brand-gold); }
.s-foot h4 { color: var(--brand-gold); }
.s-hero .s-eyebrow { color: var(--brand-ink-2); }
.s-steps { border-top-color: var(--brand-gold); }
.s-steps li::before { color: var(--brand-gold-ink); }
.s-consult { border-top-color: var(--brand-gold); }
.mk-est { border-color: var(--brand-gold); background: var(--brand-gold-50); }
.mk-cefr .mk-est-total { font-size: 36px; }
.mk-est.is-locked { display: block; text-decoration: none; color: var(--brand-ink); border-style: dashed; }
.mk-est.is-locked .mk-est-total { display: flex; align-items: center; gap: 10px; font-size: 30px; }
.mk-est.is-locked .mk-est-total svg { width: 28px; height: 28px; }
.mk-est.is-locked:hover { background: var(--brand-paper); }
.mk-r-exp { background: var(--brand-gold-50); }
.mk-intro .s-btn { margin-top: 14px; }
@media (max-width: 760px) {
    .site .wrap { padding: 0 18px; }
    .s-head .wrap { min-height: 60px; gap: 10px 16px; }
    .s-head .s-actions { display: none; }
    .s-nav { order: 3; flex: 0 0 100%; justify-content: flex-start; gap: 20px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .s-nav a { white-space: nowrap; }
    .s-hero { padding: 36px 0 30px; }
    .s-hero h1 { font-size: 32px; }
    .s-two, .s-form .row2 { grid-template-columns: 1fr; }
    .s-table th { width: 96px; }
}

/* 科技感面板（_m.html 的 tech_panel）：藍黑底、霧藍電路與聲波、芥末黃分數環，顏色都低彩度 */
.s-tech { display: block; position: relative; aspect-ratio: 320 / 150; margin: 6px 0; background: var(--brand-tech); overflow: hidden; }
.s-tech svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s-tech .t-grid { fill: none; stroke: var(--brand-ai); stroke-opacity: .16; stroke-width: .6; }
.s-tech .t-glow-a { stop-color: var(--brand-ai); stop-opacity: .32; }
.s-tech .t-glow-b { stop-color: var(--brand-ai); stop-opacity: 0; }
.s-tech .t-trace path { fill: none; stroke: var(--brand-ai-glow); stroke-opacity: .45; stroke-width: 1.2; }
.s-tech .t-pulse { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 18 400; stroke-dashoffset: 0; opacity: .85; }
.s-tech .t-node circle { fill: var(--brand-tech); stroke: var(--brand-ai-glow); stroke-width: 1.2; }
.s-tech .t-wave rect { fill: var(--brand-ai-glow); opacity: .55; transform-box: fill-box; transform-origin: bottom; }
.s-tech .t-ring-bg { fill: none; stroke: var(--brand-ai); stroke-opacity: .25; stroke-width: 3; }
.s-tech .t-ring { fill: none; stroke: var(--brand-gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 68 100; transform: rotate(-90deg); opacity: .9; }
.s-tech .t-ring-in { fill: none; stroke: var(--brand-ai-glow); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 4; }
.s-tech .t-chip path { stroke: var(--brand-ai-glow); stroke-width: 1.6; stroke-linecap: round; }
.s-tech .t-chip rect { fill: var(--brand-tech); stroke: var(--brand-ai-glow); stroke-width: 1.4; }
.s-tech .t-chip text { fill: #fff; font: 900 10px/1 Arial, sans-serif; }
.s-tech .t-sub { fill: var(--brand-ai-glow); font: 700 9.5px/1 Consolas, "Courier New", monospace; letter-spacing: 1.6px; }
.s-tech .t-label { fill: #fff; font: 900 30px/1 Arial, sans-serif; letter-spacing: 1px; }
@media (prefers-reduced-motion: no-preference) {
    .s-tech .t-pulse { animation: t-run 3.2s linear infinite; }
    .s-tech .t-wave rect { animation: t-eq 1.6s ease-in-out infinite alternate; }
    .s-tech .t-ring { animation: t-spin 9s linear infinite; transform-origin: 0 0; }
    .s-tech .t-ring-in { animation: t-spin 14s linear infinite reverse; transform-origin: 0 0; }
    .s-tech .t-caret { animation: s-ai-blink 1s steps(1) infinite; }
}
@keyframes t-run { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -260; } }
@keyframes t-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes t-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.h-cat:hover .s-tech .t-trace path { stroke-opacity: .8; }
.h-cat:hover .s-tech { outline: 1px solid var(--brand-gold); outline-offset: 3px; }
.h-cat-row { margin: 0 -24px; }
.h-cat, .h-cat:first-child { padding: 6px 24px 10px; }
.h-cat:first-child { border-left: none; }
@media (max-width: 980px) { .h-cat-row { margin: 0 -14px; } .h-cat, .h-cat:first-child, .h-cat:nth-child(3) { padding: 4px 14px 8px; } .h-cat:nth-child(3) { border-left: none; } }

/* ======================================================================
   科技感互動（static/site.js；2026-11 使用者要求「整個網站的交互設計改得更有科技感」）
   顏色維持低彩度：霧藍 --brand-ai／--brand-ai-glow、芥末黃 --brand-gold
   ====================================================================== */
/* 頁首下緣的閱讀進度線 */
.s-head { position: sticky; }
.s-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand-ai), var(--brand-gold)); pointer-events: none; }

/* 捲到時浮現 */
.s-js .t-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.s-js .t-rv.t-in { opacity: 1; transform: none; }
/* 照片由一側拉開（clip-path 放在照片本身，不放在被觀察的區塊上，否則捲到也偵測不到） */
.s-js .h-story-photo.t-rv { opacity: 1; transform: none; }
.s-js .h-story-photo.t-rv > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) var(--d, 0ms); }
.s-js .h-story.is-flip .h-story-photo.t-rv > img { clip-path: inset(0 0 0 100%); }
.s-js .h-story .h-story-photo.t-rv.t-in > img { clip-path: inset(0); }

/* 眉標打字時的游標 */
.t-typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--brand-ai); animation: s-ai-blink .8s steps(1) infinite; }
.s-eyebrow.lined::before { background: linear-gradient(90deg, var(--brand-gold) 0 60%, var(--brand-ai) 60%); }

/* 跟著滑鼠的光暈＋四角的 HUD 框線 */
.t-glow { position: relative; isolation: isolate; }
.t-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand-ai) 16%, transparent), transparent 70%); }
.t-glow:hover::before { opacity: 1; }
.t-glow::after { content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: 0; transform: scale(1.03); transition: opacity .25s, transform .25s;
    --c: var(--brand-ai); --s: 12px;
    background:
        linear-gradient(var(--c), var(--c)) top left / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) top right / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--s);
    background-repeat: no-repeat; }
.t-glow:hover::after { opacity: 1; transform: none; }
.mk-opts label.t-glow::after, .s-foot-go.t-glow::after { display: none; }
.s-foot-go.t-glow::before { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand-ai-glow) 22%, transparent), transparent 70%); }
.h-row:hover .h-row-name { color: var(--brand-ink); text-shadow: 0 0 18px color-mix(in srgb, var(--brand-ai-glow) 55%, transparent); }
.h-row::after { inset: 8px 8px 8px 24px; }

/* 按鈕：滑過時一道光掃過 */
.s-btn { position: relative; overflow: hidden; }
.s-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--brand-ai-glow) 55%, transparent), transparent); transform: skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) { .s-btn:hover::after { animation: t-sweep .7s ease; } }
@keyframes t-sweep { to { left: 130%; } }

/* 照片：細格線、掃描線、四角 HUD 框 */
.h-hero-art::before, .h-story-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: linear-gradient(color-mix(in srgb, #fff 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, #fff 10%, transparent) 1px, transparent 1px);
    background-size: 48px 48px; mix-blend-mode: overlay; }
.h-hero-art::after, .h-story-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-ai-glow) 22%, transparent) 85%, color-mix(in srgb, var(--brand-ai-glow) 70%, transparent) 100%) 0 -60% / 100% 30% no-repeat; }
@media (prefers-reduced-motion: no-preference) {
    .h-hero-art::after { animation: t-scan 6s cubic-bezier(.4,0,.6,1) 1s infinite; }
    .h-story-photo:hover::after { animation: t-scan 2.4s cubic-bezier(.4,0,.6,1) infinite; }
}
@keyframes t-scan { 0% { background-position: 0 -60%; opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { background-position: 0 140%; opacity: 0; } }
.t-hud { position: absolute; z-index: 2; pointer-events: none; }
.t-hud-corners { inset: 18px; --c: color-mix(in srgb, #fff 75%, transparent); --s: 22px;
    background:
        linear-gradient(var(--c), var(--c)) top left / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) top right / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--s),
        linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--s);
    background-repeat: no-repeat; }
.t-hud-tag { left: 22px; bottom: 20px; font: 700 10.5px/1 Consolas, "Courier New", monospace; letter-spacing: .16em; color: #fff;
    background: color-mix(in srgb, var(--brand-tech) 70%, transparent); padding: 6px 10px; display: flex; gap: 8px; align-items: center; }
.t-hud-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gold); }
@media (prefers-reduced-motion: no-preference) { .t-hud-tag i { animation: s-ai-blink 1.4s ease-in-out infinite; } }

/* 關於區塊照片上的 AI 環（呼應使用者給的參考圖：筆電上浮著發光的 AI 圓環） */
.t-hud-ring { width: 46%; max-width: 260px; aspect-ratio: 1; left: 50%; top: 42%; transform: translate(-50%, -50%); }
.t-hud-ring svg { width: 100%; height: 100%; overflow: visible; }
.t-hud-ring .r1 { fill: none; stroke: var(--brand-ai-glow); stroke-width: 1.4; stroke-dasharray: 3 6; opacity: .9; }
.t-hud-ring .r2 { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 90 40 20 40; opacity: .8; }
.t-hud-ring .r3 { fill: color-mix(in srgb, var(--brand-tech) 55%, transparent); stroke: var(--brand-ai-glow); stroke-width: 1.2; }
.t-hud-ring .r4 { fill: none; stroke: var(--brand-gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 40 400; }
.t-hud-ring text { fill: #fff; font: 900 34px/1 Arial, sans-serif; letter-spacing: 1px; }
.t-hud-ring .r-tick { stroke: var(--brand-ai-glow); stroke-width: 1.2; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
    .t-hud-ring .r1 { transform-origin: 100px 100px; animation: h-spin 30s linear infinite; }
    .t-hud-ring .r2 { transform-origin: 100px 100px; animation: h-spin 12s linear infinite reverse; }
    .t-hud-ring .r4 { transform-origin: 100px 100px; animation: h-spin 5s linear infinite; }
}

/* 頁尾：極淡的點陣與一條流動的光線 */
.s-foot { position: relative; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand-ai-glow) 14%, transparent) 1px, transparent 0); background-size: 22px 22px; }
.s-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-ai-glow), var(--brand-gold), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .s-foot::before { animation: t-flow 7s linear infinite; } }
@keyframes t-flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* 迷你模考：作答列與 AI 診斷框的掃描光 */
.mk-bar { background-image: linear-gradient(90deg, var(--brand-ink), color-mix(in srgb, var(--brand-tech) 80%, var(--brand-ai)) 50%, var(--brand-ink)); }
.mk-timer { font-family: Consolas, "Courier New", monospace; letter-spacing: .06em; }
.mk-ai { background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand-ai) 14%, transparent) 1px, transparent 0); background-size: 16px 16px; overflow: hidden; }
.mk-ai::before { background: linear-gradient(90deg, var(--brand-ai), var(--brand-ai-glow) 40%, var(--brand-gold) 50%, var(--brand-ai-glow) 60%, var(--brand-ai)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .mk-ai::before { animation: t-flow2 4s linear infinite; } }
@keyframes t-flow2 { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.mk-barfill { background: linear-gradient(90deg, var(--brand-ink), var(--brand-ai)); }
@media (max-width: 760px) { .t-hud-ring { width: 40%; } .t-hud-corners { inset: 12px; --s: 16px; } }

/* ======================================================================
   首頁 AI 線上模考：展開卡片（2026-11 使用者給影片要這種互動＋科技感）
   一張展開、其他縮成直條膠囊；site.js 加上 .is-ready 才變成展開式，沒有 JS 時是並排卡片
   ====================================================================== */
.h-acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 18px; border-radius: 6px;
    border: 1px solid var(--brand-line); background-color: var(--brand-bg);
    background-image: linear-gradient(color-mix(in srgb, var(--brand-ai) 9%, transparent) 1px, transparent 1px),
                      linear-gradient(90deg, color-mix(in srgb, var(--brand-ai) 9%, transparent) 1px, transparent 1px);
    background-size: 32px 32px; background-position: -1px -1px; }
.h-acc-item { position: relative; background: var(--brand-paper); border-radius: 6px; overflow: hidden; }
.h-acc-tab { display: none; }
.h-acc-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; box-sizing: border-box; }
.h-acc-txt { display: flex; flex-direction: column; align-items: flex-start; }
.h-acc-no { font: 700 12px/1 Consolas, "Courier New", monospace; letter-spacing: .14em; color: var(--brand-gold-ink); margin-bottom: 14px; }
.h-acc-no i { font-style: normal; color: var(--brand-muted); }
.h-acc-txt h3 { margin: 0 0 12px; font-size: 30px; font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.h-acc-en { font: 700 11px/1.4 Consolas, "Courier New", monospace; letter-spacing: .16em; color: var(--brand-ai); margin-bottom: 14px; }
.h-acc-txt p { margin: 0 0 22px; color: var(--brand-ink-2); font-size: 15px; max-width: 360px; }
.h-acc-art { display: block; text-decoration: none; }
.h-acc-art .s-tech { margin: 0; border-radius: 4px; }

/* 展開式（有 JS） */
.h-acc.is-ready { --tab: 68px; --gap: 10px; container-type: inline-size; display: flex; gap: var(--gap); height: 400px; }
.h-acc.is-ready .h-acc-item { flex: 0 0 var(--tab); border-radius: 34px; transition: flex-grow .75s cubic-bezier(.7,0,.2,1), border-radius .5s, background-color .5s; }
.h-acc.is-ready .h-acc-item:nth-child(4n+1) { background: var(--brand-gold-50); }
.h-acc.is-ready .h-acc-item:nth-child(4n+2) { background: var(--brand-ai-50); }
.h-acc.is-ready .h-acc-item:nth-child(4n+3) { background: var(--brand-soft); }
.h-acc.is-ready .h-acc-item:nth-child(4n+4) { background: color-mix(in srgb, var(--brand-ai) 30%, var(--brand-paper)); }
.h-acc.is-ready .h-acc-item.is-on { flex-grow: 1; border-radius: 6px; background: var(--brand-paper); box-shadow: inset 0 0 0 1px var(--brand-line); }
.h-acc.is-ready .h-acc-tab { display: flex; position: absolute; inset: 0; z-index: 2; border: 0; margin: 0; background: transparent; cursor: pointer; color: var(--brand-ink);
    flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding: 22px 0 24px; transition: opacity .3s; border-radius: inherit; }
.h-acc.is-ready .h-acc-tab:hover { box-shadow: inset 0 0 0 1.5px var(--brand-ai), 0 0 22px color-mix(in srgb, var(--brand-ai-glow) 45%, transparent); }
.h-acc.is-ready .h-acc-tab:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
.h-acc.is-ready .is-on .h-acc-tab { opacity: 0; pointer-events: none; }
.h-acc-v { writing-mode: vertical-rl; font: 700 11.5px/1 Consolas, "Courier New", monospace; letter-spacing: .18em; color: var(--brand-ink-2);
    display: flex; gap: 14px; align-items: center; }
.h-acc-v b { font: 900 15px/1 Arial, sans-serif; letter-spacing: .12em; color: var(--brand-ink); }
.h-acc-led { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-gold) 25%, transparent); }
.h-acc.is-ready .h-acc-body { position: absolute; top: 0; left: 0; bottom: 0; width: calc(100cqw - (var(--n) - 1) * (var(--tab) + var(--gap)));
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding: 34px 38px; opacity: 0; transition: opacity .35s; }
.h-acc.is-ready .is-on .h-acc-body { opacity: 1; transition: opacity .5s .3s; }
.h-acc.is-ready .h-acc-txt h3 { font-size: 46px; }
/* 換卡時一道掃描光由左掃到右 */
.h-acc.is-ready .h-acc-body::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; pointer-events: none; opacity: 0;
    background: var(--brand-ai-glow); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--brand-ai-glow) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) {
    .h-acc.is-ready .is-on .h-acc-body::after { animation: t-scanx 1.1s cubic-bezier(.6,0,.3,1) .2s; }
    .h-acc.is-ready .h-acc-item:not(.is-on) .h-acc-led { animation: s-ai-blink 1.6s ease-in-out infinite; }
    .h-acc.is-ready .h-acc-item:nth-child(2) .h-acc-led { animation-delay: .4s; }
    .h-acc.is-ready .h-acc-item:nth-child(3) .h-acc-led { animation-delay: .8s; }
}
@media (prefers-reduced-motion: reduce) { .h-acc.is-ready .h-acc-item, .h-acc.is-ready .h-acc-body { transition: none; } }
@keyframes t-scanx { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* 自動輪播的進度條（停住時藏起） */
.h-acc-bar { position: absolute; left: 38px; right: 38px; bottom: 18px; height: 2px; background: var(--brand-line); overflow: hidden; }
.h-acc-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand-ai), var(--brand-gold)); }
.h-acc.is-auto .is-on .h-acc-bar i { animation: t-fill var(--auto, 6s) linear forwards; }
.h-acc:not(.is-auto) .h-acc-bar { display: none; }
@keyframes t-fill { to { transform: scaleX(1); } }

@media (max-width: 980px) {
    .h-acc.is-ready { height: 440px; }
    .h-acc.is-ready .h-acc-body { grid-template-columns: 1fr; gap: 16px; padding: 26px 28px 34px; align-content: center; }
    .h-acc.is-ready .h-acc-txt h3 { font-size: 34px; }
    .h-acc.is-ready .h-acc-txt h3 br { display: none; }
    .h-acc.is-ready .h-acc-txt p { margin-bottom: 14px; }
    .h-acc.is-ready .h-acc-art { max-width: 420px; }
}
}
.h-acc-v em { font: 800 13px/1 inherit; font-family: inherit; font-style: normal; text-orientation: upright; letter-spacing: .3em; color: var(--brand-ink-2); }
.h-acc-v em { font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
@media (max-width: 980px) { .h-acc.is-ready .h-acc-art { max-width: 340px; } .h-acc.is-ready .h-acc-body { padding-top: 22px; padding-bottom: 30px; gap: 12px; } }

/* 2026-11 使用者要求「每一個框都大一點，交互更快更流暢」：直條加寬、舞台加高、展開時間縮短 */
.h-acc.is-ready { --tab: 104px; --gap: 14px; height: 500px; padding: 22px; }
.h-acc.is-ready .h-acc-item { border-radius: 52px; transition: flex-grow .42s cubic-bezier(.3,.7,.2,1), border-radius .3s, background-color .3s; will-change: flex-grow; }
.h-acc.is-ready .h-acc-item.is-on { border-radius: 8px; }
.h-acc.is-ready .h-acc-tab { padding: 30px 0; gap: 26px; transition: opacity .18s; }
.h-acc.is-ready .h-acc-body { transition: opacity .15s; padding: 44px 48px; gap: 40px; }
.h-acc.is-ready .is-on .h-acc-body { transition: opacity .3s .12s; }
.h-acc.is-ready .h-acc-txt h3 { font-size: 56px; }
.h-acc.is-ready .h-acc-txt p { font-size: 16.5px; }
.h-acc-led { width: 10px; height: 10px; }
.h-acc-v { font-size: 13px; gap: 18px; }
.h-acc-v b { font-size: 20px; }
.h-acc-v em { font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { .h-acc.is-ready .is-on .h-acc-body::after { animation-duration: .7s; animation-delay: .08s; } }
@media (max-width: 980px) { .h-acc.is-ready { --tab: 76px; height: 500px; } .h-acc.is-ready .h-acc-body { padding: 28px 30px 36px; gap: 18px; } .h-acc.is-ready .h-acc-txt h3 { font-size: 38px; } .h-acc.is-ready .h-acc-art { max-width: 380px; } }
/* 框再大一點：舞台超出內文寬度，最寬 1360px */
@media (min-width: 981px) {
    .h-acc.is-ready { margin-inline: calc((min(1360px, 100vw - 48px) - 100%) / -2); }
    .h-acc.is-ready .h-acc-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.h-acc-v em { font-style: normal !important; font-weight: 800; }

/* 2026-11 使用者：「展開速度用原本的，直條預設全部閉合、平均分配大小、佔滿畫面，鼠標碰到哪個再展開哪個」
   沒有任何一張展開時（:not(.has-open)），四張平均分寬、橫排顯示大字考試代號；
   滑鼠移到某張（.has-open）它才展開，其他縮成直條；滑鼠離開整排又回到平均 */
.h-acc.is-ready .h-acc-item { flex: 1 1 0; transition: flex-grow .75s cubic-bezier(.7,0,.2,1), flex-basis .75s cubic-bezier(.7,0,.2,1), border-radius .5s, background-color .5s; }
.h-acc.is-ready.has-open .h-acc-item { flex: 0 0 var(--tab); }
.h-acc.is-ready.has-open .h-acc-item.is-on { flex: 1 1 0; }
.h-acc.is-ready .h-acc-item.is-on { border-radius: 8px; }
.h-acc.is-ready .h-acc-tab { transition: opacity .3s; }
.h-acc.is-ready .h-acc-body { transition: opacity .35s; }
.h-acc.is-ready .is-on .h-acc-body { transition: opacity .5s .3s; }
@media (prefers-reduced-motion: no-preference) { .h-acc.is-ready .is-on .h-acc-body::after { animation-duration: 1.1s; animation-delay: .2s; } }
.h-acc-peek { display: none; }

/* 平均並排時的直條：橫排大字、底部一行英文說明和箭頭，滑過時微亮 */
.h-acc.is-ready:not(.has-open) .h-acc-tab { align-items: flex-start; justify-content: flex-start; padding: 34px 32px 30px; gap: 22px; text-align: left; }
.h-acc.is-ready:not(.has-open) .h-acc-v { writing-mode: horizontal-tb; flex-direction: column; align-items: flex-start; gap: 14px; }
.h-acc.is-ready:not(.has-open) .h-acc-v b { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: .04em; }
.h-acc.is-ready:not(.has-open) .h-acc-v em { font-size: 17px; letter-spacing: .2em; text-orientation: mixed; }
.h-acc.is-ready:not(.has-open) .h-acc-peek { display: flex; margin-top: auto; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--brand-ink) 14%, transparent);
    font: 700 11px/1.3 Consolas, "Courier New", monospace; letter-spacing: .14em; color: var(--brand-ink-2); }
.h-acc.is-ready:not(.has-open) .h-acc-tab::after { content: ""; position: absolute; right: 22px; top: 26px; width: 92px; height: 92px; border-radius: 50%; pointer-events: none;
    border: 1px dashed color-mix(in srgb, var(--brand-ai) 45%, transparent); box-shadow: inset 0 0 0 14px color-mix(in srgb, var(--brand-ai) 7%, transparent); }
.h-acc.is-ready:not(.has-open) .h-acc-tab:hover .h-more-dot { background: var(--brand-gold); border-color: var(--brand-gold); }
@media (prefers-reduced-motion: no-preference) { .h-acc.is-ready:not(.has-open) .h-acc-tab::after { animation: h-spin 24s linear infinite; } }
@media (max-width: 980px) { .h-acc.is-ready:not(.has-open) .h-acc-tab { padding: 26px 20px; } .h-acc.is-ready:not(.has-open) .h-acc-tab::after { width: 64px; height: 64px; right: 14px; top: 18px; } }
.h-acc-blurb { display: none; }
.h-acc.is-ready:not(.has-open) .h-acc-blurb { display: block; font-size: 14.5px; line-height: 1.75; color: var(--brand-ink-2); max-width: 260px; }
@media (max-width: 980px) { .h-acc.is-ready:not(.has-open) .h-acc-blurb { font-size: 13px; } }

/* ======================================================================
   首頁標題的科技感動態（site.js heroTitle；2026-11 使用者要求）
   ====================================================================== */
.h-hero-txt { position: relative; isolation: isolate; }
/* 滑鼠附近亮起的細格線 */
.h-hero-txt::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
    background-image: linear-gradient(color-mix(in srgb, var(--brand-ai) 30%, transparent) 1px, transparent 1px),
                      linear-gradient(90deg, color-mix(in srgb, var(--brand-ai) 30%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 50%), #000, transparent 75%);
            mask-image: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 50%), #000, transparent 75%); }
.h-hero-txt:hover::before { opacity: 1; }
/* 解碼中的字用霧藍等寬字 */
.h-title .is-scr { color: var(--brand-ai); }
.h-title .h-t-word { position: relative; display: inline-block; }
/* 輪播的考試名稱：底下一條黃藍漸層線，換字時由左畫過去 */
.h-title .h-t-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand-ai), var(--brand-gold)); }
@media (prefers-reduced-motion: no-preference) {
    .h-title .h-t-word.is-swap::after { animation: h-underline .7s cubic-bezier(.6,0,.2,1); }
    .h-title .h-t-caret { animation: s-ai-blink .9s steps(1) infinite; }
}
@keyframes h-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 標題最後的游標 */
.h-title .h-t-caret { display: inline-block; width: .07em; height: .82em; margin-left: .08em; vertical-align: -.06em; background: var(--brand-ai); }

/* ======================================================================
   手機的 AI 線上模考（2026-11 使用者：「手機版模考也是直條，點哪個展開哪個，直條大小要配合介面大小」）
   四條上下排列：一開始平均高度（依手機畫面高度算，--bar），點哪條就展開哪條、其他縮成細條（--mini）；
   展開的高度由 site.js 量內容後寫進 --open-h，所以內容多長就展開多長
   ====================================================================== */
@media (max-width: 760px) {
    .h-acc.is-ready { --bar: clamp(78px, calc((100svh - 300px) / var(--n)), 124px); --mini: 60px;
        flex-direction: column; height: auto; gap: 10px; padding: 0; margin: 0; }
    /* 手機版不要外框與格線底（2026-11 使用者要求），只留四張彩色卡片 */
    .h-acc, .h-acc.is-ready { border: 0; background: none; border-radius: 0; }
    .h-acc.is-ready .h-acc-item, .h-acc.is-ready.has-open .h-acc-item { flex: 0 0 auto; height: var(--bar); border-radius: 22px;
        transition: height .75s cubic-bezier(.7,0,.2,1), border-radius .5s, background-color .5s; will-change: height; }
    .h-acc.is-ready.has-open .h-acc-item { height: var(--mini); border-radius: 30px; }
    .h-acc.is-ready.has-open .h-acc-item.is-on { flex: 0 0 auto; height: var(--open-h, 640px); border-radius: 10px; }
    /* 條上的字：橫排一行，右邊箭頭 */
    .h-acc.is-ready .h-acc-tab, .h-acc.is-ready:not(.has-open) .h-acc-tab { flex-direction: row; align-items: center; justify-content: flex-start;
        gap: 14px; padding: 0 18px 0 20px; text-align: left; }
    .h-acc.is-ready .h-acc-v, .h-acc.is-ready:not(.has-open) .h-acc-v { writing-mode: horizontal-tb; flex-direction: row; align-items: baseline; gap: 12px; font-size: 11px; }
    .h-acc.is-ready .h-acc-v b { font-size: 17px; letter-spacing: .08em; }
    .h-acc.is-ready:not(.has-open) .h-acc-v b { font-size: clamp(22px, 7vw, 28px); letter-spacing: .04em; }
    .h-acc.is-ready .h-acc-v em, .h-acc.is-ready:not(.has-open) .h-acc-v em { font-size: 14px; letter-spacing: .14em; text-orientation: mixed; }
    .h-acc.is-ready .h-acc-blurb, .h-acc.is-ready:not(.has-open) .h-acc-blurb { display: none; }
    .h-acc.is-ready .h-acc-peek, .h-acc.is-ready:not(.has-open) .h-acc-peek { display: flex; margin: 0 0 0 auto; width: auto; padding: 0; border: 0; }
    .h-acc.is-ready .h-acc-peek > span:first-child { display: none; }
    .h-acc.is-ready.has-open .h-acc-item:not(.is-on) .h-more-dot { width: 20px; height: 20px; font-size: 10px; }
    .h-acc.is-ready:not(.has-open) .h-acc-tab::after { width: 58px; height: 58px; right: 8px; top: calc(50% - 29px); box-shadow: inset 0 0 0 9px color-mix(in srgb, var(--brand-ai) 7%, transparent); }
    .h-acc.is-ready .h-acc-tab:hover { box-shadow: none; }
    /* 展開的內容：科技感面板在上、文字在下 */
    .h-acc.is-ready .h-acc-body { top: 0; left: 0; right: 0; bottom: auto; width: auto; display: flex; flex-direction: column; align-items: stretch;
        gap: 16px; padding: 18px 18px 22px; }
    .h-acc.is-ready .h-acc-art { order: -1; max-width: none; }
    .h-acc.is-ready .h-acc-txt h3 { font-size: 28px; }
    .h-acc.is-ready .h-acc-txt h3 br { display: none; }
    .h-acc.is-ready .h-acc-txt p { font-size: 15px; margin-bottom: 16px; }
    .h-acc-bar { display: none !important; }
}

/* 頁首「課程介紹」直接捲到首頁的課程區（2026-11 使用者要求，不跳到 /courses）；留出固定頁首的高度 */
html { scroll-behavior: smooth; }
#courses, #campus, #ai-mock { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 2026-11 使用者：卡片右上角的虛線圓圈「拿掉或改得有意義一點」。本來想改成題數與時間，
   但卡片說明已經寫了題數、分鐘數（使用者要求內容不重複），所以直接拿掉 */
.h-acc.is-ready .h-acc-tab::after, .h-acc.is-ready:not(.has-open) .h-acc-tab::after { content: none; display: none; }

/* 廣告進來的課程介紹共用的眉標與連結（.h-adi-course） */
.h-hc-tag { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--brand-gold-ink); }
.h-hc-lead { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.5; color: var(--brand-ink); }
.h-hc-meta { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; color: var(--brand-ink-2); }
.h-hc-links { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.h-hc-links a { font-size: 13.5px; font-weight: 800; color: var(--brand-ink); text-decoration: none; border-bottom: 1.5px solid var(--brand-ink); padding-bottom: 2px; }
.h-hc-links a:hover { color: var(--brand-ai); border-color: var(--brand-ai); }

/* 2026-11 使用者：「補習班 LOGO 大一點」。頁首的圖騰與名稱放大，頁首跟著加高 */
.s-head .wrap { min-height: 88px; }
.s-brand { font-size: 26px; gap: 14px; }
.s-brand img { height: 54px; }
.s-brand small { font-size: 12px; letter-spacing: .16em; margin-top: 2px; }
.mk-bar { top: 89px; }
#courses, #campus, #ai-mock { scroll-margin-top: 104px; }
@media (max-width: 760px) {
    .s-head .wrap { min-height: 70px; padding-top: 10px; }
    .s-brand { font-size: 22px; gap: 11px; }
    .s-brand img { height: 44px; }
    .s-brand small { font-size: 10.5px; }
}

/* 2026-11 使用者：「進入模擬考的按鈕移到右邊，明顯一點，電腦版也調整」。
   主視覺的按鈕列：次要連結在左、主按鈕靠右；主按鈕放大、右邊黃色箭頭方塊、底下一道黃色邊（平塗，不用模糊陰影） */
.h-hero-cta.is-main { justify-content: space-between; gap: 18px 24px; max-width: 520px; }
.h-hero-cta.is-main .h-go { margin-left: auto; padding: 0 0 0 28px; gap: 22px; font-size: 18px; font-weight: 900; letter-spacing: .04em; min-height: 62px;
    box-shadow: 6px 6px 0 var(--brand-gold); transition: transform .18s, box-shadow .18s, background .15s, color .15s; }
.h-hero-cta.is-main .h-go i { font-style: normal; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 62px; font-size: 22px;
    background: var(--brand-gold); color: var(--brand-ink); transition: background .15s; }
.h-hero-cta.is-main .h-go:hover { background: var(--brand-ink); color: #fff !important; transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--brand-gold); }
.h-hero-cta.is-main .h-go:hover i { background: var(--brand-ai-glow); }
@media (prefers-reduced-motion: no-preference) { .h-hero-cta.is-main .h-go i { animation: h-go-nudge 1.8s ease-in-out infinite; } }
@keyframes h-go-nudge { 0%, 100% { text-indent: 0; } 50% { text-indent: 8px; } }
@media (max-width: 760px) {
    .h-hero-cta.is-main { max-width: none; }
    .h-hero-cta.is-main .h-go { font-size: 16.5px; padding-left: 20px; gap: 16px; min-height: 58px; }
    .h-hero-cta.is-main .h-go i { width: 54px; }
}

/* 2026-11 使用者：「按鈕改成橘黑，然後圓角」，接著「Claude 的橘色，橘跟黑調換」：
   主按鈕是橘底膠囊配黑字，右邊黑色圓形箭頭，底下一道黑邊（平塗，不用模糊陰影） */
.h-hero-cta.is-main .h-go { border-radius: 999px; padding: 7px 7px 7px 32px; min-height: 64px; gap: 20px;
    background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-ink) !important; box-shadow: 0 6px 0 var(--brand-ink); }
.h-hero-cta.is-main .h-go i { align-self: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand-ink); color: var(--brand-orange); }
.h-hero-cta.is-main .h-go:hover { background: var(--brand-orange-2); border-color: var(--brand-orange-2); color: var(--brand-ink) !important;
    transform: translateY(3px); box-shadow: 0 3px 0 var(--brand-ink); }
.h-hero-cta.is-main .h-go:hover i { background: var(--brand-ink); color: #fff; }
.h-hero-cta.is-main .h-go:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
@media (max-width: 760px) {
    .h-hero-cta.is-main .h-go { padding: 6px 6px 6px 24px; min-height: 58px; gap: 14px; }
    .h-hero-cta.is-main .h-go i { width: 46px; height: 46px; }
}

/* 首頁主視覺下面直接接諮詢表單（2026-11 使用者要求：展開著可以直接填） */
.h-lead { background: var(--brand-gold-50); border-bottom: 1px solid var(--brand-line); padding: 44px 0 48px; }
.h-lead-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 40px; align-items: start; }
.h-lead-head h2 { margin: 14px 0 10px; font-size: 30px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.h-lead-head p:last-child { margin: 0; font-size: 14.5px; color: var(--brand-ink-2); }
.h-lead-form { padding: 26px 28px 28px; }
.h-lead-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.h-lead-row label.f { margin-top: 0; }
.s-form.h-lead-form > label.f:first-of-type { margin-top: 18px; }
.h-lead-end { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 20px; flex-wrap: wrap; }
.h-lead-end .consent { margin-top: 0; flex: 1 1 300px; }
.h-lead-end .s-btn { flex: 0 0 auto; }
#consult { scroll-margin-top: 104px; }
@media (max-width: 980px) { .h-lead-in { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 760px) {
    .h-lead { padding: 32px 0 36px; }
    .h-lead-head h2 { font-size: 26px; }
    .h-lead-form { padding: 20px 18px 22px; }
    .h-lead-row { grid-template-columns: 1fr; }
    .h-lead-form .h-lead-row > div + div label.f:first-of-type { margin-top: 16px; }
    .h-lead-end .s-btn { width: 100%; }
}

/* 表單框框都圓角（2026-11 使用者要求）：外框、輸入框、下拉選單、送出按鈕；首頁表單與諮詢頁共用 */
.s-form { border-radius: 20px; }
.s-form input[type=text], .s-form input[type=tel], .s-form input[type=email], .s-form select, .s-form textarea { border-radius: 12px; }
.s-form input:focus, .s-form select:focus, .s-form textarea:focus { border-radius: 12px; }
.s-form .s-btn { border-radius: 99px; }
.s-form .consent input { border-radius: 5px; }

/* 2026-11 使用者：從各考試的廣告進來，表單下面先介紹學校與該課程（.h-adi），再放學員心得（.h-rev），然後才是其他模考 */
#intro, #reviews { scroll-margin-top: 104px; }
.h-adi { padding: 72px 0; border-bottom: 1px solid var(--brand-line); }
.h-adi-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.h-adi-school .s-intro { margin: 0 0 26px; font-size: 15.5px; line-height: 1.95; color: var(--brand-ink-2); }
.h-adi-course { background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 20px; overflow: hidden; }
.h-adi-photo { aspect-ratio: 16 / 8; background: var(--brand-soft); }
.h-adi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-adi-body { padding: 26px 30px 28px; border-top: 3px solid var(--tone, var(--brand-ink)); }
.h-adi-body h3 { margin: 0 0 8px; font-size: 30px; font-weight: 900; letter-spacing: -.01em; }
.h-adi-lead { margin: 0 0 18px; font-size: 16.5px; font-weight: 700; line-height: 1.6; color: var(--brand-ink); }
.h-adi-meta { margin: 0 0 20px; border-top: 1px solid var(--brand-line); }
.h-adi-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--brand-line); font-size: 14.5px; }
.h-adi-meta dt { font-weight: 800; color: var(--brand-ink); }
.h-adi-meta dd { margin: 0; color: var(--brand-ink-2); }

.h-rev { padding: 64px 0 72px; background: var(--brand-gold-50); border-bottom: 1px solid var(--brand-line); }
.h-rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.h-rev-card { position: relative; margin: 0; padding: 30px 26px 22px; background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 20px; display: flex; flex-direction: column; }
.h-rev-q { position: absolute; top: 4px; right: 20px; font: 900 72px/1 Georgia, serif; color: var(--brand-gold); opacity: .55; }
.h-rev-card blockquote { margin: 0 0 20px; flex: 1; font-size: 15.5px; line-height: 1.9; color: var(--brand-ink); }
.h-rev-card figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-top: 14px; border-top: 1px solid var(--brand-line); font-size: 14px; }
.h-rev-card figcaption b { font-weight: 900; }
.h-rev-card figcaption span { padding: 2px 10px; border-radius: 99px; background: var(--brand-soft); font-size: 12.5px; font-weight: 800; }
.h-rev-card figcaption em { font-style: normal; font-weight: 800; color: var(--brand-gold-ink); margin-left: auto; }
.h-rev-card.is-todo figcaption { color: var(--brand-muted, var(--brand-ink-2)); opacity: .6; }
@media (max-width: 980px) { .h-adi-in { grid-template-columns: 1fr; gap: 36px; } .h-rev-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .h-adi { padding: 48px 0; }
                .h-adi-body { padding: 22px 20px 24px; }
    .h-adi-body h3 { font-size: 26px; }
    .h-rev { padding: 44px 0 52px; }
}

/* 2026-11 使用者：頁首最上面放各科主頁入口（多益、雅思、托福、日檢、韓檢），和「課程介紹」「校區」之間用細線隔開 */
.s-nav { align-items: center; }
.s-nav-sep { width: 1px; height: 16px; background: var(--brand-line); flex: 0 0 auto; }
@media (min-width: 761px) { .s-nav { gap: 24px; } }
@media (max-width: 760px) { .s-nav { gap: 14px; scrollbar-width: none; } .s-nav::-webkit-scrollbar { display: none; } }

/* 各科專屬頁面只有一份模考：不用展開式，直接左文右科技面板（2026-11 使用者：專屬頁面只放那一科的模考入口） */
.h-acc.is-one { display: block; }
.h-acc.is-one .h-acc-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 40px 44px; }
.h-acc.is-one .h-acc-txt h3 { font-size: 40px; line-height: 1.15; margin: 0 0 10px; }
.h-acc.is-one .h-acc-txt p { margin: 14px 0 22px; }
@media (max-width: 760px) { .h-acc.is-one .h-acc-body { grid-template-columns: 1fr; gap: 22px; padding: 24px 22px 26px; } .h-acc.is-one .h-acc-txt h3 { font-size: 32px; } }

/* 學員線上學習系統介紹（2026-11 使用者：單字學習與模考系統上線，官網要清楚介紹）。主頁面並排各科卡片，專屬頁面一張橫向卡片 */
#system { scroll-margin-top: 104px; }
.h-sys { padding: 64px 0 56px; border-bottom: 1px solid var(--brand-line); background: var(--brand-bg); }
.h-sys-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: 26px; }
.h-sys-head .h-big { margin: 0; }
.h-sys-head p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--brand-ink-2); }
.h-sys-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; font-size: 13.5px; color: var(--brand-ink-2); }
@media (max-width: 760px) {
    .h-sys { padding: 44px 0 40px; }
    .h-sys-head { grid-template-columns: 1fr; }
}

/* 為什麼選驅勢改成手冊的九點（2026-11 使用者提供）：三欄三列，每格上方細線 */
.h-why-cols > div { border-bottom: 1px solid var(--brand-line); padding: 22px 28px 22px; }
.h-why-cols > div:nth-child(3n+1) { border-left: none; padding-left: 0; }
.h-why-cols h3 { font-size: 21px; }
.h-why-cols p { font-size: 14.5px; line-height: 1.75; }
@media (max-width: 760px) {
    .h-why-cols > div, .h-why-cols > div:nth-child(3n+1) { padding: 16px 0; }
    }

/* ---- 程度分級制度（CEFR，主頁面）：照手冊做成長條圖，六欄對齊，下面接各檢定分數與教學方式 ---- */
.h-cefr-lead { max-width: 760px; color: var(--brand-ink-2); margin: 4px 0 24px; }
.h-cefr-scroll { overflow-x: auto; padding-bottom: 6px; }
.h-cefr-hint { display: none; font-size: 12.5px; color: var(--brand-muted); margin: 0 0 8px; }
.h-cefr-chart { min-width: 760px; }
.h-cefr-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 14px; }
.h-cefr-bars { align-items: end; height: 470px; border-bottom: 2px solid var(--brand-ink); }
.h-cefr-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.h-cefr-bar .n { font-size: 30px; font-weight: 900; text-align: center; color: var(--c); line-height: 1; margin-bottom: 8px; }
.h-cefr-bar .b { background: var(--c); color: #fff; height: var(--h); padding: 14px 8px; text-align: center;
    font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 5px; overflow: hidden;
    transform-origin: bottom; }
.h-cefr-bar .b span { display: block; }
.h-cefr-names > div { text-align: center; padding: 12px 4px 0; }
.h-cefr-names small { display: block; font-size: 12.5px; font-weight: 800; color: var(--c); }
.h-cefr-names b { display: block; margin: 4px auto 0; background: var(--c); color: #fff; font-size: 14px; padding: 3px 0; }
.h-cefr-names i { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 10px; border: 2px solid var(--brand-ink);
    border-radius: 50%; font-style: normal; font-weight: 900; font-size: 15px; }
.h-cefr-names i.is-cefr { border: none; width: auto; color: var(--brand-ink); }
.h-cefr-exams { margin-top: 16px; }
.h-cefr-exams .row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 14px; padding: 8px 0; text-align: center; font-weight: 700; font-size: 14.5px; }
.h-cefr-exams .row:nth-child(odd) { background: var(--brand-soft); }
.h-cefr-exams .row b { grid-column: span 2; text-align: right; padding-right: 18px; font-size: 13.5px; color: var(--brand-ink-2); }
.h-cefr-exams .row b::after { content: " →"; color: var(--brand-muted); }
.h-cefr-mode { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 14px; margin-top: 14px; font-weight: 800; letter-spacing: .3em; font-size: 16px; text-align: center; }
.h-cefr-mode span { padding: 10px 0; }
.h-cefr-mode .bi { grid-column: span 3; border-right: 1px solid var(--brand-line); }
.h-cefr-mode .en { grid-column: span 3; }
.h-cefr-mode .en em { font-style: normal; color: var(--brand-gold-ink); }
@media (max-width: 760px) {
    .h-cefr-hint { display: block; }
}
/* 為什麼選驅勢第七點（實體課＋線上直播課）：單獨一點時佔滿整列 */
.h-why-cols > div:nth-child(3n+1):last-child { grid-column: 1 / -1; }
/* 學員心得照片（2026-11 使用者要求放照片、去背）：去背人像站在淺金色半圓上，放在卡片上方 */
.h-rev-photo { position: relative; height: 136px; padding-top: 12px; box-sizing: border-box; margin: 0 -26px 16px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--brand-line); }
.h-rev-photo::before { content: ""; position: absolute; left: 50%; bottom: -46px; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%; background: var(--brand-gold-50); border: 1px solid var(--brand-line); }
.h-rev-photo img { position: relative; max-height: 100%; max-width: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,.04)); }
.h-rev-card.has-photo { padding-top: 0; }
.h-rev-card.has-photo .h-rev-photo { border-radius: 20px 20px 0 0; }
.h-rev-card.has-photo .h-rev-q { top: 10px; right: 22px; }

/* 學員線上學習系統（2026-11 使用者要求簡潔、清楚介紹功能並強調 AI）：上面是藍黑科技感的 AI 功能列，下面每科一列短標籤 */
/* 學習系統（2026-11 使用者要求改編原版排版、強調 AI 並有 AI 視覺化）：深色 AI 區＋學習功能＋各科一列短標籤 */
.h-sys-ai { position: relative; overflow: hidden; border-radius: 18px; background-color: var(--brand-paper); color: var(--brand-ink); border: 1px solid var(--brand-ai-glow);
    background-image: linear-gradient(rgba(91,124,160,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,124,160,.07) 1px, transparent 1px),
        radial-gradient(circle at 85% 0%, rgba(143,176,212,.22), transparent 55%);
    background-size: 22px 22px, 22px 22px, 100% 100%; }
.h-sys-ai::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(143,176,212,.14) 50%, transparent); animation: h-sys-scan 6s linear infinite; }
@keyframes h-sys-scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.h-sys-ai-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid rgba(91,124,160,.2);
    font: 700 11.5px/1 Consolas, "Courier New", monospace; letter-spacing: .18em; color: var(--brand-ai); }
.h-sys-ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ai); box-shadow: 0 0 0 4px rgba(91,124,160,.18); animation: h-sys-blink 1.6s ease-in-out infinite; }
@keyframes h-sys-blink { 50% { opacity: .3; } }
.h-sys-ai-bar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 900 14px/1 inherit; font-family: "Noto Sans TC", sans-serif; letter-spacing: .04em; color: var(--brand-ai); }
.h-sys-ai-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-sys-ai-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h-sys-ai-item { position: relative; padding: 22px 24px 24px; border-left: 1px solid rgba(91,124,160,.18); border-top: 1px solid rgba(91,124,160,.18); transition: background .3s; }
.h-sys-ai-item:hover { background: rgba(143,176,212,.12); }
.h-sys-ai-grid > .h-sys-ai-item:nth-child(3n+1) { border-left: 0; }
.h-sys-ai-grid.n4 > .h-sys-ai-item { border-left: 1px solid rgba(91,124,160,.18); }
.h-sys-ai-grid.n4 > .h-sys-ai-item:nth-child(2n+1) { border-left: 0; }
.h-sys-ai-grid > .h-sys-ai-item:nth-child(-n+3) { border-top: 0; }
.h-sys-ai-grid.n4 > .h-sys-ai-item:nth-child(3) { border-top: 1px solid rgba(91,124,160,.18); }
.h-sys-ai-viz { position: relative; height: 64px; margin-bottom: 14px; padding: 8px 10px; border: 1px solid rgba(143,176,212,.25); border-radius: 10px; background: var(--brand-ai-50); }
.h-sys-ai-viz small { position: absolute; top: 6px; right: 8px; font: 700 9.5px/1 Consolas, "Courier New", monospace; letter-spacing: .14em; color: var(--brand-ai); opacity: .8; }
.h-viz { display: block; width: 100%; height: 100%; overflow: visible; }
.h-viz .v-line { fill: none; stroke: rgba(91,124,160,.5); stroke-width: 1.6; stroke-linecap: round; }
.h-viz .v-box { fill: #fff; stroke: rgba(91,124,160,.6); stroke-width: 1.2; }
.h-viz .v-bar { fill: rgba(91,124,160,.45); }
.h-viz .v-path { fill: none; stroke: var(--brand-ai); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: h-viz-draw 3.2s ease-out infinite; }
@keyframes h-viz-draw { 60%, 100% { stroke-dashoffset: 0; } }
.h-viz .v-dot { fill: #fff; stroke: var(--brand-ai); stroke-width: 1.4; }
.h-viz .v-ring { fill: rgba(201,168,90,.12); stroke: var(--brand-gold); stroke-width: 1.6; }
.h-viz .v-txt { fill: var(--brand-gold); font: 700 9px/1 Consolas, monospace; }
.h-viz .v-strike { fill: none; stroke-width: 2; stroke-linecap: round; }
.h-viz .v-hot { stroke: var(--brand-gold); }
.h-viz .v-bar.v-hot, .h-viz .v-dot.v-hot { fill: var(--brand-gold); }
.h-viz .v-line.v-hot { stroke: var(--brand-gold); }
.h-sys-ai-item:hover .h-viz .v-bar { animation: h-viz-pulse .9s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes h-viz-pulse { to { transform: scaleY(.55); } }
.h-sys-ai-item b { display: block; margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--brand-ink); }
.h-sys-ai-item p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--brand-ink-2); }
.h-sys-for { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.h-sys-ai-item .h-sys-for { border: 1px solid var(--brand-ai-glow); background: var(--brand-ai-50); color: var(--brand-ai); }
.h-sys-learn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.h-sys-learn.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-sys-learn.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-sys-learn-item { padding: 18px 18px 18px; border: 1px solid var(--brand-line); border-radius: 14px; background: var(--brand-paper); }
.h-sys-learn-item b { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 16.5px; font-weight: 900; }
.h-sys-learn-item b i { font: 700 11px/1 Consolas, "Courier New", monospace; font-style: normal; letter-spacing: .12em; color: var(--brand-gold); }
.h-sys-learn-item p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--brand-ink-2); }
.h-sys-learn-item .h-sys-for { background: var(--brand-soft); color: var(--brand-ink-2); }
.h-sys-rows { margin-top: 22px; border-top: 1px solid var(--brand-ink); }
.h-sys-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--brand-line); }
.h-sys-row h3 { margin: 0; font-size: 20px; font-weight: 900; }
.h-sys-row h3 small { display: block; font: 700 11px/1.4 Consolas, "Courier New", monospace; letter-spacing: .16em; color: var(--tone, var(--brand-muted)); }
.h-sys-row ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.h-sys-row li { padding: 6px 14px; border: 1px solid var(--brand-line); border-radius: 99px; background: var(--brand-paper); font-size: 14px; font-weight: 700; color: var(--brand-ink-2); }
.h-sys-row li.is-ai { border-color: var(--brand-ai); background: var(--brand-ai-50); color: var(--brand-ai); }
.h-sys-note { margin-left: auto; font-size: 12.5px; color: var(--brand-muted); }
@media (prefers-reduced-motion: reduce) { .h-sys-ai::after, .h-sys-ai-dot, .h-viz .v-path, .h-sys-ai-item:hover .h-viz .v-bar { animation: none; } .h-viz .v-path { stroke-dashoffset: 0; } }
@media (max-width: 1100px) { .h-sys-learn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .h-sys-ai-grid, .h-sys-ai-grid.n4 { grid-template-columns: 1fr 1fr; }
    .h-sys-ai-grid > .h-sys-ai-item { border-left: 1px solid rgba(91,124,160,.18) !important; border-top: 1px solid rgba(91,124,160,.18) !important; }
    .h-sys-ai-grid > .h-sys-ai-item:nth-child(2n+1) { border-left: 0 !important; } .h-sys-ai-grid > .h-sys-ai-item:nth-child(-n+2) { border-top: 0 !important; }
    .h-sys-learn, .h-sys-learn.n4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .h-sys-ai-grid, .h-sys-ai-grid.n4 { grid-template-columns: 1fr; } .h-sys-ai-grid > .h-sys-ai-item { border-left: 0 !important; border-top: 1px solid rgba(91,124,160,.18) !important; padding: 18px 20px; }
    .h-sys-ai-grid > .h-sys-ai-item:first-child { border-top: 0 !important; } .h-sys-ai-bar { padding: 12px 18px; font-size: 10px; }
    .h-sys-learn, .h-sys-learn.n3, .h-sys-learn.n4 { grid-template-columns: 1fr; } .h-sys-row { grid-template-columns: 1fr; gap: 8px; } .h-sys-note { margin-left: 0; } }
/* 各科 CEFR 對照（各科專屬頁面、課程頁）：A1～C2 六格，顏色和主頁面的分級圖表一樣 */
.h-cefr1 { padding: 56px 0 60px; border-bottom: 1px solid var(--brand-line); }
.h-cefr1-scale { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.h-cefr1-scale li { border-top: 6px solid var(--c); background: var(--brand-paper); border-radius: 0 0 14px 14px; padding: 14px 12px 16px; text-align: center; border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); }
.h-cefr1-scale b { display: block; font-size: 26px; font-weight: 900; color: var(--c); }
.h-cefr1-scale span { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.h-cefr1-scale li.is-empty { opacity: .45; }
.h-cefr1-src { margin: 14px 0 0; font-size: 13px; color: var(--brand-muted); }
@media (max-width: 760px) { .h-cefr1-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); } .h-cefr1-scale b { font-size: 22px; } .h-cefr1-scale span { font-size: 13px; } }
/* 主視覺右側改成科技感面板（2026-11 使用者要求把 AI 模考卡片的樣式結合到最上方） */
.h-hero-art.is-tech { background: var(--brand-tech); }
.h-hero-art .h-hero-tech { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; clip-path: inset(0); }
.h-hero-art.is-tech::before, .h-hero-art.is-tech::after { display: none; }   /* 面板自己有格線與流光，不再疊照片用的掃描線 */
/* 主視覺面板文字（2026-11 使用者要求字體、大小、編排更有科技感）：編號模組標籤、等寬大字＋外框殘影、系統狀態列 */
.h-hero-tech .t-chip-x { fill: #fff; }
.h-hero-tech .t-chip-txt { fill: #fff; font: 500 8.4px/1 "Noto Sans TC", "Microsoft JhengHei", sans-serif; letter-spacing: 1.2px; }
.h-hero-tech .t-label-mono { font: 700 40px/1 Consolas, "SFMono-Regular", "Courier New", monospace; letter-spacing: 3px; fill: #fff; }
.h-hero-tech .t-label-ghost { font: 700 40px/1 Consolas, "SFMono-Regular", "Courier New", monospace; letter-spacing: 3px; fill: none; stroke: var(--brand-ai-glow); stroke-width: .5; stroke-opacity: .7; }
.h-hero-tech .t-status { fill: var(--brand-ai-glow); font: 400 6.4px/1 Consolas, "Courier New", monospace; letter-spacing: 1.6px; }
@media (prefers-reduced-motion: no-preference) {
    .h-hero-tech .t-label-ghost { animation: t-ghost 4s steps(1) infinite; }
}
@keyframes t-ghost { 0%, 92% { transform: translate(0, 0); } 94% { transform: translate(-1.5px, 0); } 96% { transform: translate(1px, -.5px); } }

/* 學員心得左右滑（每科 9 則，一次 3 則） */
.h-rev-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.h-rev-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.h-rev-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brand-ink); background: transparent; color: var(--brand-ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.h-rev-btn:hover:not(:disabled) { background: var(--brand-ink); color: #fff; }
.h-rev-btn:disabled { opacity: .3; cursor: default; }
.h-rev-count { min-width: 64px; text-align: center; font: 700 13px/1 Consolas, "Courier New", monospace; letter-spacing: .08em; color: var(--brand-ink-2); }
.h-rev-grid.is-track { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 40px) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.h-rev-grid.is-track::-webkit-scrollbar { display: none; }
.h-rev-grid.is-track > .h-rev-card { scroll-snap-align: start; }
@media (max-width: 980px) { .h-rev-grid.is-track { grid-template-columns: none; grid-auto-columns: 82%; } .h-rev-nav { margin-bottom: 16px; } }
@media (max-width: 760px) { .h-rev-btn { width: 38px; height: 38px; } .h-rev-count { display: none; } }

/* 各科頁面「關於驅勢」的七點：橫向排列的小卡，前面配線條小圖（2026-11 使用者要求不要直列清單） */
.h-adi-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.h-adi-why li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.h-adi-why li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: start; gap: 3px 10px; align-items: start; padding: 14px 14px 15px; background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 14px; color: var(--brand-ink-2); font-size: 13.5px; line-height: 1.55; }
.h-adi-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-gold-50, var(--brand-soft)); color: var(--brand-gold-ink); font-size: 18px; font-style: normal; }
.h-adi-why b { font-size: 15.5px; font-weight: 900; color: var(--brand-ink); line-height: 1.35; padding-top: 1px; }
.h-adi-why small { font-size: inherit; }
@media (max-width: 760px) {
    .h-adi-why { grid-template-columns: 1fr 1fr; gap: 8px; }
    .h-adi-why li { grid-template-columns: 1fr; grid-template-rows: none; padding: 12px 12px 13px; font-size: 13px; }
    .h-adi-ic { grid-row: auto; width: 30px; height: 30px; font-size: 16px; margin-bottom: 4px; }
    .h-adi-why b { font-size: 14.5px; }
}

/* 各科課程介紹（school_site.PROGRAMS，使用者提供的文案）：右邊標題區、下方八大特色、結語（2026-11 使用者要求取代照片課程卡） */
.h-pg-head { background: var(--brand-paper); border: 1px solid var(--brand-line); border-top: 3px solid var(--tone, var(--brand-ink)); border-radius: 20px; padding: 30px 32px 30px; }
.h-pg-head h3 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; color: var(--brand-ink); }
.h-pg-tags { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.h-pg-tags span { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-size: 13px; font-weight: 800; }
.h-pg-tags i { font-style: normal; font-weight: 900; color: var(--brand-gold-ink); }
.h-pg-sub { margin: 0 0 12px; font-size: 17px; font-weight: 800; line-height: 1.6; color: var(--brand-ink); }
.h-pg-intro { margin: 0 0 22px; font-size: 15px; line-height: 1.9; color: var(--brand-ink-2); }
.h-pg { padding-top: 64px; }
.h-pg-ft { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; color: var(--brand-ink); }
.h-pg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h-pg-grid > li { background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 16px; padding: 18px 18px 20px; }
.h-pg-grid > li.is-wide { grid-row: span 2; }   /* Part 1～7 那張較長：佔兩列，八張剛好排滿三欄 */
.h-pg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.h-pg-n { font-size: 26px; font-weight: 900; letter-spacing: -.02em; color: var(--brand-gold-ink); font-variant-numeric: tabular-nums; }
.h-pg-grid h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 900; line-height: 1.45; color: var(--brand-ink); }
.h-pg-grid p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--brand-ink-2); }
.h-pg-parts { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.h-pg-parts li { padding: 7px 10px; border-radius: 10px; background: var(--brand-gold-50); font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }
.h-pg-parts b { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-gold-ink); }
.h-pg-close { margin-top: 28px; padding: 30px 32px; border-radius: 20px; background: var(--brand-gold-50); border: 1px solid var(--brand-line); color: var(--brand-ink); }
.h-pg-close h3 { margin: 0 0 12px; font-size: clamp(21px, 2.4vw, 27px); font-weight: 900; line-height: 1.4; }
.h-pg-xtags { margin: 0 0 14px !important; display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 800; color: var(--brand-gold-ink) !important; font-size: 15px !important; }
.h-pg-xtags i { font-style: normal; opacity: .8; }
.h-pg-close p { margin: 0 0 8px; font-size: 15px; line-height: 1.9; color: var(--brand-ink-2); }
.h-pg-close p:last-child { margin-bottom: 0; }
@media (max-width: 1080px) { .h-pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-pg-grid > li.is-wide { grid-row: auto; } }
@media (max-width: 760px) {
    .h-pg-head { padding: 22px 20px 24px; }
    .h-pg { padding-top: 44px; }
    .h-pg-grid { grid-template-columns: 1fr; }
    .h-pg-close { padding: 24px 20px; }
}

/* 學員心得照片縮小（2026-11 使用者要求「照片可以小一點」） */
.h-rev-photo img { max-width: 62%; }

/* 頁首「AI 學習系統」入口（學員登入 /login，2026-11 使用者要求）：霧藍 AI 色，電腦在右上按鈕區、手機在選單最後 */
.s-btn.ai { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-ink) !important; border-radius: 999px; padding-left: 18px; padding-right: 18px; }
.s-btn.ai:hover { background: var(--brand-orange-2); border-color: var(--brand-orange-2); color: var(--brand-ink) !important; }   /* 2026-11 使用者要求圓角、改成和「進入測驗」一樣的橘黃色 */
.s-btn-chip, .s-nav-chip { width: 18px; height: 18px; flex: none; }
.s-btn.ai .s-chip-body { fill: none; stroke: currentColor; }
.s-btn.ai .s-chip-pins path { stroke: currentColor; }
.s-btn.ai .s-chip-txt { fill: currentColor; }
.s-nav .s-nav-ai { display: none; }
@media (max-width: 760px) {
    .s-nav .s-nav-ai { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-ai) !important; font-weight: 900; }
}
/* 加了 AI 學習系統按鈕後選單會擠成兩行：電腦版收緊選單間距，讓頁首維持一行 */
@media (min-width: 761px) {
    .s-nav { gap: 18px; }
    .s-nav a { letter-spacing: .04em; }
    .s-head .wrap { gap: 18px; }
}
@media (min-width: 761px) and (max-width: 1180px) { .s-btn.ai .s-btn-chip { display: none; } .s-nav { gap: 12px; } }
@media (min-width: 761px) { .s-head .wrap { max-width: 1400px; } }
@media (min-width: 761px) and (max-width: 1279px) { .s-head .s-actions .s-btn.line { display: none; } }   /* 窄螢幕頁首放不下三顆鈕，LINE 在頁尾與諮詢區仍有 */

/* 手機上學員心得不輪播，直接一則一則往下排（2026-11 使用者要求「直接放、可以往下滑」） */
@media (max-width: 760px) {
    .h-rev-grid.is-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; gap: 14px; }
    .h-rev-nav { display: none; }
}

/* 學習系統實際畫面（2026-11 使用者要求放系統預覽圖；再要求「排版好、邊框細一點」）：
   五個畫面同一個高度 --sh、底部對齊、說明一行，手機框細黑邊、瀏覽器框細線；電腦一排放得下，窄螢幕左右滑 */
.h-sys-shots { --sh: min(230px, calc((min(1124px, 100vw - 64px) - 60px) / 4.8)); display: flex; gap: 14px; align-items: flex-start; justify-content: center;
    margin: 0 0 34px; padding: 4px 2px 8px; }
.h-shot { margin: 0; flex: none; display: flex; flex-direction: column; align-items: center; }
.h-shot-frame { position: relative; overflow: hidden; background: #fff; height: var(--sh); box-sizing: border-box; display: flex; flex-direction: column; }
.h-shot.is-phone .h-shot-frame { border: 2.5px solid var(--brand-ink); border-radius: 18px; }
.h-shot.is-desk .h-shot-frame { border: 1px solid var(--brand-line); border-radius: 8px; }
.h-shot-bar { flex: none; display: flex; gap: 4px; padding: 5px 8px; background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
.h-shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-line); }
.h-shot img { display: block; height: 100%; width: auto; min-height: 0; flex: 1 1 auto; object-fit: cover; object-position: top left; }
.h-shot { width: min-content; }
.h-shot figcaption { margin-top: 10px; text-align: center; line-height: 1.45; }
.h-shot figcaption b { display: block; font-size: 13.5px; font-weight: 900; color: var(--brand-ink); white-space: nowrap; }
.h-shot figcaption span { display: block; font-size: 12px; font-weight: 700; color: var(--brand-ink-2); white-space: nowrap; }
@media (max-width: 999px) {
    .h-sys-shots { --sh: 230px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .h-shot { scroll-snap-align: start; }
}
@media (max-width: 760px) { .h-sys-shots { --sh: 210px; margin-bottom: 26px; } }
/* AI 功能卡簡潔版（2026-11 使用者要求「簡潔一點、不要這麼大塊」）：小圖不加框、放在標題左邊，間距與字級縮小 */
.h-sys-ai-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 20px 18px; }
.h-sys-ai-viz { grid-row: 1 / span 3; height: 38px; margin: 2px 0 0; padding: 0; border: 0; background: none; }
.h-sys-ai-viz small { display: none; }
.h-sys-ai-item b { margin: 0 0 3px; font-size: 16px; }
.h-sys-ai-item p { font-size: 13.5px; line-height: 1.65; }
.h-sys-ai-item .h-sys-for { justify-self: start; margin-top: 7px; padding: 1px 8px; font-size: 11.5px; }
@media (max-width: 760px) { .h-sys-ai-item { grid-template-columns: 48px minmax(0, 1fr); padding: 14px 14px 16px; } .h-sys-ai-viz { height: 32px; } }
.h-sys-ai-item { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; }
.h-sys-ai-viz { height: 46px; margin-top: 0; }
@media (max-width: 760px) { .h-sys-ai-item { grid-template-columns: 62px minmax(0, 1fr); } .h-sys-ai-viz { height: 38px; } }

/* 學員心得全部直接排出來（2026-11 使用者要求不要輪播）：電腦三欄、平板兩欄、手機一欄 */
.h-rev-grid { row-gap: 24px; }
@media (min-width: 640px) and (max-width: 980px) { .h-rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 雅思課程特色：小項目是一句完整說明時排成條列（2026-11 使用者提供的雅思文案） */
.h-pg-parts.is-list { grid-template-columns: 1fr; gap: 8px; margin: 10px 0; }
.h-pg-parts.is-list li { font-weight: 500; line-height: 1.7; background: var(--brand-gold-50); }
.h-pg-parts.is-list b { font-size: 13px; letter-spacing: .02em; margin-bottom: 2px; }
.h-pg-grid > li > p + p { margin-top: 8px; }
.h-pg-grid { grid-auto-flow: dense; }
.h-pg-grid > li.is-full { grid-column: 1 / -1; }   /* 雅思第 08 點單獨一列時拉滿整排，不會只剩一張靠左 */

/* 多益分數介紹與證書顏色（2026-11 使用者要求「對照多益證書顏色」「順便做多益分數介紹」） */
.h-score { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-score li { background: var(--brand-paper); border: 1px solid var(--brand-line); border-radius: 14px; padding: 16px 18px 18px; }
.h-score span { display: block; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--brand-gold-ink); }
.h-score b { display: block; margin: 4px 0 6px; font-size: 30px; font-weight: 900; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.h-score small { display: block; font-size: 13.5px; line-height: 1.7; color: var(--brand-ink-2); }
.h-cert { margin: 30px 0 34px; }
.h-cert-t { margin: 0 0 12px; font-size: 19px; font-weight: 900; color: var(--brand-ink); }
.h-cert-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.h-cert-bar li { min-width: 0; padding: 12px 10px; background: var(--c); color: #fff; text-align: center; }
.h-cert-bar li:first-child { border-radius: 12px 0 0 12px; }
.h-cert-bar li:last-child { border-radius: 0 12px 12px 0; }
.h-cert-bar b { display: block; font-size: 15px; font-weight: 900; }
.h-cert-bar em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; opacity: .92; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .h-score { grid-template-columns: 1fr; }
    .h-cert-bar { flex-direction: column; }
    .h-cert-bar li { flex: none !important; display: flex; justify-content: space-between; border-radius: 0 !important; }
    .h-cert-bar li:first-child { border-radius: 12px 12px 0 0 !important; }
    .h-cert-bar li:last-child { border-radius: 0 0 12px 12px !important; }
}

/* 多益各色證書的能力說明（2026-11 使用者要求「多益分數區說明」）：高分在上 */
.h-cert-desc { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.h-cert-desc li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 18px; background: var(--brand-paper); border: 1px solid var(--brand-line); border-left: 6px solid var(--c); border-radius: 12px; }
.h-cert-desc b { display: block; font-size: 15.5px; font-weight: 900; color: var(--c); }
.h-cert-desc em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.h-cert-desc p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--brand-ink-2); }
@media (max-width: 760px) { .h-cert-desc li { grid-template-columns: 1fr; gap: 4px; } .h-cert-desc div { display: flex; gap: 10px; align-items: baseline; } }

/* 手機頁首（2026-11 使用者要求「手機板最上面也要用好」）：原本「AI 學習系統」排在可橫滑選單的最後面，會被切掉。
   改成第一行 Logo＋右邊橘色「AI 學習系統」按鈕，第二行是各科選單（可左右滑，右邊淡出提示還有），目前那科自動捲到看得到 */
@media (max-width: 760px) {
    .s-head .wrap { padding-top: 8px; gap: 6px 10px; }
    .s-head .s-actions { display: flex; order: 2; margin-left: auto; }
    .s-head .s-actions .s-btn.line, .s-head .s-actions .s-btn:not(.ai) { display: none; }
    .s-head .s-actions .s-btn.ai { padding: 8px 14px; font-size: 13px; gap: 5px; white-space: nowrap; }
    .s-head .s-actions .s-btn.ai .s-btn-chip { width: 16px; height: 16px; }
    .s-nav .s-nav-ai { display: none !important; }
    .s-nav { position: relative; gap: 16px; padding: 2px 28px 8px 0; margin-right: -18px;
             -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
                     mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
    .s-nav.is-end { -webkit-mask-image: none; mask-image: none; }
    .s-nav a { font-size: 14.5px; letter-spacing: .04em; }
}
@media (max-width: 400px) {
    .s-brand { font-size: 19px; gap: 8px; }
    .s-brand img { height: 38px; }
    .s-brand small { font-size: 9.5px; letter-spacing: .1em; }
    .s-head .s-actions .s-btn.ai .s-btn-chip { display: none; }
}
/* 各科等級說明（2026-11 使用者要求每科都跟多益一樣有等級說明）：分數介紹欄數自動排，左欄放級數與分數 */
.h-score { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.h-cert-desc.is-grades li { grid-template-columns: 220px minmax(0, 1fr); }
.h-cert-desc.is-grades b { font-size: 17px; }
.h-cert-desc.is-grades em { line-height: 1.5; }
@media (max-width: 760px) { .h-cert-desc.is-grades li { grid-template-columns: 1fr; } .h-cert-desc.is-grades div { flex-wrap: wrap; } }

/* 2026-11 使用者：「LOGO 去背後再大一點」。圖騰改成透明底（emblem.png），頁首再放大一級 */
.s-brand img { height: 68px; width: auto; }
.s-head .wrap { min-height: 96px; }
.mk-bar { top: 97px; }
#courses, #campus, #ai-mock { scroll-margin-top: 112px; }
@media (max-width: 760px) { .s-brand img { height: 52px; } .s-head .wrap { min-height: 74px; } }
@media (max-width: 400px) { .s-brand img { height: 46px; } }

/* 課程文案結語區的條列（韓文：實體課程／真人線上直播課程／專屬 AI 學習系統） */
.h-pg-cparts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.h-pg-cparts li { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--brand-line); font-size: 14.5px; line-height: 1.75; color: var(--brand-ink-2); }
.h-pg-cparts b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 900; color: var(--brand-ink); }
.h-pg-intro + .h-pg-intro { margin-top: 10px; }
@media (min-width: 761px) { .h-pg-grid li.is-full .h-pg-parts.is-list { grid-template-columns: 1fr 1fr; } }
.h-pg-parts.is-list li.is-plain { position: relative; padding-left: 26px; }
.h-pg-parts.is-list li.is-plain::before { content: ""; position: absolute; left: 12px; top: calc(7px + .85em); width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold-ink); }

/* ── 首頁主視覺的活動輪播（2026-12 使用者要求：科技感面板和週年慶訊息自動輪播、切換要絲滑，週年慶那張字體與設計要有廣告感） ──
   兩張排成一列，整列左右滑動（ease 曲線 1 秒）；下方短線是 6 秒進度條。
   週年慶那張：咖啡色底（使用者要求咖啡色、但不要照 FB 例圖）＋細格線、背後大字浮水印、一道斜向流光；
   左上「限時優惠・倒數 N 天」標籤、超大粗體「週年慶」、右上超大「85 折」、四項加碼編號卡片、橘色大按鈕 */
.h-slides { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); }
.h-track { display: flex; height: 100%; transform: translateX(0); transition: transform .5s cubic-bezier(.77, 0, .18, 1); will-change: transform; }
.h-slides { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.h-slides.is-dragging { cursor: grabbing; }
.h-slides a, .h-slides button { cursor: pointer; }
.h-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; box-sizing: border-box; min-width: 0; }
.h-slide > .h-hero-tech { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.h-slide .h-promo-head, .h-slide .h-promo-off, .h-slide .h-promo-list, .h-slide .h-promo-cta { transition: opacity .25s ease .1s, transform .3s cubic-bezier(.2, .8, .2, 1) .1s; }
.h-slide:not(.is-on) .h-promo-head, .h-slide:not(.is-on) .h-promo-list, .h-slide:not(.is-on) .h-promo-cta { opacity: 0; transform: translateY(18px); }
.h-slide:not(.is-on) .h-promo-off { opacity: 0; transform: scale(.7); }
.h-promo { background-color: var(--promo-brown); color: #fff; -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--brand-gold) 22%, transparent), transparent 60%),
                      linear-gradient(color-mix(in srgb, var(--promo-brown-2) 28%, transparent) 1px, transparent 1px),
                      linear-gradient(90deg, color-mix(in srgb, var(--promo-brown-2) 28%, transparent) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-content: center;
    gap: 22px 26px; padding: 40px 44px 54px 96px; }
.h-promo p { margin: 0; }
.h-promo-mark { position: absolute; left: -10px; bottom: -34px; font: 900 150px/1 Arial, sans-serif; letter-spacing: -.02em; color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--promo-cream) 8%, transparent); white-space: nowrap; pointer-events: none; }
.h-promo-shine { position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%; transform: skewX(-18deg); pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--promo-cream) 12%, transparent), transparent); }
.h-promo-head { grid-column: 1; display: flex; flex-direction: column; gap: 12px; position: relative; }
.h-promo-flag { display: inline-flex; align-self: flex-start; align-items: stretch; border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.h-promo-flag b { background: var(--brand-orange); color: var(--brand-ink); padding: 6px 12px; }
.h-promo-flag span { background: var(--promo-cream); color: var(--promo-brown); padding: 6px 12px; }
.h-promo-flag em { font-style: normal; font-size: 15px; }
.h-promo-eye { font: 800 13px/1 Arial, sans-serif; letter-spacing: .26em; color: var(--promo-gold); }
.h-promo-title { font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 104px; font-weight: 900; line-height: .95; letter-spacing: .02em;
    color: #fff; text-shadow: 4px 4px 0 var(--promo-shadow); }
.h-promo-date { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.h-promo-date span { font: 900 30px/1 Arial, sans-serif; letter-spacing: .02em; color: var(--promo-gold); white-space: nowrap; }
.h-promo-date i { font-style: normal; font-size: 15.5px; font-weight: 800; letter-spacing: .06em; color: #fff; }
/* 折扣：超大數字、外圈芥末黃虛線圓 */
.h-promo-off { grid-column: 2; grid-row: 1; align-self: start; position: relative; width: 168px; height: 168px; border-radius: 50%;
    background: var(--promo-cream); color: var(--promo-brown); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    box-shadow: 0 0 0 6px var(--promo-brown), 0 0 0 7px var(--brand-gold); }
.h-promo-off .o-n { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.h-promo-off .o-a { font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.h-promo-off b { font: 900 74px/.9 Arial, sans-serif; letter-spacing: -.03em; color: var(--promo-brown); }
.h-promo-off small { font-size: 24px; font-weight: 900; line-height: 1; }
/* 四項加碼：兩欄編號卡片 */
.h-promo-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.h-promo-list li { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 17.5px; font-weight: 900; letter-spacing: .02em; color: #fff;
    border: 1px solid color-mix(in srgb, var(--promo-cream) 45%, transparent); border-radius: 10px; background: var(--promo-shadow); }
.h-promo-list li em { font: 900 14px/1 Arial, sans-serif; font-style: normal; color: var(--promo-gold); }
.h-promo-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; }
.h-promo .h-promo-btn { display: inline-flex; align-items: center; gap: 14px; background: var(--brand-orange); color: var(--brand-ink); text-decoration: none;
    font-weight: 900; font-size: 18px; letter-spacing: .06em; border-radius: 999px; padding: 8px 8px 8px 26px; box-shadow: 0 4px 0 var(--brand-ink); transition: transform .15s, box-shadow .15s; }
.h-promo .h-promo-btn i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-ink); color: #fff; display: grid; place-items: center; }
.h-promo .h-promo-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-ink); background: var(--brand-orange-2); }
.h-promo .h-promo-line, .h-promo a.h-promo-line { color: #fff; text-decoration: none; font: 800 17px/1 Arial, sans-serif; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.h-promo-line em { font-style: normal; font: 800 10.5px/1 Arial, sans-serif; letter-spacing: .08em; background: var(--promo-cream); color: var(--brand-ink); border-radius: 4px; padding: 4px 6px; }
.h-promo a.h-promo-line:hover { color: var(--promo-gold); }
@media (prefers-reduced-motion: no-preference) {
    .h-promo.is-on .h-promo-shine { animation: promo-shine 4.5s ease-in-out .9s infinite; }
    .h-promo.is-on .h-promo-off { animation: promo-pop 1.6s ease-in-out .6s infinite; }
}
@keyframes promo-shine { 0% { left: -50%; } 45%, 100% { left: 130%; } }
@keyframes promo-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .h-track { transition: none; } }
/* 輪播進度條：目前那張的短線填滿就換張 */
.h-dots { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 8px; z-index: 3; }
.h-dots button { position: relative; width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, #fff 32%, transparent); cursor: pointer; }
.h-dots button i { position: absolute; inset: 0; width: 0; background: var(--brand-gold); }
.h-dots button[aria-selected="true"] i { animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
.h-dots.is-held button[aria-selected="true"] i { animation-play-state: paused; }
.h-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes dot-fill { to { width: 100%; } }
@media (max-width: 1180px) {
    .h-promo { padding: 34px 28px 50px 84px; gap: 18px 18px; }
    .h-promo-title { font-size: 76px; }
    .h-promo-off { width: 128px; height: 128px; }
    .h-promo-off b { font-size: 56px; }
    .h-promo-off small { font-size: 19px; }
    .h-promo-list { grid-template-columns: 1fr; gap: 7px; }
    .h-promo-list li { font-size: 15px; padding: 9px 12px; }
}
@media (max-width: 760px) {
    .h-hero-art.has-slides { height: 430px; }
    .h-promo { padding: 22px 18px 40px; gap: 12px 10px; }
    .h-promo-head { gap: 8px; }
    .h-promo-flag { font-size: 11.5px; }
    .h-promo-title { font-size: 56px; text-shadow: 3px 3px 0 var(--promo-shadow); }
    .h-promo-date span { font-size: 21px; }
    .h-promo-date i { display: none; }
    .h-promo-off { width: 104px; height: 104px; box-shadow: 0 0 0 4px var(--promo-brown), 0 0 0 5px var(--brand-gold); }
    .h-promo-off .o-a { font-size: 11px; }
    .h-promo-off b { font-size: 44px; }
    .h-promo-off small { font-size: 16px; }
    .h-promo-off { gap: 3px; }
    .h-promo-list { grid-template-columns: 1fr 1fr; gap: 6px; }
    .h-promo-list li { font-size: 13px; padding: 8px 6px; gap: 5px; border-radius: 8px; letter-spacing: 0; }
    .h-promo-eye { font-size: 11px; letter-spacing: .2em; }
    .h-promo-list li em { font-size: 11px; }
    .h-promo .h-promo-btn { font-size: 15px; padding: 5px 5px 5px 18px; gap: 10px; }
    .h-promo .h-promo-btn i { width: 30px; height: 30px; }
    .h-promo-line { font-size: 14px !important; }
    .h-promo-mark { font-size: 90px; bottom: -20px; }
    .h-dots { left: 18px; right: auto; bottom: 14px; }
}
