:root {
  --ink: #102d47;
  --red: #e94035;
  --green: #0ba55b;
  --line: #dce8ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
section { scroll-margin-top: 88px; }
.container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.98); border-bottom: 1px solid #e8eef1; box-shadow: 0 2px 10px rgba(28,61,70,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; gap: 8px; color: var(--ink); }
.brand img { width: 53px; height: 53px; object-fit: contain; mix-blend-mode: multiply; }
.brand-name { display: block; white-space: nowrap; font-size: 21px; line-height: 1; font-weight: 900; }
.brand-name small { display: block; margin-top: 3px; text-align: center; font-size: 10px; font-weight: 700; }
.site-nav { display: flex; justify-content: center; gap: clamp(10px,1.8vw,26px); min-width: 0; }
.site-nav a { position: relative; white-space: nowrap; color: #1c3147; font-size: 14px; font-weight: 800; }
.site-nav a:hover, .site-nav a.active { color: #dc3c30; }
.site-nav a.active::after { content: ""; position: absolute; height: 3px; left: 24%; right: 24%; bottom: -13px; border-radius: 3px; background: var(--red); }
.header-actions { display: flex; gap: 8px; flex: none; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 7px 13px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 900; white-space: nowrap; }
.header-actions .call { background: #e9503f; }
.header-actions .line { background: var(--green); }
.header-actions a:hover, .offer-actions a:hover { filter: brightness(.95); transform: translateY(-1px); }

.hero-stage { background: #d7f1fc; }
.hero { position: relative; width: 100%; aspect-ratio: 1962 / 532; overflow: hidden; container-type: inline-size; background: #81d0f0 url("/assets/line-hero-wide-2027.png") center 25.28% / 100% auto no-repeat; }
.hero-correct-glyph { position: absolute; left: 47.7%; top: 29.7%; display: grid; place-items: center; width: 6.7%; height: 23.5%; border-radius: 18%; background: #fff; }
.hero-correct-glyph span { color: #f87810; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 6.1cqw; font-weight: 900; line-height: 1; -webkit-text-stroke: .05cqw #f87810; paint-order: stroke fill; }
.hero-mobile-copy { display: none; }
.hero-gift { display: none; position: absolute; right: 4%; bottom: 26px; padding: 8px 15px; border: 3px solid #fff8d7; border-radius: 50px; background: #ffde52; color: #a72b1f; box-shadow: 0 5px 0 rgba(129,73,33,.2); font-size: clamp(13px,1.7vw,20px); font-weight: 1000; transform: rotate(-5deg); }
.hero-expired-mask { display: none; }
.offer-expired .hero-gift { display: none; }
.offer-expired .hero-expired-mask { position: absolute; top: 50%; right: 11%; display: grid; place-items: center; width: 47%; height: 54%; padding: 16px; border: 6px solid #ffe4b3; border-radius: 12px; background: #135846; color: #fff; box-shadow: 0 8px 20px rgba(14,50,44,.3); text-align: center; font-size: clamp(18px,2.7vw,32px); font-weight: 900; line-height: 1.45; transform: rotate(-4deg); }

.feature-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; width: min(100% - 40px, 1150px); margin: 0 auto; }
.feature { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1; padding: 12px 6px; border: 1px solid #e1edf4; border-radius: 50%; background: #fff; box-shadow: 0 5px 13px rgba(34,74,93,.11); text-align: center; }
.feature-icon { display: block; height: 42px; margin-bottom: 4px; font-size: 37px; line-height: 1; }
.feature-icon.orange { color: #f17920; }
.feature-icon.blue { color: #2478da; }
.feature-icon.yellow { color: #efa917; }
.feature-icon.pink { color: #ef4b7b; }
.feature-icon.green { color: #12a667; }
.feature-icon.purple { color: #8546ce; }
.feature strong { color: #17314c; font-size: 17px; line-height: 1.25; font-weight: 900; }
.feature small { margin-top: 3px; color: #3d5368; font-size: 12px; line-height: 1.2; }

.overview { display: grid; grid-template-columns: 1.58fr 1fr; gap: 12px; align-items: stretch; margin-top: 17px; }
.why-card, .info-board { min-height: 300px; border-radius: 15px; }
.why-card { position: relative; overflow: hidden; padding: 22px 24px; border: 2px solid #cfecc6; background: #f5fff0; box-shadow: 0 3px 10px rgba(57,117,55,.08); }
.why-card h2 { position: relative; z-index: 1; margin: 0 0 12px; font-size: clamp(21px,2.7vw,29px); line-height: 1.3; font-weight: 900; }
.why-card h2 em { color: #d73d34; font-style: normal; }
.why-card ul { position: relative; z-index: 2; display: grid; gap: 9px; max-width: 65%; padding: 0; margin: 0; list-style: none; }
.why-card li { display: flex; gap: 9px; align-items: flex-start; color: #203a52; font-size: clamp(13px,1.6vw,17px); line-height: 1.35; }
.why-card li::before { content: "✔"; flex: none; color: #0f9c5f; font-size: 21px; line-height: 1; }
.why-art { position: absolute; right: -8%; bottom: -11%; width: 59%; height: 97%; object-fit: cover; object-position: left center; transform: scaleX(-1); }
.why-note { position: absolute; z-index: 1; right: 22px; top: 22px; max-width: 29%; color: #17324c; text-align: center; font-family: "DFKai-SB","KaiTi",serif; font-size: 14px; font-weight: 900; transform: rotate(-8deg); }
.info-board { position: relative; padding: 22px 24px; border: 11px solid #b67740; background: #0d4f3e; box-shadow: inset 0 0 0 3px #d09b5d, 0 5px 10px rgba(42,72,60,.18); color: #fff; }
.info-board h2 { margin: 0 0 16px; font-size: clamp(24px,3vw,34px); line-height: 1.2; }
.info-row { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 11px; font-size: 15px; line-height: 1.45; }
.info-row .symbol { flex: none; width: 27px; color: #ffd576; font-size: 22px; text-align: center; }
.info-row strong { display: block; color: #ffefd2; font-size: 15px; }
.info-board .info-note { display: block; margin-top: 9px; color: #d7efe4; font-size: 11px; }

.courses { margin-top: 18px; padding: 19px 20px 18px; border: 1px solid #dcecf3; border-radius: 14px; background: #fff; box-shadow: 0 4px 13px rgba(31,74,97,.07); }
.courses h2 { margin: 0 0 13px; color: #17314c; font-size: clamp(25px,3vw,33px); font-weight: 900; }
.courses h2 span { margin-right: 7px; }
.course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.course-card { min-width: 0; overflow: hidden; border-radius: 24px; background-image: url("/assets/line-courses-2027.png"); background-repeat: no-repeat; background-size: 214.065% auto; }
.course-card--phonics, .course-card--math { aspect-ratio: 647 / 500; }
.course-card--habits, .course-card--routine { aspect-ratio: 647 / 465; }
.course-card--phonics { background-position: 4.74% 20.44%; }
.course-card--math { background-position: 95.26% 20.44%; }
.course-card--habits { background-position: 4.74% 95.98%; }
.course-card--routine { background-position: 95.26% 95.98%; }
.course-note { margin: 9px 0 0; color: #6c8090; font-size: 11px; }

.offer-band { position: relative; display: grid; grid-template-columns: 44% 56%; align-items: center; min-height: 255px; margin-top: 18px; overflow: hidden; border: 1px solid #f0d9c4; border-radius: 16px; background: #fffdf7 url("/assets/closing.webp") right bottom / auto 100% no-repeat; box-shadow: 0 3px 13px rgba(104,73,46,.08); }
.offer-left { position: relative; z-index: 1; padding: 22px 26px; }
.offer-eyebrow { display: inline-block; padding: 5px 18px; border-radius: 50px; background: #ee4961; color: #fff; font-size: 16px; font-weight: 900; transform: rotate(-5deg); }
.offer-left h2 { margin: 11px 0 5px; color: #9a2830; font-size: clamp(18px,2.6vw,29px); line-height: 1.28; }
.offer-left .discount { display: block; color: #d51f2e; font-size: clamp(43px,6vw,73px); line-height: 1.05; font-weight: 1000; text-shadow: 2px 3px 0 #ffe653; }
.offer-left .gift { display: inline-block; margin-top: 5px; padding: 4px 11px; border-radius: 6px; background: #fff0a4; color: #9b3419; font-size: clamp(14px,1.9vw,19px); font-weight: 900; }
.offer-right { position: relative; z-index: 1; padding: 18px 20% 18px 12px; }
.offer-right h3 { margin: 0 0 12px; color: #17314c; font-family: "DFKai-SB","KaiTi",serif; font-size: clamp(19px,2.2vw,26px); line-height: 1.3; }
.offer-actions { display: flex; gap: 10px; }
.offer-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 51px; padding: 9px 18px; border-radius: 50px; color: #fff; font-size: 18px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 8px rgba(40,60,60,.14); }
.offer-actions .enroll { background: #f2415d; }
.offer-actions .line { background: var(--green); }
.offer-small { display: block; max-width: 380px; margin-top: 9px; padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,.82); color: #465969; font-size: 11px; line-height: 1.35; }
.expired-copy, .offer-left .discount.expired-copy { display: none; }
.offer-expired .early-copy { display: none; }
.offer-expired .offer-left .discount.early-copy { display: none; }
.offer-expired .expired-copy, .offer-expired .offer-left .discount.expired-copy { display: block; }
.offer-expired .offer-left .discount { font-size: clamp(25px,3.4vw,42px); color: #2e6953; text-shadow: none; }

.site-footer { margin-top: 18px; border-top: 1px solid #e3edf0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; min-height: 86px; color: #30485b; }
.footer-brand { display: flex; align-items: center; gap: 7px; flex: none; font-size: 15px; line-height: 1.1; font-weight: 900; }
.footer-brand img { width: 43px; height: 43px; object-fit: contain; mix-blend-mode: multiply; }
.footer-brand small { display: block; font-size: 9px; text-align: center; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 19px; font-size: 12px; }
.footer-contact a:hover { color: var(--red); }
.mobile-sticky { display: none; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 6px 10px; padding-block: 7px; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; gap: 20px; overflow-x: auto; padding: 4px 0 7px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a.active::after { bottom: -6px; }
  .feature-strip { margin-top: 0; }
  .feature strong { font-size: 14px; }
  .feature small { font-size: 10px; }
  .feature-icon { font-size: 30px; height: 34px; }
  .why-card, .info-board { min-height: 290px; }
  .why-card li { font-size: 13px; }
  .offer-right { padding-right: 18%; }
  .offer-actions a { font-size: 15px; padding-inline: 12px; }
}

@media (max-width: 700px) {
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .container { width: min(100% - 28px, 550px); }
  .header-inner { min-height: 59px; }
  .brand img { width: 39px; height: 39px; }
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 8px; }
  .header-actions .call { display: none; }
  .header-actions a { min-height: 34px; font-size: 12px; padding: 6px 10px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero { width: 100%; height: 585px; aspect-ratio: auto; background-image: url("/assets/hero-mobile.webp"); background-position: center bottom; background-size: cover; }
  .hero-correct-glyph { display: none; }
  .hero-semantic { display: none; }
  .hero-mobile-copy { position: absolute; top: 24px; left: 50%; display: block; width: min(90%,360px); padding: 13px 15px; border: 5px solid #bd844d; border-radius: 10px; background: #f9d298; box-shadow: 3px 5px 0 rgba(105,70,36,.28); text-align: center; transform: translateX(-50%) rotate(-2deg); }
  .hero-mobile-copy h1 { margin: 0; color: #17314c; font-size: clamp(26px,7vw,33px); line-height: 1.2; font-weight: 1000; }
  .hero-mobile-copy h1 em { color: #d82e28; font-style: normal; }
  .hero-mobile-copy p { margin: 6px 0 0; color: #264257; font-size: 13px; font-weight: 900; }
  .hero-mobile-deal { display: block; margin-top: 8px; padding: 6px; border-radius: 6px; background: #e83e42; color: #fff; font-size: 15px; font-weight: 900; }
  .hero-gift { display: block; right: 8%; bottom: 42px; font-size: 14px; }
  .offer-expired .hero-mobile-deal { display: none; }
  .offer-expired .hero-expired-mask { display: none; }
  .feature-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; width: min(100% - 20px,500px); margin-top: -35px; }
  .feature { padding: 7px 2px; }
  .feature-icon { height: 25px; margin-bottom: 2px; font-size: 23px; }
  .feature strong { font-size: 12px; }
  .feature small { font-size: 9px; }
  .overview { grid-template-columns: 1fr; gap: 11px; margin-top: 14px; }
  .why-card { min-height: 315px; padding: 18px; }
  .why-card h2 { font-size: 22px; }
  .why-card ul { gap: 8px; max-width: 65%; }
  .why-card li { font-size: 12px; }
  .why-card li::before { font-size: 17px; }
  .why-art { width: 48%; right: -12%; bottom: -6%; height: 70%; }
  .why-note { display: none; }
  .info-board { min-height: 0; padding: 18px; border-width: 9px; }
  .info-board h2 { font-size: 25px; margin-bottom: 12px; }
  .info-row { margin-bottom: 8px; font-size: 13px; }
  .courses { padding: 16px 14px; margin-top: 14px; }
  .courses h2 { font-size: 24px; }
  .course-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-card { border-radius: 16px; }
  .offer-band { grid-template-columns: 1fr; margin-top: 14px; min-height: 370px; background-position: right bottom; background-size: auto 54%; align-items: start; }
  .offer-left { padding: 18px 20px 3px; }
  .offer-left h2 { font-size: 19px; }
  .offer-left .discount { font-size: 49px; }
  .offer-right { padding: 5px 20px 180px; }
  .offer-right h3 { font-size: 19px; }
  .offer-actions a { min-height: 44px; font-size: 14px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 16px 18px; }
  .footer-contact { justify-content: flex-start; }
  .mobile-sticky { position: fixed; z-index: 40; inset: auto 0 0; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e4edf0; background: rgba(255,255,255,.97); box-shadow: 0 -4px 16px rgba(28,61,70,.08); }
  .mobile-sticky a { display: grid; place-items: center; flex: 1; min-height: 43px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 900; }
  .mobile-sticky .enroll { background: #f2415d; }
  .mobile-sticky .line { background: var(--green); }
}

@media (max-width: 360px) {
  .hero { height: 530px; }
  .hero-mobile-copy h1 { font-size: 24px; }
  .hero-mobile-copy p { font-size: 12px; }
  .hero-mobile-deal { font-size: 13px; }
  .feature strong { font-size: 11px; }
  .feature small { font-size: 8px; }
  .offer-left .discount { font-size: 38px; }
}

@media (prefers-reduced-motion: no-preference) {
  .feature-strip { animation: rise-in .6s both; }
  .hero-gift { animation: rise-in .7s .15s both; }
  @keyframes rise-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
