:root {
  --ink: #182326;
  --muted: #657274;
  --paper: #f8f5ee;
  --white: #fffdf8;
  --mist: #e8f1ec;
  --aqua: #208a93;
  --leaf: #5d8a55;
  --coral: #df6f55;
  --gold: #d6a941;
  --violet: #7a6aa8;
  --line: rgba(24, 35, 38, .14);
  --shadow: 0 20px 60px rgba(19, 41, 45, .16);
}

* {
  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", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(248, 245, 238, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--aqua);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 14px;
  color: #39484b;
  font-size: 13px;
}

.desktop-nav a {
  padding: 8px 0;
}

.desktop-nav a:hover {
  color: var(--aqua);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  inset: 76px 14px auto;
  z-index: 19;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--mist);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(36px, 8vw, 90px) clamp(18px, 6vw, 78px) 48px;
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-author {
  display: inline-flex;
  margin: -10px 0 20px;
  color: var(--aqua);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: #38484a;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.stage-tab,
.story-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: var(--white);
  background: var(--aqua);
}

.secondary-action {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 12% 6% 4%;
  z-index: -2;
  content: "";
  background: linear-gradient(145deg, #e7efe9 0%, #f7ddc9 45%, #d8ebef 100%);
  border: 1px solid rgba(24, 35, 38, .08);
  border-radius: 8px;
}

.hero-visual::after {
  position: absolute;
  inset: auto 7% 4%;
  z-index: -1;
  height: 36%;
  content: "";
  background: rgba(255, 253, 248, .7);
  border-radius: 50%;
  filter: blur(28px);
}

.story-preview {
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-story-card,
.story-sample-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-story-card figcaption,
.story-sample-grid figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.turnaround-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.turnaround-preview img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 253, 248, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 6vw, 78px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-strip div {
  padding: 22px;
  background: var(--white);
}

.summary-strip strong {
  display: block;
  color: var(--aqua);
  font-size: 26px;
  line-height: 1.1;
}

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

.section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 78px);
}

.two-column,
.credits {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.body-copy {
  color: #344446;
  font-size: 18px;
}

.theory-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  background: #e9efe9;
}

.theory-card,
.line-card,
.character-card,
.shot-grid article,
.generated-card,
.showcase-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 41, 45, .08);
}

.theory-card {
  padding: 26px;
}

.theory-card span {
  color: var(--gold);
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.route-section {
  background: var(--white);
}

.lines-section {
  background: #f1f5f1;
}

.line-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.line-card {
  display: grid;
  gap: 22px;
  align-content: space-between;
  min-height: 360px;
  padding: clamp(24px, 4vw, 34px);
}

.line-card h3 {
  max-width: 560px;
  font-size: clamp(24px, 3vw, 36px);
}

.line-card p {
  color: #405053;
}

.green-line {
  border-top: 6px solid var(--leaf);
}

.line-facts {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.line-facts li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.line-facts strong {
  color: var(--ink);
}

.line-facts span {
  color: var(--muted);
}

.line-facts.empty span {
  color: #7b8f97;
}

.guide-strip {
  margin: 22px 0 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 41, 45, .08);
}

.guide-strip img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f7f3ea;
}

.guide-strip figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.stage-tab {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.stage-tab.active {
  color: var(--white);
  background: var(--leaf);
}

.stage-panel {
  display: none;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 42px);
  background: #f4f7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stage-panel.active {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: 28px;
}

.stage-copy p {
  color: #425153;
}

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

.station-grid article {
  min-height: 132px;
  padding: 18px;
  background: rgba(255, 253, 248, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.station-grid strong,
.station-grid span {
  display: block;
}

.station-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

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

.character-card {
  display: grid;
  grid-template-rows: 280px auto;
  overflow: hidden;
}

.character-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  background: linear-gradient(180deg, #dcece8, #fff7ea);
}

.character-card div {
  padding: 22px;
}

.role,
.tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.turnaround-board {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 26px;
  align-items: center;
  margin-top: 22px;
  padding: 26px;
  color: var(--white);
  background: #243337;
  border-radius: 8px;
}

.turnaround-board .eyebrow {
  color: #f0c15d;
}

.turnaround-board p {
  color: rgba(255, 253, 248, .78);
}

.turnaround-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.turnaround-slots span {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 18px;
  color: rgba(255, 253, 248, .76);
  text-align: center;
  border: 1px dashed rgba(255, 253, 248, .42);
  border-radius: 8px;
}

.story-images {
  background: #fff7ea;
}

.story-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.story-sample-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-click-stack {
  display: block;
  width: 100%;
  max-width: 860px;
  padding: 10px 0 0;
  margin: 0 auto 2px;
  isolation: isolate;
}

.story-click-stack figure {
  position: relative;
  display: none;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease, visibility .28s ease;
  pointer-events: none;
}

.story-click-stack figure.is-active {
  display: block;
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0) scale(1);
  pointer-events: auto;
  cursor: pointer;
}

.story-click-stack figure.is-active img,
.story-click-stack figure.is-active figcaption {
  cursor: pointer;
}

.story-click-stack figure.is-next {
  z-index: 1;
}

.story-click-stack figure.is-back {
  z-index: 1;
}

.story-click-stack figure.is-active:hover {
  box-shadow: 0 24px 70px rgba(19, 41, 45, .2);
}

.story-click-stack figure:not(.is-active),
.story-click-stack figure:not(.is-active) figcaption {
  display: none;
  visibility: hidden;
}

.story-click-stack img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  background: #fbfaf6;
}

