/* Parkdown Nexus — Blizzard-inspired download portal
   Palette and typography follow the theme brief. No Google Fonts. */

:root {
  --bg-0: #07080c;
  --bg-1: #0e1118;
  --bg-2: #141924;
  --panel: #161b24;
  --panel-2: #1b2130;
  --gold: #c9a24d;
  --gold-hi: #e8d5a3;
  --gold-dim: rgba(201, 162, 77, 0.28);
  --ember: #c4492a;
  --ember-soft: rgba(196, 73, 42, 0.18);
  --text: #e8e4d9;
  --muted: #9a9588;
  --line: rgba(201, 162, 77, 0.28);
  --line-soft: rgba(201, 162, 77, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --wrap: 1220px;
  --radius: 2px;
  --focus: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--gold-hi);
}

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

html {
  background: var(--bg-0);
  color: var(--text);
  font-size: 16px;
  scroll-behavior: smooth;
}

body.parkdown-theme {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 77, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 73, 42, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(201, 162, 77, 0.04), transparent 50%),
    var(--bg-0);
  position: relative;
}

/* Soft vignette + faint stone/noise (CSS only) */
body.parkdown-theme::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 18%, transparent 82%, rgba(0,0,0,.45) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.01) 0 1px, transparent 1px 4px);
  opacity: 1;
}

body.parkdown-theme::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.site-canvas {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--gold-hi); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: #fff6dc; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--gold);
  color: #1a1408;
  padding: 8px 14px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4, .wordmark, .hero-title, .soft-title {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-hi);
}

/* ---------- Utility bar ---------- */
.util-bar {
  background: linear-gradient(180deg, #10131a 0%, #0a0c11 100%);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.util-bar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  flex-wrap: wrap;
}
.util-bar a,
.util-bar button.linkish {
  color: var(--muted);
  padding: 6px 10px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.util-bar a:hover,
.util-bar button.linkish:hover { color: var(--gold-hi); }
.util-bar .sep {
  width: 1px;
  height: 12px;
  background: var(--line);
  opacity: .7;
}

/* ---------- Brand header ---------- */
.brand-bar {
  background:
    linear-gradient(180deg, rgba(201,162,77,0.06), transparent 70%),
    var(--bg-1);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0 12px;
}
.brand-bar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo img {
  width: 119px;
  height: 89px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wordmark {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 24px rgba(201,162,77,.15);
}
.wordmark a { color: inherit; }
.wordmark a:hover { color: #fff; }
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: none;
}

/* ---------- Franchise nav ---------- */
.franchise-nav {
  background:
    linear-gradient(180deg, #1c2230 0%, #12161f 55%, #0e1219 100%);
  border-top: 1px solid rgba(201,162,77,0.38);
  border-bottom: 1px solid #c9a24d;
  box-shadow:
    inset 0 1px 0 rgba(232,213,163,0.12),
    0 8px 22px rgba(0,0,0,.35);
  position: relative;
}
.franchise-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8d5a3, var(--gold), #e8d5a3, transparent);
  opacity: .7;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--gold-hi);
  border: 1px solid var(--line);
  padding: 8px 12px;
  margin: 8px 0;
  font: inherit;
  cursor: pointer;
}
.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
.nav-item { position: relative; flex: 1 1 auto; }
.nav-item > a,
.nav-item > button.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-body);
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.nav-item:first-child > a,
.nav-item:first-child > button { border-left: 1px solid var(--line-soft); }
.nav-item > a:hover,
.nav-item > button.nav-tab:hover,
.nav-item:hover > a,
.nav-item:hover > button.nav-tab,
.nav-item.is-open > button.nav-tab {
  color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(201,162,77,0.12), rgba(201,162,77,0.02));
}
.nav-item.is-active > a,
.nav-item.is-active > button.nav-tab {
  color: #fff6dc;
  background: linear-gradient(180deg, rgba(201,162,77,0.16), rgba(201,162,77,0.04));
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav-caret {
  font-size: 9px;
  opacity: .8;
  transform: translateY(1px);
}
.nav-drop {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  z-index: 40;
  padding: 8px 0;
  background: #161b24;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(232,213,163,0.08);
}
.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop,
.nav-item.is-open > .nav-drop { display: block; }
.nav-drop a {
  display: block;
  padding: 9px 16px;
  color: var(--text);
  font-size: 14px;
}
.nav-drop a:hover { background: rgba(201,162,77,0.1); color: var(--gold-hi); }

/* ---------- Search + hot tags ---------- */
.tools-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 0;
}
.tools-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hot-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
.hot-tags .label { color: var(--muted); }
.hot-tags a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}
.hot-tags a:hover { border-bottom-color: var(--gold-hi); color: var(--gold-hi); }

