:root {
  --bg: #080b0f;
  --bg-2: #0c1117;
  --panel: #10161d;
  --panel-2: #141c25;
  --panel-3: #18222c;
  --line: #1f2a35;
  --line-2: #2a3846;
  --text: #e8eef5;
  --muted: #8999a9;
  --muted-2: #5f7183;
  --gold: #d8b36a;
  --gold-2: #f2d79c;
  --gold-dim: rgba(216, 179, 106, 0.12);
  --cyan: #55c8d8;
  --green: #4ade80;
  --red: #f87171;
  --orange: #f0a45a;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 12% -8%, rgba(216, 179, 106, 0.09), transparent 60%),
    radial-gradient(900px 500px at 92% 4%, rgba(85, 200, 216, 0.05), transparent 60%),
    linear-gradient(180deg, #090d12 0%, #070a0e 100%);
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
::selection { background: rgba(216, 179, 106, 0.28); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #080b0f; }
::-webkit-scrollbar-thumb { background: #22303c; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2f4150; }

.container { width: min(1360px, 100% - 48px); margin: 0 auto; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 11, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1c252f, #0e141a);
  border: 1px solid rgba(216, 179, 106, 0.45);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--gold);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.15; }
.brand-en { font-size: 9px; letter-spacing: 0.32em; color: var(--gold); opacity: 0.75; }

.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--gold-2); background: var(--gold-dim); }
.nav a.active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  letter-spacing: 0.02em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px currentColor; }
.status-chip.demo .dot { background: var(--orange); }
.status-chip .dot { color: var(--green); }
.status-chip.demo .dot { color: var(--orange); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  transition: all 0.16s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-gold {
  background: linear-gradient(135deg, #e3c27e, #c39c52);
  border-color: #e3c27e;
  color: #161207;
  font-weight: 700;
}
.btn-gold:hover { color: #161207; filter: brightness(1.07); box-shadow: 0 6px 20px rgba(216, 179, 106, 0.25); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------------- layout ---------------- */
main { position: relative; z-index: 1; padding-bottom: 64px; }
.page { padding-top: 26px; animation: fade-up 0.35s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { font-size: 10px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
h1 { font-size: 26px; margin: 0; letter-spacing: 0.02em; font-weight: 800; }
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 15px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-head-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-bottom: 20px;
}
.hero-main {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.1), transparent 45%),
    radial-gradient(700px 300px at 100% 0%, rgba(85, 200, 216, 0.07), transparent 70%),
    var(--panel);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.hero-main::after {
  content: "";
  position: absolute; right: -70px; bottom: -110px;
  width: 340px; height: 340px;
  border: 1px solid rgba(216, 179, 106, 0.16);
  transform: rotate(45deg);
}
.hero-main::before {
  content: "";
  position: absolute; right: 24px; top: 20px;
  width: 90px; height: 90px;
  border: 1px solid rgba(216, 179, 106, 0.18);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.26em; color: var(--gold);
  border: 1px solid rgba(216, 179, 106, 0.3);
  padding: 4px 10px; border-radius: 3px;
  background: rgba(216, 179, 106, 0.06);
}
.hero-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: 0.01em; margin: 18px 0 10px; line-height: 1.2; }
.hero-title em { font-style: normal; color: var(--gold-2); }
.hero-desc { color: var(--muted); max-width: 540px; margin: 0 0 24px; font-size: 13.5px; }
.hero-stats { display: flex; gap: 0; flex-wrap: wrap; }
.hero-stat { padding: 0 26px; border-left: 1px solid var(--line-2); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

.pwd-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 18px;
  display: flex; flex-direction: column;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-size: 14px; letter-spacing: 0.14em; display: flex; align-items: center; gap: 9px; }
.panel-head h2::before { content: ""; width: 3px; height: 14px; background: var(--gold); display: inline-block; }
.panel-head .hint { font-size: 11px; color: var(--muted-2); }
.pwd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; flex: 1; }
.pwd-cell {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(8, 12, 16, 0.5);
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.16s;
  min-height: 70px;
}
.pwd-cell:hover { border-color: var(--gold); background: rgba(216, 179, 106, 0.06); transform: translateY(-1px); }
.pwd-cell .m { font-size: 11px; color: var(--muted); }
.pwd-cell .code { font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-2); line-height: 1.35; }
.pwd-cell .d { font-size: 9px; color: var(--muted-2); }

