.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) { scroll-margin-top: calc(var(--oa-header-offset, 0px) + 96px); 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-more { display: inline-flex; align-items: center; gap: 6px; color: var(--hub-teal-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lp .hub-more:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* 首屏 */
.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-ruler-wrap { position: sticky; top: var(--oa-header-offset, 0); z-index: 20; background: var(--hub-warm); border-bottom: 1px solid var(--hub-line); }
.lp .hub-ruler { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 0; }
.lp .hub-ruler a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 16px; border: 1px solid var(--hub-line); border-radius: var(--hub-r-md); background: var(--hub-white); color: var(--hub-ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.lp .hub-ruler b { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--hub-dark); }
.lp .hub-ruler small { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--hub-gray); }
.lp .hub-ruler a[aria-current="true"] { border-color: var(--hub-orange); box-shadow: inset 0 -3px 0 var(--hub-orange); }
.lp .hub-ruler a:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-ruler a:hover { border-color: var(--hub-orange); box-shadow: var(--hub-e2); } }

/* 區塊共用 */
.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-grade { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--hub-line); scroll-margin-top: calc(var(--oa-header-offset, 0px) + 104px); }
.lp .hub-grade:first-of-type { border-top: 0; padding-top: 40px; }
.lp .hub-grade-label { align-self: start; position: sticky; top: calc(var(--oa-header-offset, 0px) + 120px); }
.lp .hub-grade-label .hub-grade-num { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--hub-dark); }
.lp .hub-grade-label .hub-grade-num::after { content: ""; display: block; width: 48px; height: 6px; margin-top: 16px; border-radius: var(--hub-r-pill); background: var(--hub-orange); }
.lp .hub-grade-label h3 { margin-top: 16px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-grade-label p { margin-top: 8px; font-size: 16px; color: var(--hub-gray); }
.lp .hub-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp .hub-card { display: flex; flex-direction: column; padding: 24px 24px 20px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); color: var(--hub-ink); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.lp .hub-card h4 { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-card p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--hub-ink); flex: 1; }
.lp .hub-card .hub-go { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--hub-teal-ink); }
.lp .hub-card:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-card:hover { transform: translateY(-3px); box-shadow: var(--hub-e2); } }
.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-pair { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 20px; border: 1px dashed #CDD1D8; border-radius: var(--hub-r-md); font-size: 15px; color: var(--hub-gray); }
.lp .hub-pair b { color: var(--hub-ink); font-weight: 700; }
.lp .hub-pair a { font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lp .hub-pair a:hover { text-decoration: underline; } }

/* 課程線一覽 */
.lp .hub-lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.lp .hub-line { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); color: var(--hub-ink); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.lp .hub-line img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.lp .hub-line-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.lp .hub-line h3 { font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--hub-dark); }
.lp .hub-line p { margin-top: 8px; font-size: 15px; line-height: 1.7; flex: 1; color: var(--hub-ink); }
.lp .hub-line .hub-go { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--hub-teal-ink); }
.lp .hub-line:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-line:hover { transform: translateY(-3px); box-shadow: var(--hub-e2); } }
.lp .hub-side-h { margin-top: 48px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 16px; }
.lp .hub-side a { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 20px; padding: 14px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); color: var(--hub-ink); text-decoration: none; transition: box-shadow 160ms ease; }
.lp .hub-side img { border-radius: var(--hub-r-sm); aspect-ratio: 2 / 1; object-fit: cover; }
.lp .hub-side h4 { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-side p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--hub-ink); }
.lp .hub-side a:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lp .hub-side a:hover { box-shadow: var(--hub-e2); } }

/* 課綱趨勢 */
.lp .hub-world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.lp .hub-world li { padding: 28px 24px; border-radius: var(--hub-r-md); background: var(--hub-white); box-shadow: var(--hub-e1); }
.lp .hub-world h3 { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--hub-dark); }
.lp .hub-world p { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.lp .hub-world cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; color: var(--hub-gray); }
.lp .hub-world cite a { color: var(--hub-teal-ink); display: inline-block; padding-block: 2px; }
.lp .hub-read { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 16px; }
.lp .hub-read span { color: var(--hub-gray); }

/* 常見問題 */
.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-adult { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 20px 24px; border-radius: var(--hub-r-md); background: var(--hub-white); font-size: 16px; }
.lp .hub-adult b { color: var(--hub-dark); }
.lp .hub-adult a { font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lp .hub-adult a:hover { text-decoration: underline; } }
.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: 1020px) {
  .lp .hub-lines { grid-template-columns: repeat(2, 1fr); }
  .lp .hub-grade { grid-template-columns: 200px 1fr; gap: 32px; }
}
@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-ruler { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px 0; }
  .lp .hub-ruler a { min-height: 48px; padding: 4px 2px; align-items: center; text-align: center; border-radius: var(--hub-r-sm); }
  .lp .hub-ruler b { font-size: 14px; white-space: nowrap; }
  .lp .hub-ruler small { display: none; }
  .lp .hub-grade { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; scroll-margin-top: calc(var(--oa-header-offset, 0px) + 80px); }
  .lp .hub-grade-label { position: static; }
  .lp .hub-cards, .lp .hub-side, .lp .hub-world { grid-template-columns: 1fr; }
  .lp .hub-grade-label .hub-grade-num { display: none; }
  .lp .hub-grade-label h3 { margin-top: 0; font-size: 24px; }
  .lp .hub-grade-label h3::after { content: ""; display: block; width: 40px; height: 5px; margin-top: 10px; border-radius: var(--hub-r-pill); background: var(--hub-orange); }
  .lp .hub-lines { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .lp .hub-line { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px; padding: 14px; }
  .lp .hub-line img { width: 112px; height: 112px; align-self: start; border-radius: var(--hub-r-sm); aspect-ratio: 1 / 1; }
  .lp .hub-line-body { padding: 0; }
  .lp .hub-line h3 { font-size: 19px; }
  .lp .hub-line p { font-size: 15px; }
  .lp .hub-line .hub-go { margin-top: 6px; }
  .lp .hub-side a { grid-template-columns: 112px 1fr; gap: 14px; }
  .lp .hub-mid { padding: 20px; }
}
@media (max-width: 359.98px) {
  .lp .hub-ruler b { font-size: 12px; letter-spacing: -0.02em; }
}
@media (prefers-reduced-motion: reduce) {
  .lp .hub-btn, .lp .hub-card, .lp .hub-line, .lp .hub-side a, .lp .hub-faq summary::after { transition: none; }
}