.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  background: #0c0f16;
  box-shadow: inset 0 1px 0 rgba(232,213,163,0.06);
  min-width: min(360px, 100%);
}
.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  min-width: 0;
}
.search-form input::placeholder { color: #6f6a60; }
.search-form button {
  border: 0;
  background: linear-gradient(180deg, #e8d5a3 0%, #c9a24d 55%, #a4842e 100%);
  color: #1a1408;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  letter-spacing: 0.12em;
  font-family: var(--font-body);
}
.search-form button:hover { filter: brightness(1.06); }

/* ---------- Panels, titles, chips ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(232,213,163,0.07), var(--shadow);
  position: relative;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: var(--gold);
  border-style: solid;
  opacity: .7;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after { top: -1px; right: -1px; border-width: 1px 1px 0 0; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  font-size: 16px;
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(201,162,77,0.09), transparent);
  font-family: var(--font-title);
}
.section-title .more { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 400; }
.section-title .more:hover { color: var(--gold-hi); }
.section-body { padding: 12px 16px 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  background: rgba(0,0,0,.25);
  letter-spacing: 0.02em;
}
.chip-gold { color: var(--gold-hi); border-color: var(--gold-dim); }
.badge-official {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1408;
  background: linear-gradient(180deg, #e8d5a3, #c9a24d);
  vertical-align: 1px;
}

/* Gold CTA */
.btn-gold,
.parkdown-downloads a,
.download-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid #f0e0b0;
  background: linear-gradient(180deg, #efe0b3 0%, #c9a24d 48%, #9b7a2b 100%);
  color: #1a1408 !important;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 1px #5c4a1e, 0 8px 22px rgba(201,162,77,0.28), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  text-decoration: none !important;
}
.btn-gold:hover,
.parkdown-downloads a:hover,
.download-list a:hover {
  filter: brightness(1.07);
  color: #120e06 !important;
}
.btn-gold .ico,
.download-list a .ico { width: 16px; height: 16px; display: inline-block; }

/* ---------- Homepage ---------- */
.site-main { flex: 1 0 auto; padding: 28px 0 48px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.home-primary,
.home-side,
.cat-grid,
.cat-block,
.panel {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-height: 320px;
}
.hero-cover {
  position: relative;
  min-height: 320px;
  background: #0a0c10;
  overflow: hidden;
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 320px;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(14,17,24,0.15) 80%, var(--panel) 100%),
              linear-gradient(180deg, transparent 70%, rgba(7,8,12,0.35) 100%);
  pointer-events: none;
}
.hero-copy {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.hero-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
}
.hero-title { margin: 0; font-size: 28px; line-height: 1.3; }
.hero-title a { color: inherit; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-excerpt { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  color: var(--gold-hi);
  background: rgba(0,0,0,.25);
}
.btn-ghost:hover { border-color: var(--gold); color: #fff; }

.notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(201,162,77,0.06);
  color: var(--muted);
  font-size: 13px;
}

.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,162,77,0.1);
  font-size: 14px;
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list .cat-chip { color: var(--gold); font-size: 12px; white-space: nowrap; }
.latest-list a {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-list a:hover { color: var(--gold-hi); }
.latest-list .when { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.cat-block .item-list { list-style: none; margin: 0; padding: 0; }
.cat-block .item-list li {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(201,162,77,0.14);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.cat-block .item-list a {
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-block .item-list a:hover { color: var(--gold-hi); }
.cat-block .item-list .hits { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.empty-state {
  margin: 0;
  padding: 18px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.home-side > .panel + .panel { margin-top: 16px; }

.announce-list,
.announce-archive { list-style: none; margin: 0; padding: 0; }
.announce-list li,
.announce-archive li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,162,77,0.1);
  font-size: 13px;
}
.announce-list li:last-child,
.announce-archive li:last-child { border-bottom: 0; }
.announce-list a,
.announce-archive a {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce-list a:hover,
.announce-archive a:hover { color: var(--gold-hi); }
.announce-list time,
.announce-archive time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.announce-head { padding: 18px 20px 0; }
.announce-head .soft-title { margin: 0 0 8px; }
.announce-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.announce-body { padding-top: 8px; font-size: 15px; line-height: 1.8; }
.announce-body p:first-child { margin-top: 0; }
.announce-back { padding: 0 20px 20px; margin: 0; }
.announce-back a { color: var(--gold-hi); }

.stats-list { list-style: none; margin: 0; padding: 0; }
.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,162,77,0.1);
  font-size: 14px;
  color: var(--muted);
}
.stats-list b { color: var(--gold-hi); font-weight: 700; font-variant-numeric: tabular-nums; }

.topic-banners { display: flex; flex-direction: column; gap: 10px; }
.topic-banners a {
  display: block;
  border: 1px solid var(--line-soft);
  background: #0c0f16;
  line-height: 0;
}
.topic-banners img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  background: #0a0c12;
}
.topic-banners a:hover { border-color: var(--gold); }

.hot-list { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,162,77,0.1);
  font-size: 13px;
  counter-increment: hot;
}
.hot-list li::before {
  content: counter(hot);
  flex: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.hot-list a { color: var(--text); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list a:hover { color: var(--gold-hi); }
.hot-list .hits { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ---------- Software detail ---------- */
.crumb {
  margin: 0 0 16px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(22,27,36,0.7);
  border: 1px solid var(--line-soft);
}
.crumb a { color: var(--gold); }
.crumb .sep { margin: 0 6px; color: #6f6a60; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.soft-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}
.cover-frame {
  position: relative;
  background: #0a0c12;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(14,17,24,0.9), 0 0 0 1px rgba(201,162,77,0.15);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover-frame img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 200px;
  color: var(--muted);
  font-size: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(201,162,77,0.08), transparent 60%),
    #0a0c12;
}
.cover-placeholder img { width: 88px; height: 66px; opacity: .85; cursor: default; }

.soft-title { margin: 0 0 8px; font-size: 26px; line-height: 1.35; color: #f3ead2; }
.soft-tags { margin: 0 0 14px; font-size: 13px; }
.soft-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--gold-hi);
}
.soft-tags a:hover { border-color: var(--gold); background: rgba(201,162,77,0.08); }

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.fact-list li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(201,162,77,0.16);
  font-size: 14px;
}
.fact-list .k { color: var(--muted); }
.fact-list .v { color: var(--text); }
.fact-list a { color: var(--gold); }

.intro-block { margin-top: 18px; padding: 4px 20px 22px; }
.intro-block h3,
.parkdown-soft-intro h3,
.downloads-block h3 {
  margin: 0 0 14px;
  padding: 8px 0;
  font-size: 18px;
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
}
.intro-block .body,
.parkdown-soft-intro {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}
.intro-block .body img,
.parkdown-soft-intro img {
  display: block;
  margin: 16px auto;
  max-width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  cursor: zoom-in;
}

.downloads-block { margin: 18px 20px 22px; padding: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(201,162,77,0.07), rgba(0,0,0,0.15)); }
.download-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.download-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.download-list a { min-width: 160px; }
.coop-note {
  flex: 1;
  min-width: 220px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(201,162,77,0.35);
  background: rgba(14,17,24,0.65);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.coop-note b { color: var(--gold-hi); font-weight: 600; }

/* ---------- Lists / search / tags ---------- */
.list-head { margin: 0 0 16px; }
.list-head h1 { margin: 0 0 6px; font-size: 24px; }
.list-head p { margin: 0; color: var(--muted); font-size: 13px; }

.soft-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.soft-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.soft-card:hover { border-color: var(--line); }
.thumb {
  width: 120px;
  height: 90px;
  background: #0a0c12;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.soft-card h2 { margin: 0 0 6px; font-size: 17px; }
.soft-card h2 a { color: var(--gold-hi); }
.soft-card .meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 22px 0 0;
  font-size: 13px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: var(--panel);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-hi); }
.pagination .current {
  background: linear-gradient(180deg, #e8d5a3, #c9a24d);
  color: #1a1408;
  border-color: #e8d5a3;
  font-weight: 700;
}
.pagination .disabled { color: #5c574e; cursor: default; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #0e1118, #090b10);
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.friend-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.friend-head h2 { margin: 0; font-size: 16px; }
.friend-head .hint { color: var(--muted); font-size: 12px; }
.friend-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.friend-logos a {
  display: block;
  border: 1px solid var(--line-soft);
  background: #fff;
  line-height: 0;
  padding: 2px;
}
.friend-logos img { width: 88px; height: 31px; object-fit: contain; display: block; }
.friend-logos a:hover { border-color: var(--gold); }
.friend-logos .text-link {
  background: var(--panel);
  color: var(--gold-hi);
  padding: 6px 10px;
  line-height: 1.4;
  font-size: 13px;
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.copyright .disclaimer {
  margin: 10px 0 0;
  color: #c4492a;
  font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border: 1px solid var(--line);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 0;
  color: var(--gold-hi);
  font-size: 28px;
  cursor: pointer;
}

/* toast */
.pd-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.pd-toast.show { opacity: 1; }

/* ---------- 404 ---------- */
.error-box { max-width: 560px; margin: 40px auto; padding: 32px; text-align: center; }
.error-box h1 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-grid,
  .detail-grid,
  .hero,
  .soft-head { grid-template-columns: 1fr; }
  .hero-cover::after { background: linear-gradient(180deg, transparent 60%, var(--panel) 100%); }
  .hero-cover img,
  .hero-cover { min-height: 220px; }
  .cat-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .franchise-nav .wrap { padding: 4px 0 8px; }
  .nav-list { display: none; flex-direction: column; }
  .franchise-nav.is-open .nav-list { display: flex; }
  .nav-item > a,
  .nav-item > button.nav-tab { justify-content: flex-start; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .nav-drop { position: static; border: 0; box-shadow: none; background: #10141c; padding-left: 12px; }
}
@media (max-width: 640px) {
  .wordmark { font-size: 22px; }
  .brand-logo img { width: 90px; height: 67px; }
  .soft-head,
  .soft-card { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 140px; }
  .hero-title, .soft-title { font-size: 22px; }
  .util-bar .wrap { justify-content: flex-start; }
  .btn-gold, .download-list a { width: 100%; }
  .tools-bar .wrap { flex-direction: column; align-items: stretch; }
  .search-form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
