.lp.lp-hub {
  --hub-orange: #FFA300; --hub-orange-light: #FFF3DC; --hub-teal: #00C4B3; --hub-teal-ink: #00776B;
  --hub-ink: #2D2E32; --hub-dark: #12151E; --hub-gray: #5B616D; --hub-line: #E6E8EC;
  --hub-warm: #FAF9F6; --hub-white: #FFFFFF; --hub-online: #CFEEE2; --hub-onsite: #FADBD1;
  --hub-e1: 0 2px 8px rgba(18,21,30,0.06); --hub-e2: 0 8px 24px rgba(18,21,30,0.08); --hub-e-cta: 0 8px 24px rgba(255,163,0,0.32);
  --hub-r-sm: 8px; --hub-r-md: 16px; --hub-r-lg: 24px; --hub-r-btn: 11px; --hub-r-pill: 999px;
  display: block; background: var(--hub-warm); color: var(--hub-ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px; line-height: 1.7;
}
.lp.lp-hub, .lp.lp-hub *, .lp.lp-hub *::before, .lp.lp-hub *::after { box-sizing: border-box; }
.lp.lp-hub :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; padding: 0; }
/* 官網 CSS 把 p 的行高寫死 28px，這裡改回跟著本頁 */
.lp.lp-hub :where(p) { line-height: inherit; }
.lp.lp-hub :where(ul, ol) { list-style: none; }
.lp.lp-hub a { color: var(--hub-teal-ink); }
.lp.lp-hub img { display: block; max-width: 100%; height: auto; }
/* WCAG 2.4.11：鍵盤焦點捲動時留出 header 的高度 */
.lp.lp-hub :where(a, button, summary, [tabindex]) { scroll-margin-top: calc(var(--oa-header-offset, 0px) + 24px); scroll-margin-bottom: 24px; }
.lp .hub-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* lp-crumb：全站麵包屑（同 kids-coding-foundations） */
.lp .lp-crumb { background: var(--hub-white); }
.lp .lp-crumb ol { list-style: none; margin: 0 auto; max-width: 1296px; padding: 5px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; line-height: 1.6; color: #5B616D; }
.lp .lp-crumb li { margin: 0; padding: 0; }
.lp .lp-crumb li + li::before { content: "›"; margin-right: 8px; color: #8A8F98; }
.lp .lp-crumb a, .lp .lp-crumb a:visited { color: #5B616D; text-decoration: none; display: inline-block; padding: 6px 0; margin: -6px 0; }
.lp .lp-crumb a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.lp .lp-crumb [aria-current] { color: #2D2E32; }
@media (hover: hover) and (pointer: fine) { .lp .lp-crumb a:hover { text-decoration: underline; } }
@media (max-width: 960px) { .lp .lp-crumb ol { padding: 5px 18px; } }

/* 按鈕：橘實心只給免費試聽 */
.lp .hub-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: var(--hub-r-btn); background: var(--hub-orange); color: var(--hub-ink); font: inherit; font-size: 18px; font-weight: 800; line-height: 1.2; cursor: pointer; box-shadow: var(--hub-e-cta); transition: transform 160ms ease, box-shadow 160ms ease; }
.lp .hub-btn:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,163,0,0.42); } }

/* 首屏 */
.lp .hub-hero { background: var(--hub-white); padding: clamp(40px, 7vh, 88px) 0 clamp(40px, 6vh, 72px); }
.lp .hub-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lp .hub-hero h1 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--hub-dark); }
.lp .hub-hero .hub-h1-nw { display: inline-block; }
.lp .hub-hero .hub-h1-sub { display: block; font-size: 0.5em; font-weight: 700; letter-spacing: 0; color: var(--hub-gray); margin-top: 12px; }
.lp .hub-hero-lead { margin-top: 20px; max-width: 30em; font-size: 18px; color: var(--hub-ink); }
.lp .hub-hero-act { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lp .hub-hero-note { font-size: 14px; color: var(--hub-gray); }
.lp .hub-hero-pic { border-radius: var(--hub-r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--hub-orange-light); }
.lp .hub-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }

