/* ===== 主题变量 ===== */
:root {
  --accent: #ffb300;
  --accent-2: #19c3a6;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(0,0,0,.18);
}
html {
  --bg: #f4f5f7;
  --bg-elev: #ffffff;
  --bg-soft: #eef0f3;
  --text: #1f2329;
  --muted: #6b7280;
  --border: #e3e6ea;
  --topbar: #ffffff;
  --sidebar: #fbfbfc;
}
html.dark {
  --bg: #0f1115;
  --bg-elev: #171a21;
  --bg-soft: #1f242d;
  --text: #e6e9ef;
  --muted: #8b93a1;
  --border: #262c36;
  --topbar: #14171d;
  --sidebar: #12151b;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 布局 ===== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 56px 1fr auto;
  grid-template-areas: "top top" "side main" "side foot";
  min-height: 100vh;
}
.topbar {
  grid-area: top;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.logo-accent { color: var(--accent); margin-left: 2px; }
.icon-btn {
  background: transparent; border: none; color: var(--text);
  font-size: 18px; cursor: pointer; width: 36px; height: 36px; border-radius: 8px;
}
.icon-btn:hover { background: var(--bg-soft); }

/* ===== 左侧分组折叠菜单 ===== */
.sidebar {
  grid-area: side;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 0;
}
.sidebar-header {
  display: flex; align-items: center;
  padding: 0 16px; height: 52px;
  background: var(--accent-2);
  color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.menu { display: flex; flex-direction: column; padding: 8px 0; }
.menu-group-wrap { user-select: none; }
.menu-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; cursor: pointer; color: var(--text);
  font-size: 14px; transition: background .12s, color .12s;
}
.menu-group-toggle:hover { background: var(--bg-soft); color: var(--accent-2); }
.menu-group-toggle .arrow { font-size: 11px; color: var(--muted); transition: transform .2s; }
.menu-group-wrap.collapsed .menu-group-toggle .arrow { transform: rotate(-90deg); }
.menu-group-items { display: flex; flex-direction: column; padding: 2px 0 6px; }
.menu-item,
.menu-item-plain {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; color: var(--text);
  border-left: 3px solid transparent; user-select: none;
  text-decoration: none; font-size: 14px;
}
.menu-item:hover,
.menu-item-plain:hover { background: var(--bg-soft); }
.menu-item.active,
.menu-item-plain.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-left-color: var(--accent); color: var(--accent); font-weight: 600;
}
.menu-item .ico,
.menu-item-plain .ico { width: 18px; text-align: center; }
.menu-group-wrap.active-group .menu-group-toggle { color: var(--accent); font-weight: 700; }

