:root {
  color-scheme: light;
  --ink: #16232a;
  --deep: #142027;
  --deep-raised: #24343d;
  --accent: #61d0df;
  --muted: #4d5a61;
  --paper: #f7f5ef;
  --white: #fffefa;
  --line: #dadbd5;
  --font: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #177c8e; outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--accent); }
svg { display: block; }
h1, h2, p { margin: 0; }
.shell { width: min(100% - 96px, 1240px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: .7rem 1rem; background: var(--accent); border-radius: 6px; }
.site-header, .hero { background: var(--deep); color: #f5f8f5; }
.site-header { border-bottom: 1px solid #ffffff24; }
.header-content { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; }
.site-brand svg { width: 33px; height: 33px; color: var(--accent); flex: none; }
.site-header nav { display: flex; gap: clamp(16px, 3.8vw, 40px); white-space: nowrap; }
.site-header nav a { display: inline-grid; align-items: center; min-height: 44px; text-decoration: none; color: #e3edf0; font-size: .9rem; }
.site-header nav a:hover { color: var(--accent); }
.hero { padding-block: 64px 79px; }
.hero-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 6vw, 87px); }
.hero h1 { font-size: clamp(2.4rem, 5.45vw, 5rem); line-height: 1.06; letter-spacing: -.06em; font-weight: 810; }
.hero-copy p { color: #c7d4d8; margin-top: 20px; line-height: 1.8; font-size: clamp(.94rem, 1.4vw, 1.09rem); max-width: 33ch; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 7px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.button svg, .feature-open svg, .view-toggle svg, .search-field svg, .close-dialog svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: var(--deep); background: var(--accent); }
.button-primary:hover { background: #8ae0eb; }
.button-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.button-outline:hover { border-color: #228090; color: #106371; }
.hero-action { margin-top: 24px; }
.feature { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; width: 100%; min-width: 0; overflow: hidden; background: #1e313c; color: #fff; text-align: left; border: 1px solid #ffffff33; border-radius: 13px; box-shadow: 0 28px 50px #07101893; transition: border-color .2s ease; }
.feature:hover { border-color: var(--accent); }
.feature-image { display: grid; align-items: center; aspect-ratio: 2.15; background: #253f4a; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .3s ease; }
.feature:hover img { transform: scale(1.027); }
.feature-caption { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; background: #1e313c; }
.feature-title { display: block; font-size: clamp(.98rem, 1.6vw, 1.2rem); font-weight: 750; }
.feature-place { display: block; margin-top: 3px; color: #ccdade; font-size: .79rem; line-height: 1.45; }
.feature-open { flex: none; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; border: 1px solid #ffffff4d; color: var(--accent); }
.gallery { padding-block: 52px 62px; scroll-margin-top: 15px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.gallery-heading h2 { color: var(--ink); font-size: clamp(1.65rem, 3.35vw, 2.75rem); letter-spacing: -.035em; line-height: 1.16; }
.result-status { color: var(--muted); margin-top: 7px; min-height: 1.3em; font-size: .9rem; }
.view-toggle { display: flex; align-items: center; padding: 3px; background: #eeeee8; border: 1px solid #d6d8d1; border-radius: 8px; }
.view-toggle button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 11px; min-height: 37px; white-space: nowrap; border: 0; border-radius: 5px; background: transparent; color: #48575e; font-size: .85rem; }
.view-toggle button[aria-pressed="true"] { background: var(--deep); color: #fff; font-weight: 700; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px; margin-block: 22px 24px; }
.search-field { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 8px; align-items: center; padding-inline: 12px; }
.search-field, .select-field select { min-height: 45px; width: 100%; border: 1px solid #cdd0cb; border-radius: 7px; background: var(--white); color: var(--ink); }
.search-field:focus-within { outline: 2px solid #177c8e; outline-offset: 2px; }
.search-field svg { color: var(--muted); }
.search-field input { width: 100%; min-width: 0; padding-block: 10px; border: 0; background: transparent; color: var(--ink); outline: none; }
.search-field input::placeholder { color: #536068; opacity: 1; }
.select-field { min-width: 0; }
.select-field select { padding: 9px 26px 9px 10px; text-overflow: ellipsis; font-size: .92rem; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scene-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.scene-card:hover { border-color: #64a9b2; box-shadow: 0 5px 16px #17272f12; }
.card-button { display: grid; grid-template-rows: auto 1fr; grid-row: span 2; min-width: 0; border: 0; padding: 0; text-align: left; background: transparent; color: inherit; }
.card-button:focus-visible { outline-offset: -4px; }
.card-image { display: block; width: 100%; aspect-ratio: 8 / 3; background: #d9e6e7; position: relative; overflow: hidden; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-image img[hidden] { display: none; }
.card-image img:not([src]), .feature-image img:not([src]) { visibility: hidden; }
.card-detail { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 4px 10px; padding: 14px 13px 15px; }
.card-title { color: var(--ink); font-size: 1.02rem; font-weight: 750; line-height: 1.38; overflow-wrap: anywhere; }
.card-meta { display: block; margin-top: 5px; color: var(--muted); font-size: .79rem; line-height: 1.48; overflow-wrap: anywhere; }
.card-style { display: block; align-self: start; max-width: 6.3rem; padding: 4px 6px; border-radius: 4px; font-size: .69rem; background: #e1eff0; color: #29444b; overflow-wrap: anywhere; }
.empty-state { padding: 36px 18px; border: 1px dashed #aebbb6; border-radius: 10px; text-align: center; color: var(--muted); }
.empty-state button { margin-top: 14px; }
.more-row { display: flex; justify-content: center; padding-top: 25px; }
.site-footer { background: #ebece5; border-top: 1px solid #dedfd7; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 25px; }
.footer-content p { margin-top: 7px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.footer-content a { text-underline-offset: .23em; }
.license-archive { color: #235b63; font-size: .86rem; white-space: nowrap; }
.scene-dialog { width: min(950px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #ccd0ca; border-radius: 12px; color: var(--ink); background: var(--white); box-shadow: 0 20px 70px #0006; }
.scene-dialog::backdrop { background: #0e1c25bf; }
.dialog-content { padding: clamp(12px, 3vw, 26px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 15px; }
.dialog-head h2 { margin-top: 4px; font-size: clamp(1.2rem, 3.4vw, 1.85rem); overflow-wrap: anywhere; }
.dialog-place { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.close-dialog { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; width: 44px; height: 44px; background: transparent; color: var(--ink); }
.close-dialog:hover { background: #eff7f7; }
.preview-frame { width: 100%; overflow: hidden; border-radius: 8px; background: var(--deep); }
.preview-frame iframe { display: block; width: 100%; aspect-ratio: 2.22; min-height: min(230px, 45vw); border: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dialog-summary, .dialog-interactions { font-size: .9rem; line-height: 1.63; }
.dialog-summary { margin-top: 14px; }
.dialog-interactions { margin-block: 8px 0; padding-left: 1.3rem; }
.copy-status { margin-top: 8px; color: #216775; font-size: .88rem; }
.prompt-fallback { display: block; margin-top: 8px; width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #eff5f4; }
@media (max-width: 840px) {
  .shell { width: calc(100% - 56px); }
  .hero { padding-block: 49px 55px; }
  .scene-grid { gap: 13px; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .header-content { min-height: 58px; gap: 8px; }
  .site-brand { gap: 6px; font-size: .84rem; white-space: nowrap; }
  .site-brand svg { width: 26px; height: 26px; }
  .site-header nav { gap: 9px; }
  .site-header nav a { font-size: .75rem; }
  .hero { padding-block: 34px 39px; }
  .hero-content { grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { font-size: clamp(2.2rem, 8.8vw, 3.3rem); }
  .hero-copy p { margin-top: 14px; }
  .hero-action { margin-top: 17px; }
  .gallery { padding-block: 35px 40px; }
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)); margin-block: 16px 18px; }
  .search-field { grid-column: 1 / -1; }
  .select-field select { padding-right: 15px; font-size: .79rem; }
  .scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-detail { display: block; padding: 10px; }
  .card-meta { margin-top: 3px; font-size: .74rem; }
  .card-style { display: inline-block; margin-top: 6px; max-width: none; }
  .footer-content { align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 5px; }
  .site-header nav a { font-size: .72rem; }
  .view-toggle button { padding-inline: 7px; }
  .view-toggle svg { width: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.credits-content { width: min(100% - 32px, 780px); margin-inline: auto; padding-block: clamp(32px, 7vw, 75px); }
.credits-content h1 { margin-bottom: 16px; color: var(--deep); font-size: clamp(1.9rem, 5vw, 3.25rem); letter-spacing: -.04em; }
.credits-content h2 { margin-top: 24px; margin-bottom: 8px; font-size: 1.2rem; }
.credits-content p, .credits-content ul { margin-bottom: 11px; color: var(--muted); line-height: 1.7; }
.credits-content a { text-underline-offset: .2em; color: #175d68; }
.credits-content pre { padding: 14px; max-width: 100%; overflow: auto; background: #e9eeeb; border-radius: 7px; }