/* ---------------- sections ---------------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.section-title::before { content: ""; width: 3px; height: 15px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 0 12px rgba(216, 179, 106, 0.4); }
.section-sub { color: var(--muted-2); font-size: 11px; letter-spacing: 0.14em; margin-left: 8px; }
.link-more { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { color: var(--gold); }

/* ---------------- tool grid ---------------- */
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tool-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  transition: all 0.18s;
  overflow: hidden;
}
.tool-card:hover { border-color: rgba(216, 179, 106, 0.55); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.tool-card:hover .tool-ico { color: var(--gold-2); border-color: rgba(216, 179, 106, 0.5); }
.tool-ico {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(216, 179, 106, 0.05);
  margin-bottom: 12px;
  transition: all 0.18s;
}
.tool-ico svg { width: 19px; height: 19px; }
.tool-card h3 { font-size: 14px; margin-bottom: 3px; }
.tool-card p { margin: 0; font-size: 11px; color: var(--muted-2); }
.tool-card .arrow { position: absolute; right: 12px; top: 14px; color: var(--muted-2); font-size: 13px; }

/* ---------------- cards / grid ---------------- */
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-weight: 500; color: var(--muted-2);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(31, 42, 53, 0.6); vertical-align: middle; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(216, 179, 106, 0.035); }
tbody tr:last-child td { border-bottom: 0; }
.num { font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.gold { color: var(--gold-2); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.item-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.item-ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  color: #e9dcc0;
  background: linear-gradient(150deg, #25313d, #121920);
  border: 1px solid var(--line-2);
  overflow: hidden;
  letter-spacing: 0;
}
.item-ico img { width: 100%; height: 100%; object-fit: contain; }
.item-ico.g1 { border-color: #4b5a68; color: #b9c7d4; }
.item-ico.g2 { border-color: #3f7d5a; color: #8fe0b2; background: linear-gradient(150deg, #1b3a2a, #101b16); }
.item-ico.g3 { border-color: #3f6a9a; color: #9ecbf7; background: linear-gradient(150deg, #1a2f45, #0f1823); }
.item-ico.g4 { border-color: #6d5aa8; color: #c5b6ff; background: linear-gradient(150deg, #2b2347, #151126); }
.item-ico.g5 { border-color: #9a7434; color: #ffd88a; background: linear-gradient(150deg, #3d2f17, #1b150b); }
.item-ico.g6 { border-color: #a03a3a; color: #ffadad; background: linear-gradient(150deg, #3f1717, #1c0c0c); }
.item-name { line-height: 1.3; }
.item-name small { display: block; color: var(--muted-2); font-size: 10.5px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted-2); }

.grade-tag {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.grade-tag.g4 { color: #c5b6ff; border-color: #52438a; }
.grade-tag.g5 { color: #ffd88a; border-color: #7d5f28; }
.grade-tag.g6 { color: #ffadad; border-color: #833131; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 100px;
  font-size: 10.5px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.pill.gold { color: var(--gold-2); border-color: rgba(216, 179, 106, 0.45); background: var(--gold-dim); }
.pill.green { color: var(--green); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.07); }
.pill.red { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.07); }
.pill.cyan { color: var(--cyan); border-color: rgba(85, 200, 216, 0.3); background: rgba(85, 200, 216, 0.07); }

/* ---------------- toolbar / filters ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tab.active { color: var(--gold-2); background: var(--gold-dim); border-color: rgba(216, 179, 106, 0.35); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button {
  padding: 6px 13px; background: transparent; border: 0; color: var(--muted); font-size: 12.5px;
}
.seg button.active { background: var(--gold-dim); color: var(--gold-2); }
.seg button + button { border-left: 1px solid var(--line-2); }

.input, .select {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 13px;
  outline: none;
  transition: border 0.15s;
  min-width: 0;
}
.input:focus, .select:focus { border-color: var(--gold); }
.input::placeholder { color: var(--muted-2); }
.select { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.search { position: relative; }
.search .input { padding-left: 33px; width: 240px; }
.search svg { position: absolute; left: 10px; top: 9px; color: var(--muted-2); width: 15px; height: 15px; }

/* ---------------- misc components ---------------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 179, 106, 0.25);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
  background: rgba(216, 179, 106, 0.06);
  color: #d9c9a7;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.notice svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--gold); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 15px 16px; }
.stat-card .k { font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; }
.stat-card .v { font-size: 24px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.2; }
.stat-card .t { font-size: 11px; color: var(--muted); }

.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(31, 42, 53, 0.55); }
.mini-row:last-child { border-bottom: 0; }
.mini-row .idx { width: 18px; font-size: 11px; color: var(--muted-2); font-family: monospace; }
.mini-row .item-cell { flex: 1; min-width: 0; }
.mini-row .val { text-align: right; font-variant-numeric: tabular-nums; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
}
.chip strong { color: var(--gold-2); font-weight: 600; }

.empty { text-align: center; color: var(--muted-2); padding: 48px 16px; font-size: 13px; }
.empty svg { display: block; margin: 0 auto 10px; width: 34px; height: 34px; opacity: 0.4; }
.loading { display: grid; place-items: center; padding: 60px; }
.spinner { width: 26px; height: 26px; border: 2px solid rgba(216, 179, 106, 0.18); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, #121a22 25%, #18222c 37%, #121a22 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 4px 0; font-size: 12px; color: var(--muted); }
.pager button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------------- build cards ---------------- */
.build-group { margin-bottom: 24px; }
.build-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.build-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  padding: 14px;
  transition: border 0.16s;
}
.build-card:hover { border-color: rgba(216, 179, 106, 0.4); }
.build-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.build-top h4 { margin: 0; font-size: 13.5px; font-weight: 700; }
.build-rank { font-family: monospace; font-size: 11px; color: var(--gold); border: 1px solid rgba(216, 179, 106, 0.35); border-radius: 4px; padding: 1px 6px; }
.build-price { font-size: 21px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.build-price small { font-size: 10px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.build-meta { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin: 4px 0 10px; flex-wrap: wrap; }
.build-items { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); padding-top: 10px; }
.build-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.build-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c6d2de; }
.build-item .pr { font-family: monospace; font-size: 11.5px; color: var(--muted); }
.build-item .jz { font-family: monospace; font-size: 11px; }

/* ---------------- guns ---------------- */
.gun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gun-card { border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(165deg, var(--panel-2), var(--panel)); overflow: hidden; display: flex; flex-direction: column; }
.gun-visual {
  height: 118px;
  background:
    linear-gradient(120deg, rgba(216, 179, 106, 0.07), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 10px),
    #0d1319;
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
}
.gun-visual svg { width: 132px; height: 60px; color: #93a4b5; opacity: 0.9; }
.gun-visual .gun-fallback { display: grid; place-items: center; }
.gun-visual .gun-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 92%;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  z-index: 1;
}
.gun-visual .tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.gun-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.gun-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gun-title h4 { margin: 0; font-size: 14px; }
.gun-title small { color: var(--muted-2); font-size: 10.5px; }
.prop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.prop { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 5px; padding: 5px 6px; text-align: center; }
.prop span { display: block; font-size: 9.5px; color: var(--muted-2); }
.prop b { font-size: 13px; color: #dbe5ef; font-variant-numeric: tabular-nums; }
.prop b.pos { color: var(--green); }
.prop b.neg { color: var(--red); }
.code-row { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 6px; padding: 6px 9px; }
.code-row code { flex: 1; font-family: monospace; font-size: 10.5px; color: var(--gold-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gun-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.gun-price { font-size: 16px; font-weight: 800; color: var(--gold-2); }

/* ---------------- keys ---------------- */
.key-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hour-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.hour-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--line); font-size: 12px; }
.hour-head b { font-family: monospace; color: var(--gold-2); }
.hour-body { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.hour-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 4px; border-radius: 5px; }
.hour-item:hover { background: rgba(255, 255, 255, 0.03); }
.hour-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hour-item .pr { font-family: monospace; color: var(--gold-2); font-size: 11px; }

/* ---------------- tasks ---------------- */
.task-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.task-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 13px 14px; }
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-top h4 { margin: 0 0 4px; font-size: 13.5px; }
.task-desc { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.task-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted-2); }
.task-foot .rewards { color: var(--gold-2); margin-left: auto; font-size: 11.5px; }

/* ---------------- modal ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade-in 0.18s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(820px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel-2); z-index: 2; }
.modal-body { padding: 18px 20px 22px; }
.close-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 5px; }
.close-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.chart-box { position: relative; margin-top: 6px; }
.chart-box svg { width: 100%; height: 230px; display: block; }
.chart-tip {
  position: absolute; pointer-events: none;
  background: rgba(8, 12, 16, 0.94);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--text);
  transform: translate(-50%, -120%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 3;
}
.chart-legend { display: flex; gap: 18px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------------- toast ---------------- */
#toast-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 10px 15px;
  background: rgba(16, 22, 29, 0.97);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--gold);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toast-in 0.22s ease both;
}
.toast.err { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------------- footer ---------------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px; color: var(--muted-2); font-size: 11.5px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--gold); }

/* ---------------- desktop/mobile ---------------- */
.menu-toggle { display: none; }
@media (max-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .build-grid, .gun-grid { grid-template-columns: repeat(2, 1fr); }
  .key-hours { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49; background: #0b1015; border-bottom: 1px solid var(--line); padding: 10px 16px; display: none; flex-wrap: wrap; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-grid; }
  .brand-en { display: none; }
  .task-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .hero-main { padding: 24px 20px; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 14px; }
  .hero-stat b { font-size: 18px; }
  .pwd-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid, .gun-grid { grid-template-columns: 1fr; }
  .key-hours { grid-template-columns: repeat(2, 1fr); }
  .search .input { width: 100%; }
  .toolbar { gap: 9px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .table-wrap table { min-width: 620px; }
  .page-head h1 { font-size: 22px; }
  .modal-mask { padding: 12px; }
  .modal-body { padding: 14px; }
  .prop-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ================= UI REFRESH : 2025 ================= */
.topbar { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02); }
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 179, 106, 0.35), rgba(85, 200, 216, 0.18), transparent);
}
.brand-mark {
  box-shadow: 0 0 0 1px rgba(216, 179, 106, 0.08), 0 6px 18px rgba(216, 179, 106, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(216, 179, 106, 0.2), 0 8px 22px rgba(216, 179, 106, 0.2); }
.nav a { letter-spacing: 0.01em; }
.nav a.active { box-shadow: inset 0 0 0 1px rgba(216, 179, 106, 0.16); }
.top-actions::before {
  content: ""; width: 1px; height: 20px; margin-right: 2px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}

.hero-main { padding-top: 30px; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 9.5px; letter-spacing: 0.24em; color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.06);
  padding: 4px 9px; border-radius: 3px; white-space: nowrap;
}
.hero-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse-dot 2s infinite; }
.hero-live.demo { color: var(--orange); border-color: rgba(240, 164, 90, 0.28); background: rgba(240, 164, 90, 0.06); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-stats { margin-top: 2px; }
.hero-stat { padding: 0 24px; }
.hero-stat b { letter-spacing: -0.01em; }
.hero-foot {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 13px; border-top: 1px solid rgba(42, 56, 70, 0.6);
  font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted-2);
}
.hero-foot .sep { color: rgba(216, 179, 106, 0.45); }

.pwd-panel { padding: 16px; }
.pwd-grid { gap: 8px; }
.pwd-cell { position: relative; padding: 9px 10px 8px; }
.pwd-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pwd-cell .m { font-size: 10.5px; letter-spacing: 0.03em; }
.pwd-cell .code { font-size: 19px; letter-spacing: 0.08em; }
.pwd-cell .copy-tip { font-size: 8px; letter-spacing: 0.18em; color: var(--gold); opacity: 0; transition: opacity 0.16s; }
.pwd-cell:hover .copy-tip { opacity: 0.85; }
.pwd-cell::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 179, 106, 0.5), transparent);
  opacity: 0; transition: opacity 0.18s;
}
.pwd-cell:hover::after { opacity: 1; }

