:root {
  --ink: #0f1b33;
  --ink-2: #24314d;
  --muted: #5b6478;
  --line: #e4ddcf;
  --bg: #faf7f0;
  --card: #ffffff;
  --gold: #b88a2e;
  --gold-2: #e6c77a;
  --teal: #1f6f6a;
  --rose: #b4505a;
  --navy-grad: linear-gradient(135deg, #0f1b33 0%, #1c2f57 60%, #23406e 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 27, 51, .08);
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
section { padding: 88px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-grad); display: grid; place-items: center; color: var(--gold-2); font-family: var(--serif); font-size: .72rem; letter-spacing: -.02em; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #c99a3a, #e6c77a); color: #1a1407; box-shadow: 0 8px 20px rgba(184, 138, 46, .35); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* hero */
.hero { background: var(--navy-grad); color: #fff; padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 199, 122, .18), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lead { color: #c9d3e8; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #e7ecf7; }
.badge-new { background: var(--rose); color: #fff; font-size: .75rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .05em; }
.hero-card { background: #fffdf7; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); border: 1px solid var(--gold-2); }
.hero-card .cert-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.hero-card .cert-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: #efe9dc; overflow: hidden; margin: 4px 0 12px; }
.bar > span { display: block; height: 100%; border-radius: inherit; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-card { transform: none; } }

/* stat strip */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div.s { padding: 26px 14px; text-align: center; border-right: 1px solid var(--line); }
.strip div.s:last-child { border-right: 0; }
.strip b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.strip span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } .strip div.s:nth-child(2) { border-right: 0; } .strip div.s { border-bottom: 1px solid var(--line); } }

/* grids & cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: #f4eedf; margin-bottom: 14px; }
.card h3 { margin-bottom: .35em; }
.card ul { padding-left: 1.1em; margin: .5em 0 0; }
.card li { margin: .2em 0; }
.alt { background: #f3eee2; }
.dark { background: var(--ink); color: #e8ecf5; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: #aeb9d1; }
.dark .card { background: #17264a; border-color: #2b3d66; color: #dfe6f3; box-shadow: none; }
.section-head { margin-bottom: 40px; }

/* pain vs answer */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vs > div { padding: 32px; }
.vs .pain { background: #fff; }
.vs .answer { background: var(--ink); color: #e8ecf5; }
.vs .answer h3 { color: var(--gold-2); }
.vs ul { list-style: none; padding: 0; margin: 0; }
.vs li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.vs .pain li::before { content: "✕"; position: absolute; left: 0; color: var(--rose); font-weight: 700; }
.vs .answer li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* outcomes */
.outcome { position: relative; padding-top: 40px; }
.outcome .num { position: absolute; top: -18px; left: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-grad); color: var(--gold-2); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; border: 3px solid var(--bg); }

/* camp */
.camp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .camp { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .d { font-family: var(--serif); font-weight: 700; color: var(--gold); }
.timeline li:last-child .d { color: var(--rose); }
.price-box { background: #fff; border: 2px solid var(--gold-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.price s { font-size: 1.1rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.countdown { display: flex; gap: 10px; margin: 12px 0 18px; }
.countdown div { background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 62px; }
.countdown b { display: block; font-size: 1.4rem; font-family: var(--serif); }
.countdown span { font-size: .72rem; color: #aeb9d1; }
.seats { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rose); }

/* courses */
.course { display: flex; flex-direction: column; }
.course .tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; }
.course .meta { font-size: .9rem; color: var(--muted); margin: 6px 0 12px; }
.course .p { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.course .p b { font-family: var(--serif); font-size: 1.4rem; }
.course.featured { border: 2px solid var(--gold); }
.ribbon { align-self: flex-start; background: var(--gold); color: #fff; font-size: .75rem; padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; font-weight: 700; }

/* certification levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #2b3d66; }
.levels > div { padding: 24px 20px; border-right: 1px solid #2b3d66; background: #17264a; }
.levels > div:last-child { border-right: 0; }
.levels .lv { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } .levels > div { border-bottom: 1px solid #2b3d66; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }
.axis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
@media (max-width: 760px) { .axis { grid-template-columns: 1fr; } }
.rubric { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rubric th, .rubric td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.rubric th { font-weight: 700; color: var(--ink-2); background: #f6f1e5; }
.table-scroll { overflow-x: auto; }

/* partners */
.partners { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.partners .x { display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } .partners .x { font-size: 1.6rem; } }

/* campuses */
.campus h3 { display: flex; align-items: center; gap: 8px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* forms */
.form-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: 0 20px 50px rgba(15, 27, 51, .12); border: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field label .req { color: var(--rose); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #d9d1c0; border-radius: 12px; font: inherit; background: #fffdf8; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 138, 46, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.slot { border: 1.5px solid #d9d1c0; border-radius: 12px; padding: 8px 10px; cursor: pointer; background: #fffdf8; text-align: left; font: inherit; font-size: .88rem; line-height: 1.4; color: var(--ink); }
.slot b { display: block; }
.slot.sel { border-color: var(--gold); background: #fbf3df; box-shadow: 0 0 0 2px rgba(184, 138, 46, .25); }
.slot[disabled] { opacity: .45; cursor: not-allowed; }
.slot .left { font-size: .75rem; color: var(--teal); }
.slot .left.low { color: var(--rose); font-weight: 700; }
.msg { padding: 12px 16px; border-radius: 12px; margin-top: 12px; display: none; }
.msg.err { display: block; background: #fbe9ea; color: #8a2630; }
.msg.ok { display: block; background: #e6f3ef; color: #164d47; }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 20px 0; }
.success .big { font-size: 3rem; }

/* booking section layout */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .8rem; display: grid; place-items: center; }

/* footer */
footer { background: #0b1426; color: #93a0bb; padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
footer a { color: #c9d3e8; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer .disclaimer { border-top: 1px solid #1e2a44; margin-top: 30px; padding-top: 18px; font-size: .8rem; }

/* sticky mobile CTA */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(15, 27, 51, .96); }
  .mcta .btn { flex: 1; padding: 11px 10px; font-size: .92rem; }
  body.has-mcta { padding-bottom: 72px; }
}

/* quiz */
.quiz { max-width: 760px; margin: 0 auto; }
.progress { height: 8px; background: #e9e2d2; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; }
.q-part { font-size: .8rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; }
.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt { text-align: left; padding: 14px 18px; border: 1.5px solid #d9d1c0; border-radius: 14px; background: #fffdf8; font: inherit; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--gold); }
.opt.sel { border-color: var(--gold); background: #fbf3df; }
.result-hero { border-radius: 22px; padding: 34px; color: #fff; background: var(--navy-grad); }
.result-hero .lvl { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); }
.meter { margin: 8px 0 16px; }
.meter .lbl { display: flex; justify-content: space-between; font-size: .9rem; }

/* certificate verify */
.cert { background: #fffdf7; border: 2px solid var(--gold-2); border-radius: 22px; padding: 36px; position: relative; box-shadow: var(--shadow); }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 16px; pointer-events: none; }
.cert .seal { position: absolute; right: 30px; top: 30px; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle, #e6c77a, #b88a2e); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .72rem; line-height: 1.2; box-shadow: 0 6px 16px rgba(184, 138, 46, .4); }
.cert .invalid { color: var(--rose); font-weight: 800; }
@media (max-width: 560px) { .cert .seal { position: static; margin-bottom: 12px; } }

/* page header for subpages */
.page-head { background: var(--navy-grad); color: #fff; padding: 64px 0 56px; }
.page-head .lead { color: #c9d3e8; }
