/* 群汇 QunHub v2 —— 样式表 */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --line: #e7eaec;
  --text: #1e2427;
  --muted: #7b848a;
  --brand: #2f7d5d;
  --brand-2: #46a67a;
  --brand-soft: #eef7f2;
  --danger: #cf3a2c;
  --warn: #b57a15;
  --ok: #168a52;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(21, 48, 38, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.35; font-weight: 650; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 .8em; }
code { background: #f1f3f4; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
img { max-width: 100%; }

.muted { color: var(--muted); font-size: 12.5px; }
.ok { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; }
.link { color: var(--brand); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 18px;
  height: 58px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.nav { display: flex; gap: 4px; flex: 1 1 auto; overflow: auto; }
.nav a { padding: 6px 11px; border-radius: 8px; color: #40484d; font-size: 13.5px; white-space: nowrap; }
.nav a:hover { background: #f2f5f3; color: var(--brand); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.userbox { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px;
  color: var(--text); font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini { font-size: 12px; color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13.5px;
  cursor: pointer; transition: .16s; font-family: inherit; line-height: 1.2;
}
.btn:hover { border-color: #cfd6d2; color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #2a6f53; border-color: #2a6f53; color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
.btn.tiny { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.danger { color: var(--danger); border-color: #f0d2ce; }
.btn.danger:hover { background: #fdf3f2; }
.btn.big-btn { width: 100%; max-width: 320px; padding: 13px; font-size: 15px; margin-top: 18px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- 主体 ---------------- */
.main { max-width: 1120px; margin: 0 auto; padding: 22px 18px 46px; }
.container { max-width: 1120px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.container.wide { max-width: 1180px; }

/* ---------------- 提示 ---------------- */
.alert {
  padding: 11px 15px; border-radius: 9px; margin-bottom: 14px;
  font-size: 13.5px; border: 1px solid transparent;
}
.alert.ok { background: #e9f7ef; color: #14704a; border-color: #cbead8; font-weight: 500; }
.alert.error { background: #fdeeec; color: #a92b1e; border-color: #f5d5d1; font-weight: 500; }
.alert.warn { background: #fdf5e6; color: #8f5f0c; border-color: #f4e3c4; font-weight: 500; }

.badge {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: #eef1f2; color: #5c666b;
  vertical-align: middle;
}
.badge.vip { background: linear-gradient(135deg, #f6e2b4, #efd08a); color: #7a5a12; }
.badge.ok-badge { background: #e8f6ee; color: var(--ok); }
.badge.bad-badge { background: #fdeceb; color: var(--danger); }

/* ---------------- 首页 hero ---------------- */
.hero {
  background: linear-gradient(140deg, #2b6f53 0%, #3c9470 55%, #57b08a 100%);
  color: #fff; padding: 40px 18px 34px;
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.5px; }
.hero p { opacity: .92; font-size: 14px; margin-bottom: 20px; }
.searchbar {
  display: flex; gap: 8px; max-width: 560px; margin: 0 auto 16px;
  background: rgba(255, 255, 255, .14); padding: 8px; border-radius: 12px;
}
.search-input {
  flex: 1; border: 0; border-radius: 8px; padding: 10px 14px;
  font-size: 14px; outline: none; background: #fff; color: var(--text);
}
.searchbar .btn.primary { background: rgba(0, 0, 0, .26); border-color: transparent; white-space: nowrap; }
.searchbar .btn.primary:hover { background: rgba(0, 0, 0, .36); }
.hero-stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; opacity: .95; }
.hero-stats a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 工具条 ---------------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 20px 0 12px; }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); font-size: 12.5px; color: #4d5660;
}
.tag-chip:hover { border-color: #bfdccd; color: var(--brand); }
.tag-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag-chip em { font-style: normal; opacity: .7; font-size: 11px; }
.sort { display: flex; gap: 6px; flex: 0 0 auto; font-size: 12.5px; }
.sort a { padding: 4px 10px; border-radius: 7px; color: var(--muted); border: 1px solid transparent; }
.sort a.on { background: var(--surface); border-color: var(--line); color: var(--brand); font-weight: 600; }
.filter-note { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  display: block; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: .18s; box-shadow: 0 1px 2px rgba(20, 40, 32, .03);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d5e3db; color: var(--text); }
.card-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #eaf5ef, #d8ecdf);
  color: var(--brand); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.avatar.big { width: 52px; height: 52px; font-size: 21px; border-radius: 13px; }
.card-head-text { min-width: 0; flex: 1; }
.card-head-text h3 { font-size: 14.5px; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-head-text .muted { font-size: 11.5px; }
.card-desc { font-size: 12.5px; color: #616a70; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 8px; }
.tag { font-size: 11.5px; color: #5f7c6e; background: var(--brand-soft); padding: 1px 7px; border-radius: 5px; }
.go { font-size: 12px; color: var(--brand); white-space: nowrap; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 30px; color: #c9d4ce; margin-bottom: 8px; }
.big-empty { padding: 80px 20px; }

/* ---------------- CTA ---------------- */
.cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 26px; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, #f0f7f3, #e6f3eb);
  border: 1px solid #dcece2;
}
.cta h2 { margin: 0 0 4px; font-size: 17px; }
.cta-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 26px 0 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; text-align: center; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-size: 13px; color: #4b5559;
}
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.page-dot { color: var(--muted); font-size: 12px; }

/* ---------------- 详情页 ---------------- */
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.detail-title { display: flex; gap: 14px; align-items: flex-start; }
.detail-title h1 { font-size: 21px; margin: 0 0 4px; }
.detail-side { flex: 0 0 auto; }
.detail-desc { color: #4e585d; white-space: pre-wrap; margin: 6px 0 14px; }
.detail-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }

.qr-box { margin: 18px 0 6px; background: #fafcfb; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qr-stage { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-img { width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); image-rendering: pixelated; }
.qr-tips { flex: 1; min-width: 240px; }
.link-box { display: flex; gap: 8px; margin: 8px 0; }
.link-box input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; background: #fff; color: #555; }
.qr-locked { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-placeholder {
  width: 150px; height: 150px; border-radius: 10px; border: 1px dashed #cfe0d7;
  display: flex; align-items: center; justify-content: center;
  color: #a9bdb1; font-size: 13px; background: repeating-linear-gradient(45deg, #f6faf8, #f6faf8 10px, #eff6f2 10px, #eff6f2 20px);
}
.qr-placeholder.lock { font-size: 36px; }

/* ---------------- 面板与表单 ---------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.panel-title { font-size: 19px; margin-bottom: 4px; }
.panel-sub { margin-bottom: 16px; }
.form label { display: block; font-size: 13px; color: #333c40; margin: 14px 0 6px; font-weight: 500; }
.form label:first-of-type { margin-top: 0; }
.form input[type=text], .form input[type=password], .form input[type=email],
.form input[type=number], .form input[type=file], .form textarea, .form select {
  width: 100%; padding: 9px 12px; border: 1px solid #dfe4e6; border-radius: 8px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--text); outline: none;
  transition: .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(70, 166, 122, .12); }
.form textarea { resize: vertical; }
.req { color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.form label.check { display: flex; align-items: center; gap: 7px; font-weight: 400; margin-top: 14px; }
.form-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.auth-panel { max-width: 420px; margin: 30px auto; }
.auth-foot { margin-top: 14px; font-size: 12px; text-align: center; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-form input, .row-form select { width: auto !important; flex: 1; min-width: 110px; }

/* ---------------- 用户中心 ---------------- */
.profile {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
}
.profile-main { display: flex; gap: 14px; align-items: center; }
.profile-main h1 { font-size: 19px; margin: 0 0 3px; }
.profile-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.tabs-line { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs-line a { padding: 7px 16px; border-radius: 20px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.tabs-line a.on { background: var(--surface); border-color: var(--line); color: var(--brand); font-weight: 600; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f2f3; }
.list-row:last-child { border-bottom: 0; }
.list-title { font-weight: 600; color: var(--text); }
.reject-note { color: var(--danger); font-size: 12px; margin: 4px 0 0; }
.list-side { flex: 0 0 auto; display: flex; align-items: center; }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 9px 8px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid #f3f5f6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table input[type=text], .table input[type=number], .table select {
  padding: 5px 8px; border: 1px solid #e2e6e8; border-radius: 6px; font-size: 12.5px; width: 100%;
}
.table form { display: inline-block; margin: 0; }

/* ---------------- 后台 ---------------- */
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.adm-head h1 { margin: 0; font-size: 22px; }
.adm-head > div { display: flex; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
  font-size: 11.5px; color: var(--muted);
}
.stat-num { font-size: 19px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.adm { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; }
.adm-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 74px; }
.adm-nav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: #485156; }
.adm-nav a:hover { background: #f4f7f5; color: var(--brand); }
.adm-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.adm-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 320px; }
.adm-body .sec-title { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.adm-body .sec-title:first-child { margin-top: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-details { display: inline-block; }
.inline-details summary { list-style: none; cursor: pointer; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 8px; border: 1px dashed #e1e7e3; border-radius: 8px; }
.inline-form input[type=text] { font-size: 12px; padding: 5px 8px; border: 1px solid #e2e6e8; border-radius: 6px; }
.inline-search { display: flex; gap: 8px; margin-bottom: 14px; }
.inline-search input { flex: 1; padding: 8px 11px; border: 1px solid #dfe4e6; border-radius: 8px; font-size: 13px; }
.inline-row { display: inline-flex; gap: 8px; align-items: center; }
.inline-row input { width: 70px; padding: 7px 9px; border: 1px solid #dfe4e6; border-radius: 7px; font-size: 13px; }
.sync-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 6px; }
.note {
  background: #f8fbf9; border-left: 3px solid var(--brand-2);
  padding: 12px 15px; border-radius: 0 8px 8px 0; font-size: 12.5px; color: #4a5559; line-height: 1.8;
}

/* ---------------- 会员页 ---------------- */
.vip-hero {
  text-align: center; padding: 26px 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, #2b6f53, #47a27a);
  color: #fff; border-radius: 14px;
}
.vip-hero h1 { font-size: 24px; }
.vip-hero p { opacity: .94; font-size: 13.5px; margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan-body {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: .16s; height: 100%;
}
.plan input:checked + .plan-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(70, 166, 122, .12); }
.plan-name { font-weight: 650; font-size: 15px; }
.plan-price { font-size: 22px; font-weight: 700; color: var(--brand); }
.plan-price em { font-style: normal; font-size: 13px; font-weight: 500; margin-right: 2px; }
.plan-days { font-size: 12px; color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.pay-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-item span { display: flex; flex-direction: column; gap: 3px; }
.pay-item strong { font-size: 13.5px; }
.pay-item small { font-size: 11.5px; line-height: 1.5; }
.vip-notes ul { margin: 6px 0 0; padding-left: 20px; font-size: 12.5px; color: #5a6468; line-height: 1.9; }
.sec-title { font-size: 15px; margin: 22px 0 12px; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 30px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 22px 18px; text-align: center; font-size: 12.5px; color: #6d767b; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner a { color: #6d767b; }
.footer-inner a:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .adm { grid-template-columns: 1fr; }
  .adm-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .adm-nav a { padding: 6px 12px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .nav { order: 3; width: 100%; }
  .main { padding: 14px 12px 36px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 14px 24px; }
  .hero h1 { font-size: 24px; }
  .searchbar { flex-direction: column; background: transparent; padding: 0; }
  .search-input { width: 100%; }
  .cta { flex-direction: column; align-items: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { padding: 16px; }
  .detail-head { flex-direction: column; }
  .qr-stage { flex-direction: column; align-items: flex-start; }
  .qr-img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
  .profile { flex-direction: column; align-items: flex-start; }
  .table { display: block; overflow-x: auto; }
}

/* ============ 后台独立外观（v2.1） ============ */
body.admin-body { background: #0f1512; margin: 0; }
.admin-top { background: #13201a; border-bottom: 1px solid #1f3128; }
.admin-top-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; }
.admin-brand { color: #e6f4ec; text-decoration: none; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.admin-brand em { font-style: normal; font-weight: 400; font-size: 12px; color: #7f9c8c; letter-spacing: .5px; }
.admin-dot { width: 9px; height: 9px; border-radius: 50%; background: #35c07a; display: inline-block; }
.admin-top-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.admin-top-right a { color: #a9c6b6; text-decoration: none; }
.admin-top-right a:hover { color: #fff; }
.admin-user { color: #6f8e7d; }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 18px 18px 60px; }
.admin-main .container { max-width: none; }
.admin-main .adm-head h1 { color: #fff; }
.admin-main .adm-head { border-bottom: none; }
.admin-main .table thead th { background: #f7faf8; }
.admin-main .panel, .admin-main .adm { background: #fff; border-radius: 12px; }
.admin-main .muted { color: #6b7a72; }
.adm-head-lite h1 { margin: 4px 0 14px; }
.vip-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vip-ops select { padding: 4px 6px; border: 1px solid #d8e0da; border-radius: 6px; font-size: 12px; }
.vip-ops form { display: flex; gap: 4px; margin: 0; }
.acct-box { max-width: 460px; }
.acct-info { color: #6b7a72; font-size: 13px; }

/* CDK 会员码 */
.panel-title { font-size: 16px; margin-bottom: 6px; }
.cdk-gen { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0 8px; }
.cdk-gen label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cdk-gen input { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; }
.cdk-gen input[type="number"] { width: 92px; }
.cdk-gen input[name="prefix"] { width: 96px; }
.cdk-gen input[name="note"] { width: 200px; }
.cdk-result { margin: 16px 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--brand-soft); }
.cdk-result textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; letter-spacing: .5px; resize: vertical; }
.cdk-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.cdk-filters { display: inline-flex; gap: 6px; }
.chip { display: inline-block; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: #fff; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cdk-form { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.cdk-form input[type="text"] { flex: 1; min-width: 220px; max-width: 380px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
