/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 根变量定义 - 一加红白主题 */
:root {
	--primary-color: #eb0028; /* OnePlus Red */
	--secondary-color: #b0001a; /* Deep Red */
	--accent-color: #eb0028; /* 主动作色统一为红色 */
	--success-color: #16a34a; /* 成功绿色保留更克制 */
	--text-primary: #1f2937; /* 深灰提升可读性 */
	--text-secondary: #6b7280; /* 次要文字 */
	--text-light: #9ca3af; /* 更浅的辅助文字 */
	--bg-primary: #ffffff; /* 页面主背景白 */
	--bg-secondary: #ffffff; /* 组件背景白 */
	--bg-card: #ffffff;
	--border-color: #e5e7eb; /* 更贴近纯白的边框 */
	--shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
	--shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
	--border-radius: 12px;
	--border-radius-small: 8px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-primary);
	min-height: 100vh;
	color: var(--text-primary);
	line-height: 1.6;
	font-weight: 400;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 头部样式 - 简约设计 */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 60px;
	padding: 0;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 28px;
	font-weight: 600;
	color: var(--text-primary);
}

.logo i {
	font-size: 32px;
	color: var(--accent-color);
	opacity: 0.9;
}

.header-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-secondary);
	padding: 8px 16px;
	border-radius: 20px;
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 14px;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-light);
}

.header-badge i {
	color: var(--accent-color);
	font-size: 12px;
}

/* 主要内容区域 */
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* 公告卡片样式 - 简约高级 */
.announcement-card {
	background: var(--bg-card);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-medium);
	overflow: hidden;
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.announcement-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-heavy);
}

.card-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 32px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.icon-wrapper {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.card-header h1 {
	font-size: 24px;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.5px;
}

.card-content {
	padding: 40px;
}

.greeting {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 24px;
}

.announcement-text p {
	font-size: 15px;
	color: var(--text-secondary);
	margin-bottom: 24px;
	line-height: 1.7;
}

/* 小程序区域样式 - 简约设计 */
.miniprogram-section {
	margin: 32px 0;
}

.miniprogram-card {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	color: var(--text-primary);
	box-shadow: var(--shadow-light);
	transition: var(--transition);
}

.miniprogram-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-medium);
	border-color: var(--accent-color);
}

.miniprogram-icon {
	width: 44px;
	height: 44px;
	background: var(--accent-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: white;
}

.miniprogram-info {
	flex: 1;
}

.miniprogram-info h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--text-primary);
}

.miniprogram-info p {
	font-size: 13px;
	color: var(--text-light);
	margin: 0;
}

.copy-btn {
	background: var(--accent-color);
	border: none;
	color: white;
	padding: 10px 20px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: var(--transition);
}

.copy-btn:hover {
	background: #2980b9;
	transform: translateY(-1px);
	box-shadow: var(--shadow-light);
}

.action-text {
	font-size: 15px;
	color: var(--text-primary);
	font-weight: 500;
	margin-top: 24px;
}

/* 广告卡片样式 - 简约高级 */
.ad-card {
	background: var(--bg-card);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-medium);
	overflow: hidden;
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.ad-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-heavy);
}

.ad-header {
	background: linear-gradient(135deg, var(--success-color), #2ecc71);
	color: white;
	padding: 20px 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	font-size: 14px;
}

.ad-content {
	padding: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
}

.ad-info h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
	letter-spacing: -0.3px;
}

.ad-info p {
	color: var(--text-secondary);
	margin-bottom: 16px;
	font-size: 14px;
}

.ad-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ad-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-secondary);
	font-size: 13px;
}

.ad-features i {
	color: var(--success-color);
	font-size: 10px;
}

.ad-btn {
	background: linear-gradient(135deg, var(--success-color), #2ecc71);
	color: white;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
	box-shadow: var(--shadow-light);
}

.ad-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-medium);
}

/* 底部信息样式 - 简约设计 */
.footer-info {
	text-align: center;
	padding: 32px;
	background: var(--bg-secondary);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-light);
}

.contact-info p {
	color: var(--text-secondary);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
}

.contact-info i {
	color: var(--accent-color);
	font-size: 12px;
}

/* 提示框样式 - 简约设计 */
.toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: var(--success-color);
	color: white;
	padding: 12px 20px;
	border-radius: var(--border-radius-small);
	box-shadow: var(--shadow-medium);
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 14px;
	transform: translateX(400px);
	transition: var(--transition);
	z-index: 1000;
}

.toast.show {
	transform: translateX(0);
}

/* 客服板块样式 - 简约高级 */
.support-card {
	background: var(--bg-card);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-medium);
	overflow: hidden;
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.support-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-heavy);
}

.support-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 20px 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	font-size: 14px;
}

.support-content {
	padding: 28px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.support-info h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.support-info p {
	color: var(--text-secondary);
	margin-bottom: 16px;
	font-size: 14px;
}

.support-methods {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.support-methods li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-secondary);
	font-size: 14px;
	flex-wrap: wrap;
}

