:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #667085;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e6e1d8;
  --teal: #117f7a;
  --teal-dark: #0a5655;
  --shadow: 0 18px 55px rgba(24, 33, 47, 0.11);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(251,250,247,.94), rgba(251,250,247,.99)),
    radial-gradient(circle at 12% 8%, rgba(239,111,81,.12), transparent 27rem),
    radial-gradient(circle at 88% 0%, rgba(17,127,122,.12), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: calc(100% - 48px); max-width: 1440px; margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(230,225,216,.78);
  background: rgba(251,250,247,.9); backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 950; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(24,33,47,.08); box-shadow: 0 10px 24px rgba(24,33,47,.14);
}
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; gap: 20px; color: var(--muted); font-weight: 850; }
.back-link { color: var(--muted); font-weight: 850; }
.back-link:hover { color: var(--ink); }
main { padding: 42px 0 58px; }
.breadcrumbs {
  margin-bottom: 18px; color: var(--muted); font-size: .92rem; font-weight: 850;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: #a1a8b3; font-weight: 700; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-dark); }
.breadcrumbs [aria-current="page"] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-report {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; min-height: 38px;
  border: 1px solid rgba(17,127,122,.22); border-radius: 999px; padding: 0 13px;
  background: rgba(255,255,255,.86); color: var(--teal-dark); font-weight: 900; cursor: pointer;
}
.category-report:hover { border-color: rgba(17,127,122,.42); background: #fff; }
.detail {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(22px, 4vw, 48px); align-items: start;
}
.image-panel, .info-panel {
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.image-panel { padding: 20px; min-height: 640px; display: grid; place-items: center; overflow: auto; }
.image-panel img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.info-panel { padding: clamp(22px, 3vw, 34px); }
.live-preview-card {
  position: relative; overflow: hidden; min-height: 178px; margin-bottom: 22px;
  border: 1px solid rgba(230,225,216,.95); border-radius: 8px;
  background: linear-gradient(135deg, rgba(17,127,122,.1), transparent 46%), linear-gradient(315deg, rgba(217,160,24,.15), transparent 48%), #f5f2ec;
}
.live-preview-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(24,33,47,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(24,33,47,.04) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, black, transparent 92%);
  pointer-events: none;
}
.live-preview-label {
  position: absolute; left: 12px; top: 12px; z-index: 2; border-radius: 999px; padding: 5px 9px;
  background: rgba(255,255,255,.86); color: var(--teal-dark); font-size: .76rem; font-weight: 950;
  box-shadow: 0 8px 18px rgba(24,33,47,.08);
}
.live-preview-stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 178px; padding: 30px 16px 16px; }
.live-preview-stage img { width: min(44%, 180px); max-height: 132px; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(24,33,47,.16)); }
.live-sprite-viewport { display: grid; place-items: center; width: min(42%, 190px); aspect-ratio: 12 / 13; }
.live-sprite-frame {
  width: 100%; height: 100%; background-repeat: no-repeat; background-size: 800% var(--sprite-sheet-height, 900%);
  background-position: 0% var(--sprite-row-y, 62.5%); filter: drop-shadow(0 18px 16px rgba(24,33,47,.16));
  animation: detail-sprite-row-six 1200ms steps(1) infinite;
}
@keyframes detail-sprite-row-six {
  0% { background-position: 0% var(--sprite-row-y, 62.5%); }
  12.5% { background-position: 14.2857% var(--sprite-row-y, 62.5%); }
  25% { background-position: 28.5714% var(--sprite-row-y, 62.5%); }
  37.5% { background-position: 42.8571% var(--sprite-row-y, 62.5%); }
  50% { background-position: 57.1429% var(--sprite-row-y, 62.5%); }
  62.5% { background-position: 71.4286% var(--sprite-row-y, 62.5%); }
  75% { background-position: 85.7143% var(--sprite-row-y, 62.5%); }
  87.5%, 100% { background-position: 100% var(--sprite-row-y, 62.5%); }
}
.eyebrow {
  display: inline-flex; align-items: center; width: fit-content; border: 1px solid rgba(17,127,122,.2);
  border-radius: 999px; padding: 6px 11px; background: rgba(17,127,122,.07); color: var(--teal-dark);
  font-size: .82rem; font-weight: 900;
}
h1 { margin: 18px 0 14px; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .96; letter-spacing: 0; }
p { margin: 0; color: #4e5b6d; line-height: 1.65; }
.description { font-size: 1.06rem; }
.install-option {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  background: rgba(255,255,255,.68);
}
.install-option h2 { margin: 0 0 8px; font-size: 1.08rem; }
.quick-install {
  display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 8px; align-items: center;
  margin-top: 12px; border: 1px solid #dfe5e2; border-radius: 8px; padding: 9px 9px 9px 12px; background: #f8fbfa;
}
code { font-family: "SFMono-Regular", Consolas, monospace; color: #25313f; white-space: normal; word-break: break-all; }
.icon-button {
  width: 42px; height: 42px; border: 0; border-radius: 8px; display: grid; place-items: center;
  background: var(--teal); color: #fff; cursor: pointer;
}
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent;
  border-radius: 8px; padding: 0 16px; cursor: pointer; font-weight: 900;
}
.button.primary { background: var(--ink); color: #fff; }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.78); color: var(--ink); }
.manual-list { display: grid; gap: 10px; margin: 14px 0 0; }
.manual-list div { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; color: #42526a; line-height: 1.55; }
.manual-list strong {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: .84rem;
}
.path-list { display: grid; gap: 6px; margin-top: 8px; }
.path-list code { display: block; }
.activation-note {
  margin-top: 18px; border: 1px solid rgba(217,160,24,.28); border-radius: 8px;
  padding: 13px; background: rgba(217,160,24,.09); color: #5f4611; line-height: 1.55;
}
.activation-note strong { color: var(--ink); }
.share-rail {
  position: fixed; right: 18px; top: 50%; z-index: 40; display: grid; gap: 10px;
  transform: translateY(-50%);
}
.share-button {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(24,33,47,.1);
  border-radius: 999px; background: rgba(255,255,255,.93); color: var(--ink);
  box-shadow: 0 14px 34px rgba(24,33,47,.14); cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.share-button:hover { transform: translateX(-2px); border-color: rgba(17,127,122,.32); color: var(--teal-dark); }
.share-button .icon { width: 21px; height: 21px; }
.share-button .brand-icon { fill: currentColor; stroke: none; }
.share-copy-status {
  position: absolute; right: 58px; top: 100%; min-width: 112px; margin-top: 8px; padding: 9px 10px;
  box-shadow: 0 12px 28px rgba(24,33,47,.12); white-space: nowrap;
}
.status { display: none; margin-top: 10px; border-radius: 8px; padding: 10px 12px; background: rgba(17,127,122,.1); color: var(--teal-dark); font-weight: 900; }
.status.visible { display: block; }
.feedback-modal {
  position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 20px;
  background: rgba(10,15,24,.68); backdrop-filter: blur(10px);
}
.feedback-modal.visible { display: grid; }
.feedback-dialog {
  width: min(520px, 100%); border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  background: #fbfaf7; box-shadow: 0 30px 90px rgba(0,0,0,.34); overflow: hidden;
}
.feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.feedback-head h2 { margin: 0; font-size: 1.08rem; }
.feedback-body { padding: 16px; }
.feedback-body label { display: block; color: var(--ink); font-weight: 900; }
.feedback-body textarea {
  width: 100%; min-height: 130px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; background: #fff; color: var(--ink); resize: vertical; font: inherit;
}
.feedback-body .hp-field { position: absolute; left: -9999px; opacity: 0; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.more-section { padding-top: 34px; }
.more-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.more-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.more-head p { max-width: 480px; }
.recommend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rec-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.82); box-shadow: 0 10px 35px rgba(24,33,47,.06); }
.rec-preview { display: grid; place-items: center; aspect-ratio: 1.2; background: linear-gradient(135deg, rgba(17,127,122,.1), transparent 46%), linear-gradient(315deg, rgba(217,160,24,.14), transparent 48%), #f5f2ec; }
.rec-preview img { width: 64%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(24,33,47,.13)); }
.rec-sprite-viewport { display: grid; place-items: center; width: min(54%, 160px); aspect-ratio: 12 / 13; }
.rec-sprite-frame { width: 100%; height: 100%; background-repeat: no-repeat; background-size: 800% var(--sprite-sheet-height, 900%); background-position: 0% var(--sprite-row-y, 62.5%); filter: drop-shadow(0 16px 14px rgba(24,33,47,.13)); }
.rec-body { padding: 14px; }
.rec-body h3 { margin: 0 0 6px; font-size: 1rem; }
.rec-body p { display: -webkit-box; min-height: 3.1em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
footer { padding: 0 0 44px; color: var(--muted); }
.seo-footer {
  display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 28px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.footer-brand { display: grid; gap: 12px; max-width: 380px; }
.footer-brand strong, .footer-block strong { color: var(--ink); font-size: .96rem; }
.footer-brand p { margin: 0; line-height: 1.62; }
.footer-block { display: grid; align-content: start; gap: 10px; }
.footer-block a { color: var(--muted); font-weight: 760; }
.footer-block a:hover { color: var(--teal-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 24px;
  border-top: 1px solid rgba(224,229,226,.74); padding-top: 16px; font-size: .92rem;
}
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .image-panel { min-height: 420px; }
  .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-head { align-items: start; flex-direction: column; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .nav { min-height: 66px; }
  main { padding-top: 22px; }
  .image-panel, .info-panel { padding: 16px; }
  .live-preview-card, .live-preview-stage { min-height: 150px; }
  .live-sprite-viewport { width: min(52%, 150px); }
  .live-preview-stage img { width: min(52%, 150px); max-height: 112px; }
  .recommend-grid { grid-template-columns: 1fr; }
  .share-rail { right: 12px; gap: 8px; }
  .share-button { width: 42px; height: 42px; }
  .share-copy-status { right: 50px; }
  .seo-footer { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
}
