:root {
  --bg: #fff;
  --text: #171717;
  --muted: #696969;
  --line: #d9d9d6;
  --soft: #f4f4f2;
  --accent: #ef3f17;
  --accent-dark: #d9310e;
  --max: 1440px;
  --gutter: clamp(24px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  min-height: 94px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-copy strong { font-size: clamp(20px, 1.75vw, 27px); line-height: 1; letter-spacing: -0.045em; }
.brand-copy > span { color: var(--muted); font-size: 11px; line-height: 1.2; letter-spacing: 0.12em; }
.site-nav { display: flex; align-self: stretch; gap: clamp(32px, 4.4vw, 68px); }
.site-nav a { position: relative; display: grid; place-items: center; font-size: 15px; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.menu-button { display: none; border: 0; background: transparent; padding: 9px; }

main { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--gutter); }
.hero { padding-block: clamp(30px, 4vw, 56px) 44px; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.15fr); gap: clamp(40px, 4vw, 62px); align-items: center; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; }
.hero-copy h1 { margin: 0; max-width: 580px; font-size: clamp(50px, 4.4vw, 68px); line-height: 1.07; letter-spacing: -0.065em; }
.daily-quote { max-width: 520px; margin: 22px 0 28px; }
.daily-quote blockquote { margin: 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.68; }
.daily-quote figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #8a8a8a; font-size: 12px; line-height: 1.55; }
.daily-quote figcaption a { color: var(--accent); font-weight: 700; }
.daily-quote figcaption a[hidden] { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-button { width: fit-content; min-height: 54px; padding: 0 24px; border: 1px solid var(--accent); background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 52px; font-size: 15px; font-weight: 700; transition: background 160ms ease, transform 160ms ease; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button svg, .back-link svg, .row-arrow svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.telegram-button { width: fit-content; min-height: 54px; padding: 0 20px; border: 1px solid #111; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 15px; font-weight: 700; transition: background 160ms ease, transform 160ms ease; }
.telegram-button:hover { background: #2d2d2d; transform: translateY(-1px); }
.telegram-button svg { width: 20px; fill: currentColor; }
.primary-button:focus-visible, .telegram-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 46%, transparent); outline-offset: 3px; }
.search-field { margin-top: 28px; width: min(100%, 510px); height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 17px; border: 1px solid var(--line); background: #fff; transition: border-color 160ms ease; }
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.search-field input::placeholder { color: #919191; }
.search-status { width: min(100%, 510px); min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-results { position: absolute; left: 0; z-index: 4; width: min(100%, 510px); max-height: 390px; overflow-y: auto; border: 1px solid var(--line); border-top: 0; background: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, .12); }
.search-results[hidden] { display: none; }
.search-result { min-height: 58px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-top: 1px solid var(--line); }
.search-result:first-child { border-top: 0; }
.search-result:hover, .search-result:focus-visible, .search-result[aria-selected="true"] { background: var(--soft); }
.search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.search-result span { color: var(--muted); font-size: 11px; }
.search-result-more { color: var(--accent); font-size: 13px; font-weight: 700; }
.hero-media { overflow: hidden; background: #454545; aspect-ratio: 1.68 / 1; }
.hero-media img { height: 100%; object-fit: contain; object-position: center; transition: opacity 300ms ease; }
.hero-media:hover img { opacity: .94; }

.daily-batch { padding: 34px 0 44px; border-bottom: 1px solid var(--line); }
.daily-batch[hidden] { display: none; }
.daily-batch .section-heading a { color: var(--accent); font-size: 14px; font-weight: 700; }
.batch-collage-link { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.batch-collage-link img { width: 100%; height: auto; }
.batch-quick-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--line); }
.batch-quick-card { min-width: 0; min-height: 98px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: #fff; }
.batch-quick-card span, .batch-number, .batch-kicker { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.batch-quick-card strong { font-size: 14px; line-height: 1.45; }

.archive-section { padding: 30px 0 44px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2, .archive-intro h2, .guide h2 { margin: 0; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.model-list { display: grid; gap: 5px; }
.model-row { min-height: 99px; display: grid; grid-template-columns: 180px 1fr auto 54px; align-items: stretch; border: 1px solid var(--line); background: #fff; transition: border-color 160ms ease, transform 160ms ease; }
.model-row:hover { border-color: #a7a7a2; transform: translateX(3px); }
.model-row.featured { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: inset 4px 0 var(--accent); }
.model-thumb { overflow: hidden; background: #353535; }
.model-thumb img { height: 100%; object-fit: contain; }
.model-summary { min-width: 0; padding: 19px 32px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.model-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; letter-spacing: -0.02em; }
.model-summary > span { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 13px; }
.model-summary i { width: 1px; height: 13px; background: var(--line); }
.row-status { align-self: center; padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.row-arrow { display: grid; place-items: center; }
.empty-state { padding: 50px 0; color: var(--muted); text-align: center; border-block: 1px solid var(--line); }
.load-more { min-width: 180px; height: 48px; margin: 26px auto 0; display: block; border: 1px solid var(--text); background: #fff; color: var(--text); cursor: pointer; font-weight: 700; transition: color 160ms ease, background 160ms ease; }
.load-more:hover { background: var(--text); color: #fff; }
.load-more[hidden] { display: none; }

.archive-intro { padding: clamp(70px, 9vw, 130px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-bottom: 1px solid var(--line); }
.archive-intro p { max-width: 560px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.guide { padding: 64px 0 90px; }
.guide ol { list-style: none; margin: 38px 0 0; padding: 0; border-top: 1px solid var(--line); }
.guide li { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide li > span { color: var(--accent); font-variant-numeric: tabular-nums; }
.guide li p { margin: 0; color: var(--muted); line-height: 1.7; }
.guide li strong { display: inline-block; width: 140px; color: var(--text); }
.site-footer { width: min(100%, var(--max)); min-height: 110px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.detail-page { padding-bottom: 70px; }
.batch-page { padding-bottom: 80px; }
.batch-header { padding-bottom: clamp(44px, 6vw, 78px); border-bottom: 1px solid var(--line); }
.batch-header h1 { max-width: 980px; margin: 10px 0 16px; font-size: clamp(42px, 6vw, 82px); line-height: 1.03; letter-spacing: -.06em; }
.batch-header > p:not(.batch-kicker) { max-width: 760px; margin: 0 0 30px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.batch-header img { width: 100%; height: auto; border: 1px solid var(--line); background: var(--soft); }
.batch-models { display: grid; }
.batch-model-section { padding: clamp(34px, 5vw, 72px) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr); gap: clamp(34px, 6vw, 86px); align-items: center; border-bottom: 1px solid var(--line); }
.batch-model-image { min-width: 0; background: var(--soft); }
.batch-model-image img { width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.batch-model-section h2 { margin: 10px 0 18px; font-size: clamp(28px, 3vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.batch-model-section div > p:not(.batch-number) { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.back-link { margin: 27px 0 24px; width: fit-content; display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 14px; font-weight: 700; }
.back-link svg { width: 18px; }
.detail-layout { display: grid; grid-template-columns: minmax(480px, 1.24fr) minmax(360px, .94fr); gap: clamp(42px, 5vw, 74px); align-items: start; }
.detail-media { margin: 0; min-width: 0; align-self: start; overflow: visible; background: transparent; }
.detail-media img { display: block; width: min(100%, var(--detail-image-natural-width, 100%)); height: auto; max-width: 100%; aspect-ratio: auto; margin-inline: auto; object-fit: contain; object-position: center; }
.detail-copy { padding-top: 10px; }
.detail-copy h1 { margin: 0 0 10px; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.045em; }
.detail-copy time { color: var(--muted); font-size: 14px; }
.detail-lead, .detail-copy > p:last-child { margin: 22px 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.model-meta { margin: 26px 0 28px; border-top: 1px solid var(--line); }
.model-meta div { min-height: 56px; display: grid; grid-template-columns: 38% 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.model-meta dt { color: var(--muted); }
.model-meta dd { margin: 0; }
.detail-copy h2, .download-panel h2 { margin: 0; padding-left: 14px; border-left: 4px solid var(--accent); font-size: 23px; letter-spacing: -0.025em; }
.download-panel { margin-top: 30px; padding: 22px 24px 26px; border: 1px solid var(--line); }
.download-content { margin-top: 18px; display: grid; grid-template-columns: minmax(230px, 390px) auto 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.download-content .primary-button { width: 100%; gap: 0; }
.code-block { min-height: 58px; display: grid; grid-template-columns: auto 150px 54px; align-items: center; gap: 18px; border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 54px); }
.code-block > span { font-size: 14px; }
.code-block code { height: 58px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); font: 700 26px/1 Inter, monospace; letter-spacing: .08em; }
.copy-button { width: 54px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.copy-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy-button.copied { color: #fff; border-color: var(--accent); background: var(--accent); }
.download-content > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.download-panel.pending .primary-button { border-color: var(--line); background: var(--soft); color: var(--muted); pointer-events: none; }
.detail-secondary { margin: 24px 0 0; max-height: 620px; overflow: hidden; background: #333; }
.detail-secondary img { height: 100%; object-fit: contain; }

.model-sections[hidden], .model-gallery[hidden], .author-license[hidden] { display: none; }
.model-sections { margin-top: clamp(48px, 6vw, 82px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.model-section { padding: clamp(26px, 3.2vw, 42px); background: #fff; }
.model-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.model-section h2, .model-gallery h2, .author-license h2 { margin: 0; padding-left: 14px; border-left: 4px solid var(--accent); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; }
.model-section p { margin: 18px 0 0; color: #444; font-size: 16px; line-height: 1.86; }
.model-gallery, .author-license { margin-top: clamp(48px, 6vw, 82px); }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-title-row > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; min-width: 0; border: 1px solid var(--line); background: var(--soft); }
.gallery-open { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: contain; }
.gallery-grid figcaption { padding: 13px 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gallery-lightbox { width: min(94vw, 1200px); max-width: none; padding: 18px; border: 0; background: #111; color: #fff; }
.gallery-lightbox::backdrop { background: rgba(0,0,0,.82); }
.gallery-lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.gallery-lightbox p { margin: 14px 42px 0 0; color: #ddd; line-height: 1.5; }
.gallery-lightbox-close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.9); color: #111; font-size: 30px; line-height: 1; cursor: pointer; }
.gallery-lightbox-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.author-license { padding: clamp(24px, 3.5vw, 42px); border: 1px solid var(--line); background: var(--soft); }
.author-license > div { margin-top: 20px; }
.author-license p { margin: 10px 0; color: #444; line-height: 1.75; }
.author-license ul { margin: 14px 0; padding-left: 20px; }
.author-license li { margin: 8px 0; }
.author-license a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.legacy-detail { max-width: 1120px; padding-bottom: 90px; }
.legacy-article > header { padding: 16px 0 38px; border-bottom: 1px solid var(--line); }
.legacy-article > header h1 { max-width: 900px; margin: 0 0 15px; font-size: clamp(36px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.055em; }
.legacy-article > header time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.legacy-download { margin: 30px 0 42px; padding: 22px; display: grid; grid-template-columns: minmax(230px, 1fr) auto; align-items: center; gap: 26px; border: 1px solid var(--line); }
.legacy-download > div { min-width: 0; }
.legacy-download small { display: block; margin-bottom: 7px; color: var(--muted); }
.legacy-download a { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.legacy-code { min-width: 150px; padding: 16px 24px; border-left: 1px solid var(--line); text-align: center; }
.legacy-code span { display: block; color: var(--muted); font-size: 12px; }
.legacy-code code { display: block; margin-top: 5px; color: var(--accent); font-size: 25px; font-weight: 750; letter-spacing: .08em; }
.legacy-content { max-width: 920px; margin: 0 auto; color: #2c2c2c; font-size: 17px; line-height: 1.86; }
.legacy-content > p { margin: 1.2em 0; }
.legacy-content h2, .legacy-content h3 { margin: 2.2em 0 .8em; color: var(--text); line-height: 1.25; letter-spacing: -.025em; }
.legacy-content figure, .legacy-content > p:has(> img) { margin: 28px 0; }
.legacy-content img { width: auto; max-width: 100%; max-height: 900px; margin-inline: auto; object-fit: contain; background: var(--soft); }
.legacy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legacy-content iframe, .legacy-content video { max-width: 100%; }

.model-community-cta {
  margin-top: clamp(64px, 8vw, 108px);
  padding: clamp(48px, 6vw, 78px) 0 10px;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}
.model-community-cta p {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.7;
}
.model-community-telegram {
  display: inline-flex;
  min-height: 48px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #006699;
  color: #006699;
  font-weight: 700;
  text-decoration: none;
}
.model-community-telegram:hover,
.model-community-telegram:focus-visible {
  background: #006699;
  color: #fff;
}
.model-community-telegram:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}
.model-community-cta img {
  width: 220px;
  height: auto;
  max-width: 100%;
  background: #fff;
}

@media (max-width: 900px) {
  .site-header { min-height: 76px; }
  .menu-button { display: grid; gap: 4px; }
  .menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--text); }
  .site-nav { position: absolute; z-index: 5; top: 76px; left: var(--gutter); right: var(--gutter); display: none; height: auto; gap: 0; flex-direction: column; border: 1px solid var(--line); background: #fff; }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 58px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { grid-row: 1; }
  .archive-intro, .detail-layout { grid-template-columns: 1fr; }
  .batch-quick-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .batch-model-section { grid-template-columns: 1fr; }
  .model-sections { grid-template-columns: 1fr; }
  .section-title-row { align-items: start; flex-direction: column; }
  .section-title-row > p { text-align: left; }
  .detail-media { min-width: 0; }
  .download-content { grid-template-columns: 1fr; }
  .code-block { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .legacy-download { grid-template-columns: 1fr; }
  .legacy-code { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy > span { font-size: 9px; }
  .hero { padding-top: 18px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 58px); }
  .daily-quote { margin: 16px 0 22px; }
  .daily-quote blockquote { font-size: 16px; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .hero-actions .primary-button, .hero-actions .telegram-button { width: 100%; justify-content: space-between; }
  .primary-button { min-height: 50px; }
  .telegram-button { min-height: 50px; }
  .model-row { min-height: 84px; grid-template-columns: 92px 1fr 38px; }
  .model-summary { padding: 12px 14px; gap: 7px; }
  .model-summary strong { font-size: 15px; }
  .model-summary > span { gap: 7px; font-size: 10px; }
  .row-status { display: none; }
  .archive-intro { gap: 20px; }
  .guide li { grid-template-columns: 44px 1fr; gap: 10px; }
  .guide li strong { display: block; width: auto; margin-bottom: 4px; }
  .detail-layout { gap: 28px; }
  .detail-copy h1 { font-size: 34px; }
  .download-panel { padding: 18px; }
  .code-block { grid-template-columns: auto 1fr 50px; gap: 10px; }
  .code-block code, .copy-button { height: 52px; }
  .model-community-cta { gap: 20px; }
  .model-community-cta img { width: 180px; }
  .batch-quick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { min-height: 90px; }
}

@media (max-width: 390px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.unavailable-model { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 18px; max-width: 720px; }
.unavailable-model h1, .unavailable-model p { margin: 0; }
.unavailable-model h1 { font-size: clamp(40px, 8vw, 72px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
