/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --text-color: #333;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: backwards;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--white);
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: backwards;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

/* 卡片网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* 症状表现 */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.symptom-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.symptom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.symptom-phase {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.symptom-card ul {
    list-style: none;
}

.symptom-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.symptom-card li:last-child {
    border-bottom: none;
}

.symptom-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 饮食建议 */
.diet-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.diet-category {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.diet-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #eee;
}

.diet-category.avoid h3 {
    color: var(--danger-color);
    border-bottom-color: var(--danger-color);
}

.diet-category.recommend h3 {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.food-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.food-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.food-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.food-item.high {
    border-left: 5px solid #e74c3c;
}

.food-item.medium {
    border-left: 5px solid #f39c12;
}

.food-item.alcohol {
    border-left: 5px solid #c0392b;
}

.food-item.low {
    border-left: 5px solid #2ecc71;
}

.food-item.water {
    border-left: 5px solid #3498db;
}

.food-item.alkaline {
    border-left: 5px solid #1abc9c;
}

.food-item ul {
    list-style: none;
}

.food-item li {
    padding: 0.5rem 0;
    padding-left: 20px;
    position: relative;
}

.food-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.diet-category.avoid .food-item li::before {
    color: var(--danger-color);
}

.diet-category.recommend .food-item li::before {
    color: var(--secondary-color);
}

/* 预防措施 */
.prevention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prevention-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.prevention-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.prevention-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.prevention-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.prevention-card ul {
    list-style: none;
    text-align: left;
}

.prevention-card li {
    padding: 0.6rem 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.prevention-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 治疗方法 */
.treatment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.treatment-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.treatment-card h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.treatment-content {
    padding: 2rem;
}

.treatment-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.treatment-content ul {
    list-style: none;
}

.treatment-content > ul > li {
    margin-bottom: 1rem;
    padding-left: 25px;
    position: relative;
}

.treatment-content > ul > li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.treatment-content ul ul {
    margin-top: 0.5rem;
    margin-left: 20px;
}

.treatment-content ul ul li {
    padding-left: 20px;
    color: #666;
    font-size: 0.95rem;
}

.treatment-content ul ul li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: #999;
}

.warning-box {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.warning-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.warning-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 公众号引流区域 */
.wechat-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.wechat-section .section-title {
    color: var(--white);
}

.wechat-section .section-title::after {
    background: var(--white);
}

.wechat-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.wechat-content {
    text-align: left;
}

.wechat-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.wechat-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.wechat-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.wechat-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: bold;
}

.qrcode-wrapper {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
}

.qrcode-tip {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.qrcode-id {
    color: #666;
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-main p {
    margin: 0.5rem 0;
}

.copyright {
    font-size: 1rem;
}

.disclaimer {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-icp {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-icp a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-icp a:hover {
    color: var(--white);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-grid,
    .symptoms-grid,
    .prevention-grid,
    .treatment-container {
        grid-template-columns: 1fr;
    }

    .diet-container {
        grid-template-columns: 1fr;
    }

    .card,
    .symptom-card,
    .prevention-card {
        padding: 1.5rem;
    }

    /* 公众号区域响应式 */
    .wechat-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .wechat-content {
        text-align: center;
    }

    .wechat-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
