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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: #00a197;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #00a197;
}

.cta .btn {
    background-color: #00a197;
    color: white;
    padding: 10px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta .btn:hover {
    background-color: #40a9ff;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #00a197;
    border: 1px solid #00a197;
}

.btn-secondary:hover {
    background-color: #e6f7ff;
}

/* 英雄区域样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background-color: #e6f7ff;
    margin-top: 80px;
    text-align: center;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    margin-right: 40px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

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

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 服务简介样式 */
.services-intro {
    padding: 80px 20px;
    background-color: white;
}

.services-intro h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 服务详情网格布局 */
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-detail {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-detail h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00a197;
}

.service-detail p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.service-detail ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-detail li {
    margin-bottom: 10px;
    color: #666;
}

.service-image {
    margin: 20px 0;
    text-align: center;
}

.service-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 服务详情响应式布局 */
@media (max-width: 1200px) {
    .service-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
}

/* APP功能展示样式 */
.app-features {
    padding: 80px 20px;
    background-color: #f5f7fa;
}

.app-features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

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

.feature-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

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

/* 下载区域样式 */
.download-section {
    padding: 80px 20px;
    background-color: #00a197;
    color: white;
    text-align: center;
}

.download-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.download-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #00a197;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-icon {
    font-size: 32px;
}

.app-text small {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.app-text strong {
    font-size: 18px;
}

/* 服务页面样式 */
.services-page {
    padding: 120px 20px 80px;
    background-color: white;
}

.services-page h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.service-detail {
    margin-bottom: 60px;
}

.service-detail h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
    background-color: #00a197;
    padding: 15px 20px;
    border-radius: 5px;
    display: block;
}

.service-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 30px;
    background-color: white;
}

.service-image {
    flex: 0 0 300px;
    margin: 0;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-text {
    flex: 1;
}

.service-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.service-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-text li {
    margin-bottom: 10px;
    color: #666;
}

/* 医生团队图片展示样式 */
.doctor-gallery {
    margin-top: 60px;
}

.doctor-gallery h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
    background-color: #00a197;
    padding: 15px 20px;
    border-radius: 5px;
    display: block;
}

.doctor-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.doctor-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.doctor-images img:hover {
    transform: scale(1.05);
}

/* 图片查看器模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: 10% auto;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-content {
        flex-direction: column;
    }
    
    .service-image {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .service-image img {
        max-width: 100%;
    }
    
    .doctor-images {
        gap: 10px;
    }
    
    .doctor-images img {
        width: 150px;
        height: 150px;
    }
}

/* 联系页面样式 */
.contact-page {
    padding: 120px 20px 80px;
    background-color: white;
}

.contact-page h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.contact-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00a197;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 20px;
    color: #00a197;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00a197;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a197;
    box-shadow: 0 0 0 2px rgba(0, 161, 151, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 20px;
}

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

.footer-info {
    flex: 1;
    min-width: 300px;
}

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

.footer-info p {
    opacity: 0.8;
}

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

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

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        margin: 10px 0;
    }

    .nav-links li {
        margin: 0 10px;
    }

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

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

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

    .hero-image {
        max-width: 100%;
    }

    .services-intro h2,
    .app-features h2,
    .download-section h2 {
        font-size: 28px;
    }

    .service-cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .app-btn {
        max-width: 200px;
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-page h2,
    .contact-page h2 {
        font-size: 28px;
    }

    .service-detail h3 {
        font-size: 24px;
    }
}