/* ==========================================================================
   园地联机补丁 · 暗色编辑器风格
   设计基调：近黑底 + 暖白文字 + 酸性绿点缀，细线网格与等宽标签
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-soft: #0b0d10;
  --surface: #0e1115;
  --surface-2: #12161b;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceae4;
  --text-soft: #c7cac1;
  --muted: #8b8f86;
  --accent: #c8f45a;
  --accent-soft: rgba(200, 244, 90, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 64px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景：柔光 + 细网格，低到几乎不可见，只为质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(920px 520px at 82% -12%, rgba(200, 244, 90, 0.1), transparent 62%),
    radial-gradient(760px 620px at -8% 4%, rgba(96, 132, 255, 0.055), transparent 60%),
    linear-gradient(180deg, #08090b 0%, #08090b 55%, #07080a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}

::selection {
  background: var(--accent);
  color: #0a0d05;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

code,
kbd {
  font-family: var(--mono);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 860px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0d05;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.9);
  box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(200, 244, 90, 0.42);
  background: linear-gradient(155deg, rgba(200, 244, 90, 0.2), rgba(200, 244, 90, 0.02));
  color: var(--accent);
}

.brand-mark svg {
  width: 15px;
  height: 15px;
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  transform: translateY(1px);
  white-space: nowrap;
}

/* 站内公告条：说明这是第三方镜像站 */
.mirror-bar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(200, 244, 90, 0.07), rgba(255, 255, 255, 0.015) 62%);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.mirror-bar .container {
  padding-block: 8px;
}

.mirror-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.mirror-bar a:hover {
  color: #d9ff7a;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}

.header-copy {
  margin-left: 4px;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #0a0d05;
  box-shadow: 0 10px 26px -14px rgba(200, 244, 90, 0.55);
}

.btn-primary:hover {
  background: #d8ff74;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -16px rgba(200, 244, 90, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.btn-copy {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  gap: 6px;
}

.btn-copy:hover {
  color: var(--accent);
  border-color: rgba(200, 244, 90, 0.38);
  background: var(--accent-soft);
}

.btn-copy svg {
  width: 13px;
  height: 13px;
}

.btn-block {
  width: 100%;
  height: 46px;
  font-size: 14px;
}

.btn-block svg {
  width: 16px;
  height: 16px;
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------------- 首屏 */
.hero {
  padding: clamp(52px, 8vw, 104px) 0 clamp(36px, 5vw, 64px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 244, 90, 0.13);
  animation: pulse 2.6s var(--ease) infinite;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 660;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.3vw, 1.04rem);
  line-height: 1.78;
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 7px 0 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.hero-stats small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(21, 25, 29, 0.92), rgba(11, 13, 16, 0.94));
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at 100% 0%, rgba(200, 244, 90, 0.09), transparent 72%);
}

.panel-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-soft);
}

.panel-steps {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-soft);
}

.panel-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.panel-steps span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ------------------------------------------------------------ 密码控件 */
.password-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 10px 9px 13px;
  border: 1px dashed rgba(200, 244, 90, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(200, 244, 90, 0.05);
}

.password-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.password-value {
  margin-right: auto;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(200, 244, 90, 0.35);
  border-radius: 7px;
  background: rgba(200, 244, 90, 0.1);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 550;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.copy-btn svg {
  width: 12px;
  height: 12px;
}

.copy-btn:hover {
  background: rgba(200, 244, 90, 0.18);
  border-color: rgba(200, 244, 90, 0.55);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.is-copied {
  background: var(--accent);
  color: #0a0d05;
  border-color: var(--accent);
}

.password-box-wide {
  padding: 16px 18px;
}

.password-box-wide .password-value {
  font-size: 19px;
}

.copy-btn-wide {
  width: 100%;
  height: 40px;
  justify-content: center;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- 列表 */
.library {
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 6px;
}

.section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.section-count strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 3px;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.95) 30%, rgba(8, 9, 11, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 430px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.search:focus-within {
  border-color: rgba(200, 244, 90, 0.5);
  background: rgba(200, 244, 90, 0.045);
  box-shadow: 0 0 0 3px rgba(200, 244, 90, 0.08);
}

.search-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}

.search input::placeholder {
  color: #6f736c;
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}

.search-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

/* ---------------------------------------------------------------- 卡片 */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1115 0%, #0b0d10 100%);
  transition: transform 0.38s var(--ease), border-color 0.3s var(--ease), box-shadow 0.38s var(--ease);
  animation: rise 0.55s var(--ease) both;
}

.card:nth-child(2) { animation-delay: 0.03s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.09s; }
.card:nth-child(5) { animation-delay: 0.12s; }
.card:nth-child(6) { animation-delay: 0.15s; }
.card:nth-child(7) { animation-delay: 0.18s; }
.card:nth-child(8) { animation-delay: 0.21s; }
.card:nth-child(n + 9) { animation-delay: 0.24s; }

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 244, 90, 0.32);
  box-shadow: 0 26px 46px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(200, 244, 90, 0.05);
}

.card[hidden] {
  display: none;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14171b;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 40%, rgba(8, 9, 11, 0.5));
  pointer-events: none;
}

.cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.65s var(--ease);
}

