@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

:root {
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  color: #342d3b;
  background: #fbf7f9;
  font-synthesis: none;
  --ink: #342d3b;
  --muted: #716575;
  --accent: #87536f;
  --accent-bright: #a5688d;
  --border: #e8dfe8;
  --paper: #fffefe;
  --soft: #f6edf4;
  --focus: #87536f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#explore, #workspace, #themes, #method { scroll-margin-top: 95px; }
.shell { min-height: 100vh; }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.accent { color: var(--accent); }

.topbar { position: sticky; top: 0; z-index: 20; min-height: 76px; max-width: 1600px; margin: auto; padding: 10px 5%; display: grid; grid-template-columns: minmax(165px, 1fr) minmax(230px, 315px) auto; align-items: center; gap: 20px; background: #fffafc; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand-mark { font-size: 27px; line-height: 1; color: var(--accent-bright); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name small { margin-top: 4px; color: #948396; font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.topnav { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.topnav a { padding: 9px 0; }
.topnav a:hover, .topnav a:focus-visible { color: var(--accent); }
.top-search { grid-column: 2; grid-row: 1; justify-self: stretch; width: 100%; min-width: 0; height: 42px; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #ddceda; border-radius: 999px; background: #fff; }
.top-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e9d5e5; }
.top-search input { width: 100%; min-width: 0; padding: 0 7px 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.top-search input::placeholder { color: #9b8f9c; }
.search-clear { flex: none; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: #f4eaf1; color: var(--accent); font-size: 18px; line-height: 1; }
.search-submit { align-self: stretch; flex: none; padding: 0 15px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.search-submit:hover { background: #75425e; }
.model-link { border: 1px solid #d8c8d5; border-radius: 999px; padding: 10px 17px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.model-link:hover { background: var(--soft); border-color: #c9afc4; }
.model-link span { padding-left: 10px; color: var(--accent); }
main { max-width: 1600px; margin: auto; }

.intro { min-height: 590px; padding: 58px 5% 54px; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(330px, .87fr); align-items: center; gap: 6%; background: radial-gradient(circle at 71% 39%, #f3dfe9 0, #f9edf3 38%, #fff9fb 79%); }
.intro-body { min-width: 0; }
.intro .eyebrow { margin-bottom: 26px; }
.intro h1 { margin: 0 0 22px; font-size: clamp(38px, 4.25vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -.055em; }
.intro h1 span { color: var(--accent-bright); }
.intro-copy { max-width: 580px; margin: 0 0 29px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary-link { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; padding: 10px 17px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.primary-link:hover { background: #75425e; }
.intro-hint { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.intro-visual { position: relative; isolation: isolate; min-height: 490px; height: min(38vw, 540px); overflow: hidden; display: flex; justify-content: center; align-items: flex-end; background: #fffafc; border-radius: 46% 46% 18px 18px; box-shadow: 0 22px 60px #8d658022; }
.visual-halo { position: absolute; left: 7%; top: 4%; width: 86%; aspect-ratio: 1; border-radius: 50%; background: #efd9e7; }
.intro-visual img { position: relative; z-index: 1; flex: none; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent); mask-composite: intersect; }
.visual-label { position: absolute; z-index: 2; right: 12px; bottom: 11px; padding: 6px 9px; color: var(--muted); background: #fffdfd; font-size: 10px; }

.example-section { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); align-items: center; gap: 8%; padding: 80px 5%; background: #fffafd; }
.example-lead .eyebrow { margin-bottom: 15px; }
.example-lead h2 { margin: 0 0 18px; font-size: clamp(31px, 3.2vw, 46px); line-height: 1.25; letter-spacing: -.045em; }
.example-lead p:not(.eyebrow) { max-width: 420px; margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 16px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--accent); font-size: 12px; font-weight: 700; }
.text-link:hover { color: #75425e; }
.example-compare { position: relative; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 19px; border: 1px solid #ecdeea; border-radius: 23px; background: #f6edf4; }
.example-item { min-height: 250px; padding: 25px 22px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e9dce6; border-radius: 16px; background: #fffefe; transition: border-color .17s, transform .17s; }
.example-item:hover { border-color: #bf94b0; transform: translateY(-3px); }
.example-item:last-of-type { background: #fdf9fb; }
.example-number { margin-bottom: 28px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.example-item strong { margin-bottom: 8px; font-size: 23px; line-height: 1.3; }
.example-item > span:not(.example-number) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.example-item em { margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; }
.compare-divider { position: absolute; z-index: 1; top: 42%; left: 50%; transform: translate(-50%, -50%); padding: 7px 9px; border: 1px solid #e2cfde; border-radius: 999px; background: #fff; color: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; }
.example-note { grid-column: 1 / -1; margin: 1px 5px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.themes { padding: 64px 5% 72px; background: #fbf7f9; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 33px; line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p { max-width: 390px; margin: 0 0 2px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theme-card { position: relative; min-height: 212px; padding: 28px 32px; overflow: hidden; border-radius: 22px; }
.theme-card::after { content: ''; position: absolute; top: -48px; right: -35px; width: 194px; height: 194px; border-radius: 50%; background: #ffffff6b; }
.theme-card.school { background: #f0e6ef; }
.theme-card.sleep { background: #e8e9f2; }
.theme-index { position: relative; z-index: 1; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.theme-card h3 { position: relative; z-index: 1; margin: 19px 0 7px; font-size: 29px; letter-spacing: -.04em; }
.theme-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 13px; }
.theme-status { position: relative; z-index: 1; display: inline-block; margin-top: 19px; padding: 5px 9px; border: 1px solid #cbbdca; border-radius: 999px; color: #66576a; font-size: 10px; }

.method { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr); gap: 8%; padding: 77px 5%; background: #f4eaf1; }
.method-intro .eyebrow { margin-bottom: 15px; }
.method-intro h2 { margin: 0 0 18px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.25; letter-spacing: -.045em; }
.method-intro > p:not(.eyebrow) { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.method-steps { border-top: 1px solid #d9cbd6; }
.method-steps > div { display: grid; grid-template-columns: 42px minmax(100px, .55fr) minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 25px 0; border-bottom: 1px solid #d9cbd6; }
.method-steps span { color: var(--accent); font-size: 12px; font-weight: 700; }
.method-steps h3 { margin: 0; font-size: 17px; }
.method-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 42px; padding: 55px 5% 88px; background: #fffafd; border-top: 1px solid var(--border); }
.sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 24px; padding-right: 24px; border-right: 1px solid var(--border); }
.sidebar-sticky > .eyebrow { margin-bottom: 17px; }
.category-nav { display: grid; gap: 4px; }
.category-button { width: 100%; min-height: 39px; padding: 8px 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
.category-button:hover { background: #f8eff6; color: var(--ink); }
.category-button.active { color: var(--accent); background: #f2e6f0; font-weight: 700; }
.category-button small { color: inherit; font-size: 11px; opacity: .72; }
.sidebar-rule { height: 1px; background: var(--border); margin: 24px 0; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.material-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.material-chip { padding: 7px 10px; border: 1px solid #e4dce5; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.material-chip:hover { border-color: #b995af; color: var(--accent); }
.material-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.sidebar-bottom { display: flex; gap: 10px; align-items: start; margin-top: 33px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.7; }
.sidebar-bottom p { margin: 0; }
.tiny-symbol { color: var(--accent-bright); font-size: 17px; }
.workspace-main { min-width: 0; }
.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.result-heading .eyebrow { margin-bottom: 7px; }
.result-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.result-help { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 15px; margin: 18px 0 18px; }
.filter-pill { padding: 5px 9px; border-radius: 999px; background: #f4e7f0; color: var(--accent); font-size: 11px; }
.content-grid { display: grid; grid-template-columns: minmax(245px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.card-list { min-width: 0; max-height: 850px; overflow: auto; display: grid; align-content: start; gap: 9px; padding-right: 3px; scrollbar-color: #d5bdd0 transparent; }
.item-card { width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); text-align: left; transition: border-color .17s, box-shadow .17s, transform .17s; }
.item-card:hover { border-color: #c49db8; box-shadow: 0 10px 24px #68465b12; transform: translateY(-2px); }
.item-card.selected { border-color: #b77b9f; background: #fffbfe; box-shadow: inset 3px 0 var(--accent-bright), 0 8px 22px #68465b10; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.item-category { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.item-arrow { color: var(--accent-bright); font-size: 19px; }
.item-title { display: block; margin-bottom: 5px; color: var(--ink); font-size: 16px; font-weight: 700; }
.item-subtitle { display: block; overflow: hidden; color: #948596; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.mini-tag { padding: 4px 7px; border-radius: 999px; background: #f7eef5; color: #6e5b6d; font-size: 10px; }
.detail { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 28px #60445a0b; }
.detail-top { padding: 26px 28px 22px; }
.detail-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.draft-badge { padding: 6px 9px; border-radius: 999px; color: #715f70; background: #f5edf3; font-size: 10px; white-space: nowrap; }
.ai-approval-badge { display: inline-block; margin-left: 7px; padding: 3px 7px; border-radius: 999px; color: #285a40; background: #eaf5ee; font-size: 10px; font-weight: 700; white-space: nowrap; }
.detail h3 { margin: 0 0 5px; font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.detail-subtitle { margin: 0; color: #9a8e9b; font-size: 12px; }
.detail-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag-button { padding: 6px 9px; border: 1px solid #e7dce5; border-radius: 999px; background: #fdf8fc; color: var(--accent); font-size: 11px; }
.tag-button:hover { background: #f2e5ef; }
.material-compare { padding: 18px 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fdf9fc; }
.compare-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.compare-heading strong { font-size: 12px; }
.compare-heading span { color: var(--muted); font-size: 11px; }
.variant-row { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-button { padding: 7px 10px; border: 1px solid #e3d8e1; border-radius: 7px; background: #fff; color: var(--muted); font-size: 11px; }
.variant-button:hover { border-color: #b995af; color: var(--accent); }
.variant-button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.slot-section { padding: 22px 28px 25px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.section-header h4 { margin: 0; font-size: 13px; }
.section-header span { color: var(--muted); font-size: 11px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.image-slot { min-width: 0; aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #dccfdb; border-radius: 9px; background: #faf4f9; color: #897888; }
.slot-index { font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.slot-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #d8c4d4; border-radius: 8px; font-size: 20px; line-height: 1; }
.slot-status { font-size: 11px; }
.image-slot.ready { position: relative; display: block; margin: 0; overflow: hidden; border: 0; background: #f0e9ef; }
.image-slot.ready img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-slot.ready figcaption { position: absolute; bottom: 6px; left: 6px; padding: 4px 6px; border-radius: 4px; color: #fff; background: #342d3bd9; font-size: 10px; }
.slot-caption { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.prompt-section { padding: 20px 28px 27px; border-top: 1px solid var(--border); }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.prompt-heading h4 { margin: 0; font-size: 13px; }
.copy-button { padding: 8px 12px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.copy-button:hover { background: #75425e; }
.prompt-box { max-height: 190px; margin: 0; padding: 15px; overflow: auto; overflow-wrap: anywhere; border-radius: 8px; background: #f8f3f7; color: #5e5260; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.prompt-caveat { margin: 10px 0 0; color: #805c71; font-size: 11px; line-height: 1.65; }
.empty { padding: 34px 19px; border: 1px dashed #d8c9d6; border-radius: 14px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.detail-empty { min-height: 410px; display: grid; place-items: center; padding: 25px; color: var(--muted); font-size: 13px; text-align: center; }
.footer { max-width: 1600px; margin: auto; padding: 23px 5%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; border-top: 1px solid var(--border); background: #fbf7f9; color: var(--muted); font-size: 11px; }
.footer strong { color: var(--ink); }

.model-dialog { width: min(520px, calc(100vw - 30px)); padding: 27px; border: 1px solid var(--border); border-radius: 17px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px #30213566; }
.model-dialog::backdrop { background: #211a2a9c; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head .eyebrow { margin-bottom: 7px; }
.dialog-head h2 { margin: 0 0 18px; font-size: 25px; }
.icon-button { width: 33px; height: 33px; border: 0; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 21px; line-height: 1; }
.reference-frame { min-height: 148px; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #d8c6d5; border-radius: 10px; background: #fbf4f9; color: var(--ink); text-align: center; }
.reference-icon { margin-bottom: 8px; color: var(--accent-bright); font-size: 31px; }
.reference-frame strong { font-size: 14px; }
.reference-frame p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.model-facts { margin: 15px 0 0; }
.model-facts div { display: grid; grid-template-columns: 98px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.model-facts dt { color: var(--muted); }
.model-facts dd { margin: 0; }
.dialog-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: minmax(150px, 1fr) minmax(210px, 260px) auto; gap: 16px; }
  .topnav { gap: 14px; font-size: 12px; }
  .intro { grid-template-columns: minmax(0, 1fr) 40%; min-height: 540px; gap: 3%; }
  .intro h1 { font-size: clamp(34px, 4.4vw, 53px); }
  .intro-visual { min-height: 420px; }
  .workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 23px; }
  .content-grid { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 13px; }
  .detail-top, .material-compare, .slot-section, .prompt-section { padding-left: 20px; padding-right: 20px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  #explore, #workspace, #themes, #method { scroll-margin-top: 128px; }
  .topbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; padding: 10px 4% 7px; }
  .topnav { grid-column: 1 / -1; grid-row: 2; gap: 22px; overflow-x: auto; font-size: 12px; }
  .top-search { grid-column: 2; grid-row: 1; justify-self: end; width: min(100%, 310px); }
  .intro { padding: 48px 4%; }
  .example-section { grid-template-columns: 1fr; gap: 28px; padding: 58px 4%; }
  .example-lead p:not(.eyebrow) { max-width: 610px; }
  .themes { padding: 48px 4% 55px; }
  .method { grid-template-columns: 1fr; gap: 30px; padding: 58px 4%; }
  .workspace { display: block; padding: 38px 4% 70px; }
  .sidebar-sticky { position: static; padding: 0; border: 0; }
  .sidebar-sticky > .eyebrow, .sidebar-rule, .sidebar-bottom { display: none; }
  .category-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
  .category-button { flex: none; width: auto; border: 1px solid var(--border); white-space: nowrap; }
  .sidebar-heading { margin-top: 12px; }
  .material-nav { max-height: 82px; overflow: auto; margin-bottom: 26px; }
}
@media (max-width: 680px) {
  .topbar { padding: 8px 5% 6px; gap: 5px 10px; }
  .brand { font-size: 16px; }
  .brand-mark { font-size: 22px; }
  .topnav { grid-column: 1 / -1; grid-row: 3; gap: 18px; font-size: 11px; }
  .top-search { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; height: 38px; }
  .top-search input { padding-left: 8px; font-size: 11px; }
  .search-submit { padding: 0 10px; font-size: 10px; }
  .model-link { padding: 8px 10px; font-size: 11px; }
  .model-link span { padding-left: 3px; }
  .intro { display: flex; flex-direction: column; align-items: stretch; gap: 25px; min-height: 0; padding: 34px 5% 25px; }
  .intro .eyebrow { margin-bottom: 15px; }
  .intro h1 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 15px; }
  .intro-copy { font-size: 13px; margin-bottom: 20px; }
  .intro-hint { margin-top: 14px; }
  .intro-visual { width: 100%; height: 350px; min-height: 0; }
  .visual-halo { width: 77%; left: 11.5%; }
  .example-section { padding: 52px 5%; }
  .example-lead h2 { font-size: 32px; }
  .example-compare { grid-template-columns: 1fr; padding: 13px; }
  .example-item { min-height: 190px; padding: 20px; }
  .example-number { margin-bottom: 16px; }
  .compare-divider { position: static; justify-self: center; transform: none; }
  .example-note { grid-column: 1; }
  .themes { padding: 42px 5%; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > p { margin-top: 9px; font-size: 12px; }
  .theme-grid { grid-template-columns: 1fr; gap: 10px; }
  .theme-card { min-height: 156px; padding: 22px; }
  .theme-card h3 { margin-top: 14px; font-size: 25px; }
  .theme-status { margin-top: 11px; }
  .method { padding: 52px 5%; }
  .method-steps > div { grid-template-columns: 30px 1fr; gap: 5px 10px; padding: 18px 0; }
  .method-steps p { grid-column: 2; }
  .workspace { padding: 35px 5% 55px; }
  .result-heading h2 { font-size: 24px; }
  .result-help { display: none; }
  .content-grid { display: block; }
  .card-list { max-height: 440px; margin-bottom: 15px; padding-right: 5px; }
  .detail h3 { font-size: 23px; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .detail-top, .material-compare, .slot-section, .prompt-section { padding-left: 17px; padding-right: 17px; }
  .image-slot .slot-status { font-size: 10px; }
  .image-slot .slot-icon { width: 23px; height: 23px; font-size: 15px; }
}
@media (max-width: 380px) {
  .brand-name small { font-size: 7px; }
  .intro h1 { font-size: 28px; }
  .top-search { width: 100%; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-facts div { grid-template-columns: 84px 1fr; }
}
.topnav [aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.page-intro { padding: 40px 5% 28px; }
.generation-basics{padding:56px 5%;background:var(--paper);border-bottom:1px solid var(--border)}
.generation-basics h2{font-size:clamp(25px,3vw,36px);margin:0 0 20px;line-height:1.35}.basics-lead{max-width:800px;font-size:15px;color:var(--muted);line-height:1.9}.generation-flow{list-style:none;padding:0;margin:28px 0 40px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;counter-reset:flow}.generation-flow li{position:relative;padding-top:14px;border-top:2px solid var(--accent)}.generation-flow strong{display:block;font-size:16px}.generation-flow span{display:block;color:var(--muted);font-size:13px;line-height:1.8;margin-top:8px}.generation-basics h3{font-size:21px;margin:0 0 20px}.variable-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 40px;margin:0}.variable-list div{padding-left:16px;border-left:2px solid var(--border)}.variable-list dt{font-size:14px;font-weight:700}.variable-list dd{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.85}.consistency-note{background:var(--soft);padding:20px;margin:32px 0 14px;font-size:13px;line-height:1.85}.source-note{font-size:11px;color:var(--muted);line-height:1.8}.source-note a{text-decoration:underline}
@media(max-width:680px){.generation-basics{padding:36px 5%}.generation-flow{grid-template-columns:1fr;gap:18px;margin-bottom:30px}.variable-list{grid-template-columns:1fr;gap:20px}}
.page-intro h1 { margin: 8px 0 14px; font-size: clamp(28px, 3vw, 40px); }
.page-intro p { color: var(--muted); line-height: 1.8; max-width: 760px; }
.page-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 36px 5% 64px; }
.page-links > a, .page-links > article { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); }
.page-links > a:hover { border-color: var(--accent); background: var(--soft); }
.page-links span { color: var(--accent); font-size: 11px; }
.page-links h2 { margin: 12px 0; font-size: 26px; }
.page-links p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.image-viewer { min-width: 0; }
.main-image { margin: 0; }
.main-image-frame { display: flex; align-items: center; justify-content: center; height: clamp(320px, 42vw, 520px); border-radius: 12px; background: var(--soft); overflow: hidden; }
.main-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.main-image-empty { display: grid; gap: 10px; text-align: center; color: var(--muted); padding: 20px; font-size: 13px; }
.main-image figcaption { font-size: 12px; color: var(--muted); padding: 12px 0; overflow-wrap: anywhere; }
.image-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 4px; }
.image-thumbnail { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--paper); color: var(--ink); text-align: left; }
.image-thumbnail[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 1px var(--accent); }
.image-thumbnail img, .thumb-empty { width: 100%; height: 76px; object-fit: contain; background: var(--soft); border-radius: 5px; }
.thumb-empty { display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.image-thumbnail strong { font-size: 11px; }
.image-thumbnail small { font-size: 10px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .page-links { grid-template-columns: 1fr; gap: 12px; }
  .page-links > a, .page-links > article { padding: 22px; }
  .image-thumbnails { grid-template-columns: repeat(6, minmax(75px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .item-card, .example-item { transition: none; }
  .item-card:hover, .example-item:hover { transform: none; }
}

@media (max-width: 680px) { .footer { display: grid; grid-template-columns: 1fr; gap: 8px; } }

/* GENERATED SHARED HEADER */
/* Shared header: navigation and compact search remain on the same row. */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 240px;
  align-items: center;
  justify-content: normal;
  gap: 28px;
  min-height: 76px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 5%;
}
.topbar .brand { grid-column: 1; grid-row: 1; }
.topbar nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: 13px;
}
.topbar nav a { flex: none; padding: 9px 0; font-size: inherit; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar :is(.top-search, .searchbox) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 100%;
  min-width: 0;
  max-width: 240px;
  margin: 0;
  height: 42px;
  order: initial;
}
@media (max-width: 1000px) {
  .topbar { grid-template-columns: minmax(0, 1fr) 220px; gap: 8px 20px; padding: 10px 5% 8px; }
  .topbar .brand { grid-column: 1 / -1; grid-row: 1; }
  .topbar nav { grid-column: 1; grid-row: 2; justify-self: stretch; width: 100%; gap: 18px; font-size: 12px; }
  .topbar :is(.top-search, .searchbox) { grid-column: 2; grid-row: 2; max-width: 220px; }
}
@media (max-width: 560px) {
  .topbar { grid-template-columns: minmax(0, 1fr) 148px; gap: 6px 12px; }
  .topbar .brand { font-size: 16px; }
  .topbar nav { gap: 14px; font-size: 11px; }
  .topbar :is(.top-search, .searchbox) { height: 38px; max-width: 148px; }
  .topbar :is(.top-search, .searchbox) input { font-size: 11px; padding-left: 8px; }
  .topbar :is(.top-search, .searchbox) button { height: 28px; padding: 0 9px; }
  .topbar .search-clear { width: 24px; padding: 0; }
}