.support-methods i {
	color: var(--accent-color);
	font-size: 14px;
}

.wechat-id {
	font-weight: 600;
	color: var(--text-primary);
}

.mini-btn {
	background: var(--accent-color);
	border: none;
	color: white;
	padding: 8px 14px;
	border-radius: 16px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--transition);
}

.mini-btn:hover {
	background: #2980b9;
	transform: translateY(-1px);
	box-shadow: var(--shadow-light);
}

.support-btn {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
	box-shadow: var(--shadow-light);
}

.support-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-medium);
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		padding: 20px 15px;
	}
	
	.header {
		flex-direction: column;
		gap: 20px;
		text-align: center;
		margin-bottom: 40px;
	}
	
	.card-header {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 24px;
	}
	
	.card-content {
		padding: 24px;
	}
	
	.miniprogram-card {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 20px;
	}
	
	.ad-content {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}
	
	.ad-features {
		align-items: center;
	}
	
	.logo {
		font-size: 24px;
	}
	
	.logo i {
		font-size: 28px;
	}
	
	.card-header h1 {
		font-size: 20px;
	}
	
	.ad-info h3 {
		font-size: 18px;
	}

	.support-content {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 15px 10px;
	}
	
	.card-content {
		padding: 20px;
	}
	
	.ad-content {
		padding: 20px;
	}
	
	.miniprogram-card {
		padding: 16px;
	}
	
	.copy-btn {
		width: 100%;
		justify-content: center;
	}
	
	.ad-btn {
		width: 100%;
		justify-content: center;
	}
	
	.footer-info {
		padding: 24px 20px;
	}
}

/* 动画效果 - 更柔和的动画 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.announcement-card,
.ad-card {
	animation: fadeInUp 0.5s ease-out;
}

.ad-card {
	animation-delay: 0.1s;
}

/* 滚动条样式 - 简约设计 */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-light);
} 

/* 本地等效样式：按钮、卡片、徽章、提示、链接、工具类 */
/* 卡片 */
.card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-medium);
}
.bg-base-100 { background: var(--bg-card); }

/* 徽章 */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9999px;
	font-size: 12px;
	line-height: 1;
	padding: 10px 14px;
}
.badge-outline {
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	background: var(--bg-secondary);
}

/* 按钮 */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 9999px;
	padding: 10px 18px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-light); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary { background: var(--accent-color); color: #fff; }
.btn-primary:hover { background: #2980b9; }

.btn-secondary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; }
.btn-secondary:hover { filter: brightness(1.05); }

.btn-success { background: linear-gradient(135deg, var(--success-color), #2ecc71); color: #fff; }
.btn-success:hover { filter: brightness(1.05); }

.btn-outline { background: transparent; border-color: var(--accent-color); color: var(--accent-color); }
.btn-outline:hover { background: rgba(52,152,219,0.08); }

.btn-xs { padding: 6px 10px; font-size: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* 链接 */
.link { color: var(--accent-color); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* 提示条 */
.alert {
	padding: 10px 16px;
	border-radius: var(--border-radius-small);
	border: 1px solid var(--border-color);
	background: var(--bg-secondary);
	color: var(--text-primary);
	box-shadow: var(--shadow-light);
}
.alert-success {
	background: #e9f7ef;
	border-color: #d4efdf;
	color: #1e8449;
}

/* 工具类（Tailwind 等效的最小实现） */
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; } 

/* 小程序二维码位 */
.miniprogram-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}
.qr-wrap {
	width: 104px;
	height: 104px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-light);
}
.qr-wrap img { width: 100%; height: 100%; object-fit: cover; }
.qr-tip { font-size: 12px; color: var(--text-light); }

@media (max-width: 768px) {
	.miniprogram-qr {
		width: 100%;
		margin-left: 0;
		margin-top: 10px;
	}
} 

/* 公告可读性增强：加粗与主色 */
.announcement-text p { font-weight: 600; color: var(--text-primary); }
.announcement-text ul, .announcement-text ol { font-weight: 600; color: var(--text-primary); }
.greeting { font-weight: 600; }
.card-header h1 { font-weight: 700; } 

/* 小程序名称高亮 */
.mp-name {
	color: #d32f2f;
	font-weight: 700;
	letter-spacing: 0.2px;
} 

/* 一加红白主题的控件细化 */
.logo i { color: var(--primary-color); }
.header-badge { border-color: var(--border-color); }
.header-badge i { color: var(--primary-color); }
.card-header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.miniprogram-icon { background: var(--primary-color); }
.copy-btn { background: var(--primary-color); }
.copy-btn:hover { background: #c40021; }
.mini-btn.btn-outline { border-color: var(--primary-color); color: var(--primary-color); }
.mini-btn.btn-outline:hover { background: rgba(235, 0, 40, 0.08); }
.support-btn { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.ad-header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.ad-btn { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.ad-features i { color: var(--primary-color); }
.contact-info i { color: var(--primary-color); }
.mp-name { color: var(--primary-color); } 