/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* 顶部登录入口栏样式 */
.top-bar {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* 添加入口链接样式 2024-12-31 */
.login-links {
    float: left;
    font-size: 0.9rem;
    color: #666;
}

.login-links a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #2c7a7b;
    text-decoration: none;
}

/* 添加投诉建议和联系电话样式 2025-12-31 */
.top-right-info {
    float: right;
    font-size: 0.9rem;
    color: #666;
}

.top-right-info a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-right-info a:hover {
    color: #2c7a7b;
    text-decoration: none;
}

/* 头部导航样式 */
.header {
    background-color: #7a1c1c;
    color: #fff;
    padding: 0.8rem 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    /* 微信浏览器兼容性优化 */
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* 汉堡菜单点击动画 */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo img {
    height: 50px;
    float: left;
    margin: 0;
    vertical-align: middle;
}

.logo-text-container {
    float: left;
    margin-left: 10px;
}

.logo-text {
    display: block;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.logo-pinyin {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    font-weight: normal;
    margin: 0;
    opacity: 0.9;
}

.nav {
    float: right;
    height: 100%;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav ul li {
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
}

.nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s ease;
    padding: 0.8rem 1.5rem;
    display: block;
    height: 100%;
    text-align: center;
}

.nav-chinese {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.nav-english {
    display: block;
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.nav ul li a:hover {
    background-color: #5c1515;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #2c7a7b;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #285e61;
}

/* 轮播下方图片样式 */
.banner-bottom-image {
    width: 100%;
    overflow: hidden;
}

.banner-bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 简介样式 */
.intro {
    padding: 4rem 0;
    background-color: #fff;
}

.intro .container {
    width: 100%;
    padding: 0 1rem;
}

.intro h3 {
    text-align: left;
    color: #00469c;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0 0.8rem 2.5rem;
    border-bottom: 2px solid #00469c;
    font-weight: bold;
    display: block;
    position: relative;
}

.intro h3::before {
    content: '\f0f0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #00469c;
}

.intro h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff6b6b;
}

/* 两栏布局 */
.intro-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.intro-left {
    width: 50%;
}

.intro-content {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    color: #333;
    background-color: #fff;
    height: 100%;
}

.intro-right {
    width: 50%;
}

/* 医馆资讯样式 */
.news-section {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    height: 100%;
}

.news-section h4 {
    text-align: left;
    color: #00469c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0 0.8rem 2.5rem;
    border-bottom: 2px solid #00469c;
    font-weight: bold;
    display: block;
    position: relative;
}

.news-section h4::before {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #00469c;
}

.news-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b6b;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
    margin-right: 1rem;
}

.news-item a:hover {
    color: #2c7a7b;
    text-decoration: underline;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 特色优势样式 */
.features {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.features h3 {
    text-align: center;
    color: #2c7a7b;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.features h3::before {
    content: '\f085';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #2c7a7b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    color: #2c7a7b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 关于我们样式 */
.about {
    padding: 4rem 0;
    background-color: #fff;
}

.about .container {
    width: 100%;
    padding: 0 1rem;
}

.about h3 {
    text-align: center;
    color: #2c7a7b;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about h3::before {
    content: '\f0c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #2c7a7b;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-history {
    margin-top: 3rem;
}

.about-history h4 {
    color: #2c7a7b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 专家团队样式 */
.experts {
    padding: 4rem 0;
    background-color: #fff;
}

.experts .container {
    width: 95%;
}

.experts h3 {
    text-align: center;
    color: #2c7a7b;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.experts h3::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #2c7a7b;
}

.experts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.expert-item {
    background-color: #f8f9fa;
    width: 200px;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.expert-item:hover {
    border-color: #2c7a7b;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.2);
    transform: translateY(-5px);
}

.expert-item.selected {
    border-color: #2c7a7b;
    background-color: #e6f4f1;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.3);
}

.expert-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.expert-item h4 {
    color: #2c7a7b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.expert-item .title {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* 特色服务样式 */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

.services h3 {
    text-align: center;
    color: #2c7a7b;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.services h3::before {
    content: '\f469';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #2c7a7b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    color: #2c7a7b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 联系我们样式 */
.contact {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact h3 {
    text-align: center;
    color: #2c7a7b;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact h3::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #2c7a7b;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h4 {
    color: #2c7a7b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Microsoft YaHei', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #2c7a7b;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #285e61;
}

/*  footer样式 */
.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h4 {
    color: #4fd1c7;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-about p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #b0b0b0;
}

/* 社交媒体图标样式 */
.footer-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #4fd1c7;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #4fd1c7;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 209, 199, 0.3);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    color: #b0b0b0;
}

.footer-contact p i {
    margin-right: 0.8rem;
    color: #4fd1c7;
    width: 16px;
    text-align: center;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
}

.footer-links ul li::before {
    content: '•';
    color: #4fd1c7;
    position: absolute;
    left: 0;
}

.footer-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #4fd1c7;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.qrcode-item {
    text-align: center;
}

.qrcode-img {
    border: 2px solid #333;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.qrcode-img img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.qrcode-item p {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 底部导航样式 */
.footer-nav {
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #4fd1c7;
    text-decoration: none;
}

.footer-nav span {
    color: #444;
}

.copyright {
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.85rem;
}

.icp-record {
    color: #666;
    font-size: 0.8rem;
}

/* 添加备案号链接样式 */
.footer-bottom a {
    color: #4fd1c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #2c7a7b;
    text-decoration: underline;
}

/* 自定义模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    /* 显示汉堡菜单 */
    .menu-toggle {
        display: flex;
    }
    
    /* 使用flex布局让logo图片和文字在手机版中并排显示 */
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .logo img {
        float: none;
        display: block;
        margin: 0;
        margin-right: 0.5rem;
        height: 35px; /* 缩小logo图片高度 */
    }
    
    .logo-text-container {
        float: none;
        text-align: left;
        margin-left: 0;
        margin-bottom: 0;
    }
    
    .logo-text {
        display: block;
        text-align: left;
        margin: 0;
        line-height: normal;
        font-size: 1.2rem; /* 缩小标题文字大小 */
    }
    
    .logo-pinyin {
        display: block;
        text-align: left;
        margin: 0;
        font-size: 0.6rem; /* 缩小拼音文字大小 */
    }
    
    /* 导航菜单响应式样式 */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #7a1c1c;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        padding-top: 3rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        /* 微信浏览器兼容性优化 */
        -webkit-transform: translateX(100%);
        -webkit-transition: transform 0.3s ease;
        -moz-transform: translateX(100%);
        -moz-transition: transform 0.3s ease;
        -ms-transform: translateX(100%);
        -ms-transition: transform 0.3s ease;
        /* 防止微信浏览器滑动穿透 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 显示导航菜单的类 */
    .nav.active {
        transform: translateX(0);
        /* 微信浏览器兼容性优化 */
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 0;
        height: 100%;
    }
    
    .nav ul li {
        display: block;
        margin-left: 0;
        margin-bottom: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        text-align: left;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }
    
    .nav ul li a:hover {
        background-color: #5c1515;
    }
    
    .banner {
        height: 60vh;
        background-size: cover;
        background-position: center;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .banner-content p {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    /* 优化简介部分 */
    .intro {
        padding: 2rem 0;
    }
    
    .intro-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* 优化特色优势部分 */
    .features {
        padding: 2rem 0;
    }
    
    .features h3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h4 {
        font-size: 1.2rem;
    }
    
    /* 优化标题样式 */
    .intro h3,
    .news-section h4 {
        font-size: 1.2rem;
        padding: 0.6rem 0 0.6rem 2rem;
    }
    
    .intro h3::before,
    .news-section h4::before {
        font-size: 1.2rem;
    }
    
    .features-grid, .services-grid, .contact-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* 医师团队轮播效果 */
    .experts-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* 隐藏WebKit滚动条 */
    .experts-grid::-webkit-scrollbar {
        display: none;
    }
    
    .expert-item {
        flex: 0 0 auto;
        width: 200px;
        box-sizing: border-box;
    }
    
    /* 手机版减小医师团队左右边距 */
    .experts .container {
        width: 98%;
    }
    
    .footer-section {
        padding: 0;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .qrcode-container {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-around;
    }
    
    .qrcode-img img {
        width: 60px;
        height: 60px;
    }
    
    .qrcode-item {
        margin-bottom: 0;
    }
    
    .qrcode-item p {
        font-size: 0.7rem;
    }

    /* 两栏布局响应式调整 */
    .intro-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .intro-left,
    .intro-right {
        width: 100%;
    }

    .news-section {
        padding: 1rem;
    }

    .modal-content {
        width: 80%;
    }
}