/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff4757;
}

ul {
    list-style: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff4757;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #ff6b6b;
    color: #fff;
}

/* 主横幅 */
.banner {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色服务模块 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2rem;
    position: relative;
}

.features h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 20px 10px;
    color: #333;
    font-size: 1.2rem;
}

.card p {
    padding: 0 20px 20px;
    color: #666;
}

/* 健康知识模块 */
.knowledge {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.knowledge h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2rem;
    position: relative;
}

.knowledge h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

article {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

article img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

article .content {
    padding: 20px;
    flex: 1;
}

article h3 {
    margin-bottom: 15px;
    color: #333;
}

article p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.read-more:hover {
    background-color: #ff4757;
    color: #fff;
}

/* 产品推荐模块 */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2rem;
    position: relative;
}

.products h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 20px 10px;
    color: #333;
}

.product-card p {
    padding: 0 20px 15px;
    color: #666;
}

.product-card .rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.product-card .btn {
    margin: 0 20px;
}

/* 常见问题模块 */
.faq {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2rem;
    position: relative;
}

.faq h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
}

/* APP下载模块 */
.app-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff8e8e, #ff6b6b);
    color: #fff;
}

.app-download h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
}

.app-download h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #fff;
    margin: 15px auto 0;
}

.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.app-qrcode {
    text-align: center;
}

.app-qrcode img {
    width: 200px;
    height: 200px;
    border: 5px solid #fff;
    border-radius: 10px;
}

.app-features {
    max-width: 400px;
}

.app-features h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.app-features ul {
    margin-bottom: 30px;
}

.app-features ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.app-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
}

.download-btns {
    display: flex;
    gap: 15px;
}

.download-btns .btn {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #ff6b6b;
}

.download-btns .btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.download-btns .btn:hover {
    background-color: #f8f8f8;
    color: #ff4757;
}

/* 用户评价模块 */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2rem;
    position: relative;
}

.testimonials h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #ff6b6b;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: #333;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-logo svg {
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-logo p {
    color: #ccc;
    max-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
    margin-top: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: #ff6b6b;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.copyright {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.copyright p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.friend-links {
    flex: 1;
    min-width: 300px;
}

.friend-links h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul li, .friend-links ul a {
    margin-right: 15px;
    margin-bottom: 10px;
    color: #999;
    font-size: 0.9rem;
}

.friend-links ul li a:hover, .friend-links ul a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    article {
        flex-direction: column;
    }
    
    article img {
        width: 100%;
        height: 250px;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .app-features ul li {
        text-align: left;
    }
    
    .download-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .features, .knowledge, .products, .faq, .app-download, .testimonials {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .product-card, .testimonial-card, article {
    animation: fadeIn 0.6s ease-out forwards;
}

.card:nth-child(2), .product-card:nth-child(2), .testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3), .product-card:nth-child(3), .testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.card:nth-child(4), .product-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* 透明轮播背景 */
.banner {
    position: relative;
    background-color: #ff6b6b;
}

.banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,160L48,181.3C96,203,192,245,288,261.3C384,277,480,267,576,234.7C672,203,768,149,864,128C960,107,1056,117,1152,138.7C1248,160,1344,192,1392,208L1440,224L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}
