:root {
  --navy: #2c4560;
  --navy-deep: #1d3147;
  --gold: #c49a3c;
  --gold-soft: #f3e9d0;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e3e7ec;
  --bg: #fafaf7;
  --card: #ffffff;
  --todo: #b45309;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.ribbon { background: #fff7e6; color: var(--todo); font-size: 13px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f1dcae; }

header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.logo { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.logo-img { height: 46px; width: auto; flex: none; }
.line-sec { background: #f1faf4; padding: 52px 0; scroll-margin-top: 68px; }
.line-card { text-align: center; }
.line-card h3 { margin: 0; color: var(--navy); font-size: 22px; }
.line-card p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.line-card img { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.qr-tip { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.brand small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
nav { margin-left: auto; display: flex; gap: 2px; }
nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; }
nav a:hover, nav a.active { background: var(--gold-soft); color: var(--navy); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b08830; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-disabled { background: #e9ecef; color: #8a94a0; cursor: default; }
.bar .btn { padding: 9px 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); margin-left: auto; cursor: pointer; }

.hero { background: radial-gradient(circle at 85% 20%, rgba(196,154,60,.28), transparent 45%), linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 88px 0 96px; }
.eyebrow { color: var(--gold); letter-spacing: .18em; font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.25; margin: 14px 0 18px; font-weight: 800; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 560px; font-size: 18px; color: #d6dee7; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.page-head { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 44px 0; }
.page-head h1 { margin: 0; font-size: 34px; }
.page-head p { margin: 6px 0 0; color: #c9d4df; }

section { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
h2 { margin: 0; font-size: 30px; color: var(--navy); text-wrap: balance; }
h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 8px; }
.more { color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,41,51,.08); }

.branch h3 { margin: 0 0 4px; font-size: 21px; color: var(--navy); }
.branch .tag { font-size: 12px; color: var(--muted); }
.branch ul { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 15px; color: var(--muted); }
.branch li { padding: 3px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); background: #fff; }
.chip:hover { background: var(--gold-soft); border-color: var(--gold); }
.chip.solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.solid:hover { background: var(--navy-deep); }

.news-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a6a1c; }
.news h3 { margin: 12px 0 6px; font-size: 18px; line-height: 1.5; }
.news p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.date { font-size: 13px; color: var(--muted); }
.todo-box { border: 2px dashed #e2b866; background: #fffaf0; }
.todo-flag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--todo); border: 1px solid #e2b866; border-radius: 6px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.empty { color: var(--muted); padding: 24px 0; }

.honors { background: var(--navy-deep); color: #fff; }
.honors h2 { color: #fff; }
.honors .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.honors .card p { color: #c9d4df; margin: 6px 0 0; font-size: 15px; }
.honors .more { color: #f3c77a; }
.honors .todo-box { background: rgba(243,199,122,.08); border-color: #e2b866; }

.sched { background: var(--gold-soft); }
.sched-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sched h2::after { background: var(--navy); }
.sched p { margin: 10px 0 0; color: var(--muted); }

.teacher { text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 34px; font-weight: 700; margin: 0 auto 12px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher h3 { margin: 0; color: var(--navy); }
.teacher .subj { color: #8a6a1c; font-weight: 700; font-size: 14px; }
.teacher p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: inline-block; min-width: 6em; color: var(--navy); }

footer { background: #14202e; color: #b8c4d0; padding: 48px 0 96px; font-size: 14px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 16px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer a:hover { color: #fff; text-decoration: underline; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #7f8fa0; }

.float-line { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #06c755; color: #fff; font-weight: 700; padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 20px rgba(6,199,85,.4); }

@media (max-width: 860px) {
  nav, .bar > .btn { display: none; }
  .menu-btn { display: block; }
  header.open nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: #fff; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  section { padding: 44px 0; }
  footer .cols { grid-template-columns: 1fr; }
  .sec-head { align-items: start; }
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

.float-line { transition: opacity .2s; }
.float-line.hide { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { h2 { font-size: 25px; } .page-head h1 { font-size: 30px; } }

.alt { background: #fff; }
.hs-row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hs-row h3 { margin: 4px 0 0; color: var(--navy); font-size: 19px; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.names li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 15px; line-height: 1.5; }
.alt .names li { background: var(--bg); }
.names li b { color: var(--navy); }
.names li small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.names.uni li { display: flex; flex-direction: column; }
.names.uni .dept { font-size: 12px; color: #8a6a1c; font-weight: 700; }
.names.uni li small { margin-left: 0; }
.note { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .hs-row { grid-template-columns: 1fr; gap: 8px; } }

.t-sec { padding: 40px 0 8px; }
.teacher { text-align: left; }
.t-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.t-head .avatar { width: 64px; height: 64px; font-size: 24px; margin: 0; flex: none; }
.teacher h3 { font-size: 20px; }
.teacher p { line-height: 1.75; }
.teacher .row { margin-top: 12px; }

.a-title h1 { font-size: clamp(24px, 4.4vw, 38px); line-height: 1.4; }
.a-title h1 span { color: var(--gold); font-size: .78em; font-weight: 700; }
.crumb { display: inline-block; margin-bottom: 12px; color: #c9d4df; font-size: 14px; }
.crumb:hover { color: #fff; }
.article { max-width: 720px; margin: 0 auto; padding: 40px 20px 72px; }
.article p { font-size: 17px; line-height: 2; margin: 0 0 1.1em; }
.article h2 { font-size: 24px; margin: 44px 0 16px; line-height: 1.5; }
.a-profile { display: flex; gap: 20px; align-items: center; background: var(--gold-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; }
.a-profile img, .a-avatar { width: 112px; height: 144px; border-radius: 12px; object-fit: cover; object-position: 50% 10%; flex: none; background: var(--navy); }
.a-avatar { display: grid; place-items: center; color: var(--gold); font-size: 40px; font-weight: 700; }
.a-profile ul { list-style: none; margin: 0; padding: 0; color: var(--navy); }
.a-profile li { padding: 2px 0; font-size: 15px; }
.a-profile li:first-child { font-weight: 800; font-size: 17px; }
.a-cta { margin-top: 56px; padding: 28px; background: #f1faf4; border-radius: var(--radius); text-align: center; }
.a-cta h3 { margin: 0 0 6px; color: var(--navy); }
.a-cta p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.a-cta .row { justify-content: center; }
.a-more { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.a-more b { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.teacher .avatar img { object-position: 50% 8%; }
@media (max-width: 860px) { .a-profile { flex-direction: column; align-items: flex-start; } .a-profile img, .a-avatar { width: 96px; height: 124px; } }

.online-band { padding: 0 0 48px; }
.band-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band-box h2 { font-size: 22px; }
.band-box p { margin: 10px 0 0; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }

.aud { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.branch .aud { margin: 8px 0 0; }
.pills { padding-top: 24px; }
.sched-branch { padding: 40px 0 8px; scroll-margin-top: 68px; }
.sched-branch .sec-head { margin-bottom: 20px; }
.sched-branch .aud { margin-top: 12px; }
.sgroup h3 { margin: 0 0 12px; font-size: 20px; color: var(--navy); }
.slots { list-style: none; margin: 0; padding: 0; }
.slots li { display: grid; grid-template-columns: 4.6em 8.2em 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.slots li:first-child { border-top: 0; }
.day { display: inline-block; text-align: center; padding: 2px 0; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.day.wk { background: #8a6a1c; }
.time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.what { color: var(--muted); font-size: 15px; }
.sched-cta { padding: 40px 0 72px; }
@media (max-width: 480px) { .slots li { grid-template-columns: 4.6em 1fr; } .slots .what { grid-column: 2; margin-top: -4px; } }

.sched-note { margin: 20px 0 0; padding: 14px 18px; background: var(--gold-soft); border-radius: 12px; color: #6b5314; font-weight: 700; }

.news-list { display: grid; gap: 20px; max-width: 820px; }
.news-list .card:hover { transform: none; box-shadow: none; }
.news .date { margin: 2px 0 8px; }
.refund { margin: 10px 0 0; padding-left: 1.4em; }
.refund li { margin: 10px 0; line-height: 1.85; }
.branch li.lic { font-size: 13px; color: var(--muted); }

.sub-h { margin: 8px 0 14px; font-size: 22px; color: var(--navy); }
.care-sec { margin-top: 40px; }
.care-sec h4 { margin: 22px 0 10px; font-size: 16px; color: var(--muted); }
.care-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.care { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 15px; }
.care th, .care td { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.care thead th { background: var(--navy); color: #fff; border: 0; }
.care tbody th { background: #3a5676; color: #fff; text-align: center; white-space: nowrap; }
.care td { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.care td.early { background: var(--gold-soft); }
.care td.leave { color: #8a6a1c; }
.flow { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.flow li { display: grid; grid-template-columns: 12em 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.flow li:first-child { border-top: 0; }
.ftime { font-weight: 700; color: var(--navy); }
.care-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .flow li { grid-template-columns: 1fr; gap: 2px; } }

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 10px; }
.route h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.route h4 span { font-size: 14px; color: #8a6a1c; background: var(--gold-soft); padding: 2px 12px; border-radius: 999px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 8.4em 1fr; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 10px; margin: 8px 0; }
.steps .st { font-weight: 700; font-variant-numeric: tabular-nums; }
.k-pickup { background: var(--navy); color: #fff; }
.k-hw { background: #e2ecf7; }
.k-snack { background: var(--gold-soft); color: #6b5314; }
.k-coach { background: #e0f0ea; }
.k-leave { background: var(--navy-deep); color: #fff; }
.week-h { margin: 26px 0 10px; }
.care td { line-height: 1.4; }
.care td.noon { background: var(--gold-soft); }
.care td.after { background: #fff; }
.care td b { display: block; }
.care td small { color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.badge { padding: 6px 18px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.badge.noon { background: var(--gold-soft); color: #8a6a1c; border-color: #e6d4a3; }
.routine { margin: 0 0 12px; font-size: 16px; }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 20px; border-radius: 12px; font-weight: 700; }
.chip1 { background: #e2ecf7; } .chip2 { background: #e0f0ea; } .chip3 { background: var(--gold-soft); color: #6b5314; }
.chip4 { background: #e9e6f5; } .chip5 { background: #fbe7e3; }
.leave { margin: 0; padding: 14px 18px; background: var(--navy-deep); color: #fff; border-radius: 12px; }
.leave b { margin-right: 14px; color: #f3c77a; }
.care td { font-weight: 700; }

.g5 { grid-template-columns: repeat(5, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.home-teachers { padding: 64px 0; }
.t-mini { display: block; text-align: center; padding: 18px 12px; }
.t-mini .avatar { width: 84px; height: 84px; margin: 0 auto 10px; font-size: 30px; }
.t-mini .avatar img { object-position: 50% 8%; }
.t-mini h3 { margin: 0; font-size: 18px; color: var(--navy); }
.t-mini .subj { color: #8a6a1c; font-size: 13px; font-weight: 700; }
.license { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; line-height: 1.9; color: #b8c4d0; }
.license + .copy { margin-top: 0; border-top: 0; padding-top: 6px; }
.policy { max-width: 820px; }
.policy:hover { transform: none; box-shadow: none; }
@media (max-width: 860px) {
  .g5, .g4 { grid-template-columns: repeat(2, 1fr); }
  .line-card img, .qr-tip { display: none; }
  .line-card .btn { width: 100%; padding: 16px; font-size: 18px; }
  .line-card p { margin-bottom: 16px; }
}

.branch.online { background: #f1faf4; border-color: #cfe8db; }
.perks { list-style: none; margin: 10px 0 16px; padding: 0; font-size: 14px; color: var(--muted); }
.perks li { padding: 4px 0 4px 20px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: #2f8a5b; font-weight: 700; }
.about-intro { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0 0 32px; }
.about-branches { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.about-branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.about-branch h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.about-branch ul:not(.perks) { list-style: none; margin: 0 0 10px; padding: 0; color: var(--muted); font-size: 14px; }
.about-branch p { margin: 0; color: var(--ink); line-height: 1.8; }
.features { margin: 0; padding-left: 1.3em; max-width: 820px; }
.features li { margin: 14px 0; line-height: 1.85; }
@media (max-width: 860px) { .about-branches { grid-template-columns: 1fr; } }

.online-desc { color: var(--ink); line-height: 1.8; margin: 8px 0 18px; }

.lic-list { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.lic-list span { white-space: nowrap; }
@media (max-width: 480px) { .lic-list { flex-direction: column; gap: 2px; } }

.gallery-cat.alt { background: #fff; }
.cat-desc { margin: -16px 0 24px; color: var(--muted); font-size: 15px; }
.gallery-year { display: block; padding: 0; overflow: hidden; }
.gy-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.gy-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-year h3 { margin: 14px 16px 2px; font-size: 17px; color: var(--navy); }
.gy-count { margin: 0 16px 16px; color: var(--muted); font-size: 13px; }

.g-album { padding: 40px 0 72px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.g-item { display: block; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 1 / 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.g-item:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,20,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-close, .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 18px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
}
