:root {
  --ink: #110d21;
  --muted: #5f5b6d;
  --line: #e8e5ef;
  --paper: #ffffff;
  --wash: #f7f5fb;
  --brand: #ff5c45;
  --brand-dark: #d63c28;
  --violet: #5b36c9;
  --violet-deep: #321b79;
  --success: #187858;
  --shadow: 0 22px 60px rgba(28, 19, 61, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  color: #fff;
  background: var(--violet-deep);
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--violet);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 10px; background: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(232, 229, 239, .92);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 176px; }
.desktop-nav { margin-left: auto; }
.desktop-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a { color: #251c3e; font-size: .96rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--brand-dark); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { color: #fff; background: var(--violet); transform: translateY(-2px); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { cursor: pointer; list-style: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; top: 76px; left: 0; width: 100%; padding: 14px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-menu nav a { display: block; padding: 10px 4px; font-weight: 750; text-decoration: none; }

.breadcrumb { padding: 20px 0 0; color: #777184; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b0aaba; }
.breadcrumb a { color: var(--violet); text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 92, 69, .18), transparent 29%),
    radial-gradient(circle at 10% 88%, rgba(91, 54, 201, .14), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f8f5ff 58%, #fff6f3 100%);
}
.hero::after { content: ""; position: absolute; right: -70px; bottom: -170px; width: 360px; height: 360px; border: 1px solid rgba(91,54,201,.16); border-radius: 50%; box-shadow: 0 0 0 36px rgba(91,54,201,.035), 0 0 0 72px rgba(255,92,69,.035); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(2.45rem, 5.4vw, 4.7rem); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: var(--brand-dark); font-style: normal; }
.hero .lead { max-width: 720px; margin: 24px 0 0; color: #514b61; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 12px 28px rgba(255,92,69,.23); }
.btn-primary:hover { color: #fff; background: var(--brand-dark); }
.btn-secondary { color: var(--violet-deep); background: #fff; border-color: #d9d2e8; }
.btn-secondary:hover { background: #f5f1ff; }
.hero-panel { padding: 28px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-panel h2 { margin: 0 0 14px; font-size: 1.15rem; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #464054; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .02em; color: var(--success); font-weight: 900; }
.microcopy { margin: 18px 0 0; padding-top: 16px; color: #777184; font-size: .82rem; border-top: 1px solid var(--line); }

.trust-strip { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: #c9c4d5; font-size: .86rem; }

.section { padding: 92px 0; }
.section-soft { background: var(--wash); }
.section-dark { color: #fff; background: var(--ink); }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.14; letter-spacing: -.035em; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-heading p { color: #c4becf; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.content h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.035em; }
.content h3 { margin: 28px 0 10px; font-size: 1.25rem; }
.content p { margin: 0 0 16px; color: var(--muted); }
.aside-note { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(24,16,52,.07); }
.aside-note h3 { margin: 0 0 14px; font-size: 1.3rem; }
.aside-note p { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px rgba(25,18,51,.055); }
.card-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; color: #fff; background: var(--violet); border-radius: 13px; font-weight: 850; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card a { display: inline-block; margin-top: 16px; color: var(--violet); font-weight: 800; text-decoration: none; }
.card a:hover { color: var(--brand-dark); }

.process { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { position: relative; padding: 26px 24px 28px 0; border-top: 1px solid #d8d3e2; }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 32px; color: var(--brand); font-size: .86rem; font-weight: 900; letter-spacing: .1em; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: -4px; right: 10px; width: 8px; height: 8px; background: var(--violet); border-radius: 50%; }
.process-step h3 { margin: 0 0 10px; font-size: 1.13rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .93rem; }

.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.deliverable { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.deliverable .icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--violet); background: #eee9ff; border-radius: 11px; font-weight: 900; }
.deliverable h3 { margin: 0 0 4px; font-size: 1.05rem; }
.deliverable p { margin: 0; color: var(--muted); font-size: .9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.scope-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.scope-table th, .scope-table td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.scope-table th { color: #fff; background: var(--violet-deep); font-size: .88rem; letter-spacing: .03em; }
.scope-table tr:last-child td { border-bottom: 0; }
.scope-table td:first-child { color: var(--violet-deep); font-weight: 800; }

.faq-list { max-width: 900px; margin-inline: auto; }
.faq-list details { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq-list summary { position: relative; cursor: pointer; padding: 21px 58px 21px 22px; list-style: none; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 17px; right: 22px; color: var(--violet); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { padding: 24px; color: #fff; background: #251a47; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.related-card:hover { color: #fff; background: var(--violet-deep); transform: translateY(-3px); }
.related-card span { display: block; color: #bcb5ca; font-size: .84rem; }
.related-card strong { display: block; margin-top: 6px; font-size: 1.08rem; }

.cta { position: relative; overflow: hidden; padding: 76px 0; color: #fff; background: linear-gradient(120deg, var(--violet-deep), #45219f 58%, #7b2fb4); }
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; right: -60px; top: -110px; border: 50px solid rgba(255,255,255,.06); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.13; letter-spacing: -.04em; }
.cta p { max-width: 650px; margin: 14px 0 0; color: #ddd7ec; }
.cta .btn { flex: 0 0 auto; background: #fff; color: var(--violet-deep); }

.site-footer { padding: 56px 0 26px; color: #d8d3e3; background: #0d0917; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 38px; }
.footer-brand img { width: 170px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; color: #aaa4b7; font-size: .9rem; }
.footer-col h2 { margin: 0 0 14px; color: #fff; font-size: 1rem; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #aaa4b7; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #827b91; font-size: .83rem; }

.hub-hero { padding: 72px 0; background: linear-gradient(145deg, #151025 0%, #2e1c65 65%, #5427a3 100%); color: #fff; }
.hub-hero .eyebrow { color: #ffb4a9; }
.hub-hero h1 { max-width: 900px; margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.8rem); line-height: 1.08; letter-spacing: -.045em; }
.hub-hero p:not(.eyebrow) { max-width: 760px; margin: 22px 0 0; color: #d8d1e7; font-size: 1.12rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.topic-card { display: grid; min-height: 260px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 15px 42px rgba(23,15,51,.07); text-decoration: none; }
.topic-card:hover { border-color: #c9bde7; transform: translateY(-3px); }
.topic-card .tag { align-self: start; justify-self: start; padding: 6px 10px; color: var(--violet); background: #eee9ff; border-radius: 999px; font-size: .78rem; font-weight: 850; }
.topic-card h2 { align-self: end; margin: 42px 0 0; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.025em; }
.topic-card p { margin: 10px 0 0; color: var(--muted); }
.topic-card strong { display: block; margin-top: 18px; color: var(--brand-dark); }

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 102px; padding: 22px; background: var(--wash); border: 1px solid var(--line); border-radius: 16px; }
.toc h2 { margin: 0 0 12px; font-size: 1rem; }
.toc ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--brand-dark); }
.article-content > section { scroll-margin-top: 100px; margin-bottom: 70px; }
.article-content h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.17; letter-spacing: -.03em; }
.article-content h3 { margin: 30px 0 10px; font-size: 1.28rem; }
.article-content p, .article-content li { color: var(--muted); }
.article-content ul, .article-content ol { padding-left: 22px; }
.callout { margin: 26px 0; padding: 24px 26px; background: #fff7f4; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; }
.callout strong { display: block; margin-bottom: 5px; color: var(--ink); }
.callout p { margin: 0; }
.source-box { padding: 24px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 16px; }
.source-box h3 { margin-top: 0; }
.source-box a { color: var(--violet); word-break: break-word; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.comparison-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.comparison-card h3 { margin: 0 0 16px; font-size: 1.45rem; }
.comparison-card ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; }
.decision-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.decision-item { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.decision-item strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.decision-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.calculator { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.calculator h2 { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-field label { display: block; margin-bottom: 7px; color: #3c344d; font-size: .88rem; font-weight: 800; }
.calc-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8d2e3; border-radius: 10px; font: inherit; }
.calc-field input:focus { outline: 3px solid rgba(91,54,201,.15); border-color: var(--violet); }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.calc-result { padding: 20px; background: var(--wash); border-radius: 14px; }
.calc-result span { display: block; color: var(--muted); font-size: .82rem; }
.calc-result strong { display: block; margin-top: 4px; font-size: 1.45rem; }
.calc-note { margin: 18px 0 0; color: var(--muted); font-size: .84rem; }

.checklist { display: grid; gap: 10px; margin: 22px 0 0; }
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.check-row input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--violet); }
.check-row label { cursor: pointer; color: #4c4658; }

@media (max-width: 960px) {
  .desktop-nav, .nav-wrap > .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .card-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .decision-band, .calc-grid, .calc-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 30px, 1160px); }
  .brand img { width: 148px; }
  .nav-wrap { min-height: 68px; }
  .mobile-menu nav { top: 68px; }
  .hero { padding: 52px 0 62px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-panel { padding: 22px; }
  .section { padding: 68px 0; }
  .card-grid, .related-grid, .deliverables, .process { grid-template-columns: 1fr; }
  .process { gap: 8px; }
  .process-step:not(:last-child)::after { display: none; }
  .trust-item { padding: 18px 14px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .hub-grid, .comparison-grid, .decision-band, .calc-grid, .calc-results { grid-template-columns: 1fr; }
  .calculator { padding: 22px; }
}

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