/* 智解家季度策略報告：沿用造山的藍白色彩與閱讀卡片。 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --border: #e2e8f0;
  --divider: #f1f5f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 18px; }
strong { font-weight: 650; }
.container { width: 100%; max-width: 1040px; margin: auto; padding: 36px 32px 64px; }
.header { text-align: center; padding-bottom: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.header .label { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--accent-light); color: #1d4ed8; font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.header h1 { margin: 14px 0 8px; font-size: 36px; line-height: 1.3; letter-spacing: -1px; }
.header .subtitle { color: var(--text-secondary); font-size: 17px; margin: 0; }
.jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-bottom: 28px; font-size: 13px; }
.jump-nav a { padding: 8px 0; text-decoration: none; }
.section { margin-bottom: 56px; scroll-margin-top: 24px; }
.section h2 { margin: 0 0 24px; font-size: 26px; line-height: 1.5; letter-spacing: -.4px; }
.section h3 { margin: 30px 0 14px; font-size: 20px; line-height: 1.6; }
.section > p { max-width: 880px; }
.exec-summary { padding: 28px 32px; color: white; border-radius: 16px; background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.exec-summary h2 { font-size: 16px; margin-bottom: 14px; color: #dbeafe; letter-spacing: .5px; }
.exec-summary ul { margin: 0; padding: 0; list-style: none; }
.exec-summary li { padding: 10px 0; font-size: 17px; line-height: 1.85; }
.exec-summary li + li { border-top: 1px solid #ffffff26; }
.exec-summary strong { color: white; }
sup { font-size: 10px; margin-left: 3px; white-space: nowrap; }
sup a { text-decoration: none; }
.table-card { margin: 22px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.8; }
caption { text-align: left; padding: 14px 18px; font-size: 13px; font-weight: 600; color: #1d4ed8; background: #eff6ff; }
th, td { text-align: left; vertical-align: top; padding: 18px; overflow-wrap: anywhere; }
thead th { font-size: 12px; color: var(--text-secondary); background: #f8fafc; border-bottom: 1px solid var(--border); }
tbody tr + tr { border-top: 1px solid var(--border); }
tbody th, td { border-right: 1px solid var(--border); }
tr > :last-child { border-right: 0; }
tbody th { color: #1e40af; font-size: 16px; background: #f8faff; }
.strategy-matrix th:first-child { width: 13%; }
.strategy-matrix th:nth-child(2) { width: 23%; }
.strategy-matrix th:nth-child(3) { width: 26%; }
.strategy-matrix th:nth-child(4) { width: 38%; }
.strategy-matrix td:last-child strong { color: #1e40af; }
.matrix-note { font-size: 13px; line-height: 1.85; color: var(--text-secondary); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 20px 0 32px; }
.pillar-grid li { border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; padding: 22px; background: var(--surface); font-size: 14px; }
.pillar-grid strong { display: block; margin-bottom: 10px; color: #1e40af; font-size: 17px; }
.student-path { border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 18px 20px; background: #eff6ff; font-size: 15px; }
.prototype-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin: 24px 0 16px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.shot figcaption strong { display: block; color: var(--text); font-size: 14px; }
.prototype-note { font-size: 13px; color: var(--text-secondary); }
.steps { padding-left: 24px; margin: 16px 0 24px; }
.steps li { margin-bottom: 18px; padding-left: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.acceptance-matrix th:first-child { width: 26%; }
.acceptance-matrix tbody th { font-size: 15px; }
.roadmap-matrix th:first-child { width: 24%; }
.roadmap-matrix tbody th { font-size: 15px; }
.sources { border-top: 1px solid var(--border); padding: 22px 0; color: var(--text-secondary); font-size: 13px; }
.sources summary { width: fit-content; cursor: pointer; padding: 4px 0; font-weight: 600; color: var(--text); }
.sources ul { padding-left: 20px; margin-top: 18px; }
.sources li { margin: 12px 0; overflow-wrap: anywhere; }
.sources [id] { scroll-margin-top: 24px; }
.footer { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 12px; color: var(--text-secondary); }
@media (max-width: 700px) {
  body { font-size: 15px; }
  .container { padding: 24px 20px 40px; }
  .header { padding-bottom: 20px; margin-bottom: 12px; }
  .header h1 { font-size: 30px; }
  .header .subtitle { font-size: 15px; }
  .jump-nav { gap: 0 20px; margin-bottom: 20px; font-size: 12px; }
  .section { margin-bottom: 40px; }
  .section h2 { font-size: 22px; margin-bottom: 20px; }
  .section h3 { font-size: 18px; margin-top: 26px; }
  .exec-summary { padding: 22px; }
  .exec-summary h2 { font-size: 15px; margin-bottom: 8px; }
  .exec-summary li { font-size: 15px; padding: 12px 0; }
  .table-card { overflow: visible; background: transparent; border: 0; border-radius: 0; }
  table, tbody { display: block; width: 100%; }
  caption { display: block; padding: 0 0 12px; background: transparent; }
  thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; background: white; overflow: hidden; }
  tbody tr + tr { border-top: 1px solid var(--border); }
  tbody th, td { display: block; border: 0; width: 100% !important; padding: 14px 18px; }
  tbody th { font-size: 17px; border-bottom: 1px solid var(--border); }
  td + td { border-top: 1px solid var(--divider); }
  td::before { display: block; content: attr(data-label); color: var(--text-secondary); font-size: 11px; font-weight: 600; margin-bottom: 6px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 12px; }
  .pillar-grid li { padding: 20px; }
  .pillar-grid strong { font-size: 16px; }
  .student-path { padding: 16px; }
  .prototype-shots { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .acceptance-matrix tbody th { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.strategy-flow { margin: 20px 0 28px; }
.strategy-flow-intro { color: var(--text); }
.strategy-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.strategy-flow-legend li { display: flex; align-items: center; gap: 8px; }
.flow-swatch { width: 14px; height: 14px; border: 2px solid; border-radius: 3px; flex: 0 0 auto; }
.flow-product { border-color: #2563eb; background: #eff6ff; }
.flow-teacher { border-color: #7c3aed; background: #f5f3ff; }
.flow-market { border-color: #047857; background: #ecfdf5; }
.strategy-flow-key { display: flex; flex-wrap: wrap; gap: 4px 24px; color: #475569; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.strategy-flow-key > span { display: flex; align-items: center; gap: 8px; }
.strategy-flow-key i { display: inline-block; width: 24px; border-top: 2px solid #64748b; flex: 0 0 auto; }
.strategy-flow-key .flow-link-dashed { border-top-style: dashed; }
.strategy-flow picture, .strategy-flow img { display: block; width: 100%; height: auto; }
.strategy-flow figcaption { margin-top: 16px; color: #475569; font-size: 14px; line-height: 1.8; }
.strategy-flow figcaption p { margin-bottom: 8px; }
@media (max-width: 700px) {
  .strategy-flow { margin: 20px 0 24px; }
  .strategy-flow-legend { gap: 8px 18px; font-size: 14px; }
  .strategy-flow-key { display: grid; gap: 6px; margin-bottom: 16px; }
}
.strategy-flow img { max-width: 720px; margin: 0 auto; }
.flow-endstates { margin: 0 0 24px; padding-left: 20px; font-size: 15px; line-height: 1.8; }
.flow-endstates li { margin-bottom: 6px; }
.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-hint { display: none; margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); text-align: center; }
@media (max-width: 700px) {
  .flow-scroll img { width: 620px; max-width: none; }
  .flow-hint { display: block; }
}
.strategy-flow .strategy-flow-legend { margin: 12px 0 0; justify-content: center; }
