:root {
  --navy: #0d1838;
  --navy2: #16244f;
  --navy3: #1e2f63;
  --yellow: #ffd83d;
  --coral: #ff5d5d;
  --white: #fff;
  --mute: #aab5d6;
  --paper: #f6f3ea;
  --ink: #141a2e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  background: var(--navy); color: var(--white); line-height: 1.7; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.y { color: var(--yellow); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 26px; font-weight: 900; font-size: 18px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-y { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 24px rgba(255,216,61,.25); }
.btn-ghost { border: 2px solid rgba(255,255,255,.35); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 20px; }
.btn-block { width: 100%; }

.kicker {
  display: inline-block; color: var(--yellow); font-weight: 900; letter-spacing: .08em;
  border: 2px solid var(--yellow); border-radius: 999px; padding: 4px 16px; font-size: 15px;
}
.h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; font-weight: 900; text-align: center; }
.h2.left { text-align: left; margin-top: 14px; }
.sub { text-align: center; color: var(--mute); margin-top: 10px; font-weight: 500; }
section { padding: 88px 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13,24,56,.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--yellow); object-fit: cover; }
.brand span { color: var(--mute); font-weight: 700; font-size: 14px; }

/* hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,216,61,.16), transparent 45%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 48px 100%;
}
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 10vw, 112px); line-height: 1.1; font-weight: 900; margin-top: 22px; letter-spacing: .02em; }
.lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: #dfe5f7; }
.lead b { color: var(--yellow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-photo { position: relative; justify-self: center; width: min(420px, 78vw); }
.hero-photo img { border-radius: 50%; border: 6px solid var(--yellow); aspect-ratio: 1; object-fit: cover; background: #fff; }
.score-tag {
  position: absolute; left: -6%; bottom: 4%; background: var(--coral); color: #fff; transform: rotate(-8deg);
  border-radius: 18px; padding: 10px 18px; display: flex; align-items: baseline; gap: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.score-tag span { font-weight: 900; font-size: 15px; letter-spacing: .1em; }
.score-tag b { font-size: 44px; line-height: 1; font-weight: 900; }
.score-tag small { font-weight: 700; font-size: 14px; }

/* rule */
.rule { background: var(--yellow); color: var(--navy); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.steps li { background: var(--white); border-radius: 22px; padding: 28px 26px; box-shadow: 0 10px 0 rgba(13,24,56,.12); }
.steps .n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }
.steps b { display: block; font-size: 26px; font-weight: 900; margin-top: 14px; }
.steps p { margin-top: 4px; font-weight: 500; }
.rule-foot { text-align: center; margin-top: 34px; font-weight: 900; font-size: 20px; }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.plan { background: var(--navy2); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; }
.tag { display: inline-block; font-size: 14px; font-weight: 900; padding: 3px 12px; border-radius: 8px; border: 2px solid var(--yellow); color: var(--yellow); }
.tag-solid { background: var(--yellow); color: var(--navy); }
.plan h3 { font-size: 30px; font-weight: 900; margin-top: 14px; }
.plan-desc { color: #d3daf0; margin-top: 6px; flex: 1; }
.price { margin: 22px 0 18px; border-top: 1px dashed rgba(255,255,255,.2); padding-top: 16px; }
.price small { display: block; color: var(--mute); font-weight: 700; font-size: 14px; }
.price span { font-weight: 900; font-size: 18px; color: var(--yellow); }
.price b { font-size: 40px; margin-left: 4px; }

/* teacher */
.teacher { background: var(--navy2); }
.teacher-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hint { color: #6a7189; font-weight: 700; font-size: 13px; }
.teacher-lead { margin-top: 16px; color: #dfe5f7; font-size: 18px; }
.ways { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.ways li { background: var(--navy); border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; padding: 14px 18px; color: #d3daf0; }
.ways b { display: block; color: var(--white); font-size: 19px; font-weight: 900; }
.cert { background: var(--white); border: 0; border-radius: 18px; padding: 14px; color: var(--ink); text-align: center; transform: rotate(2deg); box-shadow: 0 24px 50px rgba(0,0,0,.4); transition: transform .2s; }
.cert:hover { transform: rotate(0); }
.cert span { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; }

/* cases */
.cases { background: var(--paper); color: var(--ink); }
.cases .sub { color: #5d6478; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.case { background: var(--white); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(20,26,46,.08); }
.case .big { font-size: 24px; font-weight: 900; line-height: 1.3; }
.case .big b { color: var(--coral); font-size: 34px; }
.case .who { margin-top: 6px; color: #5d6478; font-weight: 700; font-size: 15px; }
.case blockquote { margin-top: 14px; flex: 1; font-size: 16px; color: #2c3350; border-left: 3px solid var(--yellow); padding-left: 12px; }
.doc { margin-top: 16px; border: 0; background: #eee; border-radius: 12px; overflow: hidden; height: 160px; }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.doc:hover img { transform: scale(1.04); }

/* faq */
.faq details { background: var(--navy2); border-radius: 16px; margin-top: 12px; padding: 0 22px; }
.faq details:first-of-type { margin-top: 36px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 900; font-size: 19px; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 0 18px; color: #d3daf0; }

/* signup */
.signup {
  background:
    radial-gradient(circle at 10% 10%, rgba(255,216,61,.14), transparent 40%),
    var(--navy);
}
.signup-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.signup-copy p { margin-top: 18px; color: #d3daf0; font-size: 18px; }
.signup-copy .alt a { color: var(--yellow); font-weight: 900; }
.form { background: var(--white); color: var(--ink); border-radius: 26px; padding: 30px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.form fieldset { border: 0; }
.form legend, .field { font-weight: 900; font-size: 16px; }
.form i { color: var(--coral); font-style: normal; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 18px; }
.choices .wide { grid-column: 1 / -1; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: block; border: 2px solid #d9dde8; border-radius: 14px; padding: 12px 14px; font-weight: 900; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choices small { display: block; color: #6a7189; font-weight: 700; font-size: 13px; }
.choices input:checked + span { border-color: var(--navy); background: #fff6cc; box-shadow: inset 0 0 0 1px var(--navy); }
.choices input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 500; font-size: 16px;
  border: 2px solid #d9dde8; border-radius: 12px; padding: 11px 14px; background: #fafbfd; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field .bad { border-color: var(--coral); }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 700; cursor: pointer; background: #fff6cc; border-radius: 12px; padding: 12px 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.check.bad { outline: 2px solid var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.msg.ok { background: #e6f7ec; color: #17633a; }
.msg.err { background: #fde9e9; color: #a32020; }
.privacy { margin-top: 14px; font-size: 13px; color: #6a7189; }

.foot { padding: 28px 0 96px; color: var(--mute); font-size: 14px; text-align: center; }

/* mobile sticky CTA */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none;
  background: var(--yellow); color: var(--navy); text-align: center; font-weight: 900; font-size: 17px;
  border-radius: 14px; padding: 14px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* lightbox */
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(5,10,25,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.zoom p { margin-top: 12px; color: #dfe5f7; font-weight: 700; text-align: center; }
.zoom-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; }

@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-in, .teacher-in, .signup-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; width: min(240px, 60vw); }
  .score-tag { left: -18%; }
  .score-tag b { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .form { padding: 22px 18px; }
  .sticky { display: block; }
}
@media (max-width: 480px) {
  .plan-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
}
