/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-logo img {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 150px;
    margin-right: 10px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #d32f2f;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero-content p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.btn-secondary:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

/* 章节标题 */
.section-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #d32f2f;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.feature-item i {
    color: #d32f2f;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* 产品中心 */
.products {
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    min-height: 200px;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d32f2f;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-specs span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #d32f2f;
}

.product-features ul {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: '✓';
    color: #4caf50;
    position: absolute;
    left: 0;
}

/* 适用症状 */
.indications {
    padding: 100px 0;
    background: #f8f9fa;
}

.indications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.indication-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.indication-item:hover {
    transform: translateY(-5px);
}

.indication-item i {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.indication-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

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

/* 资质认证 */
.qualifications {
    padding: 100px 0;
}

.qualifications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.qualification-item {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.qualification-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qualification-icon {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.qualification-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

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



/* 证书图片样式 */
.certificates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    text-align: center;
}

.certificates img {
    max-width: 300px;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.certificates img:hover {
    transform: scale(1.05);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    color: #d32f2f;
    font-size: 1.2rem;
    width: 20px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 5px;
}

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

.contact-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
}

.form-group input.invalid {
    border-color: #f44336;
    background-color: #ffebee;
}

.form-group input.valid {
    border-color: #4caf50;
    background-color: #e8f5e8;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p,
.footer-section li {
    color: #ccc;
    margin-bottom: 10px;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d32f2f;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d32f2f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .qualifications-content {
        grid-template-columns: 1fr;
    }

    /* 移动端图片适配 */
    .hero-image img {
        max-height: 300px;
        margin: 0 auto;
    }

    .about-image img {
        max-height: 280px;
    }

    .product-image img {
        max-height: 220px;
    }

    .certificates {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .certificates img {
        max-width: 250px;
        max-height: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b71c1c;
}