:root {
  color-scheme: dark;
  --bg: #070a0b;
  --ink: #f3efe2;
  --muted: #adb5ab;
  --line: rgba(236, 230, 203, 0.16);
  --line-strong: rgba(236, 230, 203, 0.28);
  --panel: rgba(16, 21, 19, 0.78);
  --shadow: rgba(0, 0, 0, 0.48);
  --gold: #d0b766;
  --gold-2: #f1d989;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #070a0b; color: var(--ink); }
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(7, 10, 11, 0.9);
  border-bottom: 1px solid rgba(236, 230, 203, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .09em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-2); }
.nav-links { justify-self: center; display: flex; align-items: center; gap: 22px; color: #d8d3bf; font-size: 14px; }
.nav-links a { opacity: .82; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); opacity: 1; }
.btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(236,230,203,.34); padding: 0 16px; font-weight: 900; }
.btn.primary { background: linear-gradient(135deg, var(--gold), #a9924c); color: #12110c; }
.btn.ghost { color: #efe9d2; background: rgba(236,230,203,.06); }
.hero {
  min-height: 280px;
  display: grid;
  align-items: end;
  padding: 92px clamp(18px, 5vw, 72px) 42px;
  background:
    linear-gradient(90deg, rgba(7,10,11,.92), rgba(7,10,11,.66)),
    url("./assets/hero.jpg") center / cover no-repeat;
}
.hero-inner, .main-inner { max-width: 1180px; width: 100%; margin: 0 auto; }
.ranking-page-inner { max-width: 1420px; }
.kicker { color: var(--gold-2); font-weight: 900; letter-spacing: .18em; }
h1 { margin: 14px 0 0; font-size: clamp(42px, 7vw, 82px); line-height: .95; }
.lead { margin-top: 16px; color: #e5dec8; line-height: 1.8; max-width: 820px; font-size: 18px; }
main { padding: 54px clamp(18px, 5vw, 72px) 80px; }
.content-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18,24,22,.9), rgba(10,14,13,.96)); padding: 26px; margin-bottom: 16px; }
.content-card h2 { margin: 0 0 14px; color: var(--gold-2); font-size: 28px; }
.content-body { color: #e5dec8; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.rules-hero { min-height: 320px; background:
  linear-gradient(90deg, rgba(7,10,11,.94), rgba(7,10,11,.62)),
  url("./assets/survival.jpg") center 42% / cover no-repeat; }
.rules-main { padding-top: 34px; }
.rules-inner { max-width: 1180px; }
.rules-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.rules-section-head h2 { margin: 8px 0 0; color: #fff0cd; font-size: clamp(28px, 4vw, 42px); }
.rules-section-head p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.rules-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rules-summary-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; min-width: 0; min-height: 156px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18,24,22,.92), rgba(9,13,12,.98)); padding: 18px; }
.rules-summary-card > div { min-width: 0; }
.rules-card-index { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(208,183,102,.42); color: var(--gold-2); font: 900 11px/1 Consolas, monospace; background: rgba(208,183,102,.09); }
.rules-summary-card strong { color: var(--gold-2); font-size: 12px; }
.rules-summary-card h3 { margin: 8px 0 8px; color: #fff0cd; font-size: 21px; line-height: 1.25; }
.rules-summary-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rules-policy-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line-strong); background: rgba(13,18,17,.9); }
.rules-policy-strip > div { min-width: 0; padding: 17px 19px; border-right: 1px solid var(--line); }
.rules-policy-strip > div:last-child { border-right: 0; }
.rules-policy-strip span, .rules-policy-strip strong, .rules-policy-strip p { display: block; }
.rules-policy-strip span { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.rules-policy-strip strong { margin-top: 6px; color: #fff0cd; font-size: 16px; }
.rules-policy-strip p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rules-detail-section { margin-top: 48px; }
.rules-detail { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(13,18,17,.66); padding: 28px clamp(20px, 3vw, 34px); }
.rules-server-note { margin: 0 0 14px; border-left: 3px solid var(--gold); background: rgba(208,183,102,.09); padding: 16px 18px; }
.rules-server-note strong { display: block; color: var(--gold-2); font-size: 15px; }
.rules-server-note p { margin: 6px 0 0; color: #ddd8c8; font-size: 13px; line-height: 1.65; }
.rules-content { color: #e5dec8; line-height: 1.85; overflow-wrap: anywhere; }
.rules-content h2 { margin: 28px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); color: #fff0cd; font-size: 25px; }
.rules-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rules-content h3 { margin: 24px 0 8px; color: var(--gold-2); font-size: 18px; }
.rules-content p { margin: 0 0 10px; color: #ddd8c8; }
.rules-content ol { margin: 0 0 14px; padding: 0 0 0 24px; color: #ddd8c8; }
.rules-content li { margin: 6px 0; padding-left: 5px; }
.reports-hero { min-height: 340px; background:
  linear-gradient(90deg, rgba(7,10,11,.94), rgba(7,10,11,.66)),
  url("./assets/combat.jpg") center 58% / cover no-repeat; }
.reports-main { padding-top: 34px; }
.reports-inner { max-width: 1120px; }
.reports-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: rgba(13,18,17,.9); }
.reports-overview > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.reports-overview > div:last-child { border-right: 0; }
.reports-overview strong, .reports-overview span { display: block; }
.reports-overview strong { color: #fff0cd; font-size: 15px; }
.reports-overview span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.reports-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 46px 0 18px; }
.reports-section-head h2 { margin: 8px 0 0; color: #fff0cd; font-size: clamp(28px, 4vw, 42px); }
.reports-section-head p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.reports-section-head.compact { margin-top: 44px; }
.report-case { border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(18,24,22,.95), rgba(9,13,12,.98)); box-shadow: 0 18px 40px var(--shadow); }
.report-case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.report-case-id { color: var(--gold); font: 800 11px/1.3 Consolas, monospace; letter-spacing: .12em; }
.report-case h2 { margin: 9px 0 6px; color: #fff3d2; font-size: clamp(25px, 4vw, 38px); }
.report-case-head p { margin: 0; color: var(--muted); line-height: 1.5; }
.report-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.report-status { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); font-size: 12px; font-weight: 900; white-space: nowrap; }
.report-status.warning { color: #f2d789; border-color: rgba(208,183,102,.55); background: rgba(142,112,42,.16); }
.report-status.clear { color: #a8dec9; border-color: rgba(108,181,158,.5); background: rgba(50,112,94,.13); }
.report-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.report-facts > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.report-facts > div:last-child { border-right: 0; }
.report-facts span, .report-facts strong { display: block; }
.report-facts span { color: var(--muted); font-size: 12px; }
.report-facts strong { margin-top: 7px; color: #eee7d3; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.report-outcome { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 26px 28px 28px; }
.report-outcome-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(208,183,102,.45); color: var(--gold-2); font: 900 13px/1 Consolas, monospace; background: rgba(208,183,102,.1); }
.report-outcome h3 { margin: 0 0 10px; color: #fff0cd; font-size: 20px; }
.report-outcome p { margin: 0; color: #e5dec8; line-height: 1.8; }
.report-outcome p + p { margin-top: 10px; }
.report-note { color: #f1d989 !important; }
.report-incident { margin: 0 28px 26px; border: 1px solid rgba(208,183,102,.34); background: rgba(208,183,102,.055); }
.report-incident-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 17px 18px 14px; border-bottom: 1px solid rgba(236,230,203,.12); }
.report-incident-kicker { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.report-incident h3 { margin: 7px 0 0; color: #fff0cd; font-size: 19px; }
.report-incident-source { color: #a8dec9; font-size: 12px; font-weight: 900; white-space: nowrap; }
.report-incident-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-incident-grid > div { min-width: 0; padding: 16px 18px; border-right: 1px solid rgba(236,230,203,.12); }
.report-incident-grid > div:last-child { border-right: 0; }
.report-incident-grid span, .report-incident-grid strong, .report-incident-grid small { display: block; }
.report-incident-grid span { color: var(--muted); font-size: 12px; }
.report-incident-grid strong { margin-top: 7px; color: #fff0cd; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.report-incident-grid small { margin-top: 5px; color: #8e9b92; font-size: 11px; line-height: 1.4; }
.report-incident-note { margin: 0; padding: 12px 18px 15px; border-top: 1px solid rgba(236,230,203,.1); color: var(--muted); font-size: 12px; line-height: 1.6; }
.report-case-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 14px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.report-empty { border: 1px dashed var(--line-strong); background: rgba(236,230,203,.025); padding: 30px 28px; }
.report-empty strong, .report-empty span { display: block; }
.report-empty strong { color: #fff0cd; font-size: 20px; }
.report-empty span { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.report-rules { border-top: 1px solid var(--line-strong); margin-top: 50px; padding-top: 4px; }
.report-cycle-rule { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; margin-bottom: 14px; border-left: 2px solid var(--gold); background: rgba(208,183,102,.07); padding: 16px 18px; }
.report-cycle-rule strong { color: #fff0cd; }
.report-cycle-rule span { color: #e5dec8; font-size: 13px; line-height: 1.7; }
.report-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-rule-grid article { min-width: 0; border: 1px solid var(--line); background: rgba(236,230,203,.035); padding: 20px; }
.report-rule-grid article > span { color: var(--gold-2); font-size: 12px; font-weight: 900; }
.report-rule-grid h3 { margin: 10px 0 8px; color: #fff0cd; font-size: 20px; }
.report-rule-grid p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.report-boundary { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; margin-top: 52px; padding: 26px 28px; border-left: 2px solid var(--gold); background: rgba(208,183,102,.07); }
.report-boundary h2 { margin: 9px 0 0; color: #fff0cd; font-size: clamp(22px, 3vw, 30px); }
.report-boundary p { margin: 0; color: #e5dec8; line-height: 1.8; }
.shortcut-module { margin-top: 18px; border: 1px solid var(--line-strong); background: rgba(13,18,17,.86); padding: clamp(20px, 3vw, 34px); }
.shortcut-module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.shortcut-kicker { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.shortcut-module h2 { margin: 8px 0 6px; color: #fff0cd; font-size: clamp(26px, 3vw, 38px); }
.shortcut-module-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.shortcut-rule { flex: 0 0 auto; border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; color: #fff0cd; line-height: 1.5; text-align: left; }
.shortcut-rule span { display: block; color: var(--muted); font-size: 12px; }
.shortcut-quickbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 22px 0 28px; }
.quick-key { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid rgba(208,183,102,.34); background: linear-gradient(135deg, rgba(91,73,28,.32), rgba(236,230,203,.035)); padding: 12px; }
.quick-key kbd, .shortcut-item kbd { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 46px; min-height: 38px; border: 1px solid rgba(208,183,102,.62); border-bottom: 3px solid var(--gold); background: #1a1c18; color: #fff0bd; font: 900 13px/1.15 "Segoe UI", "Microsoft YaHei", sans-serif; text-align: center; padding: 4px 7px; white-space: normal; }
.quick-key strong, .quick-key span, .shortcut-item strong, .shortcut-item span { display: block; overflow-wrap: anywhere; }
.quick-key strong { color: #fff0cd; font-size: 13px; line-height: 1.35; }
.quick-key span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.shortcut-groups { column-count: 2; column-gap: clamp(24px, 5vw, 64px); column-fill: balance; }
.shortcut-group { min-width: 0; break-inside: avoid; border-top: 1px solid var(--line-strong); padding-top: 16px; margin: 0 0 32px; }
.shortcut-group h3 { margin: 0 0 10px; color: #f3ddb0; font-size: 18px; }
.shortcut-list { display: grid; }
.shortcut-item { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid rgba(236,230,203,.08); padding: 8px 0; }
.shortcut-item:last-child { border-bottom: 0; }
.shortcut-item kbd { justify-self: start; min-width: 74px; border-color: rgba(236,230,203,.25); border-bottom-color: rgba(236,230,203,.42); background: #151a18; color: #e5dec8; font-size: 11px; }
.shortcut-item strong { color: #eee7d3; font-size: 13px; line-height: 1.35; }
.shortcut-item span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.content-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.content-title-row h2 { margin: 0; }
.server-tabs { display: flex; gap: 8px; margin: 0 0 18px; }
.server-tabs .btn.active { border-color: var(--accent); color: var(--accent); background: rgba(214, 169, 84, .14); }
.archive-item { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.archive-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.archive-item h3 { margin: 0 0 12px; color: #f3ddb0; font-size: 20px; }
.pill { height: 30px; display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 0 10px; color: #efe9d2; font-weight: 800; font-size: 13px; background: rgba(7,10,11,.54); }
.ranking-board {
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(13,18,17,.9), rgba(5,7,7,.94));
  overflow: hidden;
}
.ranking-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}
.ranking-head h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); }
.ranking-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.ranking-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.rank-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(4,6,6,.35);
}
.rank-tab {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  height: 42px;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}
.rank-tab:last-child { border-right: 0; }
.rank-tab.active { background: var(--gold); color: #11100d; }
.rank-server {
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(4,6,6,.35);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
  outline: none;
}
.ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px 22px 22px;
}
.ranking-panel {
  border: 1px solid var(--line);
  background: rgba(236,230,203,.035);
  padding: 16px;
  overflow: hidden;
  align-self: start;
}
.ranking-panel h3 { margin: 0; font-size: 20px; }
.ranking-list { display: grid; gap: 10px; margin-top: 12px; }
.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(236,230,203,.12);
  background:
    linear-gradient(90deg, rgba(208,183,102,.11), transparent 32%),
    rgba(236,230,203,.045);
  min-height: 112px;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.squad-rank-row { min-height: 0; }
.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(208,183,102,.34);
  background:
    linear-gradient(90deg, rgba(208,183,102,.16), transparent 36%),
    rgba(236,230,203,.06);
}
.rank-num {
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(208,183,102,.12);
  color: var(--gold-2);
  font-weight: 900;
  border: 1px solid rgba(208,183,102,.3);
}
.rank-identity { grid-column: 2; grid-row: 1; min-width: 0; }
.rank-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 17px; font-weight: 900; }
.rank-title span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-desc { margin: 4px 0 0; color: var(--muted); line-height: 1.5; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-label { color: var(--gold-2); font-weight: 900; margin-right: 4px; }
.member-divider { color: rgba(236,230,203,.38); margin: 0 8px; }
.leader-name { color: #fff0cd; font-weight: 900; }
.rank-line {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.squad-rank-row .rank-line { grid-template-columns: .9fr .9fr 1.35fr .95fr; }
.rank-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.rank-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-left: 2px solid rgba(208,183,102,.55);
  background: linear-gradient(90deg, rgba(208,183,102,.08), rgba(4,6,6,.08));
  padding: 6px 8px;
}
.rank-chip span { color: var(--gold-2); font-size: 12px; font-weight: 900; }
.rank-chip strong { color: #fff0cd; font-size: 13px; line-height: 1.3; word-break: keep-all; }
.rank-chip.feature strong { font-size: 14px; }
.rank-score {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  text-align: right;
  color: #fff0cd;
  font-weight: 950;
  font-size: 24px;
  line-height: 1;
  min-width: 72px;
}
.rank-score span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.ranking-empty { color: var(--muted); line-height: 1.7; border: 1px dashed var(--line); padding: 18px; margin-top: 16px; }

/* Exchange directory */
.exchange-hero {
  min-height: 330px;
  background:
    linear-gradient(90deg, rgba(7,10,11,.96) 0%, rgba(7,10,11,.78) 48%, rgba(7,10,11,.42) 100%),
    url("./assets/combat.jpg") center 42% / cover no-repeat;
}
.exchange-hero h1 { font-size: clamp(44px, 6vw, 72px); }
.exchange-main { padding-top: 28px; }
.exchange-inner { max-width: 1320px; }
.exchange-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: rgba(13,18,17,.94);
}
.exchange-rules > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.exchange-rules > div:last-child { border-right: 0; }
.exchange-rules strong,
.exchange-rules span { display: block; }
.exchange-rules strong { color: #fff0cd; font-size: 14px; }
.exchange-rules span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.exchange-toolbar {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(7,10,11,.96);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.exchange-category-tabs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.exchange-category-tabs button,
.exchange-summary button {
  border: 1px solid var(--line);
  background: rgba(236,230,203,.05);
  color: #ddd7c3;
  font: 800 13px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.exchange-category-tabs button { height: 40px; padding: 0 13px; white-space: nowrap; }
.exchange-category-tabs button:hover { border-color: rgba(208,183,102,.52); color: #fff0cd; }
.exchange-category-tabs button.active { border-color: var(--gold); background: var(--gold); color: #15130d; }
.exchange-tools { display: flex; align-items: center; gap: 8px; min-width: 380px; }
.exchange-search {
  flex: 1 1 260px;
  height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(236,230,203,.04);
  padding: 0 11px;
}
.exchange-search span { color: var(--gold-2); font-size: 12px; font-weight: 900; }
.exchange-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 14px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
}
.exchange-search input::placeholder { color: #7f887f; }
.exchange-select {
  height: 40px;
  min-width: 104px;
  border: 1px solid var(--line);
  outline: 0;
  background: #111614;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}
.exchange-summary { display: flex; align-items: baseline; gap: 7px; min-height: 48px; padding: 13px 4px 8px; color: var(--muted); font-size: 13px; }
.exchange-summary strong { color: var(--gold-2); font-size: 22px; }
.exchange-summary button { margin-left: auto; height: 30px; padding: 0 10px; }
.exchange-summary button:hover { color: #fff0cd; border-color: rgba(208,183,102,.52); }
.exchange-list { display: grid; border-top: 1px solid var(--line-strong); }
.exchange-row {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 2.25fr) 78px;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(15,20,18,.72);
  transition: background .16s ease, border-color .16s ease;
}
.exchange-row:hover { border-color: rgba(208,183,102,.34); background: rgba(24,29,24,.9); }
.exchange-reward,
.exchange-materials { min-width: 0; }
.exchange-reward strong { display: block; color: #fff0cd; font-size: 17px; line-height: 1.35; }
.exchange-reward span { display: block; margin-top: 6px; color: #7f887f; font: 800 11px/1.3 Consolas, monospace; }
.exchange-materials > span { display: block; color: var(--gold-2); font-size: 11px; font-weight: 900; }
.exchange-materials p { margin: 5px 0 0; color: #ddd8c8; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.exchange-materials small { display: block; margin-top: 5px; color: #97aaa0; line-height: 1.45; }
.exchange-limit {
  justify-self: end;
  min-width: 62px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  text-align: center;
  color: #e6dfca;
  font-size: 12px;
  font-weight: 900;
}
.exchange-limit.daily { border-color: rgba(108,181,158,.5); color: #a5dfca; background: rgba(50,112,94,.13); }
.exchange-limit.weekly { border-color: rgba(208,183,102,.52); color: #f1d989; background: rgba(142,112,42,.14); }
.exchange-limit.repeat { border-color: rgba(152,162,190,.38); color: #c6cbe0; background: rgba(95,104,135,.12); }
.exchange-empty { border: 1px dashed var(--line-strong); padding: 36px 20px; color: var(--muted); text-align: center; }
.exchange-posters { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.exchange-poster-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.exchange-poster-head h2 { margin: 7px 0 0; color: #fff0cd; font-size: 30px; }
.exchange-poster-head p { margin: 0; color: var(--muted); }
.exchange-poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.exchange-poster-grid a { position: relative; min-width: 0; border: 1px solid var(--line); background: #0d1110; overflow: hidden; }
.exchange-poster-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .2s ease, opacity .2s ease; }
.exchange-poster-grid a:hover img { transform: scale(1.015); opacity: .88; }
.exchange-poster-grid span { display: block; padding: 12px 14px; color: #fff0cd; font-weight: 900; }
.footer { padding: 34px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); }
.footer .main-inner { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 106px;
    gap: 10px 12px;
    padding: 10px 18px;
  }
  .brand { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    border: 1px solid rgba(236,230,203,.18);
    background: rgba(236,230,203,.06);
    padding: 8px 10px;
    font-size: 13px;
  }
  .nav .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .hero { padding-top: 92px; }
  .content-card { padding: 20px; }
  .shortcut-module { padding: 20px; }
  .shortcut-module-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .shortcut-rule { width: 100%; }
  .shortcut-quickbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-groups { column-count: 1; }
  .shortcut-item { grid-template-columns: 92px minmax(0, 1fr); gap: 9px; }
  .shortcut-item kbd { min-width: 68px; font-size: 10px; }
  .content-title-row { align-items: stretch; flex-direction: column; }
  .content-title-row .btn { width: 100%; }
  .ranking-grid { grid-template-columns: 1fr; }
  .ranking-panel { padding: 18px; }
  .rank-row { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
  .rank-num { grid-column: 1; grid-row: 1 / span 3; }
  .rank-identity { grid-column: 2; grid-row: 1; }
  .rank-line { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; }
  .squad-rank-row .rank-line { grid-template-columns: 1fr; }
  .rank-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-chip { grid-template-columns: 1fr; gap: 4px; }
  .rank-chip strong { white-space: normal; }
  .rank-score { grid-column: 2; grid-row: 3; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .rank-score span { display: inline; margin-top: 0; }
  .ranking-head { display: grid; padding: 14px; }
  .ranking-actions { justify-content: stretch; }
  .rank-tabs, .rank-server { width: 100%; }
  .ranking-grid { padding: 14px; }
  .rank-row { grid-template-columns: 32px minmax(0, 1fr); padding: 10px; }
  .rank-num { width: 30px; height: 30px; }
  .rank-group { grid-template-columns: 1fr; }
  .exchange-hero { min-height: 270px; background-position: 58% center; }
  .exchange-main { padding: 16px 14px 58px; }
  .exchange-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange-rules > div { padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .exchange-rules > div:nth-child(2) { border-right: 0; }
  .exchange-rules > div:nth-child(n+3) { border-bottom: 0; }
  .exchange-toolbar { top: 106px; display: grid; padding: 10px; }
  .exchange-category-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .exchange-category-tabs::-webkit-scrollbar { display: none; }
  .exchange-tools { min-width: 0; width: 100%; }
  .exchange-search { flex-basis: auto; }
  .exchange-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; min-height: 0; padding: 14px; }
  .exchange-reward { grid-column: 1; grid-row: 1; }
  .exchange-limit { grid-column: 2; grid-row: 1; align-self: start; }
  .exchange-materials { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; border-top: 1px solid rgba(236,230,203,.09); }
  .exchange-poster-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .exchange-poster-grid { grid-template-columns: 1fr; }
  .exchange-poster-grid img { aspect-ratio: 16 / 10; }
  .report-case-head { flex-direction: column; padding: 22px 20px 18px; }
  .report-statuses { justify-content: flex-start; }
  .report-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-facts > div:nth-child(2) { border-right: 0; }
  .report-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-outcome { grid-template-columns: 1fr; padding: 22px 20px 24px; }
  .report-incident { margin: 0 20px 22px; }
  .report-incident-head { align-items: flex-start; flex-direction: column; }
  .report-incident-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-incident-grid > div:nth-child(2) { border-right: 0; }
  .report-incident-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(236,230,203,.12); }
  .report-rule-grid { grid-template-columns: 1fr; }
  .report-boundary { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .rules-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-policy-strip { grid-template-columns: 1fr; }
  .rules-policy-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .rules-policy-strip > div:last-child { border-bottom: 0; }
  .rules-detail { padding: 24px 20px; }
}

@media (max-width: 520px) {
  .exchange-rules { grid-template-columns: 1fr; }
  .exchange-rules > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .exchange-rules > div:nth-child(2),
  .exchange-rules > div:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .exchange-rules > div:last-child { border-bottom: 0; }
  .exchange-tools { display: grid; grid-template-columns: minmax(0, 1fr) 104px; }
  .exchange-search { padding: 0 9px; }
  .exchange-search span { display: none; }
  .rules-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .rules-summary-grid { grid-template-columns: 1fr; }
  .rules-summary-card { min-height: 0; }
}
