/* 保留現有品牌樣式；移除已刪除區塊的設定，整理重複覆寫。 */
:root { --ink: #173943; --ink-2: #31515a; --teal: #006c70; --mint: #c9ebe1; --coral: #f08a66; --sand: #f6f2e9; --cream: #fffcf7; --line: #d9dfd9; --white: #fff; --serif: "Noto Serif TC",serif; --sans: "Noto Sans TC",sans-serif; --latin: "DM Sans",sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
section { scroll-margin-top: 80px; }
.shell { width: min(1280px,calc(100% - 96px)); margin: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 9px 16px; z-index: 50; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,252,247,.94); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(23,57,67,.11); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); position: relative; display: block; overflow: hidden; transform: rotate(-15deg); }
.brand-mark span { position: absolute; border: 2px solid #fff; border-radius: 50%; width: 42px; height: 22px; left: -8px; }
.brand-mark span:nth-child(1) { top: 4px; }
.brand-mark span:nth-child(2) { top: 12px; }
.brand-mark span:nth-child(3) { top: 20px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.2; letter-spacing: .05em; }
.brand-words strong { font-size: 17px; font-weight: 800; }
.brand-words small { font-size: 10px; letter-spacing: .2em; margin-top: 5px; font-weight: 700; }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 700; }
.primary-nav>a:not(.nav-cta) { transition: color .2s; }
.primary-nav>a:not(.nav-cta):hover { color: var(--teal); }
.nav-cta { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 100px; }
.nav-cta span { margin-left: 13px; }
.nav-cta:hover, .button-dark:hover { background: var(--teal); }
.menu-toggle { display: none; }
.hero { min-height: 790px; position: relative; overflow: hidden; background: var(--sand); }
.hero-glow { position: absolute; right: -10%; top: -20%; height: 650px; width: 760px; background: radial-gradient(circle,rgba(198,232,219,.55),transparent 68%); pointer-events: none; }
.hero-grid { display: grid; align-items: center; position: relative; }
.eyebrow, .section-index { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--teal); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 36px; }
.eyebrow-line { height: 1px; width: 34px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--serif); font-size: clamp(48px,5.1vw,76px); letter-spacing: -.055em; line-height: 1.34; margin-bottom: 28px; font-weight: 800; }
.hero-description { color: var(--ink-2); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; border: 0; padding: 13px 24px; border-radius: 4px; font-size: 14px; font-weight: 800; transition: background .2s,transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.hero-bottom { height: 80px; display: flex; justify-content: space-between; align-items: center; color: #718a8b; font: 700 10px var(--latin); letter-spacing: .22em; border-top: 1px solid rgba(23,57,67,.13); }
.section-space { padding: 116px 0; }
.section-index { margin-bottom: 28px; }
h2 { font: 800 clamp(34px,3.5vw,52px)/1.5 var(--serif); letter-spacing: -.045em; margin-bottom: 0; }
h2 span { color: var(--teal); }
.services { background: #f0f5f1; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 48px; }
.section-heading>p { max-width: 350px; color: var(--ink-2); line-height: 2; margin-bottom: 3px; font-size: 14px; }
.service-grid { display: grid; gap: 14px; }
.service-card { background: var(--cream); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #dce6df; transition: transform .22s,box-shadow .22s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(26,70,64,.08); }
.service-top { display: flex; justify-content: space-between; align-items: start; color: var(--teal); font: 700 10px var(--latin); letter-spacing: .12em; }
.service-icon { width: 46px; height: 46px; border-radius: 50%; background: #d9f0e7; display: grid; place-items: center; font-size: 30px; line-height: 1; color: var(--teal); font-family: var(--sans); }
.service-card h3 { font: 800 23px var(--serif); margin: 0 0 14px; letter-spacing: -.03em; }
.service-card p { font-size: 13px; color: var(--ink-2); line-height: 1.95; margin: 0; }
.service-note { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid #b7cac2; padding: 29px 0 2px; font-size: 13px; }
.service-note span { font-weight: 800; white-space: nowrap; }
.service-note p { margin: 0; color: var(--ink-2); }
.service-note a { margin-left: auto; white-space: nowrap; font-weight: 800; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.trust { background: #f7f4ec; }
.contact { background: #e2eee6; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; }
.contact h2 { font-size: clamp(32px,3.3vw,48px); }
.contact-grid>div>p:not(.section-index) { color: var(--ink-2); max-width: 440px; font-size: 14px; line-height: 2; margin-top: 26px; }
.contact-email { display: flex; flex-direction: column; gap: 3px; margin-top: 55px; }
.contact-email span { font-size: 11px; color: var(--teal); font-weight: 800; }
.contact-email a { font: 700 17px var(--latin); border-bottom: 1px solid var(--ink); width: max-content; padding-bottom: 6px; }
.contact-email a span { color: var(--ink); margin-left: 12px; }
.inquiry-form { padding: 35px; background: var(--cream); border: 1px solid #d1e0d5; box-shadow: 16px 16px 0 rgba(20,90,82,.08); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 800; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; background: #fff; border: 1px solid #cedbd2; border-radius: 2px; color: var(--ink); padding: 13px 14px; outline: none; font-size: 13px; font-weight: 400; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 2px #bce3d5; }
.inquiry-form textarea { resize: vertical; }
.form-submit { width: 100%; margin-top: 3px; }
.form-note { font-size: 10px; line-height: 1.6; color: #698082; margin: 0; }
.site-footer { background: #14323a; color: #fff; }
.footer-inner { min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { font-size: 12px; color: #b1c9c7; margin: 0; }
.footer-inner>a:last-child { font-size: 12px; font-weight: 800; }
.footer-brand .brand-mark { background: #72bdb2; }
@media(max-width:1100px) {
  .shell { width: min(100% - 64px,1280px); }
  .hero-grid { gap: 30px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .service-card { min-height: 310px; }
  .primary-nav { gap: 18px; }
}
@media(max-width:760px) {
  .shell { width: min(100% - 38px,1280px); }
  .header-inner { height: 68px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-words strong { font-size: 15px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; border: 0; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink); }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); padding: 20px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px; }
  .primary-nav .nav-cta { text-align: center; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 68px 0 50px; }
  .eyebrow { margin-bottom: 24px; }
  .hero-description { font-size: 14px; }
  .hero-bottom { height: 54px; }
  .section-space { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading>p { margin-top: 19px; }
  .contact-email { margin-top: 28px; }
  .footer-inner { flex-wrap: wrap; padding: 30px 0; }
  .footer-inner p { order: 3; width: 100%; }
}
@media(max-width:520px) {
  h1 { font-size: 45px; }
  h2 { font-size: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 255px; }
  .service-note { align-items: start; flex-direction: column; gap: 9px; }
  .service-note a { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .inquiry-form { padding: 25px; }
  .footer-inner { align-items: start; }
  .footer-inner>a:last-child { margin-left: auto; }
}
.contact-email+.contact-email { margin-top: 22px; }
.hero-grid { padding-bottom: 48px; }
.hero-copy { padding-bottom: 35px; }
.hero-description { max-width: 720px; }
.service-slide { margin: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.service-slide img { display: block; width: 100%; height: auto; }
.intro .service-slide { margin: 48px auto 0; }
.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-card { min-height: 310px; }
.service-card h3 { font-size: 22px; line-height: 1.5; }
.feedback-slide { width: 100%; }
@media(max-width:1100px) {
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .hero-grid { padding-bottom: 28px; }
  .hero-copy { padding-top: 50px; }
  .intro .service-slide { margin-top: 30px; }
  .service-card { min-height: 290px; }
}
@media(max-width:520px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
}
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 5%; padding: 68px 0; min-height: 660px; }
.hero-copy { padding: 0; max-width: none; }
.hero h1 { font-size: clamp(38px,4.3vw,64px); line-height: 1.4; margin-bottom: 22px; }
.hero-subtitle { font-size: clamp(18px,1.7vw,24px); font-weight: 700; line-height: 1.7; color: var(--teal); margin-bottom: 22px; }
.hero-description { font-size: 15px; line-height: 2.1; margin-bottom: 0; }
.hero-description strong { color: var(--ink); font-weight: 800; }
.hero-collage { margin: 0; width: 100%; }
.hero-collage img { display: block; width: 100%; height: auto; }
@media(max-width:760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 35px; min-height: 0; padding: 48px 0; }
  .hero h1 { font-size: 40px; }
  .hero-collage { max-width: 485px; margin: auto; }
  .hero-subtitle { font-size: 19px; }
}
@media(max-width:380px) {
  .hero h1 { font-size: 34px; }
}
.challenge-heading { text-align: center; margin-bottom: 48px; }
.challenge-heading h2 { font-size: clamp(30px,3.3vw,48px); }
.challenge-subtitle { font-size: 17px; line-height: 1.9; color: var(--ink-2); margin: 20px 0 0; }
.challenge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.challenge-card { min-width: 0; }
.challenge-photo { position: relative; aspect-ratio: 475 / 367; overflow: hidden; background: #e9f0ed; }
.challenge-photo img { position: absolute; width: 326.316%; max-width: none; height: auto; top: -2.725%; }
.photo-student img { left: -2.105%; }
.photo-teacher img { left: -112%; }
.photo-school img { left: -221.895%; }
.challenge-copy { text-align: center; position: relative; padding: 0 8px 8px; }
.challenge-label { display: inline-block; position: relative; margin: -23px 0 18px; padding: 7px 28px; border-radius: 100px; font: 700 19px/1.5 var(--sans); background: var(--cream); }
.label-student { background: #64a8d4; color: #fff; }
.label-teacher { background: #f5c285; color: #423426; }
.label-school { background: #303331; color: #fff; }
.challenge-copy p { font-size: 15px; line-height: 2; margin: 0; color: var(--ink-2); }
@media(max-width:900px) {
  .challenge-grid { gap: 16px; }
  .challenge-copy p { font-size: 13px; }
  .challenge-subtitle { font-size: 15px; }
}
@media(max-width:760px) {
  .challenge-grid { grid-template-columns: 1fr; gap: 36px; max-width: 475px; margin: auto; }
  .challenge-copy p { font-size: 15px; }
  .challenge-heading { margin-bottom: 32px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms!important; animation-duration: .01ms!important; }
}
.hero .intro.section-space { padding-top: 48px; }

/* 調整閱讀節奏：避免固定高度撐出空白，維持標題與內容的層級。 */
.hero { min-height: 0; }
.hero-grid { min-height: 0; padding: 56px 0 40px; }
.section-space { padding: 72px 0; }
.hero .intro.section-space { padding: 32px 0 56px; }
.section-index { margin-bottom: 18px; }
.section-heading { margin-bottom: 32px; }
.challenge-heading { margin-bottom: 32px; }
.service-card { min-height: 0; padding: 26px; justify-content: flex-start; gap: 24px; }
.service-card p { font-size: 15px; }
.contact-email { margin-top: 32px; }
.hero-bottom { height: 48px; }
section { scroll-margin-top: 104px; }
@media (max-width: 760px) {
  .section-space { padding: 48px 0; }
  .hero-grid { padding: 36px 0 28px; }
  .hero .intro.section-space { padding: 24px 0 40px; }
  .section-heading { margin-bottom: 26px; }
  .service-card { min-height: 0; padding: 24px; gap: 20px; }
  section { scroll-margin-top: 84px; }
}
