:root {
  --ink: #172033;
  --muted: #637083;
  --blue: #123ca6;
  --blue-dark: #0b276f;
  --blue-soft: #edf3ff;
  --orange: #ec6a2b;
  --orange-dark: #ca4e13;
  --orange-soft: #fff0e7;
  --cream: #fffaf4;
  --paper: #ffffff;
  --line: #e4e8ef;
  --green: #16856a;
  --shadow: 0 22px 60px rgba(27, 47, 86, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 232, 239, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  padding: 9px 14px;
  color: #4d586a;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at 88% 12%, rgba(236, 106, 43, 0.16), transparent 27%),
    radial-gradient(circle at 16% 86%, rgba(18, 60, 166, 0.12), transparent 30%),
    linear-gradient(145deg, #fffaf4 0%, #fff 52%, #f3f7ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -170px;
  bottom: -190px;
  border: 46px solid rgba(18, 60, 166, 0.06);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 68px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero .lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: #4d596c;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.8;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(236, 106, 43, 0.24);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-secondary {
  color: var(--blue);
  background: #fff;
  border-color: #cad5ec;
}

.button-secondary:hover {
  background: var(--blue-soft);
}

.microcopy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 490px;
  background: #e8edf3;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  left: -34px;
  bottom: 28px;
  max-width: 245px;
  padding: 17px 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(18, 60, 166, 0.27);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.floating-note span {
  display: block;
  margin-bottom: 3px;
  color: #bcd0ff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--cream);
}

.section-blue {
  color: #fff;
  background: var(--blue-dark);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.4;
}

.section-head p,
.subtle {
  color: var(--muted);
}

.section-blue .section-head p,
.section-blue .subtle {
  color: #cbd6ee;
}

.cards-3,
.cards-2,
.cards-4,
.cards-5 {
  display: grid;
  gap: 18px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-5 {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(24, 45, 86, 0.05);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-index,
.icon-box {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 19px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.card-accent {
  border-top: 5px solid var(--orange);
}

.card-blue {
  border-top: 5px solid var(--blue);
}

.clean-list {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 27px;
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.decision-card {
  position: relative;
  padding: 38px;
}

.decision-card.featured {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 22px 55px rgba(18, 60, 166, 0.22);
}

.decision-card.featured .clean-list li::before {
  color: #ffb182;
}

.decision-card.featured .subtle {
  color: #d7e2ff;
}

.decision-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.featured .decision-label {
  color: #7a330f;
  background: #ffd8c2;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.featured .text-link {
  color: #fff;
}

.self-study-map-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 42px rgba(24, 45, 86, 0.08);
}

.self-study-map-visual {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: #f5ecda;
  border-right: 1px solid #eadfc9;
  text-decoration: none;
}

.self-study-map-visual img {
  width: 100%;
  max-width: 460px;
  max-height: 460px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(73, 59, 47, 0.12);
}

.self-study-map-copy {
  padding: 42px;
}

.self-study-map-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3vw, 36px);
}

.self-study-map-copy p {
  color: var(--muted);
}

.self-study-map-copy .actions {
  margin-top: 24px;
}

.self-study-map-copy .map-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.pull-quote {
  margin: 30px 0 0;
  padding: 23px 26px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 800;
}

.process-grid {
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 70px;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 25px;
  left: 28px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.scope-wrap {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 60px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.scope-item {
  padding: 18px 19px;
  color: #23314b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
}

.scope-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.profile-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile-art {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: linear-gradient(145deg, #fff4e9, #eff5ff);
}

.profile-art img {
  max-height: 430px;
  object-fit: contain;
}

.profile-copy {
  padding: 52px;
}

.profile-copy > .evidence-list:first-child {
  margin-top: 0;
}

.evidence-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.evidence {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.evidence strong {
  display: block;
  margin-bottom: 2px;
}

.evidence span {
  color: var(--muted);
  font-size: 14px;
}

.evidence-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--orange);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}

.boundary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding: 42px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.boundary .clean-list {
  margin-top: 0;
}

.final-cta {
  padding: 0 0 96px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 54px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 65px rgba(11, 39, 111, 0.24);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: -128px;
  right: 15%;
  border: 34px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 45px);
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-bottom: 0;
  color: #d9e3fa;
}

.cta-panel .actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}

.cta-panel .button-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-footer {
  padding: 38px 0;
  color: #6a7587;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* LV5 system diagram */
.system-board {
  position: relative;
  padding: 34px;
  background: #fff;
  border: 1px solid #dce4f2;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.system-board::before {
  content: "資料路徑";
  display: inline-block;
  margin-bottom: 19px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.system-flow {
  display: grid;
  gap: 10px;
}

.system-node {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: #24324b;
  background: #f8faff;
  border: 1px solid #e0e7f3;
  border-radius: 15px;
}

.system-node:not(:last-child)::after {
  content: "↓";
  position: absolute;
}

.node-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
}

.system-node:nth-child(even) .node-icon {
  background: var(--orange);
}

.system-node strong,
.system-node span {
  display: block;
}

.system-node span {
  color: var(--muted);
  font-size: 13px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 62px;
}

.case-stack {
  display: grid;
  gap: 13px;
}

.case-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eadfd1;
  border-radius: var(--radius-sm);
}

.case-line b {
  min-width: 34px;
  color: var(--orange);
}

.layer-card {
  padding: 24px 20px;
}

.layer-card h3 {
  font-size: 18px;
}

.layer-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.layer-card .card-index {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.role-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.role-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
}

.role-card h3 {
  color: #fff;
}

.role-card p {
  color: #cbd6ee;
  font-size: 15px;
}

.role-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: #7a330f;
  background: #ffd8c2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.scene-card {
  overflow: hidden;
  padding: 0;
}

.scene-mark {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: linear-gradient(145deg, var(--blue-soft), #fff7ee);
  font-size: 42px;
  font-weight: 900;
}

.scene-copy {
  padding: 26px;
}

.scene-copy p {
  color: var(--muted);
  font-size: 15px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 48px;
}

.ecosystem-visual {
  margin: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ecosystem-visual img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.ecosystem-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.topic-accordion {
  display: grid;
  gap: 14px;
}

.topic-detail {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(24, 45, 86, 0.05);
}

.topic-detail[open] {
  border-color: #cad7f0;
  box-shadow: 0 16px 38px rgba(24, 45, 86, 0.09);
}

.topic-detail summary {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 17px;
  padding: 18px 58px 18px 18px;
  cursor: pointer;
  list-style: none;
}

.topic-detail summary::-webkit-details-marker {
  display: none;
}

.topic-detail summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  font-weight: 900;
  transform: translateY(-50%);
}

.topic-detail[open] summary::after {
  content: "−";
}

.topic-detail summary img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 16px;
}

.topic-detail summary strong,
.topic-detail summary small {
  display: block;
}

.topic-detail summary strong {
  font-size: 20px;
}

.topic-detail summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.detail-body {
  padding: 0 28px 26px 109px;
  color: #4f5a6d;
  font-size: 15px;
}

.detail-body p {
  margin-bottom: 10px;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 30px;
}

.fit-card {
  padding: 38px;
}

.fit-card.inverse {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.fit-card.inverse .clean-list li::before {
  color: #ffb182;
}

.mini-tool {
  margin-top: 24px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--orange-soft);
  border: 1px solid #ffd5bf;
  border-radius: var(--radius-md);
}

.mini-tool strong,
.mini-tool span {
  display: block;
}

.mini-tool span {
  color: #765240;
  font-size: 14px;
}

.learning-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.path-step {
  position: relative;
  padding: 26px 18px;
  text-align: center;
}

.path-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 38px;
  right: -10px;
  color: var(--orange);
  font-weight: 900;
}

.path-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.path-step strong,
.path-step span {
  display: block;
}

.path-step span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid,
  .scope-wrap,
  .profile-panel,
  .boundary,
  .case-grid,
  .fit-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .self-study-map-panel {
    grid-template-columns: 1fr;
  }

  .self-study-map-visual {
    border-right: 0;
    border-bottom: 1px solid #eadfc9;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .cards-4,
  .cards-5,
  .learning-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-5 .card:last-child,
  .learning-path .path-step:last-child {
    grid-column: 1 / -1;
  }

  .path-step::after {
    display: none;
  }

  .profile-art {
    min-height: 360px;
  }

  .profile-art img {
    max-height: 320px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    gap: 2px;
    font-size: 13px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero {
    padding: 64px 0 68px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-photo,
  .hero-photo img {
    min-height: 360px;
  }

  .floating-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .section {
    padding: 70px 0;
  }

  .cards-2,
  .cards-3,
  .cards-4,
  .cards-5,
  .role-row,
  .scope-grid,
  .learning-path {
    grid-template-columns: 1fr;
  }

  .cards-5 .card:last-child,
  .learning-path .path-step:last-child {
    grid-column: auto;
  }

  .card,
  .decision-card,
  .fit-card {
    padding: 24px;
  }

  .profile-copy,
  .boundary,
  .cta-panel,
  .self-study-map-copy {
    padding: 30px 24px;
  }

  .self-study-map-visual {
    padding: 18px;
  }

  .profile-art {
    min-height: 300px;
    padding: 24px;
  }

  .mini-tool,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-detail summary {
    grid-template-columns: 58px 1fr;
    padding: 15px 48px 15px 15px;
  }

  .topic-detail summary img {
    width: 58px;
    height: 58px;
  }

  .detail-body {
    padding: 0 20px 22px;
  }

  .button {
    width: 100%;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta {
    padding-bottom: 70px;
  }
}