.section { margin-top: 34px; }
.section-head { margin-bottom: 15px; }
.section-note { font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); }
.tool-grid { gap: 11px; }
.tool-card {
  background: linear-gradient(165deg, rgba(23, 32, 41, 0.85), rgba(13, 19, 25, 0.9));
  padding: 17px 15px 16px;
}
.tool-card::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(216, 179, 106, 0.55), transparent);
  opacity: 0; transition: opacity 0.18s;
}
.tool-card:hover::before { opacity: 1; }
.tool-no {
  position: absolute; right: 14px; top: 15px;
  font-family: "Geist Mono", Consolas, monospace; font-size: 10px;
  color: rgba(137, 153, 169, 0.45); letter-spacing: 0.08em;
}
.tool-card .arrow { top: auto; bottom: 15px; right: 13px; opacity: 0.35; transition: all 0.18s; }
.tool-card:hover .arrow { opacity: 1; color: var(--gold); transform: translateX(2px); }
.tool-ico { width: 40px; height: 40px; margin-bottom: 13px; background: linear-gradient(150deg, rgba(216, 179, 106, 0.12), rgba(216, 179, 106, 0.02)); }

.card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
.card-head { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent); }
.card-head h3::before { content: ""; width: 2px; height: 12px; background: var(--gold); display: inline-block; margin-right: 2px; opacity: 0.85; }
tbody tr:hover { background: rgba(216, 179, 106, 0.045); }
thead th { background: rgba(255, 255, 255, 0.015); }

.footer {
  margin-top: 52px; padding: 26px 0 34px;
  border-top: 1px solid rgba(42, 56, 70, 0.55);
  background: linear-gradient(180deg, rgba(10, 14, 19, 0), rgba(8, 11, 15, 0.55));
}
.footer-inner { display: grid; grid-template-columns: 1.1fr auto 1fr; align-items: center; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.footer-logo {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 179, 106, 0.28);
  border-radius: 9px;
  background: rgba(216, 179, 106, 0.05);
  color: var(--gold);
}
.footer-logo svg { width: 17px; height: 17px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.footer-brand-text strong { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.footer-brand-text em { font-style: normal; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.footer-links a { font-size: 11.5px; color: var(--muted); text-decoration: none; transition: color 0.16s; }
.footer-links a:hover { color: var(--gold-2); }
.footer-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; white-space: nowrap;
}
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(137, 153, 169, 0.5); }
.footer-icp { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.footer-icp:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .footer-meta { justify-content: center; }
}
@media (max-width: 720px) {
  .footer { margin-top: 34px; padding: 22px 0 26px; }
  .footer-inner { align-items: center; }
  .footer-links { gap: 6px 14px; }
  .footer-meta { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 980px) {
  .top-actions::before { display: none; }
  .nav { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
}
@media (max-width: 720px) {
  .hero-topline { margin-bottom: 12px; }
  .hero-foot { margin-top: 18px; font-size: 10px; }
  .section-note { display: none; }
  .tool-card { padding: 14px 12px; }
}

/* ================= MOBILE TOOLKIT GRID ================= */
@media (max-width: 720px) {
  .tool-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px 2px;
    padding: 10px 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 28, 37, 0.6), rgba(12, 17, 23, 0.7));
  }
  .tool-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 7px 1px 8px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tool-card:hover { transform: none; box-shadow: none; border-color: transparent; }
  .tool-card:active { background: rgba(216, 179, 106, 0.09); }
  .tool-card::before { display: none; }
  .tool-ico {
    width: 44px; height: 44px;
    border-radius: 13px;
    margin: 0 0 7px;
    background: linear-gradient(150deg, rgba(216, 179, 106, 0.16), rgba(216, 179, 106, 0.03));
    border: 1px solid rgba(216, 179, 106, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .tool-ico svg { width: 21px; height: 21px; }
  .tool-card h3 {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    white-space: normal;
    color: var(--text);
  }
  .tool-card p, .tool-no, .tool-card .arrow { display: none; }
}

/* ================= TODAY PASSWORD STRIP ================= */
.hero-solo { grid-template-columns: 1fr; margin-bottom: 14px; }
.hero-solo .hero-main { padding: 32px 34px 26px; }

.pwd-strip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.72), rgba(11, 16, 21, 0.88));
  margin-bottom: 26px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.pwd-strip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(216, 179, 106, 0.5), rgba(216, 179, 106, 0.06) 55%, transparent);
}
.pwd-strip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(42, 56, 70, 0.55);
}
.ps-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ps-title h2 { font-size: 13px; letter-spacing: 0.14em; display: flex; align-items: center; gap: 8px; margin: 0; }
.ps-title h2::before { content: ""; width: 3px; height: 13px; background: var(--gold); display: inline-block; }
.ps-title span { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.ps-date {
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold);
  border: 1px solid rgba(216, 179, 106, 0.24);
  background: rgba(216, 179, 106, 0.06);
  padding: 3px 8px; border-radius: 3px; white-space: nowrap;
}
.pwd-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.pwd-strip .pwd-cell {
  appearance: none; -webkit-appearance: none;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 13px 6px 12px;
  min-height: 0;
  border: 0; border-left: 1px solid rgba(42, 56, 70, 0.5);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s;
}
.pwd-strip .pwd-cell:first-child { border-left: 0; }
.pwd-strip .pwd-cell .code {
  font-size: 22px; font-weight: 800; line-height: 1;
  letter-spacing: 0.08em; color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.16s;
}
.pwd-strip .pwd-cell .m { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.pwd-strip .pwd-cell .copy-tip {
  position: absolute; top: 6px; right: 8px;
  font-size: 7.5px; letter-spacing: 0.16em; font-style: normal;
  color: var(--gold); opacity: 0; transition: opacity 0.16s;
}
.pwd-strip .pwd-cell:hover,
.pwd-strip .pwd-cell:active { background: rgba(216, 179, 106, 0.07); transform: none; border-color: transparent; }
.pwd-strip .pwd-cell:not(:first-child):hover { border-left-color: rgba(42, 56, 70, 0.5); }
.pwd-strip .pwd-cell:hover .code { color: var(--gold-2); }
.pwd-strip .pwd-cell:hover .copy-tip { opacity: 0.9; }
.pwd-strip .pwd-cell::after { display: none; }

@media (max-width: 720px) {
  .hero-solo .hero-main { padding: 24px 20px 22px; }
  .pwd-strip { margin-bottom: 22px; }
  .pwd-strip-head { padding: 10px 13px 9px; }
  .ps-title span { display: none; }
  .ps-date { font-size: 9.5px; padding: 2px 7px; }
  .pwd-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pwd-strip .pwd-cell { padding: 9px 5px 8px; gap: 4px; }
  .pwd-strip .pwd-cell .code { font-size: 17px; letter-spacing: 0.04em; }
  .pwd-strip .pwd-cell .m { font-size: 9.5px; letter-spacing: 0; white-space: nowrap; }
  .pwd-strip .pwd-cell .copy-tip { display: none; }
}

/* ================= HOME AD SLOT ================= */
.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  margin-bottom: 24px;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(216, 179, 106, 0.12), transparent 55%),
    radial-gradient(560px 220px at 92% 8%, rgba(85, 200, 216, 0.08), transparent 70%),
    var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: border-color 0.16s, box-shadow 0.16s;
}
a.ad-slot:hover { border-color: rgba(216, 179, 106, 0.5); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); }
.ad-slot.has-img {
  min-height: 168px;
  background-image:
    linear-gradient(90deg, rgba(8, 11, 15, 0.94) 0%, rgba(8, 11, 15, 0.66) 52%, rgba(8, 11, 15, 0.18) 100%),
    var(--ad-image, none);
  background-size: cover;
  background-position: center;
}
.ad-badge {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted-2);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 3px;
  padding: 2px 6px; background: rgba(8, 11, 15, 0.5);
}
.ad-content { position: relative; z-index: 1; max-width: 720px; min-width: 0; }
.ad-tag {
  display: inline-flex; align-items: center;
  font-size: 9.5px; letter-spacing: 0.22em; color: var(--gold);
  border: 1px solid rgba(216, 179, 106, 0.3);
  padding: 3px 8px; border-radius: 3px;
  background: rgba(216, 179, 106, 0.06);
}
.ad-title {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800; line-height: 1.3; letter-spacing: 0.01em;
  color: var(--text);
}
.ad-desc {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 7px 14px; border-radius: 4px;
  border: 1px solid rgba(216, 179, 106, 0.42);
  background: rgba(216, 179, 106, 0.08);
  color: var(--gold-2); font-size: 12px; letter-spacing: 0.06em;
  transition: all 0.16s;
}
.ad-cta svg { width: 14px; height: 14px; transition: transform 0.16s; }
a.ad-slot:hover .ad-cta { background: rgba(216, 179, 106, 0.14); border-color: rgba(216, 179, 106, 0.65); }
a.ad-slot:hover .ad-cta svg { transform: translateX(3px); }