/* 區塊共用 */
.lp .hub-sec { padding: clamp(56px, 9vh, 112px) 0; }
.lp .hub-sec--white { background: var(--hub-white); }
.lp .hub-h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--hub-dark); }
.lp .hub-intro { margin-top: 14px; max-width: 40em; color: var(--hub-gray); font-size: 18px; }

/* 年級區塊 */
.lp .hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp .hub-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--hub-r-pill); background: var(--hub-orange-light); color: var(--hub-ink); font-size: 13px; font-weight: 400; line-height: 1.4; }
.lp .hub-tag--on { background: var(--hub-online); }
.lp .hub-tag--off { background: var(--hub-onsite); }

/* 常見問題 */
.lp .hub-faq { margin-top: 32px; max-width: 860px; border-top: 1px solid var(--hub-line); }
.lp .hub-faq details { border-bottom: 1px solid var(--hub-line); }
.lp .hub-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--hub-dark); }
.lp .hub-faq summary::-webkit-details-marker { display: none; }
.lp .hub-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--hub-gray); transition: transform 160ms ease; }
.lp .hub-faq details[open] summary::after { transform: rotate(45deg); }
.lp .hub-faq summary:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 2px; }
.lp .hub-faq details p { padding: 0 0 24px; font-size: 17px; line-height: 1.8; }

.lp .hub-final { margin-top: 40px; padding: clamp(40px, 6vw, 64px); border-radius: var(--hub-r-lg); background: var(--hub-orange-light); text-align: center; }
.lp .hub-final h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.25; color: var(--hub-dark); }
.lp .hub-final .hub-nw { display: inline-block; }
.lp .hub-final p { margin: 12px auto 28px; max-width: 32em; font-size: 18px; }
.lp .hub-final .hub-final-note { margin: 16px auto 0; font-size: 15px; color: var(--hub-gray); }
.lp .hub-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 24px 28px; border-radius: var(--hub-r-md); background: var(--hub-orange-light); }
.lp .hub-mid p { font-size: 18px; font-weight: 700; color: var(--hub-dark); }

@media (max-width: 760px) {
  .lp .hub-wrap { padding: 0 18px; }
  .lp .hub-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp .hub-hero-pic { aspect-ratio: 16 / 9; }
  .lp .hub-mid { padding: 20px; }
}
/* 幾年級可以進菁英線 */
.lp .hub-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.lp .hub-start li { display: flex; flex-direction: column; padding: 24px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); }
.lp .hub-start h3 { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-start h3::after { content: ""; display: block; width: 40px; height: 5px; margin-top: 10px; border-radius: var(--hub-r-pill); background: var(--hub-orange); }
.lp .hub-start p { margin-top: 12px; font-size: 16px; line-height: 1.75; }
.lp .hub-start a { font-weight: 700; }

/* 九個階段怎麼走 */
.lp .hub-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.lp .hub-tier { display: flex; flex-direction: column; padding: 24px; border-radius: var(--hub-r-md); background: var(--hub-warm); }
.lp .hub-tier-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lp .hub-tier h3 { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--hub-dark); }
.lp .hub-tier-k { font-size: 15px; color: var(--hub-gray); }
.lp .hub-tier .hub-tags { margin-top: 8px; }
.lp .hub-stage { display: grid; gap: 10px; margin-top: 18px; }
.lp .hub-stage a { display: flex; align-items: center; gap: 12px; text-wrap: balance; min-height: 52px; padding: 10px 14px; border: 1px solid var(--hub-line); border-radius: var(--hub-r-sm); background: var(--hub-white); color: var(--hub-ink); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.4; transition: border-color 160ms ease, box-shadow 160ms ease; }
.lp .hub-stage b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--hub-r-pill); background: var(--hub-orange); color: var(--hub-ink); font-size: 15px; font-weight: 800; }
.lp .hub-stage a:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-stage a:hover { border-color: var(--hub-orange); box-shadow: var(--hub-e2); } }
.lp .hub-tier-cols { columns: 1; column-gap: 10px; }
.lp .hub-tier-cols li { break-inside: avoid; margin-bottom: 10px; }
.lp .hub-tier-cols.hub-stage { display: block; }
.lp .hub-cert { margin-top: 20px; font-size: 16px; color: var(--hub-gray); }

