/* 高希霸活码平台 - 前端样式（完全匹配原网站） */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #4096ff;
  --bg-page: #f5f7fa;
  --bg-sidebar: #152238;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --bg-hover: #f3f5f8;
  --border-color: #e8edf3;
  --border-input: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #5a6072;
  --text-muted: #8896a8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; font-family: -apple-system, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg-page); color: var(--text-primary); }

/* 页面加载过渡 */
.page-loading, .loading { text-align:center; padding:80px 20px; color: var(--text-muted); }
.page-loading i, .loading i { font-size:36px; }
.page-loading p, .loading p { margin-top:16px; font-size:15px; }

/* Toast提示 */
.toast { position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:9999; background:var(--bg-card); border:1px solid var(--border-color); padding:12px 24px; border-radius:8px; color:var(--text-primary); font-size:14px; box-shadow:0 4px 16px rgba(0,0,0,.1); animation:toastIn .3s ease; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(-20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ========== 已登录界面 ========== */
.app-layout { display:flex; height:100vh; overflow:hidden; }
.app-sidebar { width:220px; background:linear-gradient(180deg,#0f1d35,#152238 60%,#1a2744); display:flex; flex-direction:column; flex-shrink:0; border-right:1px solid rgba(255,255,255,.06); }
.app-sidebar .sidebar-hd { padding:16px 20px; border-bottom:1px solid rgba(255,255,255,.06); display:flex; align-items:center; gap:10px; }
.app-sidebar .sidebar-hd img { width:28px; height:28px; border-radius:6px; object-fit:contain; }
.app-sidebar .sidebar-hd .sd-name { font-size:15px; font-weight:600; color:#e8f0fe; }
.app-menu { list-style:none; padding:6px 0; flex:1; overflow-y:auto; }
.app-menu li a { display:flex; align-items:center; gap:12px; padding:12px 20px; color:rgba(255,255,255,.55); text-decoration:none; font-size:14px; transition:all .2s; border-left:3px solid transparent; }
.app-menu li a:hover { color:#fff; background:rgba(255,255,255,.06); }
.app-menu li a i { width:18px; text-align:center; font-size:15px; }
.app-menu li.active a { color:#fff; background:rgba(22,119,255,.25); border-left-color:#1677ff; font-weight:600; }
.sidebar-footer { padding:12px 20px; border-top:1px solid rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; }
.sidebar-footer span { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.45); }
.sidebar-footer span i { font-size:18px; color:rgba(255,255,255,.35); }
.sidebar-footer a { color:rgba(255,255,255,.35); font-size:13px; text-decoration:none; }
.sidebar-footer a:hover { color:#fff; }

.app-main { flex:1; display:flex; flex-direction:column; overflow:hidden; background:var(--bg-page); }
.app-header { height:52px; background:var(--bg-card); display:flex; align-items:center; justify-content:space-between; padding:0 24px; border-bottom:1px solid var(--border-color); }
.app-header .hd-left { display:flex; align-items:center; gap:12px; }
.app-header .hd-left .page-title { font-size:16px; font-weight:600; color:var(--text-primary); }
.app-header .hd-right { display:flex; align-items:center; gap:12px; }
.app-header .hd-right .balance-text { font-size:13px; color:var(--text-secondary); }
.app-header .hd-right .balance-text strong { color:var(--primary); }
.app-header .hd-right .btn { padding:6px 14px; border-radius:var(--radius-sm); font-size:12px; border:none; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:4px; }
.app-header .hd-right .btn-primary { background:var(--primary); color:#fff; }
.app-header .hd-right .btn-primary:hover { background:var(--primary-dark); }
.app-header .hd-right .btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.app-header .hd-right .btn-ghost:hover { color:var(--primary); border-color:var(--primary); }
.app-content { flex:1; padding:20px 24px; overflow-y:auto; }
.app-content::-webkit-scrollbar { width:6px; }
.app-content::-webkit-scrollbar-track { background:transparent; }
.app-content::-webkit-scrollbar-thumb { background:var(--border-color); border-radius:3px; }

/* ========== 页面工具栏 ========== */
.page-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.page-toolbar .toolbar-left { display:flex; align-items:center; gap:16px; }
.page-toolbar .toolbar-left .welcome-text { font-size:14px; color:var(--text-secondary); }
.page-toolbar .toolbar-left .welcome-text strong { color:var(--text-primary); }
.page-toolbar .toolbar-left .balance-text { font-size:14px; color:var(--text-secondary); }
.page-toolbar .toolbar-left .balance-text .primary-color { color:var(--primary); font-weight:600; }
.page-toolbar .toolbar-right { display:flex; align-items:center; gap:8px; }

/* ========== 通用按钮 ========== */
.action-bar { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; align-items:center; }
.btn { padding:7px 16px; border-radius:var(--radius-sm); font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); box-shadow:0 2px 8px rgba(22,119,255,.15); }
.btn-danger { background:#ef4444; color:#fff; }
.btn-danger:hover { background:#dc2626; box-shadow:0 4px 12px rgba(239,68,68,.25); }
.btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.btn-ghost:hover { color:var(--primary); border-color:var(--primary); }
.btn-sm { padding:5px 12px; font-size:12px; }
.btn-block { width:100%; justify-content:center; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

/* 筛选栏 */
.filter-bar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:20px; background:var(--bg-card); padding:14px 16px; border-radius:var(--radius-md); border:1px solid var(--border-color); }
.filter-bar .filter-group { display:flex; align-items:center; gap:8px; }

/* Radio组（时间筛选） */
.radio-group { display:flex; gap:4px; background:var(--bg-card); border-radius:var(--radius-sm); padding:3px; }
.radio-group label { padding:5px 14px; border-radius:4px; font-size:13px; cursor:pointer; color:var(--text-secondary); transition:all .2s; }
.radio-group label:hover { color:var(--text-primary); }
.radio-group label.active, .radio-group label.act { background:var(--primary); color:#fff; }
.radio-group label input[type=radio] { display:none; }

/* Switch开关 */
.switch-label { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-secondary); cursor:pointer; position:relative; }
.switch-label input { opacity:0; width:0; height:0; position:absolute; }
.switch-label .switch-slider { width:36px; height:20px; background:#d9d9d9; border-radius:10px; position:relative; transition:all .3s; flex-shrink:0; }
.switch-label .switch-slider:after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:2px; left:2px; transition:all .3s; }
.switch-label input:checked + .switch-slider { background:var(--primary); }
.switch-label input:checked + .switch-slider:after { left:18px; }

/* 下拉选择框 */
.form-select { padding:7px 12px; background:var(--bg-card); border:1px solid var(--border-input); border-radius:var(--radius-sm); color:var(--text-secondary); font-size:13px; outline:none; min-width:130px; cursor:pointer; }
.form-select:focus { border-color:var(--primary); }
.form-select option { background:var(--bg-card); color:var(--text-primary); }

/* ========== 统计卡片 ========== */
.stats-grid { display:grid; gap:16px; margin-bottom:24px; }
.stats-grid.cols-5 { grid-template-columns:repeat(5,1fr); }
.stat-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; display:flex; align-items:center; gap:16px; transition:all .3s; position:relative; }
.stat-card:hover { border-color:var(--border-color); transform:translateY(-1px); }
.stat-card .stat-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.stat-card .stat-icon i { font-size:20px; }
.stat-card.stat-blue .stat-icon { background:var(--border-color); color:#1677ff; }
.stat-card.stat-green .stat-icon { background:#e8f5e9; color:#52c41a; }
.stat-card.stat-purple .stat-icon { background:#f3e8ff; color:#7850c8; }
.stat-card.stat-orange .stat-icon { background:#fff3e0; color:#fa8c16; }
.stat-card .stat-info .stat-value { font-size:28px; font-weight:700; color:var(--text-primary); line-height:1.2; }
.stat-card .stat-info .stat-label { font-size:13px; color:var(--text-secondary); margin-top:4px; }
.stat-card .stat-recharge-btn { position:absolute; bottom:14px; right:14px; padding:5px 14px; background:var(--primary); color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; transition:all .2s; }
.stat-card .stat-recharge-btn:hover { background:var(--primary-dark); box-shadow:0 2px 8px rgba(22,119,255,.15); }

/* ========== 公告栏 ========== */
.announcement-banner { background:#f3f5f8; border:1px solid var(--border-color); border-radius:var(--radius-md); padding:14px 20px; margin-bottom:20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.announcement-banner .ann-icon { color:var(--primary); font-size:18px; }
.announcement-banner .ann-title { font-size:14px; font-weight:600; color:var(--text-primary); }
.announcement-banner .ann-tag { background:var(--bg-hover); color:var(--text-secondary); font-size:11px; padding:2px 8px; border-radius:4px; font-weight:500; }
.announcement-banner .ann-text { font-size:13px; color:var(--text-secondary); flex:1; min-width:200px; }
.announcement-banner .ann-meta { font-size:12px; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.announcement-banner.loading { justify-content:center; color:var(--text-muted); }
.announcement-banner.ann-multi { margin-top:8px; margin-bottom:0; }
.announcement-banner.ann-multi:last-child { margin-bottom:20px; }

/* ========== 快捷入口卡片 ========== */
.quick-access-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.quick-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px 20px; display:flex; align-items:center; gap:14px; transition:all .3s; }
.quick-card:hover { border-color:var(--border-color); transform:translateY(-1px); }
.quick-card .qc-icon { width:44px; height:44px; border-radius:50%; background:var(--bg-hover); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--primary); flex-shrink:0; }
.quick-card .qc-info { flex:1; }
.quick-card .qc-info .qc-title { font-size:14px; font-weight:600; color:var(--text-primary); }
.quick-card .qc-info .qc-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
.quick-card .qc-tag { background:var(--primary); color:#fff; font-size:11px; padding:3px 10px; border-radius:10px; font-weight:500; white-space:nowrap; }
.quick-card .qc-unbind { font-size:12px; color:var(--text-muted); cursor:pointer; white-space:nowrap; }
.quick-card .qc-unbind:hover { color:#ef4444; }

/* ========== 访问量走势 ========== */
.traffic-section { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; margin-bottom:20px; }
.traffic-section .ts-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.traffic-section .ts-header .ts-title { font-size:15px; font-weight:600; color:var(--text-primary); display:flex; align-items:center; gap:8px; white-space:nowrap; flex-shrink:0; }
.traffic-section .ts-header .ts-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.traffic-section .ts-header .ts-filters .seg-control { display:flex; gap:2px; background:var(--bg-card); border-radius:6px; padding:2px; flex-shrink:0; border:1px solid var(--border-color); }
.traffic-section .ts-header .ts-filters .seg-control .seg-item { padding:4px 10px; border-radius:4px; font-size:12px; cursor:pointer; color:var(--text-secondary); transition:all .2s; white-space:nowrap; }
.traffic-section .ts-header .ts-filters .seg-control .seg-item:hover { color:var(--text-primary); background:#f3f5f8; }
.traffic-section .ts-header .ts-filters .seg-control .seg-item.active { background:var(--primary); color:#fff; box-shadow:0 1px 4px rgba(22,119,255,.15); }

/* KPI指标行 */
.kpi-row { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:14px; }
.kpi-item { text-align:center; padding:10px 4px; background:linear-gradient(135deg,rgba(22,119,255,.04),rgba(22,119,255,.01)); border-radius:8px; border:1px solid rgba(22,119,255,.06); }
.kpi-item .kpi-value { font-size:18px; font-weight:700; color:var(--primary); line-height:1.2; }
.kpi-item .kpi-label { font-size:11px; color:var(--text-muted); margin-top:3px; }

/* 图表容器 */
.chart-container { height:280px; width:100%; }
.chart-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; margin-bottom:20px; }

/* 图表底部图例栏（原网站图四样式） */
.chart-legend { display:flex; align-items:center; justify-content:space-between; padding-top:14px; margin-top:6px; border-top:1px solid var(--border-color); flex-wrap:wrap; gap:8px; }
.chart-legend .legend-items { display:flex; align-items:center; gap:20px; color:#1e293b; }
.chart-legend .legend-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:middle; flex-shrink:0; }
.chart-legend .legend-text { font-size:14px; color:#1e293b; vertical-align:middle; font-weight:500; }
.chart-legend .legend-items span:not(.legend-dot):not(.legend-text) { font-size:14px; color:#1e293b; vertical-align:middle; font-weight:500; }
.chart-legend .legend-date { font-size:13px; color:#475569; white-space:nowrap; font-weight:500; }

/* ========== 账户管理（3x2卡片网格 + 顶部横幅 + 充值区） ========== */
/* 顶部横幅 */
.account-banner { background:linear-gradient(135deg,#1677ff,#0958d9); border-radius:var(--radius-md); padding:24px 28px; margin-bottom:20px; }
.account-banner .ab-content { display:flex; align-items:center; justify-content:space-between; }
.account-banner .ab-text .ab-greeting { font-size:18px; font-weight:600; color:#fff; margin-bottom:4px; }
.account-banner .ab-text .ab-greeting strong { color:#fff; }
.account-banner .ab-text .ab-sub { font-size:13px; color:rgba(255,255,255,.7); }
.account-banner .ab-balance { text-align:right; }
.account-banner .ab-balance .ab-balance-label { font-size:11px; color:rgba(255,255,255,.6); text-transform:uppercase; letter-spacing:1px; }
.account-banner .ab-balance .ab-balance-num { font-size:26px; font-weight:700; color:#fff; line-height:1.2; }
.account-banner .ab-balance .ab-balance-currency { font-size:12px; color:rgba(255,255,255,.6); }

/* 快捷卡片网格 */
.account-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; }
.ac-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px 16px; display:flex; align-items:center; gap:14px; cursor:pointer; transition:all .25s ease; }
.ac-card:hover { border-color:var(--primary); box-shadow:0 2px 12px rgba(22,119,255,.1); transform:translateY(-1px); }
.ac-card .ac-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.ac-card .ac-info { flex:1; min-width:0; }
.ac-card .ac-info .ac-title { font-size:14px; font-weight:600; color:var(--text-primary); margin-bottom:2px; }
.ac-card .ac-info .ac-desc { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 充值区 */
.recharge-section { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:20px; }
.recharge-section .rs-header { padding:16px 20px; font-size:15px; font-weight:600; color:var(--text-primary); display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--border-color); }
.recharge-section .rs-header .rs-icon { color:var(--primary); font-size:18px; }
.recharge-section .rs-header .rs-tip { font-size:12px; font-weight:400; color:var(--text-muted); margin-left:auto; }
.recharge-section .rs-body { padding:20px; }
.rs-amount-wrap { margin-bottom:16px; }
.rs-amount-control { display:flex; align-items:center; border:1.5px solid var(--border-input); border-radius:10px; overflow:hidden; background:var(--bg-hover); max-width:100%; }
.rs-amount-btn { width:50px; height:50px; border:none; background:#f3f5f8; cursor:pointer; font-size:14px; color:var(--text-secondary); display:flex; align-items:center; justify-content:center; transition:all .2s; }
.rs-amount-btn:hover { background:var(--border-input); }
.rs-amount-input { flex:1; height:50px; border:none; text-align:center; font-size:24px; font-weight:700; color:var(--text-primary); background:transparent; outline:none; width:120px; }
.rs-amount-unit { display:flex; align-items:center; justify-content:center; padding:0 20px; background:var(--bg-hover); font-size:14px; font-weight:600; color:var(--text-muted); border-left:1.5px solid var(--border-input); height:50px; }
.rs-quick-btns { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; justify-content:center; }
.rs-quick-btn { padding:8px 24px; border:1.5px solid var(--border-input); border-radius:8px; background:var(--bg-card); font-size:14px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.rs-quick-btn:hover { border-color:var(--primary); color:var(--primary); }
.rs-quick-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }

.rs-action-row { display:flex; align-items:center; gap:16px; }
.rs-method-select { padding:10px 20px; background:var(--bg-hover); border:1.5px solid var(--border-input); border-radius:8px; font-size:14px; color:var(--text-primary); cursor:pointer; display:flex; align-items:center; gap:6px; flex-shrink:0; }

.rs-confirm-btn { padding:10px 40px; background:linear-gradient(135deg,#1677ff,#0958d9); color:#fff; font-size:15px; font-weight:600; border:none; border-radius:8px; cursor:pointer; transition:all .3s; box-shadow:0 2px 8px rgba(22,119,255,.15); flex:1; max-width:100%; }
.rs-confirm-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(22,119,255,.2); }
.rs-confirm-btn i { margin-right:6px; }
.rs-note { font-size:12px; color:var(--text-muted); text-align:center; margin-top:14px; }

/* 弹窗表单 */
.dialog-body .form-label { font-size:13px; color:var(--text-secondary); margin-bottom:6px; display:block; }

/* ========== 短域名管理（参考UI布局） ========== */

/* 顶部标题栏 */
.sd-header { display:flex; align-items:center; justify-content:space-between; padding:0 0 16px 0; flex-wrap:wrap; gap:10px; }
.sd-header-left { display:flex; align-items:center; gap:10px; }
.sd-header-bar { width:4px; height:22px; background:#FFB800; border-radius:2px; display:inline-block; }
.sd-header-title { font-size:18px; font-weight:700; color:var(--text-primary); }
.sd-header-right { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sd-user-info { font-size:13px; color:var(--text-secondary); display:flex; align-items:center; gap:4px; }
.sd-balance, .sd-points { font-size:13px; color:var(--text-muted); }
.sd-header-btn { padding:4px 10px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; display:flex; align-items:center; gap:4px; white-space:nowrap; }
.sd-header-btn:hover { color:var(--text-primary); border-color:var(--border-input); }

/* 统计卡片行 */
.sd-stats { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.sd-stat-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:10px; padding:14px 20px; flex:1; min-width:120px; }
.sd-stat-label { font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.sd-stat-value { font-size:24px; font-weight:700; color:var(--text-primary); }
.sd-stat-gold { color:#FFB800; }

/* 自动刷新开关 */
.sd-auto-refresh { display:flex; align-items:center; justify-content:space-between; flex:0 0 auto; min-width:140px; }
.sd-refresh-label { font-size:13px; color:var(--text-secondary); }
.sd-toggle { display:inline-flex; align-items:center; cursor:pointer; position:relative; }
.sd-toggle input { opacity:0; width:0; height:0; position:absolute; }
.sd-toggle-slider { width:36px; height:20px; background:#d9d9d9; border-radius:10px; position:relative; transition:all .3s; }
.sd-toggle-slider:after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:2px; left:2px; transition:all .3s; }
.sd-toggle input:checked + .sd-toggle-slider { background:#1677ff; }
.sd-toggle input:checked + .sd-toggle-slider:after { left:18px; }

/* 筛选栏 */
.sd-filter-bar { display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.sd-btn { padding:7px 16px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; }
.sd-btn-gold { background:#1677ff; color:#fff; font-weight:600; }
.sd-btn-gold:hover { background:#0958d9; }
.sd-btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.sd-btn-ghost:hover { color:var(--text-primary); border-color:var(--border-input); }
.sd-btn-sm { padding:4px 12px; font-size:12px; }
.sd-search-input { height:34px; padding:0 12px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:180px; flex:1; max-width:320px; }
.sd-search-input:focus { border-color:var(--primary); }
.sd-search-input::placeholder { color:var(--text-muted); }
.sd-select { height:34px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; min-width:80px; }
.sd-select:focus { border-color:var(--primary); }

/* 数据表格 */
.sd-table-wrap { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px; }
.sd-table { width:100%; border-collapse:collapse; }
.sd-table thead { background:linear-gradient(135deg,#1677ff,#0958d9); }
.sd-table thead th { padding:10px 12px; text-align:left; font-weight:600; font-size:12px; color:#fff; border-bottom:none; white-space:nowrap; }
.sd-table tbody td { padding:9px 12px; border-bottom:1px solid var(--border-color); font-size:12px; color:var(--text-secondary); }
.sd-table tbody tr:last-child td { border-bottom:none; }
.sd-table tbody tr:hover { background:var(--bg-hover); }
.sd-table td.empty { text-align:center; padding:40px 20px; color:var(--text-muted); font-size:13px; }
.sd-cell-domain { font-weight:600; color:var(--text-primary) !important; }
.sd-cell-date { font-size:11px; color:var(--text-muted) !important; }

/* 状态标签 */
.sd-tag { padding:2px 8px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.sd-tag-on { background:#e8f5e9; color:#52c41a; }
.sd-tag-off { background:#fce4ec; color:#ef4444; }

/* 操作链接 */
.sd-action-link { background:none; border:none; color:var(--primary); cursor:pointer; font-size:12px; padding:2px 4px; }
.sd-action-link:hover { text-decoration:underline; }

/* 分页器 */
.sd-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding:4px 0; }
.sd-pager-total { font-size:12px; color:var(--text-muted); }
.sd-page-size { height:30px; padding:0 8px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; color:var(--text-secondary); }
.sd-page-btns { display:flex; align-items:center; gap:2px; }
.sd-page-num { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.sd-page-num:hover { background:var(--bg-hover); }
.sd-page-num.active { background:#FFB800; color:#fff; font-weight:600; }
.sd-page-arrow { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all .2s; }
.sd-page-arrow:hover { background:var(--bg-hover); color:var(--text-primary); }

/* ========== 购买短域名弹窗 ========== */
.sd-buy-dialog { max-height:480px; overflow-y:auto; }
.sd-buy-filter { display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.sd-buy-table-wrap { overflow-x:auto; }
.sd-buy-table thead { background:linear-gradient(135deg,#1677ff,#0958d9); }
.sd-buy-table thead th { padding:9px 10px; font-size:12px; color:#fff; }
.sd-buy-table tbody td { padding:8px 10px; font-size:12px; }
.sd-buy-domain { font-weight:600; color:#e89800 !important; }
.sd-buy-tag { display:inline-block; padding:2px 10px; background:rgba(255,184,0,.15); color:#b8860b; border-radius:4px; font-size:11px; font-weight:500; }
.sd-buy-price { color:var(--text-primary) !important; font-weight:500; }
.sd-buy-actions { display:flex; align-items:center; gap:8px; }
.sd-buy-owned { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#10b981; font-weight:500; }
.sd-buy-detail { display:inline-flex; align-items:center; padding:4px 10px; border:1px solid var(--border-input); border-radius:6px; background:#fff; font-size:12px; color:var(--text-secondary); cursor:pointer; text-decoration:none; transition:all .2s; }
.sd-buy-detail:hover { border-color:var(--text-muted); color:var(--text-primary); }
.sd-buy-table td.empty { text-align:center; padding:30px 20px; }
.dialog-body .form-label.required:after { content:' *'; color:#ff4d4f; }
.dialog-body .form-input { width:100%; height:42px; padding:0 14px; border:1.5px solid var(--border-input); border-radius:8px; font-size:14px; outline:none; transition:all .3s; background:var(--bg-hover); color:var(--text-primary); box-sizing:border-box; }
.dialog-body .form-input:focus { border-color:var(--primary); background:var(--bg-card); box-shadow:0 0 0 3px rgba(22,119,255,.06); }
.dialog-body .copy-row input { flex:1; height:38px; padding:0 12px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; background:var(--bg-hover); outline:none; color:var(--text-primary); }
.dialog-body .copy-row button { padding:0 14px; height:38px; background:var(--primary); color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:12px; white-space:nowrap; }

/* ========== 搜索/筛选栏（活码管理） ========== */
.search-bar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.search-bar .search-input { padding:7px 14px; background:var(--bg-hover); border:1px solid var(--border-input); border-radius:var(--radius-sm); color:var(--text-primary); font-size:13px; outline:none; width:220px; }
.search-bar .search-input:focus { border-color:var(--primary); }
.search-bar .search-input::placeholder { color: var(--text-muted); }

/* ========== 数据表格 ========== */
.data-table { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; }
.data-table table { width:100%; border-collapse:collapse; }
.data-table th { background:#f3f5f8; padding:12px 14px; text-align:left; font-weight:500; font-size:13px; color:var(--text-secondary); border-bottom:1px solid var(--border-color); white-space:nowrap; }
.data-table td { padding:11px 14px; border-bottom:1px solid var(--border-color); font-size:13px; color:var(--text-secondary); }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:#f3f5f8; }
.data-table .empty { padding:50px; text-align:center; color:var(--text-muted); font-size:14px; }
.data-table .actions { display:flex; gap:6px; }
.data-table .actions .action-btn { width:30px; height:30px; border-radius:6px; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:14px; transition:all .2s; background:transparent; }
.data-table .actions .action-btn.edit { color:var(--primary); }
.data-table .actions .action-btn.edit:hover { background:rgba(22,119,255,.12); }
.data-table .actions .action-btn.chart { color:var(--primary); }
.data-table .actions .action-btn.chart:hover { background:rgba(22,119,255,.12); }
.data-table .actions .action-btn.view { color:var(--primary); }
.data-table .actions .action-btn.view:hover { background:rgba(22,119,255,.12); }
.data-table .actions .action-btn.del { color:#ef4444; }
.data-table .actions .action-btn.del:hover { background:rgba(239,68,68,.12); }

/* 表格标签 */
.tag { padding:2px 10px; border-radius:12px; font-size:11px; display:inline-block; font-weight:500; }
.tag-on { background:#e8f5e9; color:#52c41a; }
.tag-off { background:#fce4ec; color:#ef4444; }
.tag-type { background:var(--bg-hover); color:var(--primary); }
.tag-url { background:rgba(120,80,200,.1); color:#7850c8; }

/* 分页 */
.pagination, .pager { display:flex; align-items:center; gap:6px; padding:14px 0; justify-content:center; }
.pagination .page-btn, .pager .btn { padding:6px 12px; border:1px solid var(--border-color); border-radius:5px; font-size:13px; cursor:pointer; background:transparent; color:var(--text-secondary); transition:all .2s; }
.pagination .page-btn:hover, .pager .btn:hover { border-color:var(--primary); color:var(--primary); }
.pagination .page-btn.act { background:var(--primary); border-color:var(--primary); color:#fff; }
.pagination .page-btn:disabled, .pager .btn:disabled { opacity:.3; cursor:not-allowed; }
.pager-info, .page-info { font-size:12px; color:var(--text-muted); }

/* ========== Tab切换 ========== */
.tabs { display:flex; gap:2px; background:var(--bg-card); border-radius:var(--radius-sm); padding:3px; margin-bottom:16px; border:1px solid var(--border-color); }
.tabs span { padding:8px 18px; border-radius:4px; font-size:13px; cursor:pointer; color:var(--text-secondary); transition:all .2s; }
.tabs span:hover { color:var(--text-primary); }
.tabs span.act { background:var(--primary); color:#fff; font-weight:600; }

/* ========== 产品卡片（活码购买） ========== */
.product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-bottom:20px; }
.product-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:24px; text-align:center; transition:all .3s; }
.product-card:hover { border-color:var(--primary); transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.06); }
.product-card .p-name { font-size:18px; font-weight:600; color:var(--text-primary); margin-bottom:8px; }
.product-card .p-price { font-size:28px; font-weight:700; color:var(--primary); margin-bottom:4px; }
.product-card .p-original { font-size:13px; color:var(--text-muted); text-decoration:line-through; margin-bottom:16px; display:block; }
.product-card .p-qty { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:16px; }
.product-card .p-qty .qty-btn { width:32px; height:32px; border-radius:6px; border:1px solid var(--border-input); background:transparent; color:var(--text-secondary); cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
.product-card .p-qty .qty-btn:hover { border-color:var(--primary); color:var(--primary); }
.product-card .p-qty input { width:60px; text-align:center; background:var(--bg-hover); border:1px solid var(--border-input); border-radius:var(--radius-sm); padding:6px; color:var(--text-primary); font-size:14px; outline:none; }

/* ========== 统计面板 ========== */
.panel { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px; margin-bottom:16px; }
.panel-title { font-size:15px; font-weight:600; margin-bottom:14px; color:var(--text-primary); display:flex; align-items:center; gap:8px; }

/* ========== 弹窗系统 ========== */
.dialog-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.6); z-index:1000; display:flex; align-items:center; justify-content:center; }
.dialog-box { background:var(--bg-card); border-radius:var(--radius-md); border:1px solid var(--border-color); box-shadow:0 20px 60px rgba(0,0,0,.15); width:480px; max-width:90%; max-height:80vh; overflow-y:auto; }
.dialog-header { padding:16px 22px; border-bottom:1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; }
.dialog-header h3 { font-size:16px; color:var(--text-primary); }
.dialog-close { background:transparent; border:none; font-size:18px; color:var(--text-muted); cursor:pointer; padding:4px; }
.dialog-close:hover { color:var(--text-primary); }
.dialog-body { padding:20px 22px; color:var(--text-secondary); font-size:14px; line-height:1.6; }
.dialog-form .df-item { margin-bottom:14px; }
.dialog-form .df-item label { display:block; margin-bottom:6px; color:var(--text-secondary); font-size:13px; }
.dialog-form .df-item input,.dialog-form .df-item select,.dialog-form .df-item textarea { width:100%; padding:8px 12px; background:var(--bg-hover); border:1px solid var(--border-input); border-radius:var(--radius-sm); color:var(--text-primary); font-size:13px; outline:none; box-sizing:border-box; }
.dialog-form .df-item input:focus,.dialog-form .df-item select:focus { border-color:var(--primary); box-shadow:0 0 0 2px rgba(22,119,255,.1); }
.dialog-form .df-item textarea { min-height:60px; resize:vertical; }

/* ========== 注册弹窗 ========== */
.reg-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.6); z-index:1001; display:flex; align-items:center; justify-content:center; }
.reg-box { width:420px; max-width:90%; max-height:85vh; overflow-y:auto; background:var(--bg-card); border-radius:var(--radius-lg); border:1px solid var(--border-color); box-shadow:0 20px 60px rgba(0,0,0,.15); }
.reg-header { position:relative; padding:18px 22px 0; display:flex; align-items:center; justify-content:space-between; }
.reg-header h3 { font-size:18px; color:var(--text-primary); }
.reg-close { background:transparent; border:none; font-size:20px; color:var(--text-muted); cursor:pointer; padding:4px; }
.reg-close:hover { color:var(--text-primary); }
.reg-body { padding:20px 22px 28px; }
.reg-btn { width:100%; padding:13px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); border:none; border-radius:var(--radius-sm); color:#fff; font-size:16px; font-weight:600; cursor:pointer; transition:all .3s; }
.reg-btn:hover { opacity:.9; box-shadow:0 4px 12px rgba(22,119,255,.15); transform:translateY(-1px); }
.reg-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }

/* ========== 输入框组 ========== */
.input-group { display:flex; align-items:center; gap:8px; }
.input-group input { flex:1; padding:8px 12px; background:var(--bg-hover); border:1px solid var(--border-input); border-radius:var(--radius-sm); color:var(--text-primary); font-size:14px; outline:none; }
.input-group input:focus { border-color:var(--primary); box-shadow:0 0 0 2px rgba(22,119,255,.1); }
.input-group .input-label { font-size:13px; color:var(--text-secondary); white-space:nowrap; }

/* ========== 活码管理（参考UI布局） ========== */

/* 搜索/筛选栏 */
.lc-filter-bar { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; justify-content:space-between; }
.lc-filter-left { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lc-filter-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lc-search-input { height:34px; padding:0 14px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:180px; flex:1; max-width:280px; }
.lc-search-input:focus { border-color:#1677ff; }
.lc-search-input::placeholder { color:var(--text-muted); }
.lc-select { height:34px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; min-width:90px; }
.lc-select:focus { border-color:#1677ff; }
.lc-btn { height:34px; padding:0 14px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.lc-btn-yellow { background:#1677ff; color:#fff; border:none; }
.lc-btn-yellow:hover { background:#0958d9; box-shadow:0 2px 8px rgba(22,119,255,.35); }
.lc-btn-pink { background:#ff6b6b; color:#fff; }
.lc-btn-pink:hover { background:#e05555; box-shadow:0 2px 8px rgba(255,107,107,.35); }
.lc-btn-ghost { background:transparent; color:var(--text-secondary); border:1.5px solid var(--border-color); }
.lc-btn-ghost:hover { background:var(--bg-hover); border-color:var(--text-muted); }
.lc-btn-sm { height:28px; padding:0 10px; font-size:12px; }

/* 自动刷新行 */
.lc-refresh-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; padding:6px 0; }
.lc-toggle-label { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-secondary); cursor:pointer; position:relative; }
.lc-toggle-label input { opacity:0; width:0; height:0; position:absolute; }
.lc-toggle-slider { width:36px; height:20px; background:#d9d9d9; border-radius:10px; position:relative; transition:all .3s; flex-shrink:0; }
.lc-toggle-slider:after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:2px; left:2px; transition:all .3s; }
.lc-toggle-label input:checked + .lc-toggle-slider { background:#1677ff; }
.lc-toggle-label input:checked + .lc-toggle-slider:after { left:18px; }
.lc-refresh-btn { width:30px; height:30px; border-radius:6px; border:1px solid var(--border-color); background:transparent; color:var(--text-muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:all .2s; }
.lc-refresh-btn:hover { color:#1677ff; border-color:#1677ff; }

/* 数据统计卡片（3列） */
.lc-stats-row { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.lc-stat-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:16px 20px; flex:1; min-width:120px; text-align:left; }
.lc-stat-label { font-size:13px; color:var(--text-muted); margin-bottom:6px; }
.lc-stat-value { font-size:26px; font-weight:700; line-height:1.2; }
.lc-stat-blue { color:#1677ff; }

/* 表格容器 */
.lc-table-wrap { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px; overflow-x:auto; }
.lc-table { width:100%; border-collapse:collapse; min-width:900px; }
.lc-table thead { background:#1677ff; }
.lc-table thead th { padding:10px 10px; text-align:left; font-weight:600; font-size:12px; color:#fff; border-bottom:none; white-space:nowrap; }
.lc-table tbody td { padding:9px 10px; border-bottom:1px solid var(--border-color); font-size:12px; color:var(--text-secondary); }
.lc-table tbody tr:last-child td { border-bottom:none; }
.lc-table tbody tr:hover { background:var(--bg-hover); }

/* 列宽控制 */
.lc-col-chk { width:36px; }
.lc-col-id { width:50px; }
.lc-col-name { min-width:90px; }
.lc-col-qr { width:50px; }
.lc-col-domain { min-width:100px; }
.lc-col-today { width:60px; }
.lc-col-visit { width:55px; }
.lc-col-ip { width:50px; }
.lc-col-sub { width:50px; }
.lc-col-risk { width:65px; }
.lc-col-status { width:55px; }
.lc-col-time { min-width:100px; }
.lc-col-actions { width:120px; }

/* 单元格样式 */
.lc-cell-id { color:var(--text-primary) !important; font-weight:500; }
.lc-cell-name { color:var(--text-primary) !important; font-weight:500; }
.lc-cell-domain { color:#1677ff !important; font-weight:500; }
.lc-cell-num { text-align:center !important; font-weight:600; color:var(--text-primary) !important; }
.lc-cell-time { font-size:11px !important; color:var(--text-muted) !important; }
.lc-domain-text { font-size:12px; word-break:break-all; }

/* 标签 */
.lc-tag { padding:2px 8px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.lc-tag-on { background:#e8f5e9; color:#52c41a; }
.lc-tag-off { background:#fce4ec; color:#ef4444; }
.lc-tag-safe { background:rgba(22,119,255,.1); color:#1677ff; }
.lc-tag-risk { background:#fff7e6; color:#fa8c16; }

/* 操作按钮 */
.lc-actions { display:flex; gap:4px; }
.lc-action-btn { width:28px; height:28px; border-radius:5px; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:all .2s; background:transparent; color:#1677ff; }
.lc-action-btn:hover { background:rgba(22,119,255,.12); }
.lc-action-del { color:#ef4444 !important; }
.lc-action-del:hover { background:rgba(239,68,68,.12) !important; }

/* 空状态 */
.lc-empty { text-align:center !important; padding:40px 20px !important; color:var(--text-muted) !important; font-size:13px !important; }

/* 分页器（右对齐） */
.lc-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding:4px 0; }
.lc-pager-total { font-size:12px; color:var(--text-muted); }
.lc-page-size { height:30px; padding:0 8px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; color:var(--text-secondary); background:var(--bg-card); cursor:pointer; }
.lc-page-size:focus { border-color:#1677ff; }
.lc-page-btns { display:flex; align-items:center; gap:2px; }
.lc-page-num { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.lc-page-num:hover { background:var(--bg-hover); }
.lc-page-num.active { background:#1677ff; color:#fff; font-weight:600; }
.lc-page-arrow { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all .2s; border:none; background:transparent; }
.lc-page-arrow:hover { background:var(--bg-hover); color:var(--text-primary); }
.lc-page-arrow:disabled { opacity:.3; cursor:not-allowed; }
.lc-page-ellipsis { display:inline-flex; align-items:center; justify-content:center; width:24px; height:30px; font-size:12px; color:var(--text-muted); }

/* ========== 活码设置弹窗（Tab切换 + 子码管理） ========== */
.lc-code-form { padding-top:4px; }
.lc-dialog-tabs { display:flex; gap:0; border-bottom:2px solid #f0f0f0; margin-bottom:16px; }
.lc-dialog-tab { padding:8px 20px; font-size:14px; font-weight:600; color:var(--text-secondary); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.lc-dialog-tab.act { color:#1677ff; border-bottom-color:#1677ff; }
.lc-dialog-tab:hover { color:#1677ff; }
.lc-dialog-panel { min-height:80px; }
.lc-dlg-row { display:flex; gap:16px; margin-bottom:12px; flex-wrap:wrap; }
.lc-dlg-half { flex:1; min-width:180px; }
.lc-dlg-half label { display:block; font-size:13px; font-weight:500; color:var(--text-primary); margin-bottom:4px; }
.lc-req { color:#ef4444; }
.lc-dlg-input { width:100%; height:36px; padding:0 12px; border:1.5px solid var(--border-input); border-radius:8px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); box-sizing:border-box; transition:border-color .2s; }
.lc-dlg-input:focus { border-color:#1677ff; }
.lc-dlg-input::placeholder { color:var(--text-muted); }
.lc-dlg-sm { height:30px; font-size:12px; padding:0 8px; }
.lc-dlg-select { width:100%; height:36px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:8px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; box-sizing:border-box; transition:border-color .2s; }
.lc-dlg-select:focus { border-color:#1677ff; }
.lc-dlg-select.lc-dlg-sm { height:30px; font-size:12px; }
.lc-dlg-radio-group { display:flex; gap:10px; flex-wrap:wrap; padding-top:4px; }
.lc-dlg-radio { display:inline-flex; align-items:center; gap:4px; cursor:pointer; font-size:13px; color:var(--text-secondary); }
.lc-dlg-radio input[type="radio"] { accent-color:#1677ff; margin:0; }
.lc-dlg-radio span { user-select:none; }
.lc-dlg-switches { display:flex; gap:20px; flex-wrap:wrap; padding:8px 0; border-top:1px solid var(--border-color); margin-top:8px; }
.lc-dlg-switch { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--text-secondary); cursor:pointer; }
.lc-dlg-switch input[type="checkbox"] { opacity:0; width:0; height:0; position:absolute; }
.lc-switch-slider { width:34px; height:18px; background:#d9d9d9; border-radius:9px; position:relative; transition:all .3s; flex-shrink:0; }
.lc-switch-slider:after { content:''; position:absolute; width:14px; height:14px; border-radius:50%; background:#fff; top:2px; left:2px; transition:all .3s; }
.lc-dlg-switch input:checked + .lc-switch-slider { background:#1677ff; }
.lc-dlg-switch input:checked + .lc-switch-slider:after { left:18px; }

.lc-toggle { display:inline-flex; align-items:center; width:36px; height:20px; flex-shrink:0; position:relative; box-sizing:border-box; }
.lc-toggle input { opacity:0; width:0; height:0; position:absolute; margin:0; }
.lc-toggle-track { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#ccc; border-radius:10px; transition:all .3s; }
.lc-toggle-track::after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:2px; left:2px; transition:all .3s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.lc-toggle input:checked + .lc-toggle-track { background:#1677ff; }
.lc-toggle input:checked + .lc-toggle-track::after { transform:translateX(16px); }

/* Multi-select 下拉框 */
.lc-multiselect { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:32px; padding:0 10px; border:1.5px solid #d9d9d9; border-radius:6px; background:#fff; cursor:pointer; font-size:13px; user-select:none; }
.lc-multiselect:hover { border-color:#1677ff; }
.lc-multiselect-label { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#94a3b8; }
.lc-multiselect-arrow { margin-left:8px; color:#94a3b8; font-size:12px; }
.lc-multiselect-dropdown { display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:10000; background:#fff; border:1px solid #e2e8f0; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.12); max-height:280px; overflow:hidden; }
.lc-multiselect-dropdown.lc-ms-open { display:block; }
.lc-multiselect-items { max-height:220px; overflow-y:auto; padding:4px 0; }
.lc-multiselect-item { display:flex; align-items:center; gap:8px; padding:6px 12px; cursor:pointer; font-size:13px; color:#334155; transition:background .15s; }
.lc-multiselect-item:hover { background:#f1f5f9; }
.lc-multiselect-item input[type=checkbox] { width:15px; height:15px; accent-color:#1677ff; cursor:pointer; flex-shrink:0; }
.lc-multiselect-item label { cursor:pointer; margin:0; flex:1; }
.lc-multiselect-divider { height:1px; background:#e2e8f0; margin:2px 0; }
.lc-ms-checked { background:#eff6ff; }
.lc-dlg-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:16px; border-top:1px solid var(--border-color); margin-top:16px; }

/* 子码管理区域 */
.lc-dlg-subcode { margin-top:16px; padding-top:16px; border-top:1px solid var(--border-color); }
.lc-dlg-subcode-header { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.lc-dlg-subcode-title { font-size:14px; font-weight:600; color:var(--text-primary); margin-right:8px; }
.lc-dlg-import-input { height:30px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:140px; flex:1; max-width:200px; }
.lc-dlg-import-input:focus { border-color:#1677ff; }
.lc-dlg-import-input::placeholder { color:var(--text-muted); }
.lc-dlg-subcode-table { width:100%; border-collapse:collapse; min-width:500px; font-size:12px; }
.lc-dlg-subcode-table thead { background:#1677ff; }
.lc-dlg-subcode-table thead th { padding:7px 8px; text-align:left; font-weight:600; color:#fff; white-space:nowrap; }
.lc-dlg-subcode-table tbody td { padding:6px 8px; border-bottom:1px solid var(--border-color); color:var(--text-secondary); }
.lc-dlg-subcode-table tbody tr:last-child td { border-bottom:none; }
.lc-dlg-subcode-table tbody tr:hover { background:var(--bg-hover); }
.lc-dlg-threshold { display:inline-flex; align-items:center; gap:0; }
.lc-dlg-threshold-input { width:60px; height:26px; text-align:center; border-radius:0; border:1.5px solid var(--border-input); font-size:12px; outline:none; }
.lc-dlg-threshold-input:focus { border-color:#1677ff; }
.lc-threshold-btn { width:24px; height:26px; border:1.5px solid var(--border-input); background:var(--bg-card); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:14px; color:var(--text-secondary); transition:all .1s; }
.lc-threshold-btn:first-child { border-radius:4px 0 0 4px; border-right:none; }
.lc-threshold-btn:last-child { border-radius:0 4px 4px 0; border-left:none; }
.lc-threshold-btn:hover { background:var(--bg-hover); color:#1677ff; }

/* ========== 活码域名（参考UI布局） ========== */

/* 搜索/筛选栏 */
.ed-filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; }
.ed-search-input { height:34px; padding:0 14px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:180px; flex:1; max-width:280px; }
.ed-search-input:focus { border-color:var(--primary); }
.ed-search-input::placeholder { color:var(--text-muted); }
.ed-select { height:34px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; min-width:100px; }
.ed-select:focus { border-color:var(--primary); }
.ed-btn { height:34px; padding:0 16px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.ed-btn-primary { background:var(--primary); color:#fff; }
.ed-btn-primary:hover { background:var(--primary-dark); box-shadow:0 2px 8px rgba(22,119,255,.15); }

/* 表格容器 */
.ed-table-wrap { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px; overflow-x:auto; }
.ed-table { width:100%; border-collapse:collapse; min-width:700px; }
.ed-table thead { background:linear-gradient(135deg,#1677ff,#0958d9); }
.ed-table thead th { padding:10px 12px; text-align:left; font-weight:600; font-size:12px; color:#fff; border-bottom:none; white-space:nowrap; }
.ed-table tbody td { padding:9px 12px; border-bottom:1px solid var(--border-color); font-size:12px; color:var(--text-secondary); }
.ed-table tbody tr:last-child td { border-bottom:none; }
.ed-table tbody tr:hover { background:var(--bg-hover); }

/* 列宽控制 */
.ed-col-domain { min-width:120px; }
.ed-col-channel { width:70px; }
.ed-col-status { width:70px; }
.ed-col-risk { width:70px; }
.ed-col-usage { width:70px; }
.ed-col-time { min-width:120px; }
.ed-col-actions { width:110px; }

/* 单元格样式 */
.ed-cell-domain { color:var(--primary) !important; font-weight:600; }
.ed-cell-channel { text-align:center !important; }
.ed-cell-time { font-size:11px !important; color:var(--text-muted) !important; }

/* 标签 */
.ed-tag { padding:2px 8px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.ed-tag-on { background:#e8f5e9; color:#52c41a; }
.ed-tag-off { background:#fce4ec; color:#ef4444; }
.ed-tag-safe { background:rgba(22,119,255,.08); color:var(--primary); }
.ed-tag-risk { background:#fff7e6; color:#fa8c16; }

/* 操作按钮 */
.ed-actions { display:flex; gap:4px; }
.ed-action-btn { width:28px; height:28px; border-radius:5px; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:all .2s; background:transparent; color:var(--primary); }
.ed-action-btn:hover { background:rgba(22,119,255,.12); }
.ed-action-del { color:#ef4444 !important; }
.ed-action-del:hover { background:rgba(239,68,68,.12) !important; }

/* 空状态 */
.ed-empty { text-align:center !important; padding:40px 20px !important; color:var(--text-muted) !important; font-size:13px !important; }

/* 分页器（右对齐） */
.ed-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding:4px 0; }
.ed-pager-total { font-size:12px; color:var(--text-muted); }
.ed-page-size { height:30px; padding:0 8px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; color:var(--text-secondary); background:var(--bg-card); cursor:pointer; }
.ed-page-size:focus { border-color:var(--primary); }
.ed-page-btns { display:flex; align-items:center; gap:2px; }
.ed-page-num { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.ed-page-num:hover { background:var(--bg-hover); }
.ed-page-num.active { background:var(--primary); color:#fff; font-weight:600; }
.ed-page-arrow { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all .2s; border:none; background:transparent; }
.ed-page-arrow:hover { background:var(--bg-hover); color:var(--text-primary); }
.ed-page-arrow:disabled { opacity:.3; cursor:not-allowed; }

/* ========== 活码购买（营销落地页） ========== */

/* 筛选栏 */
.buy-filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:20px; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; }
.buy-search-input { height:34px; padding:0 14px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:180px; flex:1; max-width:280px; }
.buy-search-input:focus { border-color:var(--primary); }
.buy-search-input::placeholder { color:var(--text-muted); }
.buy-btn { height:34px; padding:0 16px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.buy-btn-primary { background:var(--primary); color:#fff; }
.buy-btn-primary:hover { background:var(--primary-dark); box-shadow:0 2px 8px rgba(22,119,255,.15); }
.buy-btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.buy-btn-ghost:hover { border-color:var(--primary); color:var(--primary); }

/* 通用区块 */
.buy-section { margin-bottom:28px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:24px; }
.buy-section-dark { background:linear-gradient(135deg,#1a2332,#0f1a2e); border:1px solid rgba(22,119,255,.2); }
.buy-section-title { font-size:18px; font-weight:700; color:var(--text-primary); margin-bottom:20px; padding-bottom:12px; border-bottom:2px solid var(--primary); }
.buy-section-title-light { color:#e0e8f0; border-bottom-color:rgba(22,119,255,.4); }

/* 技术优势3列卡片 */
.buy-adv-grid { display:flex; gap:16px; flex-wrap:wrap; }
.buy-adv-card { flex:1; min-width:200px; background:#f0f7f0; border-left:4px solid #2ea44f; border-radius:8px; padding:20px; text-align:center; }
.buy-adv-icon { width:48px; height:48px; border-radius:50%; background:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:22px; color:#1677ff; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.buy-adv-name { font-size:16px; font-weight:700; color:#2ea44f; margin-bottom:6px; }
.buy-adv-metric { font-size:28px; font-weight:800; color:#1e293b; margin-bottom:8px; }
.buy-adv-desc { font-size:12px; color:#666; line-height:1.7; text-align:left; }

/* 防封工作流程 */
.buy-workflow { display:flex; align-items:flex-start; justify-content:center; gap:0; flex-wrap:wrap; margin-bottom:12px; }
.buy-wf-step { text-align:center; padding:16px 8px; min-width:100px; flex:1; }
.buy-wf-icon { width:56px; height:56px; border-radius:14px; background:rgba(22,119,255,.15); display:inline-flex; align-items:center; justify-content:center; font-size:24px; color:#4096ff; margin-bottom:8px; border:1px solid rgba(22,119,255,.25); }
.buy-wf-label { font-size:12px; font-weight:600; color:#c0d0e0; margin-bottom:4px; }
.buy-wf-sub { font-size:11px; color:#6a7a8a; }
.buy-wf-arrow { display:flex; align-items:center; padding-top:32px; color:#4096ff; font-size:20px; flex-shrink:0; }
.buy-wf-tip { text-align:center; font-size:11px; color:#6a7a8a; margin-bottom:16px; padding:4px 12px; display:inline-block; background:rgba(22,119,255,.08); border-radius:10px; margin-left:auto; margin-right:auto; width:fit-content; }
.buy-wf-metrics { text-align:center; padding:16px; background:rgba(22,119,255,.06); border-radius:10px; border:1px solid rgba(22,119,255,.12); }
.buy-wf-metric-title { font-size:12px; color:#6a7a8a; margin-bottom:4px; }
.buy-wf-metric-value { font-size:32px; font-weight:800; color:#1677ff; text-shadow:0 0 20px rgba(22,119,255,.3); margin-bottom:4px; }
.buy-wf-metric-desc { font-size:12px; color:#8a9aaa; }

/* 价值体现 */
.buy-value-grid { display:flex; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.buy-value-card { flex:1; min-width:200px; padding:20px; border:1px solid var(--border-color); border-radius:8px; text-align:center; }
.buy-value-icon { width:44px; height:44px; border-radius:50%; background:#e6f4ff; display:inline-flex; align-items:center; justify-content:center; font-size:20px; color:#1677ff; margin-bottom:10px; }
.buy-value-name { font-size:16px; font-weight:700; color:var(--text-primary); margin-bottom:8px; }
.buy-value-desc { font-size:12px; color:var(--text-muted); line-height:1.6; }
.buy-banner { padding:16px 20px; background:linear-gradient(135deg,#e6f4ff,#d6eaff); border:1px dashed #1677ff; border-radius:8px; }
.buy-banner p { font-size:13px; color:#1e3a5f; line-height:1.8; margin:0; }
.buy-banner strong { color:#1677ff; font-weight:700; }

/* 产品套餐网格 */
.buy-product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }

/* 产品卡片 */
.buy-product-card { border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; text-align:center; background:var(--bg-card); transition:all .2s; }
.buy-product-card:hover { border-color:var(--primary); box-shadow:0 4px 20px rgba(22,119,255,.08); }
.buy-p-name { font-size:15px; font-weight:600; color:var(--text-primary); margin-bottom:10px; }
.buy-p-price-box { margin-bottom:12px; }
.buy-p-price { font-size:28px; font-weight:800; color:var(--primary); }
.buy-p-original { font-size:13px; color:var(--text-muted); text-decoration:line-through; margin-left:8px; }
.buy-p-qty { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:14px; }
.buy-qty-btn { width:30px; height:30px; border-radius:6px; border:1px solid var(--border-color); background:transparent; color:var(--text-secondary); cursor:pointer; font-size:16px; display:inline-flex; align-items:center; justify-content:center; }
.buy-qty-btn:hover { border-color:var(--primary); color:var(--primary); }
.buy-qty-input { width:50px; height:30px; text-align:center; border:1px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); }
.buy-product-card .buy-btn { width:100%; justify-content:center; margin-bottom:6px; }

/* ========== 子码管理（参考UI布局） ========== */

/* Tab 切换栏 */
.sc-tab-bar { display:flex; gap:0; margin-bottom:16px; border-bottom:2px solid var(--border-color); }
.sc-tab { padding:10px 20px; font-size:14px; font-weight:600; color:var(--text-secondary); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.sc-tab:hover { color:var(--primary); }
.sc-tab.act { color:var(--primary); border-bottom-color:var(--primary); }

/* 筛选栏 */
.sc-filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; }
.sc-search-input { height:34px; padding:0 14px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); min-width:180px; flex:1; max-width:280px; }
.sc-search-input:focus { border-color:var(--primary); }
.sc-search-input::placeholder { color:var(--text-muted); }
.sc-btn { height:34px; padding:0 14px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.sc-btn-primary { background:var(--primary); color:#fff; }
.sc-btn-primary:hover { background:var(--primary-dark); box-shadow:0 2px 8px rgba(22,119,255,.15); }
.sc-btn-outline { background:transparent; color:var(--primary); border:1.5px solid var(--primary); }
.sc-btn-outline:hover { background:var(--primary); color:#fff; }
.sc-btn-danger { background:#ef4444; color:#fff; }
.sc-btn-danger:hover { background:#dc2626; box-shadow:0 2px 8px rgba(239,68,68,.15); }
.sc-btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.sc-btn-ghost:hover { border-color:var(--primary); color:var(--primary); }

/* 表格容器 */
.sc-table-wrap { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px; overflow-x:auto; }
.sc-table { width:100%; border-collapse:collapse; min-width:600px; }
.sc-table thead { background:linear-gradient(135deg,#1677ff,#0958d9); }
.sc-table thead th { padding:10px 12px; text-align:left; font-weight:600; font-size:12px; color:#fff; border-bottom:none; white-space:nowrap; }
.sc-table tbody td { padding:9px 12px; border-bottom:1px solid var(--border-color); font-size:12px; color:var(--text-secondary); }
.sc-table tbody tr:last-child td { border-bottom:none; }
.sc-table tbody tr:hover { background:var(--bg-hover); }

/* 列宽 */
.sc-col-chk { width:36px; }
.sc-col-name { min-width:80px; }
.sc-col-url { min-width:120px; }
.sc-col-group { width:70px; }
.sc-col-img { width:60px; }
.sc-col-actions { width:110px; }
.sc-col-gname { min-width:80px; }
.sc-col-gdesc { min-width:100px; }
.sc-col-gcount { width:60px; }
.sc-col-gsort { width:50px; }
.sc-col-gstatus { width:50px; }
.sc-col-gtime { min-width:100px; }

/* 单元格 */
.sc-cell-primary { color:var(--text-primary) !important; font-weight:500; }
.sc-cell-secondary { color:var(--text-secondary) !important; }
.sc-cell-url { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sc-cell-num { text-align:center !important; }
.sc-cell-time { font-size:11px !important; color:var(--text-muted) !important; }
.sc-link { color:var(--primary); text-decoration:none; }
.sc-link:hover { text-decoration:underline; }

/* 缩略图 */
.sc-thumb { width:32px; height:32px; border-radius:4px; object-fit:cover; border:1px solid var(--border-color); }
.sc-noimg { color:var(--text-muted); font-size:12px; }

/* 标签 */
.sc-tag { padding:2px 8px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.sc-tag-on { background:#e8f5e9; color:#52c41a; }
.sc-tag-off { background:#fce4ec; color:#ef4444; }

/* 操作按钮 */
.sc-actions { display:flex; gap:4px; }
.sc-action-btn { width:28px; height:28px; border-radius:5px; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:all .2s; background:transparent; color:var(--primary); }
.sc-action-btn:hover { background:rgba(22,119,255,.12); }
.sc-action-del { color:#ef4444 !important; }
.sc-action-del:hover { background:rgba(239,68,68,.12) !important; }

/* 空状态 */
.sc-empty { text-align:center !important; padding:40px 20px !important; color:var(--text-muted) !important; font-size:13px !important; }

/* 分页器 */
.sc-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding:4px 0; }
.sc-pager-total { font-size:12px; color:var(--text-muted); }
.sc-page-size { height:30px; padding:0 8px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; color:var(--text-secondary); background:var(--bg-card); cursor:pointer; }
.sc-page-size:focus { border-color:var(--primary); }
.sc-page-btns { display:flex; align-items:center; gap:2px; }
.sc-page-num { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.sc-page-num:hover { background:var(--bg-hover); }
.sc-page-num.active { background:var(--primary); color:#fff; font-weight:600; }
.sc-page-arrow { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all .2s; border:none; background:transparent; }
.sc-page-arrow:hover { background:var(--bg-hover); color:var(--text-primary); }
.sc-page-arrow:disabled { opacity:.3; cursor:not-allowed; }

/* 弹窗表单 */
.sc-form { padding:4px 0; }
.sc-form-group { margin-bottom:14px; }
.sc-form-group label { display:block; font-size:13px; font-weight:500; color:var(--text-primary); margin-bottom:6px; }
.sc-form-half { flex:1; min-width:0; }
.sc-form-row { display:flex; gap:12px; flex-wrap:wrap; }
.sc-req { color:#ef4444; }
.sc-form-input { width:100%; height:38px; padding:0 12px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); box-sizing:border-box; }
.sc-form-input:focus { border-color:var(--primary); }
.sc-form-select { width:100%; height:38px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; box-sizing:border-box; }
.sc-form-select:focus { border-color:var(--primary); }
.sc-form-textarea { width:100%; padding:10px 12px; border:1.5px solid var(--border-input); border-radius:6px; font-size:13px; outline:none; background:var(--bg-card); color:var(--text-primary); resize:vertical; box-sizing:border-box; font-family:inherit; }
.sc-form-textarea:focus { border-color:var(--primary); }
.sc-form-actions { display:flex; gap:10px; justify-content:flex-end; padding-top:8px; }
.sc-input-group { display:flex; gap:8px; align-items:center; }
.sc-upload-zone { width:80px; height:80px; border:2px dashed var(--border-input); border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); font-size:24px; transition:all .2s; }
.sc-upload-zone:hover { border-color:var(--primary); color:var(--primary); }
.sc-upload-preview { max-width:120px; max-height:80px; border-radius:6px; border:1px solid var(--border-color); }
.sc-number-group { display:flex; gap:0; align-items:center; }
.sc-num-btn { width:34px; height:38px; border:1.5px solid var(--border-input); background:var(--bg-hover); color:var(--text-secondary); cursor:pointer; font-size:16px; display:inline-flex; align-items:center; justify-content:center; }
.sc-num-btn:first-child { border-radius:6px 0 0 6px; border-right:none; }
.sc-num-btn:last-child { border-radius:0 6px 6px 0; border-left:none; }
.sc-num-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.sc-num-input { width:50px; text-align:center; border-radius:0 !important; }
.sc-radio-group { display:flex; gap:16px; padding-top:8px; }
.sc-radio { display:inline-flex; align-items:center; gap:5px; cursor:pointer; font-size:13px; color:var(--text-secondary); }
.sc-radio input[type="radio"] { accent-color:var(--primary); width:16px; height:16px; cursor:pointer; }

/* ========== 活码统计（参考UI布局） ========== */

/* 筛选栏 */
.st-filter-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; margin-bottom:18px; }
.st-seg-control { display:flex; gap:0; background:#f0f2f5; border-radius:6px; overflow:hidden; flex-shrink:0; }
.st-seg-item { padding:6px 14px; font-size:12px; font-weight:500; color:var(--text-secondary); cursor:pointer; transition:all .2s; border-right:1px solid #e0e2e6; white-space:nowrap; }
.st-seg-item:last-child { border-right:none; }
.st-seg-item.act { background:#1677ff; color:#fff; font-weight:600; }
.st-input-group { display:inline-flex; align-items:center; background:var(--bg-card); border:1.5px solid var(--border-input); border-radius:6px; padding:0 10px; cursor:pointer; height:34px; min-width:160px; flex:1; max-width:200px; }
.st-input-group:hover { border-color:#1677ff; }
.st-code-input { border:none; outline:none; background:transparent; font-size:13px; color:var(--text-primary); width:100%; cursor:pointer; padding:0; height:100%; }
.st-code-input::placeholder { color:var(--text-muted); }
.st-input-arrow { color:var(--text-muted); font-size:11px; flex-shrink:0; margin-left:4px; }
.st-select { height:34px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; min-width:100px; }
.st-select:focus { border-color:#1677ff; }
.st-btn { height:34px; padding:0 16px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.st-btn-primary { background:#1677ff; color:#fff; }
.st-btn-primary:hover { background:#0958d9; box-shadow:0 2px 8px rgba(22,119,255,.25); }
.st-btn-reset { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.st-btn-reset:hover { border-color:#1677ff; color:#1677ff; }

/* 统计卡片（3列） */
.st-cards-row { display:flex; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.st-card { flex:1; min-width:180px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; display:flex; align-items:flex-start; gap:16px; }
.st-card-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.st-card-icon-bar { background:rgba(22,119,255,.12); color:#1677ff; }
.st-card-icon-user { background:rgba(22,119,255,.12); color:#1677ff; }
.st-card-icon-lamp { background:rgba(22,119,255,.12); color:#1677ff; }
.st-card-info { flex:1; min-width:0; }
.st-card-label { font-size:13px; color:var(--text-muted); margin-bottom:4px; }
.st-card-value { font-size:28px; font-weight:700; color:var(--text-primary); line-height:1.2; margin-bottom:2px; }
.st-card-sub { font-size:11px; color:var(--text-muted); }

/* 图表区 */
.st-chart-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; }
.st-chart-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border-color); flex-wrap:wrap; gap:8px; }
.st-chart-title { font-size:15px; font-weight:700; color:var(--text-primary); }
.st-chart-legend { display:flex; align-items:center; font-size:12px; color:var(--text-secondary); white-space:nowrap; }
.st-legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.st-dot-yellow { background:#1677ff; }
.st-dot-red { background:#ef4444; }
.st-chart-container { width:100%; height:320px; padding:4px; }
.st-chart-footer { display:flex; justify-content:space-between; padding:10px 20px; border-top:1px solid var(--border-color); font-size:11px; color:var(--text-muted); flex-wrap:wrap; gap:4px; }

/* QR对话框样式 */
.qr-dialog { padding:0; }
.qr-size-bar { display:flex; align-items:center; gap:10px; padding:16px 20px 12px; border-bottom:1px solid var(--border-color); }
.qr-size-label { font-size:13px; color:var(--text-secondary); white-space:nowrap; }
.qr-size-select { height:32px; padding:0 24px 0 10px; border:1px solid var(--border-color); border-radius:6px; font-size:13px; color:var(--text-primary); background:var(--bg-card); cursor:pointer; outline:none; appearance:auto; }
.qr-size-select:focus { border-color:#1677ff; }
.qr-tab-bar { display:flex; gap:0; padding:0 20px; border-bottom:2px solid var(--border-color); background:var(--bg-body); }
.qr-tab { padding:12px 20px; font-size:14px; color:var(--text-secondary); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; font-weight:500; }
.qr-tab:hover { color:#1677ff; }
.qr-tab-active { color:#1677ff; border-bottom-color:#1677ff; font-weight:600; }
.qr-list { max-height:400px; overflow-y:auto; padding:12px 20px; }
.qr-empty { text-align:center; padding:30px 20px; }
.qr-item { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--border-color); border-radius:8px; margin-bottom:10px; transition:all .2s; background:var(--bg-card); }
.qr-item:hover { border-color:#1677ff; box-shadow:0 2px 8px rgba(22,119,255,.1); }
.qr-item-disabled { opacity:.55; }
.qr-item-img { width:80px; height:80px; border-radius:6px; overflow:hidden; flex-shrink:0; background:#f5f7fa; display:flex; align-items:center; justify-content:center; }
.qr-item-img img { width:100%; height:100%; object-fit:cover; }
.qr-item-info { flex:1; min-width:0; }
.qr-item-name { font-size:14px; font-weight:600; color:var(--text-primary); margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qr-item-url { font-size:11px; color:var(--text-muted); word-break:break-all; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }
.qr-item-actions { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }
.qr-btn { height:32px; padding:0 14px; border-radius:6px; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; transition:all .2s; }
.qr-btn-primary { background:#1677ff; color:#fff; }
.qr-btn-primary:hover { background:#0958d9; box-shadow:0 2px 6px rgba(22,119,255,.3); }
.qr-btn-outline { background:transparent; color:#1677ff; border:1px solid #1677ff; }
.qr-btn-outline:hover { background:rgba(22,119,255,.06); }
.qr-btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border-color); }
.qr-btn-ghost:hover { border-color:#1677ff; color:#1677ff; }
.qr-bottom-bar { display:flex; gap:10px; justify-content:center; padding:12px 20px 16px; border-top:1px solid var(--border-color); }

/* 活码选择弹窗 */
.st-select-table { width:100%; border-collapse:collapse; margin-bottom:8px; }
.st-select-table tbody td { padding:9px 14px; border-bottom:1px solid var(--border-color); font-size:13px; color:var(--text-secondary); }
.st-select-table tbody tr:hover td { background:#fff9f0; }
.st-cell-primary { color:var(--text-primary) !important; font-weight:500; }
.st-tag { padding:2px 8px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.st-tag-on { background:#e8f5e9; color:#52c41a; }
.st-tag-off { background:#fce4ec; color:#ef4444; }

/* ========== 日志记录（参考UI布局） ========== */

/* Tab栏（蓝色下划线风格） */
.lg-tab-bar { display:flex; gap:0; margin-bottom:16px; border-bottom:2px solid #e8edf3; }
.lg-tab { padding:10px 20px; font-size:14px; font-weight:600; color:var(--text-secondary); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.lg-tab:hover { color:#1677ff; }
.lg-tab.act { color:#1677ff; border-bottom-color:#1677ff; }

/* 筛选栏 */
.lg-filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 16px; }
.lg-select { height:34px; padding:0 10px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; min-width:120px; }
.lg-select:focus { border-color:#1677ff; }
.lg-btn { height:34px; padding:0 16px; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:none; font-weight:500; }
.lg-btn-primary { background:#1677ff; color:#fff; }
.lg-btn-primary:hover { background:#0958d9; box-shadow:0 2px 8px rgba(22,119,255,.25); }

/* 表格容器 */
.lg-table-wrap { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px; overflow-x:auto; }
.lg-table { width:100%; border-collapse:collapse; min-width:500px; }
.lg-table thead { background:#1677ff; }
.lg-table thead th { padding:10px 14px; text-align:left; font-weight:600; font-size:13px; color:#fff; border-bottom:none; white-space:nowrap; }
.lg-table tbody td { padding:9px 14px; border-bottom:1px solid var(--border-color); font-size:13px; color:var(--text-secondary); }
.lg-table tbody tr:last-child td { border-bottom:none; }
.lg-table tbody tr:hover:not(:has(td:only-child)) { background:#f0f5ff; }

/* 单元格样式 */
.lg-cell-primary { color:var(--text-primary) !important; font-weight:500; }
.lg-cell-ip { font-size:12px; font-family:monospace; }
.lg-cell-user { font-weight:500; }
.lg-cell-time { font-size:12px !important; color:var(--text-muted) !important; }
.lg-cell-amount { font-weight:600; color:var(--text-primary); }
.lg-cell-desc { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 标签 */
.lg-tag { padding:2px 10px; border-radius:10px; font-size:11px; display:inline-block; font-weight:500; }
.lg-tag-green { background:#e8f5e9; color:#52c41a; }
.lg-tag-blue { background:#e6f7ff; color:#1677ff; }
.lg-tag-purple { background:#f0e6ff; color:#7850c8; }
.lg-tag-warn { background:#fff7e6; color:#fa8c16; }
.lg-tag-gray { background:#f0f0f0; color:#999; }

/* 空状态 */
.lg-empty { text-align:center !important; padding:40px 20px !important; color:var(--text-muted) !important; font-size:13px !important; }

/* 分页器（右对齐） */
.lg-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding:4px 0; }
.lg-pager-total { font-size:12px; color:var(--text-muted); }
.lg-page-size { height:30px; padding:0 8px; border:1.5px solid var(--border-input); border-radius:6px; font-size:12px; outline:none; color:var(--text-secondary); background:var(--bg-card); cursor:pointer; }
.lg-page-size:focus { border-color:#1677ff; }
.lg-page-btns { display:flex; align-items:center; gap:2px; }
.lg-page-num { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:12px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
.lg-page-num:hover { background:var(--bg-hover); }
.lg-page-num.active { background:#1677ff; color:#fff; font-weight:600; }
.lg-page-arrow { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:6px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all .2s; border:none; background:transparent; }
.lg-page-arrow:hover { background:var(--bg-hover); color:var(--text-primary); }
.lg-page-arrow:disabled { opacity:.3; cursor:not-allowed; }

/* ========== 响应式 ========== */
/* 汉堡菜单按钮 */
.hamburger-btn { display:none; width:36px; height:36px; align-items:center; justify-content:center; border:none; background:transparent; color:var(--text-secondary); font-size:18px; cursor:pointer; border-radius:6px; transition:all .2s; }
.hamburger-btn:hover { background:var(--bg-hover); color:var(--text-primary); }
.sidebar-overlay { display:none; }

/* 移动端侧边栏滑动 */
@media(max-width:768px){
  .hamburger-btn { display:inline-flex; }
  .app-layout { position:relative; }
  .app-sidebar { position:fixed; left:-260px; top:0; bottom:0; width:240px; z-index:1000; transition:left .3s ease; }
  .app-sidebar.open { left:0; }
  .sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:999; }
  .sidebar-overlay.show { display:block; }
  .app-main { width:100%; }
  .app-header { padding:0 12px; height:48px; }
  .app-content { padding:12px; }
  .app-header .hd-right .balance-text { font-size:12px; }
  .app-header .hd-right .btn-ghost { padding:4px 8px; font-size:11px; }
  .app-header .hd-right .btn-ghost i { font-size:12px; }
  .app-header .hd-right .btn-ghost span { display:none; }

  /* 表格 → 缩小字体防止横向滚动 */
  .sd-table, .lc-table, .ed-table, .sc-table, .lg-table { min-width:auto !important; font-size:11px; }
  .sd-table thead th, .lc-table thead th, .ed-table thead th, .sc-table thead th, .lg-table thead th,
  .sd-table tbody td, .lc-table tbody td, .ed-table tbody td, .sc-table tbody td, .lg-table tbody td { padding:5px 6px; font-size:11px; white-space:normal !important; word-break:break-all; }
  .sd-table-wrap, .lc-table-wrap, .ed-table-wrap, .sc-table-wrap, .lg-table-wrap { overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  .sd-table tbody tr[data-card], .lc-table tbody tr[data-card], .ed-table tbody tr[data-card],
  .sc-table tbody tr[data-card], .lg-table tbody tr[data-card] { display:table-row; }

  /* 网格 → 1列 */
  .stats-grid, .stats-grid.cols-5 { grid-template-columns:1fr !important; }
  .kpi-row { grid-template-columns:1fr 1fr !important; }
  .account-grid { grid-template-columns:1fr !important; }
  .buy-product-grid { grid-template-columns:1fr !important; }
  .buy-adv-grid { flex-direction:column !important; }
  .buy-value-grid { flex-direction:column !important; }
  .sd-stats { flex-wrap:wrap; }
  .sd-stat-card { min-width:calc(50% - 6px); flex:1 1 45%; }
  .lc-stat-card { min-width:auto; flex:1 1 45%; }
  .st-card { min-width:auto; }

  /* 筛选栏 → 纵向 */
  .filter-bar, .sd-filter-bar, .lc-filter-bar, .ed-filter-bar, .buy-filter-bar,
  .sc-filter-bar, .st-filter-bar, .lg-filter-bar { flex-direction:column; align-items:stretch; }
  .sd-search-input, .lc-search-input, .ed-search-input, .buy-search-input,
  .sc-search-input, .st-search-input, .lg-search-input { max-width:100% !important; width:100%; }
  .sd-header { flex-direction:column; align-items:flex-start; }
  .sd-header-right { width:100%; }
  .sd-buy-filter { flex-direction:column; }

  /* 分页 → 居中 */
  .sd-pager, .lc-pager, .ed-pager, .sc-pager, .lg-pager, .st-pager { justify-content:center; flex-wrap:wrap; }

  /* 工作流 → 纵向 */
  .buy-workflow { flex-direction:column; align-items:center; }
  .buy-wf-arrow { transform:rotate(90deg); padding-top:0; }

  /* 图表 / 图例 */
  .chart-legend { flex-direction:column; align-items:flex-start; }
  .st-chart-header { flex-direction:column; align-items:flex-start; }
  .st-chart-container { height:200px; }
  .st-cards-row { flex-direction:column; }
  .st-seg-control { width:100%; }

  /* 账户页 */
  .account-banner .ab-content { flex-direction:column; align-items:flex-start; gap:12px; }
  .account-banner .ab-balance { text-align:left; }
  .rs-action-row { flex-direction:column; align-items:stretch; }
  .rs-amount-control { max-width:100%; }
  .rs-confirm-btn { max-width:100%; }
  .rs-quick-btns { justify-content:center; }
  .rs-quick-btn { padding:6px 16px; font-size:12px; }

  /* 子码页 */
  .sc-filter-bar { flex-direction:column; align-items:stretch; }

  /* 弹窗 */
  .dialog-box { width:92vw; max-width:92vw; margin:0 4%; }
  .dialog-body { max-height:60vh; overflow-y:auto; }

  /* 购买页 */
  .buy-section-title { font-size:16px; }

  /* 登录页 */
  .login-left, .login-right { width:100%; min-height:auto; }
  .login-left { padding:32px 20px; }
  .login-right { padding:20px; }
  .login-card { padding:24px 20px; }

  /* 隐藏表头多余文字 */
  .sd-header-bar { display:none; }
  .sd-header-title { font-size:15px; }

  /* 子码项 */
  .qr-item { flex-direction:column; align-items:flex-start; text-align:left; }
  .qr-item-img { width:100px; height:100px; }
  .qr-item-actions { flex-direction:row; width:100%; }
  .qr-item-actions .qr-btn { flex:1; justify-content:center; }
}

@media(max-width:480px){
  .sd-stat-card { min-width:100%; flex:1 1 100%; }
  .lc-stat-card { min-width:100%; flex:1 1 100%; }
  .kpi-row { grid-template-columns:1fr !important; }
  .stats-grid { grid-template-columns:1fr !important; }
  .quick-access-grid { grid-template-columns:1fr; }
  .app-content { padding:8px; }
  .app-header { height:44px; }
  .app-header .hd-right .balance-text { font-size:11px; }
  .app-header .hd-right .btn-ghost { padding:3px 6px; font-size:10px; }
  .dialog-box { width:96vw; max-width:96vw; border-radius:10px; }
  .dialog-body { padding:14px; }
  .rs-quick-btns .rs-quick-btn { padding:4px 12px; font-size:11px; }
  .sd-table tbody tr[data-card], .lc-table tbody tr[data-card], .ed-table tbody tr[data-card],
  .sc-table tbody tr[data-card], .lg-table tbody tr[data-card] { padding:10px 12px; }
}


}


/* ===== 第五阶段：屏蔽检测相关样式 ===== */
.ed-tag-risk { background:rgba(255,77,79,.12); color:#ff4d4f; border:1px solid rgba(255,77,79,.2); }
.ed-tag-safe { background:rgba(82,196,26,.12); color:#52c41a; border:1px solid rgba(82,196,26,.2); }
.lc-tag-risk { background:rgba(255,77,79,.12); color:#ff4d4f; border:1px solid rgba(255,77,79,.2); }
.lc-tag-safe { background:rgba(82,196,26,.12); color:#52c41a; border:1px solid rgba(82,196,26,.2); }
.lc-action-btn .fa-shield-alt { color:var(--primary); }
.ed-action-btn .fa-shield-alt { color:var(--primary); }

.ed-btn-ghost { background:transparent; border:1.5px solid #e2e8f0; color:#666; }
.ed-btn-ghost:hover { border-color:#1677ff; color:#1677ff; }
/* 定时检测状态指示 */
.cron-status-indicator { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#8896a8; padding:2px 8px; background:#f8f9fb; border-radius:4px; }
.cron-status-indicator .dot { width:6px; height:6px; border-radius:50%; display:inline-block; }
.cron-status-indicator .dot.green { background:#52c41a; }
.cron-status-indicator .dot.red { background:#ff4d4f; }
.cron-status-indicator .dot.gray { background:#d9d9d9; }
