:root {
    --primary: #07a86f;
    --secondary: #4ecdc4;
    --accent: #f7fff7;
    --text-dark: #292f36;
    --text-light: #6c757d;
    --border: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --base-font-size: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f5f5f5;
    overflow-x: hidden;
    font-size: var(--base-font-size);
}

header,
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    font-size: 22px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.header-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--base-font-size);
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-links li {
    margin-left: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: var(--base-font-size);
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--base-font-size);
    box-shadow: var(--card-shadow);
}

.btn:hover {
    background-color: #068d5d;
    transform: translateY(-2px);
    box-shadow: var(--card-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn-disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-disabled:hover {
    background-color: var(--text-light);
    transform: none;
    box-shadow: none;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-icon {
    font-size: 22px;
    color: var(--text-light);
}

.nav-name {
    font-size: var(--base-font-size);
    color: var(--text-light);
}

.nav-item.active .nav-icon,
.nav-item.active .nav-name {
    color: var(--primary);
}

/* 占位元素，避免内容被底部导航遮挡 */
.bottom-spacer {
    height: 60px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
}