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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

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

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
}

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

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #1e88e5;
}

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

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e88e5;
}

.logo-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: -4px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 首页部分样式 */
.hero-section {
    background: linear-gradient(135deg, #1e88e5 0%, #3949ab 100%);
    color: #fff;
    padding: 200px 0 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.intro-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #1e88e5;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1e88e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #1e88e5;
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: #1e88e5;
    margin: 0 auto;
    border-radius: 2px;
}

/* 医生简介部分样式 */
.about-section {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-info {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.doctor-details h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.doctor-details p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.doctor-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    font-size: 32px;
    color: #1e88e5;
    margin-bottom: 15px;
}

.highlight-item span {
    font-weight: 500;
    color: #333;
}

/* 擅长领域部分样式 */
.specialties-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.specialty-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.specialty-card i {
    font-size: 48px;
    color: #1e88e5;
    margin-bottom: 20px;
}

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

.specialty-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 诊疗范围部分样式 */
.services-section {
    padding: 100px 0;
    background-color: #fff;
}

.services-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-content > p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.neuro-info h3,
.diagnostic-methods h3 {
    font-size: 24px;
    color: #1e88e5;
    margin-bottom: 20px;
}

.neuro-info ul {
    list-style: none;
    margin-bottom: 40px;
}

.neuro-info li {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.neuro-info li i {
    color: #4caf50;
    margin-right: 10px;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.method-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.method-item i {
    font-size: 32px;
    color: #1e88e5;
    margin-bottom: 10px;
}

.method-item span {
    font-weight: 500;
    color: #333;
}

/* 医院介绍部分样式 */
.hospital-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.hospital-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hospital-info h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.hospital-info p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.hospital-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 180px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 36px;
    color: #1e88e5;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    color: #333;
}

/* 预约挂号部分样式 */
.appointment-section {
    padding: 100px 0;
    background-color: #fff;
}

.appointment-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.clinic-info,
.appointment-guide {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.clinic-info h3,
.appointment-guide h3 {
    font-size: 24px;
    color: #1e88e5;
    margin-bottom: 20px;
}

.schedule {
    margin-top: 20px;
}

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

.schedule-item i {
    font-size: 24px;
    color: #1e88e5;
    margin-right: 15px;
    min-width: 30px;
}

.schedule-item span {
    font-size: 16px;
    color: #333;
}

.appointment-guide p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.step-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    transition: transform 0.3s ease;
}

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

.step-number {
    background-color: #1e88e5;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
}

.step-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* 联系我们部分样式 */
.contact-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 28px;
    color: #1e88e5;
    margin-right: 20px;
    min-width: 35px;
}

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

.contact-item p {
    font-size: 16px;
    color: #555;
}

.location-map {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background-color: #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.map-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 医学科普部分样式 */
.education-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-icon {
    width: 80px;
    height: 80px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.article-icon i {
    font-size: 32px;
    color: #1e88e5;
}

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

.article-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.article-meta span {
    color: #888;
    font-size: 14px;
}

.read-more {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1976d2;
    text-decoration: underline;
}

.health-tips {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.health-tips h3 {
    font-size: 24px;
    color: #1e88e5;
    margin-bottom: 30px;
    text-align: center;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.tip-item i {
    font-size: 24px;
    color: #4caf50;
    margin-right: 15px;
    min-width: 30px;
}

.tip-item p {
    color: #555;
    font-size: 16px;
    margin: 0;
}

/* 移除患者评价相关样式 */

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: modalOpen 0.5s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

#modal-article-content h2 {
    font-size: 28px;
    color: #1e88e5;
    margin-bottom: 15px;
}

.article-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h3 {
    font-size: 22px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 30px;
}

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

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e88e5;
}

.footer-info p {
    color: #ccc;
    font-size: 16px;
}

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

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

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

.footer-links a:hover {
    color: #1e88e5;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1e88e5;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1976d2;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .highlight-item {
        width: 140px;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-item {
        width: 200px;
    }
    
    .hospital-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 250px;
    }
    
    .guide-steps {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .intro-text {
        font-size: 14px;
    }
    
    .doctor-details h3 {
        font-size: 24px;
    }
    
    .doctor-details p {
        font-size: 16px;
    }
    
    .specialty-card i {
        font-size: 40px;
    }
    
    .specialty-card h3 {
        font-size: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

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

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}