/* ==========================================================================
   统一域名管理面板 - 腾讯风格样式
   ========================================================================== */

:root {
    --primary: #0052d9;
    --primary-hover: #0046b8;
    --primary-light: #f2f6ff;
    --primary-border: #b8d0ff;
    --success: #07c160;
    --warning: #ff9d00;
    --danger: #e34d59;
    --text-1: #1f2329;
    --text-2: #646a73;
    --text-3: #8f959e;
    --text-4: #a1a7b3;
    --border: #e7e7e7;
    --border-light: #f0f0f0;
    --bg: #f3f3f3;
    --bg-hover: #f7f8fa;
    --radius: 8px;
    --radius-sm: 6px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    background: #f5f6f8; padding: 1px 5px; border-radius: 4px; font-size: 12px;
}

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px; flex: 0 0 220px; background: #fff;
    border-right: 1px solid var(--border); display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 20;
}
.sidebar .logo {
    height: 56px; display: flex; align-items: center; gap: 10px;
    padding: 0 18px; border-bottom: 1px solid var(--border-light); flex: 0 0 56px;
}
.sidebar .logo .mark {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
    background: linear-gradient(135deg, #0052d9, #3a7bff);
    color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sidebar .logo .name { font-size: 15px; font-weight: 600; color: var(--text-1); letter-spacing: .2px; }
.sidebar .logo .name small { display: block; font-size: 10px; color: var(--text-4); font-weight: 400; letter-spacing: .5px; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav .group-title {
    font-size: 11px; color: var(--text-4); padding: 12px 10px 6px; letter-spacing: .5px;
}
.nav a.item {
    display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
    border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px;
    margin-bottom: 2px; transition: background .18s, color .18s;
}
.nav a.item:hover { background: var(--bg-hover); color: var(--text-1); }
.nav a.item.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.nav a.item .ico { width: 16px; height: 16px; flex: 0 0 16px; opacity: .75; }
.nav a.item.active .ico { opacity: 1; }
.nav a.item .count {
    margin-left: auto; font-size: 11px; background: #f0f0f0; color: var(--text-2);
    border-radius: 999px; padding: 0 7px; line-height: 17px;
}
.nav a.item.active .count { background: #dbe6ff; color: var(--primary); }

.sidebar .sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--border-light); font-size: 11px; color: var(--text-4); }

.main { flex: 1; margin-left: 220px; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 56px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 20px; gap: 16px;
    position: sticky; top: 0; z-index: 15;
}
.topbar .page-title { font-size: 15px; font-weight: 600; }
.topbar .page-title .sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.topbar .spacer { flex: 1; }
.topbar .user {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
    border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
}
.topbar .user .avatar {
    width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light);
    color: var(--primary); font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.topbar .user:hover { background: var(--bg-hover); color: var(--text-1); }

.content { padding: 20px; flex: 1; }
.content-inner { max-width: 1280px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04); margin-bottom: 16px;
    overflow: hidden;
}
.card-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 12px;
}
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--text-3); }
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat {
    background: #fff; border-radius: var(--radius); padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04); position: relative; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.stat:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .07); transform: translateY(-1px); }
.stat .label { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 28px; font-weight: 600; margin: 6px 0 2px; letter-spacing: -.5px; }
.stat .value small { font-size: 13px; font-weight: 400; color: var(--text-4); margin-left: 4px; }
.stat .foot { font-size: 12px; color: var(--text-4); }
.stat .foot .up { color: var(--success); }
.stat::after {
    content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px;
    border-radius: 50%; background: var(--primary-light); opacity: .55;
}
.stat.orange::after { background: #fff4e6; }
.stat.green::after { background: #e8f7ee; }
.stat.purple::after { background: #f2eeff; }
.stat .ico-wrap {
    position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; z-index: 1;
    background: var(--primary-light); color: var(--primary);
}
.stat.orange .ico-wrap { background: #fff4e6; color: #d97706; }
.stat.green .ico-wrap { background: #e8f7ee; color: var(--success); }
.stat.purple .ico-wrap { background: #f2eeff; color: #7c5cf0; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 15px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: #fff; color: var(--text-1); font-size: 13px; cursor: pointer;
    transition: all .18s; white-space: nowrap; font-family: inherit; line-height: 1;
}
.btn:hover { border-color: var(--primary-border); color: var(--primary); background: #fff; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn.danger { color: var(--danger); border-color: #f7cbc8; background: #fff; }
.btn.danger:hover { background: #feeceb; border-color: var(--danger); color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--primary); }
.btn.lg { height: 38px; padding: 0 20px; font-size: 14px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-row label .req { color: var(--danger); margin-left: 2px; }
.form-row .tip { font-size: 12px; color: var(--text-4); margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
    width: 100%; height: 34px; padding: 0 11px; border: 1px solid #dcdfe6;
    border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-1);
    background: #fff; transition: border-color .18s, box-shadow .18s; font-family: inherit;
}
textarea { height: auto; padding: 8px 11px; resize: vertical; line-height: 1.6; }
select { padding-right: 28px; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238f959e' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; cursor: pointer;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 82, 217, .1);
}
input::placeholder, textarea::placeholder { color: #c0c4cc; }
input[disabled] { background: #f7f8fa; color: var(--text-3); cursor: not-allowed; }
.form-grid { display: grid; gap: 0 16px; }
.form-grid.c2 { grid-template-columns: 1fr 1fr; }
.form-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
    text-align: left; padding: 11px 16px; background: #fafafa; color: var(--text-2);
    font-weight: 500; font-size: 13px; white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
}
table.data td {
    padding: 13px 16px; border-bottom: 1px solid var(--border-light);
    font-size: 13.5px; vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fafbfc; }
table.data .col-actions { text-align: right; white-space: nowrap; }
table.data .domain-name { font-weight: 500; color: var(--text-1); }
table.data .muted { color: var(--text-3); font-size: 12.5px; }
table.data .mono { font-family: Consolas, Monaco, monospace; font-size: 12.5px; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
    border-radius: 4px; font-size: 12px; background: #f2f3f5; color: var(--text-2);
    white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.tag.blue { background: var(--primary-light); color: var(--primary); }
.tag.green { background: #e8f7ee; color: #07874b; }
.tag.red { background: #feeceb; color: #b83a43; }
.tag.orange { background: #fff4e6; color: #b45309; }
.tag.gray { background: #f2f3f5; color: var(--text-3); }
.tag.purple { background: #f2eeff; color: #6d4ad6; }

/* 平台标识 */
.platform {
    display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
    border-radius: 4px; font-size: 12px; background: #f5f6f8; color: var(--text-2);
}
.platform .pdot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 56px 20px; }
.empty .ico {
    width: 64px; height: 64px; border-radius: 50%; background: #f5f6f8;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    font-size: 26px;
}
.empty h4 { font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.empty p { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; gap: 6px; padding: 16px 20px; border-top: 1px solid var(--border-light); }
.pagination .info { color: var(--text-3); font-size: 13px; margin-right: auto; }
.pagination a, .pagination span.pg {
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--text-2); background: #fff;
}
.pagination a:hover { border-color: var(--primary-border); color: var(--primary); }
.pagination span.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination span.disabled { color: #c9cdd4; pointer-events: none; background: #fafafa; }

/* ---------- 提示条 ---------- */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; line-height: 1.65; }
.alert.error { background: #feeceb; color: #b83a43; border: 1px solid #f7cbc8; }
.alert.success { background: #e8f7ee; color: #07874b; border: 1px solid #bfe8cd; }
.alert.info { background: var(--primary-light); color: #2b5fb8; border: 1px solid #cbdcff; }
.alert.warning { background: #fff8e6; color: #a16207; border: 1px solid #ffe1a3; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 100;
    display: none; align-items: flex-start; justify-content: center; padding: 56px 16px;
    overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18); animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 18px 22px 0; display: flex; align-items: center; }
.modal-head h3 { font-size: 15.5px; font-weight: 600; flex: 1; }
.modal-head .close {
    width: 26px; height: 26px; border-radius: var(--radius-sm); border: none; background: transparent;
    color: var(--text-3); font-size: 18px; cursor: pointer; line-height: 1;
}
.modal-head .close:hover { background: var(--bg-hover); color: var(--text-1); }
.modal-sub { padding: 6px 22px 0; font-size: 12.5px; color: var(--text-3); }
.modal-body { padding: 18px 22px; }
.modal-foot {
    padding: 14px 22px; border-top: 1px solid var(--border-light);
    display: flex; justify-content: flex-end; gap: 10px;
}
.modal.wide { max-width: 700px; }

/* ---------- 轻提示 ---------- */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 9px 16px; font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    display: flex; align-items: center; gap: 8px; animation: toastIn .22s ease; max-width: 460px;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.toast.ok { border-color: #bfe8cd; color: #07874b; }
.toast.err { border-color: #f7cbc8; color: #b83a43; }
.toast.info { border-color: #cbdcff; color: #2b5fb8; }

/* ---------- 加载 ---------- */
.spinner {
    width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(0, 82, 217, .25); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 列表项（平台连接 / 域名卡片） ---------- */
.list-item {
    display: flex; align-items: center; gap: 14px; padding: 15px 18px;
    border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px;
    background: #fff; transition: border-color .18s, box-shadow .18s;
}
.list-item:hover { border-color: var(--primary-border); box-shadow: 0 2px 10px rgba(0, 82, 217, .06); }
.list-item .li-icon {
    width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
    background: #f5f6f8; color: var(--text-2);
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-item .li-desc { font-size: 12.5px; color: var(--text-3); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.list-item .li-actions { display: flex; gap: 8px; align-items: center; }
.list-item .conn-result {
    margin-top: 6px; padding: 7px 10px; border-radius: 4px;
    background: #feeceb; color: #b83a43; font-size: 12.5px; line-height: 1.6;
    white-space: normal; word-break: break-word;
}

/* ---------- 域名网格 ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.domain-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; transition: border-color .18s, box-shadow .18s, transform .18s;
    display: flex; flex-direction: column;
}
.domain-card:hover { border-color: var(--primary-border); box-shadow: 0 4px 16px rgba(0, 82, 217, .08); transform: translateY(-2px); }
.domain-card .dc-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.domain-card .dc-title { flex: 1; min-width: 0; }
.domain-card .dc-title .name {
    font-size: 15px; font-weight: 600; color: var(--text-1); word-break: break-all;
    display: block; line-height: 1.4;
}
.domain-card .dc-title .name:hover { color: var(--primary); }
.domain-card .dc-meta { font-size: 12.5px; color: var(--text-3); display: grid; gap: 6px; margin-bottom: 14px; }
.domain-card .dc-meta .row { display: flex; gap: 8px; }
.domain-card .dc-meta .row .k { color: var(--text-4); flex: 0 0 58px; }
.domain-card .dc-meta .row .v { color: var(--text-2); flex: 1; min-width: 0; word-break: break-all; }
.domain-card .dc-foot {
    display: flex; gap: 8px; align-items: center; margin-top: auto;
    padding-top: 12px; border-top: 1px solid var(--border-light);
}
.domain-card .dc-foot .spacer { flex: 1; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid var(--border-light);
}
.filter-bar .field { display: flex; align-items: center; gap: 7px; }
.filter-bar .field input[type=text] { width: 210px; }
.filter-bar .field select { width: 160px; }
.filter-bar .spacer { flex: 1; }

/* ---------- 详情页 ---------- */
.detail-head {
    background: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04); display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.detail-head .dh-icon {
    width: 52px; height: 52px; border-radius: 12px; flex: 0 0 52px;
    background: linear-gradient(135deg, #0052d9, #3a7bff); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600;
}
.detail-head .dh-main { flex: 1; min-width: 220px; }
.detail-head .dh-main h2 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-head .dh-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 7px; font-size: 12.5px; color: var(--text-3); }
.detail-head .dh-meta span b { color: var(--text-2); font-weight: 500; }
.detail-head .dh-actions { display: flex; gap: 10px; }

.quick-panel {
    background: linear-gradient(135deg, #f2f6ff 0%, #ffffff 62%);
    border: 1px solid #dbe6ff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.quick-panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.quick-panel .qp-desc { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.quick-panel .qp-form { display: grid; grid-template-columns: 1.3fr .85fr 1.6fr .9fr auto; gap: 10px; align-items: end; }
.quick-panel .qp-form .form-row { margin-bottom: 0; }
.quick-panel .qp-form label { font-size: 12px; }
.quick-panel .alias-hint { font-size: 12px; color: var(--text-4); margin-top: 10px; }

/* ---------- 记录类型标识 ---------- */
.rtype {
    display: inline-block; min-width: 46px; text-align: center; padding: 2px 7px;
    border-radius: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
    background: #eef0f3; color: var(--text-2);
}
.rtype.A { background: #e8f1ff; color: #1a5fd0; }
.rtype.AAAA { background: #eae6ff; color: #6d4ad6; }
.rtype.CNAME { background: #e6f7f1; color: #0c8a63; }
.rtype.MX { background: #fff3e0; color: #b45309; }
.rtype.TXT { background: #f0f0f3; color: #646a73; }
.rtype.NS { background: #fdeaf1; color: #c2416f; }
.rtype.SRV { background: #e6f4fb; color: #0e7490; }
.rtype.CAA { background: #f4ece1; color: #8a6d3b; }

/* ---------- 信息列表 ---------- */
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.info-list .row {
    display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border-light); font-size: 13.5px;
}
.info-list .row .k { color: var(--text-3); flex: 0 0 96px; }
.info-list .row .v { flex: 1; color: var(--text-1); word-break: break-all; }

/* ---------- 步骤条 ---------- */
.steps-flow { display: flex; flex-direction: column; }
.steps-flow .node { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.steps-flow .node:last-child { padding-bottom: 0; }
.steps-flow .node .marker {
    width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px; z-index: 1;
    border: 2px solid var(--border); background: #fff; color: var(--text-3);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.steps-flow .node .marker.done { background: var(--success); border-color: var(--success); color: #fff; }
.steps-flow .node .marker.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps-flow .node:not(:last-child) .marker::after {
    content: ''; position: absolute; left: 12px; top: 24px; bottom: -2px; width: 2px; background: var(--border-light);
}
.steps-flow .node .body { flex: 1; padding-top: 2px; }
.steps-flow .node .body .t { font-size: 13.5px; color: var(--text-1); }
.steps-flow .node .body .t.dim { color: var(--text-3); }
.steps-flow .node .body .d { font-size: 12px; color: var(--text-4); margin-top: 2px; }

/* ---------- 登录页 ---------- */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, #f2f6ff 0%, #f3f3f3 45%, #eef1f6 100%);
    padding: 24px;
}
.login-box {
    width: 100%; max-width: 400px; background: #fff; border-radius: 12px;
    padding: 36px 34px; box-shadow: 0 8px 40px rgba(0, 41, 109, .1);
}
.login-box .logo { text-align: center; margin-bottom: 26px; }
.login-box .logo .mark {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
    background: linear-gradient(135deg, #0052d9, #3a7bff); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.login-box .logo h1 { font-size: 19px; font-weight: 600; }
.login-box .logo p { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.login-box .form-row { margin-bottom: 18px; }
.login-box input { height: 40px; }
.login-box .btn { width: 100%; height: 40px; font-size: 14.5px; }
.login-foot { text-align: center; font-size: 12px; color: var(--text-4); margin-top: 22px; }

/* ---------- 代码块 ---------- */
.code-box {
    background: #fafbfc; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; font-family: Consolas, Monaco, monospace; font-size: 12.5px;
    color: var(--text-2); white-space: pre-wrap; word-break: break-all; line-height: 1.7;
    max-height: 260px; overflow-y: auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-panel .qp-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .info-list { grid-template-columns: 1fr; }
    .form-grid.c3, .form-grid.c2 { grid-template-columns: 1fr; }
    .content { padding: 14px; }
    .menu-toggle { display: inline-flex !important; }
    .domain-grid { grid-template-columns: 1fr; }
}
.menu-toggle { display: none; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 15px; }
