/**
 * 后台公共样式：品牌色、卡片、表格等全局视觉
 */

/* 品牌渐变导航栏（与 App 端主色一致） */
.app-navbar {
	background: linear-gradient(135deg, #2f6bff 0%, #7b3dff 100%);
}

.app-brand-icon {
	font-size: 1.2rem;
	vertical-align: -2px;
}

/* 主内容区上下留白 */
.app-main {
	padding: 24px 12px 48px;
}

/* 统计卡片：图标底色块 */
.stat-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #fff;
	flex-shrink: 0;
}

.stat-icon.blue { background: linear-gradient(135deg, #2f6bff, #5a8bff); }
.stat-icon.purple { background: linear-gradient(135deg, #7b3dff, #a06bff); }
.stat-icon.green { background: linear-gradient(135deg, #1fa76a, #3fc98d); }
.stat-icon.orange { background: linear-gradient(135deg, #e8821e, #f5a94a); }

/* 卡片统一柔和阴影 */
.card {
	border: none;
	box-shadow: 0 2px 12px rgba(30, 40, 90, 0.08);
	border-radius: 12px;
}

.card-header {
	background: #fff;
	border-bottom: 1px solid #eef0f5;
	border-radius: 12px 12px 0 0 !important;
	font-weight: 600;
}

/* 表格：紧凑 + 行悬停 */
.table > :not(caption) > * > * {
	padding: 0.6rem 0.75rem;
}

.table-hover tbody tr:hover {
	background: #f5f8ff;
}

/* 操作按钮组紧凑排列 */
.btn-group-sm .btn {
	padding: 0.25rem 0.5rem;
}

/* 版本历史：固定表格布局，长文件名与说明自动省略，避免挤掉后面的列 */
.version-table {
	table-layout: fixed;
	min-width: 800px;
}

/* 版本历史各列占比：版本 / 类型 / 下载地址 / 更新说明 / 状态 / 发布时间 / 操作 */
.vt-col-version { width: 8%; }
.vt-col-type { width: 7%; }
.vt-col-pkg { width: 26%; }
.vt-col-notes { width: 18%; }
.vt-col-status { width: 8%; }
.vt-col-time { width: 22%; }
.vt-col-actions { width: 11%; }

/* 版本发布弹窗：上传进度条高度 */
.upload-progress-track {
	height: 8px;
}

/* 登录页：居中卡片 */
.login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2f6bff 0%, #7b3dff 100%);
	padding: 16px;
}

.login-card {
	width: 100%;
	max-width: 400px;
	border-radius: 16px;
	border: none;
}

.login-logo {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2f6bff, #7b3dff);
	color: #fff;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}

/* 页脚 */
.app-footer {
	border-top: 1px solid #eef0f5;
	background: #fafbfc;
}

/* 徽章辅助 */
.badge-soft-success { background: #e3f7ee; color: #14804a; }
.badge-soft-danger { background: #fdeaea; color: #c0392b; }
.badge-soft-secondary { background: #eef0f5; color: #5a6270; }
.badge-soft-warning { background: #fff4e0; color: #b26a00; }
.badge-soft-primary { background: #e8f0ff; color: #2f6bff; }

/* ============ App 分发落地页（download.php） ============ */
.dl-body {
	background: #f1f3f9;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
/* 沉浸式渐变页头：直达屏幕顶部，带柔和光晕装饰 */
.dl-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #ff8a50 0%, #f5552e 55%, #d42f10 100%);
	padding: 46px 20px 78px;
	text-align: center;
	color: #fff;
}
.dl-glow {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	pointer-events: none;
}
.dl-glow-1 {
	width: 220px;
	height: 220px;
	top: -90px;
	left: -60px;
}
.dl-glow-2 {
	width: 150px;
	height: 150px;
	bottom: -50px;
	right: -40px;
	background: rgba(255, 255, 255, 0.1);
}
.dl-hero-logo {
	width: 74px;
	height: 74px;
	margin: 0 auto 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.18);
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	font-size: 2.2rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(120, 22, 4, 0.28);
}
.dl-hero-title {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	margin: 0 0 6px;
}
.dl-hero-sub {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.82);
	letter-spacing: 1px;
}
/* 主体内容容器：负上边距使信息卡叠在渐变页头上 */
.dl-main {
	max-width: 420px;
	margin: -52px auto 0;
	padding: 0 16px 30px;
	position: relative;
}
/* 玻璃拟态卡片：半透明白 + 背景模糊 + 大圆角 */
.dl-card {
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(31, 45, 90, 0.1);
	padding: 20px 18px;
	margin-bottom: 14px;
}
/* 应用信息行：logo + 名称 + 平台徽章 */
.dl-logo-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.dl-logo {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: linear-gradient(135deg, #ff7a45, #e84118);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(232, 65, 24, 0.3);
	flex-shrink: 0;
}
.dl-logo-lg {
	width: 68px;
	height: 68px;
	font-size: 1.9rem;
	margin-bottom: 14px;
}
.dl-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #26314d;
}
.dl-plat {
	margin-left: auto;
	background: #e3f7ee;
	color: #14804a;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
}
/* 信息条目：版本 / 大小 / 时间 / 类型 */
.dl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.dl-chip {
	background: #eef1f8;
	color: #4a5570;
	font-size: 0.78rem;
	padding: 5px 11px;
	border-radius: 999px;
	font-weight: 500;
}
.dl-chip-accent {
	background: #ffece5;
	color: #d42f10;
	font-weight: 700;
}
/* 区块小标题：左侧渐变竖条 */
.dl-sec-title {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	font-weight: 700;
	color: #26314d;
	margin: 0 0 10px;
}
.dl-sec-title::before {
	content: '';
	width: 4px;
	height: 14px;
	border-radius: 2px;
	background: linear-gradient(180deg, #ff7a45, #e84118);
	margin-right: 8px;
}
.dl-sec {
	margin-bottom: 16px;
}
.dl-notes {
	color: #4a5570;
	font-size: 0.92rem;
	line-height: 1.75;
	margin: 0;
	white-space: pre-wrap;
}
/* 下载主按钮：渐变底 + 白描边 + 按压反馈 */
.dl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(135deg, #ff7a45, #e84118);
	border: 2px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 14px;
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(232, 65, 24, 0.32);
	transition: transform 0.1s ease, filter 0.1s ease;
}
.dl-btn:hover,
.dl-btn:focus {
	color: #fff;
	filter: brightness(1.06);
}
.dl-btn:active {
	transform: scale(0.98);
}
/* 安装步骤时间线：渐变数字圆点 + 连接竖线 */
.dl-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}
.dl-steps li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 18px;
}
.dl-steps li:last-child {
	padding-bottom: 0;
}
/* 步骤连接竖线：绘制在圆点下方（最后一个不显示） */
.dl-steps li:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 28px;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, #ffd9cd, #ffece5);
	border-radius: 2px;
}
.dl-step-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff7a45, #e84118);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(232, 65, 24, 0.25);
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.dl-step-text {
	color: #4a5570;
	font-size: 0.9rem;
	line-height: 1.7;
	padding-top: 3px;
}
/* 扫码卡：深色底 + 白色内衬保证扫描对比度 */
.dl-qr-card {
	background: #182036;
	border-radius: 20px;
	padding: 20px 18px;
	margin-bottom: 14px;
	text-align: center;
	box-shadow: 0 12px 32px rgba(16, 25, 46, 0.28);
}
.dl-sec-title-dark {
	justify-content: center;
	color: #fff;
}
.dl-sec-title-dark::before {
	background: linear-gradient(180deg, #ff8a50, #f5552e);
}
.dl-qrcode {
	display: flex;
	justify-content: center;
	background: #fff;
	border-radius: 14px;
	padding: 12px;
	width: 174px;
	margin: 0 auto 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.dl-qrcode img {
	display: block;
}
.dl-qr-tip {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.8rem;
	margin: 0;
}
/* 提示条：柔和底色 + 图标 */
.dl-alert {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 0.85rem;
	line-height: 1.6;
	margin-bottom: 12px;
}
.dl-alert-warn {
	background: #fff7e6;
	color: #9a6200;
}
.dl-alert-info {
	background: #e9f1ff;
	color: #2d5fa8;
}
/* iOS 设备提示：苹果平台不支持安装的中性提示条 */
.dl-alert-ios {
	background: #eef1f8;
	color: #4a5570;
	font-weight: 500;
}
/* 空状态 */
.dl-empty {
	text-align: center;
	padding: 40px 18px;
}
.dl-empty-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #26314d;
	margin: 0 0 6px;
}
.dl-empty-sub {
	color: #8a93a6;
	font-size: 0.88rem;
	margin: 0;
}
.dl-footer {
	text-align: center;
	color: #a5adc0;
	font-size: 0.78rem;
	margin-top: 24px;
}
/* 小屏适配：收紧字号与内边距 */
@media (max-width: 380px) {
	.dl-hero {
		padding: 36px 16px 70px;
	}
	.dl-main {
		margin-top: -46px;
	}
	.dl-card {
		padding: 16px 14px;
	}
	.dl-name {
		font-size: 1.1rem;
	}
	.dl-btn {
		font-size: 1rem;
		padding: 13px;
	}
}
/* 微信内复制链接引导的轻提示气泡 */
.dl-toast {
	position: fixed;
	top: 18%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(20, 26, 40, 0.88);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.9rem;
	z-index: 9999;
	max-width: 80vw;
	text-align: center;
}
