/* ========================================================
   聊手号码分配系统 · 深蓝+金色奢华金融风格
   关键色：
     深蓝 #0B1F3D  深蓝 2 #122C52  深蓝 3 #183A6B
     金色 #D4AF37  亮金 #E8C86A  暗金 #B8941F
     文字 #F4E9C7（金白）、#FFFFFF（白）、次级 #9DB2D2
   ======================================================== */

/* ===== 滚动条彻底隐藏（三段杀） ===== */
html, body, * {
  scrollbar-width: none !important;         /* Firefox */
  -ms-overflow-style: none !important;      /* IE/Edge */
  scroll-behavior: smooth;
}
*::-webkit-scrollbar { display: none !important; width: 0; height: 0; }
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-corner { display: none !important; }

* { -webkit-tap-highlight-color: transparent; }
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: radial-gradient(ellipse at top, #14305c 0%, #0B1F3D 60%, #07172e 100%);
  color: #F4E9C7;
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans CN",sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;  /* 禁止 body 出现滚动条，滚动交给 app-root */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }

/* ===== 主布局 ===== */
.app-root {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;   /* 实际滚动容器（滚动条被上面三段杀隐藏） */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(90deg, rgba(11,31,61,0.92) 0%, rgba(18,44,82,0.92) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-block;
  color: #E8C86A;
  font-size: 22px;
  text-shadow: 0 0 14px rgba(232, 200, 106, 0.65);
}
.brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #E8C86A 0%, #D4AF37 50%, #B8941F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold { color: #E8C86A; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.user-info { display: inline-flex; align-items: center; gap: 8px; color: #cfd9ed; font-size: 13px; }
.user-name { color: #F4E9C7; }
.user-role {
  font-size: 12px; padding: 2px 10px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.12); color: #E8C86A;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.lang-switch { display: inline-flex; gap: 4px; }
.lang-btn {
  background: rgba(255,255,255,0.03);
  color: #9DB2D2;
  border: 1px solid rgba(157, 178, 210, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  transition: all .2s;
}
.lang-btn:hover { color: #E8C86A; border-color: #D4AF37; background: rgba(212,175,55,0.1); }

/* ===== Sidebar + Main ===== */
.app-root > .sidebar,
.app-root > .main-wrap { }
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0e2648 0%, #081930 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.18);
  padding: 18px 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  align-self: stretch;
}
.app-root { display: flex; flex-direction: column; }
.app-root > .sidebar,
.app-root > .main-wrap { }

/* fix: 用 grid 做 layout：sidebar + main 两列；header 是单独行 */
.app-root { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 210px 1fr; height: 100vh; }
.app-header { grid-column: 1 / -1; grid-row: 1; position: relative; }
.sidebar    { grid-column: 1; grid-row: 2; min-height: 0; }
.main-wrap  { grid-column: 2; grid-row: 2; min-height: 0; overflow: hidden; }
.main-inner { width: 100%; height: 100%; overflow-y: auto; padding: 26px 34px; }

.menu { display: flex; flex-direction: column; gap: 6px; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  color: #bccbe3;
  transition: all .22s ease;
  font-size: 14px;
  border: 1px solid transparent;
}
.menu-item:hover {
  color: #E8C86A;
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.25);
  transform: translateX(2px);
}
.menu-item.active {
  background: linear-gradient(90deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.06) 100%);
  color: #F4E9C7;
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 16px rgba(212,175,55,0.08);
}
.menu-icon { color: #D4AF37; font-size: 15px; width: 18px; text-align: center; }
.sidebar-footer { padding-top: 14px; border-top: 1px solid rgba(157,178,210,0.1); }
.menu-item.logout:hover { color: #ff9c9c; background: rgba(255,80,80,0.06); border-color: rgba(255,100,100,0.3); }
.menu-item.logout:hover .menu-icon { color: #ff8484; }

/* ===== 卡片 / 面板 ===== */
.card-panel, .panel {
  background: linear-gradient(180deg, rgba(24,58,107,0.6) 0%, rgba(18,44,82,0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.panel-title {
  font-size: 16px; font-weight: 600; color: #E8C86A;
  padding: 0 0 14px 0;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(212,175,55,0.25);
  letter-spacing: 1px;
}
.page-title-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.page-title-row h2 {
  margin: 0; font-size: 22px; font-weight: 600;
  background: linear-gradient(90deg, #FFFFFF 0%, #E8C86A 60%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-title h2 { margin: 0 0 20px 0; }

/* ===== 统计卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cards.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-card {
  background: linear-gradient(135deg, rgba(24,58,107,0.75) 0%, rgba(11,31,61,0.75) 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(232,200,106,0.05);
  transition: transform .22s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(232,200,106,0.15); }
.stat-label { color: #9DB2D2; font-size: 13px; margin-bottom: 8px; }
.stat-value {
  font-size: 28px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(90deg, #F4E9C7 0%, #E8C86A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value.gold {
  background: linear-gradient(90deg, #FFE58A 0%, #D4AF37 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== 筛选行 ===== */
.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: rgba(24,58,107,0.4);
  border: 1px solid rgba(212,175,55,0.18);
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.filter-row.sm { padding: 10px 14px; }
.filter-item { display: inline-flex; align-items: center; gap: 8px; }
.filter-label { color: #9DB2D2; font-size: 13px; white-space: nowrap; }
.fixed-group-label { color: #cfd9ed; font-size: 14px; }
.hint { color: #9DB2D2; font-size: 12px; }
.hint.small { font-size: 11px; margin-top: 8px; display: block; }
.list-info { margin: 0; padding: 0; list-style: none; }
.list-info li { padding: 4px 0; color: #cfd9ed; }
.list-info li span { color: #9DB2D2; margin-right: 6px; }

/* ===== 表单 ===== */
.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  color: #cfd9ed;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.form-label .hint { color: #7A8BB0; font-size: 11px; }
.form-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  outline: none;
  border: 1px solid rgba(157,178,210,0.3);
  background: rgba(7,23,46,0.65);
  color: #F4E9C7;
  font-size: 14px;
  transition: all .22s;
}
.form-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18), 0 0 18px rgba(212,175,55,0.12) inset;
  background: rgba(11,31,61,0.85);
}
.form-input.readonly { background: rgba(255,255,255,0.03); color: #9DB2D2; border-style: dashed; }
.form-input.sm { min-height: 36px; padding: 6px 12px; border-radius: 12px; font-size: 13px; max-width: 200px; }
.form-input::placeholder { color: #6c80a6; }
.form-error {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb4b4;
  font-size: 13px;
}
.radio-group { display: inline-flex; gap: 16px; }
.radio { display: inline-flex; align-items: center; gap: 6px; color: #cfd9ed; cursor: pointer; }
.radio input { accent-color: #D4AF37; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: all .22s;
  white-space: nowrap;
  color: #F4E9C7;
  user-select: none;
}
.btn.sm { min-height: 34px; padding: 0 14px; border-radius: 14px; font-size: 13px; }
.btn.xs { min-height: 30px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.3); }
.btn-primary {
  background: linear-gradient(135deg, #1b4a90 0%, #12316a 50%, #0B1F3D 100%);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(232, 200, 106, 0.7);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(212, 175, 55, 0.2) inset,
              0 0 22px rgba(232, 200, 106, 0.18) inset;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover:not([disabled]) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #235cb0 0%, #183f8a 50%, #14305c 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 230, 140, 0.45) inset,
              0 0 28px rgba(255, 220, 140, 0.28) inset;
  border-color: #E8C86A;
  color: #FFFFFF;
}
.btn-primary:active:not([disabled]) { transform: translateY(0); color: #FFFFFF; }
.btn-login {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
  letter-spacing: 6px;
  margin-top: 10px;
  border-radius: 18px;
  padding-left: 24px;
  padding-right: 24px;
  background: linear-gradient(135deg, #2260b6 0%, #143b82 50%, #0B1F3D 100%) !important;
  border: 1.5px solid rgba(255, 224, 138, 0.85) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 230, 140, 0.5) inset,
              0 0 30px rgba(255, 220, 140, 0.35) inset !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  color: #FFFFFF !important;
}
.btn-login:hover:not([disabled]) {
  background: linear-gradient(135deg, #2a74d6 0%, #1a4aa0 50%, #132f5c 100%) !important;
  border-color: #FFE58A !important;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #cfd9ed;
  border: 1px solid rgba(157,178,210,0.3);
}
.btn-ghost:hover:not([disabled]) {
  color: #E8C86A;
  border-color: rgba(212,175,55,0.6);
  background: rgba(212,175,55,0.08);
}
.btn-ghost.danger {
  color: #ff9d9d; border-color: rgba(255,120,120,0.35);
}
.btn-ghost.danger:hover:not([disabled]) {
  background: rgba(255,60,60,0.08);
  border-color: rgba(255,120,120,0.6);
  color: #ffcaca;
}

/* ===== 登录页 ===== */
.login-body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(212,175,55,0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(24,58,107,0.6) 0%, transparent 55%),
    linear-gradient(180deg, #0B1F3D 0%, #061428 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
}
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 36px 30px;
  background: linear-gradient(160deg, rgba(24,58,107,0.75) 0%, rgba(11,31,61,0.85) 60%, rgba(7,23,46,0.9) 100%);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(232,200,106,0.08);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .brand-mark {
  font-size: 30px; line-height: 1;
  color: #E8C86A; text-shadow: 0 0 20px rgba(232,200,106,0.65);
  display: block;
  margin-bottom: 10px;
}
.login-title {
  margin: 0 0 6px 0; font-size: 20px; font-weight: 600; letter-spacing: 2px;
  background: linear-gradient(90deg, #FFFFFF, #E8C86A);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-sub { color: #9DB2D2; font-size: 13px; margin: 0; }
.login-form { padding: 4px 0 4px 0; }
.login-foot { margin-top: 20px; display: flex; justify-content: flex-end; }
.login-lang { margin: 0 auto 0 0; justify-content: flex-start; }

/* ===== 表格 ===== */
.table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(11,31,61,0.55);
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(157,178,210,0.08);
}
.data-table.sm th, .data-table.sm td { padding: 8px 10px; font-size: 12px; }
.data-table thead th {
  background: linear-gradient(180deg, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0.06) 100%);
  color: #E8C86A;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(212,175,55,0.06); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.empty-tip { color: #6c80a6; text-align: center; padding: 28px 0; }

/* 状态点 */
.st { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; border: 1px solid transparent; }
.st-ok   { color: #86e29e; background: rgba(50,200,100,0.12); border-color: rgba(70,220,120,0.35); }
.st-warn { color: #F4E9C7; background: rgba(255,200,80,0.12); border-color: rgba(255,200,80,0.35); }
.st-bad  { color: #ff9d9d; background: rgba(255,80,80,0.10); border-color: rgba(255,120,120,0.35); text-decoration: line-through; }
.fallback { color: #E8C86A; text-align: center; font-weight: 700; }

/* ===== 分页 ===== */
.pager {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: wrap;
  padding: 16px 0;
}
.pager-item {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(157,178,210,0.2);
  color: #cfd9ed;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
button.pager-item { cursor: pointer; }
.pager-item.active {
  background: linear-gradient(135deg, #D4AF37, #B8941F);
  color: #1a1203; border-color: rgba(212,175,55,0.8);
  font-weight: 600;
}
.pager-item.page-info { background: transparent; border: none; color: #9DB2D2; }
.pager-item.dot { border: none; background: transparent; }

/* ===== 模态弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(4, 12, 24, 0.68);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal-box {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(170deg, rgba(24,58,107,0.96) 0%, rgba(11,31,61,0.98) 100%);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(232,200,106,0.08);
  overflow: hidden;
  animation: popIn .18s ease-out;
}
.modal-box.sm { max-width: 360px; }
@keyframes popIn {
  0%   { transform: translateY(8px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-title {
  padding: 0;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  color: #E8C86A;
}
.modal-title-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px 22px;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}
.modal-x-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.45);
  background: rgba(11,31,61,0.6);
  color: #D4AF37;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  transition: all 0.15s ease-out;
  user-select: none;
}
.modal-x-close:hover {
  background: rgba(212,175,55,0.18);
  color: #F6DB80;
  transform: rotate(90deg);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.modal-x-close:active { transform: scale(0.92); }
.modal-title.gold { color: #F1D079; font-weight: 700; }
.modal-body { padding: 18px 22px 4px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(157,178,210,0.1);
}

/* ===== Toast ===== */
.toast-wrap {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  max-width: 92vw;
}
.toast {
  opacity: 0; transform: translateY(-10px);
  transition: all .22s;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(11,31,61,0.92);
  color: #F4E9C7;
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 13px;
  max-width: 560px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { border-color: rgba(70,220,120,0.5); color: #c5f3d2; }
.toast.err { border-color: rgba(255,110,110,0.55); color: #ffd3d3; }

/* ===== 团队/小组管理扩展 ===== */
.team-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.team-card { padding: 0; overflow: hidden; }
.team-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  background: linear-gradient(90deg, rgba(212,175,55,0.18), transparent 60%);
  border-bottom: 1px solid rgba(212,175,55,0.22);
}
.team-head h3 { margin: 0; font-size: 17px; color: #F4E9C7; letter-spacing: 1px; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.group-list { padding: 18px 22px 22px; }
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 领取页 ===== */
.claim-page { display: flex; flex-direction: column; min-height: 100%; padding-top: 10px; }
.claim-head {
  text-align: center; color: #9DB2D2;
  font-size: 14px;
  padding: 10px 20px 18px;
}
.claim-head .divider { margin: 0 8px; color: #53617f; }
.claim-action {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.btn-claim {
  width: 100%; max-width: 480px;
  min-height: 84px;
  padding: 18px 30px;
  border-radius: 28px;
  font-size: 22px; letter-spacing: 2px; font-weight: 700;
  background: linear-gradient(135deg, #FFE58A 0%, #D4AF37 35%, #8c6b13 100%);
  color: #1a1203;
  box-shadow: 0 16px 40px rgba(212,175,55,0.45), inset 0 0 0 1px rgba(255, 240, 170, 0.6);
  transition: all .22s;
  border: 1px solid rgba(232,200,106,0.55);
}
.btn-claim:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(212,175,55,0.65), inset 0 0 0 1px rgba(255, 240, 170, 0.75); }
.btn-claim:active:not([disabled]) { transform: translateY(0); }
.btn-claim[disabled] { filter: grayscale(0.5); opacity: 0.7; }
.claim-hint {
  text-align: center; color: #6c80a6; font-size: 12px; padding: 16px 20px 24px;
}
.claim-mask .claim-box { max-width: 420px; }
.claim-result { padding: 14px 4px; }
.claim-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(157,178,210,0.15); }
.claim-row:last-child { border-bottom: none; }
.claim-label { width: 96px; color: #9DB2D2; font-size: 13px; }
.claim-value { flex: 1; font-size: 18px; color: #F4E9C7; font-weight: 600; }
.claim-value.phone {
  font-size: 26px; letter-spacing: 2px;
  background: linear-gradient(90deg, #FFE58A 0%, #D4AF37 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  word-break: break-all;
}
.claim-foot .btn-copy { min-width: 128px; font-weight: 700; }
.btn-copy.copied {
  background: linear-gradient(135deg, #6ed17f, #429e55);
  color: #ffffff;
  border-color: rgba(110,210,126,0.6);
  box-shadow: 0 6px 18px rgba(80,190,110,0.35);
}

/* ===== 统计 Tabs ===== */
.tabs {
  display: flex; gap: 6px;
  margin: 0 0 18px 0;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  flex-wrap: wrap;
}
.tab-item {
  padding: 10px 20px;
  color: #9DB2D2;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  font-size: 14px;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab-item:hover { color: #E8C86A; }
.tab-item.active {
  color: #E8C86A;
  background: rgba(24,58,107,0.55);
  border-color: rgba(212,175,55,0.35);
  border-bottom-color: rgba(24,58,107,0.95); /* 视觉连接到 tab-panel */
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== 矩阵表 ===== */
.matrix-wrap { overflow-x: auto; border-radius: 18px; }
.matrix-table th, .matrix-table td { white-space: nowrap; padding: 10px 12px; min-width: 80px; }
.matrix-head { background: rgba(212,175,55,0.08); color: #E8C86A; font-size: 12px; letter-spacing: 0.3px; }
.matrix-cell { text-align: center; color: #9DB2D2; font-size: 13px; }
.matrix-cell.has-val {
  color: #F4E9C7;
  background: rgba(212,175,55,0.06);
  font-weight: 600;
}
.matrix-cell.sum { color: #E8C86A; border-left: 1px solid rgba(212,175,55,0.25); font-weight: 700; }

.result-row { padding: 10px 0; color: #cfd9ed; font-size: 13px; }
.result-table {
  margin-top: 8px;
  max-height: 200px; overflow-y: auto;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(157,178,210,0.12);
}
.result-item { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12px; border-bottom: 1px dashed rgba(157,178,210,0.08); }
.result-item:last-child { border-bottom: none; }
.r-line { color: #9DB2D2; } .r-code { color: #ffcaca; }
.r-file { padding-top: 8px; }
.r-file a { color: #E8C86A; text-decoration: underline; }

/* ===== 响应式（手机端） ===== */
@media (max-width: 840px) {
  .app-root {
    grid-template-rows: auto auto 1fr;
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-column: 1; grid-row: 2;
    min-height: auto;
    width: 100%;
    padding: 10px 12px;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    position: sticky;
    top: auto;
    overflow-x: auto;
  }
  .sidebar .menu { flex-direction: row; gap: 4px; overflow-x: auto; }
  .sidebar-footer { display: none; }
  .main-wrap { grid-column: 1; grid-row: 3; }
  .main-inner { padding: 16px; }
  .menu-item { padding: 8px 12px; font-size: 13px; border-radius: 14px; flex-shrink: 0; }
  .menu-item .menu-label { display: inline; }
  .app-header { padding: 10px 14px; }
  .brand-text { font-size: 15px; letter-spacing: 0.5px; }
  .header-actions { gap: 10px; }
  .user-info .user-role { display: none; }
  .user-name { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 12px; border-radius: 14px; }
  .stat-label { font-size: 12px; }
  .stat-value { font-size: 20px; }
  .page-title-row h2 { font-size: 17px; }
  .form-input { min-height: 44px; border-radius: 14px; }
  .btn { min-height: 44px; border-radius: 14px; }
  .btn.sm { min-height: 38px; }
  .data-table thead th, .data-table td { padding: 10px 8px; }
  .claim-value.phone { font-size: 22px; }
  .btn-claim { font-size: 18px; min-height: 72px; border-radius: 24px; letter-spacing: 1px; }
  .pager { justify-content: center; }
  .filter-row { padding: 12px; border-radius: 16px; gap: 10px; }
  .filter-item { width: 100%; }
  .filter-item .form-input.sm { max-width: 100%; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; border-radius: 20px; }
  .modal-box { border-radius: 18px; }
  .brand-mark { font-size: 18px; }
  .lang-btn { padding: 3px 8px; font-size: 11px; }
}
