:root {
  --ink: #172133;
  --muted: #5e6877;
  --line: #d9dee5;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --navy: #22344f;
  --blue: #246b8e;
  --teal: #198b87;
  --coral: #e2684a;
  --gold: #e4b94f;
  --green: #3f7c59;
  --purple: #755f91;
  --red: #b64c4c;
  --sidebar: 230px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; }
button { letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 26px 18px;
  background: #172133;
  color: #fff;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand-block { display: grid; gap: 5px; padding: 0 8px 24px; border-bottom: 1px solid #3a4556; }
.brand-block strong { font-size: 19px; }
.brand-block > span:last-child { color: #aeb8c7; font-size: 13px; }
.eyebrow, .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--coral); }
.eyebrow.light { color: #fff0c2; }
.sidebar nav { display: grid; gap: 3px; padding: 22px 0; }
.sidebar nav a { padding: 10px 12px; color: #bfc8d5; text-decoration: none; border-left: 3px solid transparent; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: #243148; border-left-color: var(--gold); }
.sidebar-note { margin-top: auto; border-top: 1px solid #3a4556; padding: 18px 8px 0; }
.sidebar-note span { color: var(--gold); font-size: 12px; font-weight: 700; }
.sidebar-note p { color: #c5ccd7; line-height: 1.6; font-size: 13px; margin: 8px 0 0; }

main { margin-left: var(--sidebar); min-width: 0; }
.masthead { min-height: 580px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.masthead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.masthead-shade { position: absolute; inset: 0; background: rgba(16, 24, 38, .58); }
.masthead-copy { position: relative; z-index: 1; max-width: 990px; padding: 70px 64px 56px; color: #fff; }
.masthead h1 { margin: 10px 0 16px; font-size: clamp(38px, 5vw, 67px); line-height: 1.14; font-weight: 800; }
.masthead p { max-width: 720px; margin: 0; line-height: 1.8; color: #edf1f5; font-size: 18px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.metric-row span { padding: 9px 13px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); font-size: 13px; }
.metric-row b { font-size: 18px; margin-right: 4px; }

.section { padding: 76px 64px; scroll-margin-top: 16px; }
.section.band { background: var(--soft); }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 24px; }
.section-heading h2 { margin: 3px 0 0; font-size: 32px; line-height: 1.25; }
.section-no { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: var(--blue); color: #fff; font-weight: 800; }
.section-no.coral { background: var(--coral); }
.section-no.gold { background: var(--gold); color: var(--ink); }
.section-no.green { background: var(--green); }
.section-no.purple { background: var(--purple); }
.section-no.red { background: var(--red); }
.section-no.blue { background: var(--blue); }
.section-no.dark { background: var(--ink); }
.section-no.outline { color: var(--green); background: #fff; border: 2px solid var(--green); }
.kicker { margin: 0; color: var(--muted); }
.lead { max-width: 880px; font-size: 20px; line-height: 1.8; color: #344052; }

.outcome-flow { margin-top: 34px; display: grid; grid-template-columns: minmax(280px, 1fr) 40px minmax(340px, 1.15fr); align-items: center; gap: 20px; }
.input-stack { display: grid; gap: 10px; }
.media-chip { padding: 16px 18px; border-left: 6px solid var(--blue); background: #eef5f8; display: grid; grid-template-columns: 80px 1fr; gap: 3px 14px; }
.media-chip.audio { border-color: var(--coral); background: #fff1ed; }
.media-chip.text { border-color: var(--gold); background: #fff8df; }
.media-chip span { grid-row: 1 / 3; color: var(--muted); font-size: 12px; font-weight: 700; align-self: center; }
.media-chip strong { font-size: 17px; }
.media-chip small { color: var(--muted); }
.flow-arrow { text-align: center; font-size: 30px; color: var(--muted); }
.output-panel { background: var(--navy); color: #fff; padding: 28px; border-top: 6px solid var(--teal); }
.output-panel > span { color: #95dad7; font-size: 12px; font-weight: 700; }
.output-panel h3 { font-size: 25px; margin: 6px 0 16px; }
.output-panel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #e6ebf1; }
.principle-band { margin-top: 24px; padding: 18px 20px; border: 1px solid #e6ca7b; background: #fff8df; line-height: 1.7; }

.decision-statement { border-left: 7px solid var(--coral); background: #fff; padding: 20px 24px; margin-bottom: 28px; }
.decision-statement p { margin: 0 0 6px; color: var(--muted); }
.decision-statement strong { font-size: 20px; line-height: 1.6; }
.comparison { border: 1px solid var(--line); background: #fff; }
.comparison-row { display: grid; grid-template-columns: 180px 1fr 1.25fr; border-bottom: 1px solid var(--line); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row > * { padding: 15px 18px; border-right: 1px solid var(--line); line-height: 1.55; }
.comparison-row > *:last-child { border-right: 0; }
.comparison-row.header { background: var(--navy); color: #fff; font-weight: 700; }
.comparison-row.header .selected { background: var(--teal); }
.comparison-row b { background: #eef1f5; }
.comparison-row span:last-child { background: #f1f8f7; }
.equation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.equation-grid div { border: 1px solid var(--line); padding: 18px; display: grid; gap: 6px; background: #fff; }
.equation-grid .chosen { border-color: var(--teal); border-top-width: 5px; }
.equation-grid span { color: var(--muted); font-size: 13px; }

.workflow-map { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr; align-items: center; gap: 6px; }
.workflow-map i { font-style: normal; color: #8490a0; text-align: center; }
.stage { min-height: 115px; padding: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; align-content: center; gap: 5px; text-align: left; border-radius: 0; }
.stage:hover, .stage.active { border-color: var(--blue); box-shadow: inset 0 -5px var(--blue); }
.stage.work:hover, .stage.work.active { border-color: var(--purple); box-shadow: inset 0 -5px var(--purple); }
.stage.mcp:hover, .stage.mcp.active { border-color: var(--coral); box-shadow: inset 0 -5px var(--coral); }
.stage.canva:hover, .stage.canva.active { border-color: var(--teal); box-shadow: inset 0 -5px var(--teal); }
.stage.human:hover, .stage.human.active { border-color: var(--green); box-shadow: inset 0 -5px var(--green); }
.stage small, .stage span { color: var(--muted); }
.stage strong { font-size: 16px; }
.stage-detail { min-height: 135px; margin-top: 18px; padding: 24px 26px; background: var(--navy); color: #fff; }
.stage-detail h3 { margin: 0 0 8px; font-size: 22px; }
.stage-detail p { margin: 0; line-height: 1.75; color: #e2e7ed; }
.stage-detail ul { margin: 12px 0 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 24px; color: #cdd6e1; }
.architecture-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.architecture-note div { padding: 18px; border-top: 4px solid var(--gold); background: #f8f9fa; }
.architecture-note span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.architecture-note strong { line-height: 1.55; }

.role-tabs { display: flex; border-bottom: 1px solid var(--line); }
.role-tabs button { border: 0; border-bottom: 4px solid transparent; padding: 13px 20px; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
.role-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.role-panel { min-height: 285px; background: #fff; padding: 28px; border: 1px solid var(--line); border-top: 0; }
.role-panel h3 { margin: 0 0 18px; font-size: 23px; }
.responsibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.responsibility-grid div { padding: 16px; background: var(--soft); border-left: 4px solid var(--blue); }
.responsibility-grid b { display: block; margin-bottom: 5px; }
.responsibility-grid span { color: var(--muted); line-height: 1.55; }
.three-layer { margin-top: 28px; border: 1px solid var(--line); }
.layer-row { display: grid; grid-template-columns: 150px 1fr; min-height: 58px; align-items: center; border-bottom: 1px solid var(--line); }
.layer-row:last-child { border-bottom: 0; }
.layer-row b { height: 100%; display: grid; place-items: center; color: #fff; background: var(--coral); }
.photo-layer b { background: var(--teal); }
.subtitle-layer b { background: var(--gold); color: var(--ink); }
.layer-row span { padding: 12px 20px; }

.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-bar > span { color: var(--muted); margin-right: 5px; }
.filter { padding: 7px 13px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.process-list { border-top: 1px solid var(--line); }
.process-step { display: grid; grid-template-columns: 65px 1fr; padding: 26px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.process-step.hidden { display: none; }
.step-index { color: #9aa3af; font-weight: 800; font-size: 20px; padding-top: 2px; }
.step-main h3 { margin: 8px 0 7px; font-size: 21px; }
.step-main > p { margin: 0; color: var(--muted); line-height: 1.7; }
.step-meta { display: flex; gap: 6px; }
.tag { padding: 3px 7px; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); }
.work-tag { background: var(--purple); }
.mcp-tag { background: var(--coral); }
.human-tag { background: var(--green); }
.detail-toggle { margin-top: 13px; border: 0; padding: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.step-detail { display: none; margin-top: 14px; padding: 15px 18px; background: var(--soft); line-height: 1.65; }
.process-step.open .step-detail { display: block; }

.problem-layout { display: grid; grid-template-columns: minmax(380px, 1.15fr) 1fr; gap: 28px; align-items: start; }
.editor-shot { margin: 0; border: 1px solid var(--line); background: #fff; }
.editor-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.editor-shot figcaption, .report-preview figcaption { padding: 13px 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.problem-list { display: grid; border-top: 1px solid var(--line); }
.problem-list article { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.problem-list article > span { color: var(--coral); font-weight: 800; }
.problem-list h3 { margin: 0 0 4px; font-size: 17px; }
.problem-list p { margin: 0; color: var(--muted); line-height: 1.55; }
.lesson-callout { margin-top: 26px; background: #fff3ef; border-left: 7px solid var(--coral); padding: 20px 24px; }
.lesson-callout p { margin: 8px 0 0; line-height: 1.7; }

.handoff-grid { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 10px; }
.handoff-grid i { text-align: center; font-style: normal; font-size: 24px; color: var(--muted); }
.handoff-grid article { padding: 22px; border: 1px solid var(--line); border-top: 5px solid var(--blue); min-height: 160px; }
.handoff-grid article:nth-of-type(2) { border-top-color: var(--gold); }
.handoff-grid article:nth-of-type(3) { border-top-color: var(--green); }
.handoff-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.handoff-grid h3 { margin: 8px 0; }
.handoff-grid p { color: var(--muted); line-height: 1.6; margin: 0; }
.english-steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 28px 0 0; list-style: none; counter-reset: step; border: 1px solid var(--line); }
.english-steps li { min-height: 110px; padding: 18px; border-right: 1px solid var(--line); counter-increment: step; }
.english-steps li:last-child { border-right: 0; }
.english-steps li::before { content: counter(step); display: block; color: var(--coral); font-weight: 800; margin-bottom: 5px; }
.english-steps b, .english-steps span { display: block; }
.english-steps span { margin-top: 5px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.warning { margin: 16px 0 0; padding: 15px 18px; background: #fff4dc; border: 1px solid #e7c476; }

.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.artifact { text-decoration: none; padding: 22px; min-height: 145px; border: 1px solid var(--line); background: #fff; display: grid; align-content: start; gap: 6px; }
.artifact:hover { border-color: var(--blue); box-shadow: inset 0 -4px var(--blue); }
.artifact span { font-size: 11px; font-weight: 800; color: var(--coral); }
.artifact strong { font-size: 18px; }
.artifact small { color: var(--muted); line-height: 1.5; }
.srt-drawer { margin-top: 18px; border: 1px solid var(--line); background: #fff; }
.srt-drawer summary { cursor: pointer; padding: 15px 18px; font-weight: 700; }
.srt-drawer pre { margin: 0; padding: 20px; background: #1c2535; color: #eef2f6; overflow-x: auto; line-height: 1.6; }
.report-preview { margin: 24px 0 0; border: 1px solid var(--line); background: #fff; }
.report-preview img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; }

.repeat-section { background: #edf5f1; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.checklist label { background: #fff; border: 1px solid #cddfd4; padding: 13px 15px; cursor: pointer; line-height: 1.5; }
.checklist input { margin-right: 9px; accent-color: var(--green); }
.completion { height: 10px; background: #cedbd3; margin-top: 22px; overflow: hidden; }
.completion span { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
#completion-text { color: var(--muted); font-size: 13px; }
footer { padding: 34px 64px; background: var(--ink); color: #fff; display: flex; gap: 12px; flex-wrap: wrap; }
footer span { color: #bdc6d2; }

@media (max-width: 1100px) {
  :root { --sidebar: 190px; }
  .section, .masthead-copy { padding-left: 38px; padding-right: 38px; }
  .workflow-map { grid-template-columns: repeat(5, 1fr); }
  .workflow-map i { display: none; }
  .problem-layout { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 150px 1fr 1.1fr; }
}

@media (max-width: 780px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 10px 14px; flex-direction: row; align-items: center; overflow-x: auto; }
  .brand-block { min-width: 190px; padding: 0 14px 0 0; border: 0; border-right: 1px solid #3a4556; }
  .brand-block .eyebrow, .brand-block > span:last-child, .sidebar-note { display: none; }
  .sidebar nav { display: flex; padding: 0 0 0 10px; gap: 0; white-space: nowrap; }
  .sidebar nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 10px; font-size: 12px; }
  .sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  main { margin-left: 0; }
  .masthead { min-height: 500px; }
  .masthead-copy, .section { padding-left: 20px; padding-right: 20px; }
  .masthead h1 { font-size: 38px; }
  .metric-row { gap: 7px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-heading h2 { font-size: 26px; }
  .outcome-flow, .equation-grid, .architecture-note, .responsibility-grid, .artifact-grid, .checklist { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .comparison { overflow-x: auto; }
  .comparison-row { min-width: 720px; }
  .workflow-map { grid-template-columns: 1fr; }
  .stage { min-height: 82px; }
  .stage-detail ul { grid-template-columns: 1fr; }
  .role-tabs { overflow-x: auto; }
  .role-tabs button { white-space: nowrap; }
  .layer-row { grid-template-columns: 105px 1fr; }
  .handoff-grid { grid-template-columns: 1fr; }
  .handoff-grid i { transform: rotate(90deg); }
  .english-steps { grid-template-columns: 1fr 1fr; }
  .english-steps li:nth-child(2) { border-right: 0; }
  .english-steps li { border-bottom: 1px solid var(--line); }
  .process-step { grid-template-columns: 48px 1fr; }
  footer { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .brand-block { min-width: 145px; }
  .brand-block strong { font-size: 15px; }
  .masthead { min-height: 470px; }
  .masthead h1 { font-size: 31px; }
  .masthead p { font-size: 16px; }
  .metric-row span { font-size: 11px; }
  .section-heading { align-items: flex-start; }
  .section-no { width: 40px; height: 40px; flex-basis: 40px; }
  .media-chip { grid-template-columns: 65px 1fr; }
  .english-steps { grid-template-columns: 1fr; }
  .english-steps li { border-right: 0; }
  .editor-shot img { aspect-ratio: 4 / 3; }
}

@media print {
  .sidebar, .filter-bar, .detail-toggle, .completion { display: none; }
  main { margin: 0; }
  .masthead { min-height: 430px; }
  .section { padding: 38px 30px; break-inside: avoid; }
  .step-detail { display: block; }
}
