/* 虚拟健康官网 - 统一样式表 */

/* CSS变量 - 颜色系统 */
:root {
    --primary-color: #00B42A;
    --primary-dark: #009624;
    --secondary-color: #52C41A;
    --text-dark: #1D2129;
    --text-gray: #4E5969;
    --bg-light: #F7F8FA;
    --border-color: #E5E6EB;
    --white: #FFFFFF;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 链接 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* ========== 导航栏 ========== */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Logo */
.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* 导航链接 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
}

.mobile-menu a {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu.active {
    display: flex;
}

/* ========== 页脚 ========== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.75;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    opacity: 0.75;
}

.footer-section a {
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
}

/* ========== 通用组件 ========== */

/* 标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 42, 0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 卡片 */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* ========== 响应式设计 ========== */

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 0;
    }

    .hero h1 {
        font-size: 40px !important;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