@media (max-width: 720px) {
  .ad-slot { min-height: 116px; padding: 18px; border-radius: 12px; margin-bottom: 20px; }
  .ad-slot.has-img { min-height: 148px; }
  .ad-title { font-size: 18px; margin: 8px 0 5px; }
  .ad-desc { font-size: 11.5px; }
  .ad-cta { font-size: 11px; padding: 6px 11px; margin-top: 10px; }
  .ad-badge { top: 8px; right: 10px; }
}

/* ================= SEASON TASKS ================= */
.task-filters { display: flex; gap: 10px; margin-bottom: 16px; }
.tf-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tf-field > span { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.tf-field .select { width: 100%; height: 40px; border-radius: 10px; background-color: rgba(20, 28, 37, 0.7); }

.task-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.task-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.62), rgba(11, 16, 21, 0.78));
  overflow: hidden;
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid rgba(42, 56, 70, 0.5); }
.tg-head > div { flex: 1; min-width: 0; }
.tg-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.tg-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted-2); }

.task-item + .task-item { border-top: 1px solid rgba(42, 56, 70, 0.35); }
.task-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 12px 16px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
  transition: background 0.15s;
}
.task-row:hover { background: rgba(216, 179, 106, 0.04); }
.task-idx {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { font-size: 11px; color: var(--muted-2); font-family: "Geist Mono", Consolas, monospace; letter-spacing: 0.03em; }
.task-row .chev { width: 15px; height: 15px; flex: none; color: var(--muted-2); transition: transform 0.18s, color 0.18s; }
.task-item.open .task-row { background: rgba(216, 179, 106, 0.05); }
.task-item.open .chev { transform: rotate(90deg); color: var(--gold); }
.task-detail { padding: 0 16px 14px 55px; }
.task-detail p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.task-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 980px) { .task-groups { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .task-filters { gap: 8px; }
  .tf-field .select { height: 38px; font-size: 12.5px; }
  .tg-head { padding: 12px 14px; }
  .task-row { padding: 12px 14px; }
  .task-detail { padding: 0 14px 13px 53px; }
}

.task-seasonbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.task-phases { display: flex; flex-direction: column; gap: 22px; }
.phase-head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 2px 2px 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(42, 56, 70, 0.55);
}
.phase-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 54px; height: 1px; background: var(--gold); opacity: 0.65;
}
.phase-no {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 179, 106, 0.3);
  border-radius: 9px;
  background: rgba(216, 179, 106, 0.05);
  color: var(--gold);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.phase-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.phase-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted-2); }

@media (max-width: 720px) {
  .task-seasonbar .seg { flex: 1; }
  .task-phases { gap: 18px; }
  .phase-no { width: 32px; height: 32px; font-size: 12px; }
  .phase-head h3 { font-size: 14px; }
}

.task-obj { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.task-obj li { position: relative; padding-left: 14px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.task-obj li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0.7;
}
.task-rewards {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(42, 56, 70, 0.6);
}
.tr-label {
  flex: none;
  font-size: 10px; letter-spacing: 0.08em; color: var(--gold);
  border: 1px solid rgba(216, 179, 106, 0.25);
  padding: 2px 6px; border-radius: 3px;
}
.tr-items { display: flex; flex-wrap: wrap; gap: 6px; }

.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 7px; }

/* ============================================================
   2025 VISUAL REFRESH — 深空战术配色 / 层次与光影
   ============================================================ */
:root {
  --bg: #060910;
  --bg-2: #0a0f18;
  --panel: #0e141d;
  --panel-2: #121a25;
  --panel-3: #172130;
  --line: #1b2533;
  --line-2: #2a3a4c;
  --text: #eef4fb;
  --muted: #97a7bb;
  --muted-2: #67798f;
  --gold: #e2c07f;
  --gold-2: #f7e3b6;
  --gold-dim: rgba(226, 192, 127, 0.12);
  --cyan: #5fd0e2;
  --green: #4ade80;
  --red: #fb8181;
  --orange: #f5ab63;
  --radius: 12px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --card-grad: linear-gradient(180deg, rgba(20, 28, 39, 0.72), rgba(11, 16, 23, 0.88));
  --ring: 0 0 0 3px rgba(226, 192, 127, 0.16);
}

