:root {
  color-scheme: dark;
  --paper: #111713;
  --panel: #1a231d;
  --ink: #f5f1e6;
  --muted: #c0cabd;
  --line: #3a493e;
  --gold: #ecd394;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 12px; padding: 10px; background: var(--ink); color: var(--paper); z-index: 3; }
.skip:focus { top: 12px; }
.site-header { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.site-header a, .site-footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--gold); color: #221b0d; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: .88rem; }
nav a:hover, .site-footer a:hover { color: var(--gold); }
.hero { display: grid; grid-template-columns: 1fr 1.28fr; align-items: center; gap: 46px; padding-block: 67px 62px; }
.eyebrow { color: var(--gold); font-size: .9rem; font-weight: 650; }
.hero h1, .share h1, .prose h1 { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(2.45rem, 5vw, 4.35rem); line-height: 1.15; letter-spacing: -.035em; margin-block: 12px 17px; }
.lede { max-width: 30ch; color: var(--muted); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button, .search button, .command button, .report button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; font-weight: 650; font-size: .89rem; text-decoration: none; }
.primary, .search button { background: var(--gold); color: #211a0b; }
.quiet, .command button, .report button { color: var(--ink); background: var(--panel); border-color: var(--line); }
.button:hover, button:hover { filter: brightness(1.12); }
.hero-image { position: relative; padding: 9px; border: 1px solid #485547; border-radius: 19px; background: #27332a; box-shadow: 0 24px 60px #03090670; }
.hero-image img { width: 100%; border-radius: 11px; }
.hero-image figcaption { position: absolute; bottom: 19px; right: 19px; padding: 6px 9px; border-radius: 6px; background: #111713dd; color: #f5f1e6; font-size: .74rem; }
.section { padding-block: 35px; border-top: 1px solid var(--line); scroll-margin-top: 18px; }
.section-head { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
h2 { font-size: clamp(1.35rem, 2.55vw, 2rem); letter-spacing: -.025em; line-height: 1.3; }
.section-head p, .install p, .card-body p, .empty p { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.search label, .installation .command-label, .report label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.search > div { display: flex; align-items: center; gap: 8px; }
.search input, textarea { width: min(220px, 48vw); padding: 10px; min-height: 44px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card, .empty, .install { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card { max-width: 550px; overflow: hidden; }
.card-art { display: block; }
.card-art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 a { text-decoration: none; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tags a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: .82rem; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.tags a:hover { border-color: var(--gold); }
.empty { padding: 24px; }
.text-link { display: inline-block; color: var(--gold); margin-top: 9px; }
.pager { margin-top: 24px; }
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px; align-items: center; }
.installation { min-width: 0; }
.command { display: flex; align-items: center; min-height: 49px; gap: 7px; background: #111713; border: 1px solid var(--line); padding: 3px 3px 3px 10px; border-radius: 8px; }
code { flex: 1; font-size: .8rem; overflow-wrap: anywhere; color: var(--gold); }
.site-footer { display: flex; flex-wrap: wrap; gap: 15px 20px; border-top: 1px solid var(--line); padding-block: 22px 37px; color: var(--muted); font-size: .83rem; }
.footer-button { border: 0; background: transparent; color: inherit; padding: 0; }
.footer-button:hover { color: var(--gold); }
dialog { width: min(330px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--panel); padding: 23px; text-align: center; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: #050905a8; overflow: hidden; overscroll-behavior: contain; }
dialog h1 { font-size: 1.35rem; margin-bottom: 10px; }
dialog p { color: var(--muted); }
dialog img { margin: 13px auto; border-radius: 5px; }
dialog button { color: #211a0b; background: var(--gold); border: 0; font-weight: 650; border-radius: 8px; min-width: 74px; min-height: 44px; margin-top: 13px; }
.share, .prose { padding-block: 40px 60px; max-width: 970px; }
.share h1, .prose h1 { overflow-wrap: anywhere; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.share-by { margin-bottom: 18px; color: var(--muted); overflow-wrap: anywhere; }
.share-image { width: 100%; border: 1px solid var(--line); border-radius: 14px; }
.share-actions { margin: 16px 0 34px; }
.app-list ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.app-list h3 { font-size: 1rem; color: var(--muted); }
.report { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 15px; }
.report summary { cursor: pointer; }
.report form { display: grid; justify-items: start; margin-top: 15px; }
.report textarea { width: min(100%, 440px); margin-bottom: 10px; }
.report output { margin-top: 8px; color: var(--muted); }
.prose h2 { margin-top: 24px; }
.prose p { margin-top: 8px; color: var(--muted); line-height: 1.75; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 36px); }
  .hero, .install { grid-template-columns: 1fr; }
  .hero { gap: 29px; padding-block: 36px; }
  .section-head { align-items: start; flex-direction: column; }
  .section { padding-block: 26px; }
}
@media (max-width: 460px) {
  .site-header { min-height: 62px; }
  .site-header nav { gap: 10px; font-size: .75rem; }
  .brand { gap: 5px; font-size: .88rem; }
  .brand span { width: 25px; height: 25px; }
  .hero h1 br { display: none; }
  .install { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
