:root {
  color-scheme: dark;
  --background: #111211;
  --surface: #191b18;
  --ink: #f3f3e9;
  --muted: #a5a89e;
  --line: #30332c;
  --accent: #d9f992;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.topbar { height: 74px; border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav nav { display: flex; height: 100%; gap: 34px; align-items: stretch; color: var(--muted); font-size: 15px; }
.nav nav a { display: flex; align-items: center; position: relative; }
.nav nav a:hover, .nav nav a.current { color: var(--ink); }
.nav nav a.current::after { content: ""; position: absolute; height: 2px; background: var(--accent); inset: auto 0 -1px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 19px; font-weight: 850; letter-spacing: .04em; }
.mark { display: inline-grid; width: 29px; height: 29px; border-radius: 7px; background: var(--accent); place-items: center; }
.mark::before { content: ""; width: 15px; height: 13px; border: 2px solid #202619; border-radius: 2px; background: linear-gradient(145deg,transparent 42%, #202619 43% 54%, transparent 55%); }
.nav-action { justify-self: end; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 7px; border: 1px solid transparent; font-weight: 750; font-size: 15px; white-space: nowrap; }
.button.small { min-height: 38px; padding-inline: 13px; font-size: 14px; }
.primary { background: var(--accent); color: #182111; }
.primary:hover { background: #e7ffb7; }
.outline { background: transparent; color: var(--ink); border-color: #44483d; }
.outline:hover { background: #242820; border-color: #757c6a; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { color: var(--accent); font: 650 13px/1.45 ui-monospace, "PingFang SC", monospace; letter-spacing: .10em; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 2px; }
.hero { display: grid; grid-template-columns: .82fr 1.38fr; align-items: center; gap: clamp(32px,5vw,80px); padding-block: 54px 49px; }
.hero h1 { font-size: clamp(46px,5.3vw,81px); font-weight: 900; letter-spacing: -.075em; line-height: 1.07; margin: 22px 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 35ch; }
.hero-intro .actions { margin-top: 27px; }
.showcase { padding: 20px; background: #1b1e19; border: 1px solid #383f32; border-radius: 13px; }
.showcase-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 15px; }
.showcase-head h2 { font-size: 26px; margin-top: 4px; letter-spacing: -.035em; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-shell { min-width: 0; border: 1px solid #404439; border-radius: 8px; overflow: hidden; background: #111310; }
.compare { --split: 52%; position: relative; aspect-ratio: .91; background: #111310; isolation: isolate; overflow: hidden; }
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.compare .original { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare .divider { position: absolute; background: #efffd3; width: 2px; inset: 0 auto 0 var(--split); transform: translateX(-50%); pointer-events: none; }
.compare .divider::after { content: "‹ ›"; display: grid; place-items: center; color: #20271a; font-size: 19px; font-weight: bold; line-height: 1; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 35px; height: 31px; border-radius: 24px; background: #f1ffdb; box-shadow: 0 1px 8px #0006; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:focus-within { box-shadow: inset 0 0 0 3px var(--accent); }
.compare input:focus-visible + .divider { width: 4px; background: var(--accent); }
.compare-tag { position: absolute; top: 10px; padding: 4px 7px; border-radius: 4px; font-size: 12px; font-weight: 760; pointer-events: none; background: #11170ee0; }
.before-tag { left: 10px; }
.after-tag { right: 10px; color: #182011; background: var(--accent); }
.compare-bar { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 5px 8px; }
.play { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #434b39; border-radius: 50%; color: var(--accent); background: #262e20; font-size: 12px; }
.play:hover { background: #39452f; }
.scene-label { color: var(--ink); font-size: 14px; font-weight: 700; }
.time { margin-left: auto; color: var(--muted); font: 12px ui-monospace,monospace; white-space: nowrap; }
.showcase-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.library { border-block: 1px solid var(--line); padding-block: 48px 55px; background: #151714; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.section-heading h2, .detail-section h2, .home-use h2 { margin-top: 9px; font-size: clamp(29px,3.1vw,44px); font-weight: 850; letter-spacing: -.05em; }
.section-heading div > p:last-child, .home-use p:last-child { color: var(--muted); margin-top: 8px; line-height: 1.6; }
.count { font: 13px ui-monospace, monospace; color: var(--muted); flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
.filters button { border: 1px solid #3b4035; background: transparent; border-radius: 5px; color: var(--muted); min-height: 36px; padding: 0 13px; font-size: 14px; }
.filters button:hover { color: var(--ink); border-color: #a3aa97; }
.filters button[aria-pressed="true"] { background: var(--accent); color: #192112; border-color: var(--accent); font-weight: 750; }
.card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.template { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #1d201b; color: var(--ink); text-align: left; width: 100%; padding: 0; }
.template:hover { border-color: #9bab82; }
.thumb { display: block; position: relative; aspect-ratio: 1.5; overflow: hidden; background: #282d23; }
.thumb img,.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb video { opacity: 0; }
.thumb video.active { opacity: 1; }
.card-tag { position: absolute; bottom: 8px; left: 8px; padding: 4px 7px; border-radius: 4px; background: #141711e8; color: #edfae1; font-size: 12px; }
.card-copy { display: grid; gap: 5px; padding: 13px 12px 15px; }
.card-copy strong { font-size: 17px; }
.card-copy small { font-size: 13px; color: var(--muted); line-height: 1.55; }
.home-use { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 53px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-block: 23px; color: var(--muted); font-size: 13px; }
.footer .brand { color: var(--ink); font-size: 16px; }
.footer .mark { scale: .8; }
.breadcrumb { display: flex; gap: 11px; color: var(--muted); font-size: 14px; padding-block: 26px 20px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-hero { margin-top: 30px; display: grid; grid-template-columns: 1fr .86fr; gap: clamp(28px,6.5vw,100px); align-items: center; padding-bottom: 48px; }
.detail-media { background: #1b1e19; padding: 14px; border: 1px solid #383f32; border-radius: 12px; }
.detail-tabs { margin: 0 0 11px; }
.detail-media .compare { aspect-ratio: 1.28; }
.detail-intro h1 { font-size: clamp(47px,6vw,82px); line-height: 1.12; font-weight: 900; letter-spacing: -.07em; margin: 12px 0; }
.detail-intro .intro-copy { max-width: 44ch; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); margin: 20px 0; gap: 13px; padding-block: 13px; }
.fact-grid div { display: grid; gap: 4px; }
.fact-grid span, .runtime { color: var(--muted); font-size: 13px; }
.fact-grid strong { font-size: 15px; }
.runtime { margin-top: 12px; line-height: 1.6; }
.detail-section { border-top: 1px solid var(--line); padding-block: 35px 40px; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.fit-grid article { background: var(--surface); border: 1px solid var(--line); padding: 19px; border-radius: 8px; }
.fit-grid h3 { font-size: 18px; }
.fit-grid h3 span { color: var(--accent); }
.fit-grid article:nth-child(2) h3 span { color: #e9bba2; }
.fit-grid ul, .use-panel ol { margin-bottom: 0; padding-left: 1.3em; color: var(--muted); line-height: 1.8; }
.steps { margin-top: 20px; background: #171915; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.steps img { display: block; width: 100%; min-width: 560px; }
.muted { margin-top: 13px; color: var(--muted); line-height: 1.7; }
.use-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: #20271b; padding: clamp(19px,3.3vw,40px); border: 1px solid #404d34; border-radius: 11px; }
.prompt-card { align-self: center; background: #151a12; padding: 17px; border: 1px solid #3c4734; border-radius: 8px; }
.prompt { font-size: 17px; line-height: 1.65; margin-block: 10px 15px; }
.copy-status:empty { display: none; }
.copy-status { color: var(--accent); font-size: 13px; margin-top: 10px; }
dialog { width: min(650px,calc(100% - 28px)); max-height: 90vh; color: var(--ink); background: #1b1e19; border: 1px solid #4b5542; border-radius: 12px; padding: 18px; }
dialog::backdrop { background: #000b; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
dialog video { display: block; width: 100%; max-height: 64vh; background: #111; }
dialog p { margin-top: 12px; color: var(--muted); }
@media (min-width: 1450px) { .compare { aspect-ratio: 1; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(39px,6vw,65px); }
  .showcase { padding: 13px; }
  .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { height: 59px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero, .detail-hero { grid-template-columns: 1fr; }
  .hero { padding-block: 31px; gap: 26px; }
  .hero h1 { font-size: clamp(42px,10vw,64px); margin: 14px 0; }
  .hero-break { display: none; }
  .hero-intro .actions { margin-top: 16px; }
  .intro-copy { max-width: 55ch; }
  .showcase { padding: 11px; }
  .pair-grid { gap: 8px; }
  .compare { aspect-ratio: .78; }
  .showcase-head h2 { font-size: 22px; }
  .scene-label { font-size: 13px; }
  .compare-bar { gap: 5px; padding-inline: 5px; }
  .time { font-size: 11px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .library { padding-block: 31px; }
  .home-use { align-items: flex-start; flex-direction: column; gap: 15px; padding-block: 30px; }
  .detail-intro { grid-row: 1; }
  .detail-hero { padding-bottom: 30px; }
  .detail-media .compare { aspect-ratio: 1.1; }
  .fit-grid, .use-panel { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