.cover-img.is-loaded {
  opacity: 1;
}

.card:hover .cover-img {
  transform: scale(1.05);
}

.card.is-broken .cover-img {
  opacity: 0;
}

.cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(320px 180px at 30% 20%, rgba(200, 244, 90, 0.14), transparent 70%),
    linear-gradient(150deg, #171b20, #0d1013);
}

.cover-fallback span {
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -0.04em;
}

.card-tag {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #d6d8ce;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px 16px;
}

.card-title {
  padding-right: 22px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #7d8179;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #474b44;
}

.card-arrow {
  position: absolute;
  right: 13px;
  bottom: 15px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.card-arrow svg {
  width: 100%;
  height: 100%;
}

.card:hover .card-arrow {
  opacity: 1;
  transform: none;
  color: var(--accent);
}

/* ------------------------------------------------------------ 空 / 错误 */
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty[hidden] {
  display: none;
}

.empty-mark {
  font-family: var(--mono);
  font-size: 30px;
  color: rgba(200, 244, 90, 0.55);
}

.empty h3 {
  font-size: 16px;
  margin: 4px 0 0;
}

.empty p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.notice-bar {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--text-soft);
}

.data-banner {
  padding: 9px var(--gutter);
  border-bottom: 1px solid rgba(240, 200, 90, 0.25);
  background: rgba(240, 200, 90, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #e8d39b;
  text-align: center;
}

/* ---------------------------------------------------------------- 步骤 */
.how {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-grid li {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.step-no {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.step-grid h3 {
  font-size: 15.5px;
  margin-bottom: 7px;
}

.step-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link svg {
  width: 13px;
  height: 13px;
}

.text-link:hover {
  color: var(--accent);
  gap: 9px;
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px;
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 2px 18px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.faq-answer code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(200, 244, 90, 0.1);
  color: var(--accent);
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- 详情 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span[aria-current] {
  color: #b6b9b0;
}

.patch-head .eyebrow {
  margin-bottom: 14px;
}

.patch-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin-bottom: 8px;
}

.patch-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: #b6b9b0;
}

.chip-accent {
  border-color: rgba(200, 244, 90, 0.34);
  background: rgba(200, 244, 90, 0.07);
  color: var(--accent);
}

.patch-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  margin: 26px 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111418;
}

.patch-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 55%, rgba(8, 9, 11, 0.45));
  pointer-events: none;
}

.patch-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patch-cover .cover-fallback span {
  font-size: 64px;
}

.patch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.block {
  margin-bottom: 42px;
}

.block h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.block-lede {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.download-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(20, 24, 28, 0.94), rgba(11, 13, 16, 0.96));
  box-shadow: 0 30px 60px -46px rgba(0, 0, 0, 0.95);
}

.download-hint {
  margin: 10px 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.facts {
  margin: 0 0 18px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.facts dt {
  color: var(--muted);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  text-align: right;
  color: var(--text-soft);
}

.facts code {
  font-size: 11.5px;
  color: var(--accent);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
}

.step-index {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 244, 90, 0.28);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
}

.steps h3 {
  font-size: 14px;
  margin: 3px 0 5px;
}

.steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(200, 244, 90, 0.1);
  color: var(--accent);
  font-size: 12px;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(200, 244, 90, 0.6);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.link-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.link-list a {
  transition: color 0.2s var(--ease);
}

.link-list a:hover {
  color: var(--accent);
}

.link-list span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.block-more {
  margin: 18px 0 0;
}

.related {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------ 通用页面 */
.page-head {
  padding: 10px 0 36px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
}

.prose .block p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.prose .block p:last-child {
  margin-bottom: 0;
}

.prose .block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.notfound {
  padding: clamp(60px, 12vw, 140px) 0;
  text-align: left;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 16px 0 12px;
  letter-spacing: -0.035em;
}

.notfound p {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
}

.footer-brand p {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-facts {
  margin: 0;
  display: grid;
  gap: 0;
  align-content: start;
}

.footer-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}

.footer-facts dt {
  color: var(--muted);
}

.footer-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-soft);
  text-align: right;
}

.footer-facts code {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #6f736c;
}

.footer-bottom span:last-child {
  max-width: 62ch;
}

/* ---------------------------------------------------------------- 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 11px 18px;
  border: 1px solid rgba(200, 244, 90, 0.35);
  border-radius: 999px;
  background: rgba(14, 17, 21, 0.96);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.95);
  font-size: 12.5px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- 动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(200, 244, 90, 0.13);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(200, 244, 90, 0.04);
  }
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .patch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-card {
    position: static;
    order: -1;
    margin-bottom: 8px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .brand-tag {
    display: none;
  }

  .site-nav {
    gap: 16px;
    font-size: 12.5px;
  }

  .header-copy span {
    display: none;
  }

  .header-copy {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .hero-stats {
    gap: 22px;
  }

  .hero-stats dd {
    font-size: 1.4rem;
  }

  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }

  .search kbd {
    display: none;
  }

  .search-status {
    order: 2;
  }

  .patch-cover {
    aspect-ratio: 16 / 10;
    margin: 22px 0 30px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 14px;
  }

  .site-nav a[href="/about/"] {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 12px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