body {
  background-image:
    radial-gradient(1200px 620px at 8% -12%, rgba(226, 192, 127, 0.10), transparent 62%),
    radial-gradient(900px 520px at 96% -2%, rgba(95, 208, 226, 0.07), transparent 60%),
    radial-gradient(760px 520px at 50% 112%, rgba(226, 192, 127, 0.045), transparent 70%),
    linear-gradient(180deg, #070b12 0%, #05070c 100%);
}
body::before { opacity: 0.85; }

::selection { background: rgba(226, 192, 127, 0.3); }
::-webkit-scrollbar-track { background: #070b11; }
::-webkit-scrollbar-thumb { background: #22303f; }
::-webkit-scrollbar-thumb:hover { background: #33465c; }

/* 顶栏 */
.topbar {
  background: rgba(7, 10, 16, 0.82);
  border-bottom: 1px solid rgba(42, 58, 76, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 127, 0.4), rgba(95, 208, 226, 0.18), transparent);
  opacity: 0.7;
}
.brand-mark {
  background: linear-gradient(160deg, #232f3d 0%, #0d131a 65%);
  border-color: rgba(226, 192, 127, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--gold);
}
.brand-name { color: #f4f8fd; }
.brand-en { color: var(--gold); opacity: 0.8; }
.nav a { border-radius: 8px; }
.nav a:hover { background: rgba(255, 255, 255, 0.05); }
.nav a.active {
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(226, 192, 127, 0.16), rgba(226, 192, 127, 0.06));
  box-shadow: inset 0 0 0 1px rgba(226, 192, 127, 0.16);
}

/* 按钮 */
.btn {
  border-radius: 8px;
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.028);
  transition: all 0.16s ease;
}
.btn:hover {
  border-color: rgba(226, 192, 127, 0.6);
  color: var(--gold-2);
  background: rgba(226, 192, 127, 0.07);
}
.btn-gold {
  background: linear-gradient(180deg, #f0d29b, #d3ab62);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(226, 192, 127, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(226, 192, 127, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, select:focus-visible {
  outline: none; box-shadow: var(--ring);
}

/* 卡片与容器 */
.card, .tool-card, .build-card, .gun-card, .task-group, .pwd-strip, .stat, .dept-card {
  background-image: var(--card-grad);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.card { background-color: var(--panel); }
.tool-card { border-color: rgba(42, 58, 76, 0.7); }
.tool-card:hover {
  border-color: rgba(226, 192, 127, 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(226, 192, 127, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* 表格 */
thead th {
  background: linear-gradient(180deg, rgba(23, 33, 48, 0.9), rgba(14, 20, 29, 0.9));
  color: var(--muted);
  letter-spacing: 0.06em;
}
tbody tr { transition: background 0.14s ease; }
tbody tr:hover { background: rgba(226, 192, 127, 0.045); }

/* 输入与选择器 */
.input, .select, select, textarea {
  background: rgba(9, 14, 21, 0.85);
  border: 1px solid rgba(42, 58, 76, 0.9);
  color: var(--text);
  border-radius: 8px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input:hover, .select:hover, select:hover, textarea:hover { border-color: rgba(226, 192, 127, 0.4); }
.input:focus, .select:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(226, 192, 127, 0.7); box-shadow: var(--ring); background: rgba(11, 17, 26, 0.95);
}

/* 区块标题与页脚 */
.section-head h2, .card-head h3 { color: #f2f7fd; letter-spacing: 0.01em; }
.footer {
  border-top-color: rgba(42, 58, 76, 0.55);
  background: linear-gradient(180deg, rgba(7, 11, 17, 0.2), rgba(5, 7, 12, 0.85));
}
.footer-inner { color: var(--muted-2); }
.footer a:hover { color: var(--gold-2); }

@media (max-width: 720px) {
  body { background-attachment: scroll; }
}

/* ================= 官方资讯 ================= */
.news-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--panel); background-image: var(--card-grad);
  text-decoration: none; color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 192, 127, 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(226, 192, 127, 0.1);
}
.news-thumb {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  background-color: rgba(9, 14, 21, 0.9);
}
.news-thumb.no-img {
  display: flex; align-items: center; justify-content: center; color: var(--muted-2);
  background: linear-gradient(135deg, rgba(226, 192, 127, 0.08), rgba(9, 14, 21, 0.95));
}
.news-thumb.no-img svg { width: 42px; height: 42px; opacity: 0.55; }
.news-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-meta time { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: 11px; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px;
  color: var(--gold-2); border: 1px solid rgba(226, 192, 127, 0.35);
  background: rgba(226, 192, 127, 0.08); white-space: nowrap;
}
.news-body h3 {
  margin: 0; font-size: 15px; line-height: 1.5; color: #f2f7fd;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p {
  margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { display: flex; justify-content: center; margin-top: 20px; }
.news-more .btn[hidden] { display: none; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card { flex-direction: row; }
  .news-thumb { width: 116px; flex: 0 0 116px; aspect-ratio: auto; }
  .news-thumb.no-img { min-height: 86px; }
  .news-body { padding: 10px 12px; }
  .news-body h3 { font-size: 14px; }
  .news-body p { display: none; }
}

/* ================= 快速工具图标（参考 shushu.fan） ================= */
.tool-card[data-tool] {
  --accent: #e2c07f;
  --accent-soft: rgba(226, 192, 127, 0.16);
  --accent-line: rgba(226, 192, 127, 0.4);
}
.tool-card[data-tool="news"] { --accent: #5aa9ff; --accent-soft: rgba(90, 169, 255, 0.16); --accent-line: rgba(90, 169, 255, 0.42); }
.tool-card[data-tool="market"] { --accent: #ffb454; --accent-soft: rgba(255, 180, 84, 0.16); --accent-line: rgba(255, 180, 84, 0.42); }
.tool-card[data-tool="builds"] { --accent: #3ddc97; --accent-soft: rgba(61, 220, 151, 0.14); --accent-line: rgba(61, 220, 151, 0.4); }
.tool-card[data-tool="exchange"] { --accent: #a78bfa; --accent-soft: rgba(167, 139, 250, 0.16); --accent-line: rgba(167, 139, 250, 0.42); }
.tool-card[data-tool="manufacture"] { --accent: #ff8a5c; --accent-soft: rgba(255, 138, 92, 0.16); --accent-line: rgba(255, 138, 92, 0.42); }
.tool-card[data-tool="keys"] { --accent: #ffd76e; --accent-soft: rgba(255, 215, 110, 0.16); --accent-line: rgba(255, 215, 110, 0.42); }
.tool-card[data-tool="ammo"] { --accent: #ff6b6b; --accent-soft: rgba(255, 107, 107, 0.16); --accent-line: rgba(255, 107, 107, 0.42); }
.tool-card[data-tool="guns"] { --accent: #4dd0e1; --accent-soft: rgba(77, 208, 225, 0.15); --accent-line: rgba(77, 208, 225, 0.4); }
.tool-card[data-tool="tasks"] { --accent: #7ee081; --accent-soft: rgba(126, 224, 129, 0.14); --accent-line: rgba(126, 224, 129, 0.4); }
.tool-card[data-tool="marketItems"] { --accent: #ff7ab8; --accent-soft: rgba(255, 122, 184, 0.16); --accent-line: rgba(255, 122, 184, 0.42); }

.tool-card[data-tool] .tool-ico {
  color: var(--accent);
  background: linear-gradient(150deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  border-color: var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.22);
}
.tool-card[data-tool] .tool-ico svg { filter: drop-shadow(0 0 6px var(--accent-soft)); }

@media (hover: hover) {
  .tool-card[data-tool]:hover {
    border-color: var(--accent-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 22px -8px var(--accent);
  }
  .tool-card[data-tool]:hover .tool-ico {
    background: linear-gradient(150deg, var(--accent), var(--accent-soft));
    color: #0b1017;
    border-color: var(--accent);
  }
}

/* ================= 电脑端今日密码（参考 shushu.fan） ================= */
.pwd-scroll { padding: 14px 16px 16px; }
.pwd-maps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pwd-row { display: none; }
.pwd-map {
  position: relative;
  aspect-ratio: 2.7 / 1;
  padding: 0;
  border: 1px solid rgba(70, 84, 99, 0.9);
  border-radius: 12px;
  overflow: hidden;
  background: #161c24;
  cursor: pointer;
  text-align: right;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.pwd-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--map-img) center / cover no-repeat;
  transition: transform 0.4s ease;
}
.pwd-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(15, 19, 25, 0.97) 0%, rgba(15, 19, 25, 0.8) 26%, rgba(15, 19, 25, 0) 60%);
}
.pwd-map-name,
.pwd-map-code {
  position: absolute;
  right: 6%;
  z-index: 1;
  color: #ffa600;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.pwd-map-name { top: calc(50% - 1.1em); font-size: clamp(11px, 1.02vw, 17px); letter-spacing: 0.02em; }
.pwd-map-code { top: calc(50% + 0.18em); font-size: clamp(22px, 2.3vw, 40px); letter-spacing: 0.02em; font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace; }
.pwd-map:hover { transform: translateY(-2px); border-color: rgba(255, 166, 0, 0.72); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42); }
.pwd-map:hover::before { transform: scale(1.04); }
.pwd-map:active { transform: translateY(0); }

@media (max-width: 1280px) {
  .pwd-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pwd-map-name { font-size: 13px; }
  .pwd-map-code { font-size: 30px; }
}

@media (max-width: 980px) {
  .pwd-scroll { padding: 0; }
  .pwd-maps { display: none; }
  .pwd-strip .pwd-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }
  .pwd-strip .pwd-cell {
    border: 1px solid rgba(120, 140, 160, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
    padding: 11px 6px 10px;
    gap: 4px;
  }
  .pwd-strip .pwd-cell:first-child { border-left: 1px solid rgba(120, 140, 160, 0.16); }
  .pwd-strip .pwd-cell .code { font-size: 19px; letter-spacing: 0.06em; color: var(--gold-2); }
  .pwd-strip .pwd-cell .m { font-size: 10px; }
  .pwd-strip .pwd-cell:active {
    background: rgba(216, 179, 106, 0.1);
    border-color: rgba(216, 179, 106, 0.42);
  }
}

/* ================= 工具页统一版式（参考 shushu.fan） ================= */
.sk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.sk-chips .label { font-size: 12px; color: #8b98a6; }
.sk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; color: #cfe0ef; }
.sk-chip.gold { color: var(--gold-2, #e2c07f); border-color: rgba(226, 192, 127, 0.28); background: rgba(226, 192, 127, 0.08); }
.sk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.sk-panel { background: linear-gradient(180deg, rgba(22, 29, 38, 0.86), rgba(14, 19, 26, 0.9)); border: 1px solid rgba(120, 140, 160, 0.16); border-radius: 16px; padding: 18px; }
.sk-panel-head { text-align: center; margin-bottom: 14px; }
.sk-panel-head h3 { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; }
.sk-panel-head p { margin-top: 4px; font-size: 11.5px; color: #8b98a6; }
.rank-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; padding-right: 2px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(8, 12, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.045); transition: background 0.15s ease, border-color 0.15s ease; }
.rank-row:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.09); }
.rank-no { flex: none; width: 20px; text-align: center; font-size: 12.5px; font-weight: 800; color: #74828f; font-variant-numeric: tabular-nums; }
.rank-row.rank-top .rank-no { color: #ffcf6a; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.rank-chip { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: #9fb0c0; white-space: nowrap; }
.rank-metrics { flex: none; text-align: right; }
.rank-val { display: block; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-sub { display: block; margin-top: 2px; font-size: 10.5px; color: #8b98a6; white-space: nowrap; }
.rank-row .item-ico { flex: none; }

@media (max-width: 720px) {
  .sk-grid { grid-template-columns: 1fr; }
  .sk-panel { padding: 14px; border-radius: 13px; }
  .rank-list { max-height: none; }
  .rank-val { font-size: 13px; }
  .rank-sub { font-size: 10px; }
}

.build-group,
.hour-card,
.gun-card {
  border: 1px solid rgba(120, 140, 160, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 29, 38, 0.86), rgba(14, 19, 26, 0.9));
}
.build-group { padding: 18px; margin-bottom: 16px; }
.hour-card { overflow: hidden; }
.gun-card { overflow: hidden; }
.build-group:hover,
.hour-card:hover,
.gun-card:hover { border-color: rgba(120, 140, 160, 0.26); }

/* 改枪码卡片（参考 shushu.fan） */
.gun-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gun-visual { height: auto; aspect-ratio: 16 / 9; }
.gun-visual .gun-img { max-height: 78%; }
.gun-price-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #ffd98a;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(8, 12, 17, 0.78); backdrop-filter: blur(4px);
}
.gun-price-tag i { font-style: normal; color: #e2c07f; font-size: 10px; }
.gun-name { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gun-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #8b98a6; }
.gun-object { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gun-author { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.gun-author i {
  width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 9px;
  display: grid; place-items: center; background: rgba(226, 192, 127, 0.18); color: #e2c07f;
}
.gun-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gun-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(226, 192, 127, 0.1); color: #e2c07f; }
.gun-foot { margin-top: auto; padding-top: 2px; }
.gun-stats { font-size: 10.5px; color: #8b98a6; }

/* 钓鱼图鉴 */
.fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.fish-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border-radius: 14px; text-align: left; cursor: pointer;
  border: 1px solid rgba(120, 140, 160, 0.16);
  background: linear-gradient(180deg, rgba(22, 29, 38, 0.86), rgba(14, 19, 26, 0.9));
  color: inherit; font: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.fish-card:hover { border-color: rgba(226, 192, 127, 0.34); transform: translateY(-1px); }
.fish-thumb {
  flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(88, 159, 220, 0.18), rgba(8, 12, 17, 0.92));
}
.fish-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fish-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fish-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.fish-grade { flex: none; font-size: 10px; padding: 1px 6px; border-radius: 999px; border: 1px solid; font-weight: 600; }
.fish-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fish-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 800; color: #ffd98a; }
.fish-price small { font-size: 9.5px; font-weight: 500; color: #8b98a6; margin-top: 1px; }
.fish-modal-pic { width: 52px; height: 52px; flex: none; border-radius: 9px; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(88, 159, 220, 0.18), rgba(8, 12, 17, 0.92)); }
.fish-modal-pic img { width: 100%; height: 100%; object-fit: contain; }
.fish-sec { margin-top: 16px; }
.fish-sec h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: #8b98a6; margin-bottom: 8px; }
.fish-variants { display: flex; flex-wrap: wrap; gap: 10px; }
.fish-variant { display: flex; flex-direction: column; gap: 4px; min-width: 104px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.fish-variant b { font-size: 16px; color: #ffd98a; }
.fish-variant small { font-size: 9.5px; color: #8b98a6; }
.fish-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fish-chip { font-size: 11px; padding: 3px 9px; border-radius: 6px; color: #a9c8e4; background: rgba(88, 159, 220, 0.1); border: 1px solid rgba(88, 159, 220, 0.22); }
.fish-baits { display: flex; flex-direction: column; gap: 8px; }
.fish-bait { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.fish-bait img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.fish-bait > div { flex: 1; min-width: 0; }
.fb-name { font-size: 12.5px; font-weight: 600; }
.fb-desc { font-size: 10.5px; line-height: 1.55; color: #8b98a6; margin-top: 2px; }
.fish-eco { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border-left: 2px solid rgba(226, 192, 127, 0.4); }
.fish-eco h5 { font-size: 12.5px; color: #e2c07f; margin-bottom: 6px; }
.fish-eco p { font-size: 11.5px; line-height: 1.7; color: #9fb0c0; white-space: pre-wrap; }

/* ============================================================
   POLISH 2025-11 · 交互 / 性能 / 可访问性
   ============================================================ */
:root {
  --ring: 0 0 0 2px rgba(226, 192, 127, 0.55), 0 0 0 5px rgba(226, 192, 127, 0.14);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }

/* 焦点可见性：键盘导航清晰，鼠标点击不出现描边 */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
.tool-card:focus-visible, .news-card:focus-visible, .fish-card:focus-visible, .gun-card:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}
.btn, .tab, .tool-card, .news-card, .fish-card, .gun-card, .build-card { transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.btn:active, .tab:active, .tool-card:active, .gun-card:active, .fish-card:active { transform: scale(.985); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading .spinner { width: 12px; height: 12px; border-width: 2px; margin-right: 6px; }

/* 页面切换过渡 */
.page { animation: page-in .26s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 数据更新时间 */
.upd-time {
  font-size: 10.5px; color: var(--muted-2); letter-spacing: .02em;
  padding-left: 8px; border-left: 1px solid rgba(137, 153, 169, .22); margin-left: 2px;
  white-space: nowrap;
}

/* 骨架屏 */
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; }
.sk-row + .sk-row { margin-top: 6px; }
.sk-bone {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 37%, rgba(255, 255, 255, .04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
.sk-ico { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.sk-main { flex: 1; min-width: 0; }
.sk-main .sk-bone + .sk-bone { margin-top: 8px; width: 55%; }

/* 长列表渲染性能 */
.news-card, .fish-card, .gun-card, .build-card { content-visibility: auto; contain-intrinsic-size: auto 168px; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(226, 192, 127, .28);
  background: rgba(12, 18, 26, .82); color: var(--gold-2, #e2c07f);
  backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(226, 192, 127, .6); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.to-top svg { width: 17px; height: 17px; }

/* 表格交互细节 */
.table-wrap tbody tr { transition: background-color .15s ease; }
.table-wrap tbody tr:hover { background-color: rgba(255, 255, 255, .028); }

@media (max-width: 720px) {
  .to-top { right: 14px; bottom: 18px; width: 38px; height: 38px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .tool-card:hover, .news-card:hover, .gun-card:hover, .fish-card:hover { transform: none; }
}

/* ============================================================
   MARKET INSIGHT 2025-11 · 行情看板 / 涨跌闪烁
   ============================================================ */
.mk-dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mk-card {
  position: relative;
  padding: 14px 16px 13px;
  border-radius: 14px;
  border: 1px solid rgba(137, 153, 169, .14);
  background: linear-gradient(160deg, rgba(22, 30, 41, .92), rgba(12, 18, 26, .92));
  overflow: hidden;
}
.mk-card::after {
  content: "";
  position: absolute; right: -26px; top: -30px;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 192, 127, .13), transparent 68%);
}
.mk-k { display: block; font-size: 11px; letter-spacing: .06em; color: var(--muted-2, #8899a9); }
.mk-card b { display: block; margin: 6px 0 3px; font-size: 20px; line-height: 1.15; font-weight: 700; }
.mk-n {
  display: block; font-size: 11.5px; color: var(--muted, #9fb0c0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes flash-up {
  0% { background-color: rgba(64, 200, 120, .32); box-shadow: inset 0 0 0 1px rgba(64, 200, 120, .45); }
  100% { background-color: transparent; box-shadow: none; }
}
@keyframes flash-down {
  0% { background-color: rgba(235, 87, 87, .30); box-shadow: inset 0 0 0 1px rgba(235, 87, 87, .42); }
  100% { background-color: transparent; box-shadow: none; }
}
.flash-up { animation: flash-up 1.5s ease-out; }
.flash-down { animation: flash-down 1.5s ease-out; }
.btn-gold {
  border-color: rgba(226, 192, 127, .55) !important;
  color: #f0d9a8 !important;
  background: rgba(226, 192, 127, .10) !important;
}
@media (max-width: 900px) {
  .mk-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-card b { font-size: 17px; }
}
@media (max-width: 420px) {
  .mk-dash { gap: 8px; }
  .mk-card { padding: 12px 12px 11px; }
}

/* ============================================================
   DETAIL PAGE / ABOUT 2025-11
   ============================================================ */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2, #8899a9); margin-bottom: 12px; }
.crumb a { color: var(--muted, #9fb0c0); }
.crumb a:hover { color: var(--gold, #e2c07f); }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; flex-wrap: wrap; }
.detail-title { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.detail-title .item-ico { width: 68px; height: 68px; flex: 0 0 68px; font-size: 22px; border-radius: 14px; }
.detail-title h1 { font-size: 24px; margin: 2px 0 8px; line-height: 1.25; }
.detail-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.detail-desc { margin: 10px 0 0; font-size: 13px; color: var(--muted, #9fb0c0); line-height: 1.7; max-width: 620px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.detail-stats .stat-card .v { font-size: 22px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kv-grid > div { display: flex; flex-direction: column; gap: 5px; }
.kv-grid span { font-size: 11.5px; color: var(--muted-2, #8899a9); }
.kv-grid b { font-size: 16px; font-weight: 600; color: var(--text, #e7eef6); }
.range-note { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted, #9fb0c0); }
.range-note b { font-weight: 600; }
.liq-dot {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; line-height: 1.6; color: #f0c28a; border: 1px solid rgba(240, 178, 110, .32);
  background: rgba(240, 178, 110, .08); vertical-align: 1px; cursor: help;
}
.modal-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-grid h3 { margin: 0 0 10px; font-size: 15px; }
.about-grid p, .about-grid li { font-size: 13px; line-height: 1.85; color: var(--muted, #9fb0c0); margin: 0; }
.about-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.about-grid strong { color: var(--gold, #e2c07f); }
@media (max-width: 900px) {
  .detail-stats, .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .detail-title h1 { font-size: 20px; }
  .detail-head { padding: 16px; }
}
@media (max-width: 560px) {
  .detail-title .item-ico { width: 54px; height: 54px; flex: 0 0 54px; font-size: 18px; }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   CONTENT PAGES 2025-11
   ============================================================ */
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-card {
  position: relative; display: block; padding: 18px 18px 16px;
  border: 1px solid var(--line, #1d2733); border-radius: 12px; background: var(--panel, #0e141b);
  transition: border-color .18s ease, transform .18s ease;
}
.guide-card:hover { border-color: rgba(216, 179, 106, .42); transform: translateY(-2px); }
.guide-card-no { font-size: 11px; letter-spacing: .18em; color: var(--gold, #e2c07f); }
.guide-card h3 { margin: 8px 0 6px; font-size: 16px; }
.guide-card p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--muted, #9fb0c0); }
.guide-card-more { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gold-2, #f0c98a); }
.guide-card-more svg { width: 13px; height: 13px; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.guide-article h2 { font-size: 17px; margin: 0 0 10px; padding-top: 22px; }
.guide-article section:first-child h2 { padding-top: 0; }
.guide-article p, .guide-article li { font-size: 13px; line-height: 1.9; color: var(--muted, #9fb0c0); }
.guide-article p { margin: 0 0 10px; }
.guide-article ul, .guide-article ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.guide-article a { color: var(--gold-2, #f0c98a); }
.guide-article strong { color: var(--text, #e7eef6); }
.guide-side { position: sticky; top: calc(var(--nav-h, 62px) + 16px); display: grid; gap: 12px; }
.guide-side h3 { margin: 0 0 10px; font-size: 14px; }
.toc { display: grid; gap: 2px; }
.toc button {
  text-align: left; padding: 8px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted, #9fb0c0); font-size: 12.5px;
}
.toc button:hover { background: rgba(255, 255, 255, .04); color: var(--text, #e7eef6); }
.link-list { display: grid; gap: 2px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted, #9fb0c0);
}
.link-row:hover { background: rgba(255, 255, 255, .04); color: var(--gold-2, #f0c98a); }

.guide-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.8; color: var(--muted, #9fb0c0); }
.guide-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px;
  border: 1px solid rgba(216, 179, 106, .22); border-radius: 8px;
  background: rgba(216, 179, 106, .05); font-size: 12px; line-height: 1.7; color: var(--muted, #9fb0c0);
}
.guide-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: var(--gold, #e2c07f); }

.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.map-card {
  position: relative; display: flex; align-items: flex-end; min-height: 168px; padding: 16px;
  border: 1px solid var(--line, #1d2733); border-radius: 14px; overflow: hidden; isolation: isolate;
  transition: border-color .18s ease;
}
.map-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--map-img); background-size: cover; background-position: center;
  transform: scale(1.02); transition: transform .35s ease;
}
.map-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 15, .12) 0%, rgba(8, 11, 15, .55) 55%, rgba(8, 11, 15, .92) 100%);
}
.map-card:hover::before { transform: scale(1.06); }
.map-card:hover { border-color: rgba(216, 179, 106, .5); }
.map-card-body { display: flex; flex-direction: column; gap: 5px; }
.map-card-en { font-size: 10px; letter-spacing: .22em; color: var(--gold, #e2c07f); }
.map-card strong { font-size: 19px; letter-spacing: .02em; }
.map-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted, #9fb0c0); }
.map-card-meta em { font-style: normal; }
.map-card-code { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.map-card-code em { font-style: normal; font-size: 9.5px; letter-spacing: .14em; color: var(--muted-2, #8899a9); }
.map-card-code b { font-size: 20px; letter-spacing: .06em; color: var(--gold-2, #f0c98a); }

.map-hero { position: relative; border: 1px solid var(--line, #1d2733); border-radius: 14px; overflow: hidden; isolation: isolate; padding: 26px 24px; }
.map-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--map-img); background-size: cover; background-position: center; }
.map-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 9, 13, .94) 0%, rgba(6, 9, 13, .72) 55%, rgba(6, 9, 13, .35) 100%);
}
.map-hero-in { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.map-hero .eyebrow { font-size: 10px; letter-spacing: .24em; color: var(--gold, #e2c07f); }
.map-hero h1 { margin: 0; font-size: 28px; letter-spacing: .02em; }
.map-hero p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted, #9fb0c0); }
.map-hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 8px 0 6px; }
.map-hero-facts span { display: flex; flex-direction: column; gap: 3px; }
.map-hero-facts em { font-style: normal; font-size: 10.5px; color: var(--muted-2, #8899a9); }
.map-hero-facts b { font-size: 16px; }
.map-hero-facts b.gold { color: var(--gold-2, #f0c98a); }
.map-zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.map-zone-grid h3 { margin: 0 0 6px; font-size: 14px; }
.map-zone-grid p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--muted, #9fb0c0); }

.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.op-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.op-head { display: flex; align-items: center; gap: 10px; }
.op-ava {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #ffd88a;
  background: linear-gradient(150deg, #3d2f17, #1b150b); border: 1px solid #7d5f28;
}
.op-title { min-width: 0; flex: 1; }
.op-title h3 { margin: 0; font-size: 15px; }
.op-title span { font-size: 11px; color: var(--muted-2, #8899a9); }
.op-card .pill { flex: 0 0 auto; }
.op-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.op-card > p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--muted, #9fb0c0); }
.op-gear { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.op-gear span { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; border: 1px dashed rgba(216, 179, 106, .3); color: var(--gold-2, #f0c98a); }
.chip.link { text-decoration: none; }
.chip.link:hover { border-color: rgba(216, 179, 106, .45); color: var(--gold-2, #f0c98a); }
.btn[hidden] { display: none !important; }

.point-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.point-card { padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; }
.point-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.point-head h3 { margin: 0; font-size: 14px; }
.point-tag {
  flex: 0 0 auto; font-size: 10px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(216, 179, 106, .32); color: var(--gold-2, #f0c98a); background: rgba(216, 179, 106, .07);
}
.point-card p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--muted, #9fb0c0); }
.point-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--gold-2, #f0c98a); }

/* ============================================================
   MOBILE ADAPTIVE 2025-11
   ============================================================ */
@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; grid-template-columns: 1fr 1fr; }
  .map-grid, .map-zone-grid, .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { max-height: calc(100dvh - var(--nav-h, 62px)); overflow-y: auto; overscroll-behavior: contain; gap: 4px; }
  .nav a { flex: 1 1 42%; text-align: center; padding: 10px 8px; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 10px; }
  .page { padding-top: 18px; }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head h1 { font-size: 21px; }
  .page-head p { font-size: 12.5px; }
  .toolbar { padding: 10px 12px; gap: 8px; }
  .toolbar .spacer { display: none; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar .search .input { width: 100%; }
  .toolbar .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .toolbar .seg { flex: 1 1 100%; }
  .tab, .seg button, .btn-sm { min-height: 36px; }
  .table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chart-box svg { height: 200px; }
  .guide-side { grid-template-columns: 1fr; }
  .map-grid, .map-zone-grid, .op-grid, .guide-cards { grid-template-columns: 1fr; }
  .point-grid { grid-template-columns: 1fr; }
  .map-hero { padding: 20px 18px; }
  .map-hero h1 { font-size: 23px; }
  .map-hero-facts { gap: 16px; }
  .map-card { min-height: 148px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .brand-name { font-size: 14px; }
  .status-chip { display: none; }
  .page-head h1 { font-size: 19px; }
  .tool-grid { gap: 8px; }
  .map-card-code b { font-size: 17px; }
  .op-card { padding: 14px; }
}

/* ============================================================
   GUN METRICS / MANUFACTURE VIEW 2025-11
   ============================================================ */
.gun-tag.alt { background: rgba(90, 170, 255, .1); color: #8fc4ff; }
.gun-prop-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; }
.gun-prop {
  font-size: 10.5px; line-height: 1.6; padding: 1px 6px; border-radius: 5px;
  border: 1px solid rgba(137, 153, 169, .18); background: rgba(255, 255, 255, .02); color: var(--muted, #9fb0c0);
}
.gun-prop.up { color: #59d18c; border-color: rgba(89, 209, 140, .26); background: rgba(89, 209, 140, .06); }
.gun-prop.down { color: #f0796f; border-color: rgba(240, 121, 111, .26); background: rgba(240, 121, 111, .06); }
.rank-unit { font-size: 11px; font-weight: 500; color: var(--muted-2, #8899a9); margin-left: 1px; }
@media (max-width: 720px) {
  .toolbar .seg + .seg { flex: 1 1 calc(50% - 4px); }
  .gun-prop-row { margin-bottom: 6px; }
}

/* ============================================================
   MOBILE POLISH 2025-11 — 全站
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
img, svg, video { max-width: 100%; }

@media (max-width: 720px) {
  /* 横向滚动的 tab 组，避免换行挤压 */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: 0 0 auto; min-height: 34px; }

  /* iOS 输入框小于 16px 会自动放大页面 */
  input, select, textarea, .input, .select { font-size: 16px !important; }

  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 12.5px; }

  .sk-panel, .card { padding: 14px; }
  .sk-panel-head, .card-head { flex-wrap: wrap; gap: 6px; }
  .sk-panel-head h3, .card-head h2 { font-size: 15px; }

  /* 排行行在窄屏收紧，长名称省略 */
  .rank-row { gap: 8px; padding: 9px 10px; }
  .rank-no { width: 20px; font-size: 11px; }
  .rank-row .item-ico { width: 32px; height: 32px; flex: 0 0 32px; font-size: 12px; }
  .rank-name { font-size: 13px; }
  .rank-val { font-size: 13px; }
  .rank-sub { font-size: 10.5px; }
  .rank-chip { font-size: 10px; }
  .rank-metrics { align-items: flex-end; }

  th, td { padding: 8px 10px; }
  .table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

  .btn { min-height: 34px; }
  .btn-sm { min-height: 30px; }
  .to-top { width: 40px; height: 40px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); }

  .footer { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .footer-inner { align-items: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; row-gap: 8px; }
  .footer-meta { justify-content: center; flex-wrap: wrap; text-align: center; }

  .detail-head { padding: 16px; }
  .detail-title { gap: 12px; }
  .detail-title h1 { font-size: 19px; }
  .detail-title .item-ico { width: 54px; height: 54px; flex: 0 0 54px; font-size: 18px; border-radius: 12px; }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1 1 auto; justify-content: center; }
  .detail-stats, .kv-grid, .prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range-note { gap: 10px 18px; font-size: 12px; }

  .guide-side { grid-template-columns: 1fr; position: static; }
  .map-hero, .map-head { flex-direction: column; align-items: flex-start; }
  .op-card, .fish-card, .gun-card { padding: 14px; }
  .gun-card .gun-prop-row { margin-top: 2px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .page-head h1 { font-size: 18px; }
  .mk-card { padding: 11px 11px 10px; }
  .mk-card b { font-size: 16px; }
  .stat-card .v { font-size: 17px; }
  .stat-card .k { font-size: 11px; }
  .rank-metrics { max-width: 47%; }
  .rank-val { font-size: 12.5px; }
  .pwd-grid { gap: 7px; }
  .pwd-card { padding: 9px 8px; }
  .pwd-card b { font-size: 15px; letter-spacing: .04em; }
  .footer-links a { font-size: 12px; }
  .hero-main { padding: 20px 16px; }
}

/* ============================================================
   SSR INTRO / OVERFLOW GUARD 2025-11
   ============================================================ */
.ssr-intro { padding: 22px 4px 8px; max-width: 760px; }
.notice.announce { margin: 14px 0 18px; }
.ssr-intro h1 { font-size: 26px; line-height: 1.3; margin: 0 0 10px; color: var(--text, #e7eef6); }
.ssr-intro p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--muted, #9fb0c0); }
.ssr-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.ssr-links a { color: var(--gold, #e2c07f); }

.page, .page > *, .card, .card > *, .sk-panel, .sk-panel > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *, .stat-grid > *,
.mk-dash > *, .pwd-maps > *, .detail-stats > *, .kv-grid > * { min-width: 0; }

.detail-desc, .notice, .empty, .page-head p, .desc, .task-desc, .map-tip,
.guide-sec p, .about-grid p { overflow-wrap: anywhere; }

.table-wrap { max-width: 100%; }

@media (max-width: 720px) {
  .ssr-intro { padding: 14px 2px 6px; }
  .ssr-intro h1 { font-size: 20px; }
  .ssr-intro p { font-size: 13px; }

  /* 长文本、分享码不允许撑破容器 */
  .notice, .detail-desc, .empty, .page-head p, .task-desc, .guide-sec p { word-break: break-word; }
  .rank-row { grid-template-columns: 22px 32px minmax(0, 1fr) minmax(0, 46%); }
  .rank-main, .rank-metrics { min-width: 0; }
  .rank-val, .rank-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .pwd-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pwd-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg, .toolbar .seg { flex-wrap: wrap; }
  .modal-actions .btn, .detail-actions .btn { white-space: nowrap; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
  .tool-card { padding: 8px 2px 9px; }
}

@media (max-width: 420px) {
  .pwd-strip .pwd-row { gap: 6px; padding: 0 10px 10px; }
  .pwd-strip .pwd-cell { padding: 8px 4px 7px; }
  .pwd-strip .pwd-cell .code { font-size: 15.5px; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 2px; }
  .tool-card { padding: 7px 1px 8px; }
  .task-filters { flex-wrap: wrap; }
  .tf-field { flex: 1 1 calc(50% - 5px); }
}



