:root {
  --navy: #051b4c;
  --blue: #0045ca;
  --blue-light: #3072e2;
  --surface: #edf4fd;
  --surface-strong: #dbeaff;
  --line: #d7e2f1;
  --orange: #fd4f1a;
  --white: #ffffff;
  --ink-muted: #52627b;
  --shadow: 0 18px 50px rgba(5, 27, 76, .10);
  --radius: 20px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  color: var(--navy);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 99; padding: .65rem 1rem; border-radius: 8px; background: var(--orange); color: var(--white); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--surface); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--blue); font-size: .83rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 9px; background: var(--orange); }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 780px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2rem; }
.lead { max-width: 680px; color: var(--ink-muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.section-dark .lead, .section-dark .eyebrow { color: #dce9ff; }
.section-dark .eyebrow::before { background: var(--orange); }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(215,226,241,.82); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 900; letter-spacing: -.03em; font-size: 1.12rem; white-space: nowrap; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 1.35rem; font-size: .94rem; font-weight: 700; }
.nav a { color: var(--navy); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .nav-cta { color: var(--white); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); padding: .5rem .65rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.2rem; background: var(--blue); color: var(--white); font-weight: 800; line-height: 1.2; box-shadow: 0 8px 20px rgba(0,69,202,.16); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); background: #0039a8; box-shadow: 0 12px 28px rgba(0,69,202,.2); }
.btn-secondary { border-color: var(--blue); background: transparent; color: var(--blue); box-shadow: none; }
.btn-secondary:hover { background: var(--surface); }
.btn-orange { background: var(--orange); box-shadow: 0 8px 20px rgba(253,79,26,.2); }
.btn-orange:hover { background: #d83d0c; }
.btn-light { background: var(--white); color: var(--blue); box-shadow: none; }
.btn-light:hover { background: #f2f6fd; }
.btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; pointer-events: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.8rem; }

.hero { overflow: hidden; padding: 92px 0 84px; background: linear-gradient(125deg, var(--surface) 0%, #fff 56%, #f8fbff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.hero h1 span { color: var(--blue); }
.hero-art { position: relative; min-height: 380px; }
.hero-art::before { content: ""; position: absolute; inset: 8% -7% 4% 6%; border-radius: 42% 58% 44% 56%; background: var(--surface-strong); transform: rotate(-8deg); }
.logic-card { position: relative; width: min(100%, 390px); margin: 28px auto 0; padding: 1.4rem; border: 1px solid rgba(0,69,202,.15); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.logic-card .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.chip { display: inline-flex; align-items: center; padding: .32rem .65rem; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: .77rem; font-weight: 800; }
.score-ring { display: grid; width: 86px; height: 86px; place-items: center; border: 10px solid var(--surface-strong); border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; color: var(--navy); font-size: 1.2rem; font-weight: 900; transform: rotate(18deg); }
.score-ring span { transform: rotate(-18deg); }
.logic-row { margin: 1rem 0; }
.logic-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .85rem; font-weight: 700; }
.bar { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.bar i.orange { background: var(--orange); }
.floating-note { position: absolute; right: -2%; bottom: 6%; display: flex; align-items: center; gap: .7rem; max-width: 230px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); font-size: .83rem; font-weight: 800; }
.floating-note b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e9f7f0; color: #168557; }

.trust-strip { padding: 18px 0; background: var(--navy); color: var(--white); }
.trust-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-item { display: flex; gap: .7rem; align-items: center; color: #dce9ff; font-size: .92rem; }
.trust-item b { color: var(--white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card { height: 100%; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card-elevated { border: 0; box-shadow: var(--shadow); }
.card-tint { border-color: transparent; background: var(--surface); }
.card .icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 1rem; border-radius: 13px; background: var(--surface); color: var(--blue); font-weight: 900; }
.card ul, .article ul { padding-left: 1.2rem; }
.card li, .article li { margin: .45rem 0; }
.card-link { display: inline-flex; margin-top: 1rem; color: var(--blue); font-weight: 800; }
.card-link::after { content: " →"; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading > div:first-child { max-width: 720px; }
.section-heading .small-link { color: var(--blue); font-weight: 800; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem; border-top: 3px solid var(--blue); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 1.3rem; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.step p { color: var(--ink-muted); font-size: .94rem; }

.quote { position: relative; padding: 2.2rem; border-radius: var(--radius); background: var(--navy); color: var(--white); overflow: hidden; }
.quote::after { content: "“"; position: absolute; right: 1rem; top: -1.4rem; color: rgba(255,255,255,.13); font: 10rem Georgia, serif; }
.quote p { position: relative; z-index: 1; max-width: 760px; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
.quote small { position: relative; z-index: 1; color: #bcd1f5; }

.page-hero { padding: 74px 0 64px; background: var(--surface); }
.page-hero h1 { max-width: 850px; }
.page-hero .lead { max-width: 760px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; color: var(--ink-muted); font-size: .84rem; }
.breadcrumbs a { color: var(--blue); font-weight: 700; }

.case-card { display: flex; flex-direction: column; gap: 1rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.case-meta span { padding: .3rem .6rem; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: .76rem; font-weight: 800; }
.case-status { display: inline-flex; width: fit-content; padding: .28rem .6rem; border-radius: 6px; background: #fff2ed; color: #b73510; font-size: .75rem; font-weight: 800; }
.case-card .card-link { margin-top: auto; }

.video-frame { display: grid; min-height: 390px; place-items: center; border-radius: 22px; background: linear-gradient(145deg, var(--navy), #0b3e91); color: var(--white); text-align: center; box-shadow: var(--shadow); }
.play-button { display: grid; width: 78px; height: 78px; place-items: center; margin: 0 auto 1rem; border: 0; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 1.6rem; box-shadow: 0 14px 30px rgba(253,79,26,.28); }
.video-frame p { max-width: 300px; margin-inline: auto; color: #dce9ff; }
.video-note { margin-top: 1rem; color: var(--ink-muted); font-size: .9rem; }

.assessment-shell { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.2rem; align-items: start; }
.assessment-intro { position: sticky; top: 100px; }
.assessment-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.progress-wrap { margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: .45rem; color: var(--ink-muted); font-size: .84rem; font-weight: 700; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s ease; }
.question-meta { margin-bottom: .65rem; color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .06em; }
.question-title { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.scale-options { display: grid; gap: .65rem; margin: 1.4rem 0; }
.scale-option { position: relative; }
.scale-option input { position: absolute; opacity: 0; }
.scale-option label { display: block; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font-weight: 700; transition: border .15s, background .15s, transform .15s; }
.scale-option label:hover { border-color: var(--blue-light); transform: translateX(2px); }
.scale-option input:checked + label { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(0,69,202,.10); }
.scale-option input:focus-visible + label { outline: 3px solid rgba(48,114,226,.38); outline-offset: 2px; }
.assessment-actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.assessment-actions .btn { min-width: 120px; }
.result-score { display: grid; grid-template-columns: 122px 1fr; gap: 1rem; align-items: center; margin: 1.4rem 0; padding: 1rem; border-radius: 16px; background: var(--surface); }
.result-number { display: grid; width: 110px; height: 110px; place-items: center; border: 9px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 1.55rem; font-weight: 900; }
.dimension-row { margin: 1rem 0; }
.dimension-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .86rem; font-weight: 800; }
.dimension-bar { height: 8px; border-radius: 99px; background: var(--surface); }
.dimension-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.email-gate { margin-top: 1.4rem; padding: 1.2rem; border: 1px dashed var(--blue-light); border-radius: 15px; background: #f8fbff; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
label.form-label { display: block; margin-bottom: .35rem; color: var(--navy); font-size: .86rem; font-weight: 800; }
input[type="email"], input[type="text"] { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); }
input:focus { outline: 3px solid rgba(48,114,226,.25); border-color: var(--blue); }
.privacy-note { margin-top: .55rem; color: var(--ink-muted); font-size: .78rem; }
.alert { margin: .8rem 0; padding: .75rem .9rem; border-radius: 10px; background: #fff2ed; color: #8d2609; font-size: .88rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.article { max-width: 780px; }
.article h2 { margin-top: 2.4rem; font-size: 1.75rem; }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: #243857; font-size: 1.06rem; }
.article-aside { position: sticky; top: 100px; padding: 1.2rem; border-radius: 16px; background: var(--surface); }
.article-aside a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--blue); font-weight: 800; font-size: .9rem; }

.footer { padding: 52px 0 26px; background: var(--navy); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2rem; }
.footer .brand { color: var(--white); }
.footer p, .footer a { color: #bdcce7; }
.footer h3 { font-size: .98rem; color: var(--white); }
.footer a:hover { color: var(--white); }
.footer-links { display: grid; gap: .4rem; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); color: #9eb3d9; font-size: .78rem; }

.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--orange); background: #fff7f3; color: #63301f; }
.faq { display: grid; gap: .75rem; }
.faq details { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.faq details p { margin: .75rem 0 0; color: var(--ink-muted); }
.check-list { display: grid; gap: .7rem; padding: 0; list-style: none; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: 0 0 auto; color: #168557; font-weight: 900; }
.cta-band { padding: 50px 0; background: var(--blue); color: var(--white); }
.cta-band .lead { color: #dce9ff; }
.cta-band .eyebrow { color: #dce9ff; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 1.25rem; right: 1.25rem; top: 70px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .75rem; }
  .nav .nav-cta { margin-top: .4rem; text-align: center; }
  .hero-grid, .assessment-shell { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; order: -1; }
  .assessment-intro { position: static; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 1.35rem, var(--max)); }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0; }
  .hero-art { min-height: 250px; }
  .logic-card { margin-top: 8px; }
  .floating-note { right: -3%; bottom: -3%; max-width: 205px; font-size: .76rem; }
  .trust-items, .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading .small-link { display: inline-block; margin-top: .4rem; }
  .result-score { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .result-score > div:last-child { width: 100%; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 1rem; }
  .article-aside { position: static; order: -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