.content { grid-area: main; padding: 18px; }
.preview { max-width: 1200px; margin: 0 auto; }
.footer {
  grid-area: foot; text-align: center; padding: 14px;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.backdrop { display: none; }

/* ===== 组件 ===== */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.section-title {
  font-size: 16px; font-weight: 700; margin: 26px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: ""; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 8px;
}
.hero h1 { margin: 0 0 6px; font-size: 24px; }
.hero p { margin: 0; color: var(--muted); }

.stat { text-align: center; }
.stat .num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat .label { color: var(--muted); font-size: 12px; }

.map-card { text-align: center; }
.map-card .map-name { font-weight: 700; font-size: 15px; }
.map-card .code { font-size: 30px; font-weight: 800; letter-spacing: 3px; color: var(--accent-2); margin: 8px 0; font-family: "Consolas", monospace; }
.map-card .date { color: var(--muted); font-size: 12px; }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.tbl tr:hover td { background: var(--bg-soft); }

/* 稀有度配色已移除：干员/武器图鉴无稀有度区分 */

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--bg-soft); color: var(--muted); }
.profit-up { color: #ff5b5b; font-weight: 700; }   /* 中国习惯：涨=红 */
.profit-dn { color: #2ecc71; font-weight: 700; }

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

/* 外链跳转卡片 */
.links-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.link-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; text-decoration: none;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 12px; color: var(--text); transition: .15s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card .ic { font-size: 22px; }
.link-card .ext { font-size: 11px; color: var(--muted); }
.sub { color: var(--muted); margin: -8px 0 14px; }

.chart-box { height: 320px; }

/* 制作树 / 科技树 */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 12px; }
.legend .item { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.craft-diagram {
  height: 68vh; min-height: 460px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.craft-hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* 品牌副标 & 登录态徽标 */
.brand-en { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-left: 6px; }
.user-badge {
  font-size: 13px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 4px 10px; border-radius: 999px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== 弹窗（登录 / 注册 / 管理后台） ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-box {
  position: relative; width: min(420px, 92vw);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.modal-box.wide { width: min(720px, 94vw); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.modal-x { background: transparent; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.modal-body { padding: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  flex: 1; padding: 8px; border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: 8px; cursor: pointer; color: var(--text);
}
.tab.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); font-weight: 700; }
form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
form label input, .code-area {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px;
}
.code-area { height: 240px; font-family: Consolas, monospace; font-size: 12px; resize: vertical; line-height: 1.5; }
.btn-primary {
  width: 100%; padding: 11px; border: none; border-radius: 8px;
  background: var(--accent); color: #1a1a1a; font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.admin-actions { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.admin-actions .btn-primary { width: auto; }
.admin-stat {
  padding: 10px 12px; background: var(--bg-soft); border-radius: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 12px; word-break: break-all;
}
.form-msg { min-height: 18px; font-size: 13px; margin: 8px 0; }
.form-msg.err { color: #ff5b5b; }
.form-msg.ok { color: #2ecc71; }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "top" "main" "foot"; }
  .sidebar {
    position: fixed; top: 56px; bottom: 0; left: 0; width: 240px; z-index: 25;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .backdrop.show { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.4); z-index: 20; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

/* ===== 任务列表（赛季任务 / 挑战手册）===== */
.task-search { margin-bottom: 14px; }
.task-search input {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; box-sizing: border-box;
}
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-group {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.task-group-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none;
  background: var(--bg-soft);
}
.task-group-head:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft)); }
.task-group-name { flex: 1; font-size: 15px; font-weight: 700; }
.task-group-count { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 9px; border-radius: 999px; }
.task-group-arrow { font-size: 14px; color: var(--muted); }
.task-group-body { display: none; border-top: 1px solid var(--border); }
.task-group.open .task-group-body { display: block; }
.task-item { border-bottom: 1px solid var(--border); }
.task-item:last-child { border-bottom: none; }
.task-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer;
}
.task-row:hover { background: color-mix(in srgb, var(--accent-2) 5%, transparent); }
.task-cb { font-size: 16px; cursor: pointer; flex-shrink: 0; }
.task-title { flex: 1; font-size: 14px; }
.task-item.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-toggle { font-size: 12px; color: var(--muted); }
.task-body {
  padding: 0 16px 14px 42px; font-size: 13px; color: var(--muted); line-height: 1.7;
  white-space: pre-wrap;
}

/* ===== 首页一图流 V2 卡片风（浅灰建筑线稿）===== */
.hero-v2 {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  margin-bottom: 4px;
}
.hero-v2 h1 { margin: 0 0 4px; font-size: 22px; }
.hero-v2 p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-update { font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; }

.notice-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px; text-decoration: none; color: var(--text); transition: .15s;
}
.notice-strip:hover { border-color: var(--accent); }
.notice-strip-tag { background: var(--accent); color: #1a1a1a; font-size: 12px; padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.notice-strip-title { font-weight: 700; flex: 1; }
.notice-strip-more { font-size: 12px; color: var(--accent-2); white-space: nowrap; }

.map-grid-v2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 6px;
}
.map-card-v2 {
  position: relative; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.map-card-v2:hover { transform: translateY(-2px); border-color: var(--accent-2); box-shadow: 0 6px 20px rgba(25,195,166,.12); }
html.dark .map-card-v2 { background: var(--bg-elev); }
.map-v2-meta { position: relative; z-index: 2; }
.map-v2-name { font-size: 15px; font-weight: 700; color: var(--text); }
.map-v2-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.map-v2-code {
  position: relative; z-index: 2;
  font-size: 46px; font-weight: 900; letter-spacing: 5px;
  color: var(--accent-2); font-family: "Consolas", "SF Mono", monospace;
  margin: 10px 0 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.map-v2-art {
  position: absolute; right: -10px; bottom: -12px; width: 150px; height: 130px; opacity: .35; z-index: 1;
}
.map-art { width: 100%; height: 100%; }

.toggle-hour {
  margin-left: auto; font-size: 12px; font-weight: 700; color: #1a1a1a;
  background: #2ecc71; padding: 3px 10px; border-radius: 999px;
}

.item-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory;
}
.item-scroll::-webkit-scrollbar { height: 6px; }
.item-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.item-card {
  flex: 0 0 260px; scroll-snap-align: start;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .12s, border-color .12s;
}
html.dark .item-card { background: var(--bg-elev); }
.item-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.item-card-icon {
  width: 56px; height: 56px; border-radius: 12px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev); flex-shrink: 0;
}
.item-card-body { flex: 1; min-width: 0; }
.item-card-station { font-size: 12px; color: var(--muted); }
.item-card-name { font-size: 15px; font-weight: 700; margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-card-profit { font-size: 24px; font-weight: 800; }
.item-card-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 768px) {
  .hero-v2 { padding: 16px; }
  .map-grid-v2 { grid-template-columns: 1fr; }
  .map-v2-code { font-size: 40px; }
  .item-card { flex: 0 0 80vw; }
  .notice-strip-title { width: 100%; }
  .map-v2-art { width: 120px; height: 100px; opacity: .28; }
}

/* ===== 通用：分段切换 / 提示 ===== */
.seg { display: inline-flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.seg-btn {
  border: none; background: transparent; color: var(--text); cursor: pointer;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.seg-btn.active { background: var(--accent-2); color: #04211c; }
.muted-note { color: var(--muted); font-size: 12px; margin-left: 6px; }
.craft-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.mg-msg .err, .sim-note, .craft-tools .muted-note { color: var(--muted); }
.mg-msg .err { color: #ff5b5b; font-weight: 700; }
.mg-msg .ok { color: #2ecc71; font-weight: 700; }

/* ===== 模拟器 ===== */
.sim-compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.sim-card h4 { margin: 0 0 12px; font-size: 14px; }
.sim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sim-row label { flex: 0 0 130px; color: var(--muted); font-size: 13px; }
.sim-row input, .sim-row select {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px;
}
.sim-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.sim-bar-label { flex: 0 0 84px; font-size: 12px; color: var(--muted); }
.sim-bar-track { flex: 1; height: 10px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.sim-bar-fill { height: 100%; border-radius: 6px; transition: width .25s; }
.sim-bar-val { flex: 0 0 92px; text-align: right; font-size: 12px; color: var(--muted); }
.sim-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.kpi { background: var(--bg-soft); border-radius: 10px; padding: 12px; text-align: center; }
.kpi .num { font-size: 20px; font-weight: 800; color: var(--accent-2); }
.kpi .label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.sim-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 8px; }

/* ===== 发票利润计算器 ===== */
.inv-head, .inv-row { display: grid; grid-template-columns: 1fr 70px 100px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-head { font-size: 12px; color: var(--muted); padding: 0 2px; }
.inv-row input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; }
.inv-del { border: none; background: transparent; color: #ff5b5b; cursor: pointer; font-size: 15px; }
.receipt { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 12px; padding: 16px; }
.rc-title { font-size: 16px; font-weight: 800; }
.rc-sub { font-size: 12px; color: var(--muted); margin: 2px 0 12px; }
.rc-line { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dotted var(--border); }
.rc-strong { font-weight: 800; border-bottom: none; padding-top: 10px; }
.rc-profit { font-weight: 800; color: #2ecc71; border-bottom: none; font-size: 15px; }

/* ===== 摩斯密码小游戏 ===== */
.morse-game { max-width: 720px; margin: 0 auto; }
.mg-info { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mg-info code { background: var(--bg); padding: 1px 6px; border-radius: 4px; color: var(--accent-2); }
.mg-actions { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.mg-actions .btn-primary, .mg-actions .btn-ghost { width: auto; flex: 1; min-width: 120px; }
.mg-input { width: 100%; padding: 12px 14px; font-size: 18px; letter-spacing: 3px; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); margin: 6px 0; }
.mg-msg { min-height: 22px; font-size: 14px; margin: 8px 0; }
.mg-score { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.mg-score b { color: var(--accent-2); }
.terminal { background: #0b0f14; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.term-bar { display: flex; gap: 6px; padding: 10px; background: #11161d; }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4250; }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-code { margin: 0; padding: 18px; color: #4ade80; font-family: Consolas, monospace; font-size: 20px; letter-spacing: 3px; line-height: 1.9; word-break: break-all; }
.term-actions { padding: 0 18px 16px; }
.fp-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px 0; }
.fp-svg { width: 220px; height: 220px; background: var(--bg-soft); border-radius: 16px; padding: 8px; }

/* ===== 音乐播放器 ===== */
.music-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--topbar); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
.mb-btn { background: transparent; border: none; color: var(--text); cursor: pointer; font-size: 16px; width: 34px; height: 34px; border-radius: 8px; }
.mb-btn:hover { background: var(--bg-soft); }
.mb-play { background: var(--accent-2); color: #04211c; font-size: 18px; }
.mb-meta { flex: 0 0 200px; min-width: 0; }
.mb-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-sub { font-size: 11px; color: var(--muted); }
.mb-progress { flex: 1; height: 6px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.mb-fill { height: 100%; width: 0; background: var(--accent-2); transition: width .25s; }
.mb-open { font-size: 18px; }
#mbVol { width: 90px; }
@media (max-width: 600px) { .mb-meta { flex-basis: 110px; } #mbVol { display: none; } }
.footer { padding-bottom: 76px; }

.music-intro { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.music-intro code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; color: var(--accent-2); }
.song-list { display: flex; flex-direction: column; gap: 10px; }
.song-row { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: .15s; }
.song-row:hover { border-color: var(--accent-2); }
.song-row.active { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 8%, var(--bg-elev)); }
.song-play { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg-soft); color: var(--text); font-size: 15px; cursor: pointer; flex-shrink: 0; }
.song-row.active .song-play { background: var(--accent-2); color: #04211c; }
.song-info { flex: 1; min-width: 0; }
.song-name { font-size: 15px; font-weight: 700; }
.song-sub { font-size: 12px; color: var(--muted); }
.song-wave { font-size: 11px; color: var(--muted); background: var(--bg-soft); padding: 3px 8px; border-radius: 999px; }

/* ===== 数字摩斯密码小游戏（截图风格）===== */
.morse-config { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.cfg-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cfg-row:last-child { border-bottom: none; }
.cfg-row > label:first-child { flex: 0 0 120px; font-weight: 700; color: var(--text); }
.cfg-row .radio, .cfg-row .checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); }
.cfg-row input[type="radio"], .cfg-row input[type="checkbox"] { accent-color: var(--accent-2); }
.cfg-row input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--accent-2); }
.cfg-row .val { flex: 0 0 36px; text-align: right; color: var(--accent-2); font-weight: 700; }
.morse-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.morse-actions .btn-primary, .morse-actions .btn-ghost { width: auto; min-width: 140px; }
.morse-screen { background: #0f3a2f; border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; text-align: center; color: #fff; }
.morse-status { font-size: 13px; color: #a8e6d9; margin-bottom: 12px; }
.morse-status b { color: #fff; }
.morse-answer-row { display: inline-flex; gap: 12px; justify-content: center; margin-bottom: 10px; }
.morse-input-box { width: 54px; height: 60px; line-height: 60px; border: 2px solid rgba(255,255,255,.3); border-radius: 8px; font-size: 28px; font-weight: 800; color: #fff; background: rgba(0,0,0,.2); }
.morse-input-box.filled { border-color: var(--accent-2); color: var(--accent-2); }
.morse-hint { font-size: 13px; color: rgba(255,255,255,.65); }
.numkeypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.numkey { padding: 16px; font-size: 22px; font-weight: 700; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); color: var(--text); cursor: pointer; transition: .1s; }
.numkey:hover { background: var(--bg-soft); }
.numkey:active { transform: scale(.96); }
.numkey-wide { grid-column: span 1; }

/* ===== 指纹选择小游戏 ===== */
.fp-game { display: grid; grid-template-columns: 180px 1fr 220px; gap: 14px; background: #121921; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.fp-left { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-right: 1px solid rgba(255,255,255,.08); }
.fp-avatar { width: 80px; height: 100px; background: rgba(255,255,255,.15); border-radius: 8px; position: relative; }
.fp-avatar::before { content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); }
.fp-avatar::after { content: ""; position: absolute; left: 50%; top: 64px; transform: translateX(-50%); width: 56px; height: 40px; border-radius: 20px 20px 0 0; background: rgba(255,255,255,.25); }
.fp-role { font-size: 15px; font-weight: 700; color: #fff; margin-top: 8px; }
.fp-meta { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; }
.fp-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fp-title { align-self: flex-start; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.fp-print { background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px; }
.fp-svg { width: 100%; max-width: 280px; height: auto; display: block; }
.fp-right { display: flex; flex-direction: column; gap: 10px; }
.fp-right-title { font-size: 13px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); padding: 8px 10px; border-radius: 6px; }
.fp-candidates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fp-candidate { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px; text-align: center; cursor: pointer; transition: .15s; position: relative; }
.fp-candidate:hover { border-color: var(--accent-2); }
.fp-candidate .fp-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #ff5b5b; background: rgba(0,0,0,.5); border-radius: 8px; }
.fp-candidate .fp-check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #2ecc71; background: rgba(0,0,0,.5); border-radius: 8px; }
.fp-cand-label { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; }
.fp-mini { width: 50px; height: 64px; margin: 0 auto; display: block; }
@media (max-width: 768px) {
  .fp-game { grid-template-columns: 1fr; }
  .fp-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .fp-right { align-items: center; }
  .fp-candidates { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 赞助弹窗 ===== */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.modal-card { position: relative; width: min(460px, 92vw); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 16px; background: transparent; border: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.modal-icon { font-size: 52px; margin-bottom: 6px; }
.modal-card h2 { margin: 0 0 12px; font-size: 22px; }
.modal-card p { margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.modal-meta { background: var(--bg-soft); border-radius: 10px; padding: 12px; margin: 16px 0; font-size: 13px; color: var(--text); }
.modal-meta strong { color: var(--accent-2); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.modal-actions .btn-primary, .modal-actions .btn-ghost { width: auto; min-width: 130px; }

/* ===== 更新日志 ===== */
.changelog { display: flex; flex-direction: column; gap: 14px; }
.log-item { border-left: 3px solid var(--accent-2); padding-left: 14px; }
.log-date { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.log-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.log-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.log-item li { margin-bottom: 4px; }

/* =========================================================
 * 整站美化增强（2026-07-11）
 * 顶栏渐变 / 卡片悬浮 / 标题高亮 / 英雄区 / 菜单动效
 * ========================================================= */
body {
  background:
    radial-gradient(900px 500px at 100% -5%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    radial-gradient(700px 480px at -5% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent),
    var(--bg);
}
.topbar {
  background: linear-gradient(180deg, var(--topbar), color-mix(in srgb, var(--topbar) 80%, var(--bg-soft)));
  box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(0,0,0,.06);
}
.logo { letter-spacing: .5px; background: linear-gradient(90deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html.dark .logo { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.icon-btn { transition: .15s; }
.icon-btn:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.22); }

.section-title::before {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.section-title { letter-spacing: .3px; }

.menu-item { transition: background .15s, color .15s, border-color .15s; }
.menu-item.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-left-color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero-v2 {
  background:
    radial-gradient(600px 200px at 100% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent),
    linear-gradient(135deg, var(--bg-elev), color-mix(in srgb, var(--accent-2) 7%, var(--bg-elev)));
  box-shadow: var(--shadow);
}
.hero-v2 h1 { letter-spacing: .5px; }

.notice-strip { box-shadow: var(--shadow); }
.notice-strip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(25,195,166,.18); }

.map-card-v2 { background: linear-gradient(135deg, var(--bg-soft), color-mix(in srgb, var(--accent-2) 6%, var(--bg-soft))); }
html.dark .map-card-v2 { background: linear-gradient(135deg, var(--bg-elev), color-mix(in srgb, var(--accent-2) 8%, var(--bg-elev))); }

.item-card { background: linear-gradient(135deg, var(--bg-soft), color-mix(in srgb, var(--accent) 5%, var(--bg-soft))); }
html.dark .item-card { background: linear-gradient(135deg, var(--bg-elev), color-mix(in srgb, var(--accent) 7%, var(--bg-elev))); }

.stat .num { text-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent); }

/* 滚动条（webkit）美化 */
*::-webkit-scrollbar { width: 10px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 50%, var(--border)); }

/* 表格斑马纹 */
table.tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-soft) 50%, transparent); }
table.tbl thead th { border-bottom: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* 顶栏左侧增加站点英文名点缀 */
.brand-en::before { content: "· "; color: var(--accent); }

/* 通用按钮统一悬浮反馈 */
.btn-primary, .btn { transition: filter .15s, transform .1s; }
.btn-primary:active, .btn:active { transform: scale(.97); }

/* 移动端顶栏标题 */
@media (max-width: 768px) {
  .topbar { padding: 0 10px; }
  .logo { font-size: 16px; }
  .content { padding: 12px; }
}

/* ===== 图鉴：特战干员 / 武器 ===== */
.op-grid, .wpn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.op-card, .wpn-card { background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.op-card:hover, .wpn-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.op-head, .wpn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.op-icon, .wpn-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: color-mix(in srgb, var(--accent-2) 14%, var(--bg-soft)); flex-shrink: 0; }
.op-id, .wpn-id { flex: 1; min-width: 0; }
.op-name, .wpn-name { font-size: 16px; font-weight: 800; }
.op-code, .wpn-type { font-size: 12px; color: var(--muted); margin-top: 1px; }
.op-role-line, .wpn-ammo-line { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--accent-2); flex-shrink: 0; display: inline-block; margin-top: 4px; }

.op-meta, .wpn-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.op-desc, .wpn-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; min-height: 20px; }

.op-stats { display: flex; flex-direction: column; gap: 6px; }
.stat-line { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.stat-l { width: 30px; color: var(--muted); flex-shrink: 0; }
.stat-track { flex: 1; height: 7px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.stat-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; }
.stat-v { width: 26px; text-align: right; font-weight: 700; color: var(--text); flex-shrink: 0; }

.wpn-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--text); }
.chip b { color: var(--accent-2); font-weight: 700; margin-right: 4px; }

/* ===== 音乐播放器（仿鼠鼠音乐）===== */
.music-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.music-list { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.music-list-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); font-size: 14px; }
#plItems { max-height: 72vh; overflow-y: auto; }
.pl-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); }
.pl-item:hover { background: var(--bg-soft); }
.pl-item.active { background: color-mix(in srgb, var(--accent-2) 10%, var(--bg-elev)); border-left: 3px solid var(--accent-2); }
.pl-cover { width: 46px; height: 46px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #04211c; font-size: 18px; }
.pl-meta { flex: 1; min-width: 0; }
.pl-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { font-size: 12px; color: var(--muted); }
.pl-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pl-tag { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); }
.pl-dur { font-size: 12px; color: var(--muted); }
.pl-src { font-size: 14px; }
.music-stage { position: sticky; top: 70px; }
.pl-player { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.pl-big-cover { width: 100%; aspect-ratio: 16/10; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800; color: #04211c; margin-bottom: 16px; }
.pl-now { text-align: center; margin-bottom: 14px; }
.pl-now-title { font-size: 20px; font-weight: 800; }
.pl-now-artist { font-size: 13px; color: var(--muted); }
.pl-stage { border-radius: 12px; overflow: hidden; background: #000; }
.pl-embed { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.pl-audio { width: 100%; }
.pl-nostage { padding: 40px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pl-tip { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
/* ===== 悬浮常驻音乐播放器 ===== */
.music-now { display: flex; gap: 16px; align-items: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.mn-cover { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #04211c; font-size: 26px; overflow: hidden; }
.mn-info { flex: 1; min-width: 0; }
.mn-title { font-size: 18px; font-weight: 800; }
.mn-artist { font-size: 13px; color: var(--muted); }
.mn-tip { font-size: 12px; color: var(--accent-2); margin-top: 6px; }

.music-float { position: fixed; right: 18px; bottom: 18px; width: 320px; max-width: calc(100vw - 24px); z-index: 9000; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); overflow: hidden; font-size: 13px; }
.music-float.hidden { display: none; }
.mf-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mf-cover { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #04211c; font-size: 16px; overflow: hidden; }
.mf-meta { flex: 1; min-width: 0; }
.mf-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-ctrls { display: flex; gap: 4px; flex-shrink: 0; }
.mf-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mf-btn:hover { background: var(--accent-2); color: #04211c; }
.mf-stage { display: none; border-top: 1px solid var(--border); background: #000; }
.music-float.expanded .mf-stage { display: block; }
.mf-embed { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.mf-audio { width: 100%; }
.mf-nostage { padding: 24px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; font-size: 13px; }
.mf-show { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-2); color: #04211c; border: 0; font-size: 20px; cursor: pointer; z-index: 9000; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* ===== 后台图片库 ===== */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.img-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.img-thumb { width: 100%; aspect-ratio: 4/3; background: var(--bg-soft) center/cover; border-bottom: 1px solid var(--border); }
.img-name { font-size: 13px; font-weight: 600; padding: 8px 10px 2px; word-break: break-all; }
.img-used { font-size: 11px; color: var(--accent-2); padding: 0 10px 6px; }
.img-card .img-del { margin: 0 10px 10px; }

/* ===== 图鉴增强（仿 KK日报 数据密集风）===== */
.op-portrait, .wpn-portrait { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #04211c; }
.op-head, .wpn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.count-badge { font-size: 12px; font-weight: 600; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--bg-elev)); padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.seg-right { margin-left: auto; }
.codex-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.codex-table th, .codex-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.codex-table th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--bg-soft); position: sticky; top: 0; }
.codex-table tbody tr:hover { background: var(--bg-soft); }
.op-td-name { min-width: 140px; }
.op-sub { font-size: 11px; color: var(--muted); }
.op-stats-td { min-width: 220px; }
.op-desc-td { color: var(--muted); max-width: 280px; }
.mini-chip { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--bg-soft); margin: 2px 3px 2px 0; }
.mini-chip b { color: var(--accent-2); margin-right: 3px; }

/* ===== 破译电脑小游戏 ===== */
.pc-start { text-align: center; padding: 30px; }
.pc-game { background: #121921; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.pc-terminal { background: #06120c; border: 1px solid #1c3b2c; border-radius: 10px; overflow: hidden; }
.pc-bar { display: flex; gap: 6px; padding: 8px 10px; background: #0a1a12; }
.pc-bar span { width: 10px; height: 10px; border-radius: 50%; }
.pc-bar span:nth-child(1) { background: #ff5f56; } .pc-bar span:nth-child(2) { background: #ffbd2e; } .pc-bar span:nth-child(3) { background: #27c93f; }
.pc-screen { padding: 26px 18px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pc-code-show { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pc-code-show span { font-family: Consolas, monospace; font-size: 34px; font-weight: 800; color: #4ade80; background: rgba(74,222,128,.08); border: 1px solid #1c3b2c; border-radius: 8px; width: 48px; height: 56px; display: flex; align-items: center; justify-content: center; }
.pc-code-hidden { font-size: 34px; letter-spacing: 8px; color: #4ade80; font-family: Consolas, monospace; }
.pc-hint { font-size: 13px; color: rgba(255,255,255,.5); }
.pc-actions { display: flex; gap: 10px; align-items: center; padding: 14px; flex-wrap: wrap; }
.pc-input { flex: 1; min-width: 140px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 10px 12px; font-size: 18px; letter-spacing: 4px; font-family: Consolas, monospace; text-transform: uppercase; }
.pc-score, .fp-score { text-align: center; font-size: 14px; color: var(--muted); padding: 10px; }
.pc-score b, .fp-score b { color: var(--accent-2); }
.fp-score { grid-column: 1 / -1; }

/* ===== 快速反应小游戏 ===== */
.react-game { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; }
.react-box { width: 100%; max-width: 420px; height: 180px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; cursor: pointer; user-select: none; transition: .1s; color: #fff; }
.react-box.idle { background: #2a2f3a; }
.react-box.wait { background: #c0392b; }
.react-box.go { background: #27ae60; }
.react-box:active { transform: scale(.98); }
.react-stat { font-size: 14px; color: var(--muted); text-align: center; }
.react-stat b { color: var(--accent-2); }
.react-actions { display: flex; gap: 12px; }

/* ===== 脑机密码门小游戏 ===== */
.brain-game { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; }
.brain-grid { display: grid; grid-template-columns: repeat(2, 120px); gap: 14px; }
.brain-pad { height: 120px; border-radius: 16px; cursor: pointer; opacity: .55; transition: .12s; border: 2px solid rgba(255,255,255,.15); }
.brain-pad.lit { opacity: 1; box-shadow: 0 0 24px rgba(255,255,255,.6); transform: scale(1.04); }
.brain-status { font-size: 14px; color: var(--muted); }
.brain-score { font-size: 14px; color: var(--muted); }
.brain-score b { color: var(--accent-2); }

@media (max-width: 768px) {
  .music-layout { grid-template-columns: 1fr; }
  .music-stage { position: static; }
  .fp-game { grid-template-columns: 1fr; }
  .fp-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .brain-grid { grid-template-columns: repeat(2, 90px); }
  .brain-pad { height: 90px; }
  .music-float { right: 10px; bottom: 10px; width: 260px; }
  .mf-show { right: 10px; bottom: 10px; }
}

/* =========================================================
 * 新增：攻略 / 小知识 / 工具 / 安装横幅 / 后台移动拦截
 * ========================================================= */

/* ===== 新手攻略 ===== */
.guide-intro { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.guide-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 12px; color: var(--accent-2); }
.guide-ico { font-size: 18px; }
.guide-list { display: flex; flex-direction: column; gap: 8px; }
.guide-row { display: flex; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.guide-row:last-child { border-bottom: none; }
.guide-k { flex: 0 0 42%; color: var(--text); font-weight: 600; }
.guide-v { flex: 1; color: var(--muted); line-height: 1.6; }
.guide-tip { margin-top: 16px; }

/* ===== 三角洲小知识 ===== */
.trivia-sharebar { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.trivia-sharebar .t-input, .trivia-sharebar .t-area {
  width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit;
}
.trivia-sharebar .t-tag { max-width: 200px; }
.trivia-sharebar .t-area { resize: vertical; min-height: 64px; line-height: 1.6; }
.trivia-sharebar-actions { display: flex; align-items: center; gap: 12px; }
.t-msg { font-size: 13px; color: var(--muted); }
.trivia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.trivia-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.trivia-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.trivia-card.mine { border-left: 4px solid var(--accent); }
.trivia-top { display: flex; align-items: center; gap: 8px; }
.trivia-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 14%, var(--bg-soft)); color: var(--accent-2); }
.trivia-mine { font-size: 11px; color: var(--accent); margin-left: auto; }
.trivia-title { font-size: 15px; font-weight: 800; }
.trivia-body { font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.trivia-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t-btn { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: .12s; }
.t-btn:hover { border-color: var(--accent-2); }
.t-btn.liked { background: color-mix(in srgb, var(--accent-2) 16%, var(--bg-soft)); color: var(--accent-2); font-weight: 700; }
.t-btn.del-btn:hover { border-color: #ff5b5b; color: #ff5b5b; }

/* ===== 实用工具（开箱 / 舔包 / 散落）===== */
.tool-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); max-width: 560px; }
.tool-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-row label { flex: 0 0 90px; color: var(--muted); font-size: 13px; }
.tool-row select, .tool-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; }
.tool-result { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.loot-line { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.loot-i { font-weight: 800; color: var(--accent-2); flex: 0 0 40px; }
.loot-x { flex: 1; }

/* ===== PWA 安装横幅 ===== */
.install-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--topbar); border-top: 1px solid var(--border); box-shadow: 0 -6px 22px rgba(0,0,0,.22);
}
.ib-icon { font-size: 22px; }
.ib-text { flex: 1; font-size: 13px; color: var(--text); }
.ib-btn { border: none; background: var(--accent-2); color: #04211c; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.ib-close { background: transparent; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }

/* ===== 后台：仅电脑端拦截 ===== */
.mobile-block {
  max-width: 460px; margin: 12vh auto 0; padding: 32px; text-align: center;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.mobile-block .mb-icon { font-size: 56px; margin-bottom: 8px; }
.mobile-block h1 { font-size: 22px; margin: 8px 0 14px; }
.mobile-block p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 8px 0; }
.mobile-block .mb-hint { font-size: 13px; }
.mobile-block .mb-back { display: inline-block; margin-top: 18px; color: var(--accent-2); text-decoration: none; font-weight: 700; }

/* ===== 横屏 / 竖屏自适应增强 ===== */
@media (orientation: landscape) and (max-height: 560px) {
  .layout { grid-template-rows: 52px 1fr auto; }
  .topbar { padding: 0 14px; }
  .content { padding: 12px 18px; }
  .hero-v2 { padding: 14px 18px; }
  .map-grid-v2 { grid-template-columns: repeat(4, 1fr); }
  .item-card { flex: 0 0 240px; }
}
@media (orientation: portrait) and (max-width: 768px) {
  .map-grid-v2 { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .trivia-grid { grid-template-columns: 1fr; }
  .op-grid, .wpn-grid { grid-template-columns: 1fr; }
  .tool-card { max-width: 100%; }
}
/* 超宽屏：内容居中，避免过宽 */
@media (min-width: 1600px) {
  .preview { max-width: 1320px; }
  .content { padding: 18px 36px; }
}

/* ===== 界面定制：圆角 / 紧凑密度（总管理员可改） ===== */
.card, .panel-card, .kpi-card, .login-card, .art-card, .post, .map-card-v2,
.op-card, .wpn-card, .codex-table, .guide-card, .tool-card, .trivia-card, .rash-card {
  border-radius: var(--radius, 12px);
}
html.compact .panel-card { padding: 12px; }
html.compact .card { padding: 12px; }
html.compact .kpi-card { padding: 12px; }
html.compact .op-card, html.compact .wpn-card { padding: 12px; }
html.compact .admin-main { padding: 14px; }
html.compact .as-item { padding: 9px 16px; }
html.compact .field { margin-bottom: 8px; }

/* 干员图鉴：战术技能样式（前台） */
.op-skill { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: var(--accent-2); }
.op-skill-tag { display: inline-block; font-size: 10px; font-weight: 700; color: #1a1a1a; background: var(--accent-2); padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.op-skill-desc { font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.op-skill-td { font-size: 13px; }
.op-skill-td b { color: var(--accent-2); }

/* ===== KK日报 式紧凑仪表盘 ===== */
.kk-hero { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:linear-gradient(135deg, color-mix(in srgb,var(--accent) 18%, var(--bg-elev)), var(--bg-elev)); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; margin-bottom:14px; }
.kk-hero-t h1 { margin:0; font-size:22px; letter-spacing:.5px; }
.kk-hero-t p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.kk-hero-u { font-size:12px; color:var(--muted); background:var(--bg-soft); padding:6px 12px; border-radius:999px; }
.kk-tasks { display:flex; align-items:center; gap:10px; background:var(--bg-elev); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:10px; padding:10px 14px; margin-bottom:14px; text-decoration:none; color:var(--text); }
.kk-tasks-tag { font-size:12px; font-weight:700; color:#1a1a1a; background:var(--accent); padding:2px 8px; border-radius:6px; }
.kk-tasks-title { flex:1; font-size:14px; }
.kk-tasks-more { font-size:12px; color:var(--muted); }
.kk-board { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
@media (max-width:1100px){ .kk-board{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:680px){ .kk-board{ grid-template-columns:1fr;} }
.kk-card { background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius); padding:12px 14px; min-width:0; }
.kk-card-h { font-size:13px; font-weight:700; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; color:var(--text); }
.kk-more { font-size:12px; color:var(--accent); text-decoration:none; font-weight:400; }
.kk-map-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
@media (max-width:520px){ .kk-map-grid{ grid-template-columns:repeat(2,1fr);} }
.kk-map { background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:8px; text-align:center; }
.kk-map-name { font-size:12px; color:var(--muted); }
.kk-map-code { font-family:Consolas,monospace; font-size:20px; font-weight:800; letter-spacing:3px; color:var(--accent-2); margin:2px 0; }
.kk-map-date { font-size:10px; color:var(--muted); }
.kk-li { display:flex; align-items:center; gap:8px; padding:6px 2px; border-bottom:1px dashed var(--border); font-size:13px; }
.kk-li:last-child { border-bottom:none; }
.kk-li-st { font-size:11px; color:var(--muted); min-width:42px; }
.kk-li-n { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kk-li-v { font-weight:700; font-variant-numeric:tabular-nums; }
.kk-li-t { font-size:11px; color:var(--muted); }
.kk-li-i { width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%; background:var(--bg-soft); color:var(--muted); font-size:11px; }
.kk-empty { color:var(--muted); font-size:13px; padding:8px 0; }

/* ===== 图鉴详情弹窗（Tab 分栏） ===== */
.op-card[data-oi], .wpn-card[data-wi] { cursor:pointer; }
.op-card[data-oi]:hover, .wpn-card[data-wi]:hover { border-color:var(--accent); }
.df-modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.65); display:flex; align-items:center; justify-content:center; z-index:9999; padding:20px; }
.df-modal { position:relative; background:var(--bg-elev); border:1px solid var(--border); border-radius:16px; max-width:720px; width:100%; max-height:88vh; overflow:auto; padding:22px; box-shadow:0 24px 70px rgba(0,0,0,.5); }
.df-modal-close { position:absolute; top:12px; right:14px; background:var(--bg-soft); border:none; color:var(--text); font-size:22px; line-height:1; width:36px; height:36px; border-radius:10px; cursor:pointer; }
.df-modal-close:hover { background:var(--accent); color:#fff; }
.df-detail-head { display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.df-detail-portrait { width:88px; height:88px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:800; color:#fff; }
.df-detail-name { font-size:23px; font-weight:800; }
.df-detail-sub { color:var(--muted); font-size:13px; margin-top:2px; }
.df-detail-tags { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.df-detail-stats { display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; margin:10px 0; }
.df-detail-desc { color:var(--muted); font-size:13px; line-height:1.7; margin:8px 0; }

.df-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0 10px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.df-tab { background:var(--bg-soft); border:1px solid var(--border); color:var(--text); border-radius:8px; padding:6px 12px; font-size:13px; cursor:pointer; transition:.15s; }
.df-tab:hover { border-color:var(--accent); }
.df-tab.active { background:var(--accent); color:#06281f; border-color:var(--accent); font-weight:700; }
.df-tab-panel { animation:fadeIn .25s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

.df-panel-title { font-size:14px; font-weight:800; color:var(--accent-2); margin-bottom:8px; }
.df-skill-name { font-size:16px; font-weight:800; margin-bottom:6px; }
.df-skill-desc { color:var(--muted); font-size:13px; line-height:1.7; }
.df-media { margin:10px 0; border-radius:12px; overflow:hidden; background:var(--bg-soft); border:1px solid var(--border); }
.df-media img, .df-media video { width:100%; display:block; max-height:320px; object-fit:cover; }
.df-empty-tip { color:var(--muted); font-size:13px; background:var(--bg-soft); border:1px dashed var(--border); border-radius:10px; padding:14px; text-align:center; }
.df-analysis-text { color:var(--text); font-size:13px; line-height:1.8; margin-bottom:10px; }
.df-total-score { font-size:18px; font-weight:800; color:var(--accent-2); margin-bottom:10px; }
.df-review-item { background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin-bottom:8px; }
.df-review-score { font-weight:800; color:var(--accent-2); font-size:13px; margin-bottom:3px; }
.df-review-text { font-size:13px; color:var(--text); line-height:1.6; }
.df-mod-item { background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:13px; margin-bottom:6px; }

.df-wpn-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.df-wpn-stat { background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; padding:10px; }
.df-wpn-stat .stat-l { width:auto; min-width:48px; }
.df-wpn-stat .stat-v { width:34px; }
@media (max-width:560px){ .df-detail-head{ flex-direction:column; text-align:center;} .df-detail-stats,.df-wpn-grid{ grid-template-columns:1fr;} .df-tabs{ gap:4px;} .df-tab{ padding:5px 9px; font-size:12px;} }

/* ===== 后台·网站更新内容编辑 ===== */
.cl-row { background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:10px 0; }
.cl-row .cl-date { width:140px; }
.cl-row .cl-title { flex:1; }
.cl-row textarea { width:100%; }

/* ===== 赛季任务三栏（命运契约 / 收集者 / 赛季主线） ===== */
.task-cols { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; align-items:start; }
.task-col { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.task-col-h { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; font-weight:800; font-size:15px; color:#0e1116; }
.task-col-h.col-phase1 { background:linear-gradient(135deg,#3a7bd5,#19c3a6); }
.task-col-h.col-phase2 { background:linear-gradient(135deg,#7b2cbf,#e0aaff); }
.task-col-h.col-phase3 { background:linear-gradient(135deg,#ffb300,#ff7a59); }
.task-col-h.col-phase4 { background:linear-gradient(135deg,#e63946,#ff6b6b); }
.task-col-h.col-collector { background:linear-gradient(135deg,#2ecc71,#7bd33a); }
.task-col-h.col-fate { background:linear-gradient(135deg,#ff6b6b,#ff9f1c); }
.task-col-n { font-size:12px; background:rgba(0,0,0,.18); border-radius:20px; padding:1px 9px; }
.task-col-body { padding:8px 10px 12px; max-height:64vh; overflow:auto; }
.tci { border-radius:9px; transition:background .15s; margin-bottom:4px; }
.tci-row { display:flex; align-items:center; gap:8px; padding:8px; cursor:pointer; }
.tci:hover { background:var(--bg-soft); }
.tci.open { background:var(--bg-soft); }
.tci-cb { flex:0 0 auto; font-size:14px; cursor:pointer; }
.tci-title { flex:1; font-size:13.5px; }
.tci-arrow { flex:0 0 auto; font-size:12px; color:var(--muted); }
.tci-detail { padding:0 10px 10px 34px; font-size:12px; color:var(--text); border-top:1px dashed var(--border); }
.tci-map { color:var(--accent); margin-bottom:6px; }
.tci-goals { margin:0 0 8px 16px; padding:0; color:var(--muted); }
.tci-goals li { margin-bottom:4px; }
.tci-reward { color:#2ecc71; background:rgba(46,204,113,.08); border-radius:6px; padding:4px 8px; margin-bottom:6px; }
.tci-note { color:var(--muted); font-size:11px; border-left:2px solid var(--accent); padding-left:8px; }
.tci.done .tci-title { text-decoration:line-through; color:var(--muted); }
.tci.done .tci-cb { opacity:.7; }
@media (max-width:1100px){ .task-cols{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:860px){ .task-cols{ grid-template-columns:1fr; } .task-col-body{ max-height:none; } }

/* ===== 首页活动物品需求·API 实时徽标 ===== */
.kk-api { font-size:10px; background:#19c3a6; color:#06281f; border-radius:6px; padding:1px 6px; margin-left:6px; vertical-align:middle; }

/* ===== 改枪方案·预览图 ===== */
.gb-img { width:100%; border-radius:10px; overflow:hidden; margin-bottom:8px; background:var(--bg-soft); }
.gb-img img { width:100%; display:block; max-height:200px; object-fit:cover; }

/* ===== 浏览数据（analytics）视图 ===== */
.an-empty { max-width:760px; }
.an-empty-ico { font-size:42px; text-align:center; margin:6px 0 10px; }
.an-empty h3 { text-align:center; margin:0 0 10px; }
.an-empty p { color:var(--muted); line-height:1.7; }
.an-steps { margin:8px 0 8px 22px; line-height:2; }
.an-steps code, .an-note code, .an-help code { background:var(--bg-soft); padding:1px 6px; border-radius:5px; font-size:12px; }
.an-note { font-size:12px; color:var(--muted); margin-top:8px; }
.an-card { max-width:1100px; padding:0; overflow:hidden; }
.an-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line); background:var(--bg-soft); }
.an-provider { font-size:13px; color:var(--muted); }
.an-frame { width:100%; height:70vh; min-height:520px; border:0; display:block; background:#fff; }
.an-hint { font-size:12px; color:var(--muted); margin-left:8px; }

/* ===== 后台·开关（浏览统计启用） ===== */
.switch { position:relative; display:inline-block; width:42px; height:22px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; inset:0; background:#555; border-radius:22px; transition:.2s; }
.slider:before { content:""; position:absolute; height:16px; width:16px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider { background:var(--accent, #19c3a6); }
.switch input:checked + .slider:before { transform:translateX(20px); }
.an-help { font-size:12px; color:var(--muted); line-height:1.7; }
.an-help a { color:var(--accent, #19c3a6); }

/* ===== 首页·实时物价卡片 / 快照标记 ===== */
.kk-snap { font-size:10px; background:#3a3f4a; color:#cfd6e0; border-radius:6px; padding:1px 6px; margin-left:6px; vertical-align:middle; }
.kk-card.kk-live { display:flex; flex-direction:column; cursor:pointer; text-decoration:none; color:inherit; border-color:var(--accent, #19c3a6); }
.kk-live-body { font-size:13px; color:var(--muted); line-height:1.6; padding:4px 0 8px; }
.kk-live-go { font-size:13px; color:var(--accent, #19c3a6); font-weight:600; }
.kk-live-status { font-size:11px; color:var(--muted); margin-top:6px; }
.lp-mini { display:inline-block; background:var(--bg-soft); border-radius:6px; padding:3px 8px; margin:3px 3px 0 0; font-size:12px; color:var(--text); }
.lp-mini b { color:var(--accent-2, #4d96ff); margin-left:4px; }

/* ===== 实时物价视图 ===== */
.lp-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:10px 0; }
.lp-bar input[type=text] { flex:1; min-width:200px; }
.lp-bar select { min-width:120px; }
.lp-meta { font-size:12px; color:var(--muted); }
.lp-table { display:flex; flex-direction:column; gap:2px; max-height:70vh; overflow:auto; border:1px solid var(--line); border-radius:10px; }
.lp-row { display:grid; grid-template-columns:1fr 120px 120px; gap:8px; align-items:center; padding:7px 12px; border-bottom:1px solid var(--line); font-size:13px; }
.lp-row:nth-child(odd) { background:var(--bg-soft); }
.lp-name { font-weight:500; }
.lp-cat { color:var(--muted); font-size:12px; }
.lp-price { text-align:right; color:var(--accent-2, #19c3a6); font-weight:700; font-variant-numeric:tabular-nums; }
@media (max-width:560px){ .lp-row { grid-template-columns:1fr 90px; } .lp-cat{ display:none; } }

/* ===== 后台·图鉴详情编辑器 ===== */
.op-detail, .wc-detail { background:var(--bg-soft); }
.op-detail > td, .wc-detail > td { padding:14px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.detail-fieldset { border:1px solid var(--border); border-radius:12px; padding:12px; background:var(--bg-elev); }
.detail-legend { font-size:13px; font-weight:800; color:var(--accent-2); margin-bottom:10px; }
.fld-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:8px; }
.fld-label { width:80px; flex-shrink:0; font-size:12px; color:var(--muted); padding-top:7px; }
.fld-row input, .fld-row textarea, .fld-row select { flex:1; min-width:0; }
.fld-row textarea { resize:vertical; }
.fld-row .btn { flex:0 0 auto; }
@media (max-width:860px){ .detail-grid { grid-template-columns:1fr; } .fld-row { flex-direction:column; gap:4px; } .fld-label { width:auto; padding-top:0; } }

/* ===== UI 微调 ===== */
.task-search input { transition:border-color .15s, box-shadow .15s; }
.task-search input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(25,195,166,.15); }
.seg-btn { transition:.12s; }
.section-title { letter-spacing:.2px; }

/* ===== 新手速览（KK日报式：侧边栏 + 列表） ===== */
.gd-layout { display:grid; grid-template-columns:200px 1fr; gap:20px; align-items:start; }
.gd-sidebar { position:sticky; top:74px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px; max-height:calc(100vh - 90px); overflow-y:auto; }
.gd-side-group { margin-bottom:14px; }
.gd-side-group:last-child { margin-bottom:0; }
.gd-side-title { font-size:12px; font-weight:700; color:var(--muted); letter-spacing:.5px; margin-bottom:8px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.gd-nav { display:flex; flex-direction:column; gap:2px; }
.gd-nav-item { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; color:var(--text); font-size:13px; text-decoration:none; cursor:pointer; transition:.12s; }
.gd-nav-item:hover { background:var(--bg-soft); color:var(--accent-2); }
.gd-nav-item.active { background:color-mix(in srgb, var(--accent) 14%, transparent); color:var(--accent-2); font-weight:700; }
.gd-main { min-width:0; }
.gd-hero { margin-bottom:20px; }
.gd-hero h1 { font-size:24px; font-weight:800; margin:0 0 8px; display:flex; align-items:center; gap:10px; }
.gd-hero p { color:var(--muted); font-size:14px; line-height:1.7; margin:0; }
.gd-body { display:flex; flex-direction:column; gap:20px; }
.gd-section { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:18px; }
.gd-section-h { display:flex; align-items:center; gap:10px; font-size:17px; font-weight:700; margin:0 0 14px; color:var(--text); }
.gd-section-ico { font-size:22px; }
.gd-rows { display:flex; flex-direction:column; }
.gd-row { display:grid; grid-template-columns:180px 1fr; gap:14px; padding:12px 0; border-bottom:1px dashed var(--border); font-size:13px; line-height:1.7; }
.gd-row:last-child { border-bottom:none; padding-bottom:0; }
.gd-row-k { font-weight:700; color:var(--accent-2); }
.gd-row-v { color:var(--muted); }
@media (orientation: portrait) and (max-width: 768px) {
  .gd-layout { grid-template-columns:1fr; }
  .gd-sidebar { position:static; max-height:none; }
  .gd-row { grid-template-columns:1fr; gap:4px; }
}

/* ===== 近战武器 / 刀皮数值面板 ===== */
.ml-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; }
.ml-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.ml-header { background:var(--bg-soft); padding:14px 16px; border-bottom:1px solid var(--border); }
.ml-name { font-size:16px; font-weight:800; color:var(--text); margin-bottom:6px; }
.ml-tags { display:flex; flex-wrap:wrap; gap:6px; }
.ml-tag { font-size:11px; color:var(--muted); background:var(--bg); border:1px solid var(--border); padding:2px 8px; border-radius:6px; }
.ml-stats { display:flex; flex-direction:column; }
.ml-stat { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px dashed var(--border); font-size:13px; }
.ml-stat:last-child { border-bottom:none; }
.ml-stat-k { color:var(--muted); }
.ml-stat-v { color:var(--text); font-weight:700; font-family:ui-monospace, Menlo, Consolas, monospace; }
.ml-desc { padding:12px 16px; font-size:13px; color:var(--muted); line-height:1.7; border-top:1px solid var(--border); background:var(--bg-soft); }
@media (orientation: portrait) and (max-width: 768px) {
  .ml-grid { grid-template-columns:1fr; }
}

/* ===== 电竞选手测试 ===== */
.quiz-wrap { max-width:680px; margin:0 auto; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.quiz-progress { font-size:13px; color:var(--muted); margin-bottom:12px; }
.quiz-q { font-size:18px; font-weight:700; margin-bottom:20px; line-height:1.5; }
.quiz-opts { display:flex; flex-direction:column; gap:10px; }
.quiz-opt { text-align:left; padding:14px 16px; background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; color:var(--text); cursor:pointer; font-size:14px; transition:.15s; }
.quiz-opt:hover { border-color:var(--accent); background:var(--bg-elev); }
.quiz-result { text-align:center; padding:20px; }
.quiz-result-icon { font-size:48px; margin-bottom:10px; }
.quiz-result-role { font-size:24px; font-weight:800; color:var(--accent); margin-bottom:10px; }
.quiz-result-desc { font-size:15px; color:var(--text); margin-bottom:12px; line-height:1.7; }
.quiz-result-suggest { font-size:13px; color:var(--muted); margin-bottom:24px; }
.quiz-retry { padding:10px 24px; background:var(--accent-2); color:#fff; border:0; border-radius:8px; cursor:pointer; font-size:14px; }

/* ===== 赛季任务：纯 CSS 横向分支树 ===== */
.task-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.task-tab {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .12s;
}
.task-tab:hover { border-color: var(--accent); color: var(--accent); }
.task-tab.active {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
  font-weight: 700;
}
.task-panel { display: block; }
.task-panel.active { display: block; }
.task-tree-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.task-tree-h::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}
.task-tree-diagram {
  min-height: 300px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.task-tree {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
}
.task-root {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.task-root-card {
  background: var(--c);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  max-width: 160px;
  text-align: center;
  line-height: 1.4;
}
.task-branches {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
  padding-left: 44px;
  min-height: 120px;
}
.task-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 2px;
  background: var(--c);
  transform: translateY(-1px);
}
.task-branch {
  position: relative;
  display: flex;
  align-items: center;
}
.task-branch::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 50%;
  width: 44px;
  height: 2px;
  background: var(--c);
}
.task-node {
  background: var(--bg-soft);
  border: 2px solid var(--c);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 170px;
  max-width: 240px;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .1s, border-color .1s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.task-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.task-node.done {
  background: rgba(46,204,113,.12);
  border-color: #2ecc71;
}
.task-node-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--c);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.task-node-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}
.task-node-meta {
  font-size: 12px;
  color: var(--muted);
}
.task-tree-empty {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

/* 任务详情弹窗 */
.task-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  padding: 16px;
}
.task-modal {
  width: min(520px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
.task-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}
.task-modal-close {
  background: var(--bg-soft);
  border: none;
  color: var(--text);
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
}
.task-modal-close:hover { background: var(--accent); color: #fff; }
.task-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.task-block {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
}
.task-block-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.task-info { border-left-color: #6b7280; }
.task-goals { border-left-color: var(--accent); }
.task-reward { border-left-color: #2ecc71; }
.task-note { border-left-color: var(--accent-2); color: var(--muted); font-size: 13px; line-height: 1.7; }
.task-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 6px;
  align-items: baseline;
}
.task-row:last-child { margin-bottom: 0; }
.task-row label {
  color: var(--muted);
  flex: 0 0 72px;
  font-weight: 600;
}
.task-row span { flex: 1; color: var(--text); }
.task-block ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.7; }
.task-block li { margin-bottom: 4px; }
.task-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.btn-mark {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-mark:hover { filter: brightness(1.08); }
.btn-ok {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn-ok:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) {
  .task-tabs { gap: 6px; }
  .task-tab { padding: 8px 12px; font-size: 12px; }
  .task-tree-diagram { padding: 16px; min-height: 240px; }
  .task-node { min-width: 140px; max-width: 180px; padding: 10px 12px; }
  .task-row { flex-direction: column; gap: 2px; }
  .task-row label { flex: 0 0 auto; }
}
/* ===== 工具箱 ===== */
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:16px; }
.tool-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.tool-card-h { font-size:16px; font-weight:700; margin-bottom:12px; color:var(--accent); }
.tool-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; }
.tool-row:last-child { border-bottom:0; }
.tool-row span { color:var(--muted); }
.tool-row b { color:var(--text); margin-right:4px; }

/* ===== 反馈页 ===== */
.fb-wrap { max-width:720px; margin:40px auto; padding:20px; }
.fb-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; margin-bottom:20px; }
.fb-card h2 { margin:0 0 16px; font-size:20px; color:var(--accent); }
.fb-card p { line-height:1.8; color:var(--text); margin:8px 0; }
.fb-card a { color:var(--accent-2); text-decoration:none; }
.fb-card a:hover { text-decoration:underline; }
.fb-option { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--border); border-radius:8px; margin:10px 0; background:var(--bg-soft); cursor:pointer; transition:.15s; }
.fb-option:hover { border-color:var(--accent); }
.fb-option .ico { font-size:24px; }
.fb-option .meta { flex:1; }
.fb-option .title { font-weight:600; color:var(--text); }
.fb-option .sub { font-size:13px; color:var(--muted); margin-top:2px; }
.fb-back { display:inline-block; margin-top:20px; padding:10px 18px; background:var(--accent); color:#fff; border-radius:6px; text-decoration:none; }
