/**
 * ============================================================
 *  文件名   ：app.css
 *  作用功能 ：彩势通全站样式（naive-ui-admin 设计风格 + PJAX 组件）
 * ------------------------------------------------------------
 *  作者     ：Renvir
 *  邮箱     ：pinenetcn@gmail.com
 *  公司     ：威海市颜翊网络科技有限公司
 *  日期     ：2026年12月2日 10:00
 *  版权     ：Copyright © 2026 威海市颜翊网络科技有限公司
 * ============================================================
 */

/* ============ 设计变量（Naive UI 主题） ============ */
:root {
	--primary: #18a058;
	--primary-hover: #36ad6a;
	--primary-pressed: #0c7a43;
	--primary-soft: rgba(24, 160, 88, 0.1);
	--info: #2080f0;
	--warning: #f0a020;
	--error: #d03050;
	--success: #18a058;

	--text-1: #333639;
	--text-2: #666e75;
	--text-3: #909399;
	--border: #efeff5;
	--divider: #e5e7eb;

	--bg: #f5f7fa;
	--card: #ffffff;
	--dark: #10202b;
	--dark-2: #1b2c3a;
	--sidebar: #001428;

	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 8px 30px rgba(16, 32, 43, 0.12);
	--font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

/* 标准 SVG 图标 */
.ico {
	width: 1.15em;
	height: 1.15em;
	display: inline-block;
	vertical-align: -0.18em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ico-lg { width: 42px; height: 42px; stroke-width: 1.6; }
.ico-sm { width: 16px; height: 16px; }
.feature-item .icon .ico { width: 26px; height: 26px; }
.admin-menu a .ico { width: 17px; height: 17px; opacity: 0.82; flex-shrink: 0; }
.admin-stat .as-icon .ico { width: 24px; height: 24px; }
.card-title .ico { color: var(--primary); }
.msg-item .ico { opacity: 0.45; flex-shrink: 0; }
.lock-box .ico { color: var(--text-3); }
.honor-item .medal { width: 28px; height: 28px; border-radius: 50%; background: var(--warning); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font);
	font-size: 14px;
	color: var(--text-1);
	background: var(--bg);
	line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; }

/* ============ 通用布局 ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	height: 60px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--dark); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--dark); }

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-weight: 500;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-menu a.active { color: var(--primary); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ============ 按钮 ============ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
	white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--primary-pressed); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #e04a68; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 16px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============ 卡片 ============ */
.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}
.card + .card { margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }

