/* ================================================
   百德CDN管理系统 - 全局样式
   ================================================ */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-soft: #eff6ff;
    --success: #10b981;
    --success-soft: #d1fae5;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --warning: #f59e0b;
    --warning-soft: #fef3c7;
    --info: #06b6d4;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #263449;
    --bg: #f1f5f9;
    --bg-soft: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-2: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.06);
    --shadow-lg: 0 10px 30px rgba(15,23,42,.10);
    --shadow-xl: 0 20px 60px rgba(15,23,42,.18);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e3a8a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100vh; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
b, strong { font-weight: 600; }
.mono { font-family: Consolas, Monaco, "Courier New", monospace; font-size: 13px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.link { color: var(--primary); }
.link-danger { color: var(--danger); }
.strong { font-weight: 600; }

/* ================================================
   图标系统（CSS绘制的轻量SVG mask图标）
   ================================================ */
[data-icon]::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    vertical-align: -0.15em;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    flex-shrink: 0;
}
[data-icon="user"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/></svg>"); }
[data-icon="lock"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 11a2 2 0 1 1 2-2 2 2 0 0 1-2 2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 11a2 2 0 1 1 2-2 2 2 0 0 1-2 2z'/></svg>"); }
[data-icon="globe"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8 8 0 0 1 18.93 8zM12 4c.83 1.2 1.48 2.55 1.91 4h-3.82c.43-1.45 1.08-2.8 1.91-4zM4.26 14a8 8 0 0 1 0-4h3.38a16.6 16.6 0 0 0 0 4zm.81 2h2.95a15.65 15.65 0 0 0 1.38 3.56A8 8 0 0 1 5.07 16zm2.95-8H5.07a8 8 0 0 1 4.33-3.56A15.65 15.65 0 0 0 8.02 8zM12 20a14.6 14.6 0 0 1-1.91-4h3.82A14.6 14.6 0 0 1 12 20zm2.34-6H9.66a14.6 14.6 0 0 1 0-4h4.68a14.6 14.6 0 0 1 0 4zm.27 5.56A15.65 15.65 0 0 0 15.99 16h2.95a8 8 0 0 1-4.33 3.56zM16.36 14a16.6 16.6 0 0 0 0-4h3.38a8 8 0 0 1 0 4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8 8 0 0 1 18.93 8zM12 4c.83 1.2 1.48 2.55 1.91 4h-3.82c.43-1.45 1.08-2.8 1.91-4zM4.26 14a8 8 0 0 1 0-4h3.38a16.6 16.6 0 0 0 0 4zm.81 2h2.95a15.65 15.65 0 0 0 1.38 3.56A8 8 0 0 1 5.07 16zm2.95-8H5.07a8 8 0 0 1 4.33-3.56A15.65 15.65 0 0 0 8.02 8zM12 20a14.6 14.6 0 0 1-1.91-4h3.82A14.6 14.6 0 0 1 12 20zm2.34-6H9.66a14.6 14.6 0 0 1 0-4h4.68a14.6 14.6 0 0 1 0 4zm.27 5.56A15.65 15.65 0 0 0 15.99 16h2.95a8 8 0 0 1-4.33 3.56zM16.36 14a16.6 16.6 0 0 0 0-4h3.38a8 8 0 0 1 0 4z'/></svg>"); }
[data-icon="order"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/></svg>"); }
[data-icon="money"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z'/></svg>"); }
[data-icon="ticket"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 10V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 1 0 4v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 1 0-4zm-2-1.54a4 4 0 0 0 0 7.08V18H4v-2.46a4 4 0 0 0 0-7.08V6h16z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 10V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 1 0 4v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 1 0-4zm-2-1.54a4 4 0 0 0 0 7.08V18H4v-2.46a4 4 0 0 0 0-7.08V6h16z'/></svg>"); }
[data-icon="wallet"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 7H3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2zm-9 11a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm9-9H3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 7H3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2zm-9 11a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm9-9H3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2z'/></svg>"); }
[data-icon="flow"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 12h2v6H3zm4-4h2v10H7zm4-3h2v13h-2zm4 6h2v7h-2zm4-4h2v11h-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 12h2v6H3zm4-4h2v10H7zm4-3h2v13h-2zm4 6h2v7h-2zm4-4h2v11h-2z'/></svg>"); }
[data-icon="req"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 22l4-4 1.41 1.41L9 24.83 5.59 21.41 7 20l2 2V0h2v22zm10-9a3 3 0 1 0-3-3 3 3 0 0 0 3 3z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 22l4-4 1.41 1.41L9 24.83 5.59 21.41 7 20l2 2V0h2v22zm10-9a3 3 0 1 0-3-3 3 3 0 0 0 3 3z'/></svg>"); }
[data-icon="node"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm0-14a6 6 0 1 0 6 6 6 6 0 0 0-6-6zm0 10a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm0-6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm0-14a6 6 0 1 0 6 6 6 6 0 0 0-6-6zm0 10a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm0-6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>"); }
[data-icon="rocket"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14.06 9l.94.94L5.92 19H5v-.92zm0-5.16L3 16v5h5l11.06-11.06zm2.12-2.83l-2.83 2.83 6.36 6.36 2.83-2.83zM7 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14.06 9l.94.94L5.92 19H5v-.92zm0-5.16L3 16v5h5l11.06-11.06zm2.12-2.83l-2.83 2.83 6.36 6.36 2.83-2.83zM7 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/></svg>"); }
[data-icon="shield"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z'/></svg>"); }
[data-icon="chart"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h2v18H3zm4 12h2v6H7zm4-8h2v14h-2zm4 4h2v10h-2zm4-2h2v12h-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h2v18H3zm4 12h2v6H7zm4-8h2v14h-2zm4 4h2v10h-2zm4-2h2v12h-2z'/></svg>"); }
[data-icon="plus"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>"); }
[data-icon="admin"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zM12 11.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-2.31z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zM12 11.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-2.31z'/></svg>"); }
[data-icon="time"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14zm0-12H5V6h14z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14zm0-12H5V6h14z'/></svg>"); }
[data-icon="clock"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>"); }
[data-icon="online"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5' fill='black'/></svg>"); }
[data-icon="user-add"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>"); }
[data-icon="plan"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2L1 21h22zm0 4l7.53 13H4.47zM11 16h2v2h-2zm0-5h2v4h-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2L1 21h22zm0 4l7.53 13H4.47zM11 16h2v2h-2zm0-5h2v4h-2z'/></svg>"); }
[data-icon="setting"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.14 12.94a7.14 7.14 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7.03 7.03 0 0 0-1.63-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.55-1.63.94l-2.39-.96a.5.5 0 0 0-.61.22L2.73 8.84a.5.5 0 0 0 .12.64l2.03 1.58a7.14 7.14 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .61.22l2.39-.96c.5.39 1.04.7 1.63.94l.36 2.54c.05.24.26.42.5.42h3.84a.5.5 0 0 0 .5-.42l.36-2.54a7.03 7.03 0 0 0 1.63-.94l2.39.96a.5.5 0 0 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.14 12.94a7.14 7.14 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7.03 7.03 0 0 0-1.63-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.55-1.63.94l-2.39-.96a.5.5 0 0 0-.61.22L2.73 8.84a.5.5 0 0 0 .12.64l2.03 1.58a7.14 7.14 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .61.22l2.39-.96c.5.39 1.04.7 1.63.94l.36 2.54c.05.24.26.42.5.42h3.84a.5.5 0 0 0 .5-.42l.36-2.54a7.03 7.03 0 0 0 1.63-.94l2.39.96a.5.5 0 0 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/></svg>"); }
[data-icon="key"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 10h-8.35A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 10h-8.35A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/></svg>"); }
[data-icon="empty"]::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14zm-7-2l-4-4h3V8h2v5h3z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14zm-7-2l-4-4h3V8h2v5h3z'/></svg>"); }

/* ================================================
   登录/注册页（左右分栏）
   ================================================ */
.login-page { background: var(--bg-soft); min-height: 100vh; }
.auth-shell { display: flex; min-height: 100vh; overflow: hidden; }
.auth-shell--solo { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%); position: relative; }
.auth-shell--solo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(99,102,241,.35), transparent 50%), radial-gradient(circle at 80% 80%, rgba(168,85,247,.25), transparent 50%); pointer-events: none; }

/* 左侧品牌面板 */
.auth-side {
    flex: 1;
    background: var(--gradient-dark);
    color: #fff;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 50px;
    overflow: hidden;
}
.auth-side-inner { position: relative; z-index: 2; max-width: 460px; }
.auth-side-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-side-logo-box {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    box-shadow: 0 8px 24px rgba(59,130,246,.4);
    position: relative;
}
.auth-side-logo-box::before, .auth-side-logo-box::after { content: ''; position: absolute; background: #fff; border-radius: 2px; }
.auth-side-logo-box::before { width: 18px; height: 4px; top: 14px; left: 13px; }
.auth-side-logo-box::after { width: 4px; height: 18px; top: 13px; left: 20px; }
.auth-side-logo-box--admin { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.auth-side-logo-box--admin::before, .auth-side-logo-box--admin::after { background: #fff; }
.auth-side-logo-text { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.auth-side-logo-text i { font-style: normal; color: #94a3b8; font-size: 13px; margin-left: 4px; }

/* 后台登录侧栏（紫色管理主题） */
.auth-side--admin {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}
.auth-side--admin::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(99,102,241,.45) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(168,85,247,.4) 0%, transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'><circle cx='40' cy='40' r='30'/><circle cx='40' cy='40' r='18'/><line x1='10' y1='40' x2='70' y2='40'/><line x1='40' y1='10' x2='40' y2='70'/></g></svg>");
    background-size: cover, cover, 80px 80px;
    opacity: .9;
}
.auth-side-title {
    font-size: 32px; line-height: 1.4; font-weight: 700; margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-side-sub { color: #94a3b8; font-size: 14px; margin-bottom: 36px; letter-spacing: .5px; }
.auth-side-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-side-points li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}
.auth-side-points li > div { flex: 1; }
.auth-side-points li b { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; }
.auth-side-points li span { display: block; font-size: 12px; color: #94a3b8; }
.auth-side-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(6,182,212,.3));
    color: #60a5fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.auth-side-icon::before { width: 20px; height: 20px; }
.auth-side-foot {
    margin-top: 50px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between;
    font-size: 12px; color: #64748b;
}
.auth-side-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob-1 { width: 360px; height: 360px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); top: -100px; right: -120px; }
.blob-2 { width: 280px; height: 280px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); bottom: -80px; left: -60px; }
.blob-3 { width: 200px; height: 200px; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); top: 40%; left: 40%; opacity: .25; }

/* 右侧登录表单 */
.auth-main {
    width: 520px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 50px;
    background: var(--card-bg);
    position: relative;
}
.auth-main-inner { width: 100%; max-width: 380px; }
.auth-card { width: 100%; background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(15, 23, 42, .15); position: relative; z-index: 1; }
.auth-card--admin { padding: 44px 40px; }
.auth-brand { margin-bottom: 30px; }
.auth-brand--admin { text-align: center; margin-bottom: 32px; }
.auth-brand--admin h1 { font-size: 24px; margin-top: 14px; }
.auth-brand--admin p { font-size: 13px; }
.auth-logo { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #4338ca, #7c3aed); color: #fff; font-size: 28px; box-shadow: 0 8px 24px rgba(67, 56, 202, .35); }
.auth-logo[data-icon]::before { width: 28px; height: 28px; }
.auth-brand h1 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -.5px; }
.auth-brand p { color: var(--text-muted); font-size: 14px; }
.auth-form .form-item { margin-bottom: 18px; }
.auth-form .form-item label { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
.auth-form .btn-primary {
    margin-top: 6px; height: 46px;
    border-radius: 10px; font-size: 15px; font-weight: 600;
    box-shadow: 0 6px 18px rgba(59,130,246,.28);
    transition: all .2s;
}
.auth-form .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59,130,246,.36);
    transform: translateY(-1px);
}
.auth-form .btn-primary .btn-arrow { transition: transform .2s; }
.auth-form .btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* 带图标的输入框 */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input {
    padding-left: 42px; padding-right: 42px;
    height: 46px; border-radius: 10px;
    background: var(--bg-soft); border-color: var(--border-soft);
    transition: all .2s;
}
.input-wrap .input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,130,246,.10); }
.input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px;
    pointer-events: none; transition: color .2s;
}
.input-wrap .input:focus ~ .input-icon,
.input-wrap .input:focus + .input-icon { color: var(--primary); }
.input-wrap .input-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); border-radius: 6px; padding: 0;
}
.input-wrap .input-eye:hover { color: var(--primary); background: var(--bg); }
.input-wrap .input-eye::before {
    content: ''; width: 18px; height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z'/></svg>") no-repeat center / contain;
}
.input-wrap .input-eye.showing::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 7a5 5 0 0 0-4.9 6.13l-4.55 4.55 1.42 1.42 4.55-4.55A5 5 0 0 0 17 12a4.95 4.95 0 0 0-1.18-3.27l4.55-4.55-1.42-1.42-4.55 4.55A4.95 4.95 0 0 0 12 7zM2 4.27l2.28 2.28.46.46A11.8 11.8 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5a11.8 11.8 0 0 0 4.99-1.13l.46.46L19.73 22 21 20.73 3.27 3z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 7a5 5 0 0 0-4.9 6.13l-4.55 4.55 1.42 1.42 4.55-4.55A5 5 0 0 0 17 12a4.95 4.95 0 0 0-1.18-3.27l4.55-4.55-1.42-1.42-4.55 4.55A4.95 4.95 0 0 0 12 7zM2 4.27l2.28 2.28.46.46A11.8 11.8 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5a11.8 11.8 0 0 0 4.99-1.13l.46.46L19.73 22 21 20.73 3.27 3z'/></svg>");
}

/* 分隔线 */
.auth-divider {
    display: flex; align-items: center;
    margin: 24px 0 18px;
    color: var(--text-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { padding: 0 12px; }

/* 底部链接区 */
.auth-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-link-item {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: var(--bg-soft); border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-2); font-size: 13px;
    transition: all .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.auth-link-item:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.auth-link-item b { color: inherit; font-weight: 600; }
.auth-link-ico {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: #fff; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.auth-link-ico::before { width: 14px; height: 14px; }
.auth-link-text {
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; flex: 1;
}
@media (max-width: 1100px) {
    .auth-link-text { font-size: 12px; }
}
@media (max-width: 900px) {
    .auth-link-text { font-size: 13px; }
}
.auth-mobile-foot { display: none; text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 30px; }

/* ================================================
   应用布局
   ================================================ */
.app-body { display: flex; min-height: 100vh; }
.sidebar {
    width: 230px; background: var(--sidebar-bg); color: #cbd5e1;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transition: width .25s;
}
.sidebar-admin { background: #111827; }
.sidebar-logo {
    padding: 20px 22px; font-size: 17px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo-dot {
    width: 12px; height: 12px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: inline-block; flex-shrink: 0;
}
.logo-sub {
    font-size: 12px; font-weight: 400;
    background: rgba(255,255,255,.12);
    padding: 2px 8px; border-radius: 10px;
    color: #a5b4fc;
}
.sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 8px;
    color: #cbd5e1; margin-bottom: 2px;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
    color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; gap: 12px;
}
.su-avatar, .tb-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.su-info { min-width: 0; flex: 1; }
.su-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-balance { color: #94a3b8; font-size: 12px; }
.su-balance b { color: #fbbf24; }

.main {
    flex: 1; margin-left: 230px;
    display: flex; flex-direction: column;
    min-height: 100vh;
}
.topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.tb-btn {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 8px; font-size: 13px;
    color: var(--text); background: #fff;
    transition: all .15s;
}
.tb-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.tb-bell { position: relative; color: var(--text); font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.tb-bell:hover { background: var(--bg); }
.badge-dot {
    position: absolute; top: 0; right: 2px;
    background: var(--danger); color: #fff;
    font-size: 11px; min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.tb-user { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background .15s; }
.tb-user:hover { background: var(--bg); }
.tb-avatar { width: 32px; height: 32px; font-size: 14px; }
.tb-name { font-size: 13px; }
.tb-dropdown {
    position: absolute; top: 44px; right: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; box-shadow: var(--shadow-lg);
    min-width: 140px; padding: 6px;
    display: none; z-index: 200;
}
.tb-user:hover .tb-dropdown { display: block; }
.tb-dropdown a {
    display: block; padding: 9px 14px;
    border-radius: 6px; font-size: 13px; color: var(--text);
}
.tb-dropdown a:hover { background: var(--bg); color: var(--primary); }
.tb-dropdown a.danger { color: var(--danger); }
.tb-dropdown a.danger:hover { background: var(--danger-soft); }

.content { padding: 24px; flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ================================================
   仪表盘欢迎横幅
   ================================================ */
.dash-hero {
    background: var(--gradient-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 22px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,.15);
    flex-wrap: wrap; gap: 20px;
}
.dash-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(59,130,246,.35), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(6,182,212,.25), transparent 40%);
    pointer-events: none;
}
.dh-left { flex: 1; min-width: 260px; position: relative; z-index: 2; }
.dh-greet { font-size: 14px; color: #94a3b8; margin-bottom: 8px; }
.dh-greet b { color: #fbbf24; font-weight: 600; }
.dh-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.dh-title b { color: #60a5fa; }
.dh-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.dh-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cbd5e1; }
.dh-meta-ico { font-size: 14px; color: #60a5fa; }
.dh-meta-ico::before { width: 14px; height: 14px; }

.dh-right {
    display: flex; gap: 14px;
    position: relative; z-index: 2;
}
.dh-stat-mini {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 100px;
    transition: all .2s;
}
.dh-stat-mini:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}
.dh-sm-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.dh-sm-value { font-size: 18px; font-weight: 700; color: #fbbf24; }
.dh-circle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.4), transparent 70%);
    pointer-events: none;
}
.dh-circle-1 { width: 200px; height: 200px; top: -60px; right: -50px; }
.dh-circle-2 { width: 140px; height: 140px; bottom: -50px; right: 180px; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%); }
.dh-circle-3 { width: 100px; height: 100px; top: 30px; right: 400px; background: radial-gradient(circle, rgba(167,139,250,.3), transparent 70%); }

/* ================================================
   统计卡片
   ================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
}
a.stat-card { cursor: pointer; }
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.stat-icon::after {
    content: '';
    position: absolute;
    right: -10px; bottom: -10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}
.stat-icon .stat-ico { font-size: 22px; }
.stat-icon .stat-ico::before { width: 22px; height: 22px; }
.stat-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.stat-icon.red { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.stat-icon.cyan { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }
.stat-icon.indigo { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.stat-icon.teal { background: linear-gradient(135deg, #14b8a6 0%, #5eead4 100%); }

/* 卡片彩色顶边 */
.sc-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.sc-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.sc-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.sc-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sc-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.sc-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.sc-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.sc-teal::before { background: linear-gradient(90deg, #14b8a6, #5eead4); }
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}
.stat-body { flex: 1; min-width: 0; }
.stat-num { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-trend { font-size: 11px; color: var(--text-muted); margin-top: 6px; opacity: .8; }
.stat-trend.up { color: var(--success); }
.stat-trend.urgent { color: var(--danger); font-weight: 600; }

/* ================================================
   快捷入口
   ================================================ */
.quick-actions {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.qa-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.qa-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text-2); font-size: 13px;
    transition: all .2s;
}
.qa-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}
.qa-ico { font-size: 14px; }
.qa-ico::before { width: 14px; height: 14px; }

/* ================================================
   卡片
   ================================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.card-narrow { max-width: 640px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap; gap: 10px;
}
.card-title-wrap { display: flex; align-items: center; gap: 8px; }
.card-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.card-icon::before { width: 14px; height: 14px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text); }
.card-badge {
    background: var(--bg-soft); color: var(--text-muted);
    font-size: 11px; padding: 2px 8px;
    border-radius: 10px;
}
.card-sub { font-size: 13px; color: var(--text-muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ================================================
   表单
   ================================================ */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #475569; }
.input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px;
    font-family: inherit; color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.input[disabled] { background: var(--bg); color: var(--text-muted); }
textarea.input { resize: vertical; min-height: 90px; }
.input-sm { width: auto; padding: 7px 10px; font-size: 13px; }
.form-help { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-static { color: #334155; font-size: 14px; line-height: 1.9; }
.check-line { display: inline-block; margin: 2px 0; }
.check-line b { font-weight: 700; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-section {
    font-size: 13px; font-weight: 600; color: var(--primary);
    padding: 12px 0 4px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 16px;
}

/* ================================================
   按钮
   ================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff; color: var(--text);
    font-size: 14px; font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn.disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ================================================
   表格
   ================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    white-space: nowrap;
}
.table th { color: var(--text-muted); font-weight: 500; background: #f8fafc; }
.table tr:hover td { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

.td-user { display: inline-flex; align-items: center; gap: 8px; }
.td-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ================================================
   徽章
   ================================================ */
.badge-primary { background: var(--primary); color: #fff; }
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: #f1f5f9; color: #64748b;
}
.badge-green { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-muted { background: #e2e8f0; color: #64748b; }

/* ================================================
   欢迎卡
   ================================================ */
.welcome-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: var(--radius);
    padding: 26px 28px;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; gap: 16px;
}
.welcome-text h2 { font-size: 20px; margin-bottom: 4px; }
.welcome-text p { color: #cbd5e1; font-size: 13px; }
.welcome-balance { text-align: right; }
.welcome-balance span { display: block; font-size: 12px; color: #94a3b8; }
.welcome-balance b { font-size: 28px; color: #fbbf24; display: block; margin: 4px 0; }
.welcome-balance .btn { background: #fbbf24; border-color: #fbbf24; color: #1e293b; }
.welcome-balance .btn:hover { background: #f59e0b; border-color: #f59e0b; }

/* ================================================
   服务信息
   ================================================ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.svc-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.svc-label { font-size: 12px; color: var(--text-muted); }
.svc-value { font-size: 16px; font-weight: 600; margin-top: 4px; }

/* ================================================
   套餐
   ================================================ */
.current-svc {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.plan-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 26px 22px;
    text-align: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.plan-card.current { border-color: var(--primary); }
.plan-name { font-size: 17px; font-weight: 700; }
.plan-price { margin: 16px 0; }
.price-symbol { font-size: 16px; color: var(--text-muted); vertical-align: top; }
.price-num { font-size: 36px; font-weight: 800; color: var(--primary); }
.price-unit { font-size: 13px; color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 20px; text-align: left; }
.plan-features li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px; color: #475569;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li b { color: var(--text); }

/* ================================================
   柱状图
   ================================================ */
.bar-chart {
    display: flex; align-items: flex-end;
    gap: 8px; height: 200px;
    padding: 10px 4px 0;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-track {
    width: 100%; max-width: 34px; height: 100%;
    background: #f1f5f9;
    border-radius: 6px 6px 0 0;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 6px 6px 0 0;
    transition: height .3s;
    min-height: 2px;
}
.bar-col:hover .bar-fill { background: linear-gradient(180deg, #34d399, #10b981); }
.bar-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }

/* ================================================
   空状态
   ================================================ */
.empty-box { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-box p { margin-bottom: 6px; font-size: 14px; }
.empty-box span { font-size: 12px; opacity: .8; }
.empty-ico {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    background: var(--bg-soft);
    color: var(--text-muted);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.empty-ico::before { width: 24px; height: 24px; }

/* ================================================
   分页
   ================================================ */
.pagination {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px; color: var(--text); background: #fff;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-ellipsis { color: var(--text-muted); padding: 0 4px; }
.page-info { margin-left: 8px; font-size: 12px; color: var(--text-muted); }

/* ================================================
   筛选标签
   ================================================ */
.filter-tabs { display: flex; gap: 4px; }
.filter-tabs .tab {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
}
.filter-tabs .tab:hover { background: var(--bg); color: var(--text); }
.filter-tabs .tab.active { background: #eff6ff; color: var(--primary); font-weight: 600; }

/* ================================================
   搜索
   ================================================ */
.search-form { display: flex; gap: 8px; align-items: center; }

/* ================================================
   通知
   ================================================ */
.notice-item {
    padding: 14px 16px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.notice-item.unread { background: #f8fafc; border-left-color: var(--primary); }
.notice-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.notice-content { color: #475569; font-size: 13px; margin-top: 6px; }
.notice-time { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ================================================
   工单
   ================================================ */
.ticket-meta {
    display: flex; gap: 20px;
    font-size: 13px; color: var(--text-muted);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.reply-list { display: flex; flex-direction: column; gap: 16px; }
.reply-item { display: flex; gap: 12px; }
.reply-admin { flex-direction: row-reverse; }
.reply-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #e2e8f0; color: #475569;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.reply-admin .reply-avatar { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; }
.reply-body {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 80%;
}
.reply-admin .reply-body { background: #eff6ff; }
.reply-head { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.reply-content { font-size: 14px; color: #334155; word-break: break-word; }
.ticket-closed {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 16px;
}

/* ================================================
   弹窗
   ================================================ */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; }

/* ================================================
   Flash
   ================================================ */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    transition: opacity .4s;
}
.flash-success { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.flash-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ================================================
   充值金额快捷
   ================================================ */
.amount-presets { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.preset-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px; color: var(--text);
}
.preset-btn.active, .preset-btn:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.pay-types { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-item { cursor: pointer; }
.pay-item input { display: none; }
.pay-box {
    display: block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    transition: all .15s;
}
.pay-item input:checked + .pay-box { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 600; }

/* ================================================
   提示页
   ================================================ */
.msg-box {
    background: #fff;
    border-radius: 16px;
    padding: 48px 56px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 440px;
}
.msg-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
}
.msg-icon.ok { background: linear-gradient(135deg, #10b981, #34d399); }
.msg-icon.no { background: linear-gradient(135deg, #ef4444, #f87171); }
.msg-text { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.msg-hint { font-size: 13px; color: var(--text-muted); }

/* ================================================
   双列
   ================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ================================================
   响应式
   ================================================ */
@media (max-width: 1100px) {
    .auth-side { padding: 40px 30px; }
    .auth-side-title { font-size: 26px; }
    .auth-side-points li { padding: 12px 14px; }
}
@media (max-width: 900px) {
    .auth-shell { flex-direction: column; }
    .auth-side { padding: 30px; min-height: auto; }
    .auth-side-foot { display: none; }
    .auth-mobile-foot { display: block; }
    .auth-main { width: 100%; padding: 30px 24px; }
    .sidebar { width: 64px; }
    .sidebar-logo { font-size: 0; justify-content: center; padding: 18px 0; }
    .logo-dot { margin: 0; }
    .sidebar-logo .logo-sub { display: none; }
    .nav-item { justify-content: center; padding: 12px 0; }
    .nav-item .nav-dot { display: none; }
    .sidebar-user { justify-content: center; padding: 14px 0; }
    .su-info { display: none; }
    .main { margin-left: 64px; }
    .two-col { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .content { padding: 14px; }
    .topbar { padding: 0 14px; }
    .tb-name { display: none; }
    .plan-grid { grid-template-columns: 1fr; }
    .dh-right { width: 100%; }
    .dash-hero { padding: 22px; }
}