.story-click-stack img.story-v11-focus {
  object-position: center bottom;
}

.story-gallery figure:first-child {
  grid-column: 1 / -1;
}

.story-gallery figcaption {
  display: grid;
  gap: 4px;
}

.story-gallery figcaption strong {
  color: var(--ink);
}

.story-gallery figcaption span {
  color: var(--muted);
}



.flipbook-showcase {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.flipbook-frame {
  width: 100%;
  height: min(78vh, 820px);
  min-height: 560px;
  border: 1px solid var(--line);
  background: #eadcc5;
  box-shadow: 0 24px 70px rgba(19, 41, 45, .16);
}

.flipbook-actions {
  display: flex;
  justify-content: center;
}

.story-video-panel {
  width: min(100%, 860px);
  margin: 28px auto 0;
  display: grid;
  gap: 14px;
}

.story-video-copy {
  display: grid;
  gap: 6px;
}

.story-video-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.story-video-copy p {
  margin: 0;
  color: var(--muted);
}

.story-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #13292d;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(19, 41, 45, .14);
}

.stack-hint {
  margin: -6px 0 22px;
  color: #6a7a7d;
  font-size: 14px;
}

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

.shot-grid article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
}

.shot-grid article::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 132px;
  height: 132px;
  content: "";
  background: rgba(32, 138, 147, .12);
  border-radius: 50%;
}

.shot-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 900;
  background: var(--aqua);
  border-radius: 50%;
}

.prompt-panel {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background: #243337;
  border-radius: 8px;
}

.prompt-panel p {
  margin: 0;
  color: rgba(255, 253, 248, .82);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

.outcomes-section {
  background: #f4f0e7;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.outcome-grid article {
  min-height: 230px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 41, 45, .08);
}

.outcome-grid h3 {
  font-size: 20px;
}

.outcome-grid p {
  color: var(--muted);
}

.planning-section {
  background: #edf3f5;
}

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

.planning-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 41, 45, .08);
}

.planning-card ul,
.flow-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.planning-card li {
  color: #405053;
}

.flow-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.flow-list strong {
  color: var(--aqua);
}

.planning-flow {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 41, 45, .08);
}

.planning-flow li {
  grid-template-columns: 116px 1fr;
  min-height: 68px;
  align-items: center;
}

.prompt-card pre {
  max-height: 260px;
  padding: 16px;
  overflow: auto;
  color: #243337;
  white-space: pre-wrap;
  background: #f5f1e8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

.copy-mini {
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--coral);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sample-route {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.sample-route strong {
  color: var(--aqua);
}

.sample-route span {
  color: #405053;
  font-size: 18px;
  font-weight: 800;
}

.workshop {
  background: #edf3f5;
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.story-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-form label {
  display: grid;
  gap: 8px;
  color: #304245;
  font-size: 14px;
  font-weight: 800;
}

.story-form input,
.story-form select,
.story-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  font: inherit;
}

.story-form textarea {
  resize: vertical;
}

.mood-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mood-chip {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--aqua);
  background: #eef7f4;
  border: 1px solid rgba(32, 138, 147, .22);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mood-chip:hover {
  color: var(--white);
  background: var(--aqua);
}

.generated-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.generated-suite {
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(232, 241, 236, .9));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.generated-card h3 {
  color: var(--aqua);
  font-size: clamp(28px, 4vw, 44px);
}

.generated-route {
  margin-top: 0;
  color: #425154;
  font-size: 18px;
  font-weight: 800;
}

.generated-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.generated-grid section {
  min-height: 150px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.generated-grid p {
  margin: 10px 0 0;
  color: #304245;
}

.generated-grid .wide-result {
  grid-column: 1 / -1;
  min-height: auto;
}

.generated-card p:last-child {
  font-size: 18px;
}

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

.showcase-grid article {
  padding: 24px;
}

.qr-placeholder {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  margin: 8px 0 16px;
  color: var(--ink);
  font-weight: 900;
  background:
    linear-gradient(90deg, var(--ink) 10px, transparent 10px) 0 0 / 28px 28px,
    linear-gradient(var(--ink) 10px, transparent 10px) 0 0 / 28px 28px,
    var(--white);
  border: 10px solid var(--ink);
}

.credits {
  background: #f2eadf;
}

.credit-list {
  display: grid;
  gap: 12px;
}

.credit-list p {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 78px);
  color: rgba(255, 253, 248, .82);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f0c15d;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .two-column,
  .line-layout,
  .stage-panel.active,
  .turnaround-board,
  .workshop-layout,
  .credits {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 480px;
  }

  .summary-strip,
  .theory-band,
  .character-grid,
  .story-sample-grid,
  .outcome-grid,
  .generated-grid,
  .planning-grid,
  .shot-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .mobile-nav {
    inset-top: 70px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .summary-strip,
  .theory-band,
  .line-layout,
  .line-facts li,
  .flow-list li,
  .station-grid,
  .character-grid,
  .story-sample-grid,
  .outcome-grid,
  .field-grid,
  .mood-chip-row,
  .generated-grid,
  .planning-grid,
  .shot-grid,
  .showcase-grid,
  .turnaround-slots {
    grid-template-columns: 1fr;
  }

  .story-gallery figure:first-child {
    grid-column: auto;
  }

  .story-click-stack {
    padding: 0;
  }

  .flipbook-frame {
    height: 72vh;
    min-height: 420px;
  }

  .character-card {
    grid-template-rows: 300px auto;
  }

  .credit-list p,
  .site-footer {
    flex-direction: column;
  }
}
