/* ============================================================
   枕梦 PILLOWDREAM 玩家档案系统
   黑白配色 · 简约高级 · 圆角
   ============================================================ */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --muted: #75756f;
  --line: #e7e7e2;
  --line-strong: #c9c9c2;
  --dark: #101010;
  --dark-2: #1a1a1a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 60vh; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-cn { font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.brand-en {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-family: var(--mono);
}
.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 13.5px; color: var(--ink-soft);
  border-radius: var(--radius-xs); transition: background .15s, color .15s;
}
.nav a:hover { background: #f0f0ec; color: var(--ink); }
.nav a.on { font-weight: 600; color: var(--ink); }
.nav a.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; background: var(--ink); border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: 1px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: #a33; border-color: #d8b8b8; }
.btn-danger:hover { background: #a33; border-color: #a33; color: #fff; }

/* ---------- 门户 Hero ---------- */
.hero {
  background: var(--dark); color: #fff;
  padding: 88px 0 72px; text-align: center;
  border-bottom: 1px solid #262626;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .42em;
  text-transform: uppercase; color: #9a9a92; margin-bottom: 18px;
}
.hero-title { font-size: 44px; font-weight: 800; letter-spacing: .02em; }
.hero-title span { color: #b9b9b1; font-weight: 600; }
.hero-sub { margin: 14px auto 34px; color: #c9c9c1; font-size: 15px; max-width: 560px; }

.search-box {
  display: flex; gap: 10px; justify-content: center;
  max-width: 640px; margin: 0 auto;
}
.search-box input {
  flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid #2e2e2e;
  border-radius: 12px; background: #181818; color: #fff; font-size: 15px;
  outline: none; transition: border-color .15s, background .15s;
}
.search-box input::placeholder { color: #7c7c74; }
.search-box input:focus { border-color: #888; background: #1e1e1e; }
.search-box-sm { max-width: 480px; margin: 18px auto; }
.search-box-sm input { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.search-box-sm input::placeholder { color: var(--muted); }
.search-box-sm input:focus { border-color: var(--ink); background: #fff; }

.hero-tip { margin-top: 18px; font-size: 12.5px; color: #8a8a82; }

/* ---------- 门户区块 ---------- */
.portal-section { padding: 56px 0 8px; }
.section-title {
  font-size: 22px; font-weight: 800; letter-spacing: .01em;
  display: flex; align-items: center; gap: 14px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 22px; }

.direct-form {
  display: flex; gap: 10px; max-width: 640px; margin-bottom: 26px;
}
.direct-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--surface); font-size: 14px; outline: none;
}
.direct-form input:focus { border-color: var(--ink); }

.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.member-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.member-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.member-tile img { width: 48px; height: 48px; border-radius: 10px; background: #eee; }
.member-meta b { display: block; font-size: 15px; }
.member-meta span { font-size: 12px; color: var(--muted); }

.recent-list { display: grid; gap: 10px; }
.recent-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, transform .15s;
}
.recent-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.recent-row img { width: 40px; height: 40px; border-radius: 8px; background: #eee; }
.recent-name { font-weight: 700; font-size: 15px; flex: 1; }
.recent-tags { display: flex; gap: 6px; }

.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.how-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .18s, border-color .18s;
}
.how-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.how-no { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .2em; }
.how-card h3 { margin: 10px 0 8px; font-size: 17px; }
.how-card p { color: var(--muted); font-size: 13.5px; }
.how-card code {
  font-family: var(--mono); font-size: 12px; background: #f0f0ec;
  padding: 1px 6px; border-radius: 5px; color: var(--ink);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; padding: 2.5px 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 999px; background: #fff;
}
.tag-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-outline { border-style: dashed; color: var(--ink-soft); border-color: var(--line-strong); }

.chip {
  display: inline-block; padding: 2px 10px; margin: 0 6px 6px 0;
  font-size: 12.5px; background: #f0f0ec; border-radius: 999px; color: var(--ink-soft);
}

/* ---------- 档案页 ---------- */
.profile-wrap { padding: 34px 24px 60px; }
.profile-hero {
  background: var(--dark); color: #fff; border-radius: 20px;
  padding: 30px 32px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.card-ribbon {
  position: absolute; top: 0; right: 0; padding: 7px 18px;
  background: #fff; color: var(--ink); font-size: 11px; letter-spacing: .22em;
  font-family: var(--mono); font-weight: 700; border-bottom-left-radius: 12px;
}
.hero-main { display: flex; gap: 22px; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 18px; background: #1f1f1f; flex-shrink: 0; }
.avatar-empty {
  display: flex; align-items: center; justify-content: center;
  color: #6a6a63; font-size: 40px; font-weight: 800;
}
.avatar-sm { width: 48px; height: 48px; border-radius: 10px; font-size: 20px; }
.hero-info { flex: 1; min-width: 0; }
.player-name { font-size: 32px; font-weight: 800; letter-spacing: .01em; }
.player-tags { display: flex; gap: 8px; margin-top: 8px; }
.player-tags .tag { background: transparent; color: #b9b9b1; border-color: #3a3a3a; }
.player-tags .tag-dark { background: #fff; color: var(--ink); border-color: #fff; }
.player-tags .tag-outline { border-color: #3a3a3a; color: #cfcfc7; }
.hero-meta { margin-top: 10px; font-size: 12.5px; color: #8d8d85; }

/* 处罚详情页 Hero（复用档案页黑框：大头像、白徽标、白框按钮） */
.profile-hero .avatar-sm { width: 80px; height: 80px; border-radius: 16px; }
.profile-hero .pun-badge-active { background: #fff; color: #111; }
.profile-hero .pun-badge-perm { background: #3a3a3a; color: #fff; border: 1px solid #5a5a5a; }
.hero-actions { margin-top: 14px; }
.btn-hero { background: #fff; color: #111; border-color: #fff; }
.btn-hero:hover { background: transparent; color: #fff; }
.hero-link { color: #fff; text-decoration: underline; }
.hero-link:hover { opacity: .75; }
.card-hint { margin-top: 10px; font-size: 12.5px; color: #9a9a92; }

.member-link {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #2c2c2c;
}
.member-link .label { font-size: 12px; letter-spacing: .14em; color: #9a9a92; text-transform: uppercase; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; max-width: 560px; }
.copy-row input {
  flex: 1; min-width: 0; padding: 10px 14px; font-family: var(--mono); font-size: 12.5px;
  border: 1px solid #2e2e2e; border-radius: 10px; background: #181818; color: #d8d8d0;
}
.card .copy-row input { background: #f6f6f4; color: var(--ink); border-color: var(--line-strong); }

.profile-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card-title {
  display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 800;
  margin-bottom: 18px; letter-spacing: .02em;
}
.card-title em {
  font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .24em;
  color: var(--muted);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head .card-title { margin-bottom: 0; }
.card-head-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.info-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.info-row dd { font-size: 14px; word-break: break-word; }
.info-row .remark { line-height: 1.8; font-size: 13.5px; }

.skin-wrap { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.skin3d {
  width: 260px; height: 320px; border-radius: 14px; background: #f0f0ec;
  border: 1px solid var(--line); touch-action: none;
}
.skin-thumb-fallback { display: none; }
.skin-controls { display: flex; gap: 8px; }
.no-skin3d .skin3d { display: none; }
.no-skin3d .skin-thumb-fallback { display: block; width: 150px; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* 信用记录 */
.credit-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px;
}
.stat {
  background: #fafaf8; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 6px; text-align: center;
}
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.pun-list { list-style: none; display: grid; gap: 10px; }
.pun-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s;
}
.pun-item:hover { border-color: var(--line-strong); }
.pun-type {
  font-size: 12px; font-weight: 700; text-align: center; padding: 5px 0;
  border-radius: 8px; background: #f0f0ec; color: var(--ink-soft);
  letter-spacing: .08em;
}
.pun-item.state-active { border-left: 3px solid var(--ink); }
.pun-item.state-active .pun-type { background: var(--ink); color: #fff; }
.pun-item.state-removed .pun-type { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.pun-item.state-expired { border-left: 3px solid #c9c9c2; background: #fbfbfa; }
.pun-reason { font-size: 14px; font-weight: 600; }
.pun-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pun-state { font-size: 12px; font-weight: 600; white-space: nowrap; }
.state-active .pun-state { color: var(--ink); }
.state-removed .pun-state { color: var(--muted); }
.state-expired .pun-state { color: var(--muted); }
.credit-source { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: right; }

.notice {
  padding: 14px 16px; border: 1px solid #d8d8d0; border-radius: 12px;
  background: #fafaf8; color: var(--muted); font-size: 13.5px;
}
.empty-state { padding: 30px 0; text-align: center; color: var(--muted); }

/* ---------- 人机验证 ---------- */
.verify-card { max-width: 620px; margin: 48px auto; padding: 34px; }
.verify-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.captcha-box { margin: 24px 0 14px; }
.captcha-loading { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }
.captcha-error { color: #a33; font-size: 13px; margin-top: 12px; }
.verify-actions { display: flex; gap: 10px; }

/* 滑块 */
.slider-box { overflow-x: auto; padding-bottom: 4px; }
.slider-track {
  position: relative; width: 340px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); user-select: none;
}
.slider-track img { width: 340px; height: 170px; display: block; }
.slider-piece {
  position: absolute; cursor: grab; touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  border-radius: 14px;
}
.slider-piece:active { cursor: grabbing; }
.slider-tip { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.slider-submit { margin-top: 12px; }

/* 数字/问答 */
.captcha-fields { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.captcha-img { border: 1px solid var(--line); border-radius: 12px; width: 150px; height: 56px; }
.captcha-fields input {
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 15px; outline: none; background: #fff;
}
.captcha-fields input:focus { border-color: var(--ink); }
.captcha-q { font-size: 15px; font-weight: 600; padding: 14px 0 4px; }

/* ---------- 登录 / 404 ---------- */
.login-card { max-width: 400px; margin: 70px auto; padding: 34px; }
.login-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-404 .empty-state { padding: 120px 20px; }
.empty-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.search-miss { max-width: 560px; margin: 70px auto; text-align: center; }
.search-miss .btn { margin-top: 10px; }

/* ---------- 后台 ---------- */
.admin-wrap { padding: 30px 24px 50px; }
.flash { padding: 13px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.flash-ok { background: #f2f2f0; border: 1px solid var(--line-strong); color: var(--ink); }
.flash-err { background: #fbf3f3; border: 1px solid #e2c2c2; color: #a33; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.stat-card b { display: block; font-size: 30px; font-weight: 800; }
.stat-card span { font-size: 12.5px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 12px; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafaf8; }
.table .row-actions { display: flex; gap: 6px; align-items: center; }
.inline-form { display: inline; }

.toolbar { display: flex; gap: 10px; margin: 16px 0; }
.toolbar input {
  flex: 0 1 300px; padding: 9px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; font-size: 14px; outline: none; background: #fff;
}
.toolbar input:focus { border-color: var(--ink); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.page-num {
  min-width: 34px; padding: 7px 10px; text-align: center; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink-soft); background: #fff;
}
.page-num.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.edit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.edit-form .card { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.field > span { color: var(--ink-soft); font-weight: 600; font-size: 12.5px; }
.field input, .field textarea, .field select {
  padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; outline: none; background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.7; }
.field-check { flex-direction: row; align-items: center; gap: 10px; }
.field-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.field .hint, .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field .btn { align-self: flex-start; margin-top: 2px; }

.skin-editor { display: flex; gap: 26px; flex-wrap: wrap; }
.skin-preview { flex-shrink: 0; }
.skin-preview .skin3d { width: 220px; height: 280px; }
.skin-upload { flex: 1; min-width: 260px; }
.file-input {
  display: block; padding: 12px; border: 1.5px dashed var(--line-strong);
  border-radius: 12px; background: #fafaf8; width: 100%; cursor: pointer; margin-bottom: 14px;
}
.skin-actions { display: flex; gap: 10px; align-items: center; }
#skinStatus { margin-top: 10px; }

.form-actions { display: flex; gap: 12px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 26px 0 34px; margin-top: 20px;
}
.site-footer p { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .profile-cols, .edit-cols, .how-grid { grid-template-columns: 1fr; }
  .credit-stats { grid-template-columns: repeat(3, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 32px; }
  .hero { padding: 60px 0 48px; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 6px; }
  .nav { flex-wrap: wrap; }
  .info-row { grid-template-columns: 92px 1fr; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .pun-item { grid-template-columns: 48px 1fr; }
  .pun-state { grid-column: 1 / -1; padding-left: 62px; }
  .search-box, .direct-form { flex-direction: column; }
}

/* ---------- 处罚公示页 ---------- */
.hero-sm { padding: 44px 0 32px; }
.hero-sm .hero-sub { max-width: 560px; }
.pun-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.pun-tabs .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pun-tabs .count { opacity: .55; font-weight: 400; margin-left: 3px; font-size: 12px; }
.pun-body { min-width: 0; }
.pun-name { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.pun-name a { color: var(--ink); text-decoration: none; }
.pun-name a:hover { text-decoration: underline; }
.pun-name-plain { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.page-info { font-size: 12.5px; color: var(--muted); }

/* —— 处罚公示 / 处罚历史：官方 LiteBans 风格表格（黑白简约） —— */
.pun-filter-hint { align-self: center; font-size: 12.5px; color: var(--muted); margin-left: auto; }
.pun-filter-hint b { color: var(--ink); }
.pun-filter-hint a { color: var(--ink); text-decoration: underline; }
.pun-search-inline { display: flex; gap: 8px; margin: -4px 0 14px; }
.pun-search-inline input {
  flex: 0 1 280px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px;
}
.pun-search-inline input:focus { outline: none; border-color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pun-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.pun-table thead th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; text-transform: uppercase;
}
.pun-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pun-table tbody tr:last-child td { border-bottom: none; }
.pun-table tbody tr:hover { background: #fafafa; }
.pun-table tbody tr:nth-child(even) { background: #f7f7f7; }
.pun-table tbody tr:nth-child(even):hover { background: #f1f1f1; }

/* 处罚类型徽标（黑白灰三档区分） */
.pun-type-cell {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pun-type-ban  { background: #111; color: #fff; }
.pun-type-mute { background: #fff; color: #111; border-color: #111; }
.pun-type-warn { background: #eee; color: #555; border-color: #ddd; }
.pun-table .col-player { width: 190px; }
.pun-table .col-reason { max-width: 340px; overflow-wrap: break-word; }
.pun-cell-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pun-cell-player .avatar-sm { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.pun-cell-player .avatar-empty { display: inline-flex; align-items: center; justify-content: center; }
.pun-avatar-link { display: inline-flex; line-height: 0; border-radius: 8px; flex-shrink: 0; }
.pun-avatar-link img, .pun-avatar-link span { display: block; }
.pun-avatar-link:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.pun-cell-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pun-cell-name:hover { text-decoration: underline; }
.pun-type-cell {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--ink);
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  min-width: 46px; text-align: center; line-height: 1.35;
}
/* 类型徽标区分（黑白灰三档） */
.pun-type-ban { background: var(--ink); color: #fff; }
.pun-type-mute { background: #fff; color: var(--ink); border-width: 1.5px; }
.pun-type-warn { background: #e9e9e9; color: #444; border-color: #e9e9e9; }
.pun-type-kick { background: #fff; color: #777; border-style: dashed; }
/* 状态圆点 */
.pun-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pun-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #bbb; flex-shrink: 0; }
.pun-state-live::before { background: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.pun-state-done::before { background: #cfcfcf; }
.pun-table .nowrap { white-space: nowrap; }
.pun-table .col-moderator { width: 150px; }
.pun-table .col-server { width: 110px; }
.pun-cell-center { justify-content: center; }
.history-summary { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.history-summary b { color: var(--ink); }

/* —— 处罚详情页（对齐官方 info.php） —— */
.info-title { font-size: 30px; font-weight: 800; text-align: center; margin: 18px 0 22px; }
.info-badges { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 10px; }
.pun-badge { display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pun-badge-active { background: var(--ink); color: #fff; }
.pun-badge-perm { background: #3a3a3a; color: #fff; }
.pun-badge-done { background: #e5e5e5; color: #666; }
.info-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.info-table tbody tr:last-child th, .info-table tbody tr:last-child td { border-bottom: none; }
.info-table th { width: 220px; background: #f7f7f7; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.info-table td { font-weight: 500; }

@media (max-width: 700px) {
  .pun-table thead th, .pun-table tbody td { padding: 9px 10px; }
  .pun-search-inline input { flex: 1 1 auto; }
}