/* ============ 表单 ============ */
.form-item { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--divider);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-family: var(--font);
	outline: none;
	transition: border 0.2s, box-shadow 0.2s;
	background: #fff;
	color: var(--text-1);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(24, 160, 88, 0.15);
}
.form-textarea { min-height: 90px; resize: vertical; }
.form-row { display: flex; gap: 12px; }
.form-row .form-item { flex: 1; }
.form-help { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-captcha { display: flex; gap: 10px; align-items: center; }
.form-captcha img { height: 40px; border-radius: 6px; cursor: pointer; border: 1px solid var(--divider); }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.form-check input { accent-color: var(--primary); }

/* ============ 开奖球 ============ */
.ball {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	font-family: "DIN Alternate", "Segoe UI", var(--font);
	box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
	margin-right: 6px;
	vertical-align: middle;
}
.ball-red { background: linear-gradient(160deg, #f0616b, #d92838); }
.ball-blue { background: linear-gradient(160deg, #4a8df0, #1c5ed6); }
.ball-gold { background: linear-gradient(160deg, #f5b342, #e07d14); }
.ball-sm { width: 28px; height: 28px; font-size: 13px; margin-right: 4px; }
.ball-lg { width: 46px; height: 46px; font-size: 19px; margin-right: 8px; }
.ball-plus { color: var(--text-3); font-weight: 700; margin: 0 6px; vertical-align: middle; }

/* ============ 标签 / 徽章 ============ */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
}
.tag-green { background: var(--primary-soft); color: var(--primary); }
.tag-red { background: rgba(208, 48, 80, 0.1); color: var(--error); }
.tag-orange { background: rgba(240, 160, 32, 0.12); color: var(--warning); }
.tag-blue { background: rgba(32, 128, 240, 0.1); color: var(--info); }
.tag-gray { background: #f3f3f5; color: var(--text-2); }

.badge-dot { position: relative; }
.badge-dot::after {
	content: "";
	position: absolute;
	top: -2px;
	right: -4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--error);
}

/* ============ 表格 ============ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--text-2); background: #fafafc; white-space: nowrap; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: #f9fbf9; }
.table .num { font-family: "DIN Alternate", "Segoe UI", monospace; }

/* ============ 分页 ============ */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.page-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--divider);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--text-2);
	cursor: pointer;
	font-size: 13px;
	transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; cursor: default; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 13px; color: var(--text-3); margin-left: 4px; }

/* ============ 弹窗 ============ */
.modal-mask {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
	background: #fff;
	border-radius: 12px;
	width: 440px;
	max-width: 100%;
	max-height: 86vh;
	overflow: auto;
	box-shadow: var(--shadow-lg);
	animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 18px 24px 0; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; border: 0; background: none; }
.modal-close:hover { color: var(--text-1); }
.modal-body { padding: 16px 24px; color: var(--text-1); font-size: 14px; }
.modal-footer { padding: 0 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	font-size: 14px;
	animation: toastIn 0.25s ease;
	border-left: 4px solid var(--primary);
	max-width: 90vw;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastOut { to { transform: translateY(-12px); opacity: 0; } }

/* ============ 全屏 Loading ============ */
.loading-mask {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
	z-index: 1500;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
}
.loading-mask.show { display: flex; }
.spinner {
	width: 42px;
	height: 42px;
	border: 4px solid var(--primary-soft);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 空状态 / 骨架 ============ */
/* 法务页正文 */
.legal-body h3 { font-size: 15px; margin: 20px 0 8px; color: var(--dark); }
.legal-body p { color: var(--text-2); line-height: 2; margin-bottom: 6px; }
.legal-body ul { margin: 6px 0 10px 22px; color: var(--text-2); line-height: 2; }
.legal-body strong { color: var(--error); }

.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .icon { font-size: 40px; margin-bottom: 8px; opacity: 0.5; }
.skeleton { background: linear-gradient(90deg, #f1f2f4 25%, #e9eaec 50%, #f1f2f4 75%); background-size: 400% 100%; animation: skeleton 1.2s infinite; border-radius: 6px; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============ 首页 Hero ============ */
.hero {
	background: linear-gradient(135deg, #10202b 0%, #173042 55%, #1d4a38 100%);
	color: #fff;
	padding: 72px 0 64px;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	right: -140px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(24, 160, 88, 0.35), transparent 65%);
}
.hero-inner { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: 1px; }
.hero-slogan { font-size: 18px; color: rgba(255, 255, 255, 0.78); margin: 14px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat .num { font-size: 26px; font-weight: 800; font-family: "DIN Alternate", "Segoe UI", sans-serif; }
.hero-stat .label { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.hero-card {
	width: 400px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	border-radius: 14px;
	padding: 22px;
}
.hero-card .hc-title { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-bottom: 12px; display: flex; justify-content: space-between; }
.hero-card .hc-balls { margin-bottom: 14px; }

/* ============ 首页区块 ============ */
.section { padding: 54px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 26px; font-weight: 700; color: var(--dark); }
.section-head p { color: var(--text-3); margin-top: 8px; }

.draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.draw-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border-top: 3px solid var(--primary); }
.draw-card.dlt { border-top-color: var(--warning); }
.draw-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.draw-card-head .name { font-size: 17px; font-weight: 700; }
.draw-card-head .issue { font-size: 13px; color: var(--text-3); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-item .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.feature-item h3 { font-size: 15px; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--text-3); }

/* 命中榜 */
.honor-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(90deg, rgba(240, 160, 32, 0.08), transparent);
	border-radius: 8px;
	margin-bottom: 10px;
	border: 1px solid rgba(240, 160, 32, 0.25);
}
.honor-item .medal { font-size: 20px; }
.honor-item .info { flex: 1; }
.honor-item .info .t { font-weight: 600; }
.honor-item .info .d { font-size: 12px; color: var(--text-3); }

/* 合规声明条 */
.compliance-bar {
	background: #fffaf0;
	border: 1px solid rgba(240, 160, 32, 0.3);
	border-radius: var(--radius);
	padding: 16px 20px;
	color: #8a5a00;
	font-size: 13px;
	line-height: 1.8;
}

/* ============ 数据页 ============ */
.page-main { padding: 26px 0 60px; min-height: 60vh; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
	padding: 10px 18px;
	cursor: pointer;
	color: var(--text-2);
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: all 0.15s;
	background: none;
	border-top: 0; border-left: 0; border-right: 0;
	font-family: var(--font);
	font-size: 14px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cell { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat-cell .v { font-size: 24px; font-weight: 800; font-family: "DIN Alternate", "Segoe UI", sans-serif; color: var(--dark); }
.stat-cell .k { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.chart-box { width: 100%; height: 320px; }

/* 走势矩阵 */
.trend-wrap { overflow-x: auto; }
.trend-table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.trend-table th, .trend-table td { padding: 0; border: 1px solid #f0f1f4; text-align: center; }
.trend-table th { background: #fafafc; font-weight: 600; color: var(--text-2); padding: 6px 4px; position: sticky; top: 0; }
.trend-cell { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: #c2c7cd; }
.trend-cell.hit { background: var(--error); color: #fff; border-radius: 50%; font-weight: 700; margin: 2px; width: 22px; height: 22px; }
.trend-cell.hit-blue { background: var(--info); }
.trend-issue { padding: 0 8px; white-space: nowrap; color: var(--text-2); font-family: "DIN Alternate", monospace; }

/* 冷热号条 */
.freq-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.freq-row .n { width: 26px; text-align: center; font-weight: 700; }
.freq-bar { flex: 1; height: 14px; background: #f0f1f4; border-radius: 7px; overflow: hidden; }
.freq-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-hover)); border-radius: 7px; }
.freq-row .c { width: 70px; font-size: 12px; color: var(--text-3); text-align: right; }

/* ============ AI 分析页 ============ */
.analysis-hero {
	background: linear-gradient(135deg, #10202b, #173042);
	border-radius: 14px;
	color: #fff;
	padding: 28px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}
.analysis-hero::after { content: "AI"; position: absolute; right: 18px; bottom: -20px; font-size: 110px; font-weight: 800; color: rgba(255, 255, 255, 0.05); }
.analysis-hero .ah-game { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.analysis-hero .ah-issue { font-size: 24px; font-weight: 800; margin: 4px 0 16px; }

.reason-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.reason-item:last-child { border-bottom: 0; }
.reason-item .no { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.reason-item .rt { font-weight: 600; margin-bottom: 2px; }
.reason-item .rc { font-size: 13px; color: var(--text-2); }

.lock-mask {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	border-radius: 14px;
}
.lock-box { text-align: center; padding: 30px; }
.lock-box .icon { font-size: 40px; margin-bottom: 10px; }

/* 复盘记录 */
.review-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.review-item.hit { border-color: rgba(24, 160, 88, 0.4); background: rgba(24, 160, 88, 0.04); }
.review-item.miss { border-color: rgba(208, 48, 80, 0.25); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.review-head .issue { font-weight: 700; }
.deviation-box { background: #fafbfc; border-left: 3px solid var(--info); padding: 10px 12px; font-size: 13px; color: var(--text-2); border-radius: 0 6px 6px 0; margin-top: 10px; }

/* ============ VIP 页 ============ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: 30px 26px;
	text-align: center;
	border: 2px solid transparent;
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card.hot { border-color: var(--warning); }
.plan-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--warning); color: #fff; font-size: 12px; padding: 3px 14px; border-radius: 12px; }
.plan-card .p-name { font-size: 17px; font-weight: 700; }
.plan-card .p-price { font-size: 38px; font-weight: 800; color: var(--dark); font-family: "DIN Alternate", sans-serif; margin: 14px 0 2px; }
.plan-card .p-price small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.plan-card .p-origin { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.plan-card .p-desc { font-size: 13px; color: var(--text-2); margin: 14px 0 22px; min-height: 40px; }

/* ============ 登录 / 注册 ============ */
.auth-wrap { min-height: calc(100vh - 60px - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 420px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 34px 32px; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.divider-line { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider-line::before, .divider-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============ 用户中心 ============ */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.user-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.user-side .u-head { padding: 22px 20px; text-align: center; background: linear-gradient(135deg, #10202b, #173042); color: #fff; }
.user-side .u-head .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.user-side .u-head .name { font-weight: 600; }
.user-side .u-head .vip { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 20px; color: var(--text-2); border-left: 3px solid transparent; transition: all 0.15s; }
.side-menu a:hover { background: #f9fbf9; color: var(--primary); }
.side-menu a.active { color: var(--primary); border-left-color: var(--primary); background: var(--primary-soft); font-weight: 600; }

/* 会员卡 */
.vip-card {
	background: linear-gradient(135deg, #2b1a06, #63400f 55%, #8a5a00);
	color: #ffe9c2;
	border-radius: 14px;
	padding: 24px;
	position: relative;
	overflow: hidden;
}
.vip-card.expired { background: linear-gradient(135deg, #333, #555); color: #ddd; }
.vip-card .vc-label { font-size: 12px; opacity: 0.8; }
.vip-card .vc-days { font-size: 30px; font-weight: 800; font-family: "DIN Alternate", sans-serif; margin: 6px 0; }
.vip-card .vc-expire { font-size: 13px; opacity: 0.85; }
.vip-card::after { content: "VIP"; position: absolute; right: 14px; bottom: -14px; font-size: 72px; font-weight: 800; opacity: 0.08; }

/* 积分商城 */
.mall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mall-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 22px; text-align: center; }
.mall-card .m-icon { font-size: 34px; margin-bottom: 8px; }
.mall-card .m-name { font-weight: 600; }
.mall-card .m-need { color: var(--warning); font-weight: 700; margin: 6px 0; }

/* ============ 站内信 ============ */
.msg-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.msg-item:hover { background: #f9fbf9; }
.msg-item.unread .m-title { font-weight: 700; }
.msg-item.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--error); margin-top: 8px; flex-shrink: 0; }
.msg-item.read::before { content: ""; width: 8px; flex-shrink: 0; }
.msg-item .m-body { flex: 1; min-width: 0; }
.msg-item .m-title { font-size: 14px; }
.msg-item .m-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.65); padding: 36px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.6); padding: 3px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { font-size: 12px; line-height: 1.9; color: rgba(255, 255, 255, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; }
.footer-bottom { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-top: 14px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: #fff; }

/* ============ 后台管理 ============ */
.admin-body { display: flex; min-height: 100vh; background: #f5f7fa; }
.admin-aside {
	width: 220px;
	background: var(--sidebar);
	color: rgba(255, 255, 255, 0.72);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.admin-logo img { width: 28px; height: 28px; border-radius: 7px; }
.admin-menu { flex: 1; padding: 10px 0; }
.admin-menu .group { padding: 12px 20px 4px; font-size: 11px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.35); text-transform: uppercase; }
.admin-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255, 255, 255, 0.72); border-left: 3px solid transparent; font-size: 14px; transition: all 0.15s; }
.admin-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-menu a.active { color: #fff; border-left-color: var(--primary); background: rgba(24, 160, 88, 0.18); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-header {
	height: 56px;
	background: #fff;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 22px;
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-header .crumb { font-size: 15px; font-weight: 600; }
.admin-header .right { display: flex; align-items: center; gap: 14px; }
.admin-content { padding: 20px; flex: 1; }

.admin-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-stat .as-cell { background: #fff; border-radius: 10px; padding: 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.admin-stat .as-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.admin-stat .as-v { font-size: 22px; font-weight: 800; font-family: "DIN Alternate", sans-serif; }
.admin-stat .as-k { font-size: 12px; color: var(--text-3); }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-toolbar .spacer { flex: 1; }

/* 开关 */
.switch { position: relative; width: 40px; height: 22px; background: #ccc; border-radius: 11px; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch.on { background: var(--primary); }
.switch.on::after { left: 20px; }

/* ============ 安装向导 ============ */
.install-wrap { max-width: 760px; margin: 40px auto; }
.install-steps { display: flex; align-items: center; margin-bottom: 26px; }
.install-step { flex: 1; text-align: center; position: relative; color: var(--text-3); font-size: 13px; }
.install-step .dot { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; color: var(--text-3); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; transition: all 0.2s; }
.install-step.active .dot { background: var(--primary); color: #fff; }
.install-step.done .dot { background: var(--primary-soft); color: var(--primary); }
.install-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
.install-step:first-child::before { display: none; }
.install-step.done::before, .install-step.active::before { background: var(--primary); }
.install-step span { position: relative; z-index: 1; }

.env-table td { padding: 8px 12px; }
.ok-text { color: var(--success); font-weight: 600; }
.err-text { color: var(--error); font-weight: 600; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
	.hero-inner { flex-direction: column; }
	.hero-card { width: 100%; }
	.hero-title { font-size: 30px; }
	.draw-grid, .feature-grid, .plan-grid, .mall-grid, .stat-grid, .admin-stat { grid-template-columns: 1fr 1fr; }
	.user-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.admin-aside { width: 64px; }
	.admin-logo span, .admin-menu a span, .admin-menu .group { display: none; }
	.nav-menu { overflow-x: auto; }
}
@media (max-width: 560px) {
	.draw-grid, .feature-grid, .plan-grid, .mall-grid, .stat-grid, .admin-stat { grid-template-columns: 1fr; }
	.form-row { flex-direction: column; gap: 0; }
	.header-inner { gap: 10px; }
	.brand span { display: none; }
}

/* ============ 打印与辅助 ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gray { color: var(--text-3); } .green { color: var(--primary); } .red { color: var(--error); } .orange { color: var(--warning); }
.bold { font-weight: 700; }
.mono { font-family: "DIN Alternate", "Segoe UI", monospace; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