/* 九階段比較表 */
.lp .hub-cmp { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); }
.lp .hub-cmp:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 3px; }
.lp .hub-cmp table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; line-height: 1.6; text-align: start; }
.lp .hub-cmp th, .lp .hub-cmp td { padding: 14px 16px; border-bottom: 1px solid var(--hub-line); vertical-align: top; text-align: start; font-weight: 400; color: var(--hub-ink); }
.lp .hub-cmp thead th { background: var(--hub-orange-light); font-weight: 700; color: var(--hub-dark); white-space: nowrap; }
.lp .hub-cmp tbody tr:last-child > * { border-bottom: 0; }
.lp .hub-cmp tbody th { font-weight: 700; }
.lp .hub-cmp tbody th a { color: var(--hub-teal-ink); }
.lp .hub-cmp td:first-child { font-weight: 800; color: var(--hub-dark); }
.lp .hub-cmp-hint { display: none; margin-top: 12px; font-size: 14px; color: var(--hub-gray); }

/* 學完帶得走什麼 */
.lp .hub-gain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.lp .hub-gain li { padding: 24px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); }
.lp .hub-gain h3 { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-gain p { margin-top: 10px; font-size: 16px; line-height: 1.75; }

/* 課程優勢 */
.lp .hub-adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.lp .hub-adv > div { padding: 28px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); }
.lp .hub-adv h3 { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-adv-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lp .hub-adv ul { margin-top: 12px; }
.lp .hub-adv li { padding: 12px 0; border-top: 1px solid var(--hub-line); font-size: 16px; line-height: 1.7; }
.lp .hub-adv li:first-child { border-top: 0; }
.lp .hub-adv li b { display: block; font-size: 17px; color: var(--hub-dark); }

/* 老師引導漫畫 */
.lp .hub-teach { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
.lp .hub-teach-lead { margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--hub-dark); }
.lp .hub-teach-p { margin-top: 12px; font-size: 17px; line-height: 1.85; }
.lp .lp-comic { position: relative; container-type: inline-size; width: 100%; max-width: 360px; margin: 0 auto; border-radius: var(--hub-r-md); overflow: hidden; box-shadow: var(--hub-e1); }
.lp .lp-comic img { display: block; width: 100%; height: auto; }
.lp .lp-comic .lp-comic-t { position: absolute; margin: 0; padding: 0; white-space: nowrap; text-align: left; color: #333333; font-family: "Noto Sans TC", sans-serif; font-weight: 400; font-size: max(12px, 3.12cqi); line-height: 5.1cqi; letter-spacing: 0; }
.lp .lp-comic .lp-comic-t1 { left: 70.5cqi; top: 3.05cqi; font-size: max(12px, 3.96cqi); line-height: 5.9cqi; }
.lp .lp-comic .lp-comic-t2 { left: 25.4cqi; top: 38.96cqi; }
.lp .lp-comic .lp-comic-t3 { left: 52.5cqi; top: 39.24cqi; }
.lp .lp-comic .lp-comic-t4 { left: 25.55cqi; top: 76.04cqi; }
.lp .lp-comic .lp-comic-t5 { left: 52.5cqi; top: 76.32cqi; }

/* 下一步可以看 */
.lp .hub-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; margin-top: 40px; max-width: 860px; }
.lp .hub-next-h { margin-top: 48px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-next li { font-size: 16px; line-height: 1.7; }
.lp .hub-next li b { color: var(--hub-dark); }

@media (max-width: 1100px) {
  .lp .hub-tiers { grid-template-columns: 1fr; }
  .lp .hub-tier-cols { columns: 2; }
}
@media (max-width: 760px) {
  .lp .hub-start, .lp .hub-gain, .lp .hub-adv, .lp .hub-next { grid-template-columns: 1fr; }
  .lp .hub-tier-cols { columns: 1; }
  .lp .hub-teach { grid-template-columns: 1fr; gap: 28px; }
  .lp .hub-cmp-hint { display: block; }
  .lp .hub-cmp tr > :nth-child(2) { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--hub-white); box-shadow: 2px 0 0 var(--hub-line); }
  .lp .hub-cmp thead tr > :nth-child(2) { background: var(--hub-orange-light); }
  .lp .hub-cmp td:first-child { padding-inline: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp .hub-btn, .lp .hub-stage a, .lp .hub-faq summary::after { transition: none; }
}
