@font-face {
  font-family: "Library Serif";
  src: url("assets/noto-serif-sc-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+00B7,U+4E8E,U+4F7F,U+5173,U+5230,U+5357,U+597D,U+59CB,U+5BFC,U+5DF2,U+5F00,U+611F,U+627E,U+6307,U+6536,U+63A2,U+63D0,U+662F,U+672A,U+7075,U+7528,U+7684,U+793A,U+7CBE,U+7D22,U+85CF,U+8BCD,U+9009,U+95EE,U+9898,U+9986;
}
:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --surface: #fffefa;
  --ink: #24211d;
  --muted: #68635b;
  --line: #e4e0d8;
  --strong-line: #d7d0c7;
  --accent: #a74630;
  --accent-hover: #8c3523;
  --accent-soft: #f4e7de;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Library Serif", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 13px;
  --ease: 180ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--sans); background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.wrap { width: min(1152px, calc(100% - 88px)); margin-inline: auto; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sprite, .visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; background: var(--surface); border: 1px solid var(--accent); padding: 10px 14px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; min-height: 44px; font-size: 15px; font-weight: 730; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.brand-mark .icon { width: 22px; height: 22px; fill: currentColor; stroke-width: 1; }
.brand small { display: block; margin-top: 4px; font: 500 9px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.nav { display: flex; gap: 34px; align-self: stretch; }
.nav a, .nav button { min-height: 44px; display: inline-flex; align-items: center; position: relative; padding: 0 3px; border: 0; background: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav [aria-current], .nav :hover { color: var(--accent); }
.nav [aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--accent); inset: auto 3px -1px; }
.collection-button, .outline-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.collection-button { justify-self: end; white-space: nowrap; }
.collection-button:hover, .collection-button[aria-pressed="true"], .outline-button:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.collection-button[aria-pressed="true"] .icon { fill: var(--accent-soft); }
.hero { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 59px 54px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--accent); font-size: 12px; font-weight: 680; letter-spacing: .12em; }
.eyebrow-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.eyebrow-line, .figure-rule { display: inline-block; width: 31px; height: 1px; background: currentColor; opacity: .45; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { margin: 17px 0 20px; font-size: clamp(37px, 5.15vw, 74px); line-height: 1.26; letter-spacing: -.066em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-description { margin-bottom: 24px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 5px 5px 15px; width: min(100%, 490px); background: var(--surface); border: 1px solid var(--strong-line); border-radius: 10px; box-shadow: 0 4px 11px #39271908; }
.search:focus-within { border-color: var(--accent); }
.search-icon { color: var(--muted); width: 20px; height: 20px; }
.search input { min-width: 0; width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--ink); padding: 0 2px; border-radius: 2px; }
.search input::placeholder { color: var(--muted); font-size: 14px; }
.search input:focus-visible { outline-offset: 0; }
.primary-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 8px 15px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: white; white-space: nowrap; font-size: 14px; font-weight: 650; transition: background var(--ease); }
.primary-button:hover { background: var(--accent-hover); }
.hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.hot > span { padding-right: 4px; }
.hot button { min-height: 44px; position: relative; isolation: isolate; border: 0; background: none; padding: 0 9px; font-size: 12px; }
.hot button::before { content: ""; position: absolute; z-index: -1; inset: 9px 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); transition: background var(--ease); }
.hot button:hover::before { background: var(--accent-soft); }
.hero-figure { margin: 0; position: relative; min-width: 0; }
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-inline: 8%; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font: 500 10px/1.4 var(--mono); letter-spacing: .09em; }
.hero-figure figcaption span:first-child { display: flex; align-items: center; gap: 8px; }
.figure-rule { width: 17px; }
.library { border-top: 1px solid var(--strong-line); padding-block: 32px 56px; scroll-margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 19px; }
.section-kicker { font: 600 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--muted); }
.section-kicker span { color: var(--accent); }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(29px, 3.25vw, 44px); line-height: 1.23; letter-spacing: -.05em; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; margin: 0 0 2px; }
.result-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.category { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; background: transparent; border: 1px solid var(--strong-line); border-radius: 8px; font-size: 13px; white-space: nowrap; color: var(--muted); transition: background var(--ease), color var(--ease), border-color var(--ease); }
.category .icon { width: 15px; height: 15px; }
.category:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.category[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.prompt-card { min-width: 0; display: flex; flex-direction: column; padding: 19px 19px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--ease), box-shadow var(--ease); }
.prompt-card:hover, .prompt-card:focus-within { border-color: #c7aa9e; box-shadow: 0 6px 18px #3927190c; }
.card-top, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-top { margin: -1px -7px 10px 0; }
.category-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 6px; background: var(--tag-bg, var(--accent-soft)); color: var(--tag-ink, var(--accent)); font-size: 12px; font-weight: 650; }
.category-tag .icon { width: 14px; height: 14px; }
[data-category="code"] { --tag-bg: #e9edf6; --tag-ink: #42537b; }
[data-category="image"] { --tag-bg: #efe9f6; --tag-ink: #654b7d; }
[data-category="work"] { --tag-bg: #e8eeea; --tag-ink: #40604d; }
[data-category="study"] { --tag-bg: #f4eddc; --tag-ink: #73571d; }
[data-category="marketing"] { --tag-bg: #f5e7ed; --tag-ink: #7d405f; }
[data-category="translate"] { --tag-bg: #e5eeeb; --tag-ink: #315a51; }
[data-category="oriental"] { --tag-bg: #f4e9dd; --tag-ink: #834d37; }
[data-category="ink"] { --tag-bg: #e9ece8; --tag-ink: #45594e; }
[data-category="poster"] { --tag-bg: #e9ebf0; --tag-ink: #4c5268; }
[data-category="business"] { --tag-bg: #e3f0ec; --tag-ink: #2d5d55; }
[data-category="life"] { --tag-bg: #f5ebdd; --tag-ink: #775029; }
[data-category="role"] { --tag-bg: #eeeaf6; --tag-ink: #604e79; }
.icon-button { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted); transition: background var(--ease), color var(--ease); }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.icon-button[aria-pressed="true"] .icon { fill: currentColor; }
.prompt-card h3 { margin-bottom: 5px; font-size: 18px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.card-summary { margin-bottom: 15px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-footer { border-top: 1px solid var(--line); margin-top: auto; padding-top: 4px; }
.model-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.model { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 3px 7px; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.card-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: end; gap: 4px; padding: 3px 0 3px 5px; border: 0; background: transparent; flex: none; font-size: 12px; color: var(--accent); font-weight: 650; }
.card-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-open .icon { width: 14px; height: 14px; }
.load { text-align: center; margin-top: 24px; }
#remaining-count { color: var(--muted); }
.empty { padding: 40px 18px; text-align: center; border: 1px dashed var(--strong-line); border-radius: var(--radius); background: var(--surface); }
.empty > .icon { width: 30px; height: 30px; color: var(--accent); }
.empty h3 { margin: 8px 0 5px; }
.empty p { font-size: 14px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 78px; }
.footer-inner strong { color: var(--ink); }
.footer-divider { margin-inline: 10px; }
.footer-inner a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; white-space: nowrap; }
.footer-inner a:hover { color: var(--accent); }
.footer-inner .icon { width: 14px; height: 14px; }
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: clamp(16px, 4vw, 28px); overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px #24211d33; }
dialog::backdrop { background: #24211d70; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.dialog-heading h2 { font-size: clamp(24px, 5vw, 34px); margin: 4px 0 8px; line-height: 1.35; }
.detail-summary, .detail-hint, .guide-steps p { color: var(--muted); font-size: 14px; }
.detail-summary { margin-bottom: 10px; }
.detail-hint { margin: 16px 0 8px; }
#detail-body { max-height: min(46vh, 390px); overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.75 var(--sans); }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
#copy-status { margin: 0; font-size: 13px; color: var(--accent); }
.guide-steps { margin: 12px 0 0; padding-left: 26px; }
.guide-steps li { padding: 6px 0 0 4px; }
.guide-steps li::marker { color: var(--accent); font-family: var(--mono); }
.guide-steps p { margin: 3px 0 10px; }
.toast { position: fixed; z-index: 5; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 9px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); box-shadow: 0 5px 20px #24211d38; font-size: 14px; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 969px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-block: 47px 42px; }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { height: 65px; display: flex; gap: 8px; }
  .nav { margin-left: auto; align-items: center; }
  .nav .nav-explore { display: none; }
  .nav button { padding-inline: 6px; font-size: 13px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand { gap: 7px; font-size: 13px; }
  .brand small { font-size: 8px; }
  .collection-button { min-width: 44px; padding: 0; }
  .collection-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-block: 31px 22px; }
  h1 { font-size: clamp(38px, 9.9vw, 59px); margin-block: 13px 15px; }
  .hero-description { margin-bottom: 18px; }
  .hero-figure { width: min(100%, 335px); margin-inline: auto; }
  .hero-figure img { width: 100%; }
  .hero-figure figcaption { padding-top: 7px; }
  .library { padding-block: 24px 40px; }
}
@media (max-width: 540px) {
  .prompt-grid { grid-template-columns: 1fr; gap: 11px; }
  .category { padding-inline: 10px; }
  .search { gap: 6px; padding-left: 10px; }
  .search .primary-button { gap: 5px; padding-inline: 10px; }
  .search .primary-button .icon { width: 14px; }
  .search input::placeholder { font-size: 12px; }
  .prompt-card { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
