:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --nav: #1b1e23;
  --nav-text: #c9ced6;
  --accent: #1f7a4d;
  --accent-dark: #17603c;
  --danger: #c0392b;
  --warn: #b7791f;
  --info: #2b6cb0;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航：深色台呢 + 木色库边 ---------- */
.nav {
  background: linear-gradient(180deg, #0c2e23 0%, #082219 100%);
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: inset 0 -3px 0 #5b3620, inset 0 -4px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.18);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 3px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a { color: var(--nav-text); }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .spacer { flex: 1; }
.nav .links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

/* 品牌：开伦的三颗球（白、黄、红） */
.nav .brand { display: inline-flex; align-items: center; gap: 10px; color: #f3ead6; font-size: 19px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.nav .brand:hover { color: #fff; }
.brand-balls { display: inline-flex; }
.brand-balls i { width: 12px; height: 12px; border-radius: 50%; margin-left: -3px; box-shadow: inset -2px -2px 3px rgba(0,0,0,.35), 0 0 0 1.5px #0a291f; }
.brand-balls i:first-child { margin-left: 0; background: radial-gradient(circle at 35% 30%, #fff, #e9e3d3); }
.brand-balls i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #ffe27a, #e8b923); }
.brand-balls i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #f06a5f, #c4302b); }
.nav .brand-cn { color: #e8b923; font-weight: 600; letter-spacing: .15em; }

/* 栏目：当前页下方一道黄色「瞄准线」 */
.nav-main a { position: relative; padding: 8px 12px; border-radius: 6px; font-size: 15px; }
.nav-main a:hover { background: rgba(243,234,214,.07); }
.nav-main a.active { color: #fff; font-weight: 600; }
.nav-main a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; border-radius: 3px; background: #e8b923; }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid #e8b923; outline-offset: 2px; }

/* 未登录：登录 + 注册按钮 */
.nav-user > a { padding: 8px 12px; border-radius: 6px; }
.nav-user > a.nav-cta { background: #f3ead6; color: #0a3426; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-left: 4px; }
.nav-user > a.nav-cta:hover { background: #fff; color: #0a3426; }

/* 已登录：头像 + 名字，点开下拉 */
.nav-account { position: relative; }
.nav-me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid rgba(243,234,214,.18); border-radius: 999px; background: rgba(0,0,0,.15); color: #f3ead6; font: inherit; cursor: pointer; }
.nav-me:hover, .nav-account.open .nav-me { border-color: rgba(243,234,214,.4); background: rgba(243,234,214,.06); }
.nav-me .av { border-radius: 50%; }
.nav-name { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-me .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; transition: transform .15s; }
.nav-account.open .caret { transform: rotate(180deg); }
.nav-drop { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.05); }
.nav-account.open .nav-drop { display: block; }
.nav .nav-drop a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); }
.nav .nav-drop a:hover { background: #f1f5f2; color: var(--text); }
.nav .nav-drop a.active { color: var(--accent); font-weight: 600; }
.nav-user { gap: 10px; }
.nav-user > a.nav-me { padding: 4px 12px 4px 4px; border-radius: 999px; }
a.nav-me:hover { color: #fff; }
.nav-me.active { border-color: rgba(232,185,35,.7); }
.nav-user > a.nav-logout { padding: 6px 4px; font-size: 14px; color: rgba(201,206,214,.8); }
.nav-user > a.nav-logout:hover { color: #fff; }

/* 语言：小胶囊 */
.nav .nav-lang { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border: 1px solid rgba(243,234,214,.25); border-radius: 999px; }
.nav .nav-lang:hover { border-color: rgba(243,234,214,.55); }

/* ---------- 布局 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.narrow { max-width: 640px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h1 small { color: var(--muted); font-size: 15px; font-weight: normal; margin-left: 6px; }
h2 { font-size: 16px; margin: 0; }
.subtitle { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-head .hint { color: var(--muted); font-size: 13px; }
.card-body { padding: 16px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- 表单 ---------- */
.form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 14px;
}
.form-row > label { text-align: right; font-weight: 600; color: #374151; }
.form-row .help { grid-column: 2; color: var(--muted); font-size: 12px; margin-top: -6px; }
.form-row.inline-range { grid-template-columns: 120px 120px 1fr; }
.form-row.inline-range .help { grid-column: 3; margin: 0; }
@media (max-width: 560px) {
  .form-row, .form-row.inline-range { grid-template-columns: 1fr; }
  .form-row > label { text-align: left; }
  .form-row .help, .form-row.inline-range .help { grid-column: 1; }
}

input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #a7d7bd; border-color: var(--accent); }
input[readonly] { background: #f3f4f6; color: var(--muted); }
/* 触屏设备：输入框字号不小于 16px，否则 iOS Safari 聚焦时会自动放大页面 */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }

.select-flag { display: flex; gap: 8px; align-items: center; }
.select-flag img { width: 28px; height: 21px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }

.cue-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fafafa;
  grid-column: 2;
}
.cue-preview img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .cue-preview { grid-column: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: #fff; color: var(--text); border-color: #cfd4dc; }
.btn.secondary:hover { background: #f3f4f6; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 3px 10px; font-size: 13px; }
.btn + .btn { margin-left: 6px; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.alert.error { background: #fdecea; color: #922b21; }
.alert.success { background: #e8f6ee; color: #17603c; }
.alert.info { background: #ebf4ff; color: #1e4e8c; }
.hidden { display: none !important; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f9fafb; font-weight: 600; color: #4b5563; font-size: 13px; }
td.wrap { white-space: normal; word-break: break-all; min-width: 240px; }
tr:hover td { background: #fafbfc; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: #e5e7eb;
  color: #374151;
}
.badge.green { background: #dcfce7; color: #166534; }
.badge.yellow { background: #fef3c7; color: #92400e; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.blue { background: #dbeafe; color: #1e40af; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; margin-right: 4px; }
.dot.on { background: #22c55e; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.toolbar input[type=checkbox] { min-width: 0; }
.toolbar .minutes-input { min-width: 100px; width: 100px; }
.toolbar .reason-input { min-width: 240px; }
.check-label { display: flex; gap: 6px; align-items: center; font-weight: normal; }
.check-label input { width: auto; }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 600; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars { position: relative; }
.bars-empty { position: absolute; inset: 0 0 20px; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: 13px; }
.bars .bar { position: relative; padding-bottom: 20px; }
.bars .bar .fill { width: 100%; max-width: 26px; background: #34c178; border-radius: 3px 3px 0 0; }
.bars .bar.zero .fill { height: 3px !important; background: #e5e7eb; }
.bars .bar:hover .fill { background: #1f7a4d; }
.bars .bar .n { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 2px; }
.bars .bar .d { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  border: none;
  background: none;
  padding: 10px 14px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs .count { margin-left: 4px; }

/* ---------- 资料页 ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; padding: 20px; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #9ca3af;
  flex: none;
}
.avatar .av { width: 100%; height: 100%; border-radius: 8px; font-size: 44px; }
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; object-fit: cover;
      color: #fff; font-weight: 600; line-height: 1; vertical-align: middle; background: #e5e7eb; }
.avatar-edit { display: flex; align-items: center; gap: 14px; }
.avatar-edit .preview { width: 72px; height: 72px; flex: none; }
.avatar-edit .preview .av { width: 100%; height: 100%; border-radius: 8px; font-size: 32px; }
.avatar-edit .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avatar-edit .help { flex-basis: 100%; }
.name-cell { display: inline-flex; align-items: center; gap: 6px; }
.cell-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
td.row-actions .btn + .btn { margin-left: 4px; }
.btn.danger-text { color: #b91c1c; }
.profile-head h1 { margin: 0; }
.profile-head .meta { color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- 对话框 ---------- */
dialog {
  border: none;
  border-radius: 10px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog.wide { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.stat-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.stat-inputs label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .stat-inputs { grid-template-columns: repeat(2, 1fr); } }
dialog .card-head { justify-content: space-between; }
dialog .card-body .form-row { grid-template-columns: 100px 1fr; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1f2933;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 100;
}
.toast.error { background: var(--danger); }

.hero {
  background: linear-gradient(135deg, #14532d, #1b1e23);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 36px 32px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: 30px; }
.hero p { margin: 8px 0 20px; color: #cbd5e1; }
.hero .numbers { display: flex; gap: 32px; margin-bottom: 20px; }
.hero .numbers b { display: block; font-size: 28px; color: #4ade80; }
pre.code {
  background: #111827;
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 13px;
}

/* ---------- 带图片的下拉框 ---------- */
.isel { position: relative; }
.isel-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 38px;
}
.isel-button:focus { outline: 2px solid #a7d7bd; border-color: var(--accent); }
.isel-caret { margin-left: auto; font-style: normal; color: var(--muted); }
.isel-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  overflow: hidden;
}
.isel-search { border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.isel-search:focus { outline: none; }
.isel-list { max-height: 340px; overflow-y: auto; }
.isel-option { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; }
.isel-option:hover { background: #f0fdf4; }
.isel-option.selected { background: #dcfce7; font-weight: 600; }
.isel-flag img { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }
/* 球杆：名称在上，整根球杆图在下 */
.isel-cue .isel-option, .isel-cue .isel-button { flex-direction: column; align-items: stretch; gap: 4px; }
.isel-cue .isel-button { padding-right: 28px; }
.isel-cue .isel-caret { position: absolute; right: 10px; top: 10px; }
.isel-cue img { width: 100%; height: auto; order: 2; }
.isel-cue span { order: 1; }
.isel-cue .isel-option { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.isel-cue .isel-list { max-height: 420px; }

.download-card h2 { font-size: 18px; }
.download-card .hint { margin: 4px 0 14px; color: var(--muted); }
.download-card .sha { margin: 12px 0 0; font-size: 11px; color: var(--muted); word-break: break-all; font-family: ui-monospace, Menlo, monospace; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- 设置开关 ---------- */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: #d1d5db; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid #a7d7bd; outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .55; }

/* ---------- 对局统计 ---------- */
.section-title { font-size: 13px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.mini-stat { background: #f9fafb; border-radius: 6px; padding: 8px 10px; text-align: center; }
.mini-stat b { display: block; font-size: 22px; }
.mini-stat span { color: var(--muted); font-size: 12px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.hbar .track { background: #f3f4f6; border-radius: 3px; height: 12px; overflow: hidden; }
.hbar .fill { display: block; height: 100%; background: #4ade80; }
.hbar .n { text-align: right; color: var(--muted); }
pre.hex { background: #f9fafb; padding: 10px; border-radius: 6px; max-height: 240px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* 导航：桌面横排；手机收进「菜单」按钮，账号下拉展开成普通列表 */
.nav-menu { display: contents; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-inner { height: 56px; gap: 12px; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid rgba(243,234,214,.3);
    border-radius: 999px;
    background: none;
    color: #f3ead6;
    font: inherit;
    cursor: pointer;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #082219;
    border-bottom: 3px solid #5b3620;
    padding: 6px 16px 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav.open .nav-menu { display: block; }
  .nav .nav-menu .links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .nav-menu .links a { padding: 12px 2px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: none; }
  .nav-main a.active { color: #e8b923; }
  .nav-main a.active::after { display: none; }
  .nav .nav-menu .spacer { display: none; }
  /* 菜单里的链接统一去掉了背景，注册按钮要保留米白底色，否则深绿字压在深绿底上看不清 */
  .nav .nav-menu .links a.nav-cta { margin: 12px 0 0; padding: 11px 16px; text-align: center; border-bottom: none; border-radius: 999px; background: #f3ead6; color: #0a3426; }
  .nav-me { margin: 12px 0 4px; pointer-events: none; border: none; background: none; padding: 0; }
  .nav-me .caret { display: none; }
  .nav-drop { display: block; position: static; padding: 0; background: none; box-shadow: none; min-width: 0; }
  .nav .nav-drop a, .nav .nav-drop a:hover { color: var(--nav-text); background: none; }
  .nav .nav-drop a.active { color: #e8b923; }
  .nav-user > a.nav-me { border: none; padding: 12px 2px; background: none; margin: 0; pointer-events: auto; }
  .nav .nav-lang { display: inline-block; margin-top: 12px; }
}

/* ---------- 手机适配 ---------- */
@media (max-width: 720px) {
  .container { padding: 18px 12px 40px; }
  h1 { font-size: 21px; }
  .card-head { padding: 10px 12px; flex-wrap: wrap; }
  .card-body { padding: 12px; }

  /* 标签栏：单行横向滑动 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -12px 14px; padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 10px 12px; }

  /* 工具栏：输入框占满一行，按钮跟随 */
  .toolbar { gap: 8px; }
  .toolbar input, .toolbar select, .toolbar textarea { flex: 1 1 100%; min-width: 0; width: 100%; }
  .toolbar input[type=checkbox] { flex: none; width: auto; }
  .toolbar .minutes-input, .toolbar .reason-input { min-width: 0; width: 100%; }
  .toolbar .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar .hint { flex: 1 1 100%; }

  /* 触屏按钮加大 */
  .btn.small { padding: 6px 12px; }

  /* 表格 → 卡片 */
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody { display: block; }
  table.responsive tr { display: block; padding: 10px 12px; border-bottom: 8px solid var(--bg); }
  table.responsive tr:hover td { background: none; }
  table.responsive td {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 8px;
    padding: 4px 0;
    border: none;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
  }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; padding-top: 2px; }
  table.responsive td.m-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  table.responsive td.m-actions::before { display: none; }
  table.responsive td.m-actions:empty { display: none; }
  table.responsive td.m-actions .btn + .btn { margin-left: 0; }
  table.responsive td.m-hide { display: none; }
  table.responsive td.empty { display: block; }
  table.responsive td.empty::before { display: none; }
  table.responsive td.wrap { min-width: 0; }
  .table-wrap { overflow-x: visible; }

  /* 统计 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .value { font-size: 22px; }
  .bars { gap: 3px; }
  .bars .bar .d { font-size: 10px; }

  /* 对话框：接近全屏，内容可滚动 */
  dialog { width: calc(100vw - 16px); max-height: calc(100vh - 32px); }
  dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
  dialog .card-body { overflow-y: auto; }
  dialog .card-body .form-row { grid-template-columns: 1fr; }
  dialog .card-body .form-row > label { text-align: left; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* 资料页 */
  .profile-head { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .profile-head .avatar { width: 64px; height: 64px; font-size: 28px; }
  .profile-head > .meta { text-align: left !important; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .kv { grid-template-columns: 90px 1fr; }
  .hbar { grid-template-columns: 84px 1fr 32px; }
  .mini-stats { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; }
  .mini-stat { padding: 8px 4px; }
  .mini-stat b { font-size: 19px; }

  /* 表单 */
  .form-row { margin-bottom: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- IP 归属地 ---------- */
.ip-loc { font-size: 12px; color: var(--muted); white-space: nowrap; margin-top: 1px; }

/* ---------- 对阵（A & B vs C & D） ---------- */
.team { white-space: normal; }
.vs { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 600; margin: 0 6px; }
.amp { font-style: normal; color: var(--muted); font-size: 12px; margin: 0 3px; }
a.drop { color: var(--muted); text-decoration: line-through; }
.outcome { font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; padding: 2px 4px; border-radius: 4px; margin-left: 3px; vertical-align: 1px; }
.outcome.win { background: #dcfce7; color: #166534; }
.outcome.draw { background: #fef3c7; color: #92400e; }
a.me { font-weight: 700; }

/* 页脚免责声明 */
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 16px 28px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.site-foot p { margin: 0 auto; max-width: 760px; }
