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

:root {
	--primary-orange: #FF9A3C;
	--primary-orange-light: #FFB366;
	--primary-orange-dark: #FF8A1F;
	--accent-green: #7CB342;
	--accent-green-light: #9CCC65;
	/* --accent-green-light: #cee271; */
	--accent-coral: #FF7043;
	--accent-blue: #42A5F5;
	--accent-yellow: #FFD54F;
	--text-primary: #4A3728;
	--text-secondary: #6D5D4B;
	--text-muted: #8B7B6B;
	--bg-white: #FFFFFF;
	--bg-cream: #FFFBF5;
	--bg-green-card: #cee271;
	--shadow-soft: 0 8px 32px rgba(255, 154, 60, 0.12);
	--shadow-button: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
	font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: linear-gradient(to bottom right, #ffd6e0, #cce8ff);
	min-height: 100vh;
	color: var(--text-primary);
	padding: 20px;
	padding-bottom: 100px;
	position: relative;
	line-height: 1.6;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 213, 79, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(124, 179, 66, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.app {
    min-height: 100vh;
    padding-bottom: 80px;
	position: relative;
	z-index: 1;
}

/* 主内容区域，确保不被tabbar遮挡 */
.main-content,
.view-panel {
    padding-bottom: 20px;
}

/* 页面头部通用样式 */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	margin-bottom: 20px;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}

.header h1 {
	font-size: 24px;
	color: var(--bg-white);
	font-weight: 700;
	text-shadow: 0 2px 8px rgba(74, 55, 40, 0.15);
	letter-spacing: 0.5px;
}

.back-btn {
	background: var(--bg-white);
	color: var(--primary-orange);
	border: none;
	border-radius: 25px;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: var(--shadow-button);
	font-weight: 500;
}

.back-btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 16px rgba(255, 154, 60, 0.2);
}

.back-btn i {
	color: var(--primary-orange);
}

/* 绿色卡片容器通用样式 - 白色背景 */
.green-card {
	background: var(--bg-white);
	border-radius: 28px;
	width: 100%;
	max-width: 1400px;
	padding: 30px;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	box-shadow:
		0 10px 40px rgba(255, 154, 60, 0.15),
		0 2px 8px rgba(0, 0, 0, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: white;
	box-shadow: 0 4px 10px rgba(255, 154, 60, 0.35);
}

.btn-primary:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-action .icon {
    font-size: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

/* 底部导航栏样式 */
.tab-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, #ddf482 0%, #bedd5e 100%);
	padding: 10px 15px;
	display: flex;
	justify-content: space-around;
	box-shadow:
		0 -4px 20px rgba(189, 221, 94, 0.4),
		0 -2px 8px rgba(0, 0, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	z-index: 100;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5px 10px;
	cursor: pointer;
	transition: all 0.3s;
	border-radius: 12px;
}

.tab-item:hover {
	background: rgba(255, 154, 60, 0.1);
}

.tab-item.active {
	background: var(--primary-orange);
}

.tab-item.active .icon,
.tab-item.active .text {
	color: white;
}

.tab-item .icon {
	font-size: 20px;
	color: #521f0a;
	margin-bottom: 2px;
	transition: all 0.3s;
}

.tab-item .text {
	font-size: 10px;
	color: #521f0a;
	transition: all 0.3s;
}

/* 电脑端适配 */
@media (min-width: 768px) {
	.tab-bar {
		padding: 15px 30px;
	}

	.tab-item {
		padding: 8px 20px;
	}

	.tab-item .icon {
		font-size: 24px;
	}

	.tab-item .text {
		font-size: 12px;
	}
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--primary-orange);
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 480px) {
	body {
		padding: 12px;
	}
	
    .header {
        padding: 10px 12px;
		margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

	.green-card {
		padding: 20px;
		border-radius: 22px;
	}
}