.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #B0814F;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.modal-body {
    padding: 20px 0;
    white-space: pre-line;
}

/* 公司介绍样式 */
.company-intro-section {
    padding: 20px 0;
    background-color: rgba(249,245,240,0.1);
    position: relative;
}

.company-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.company-intro-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #B0814F;
}

.company-intro-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.company-intro-content p:last-child {
    margin-bottom: 0;
}

/* 特色服务样式 */
.services-section {
    padding: 60px 0;
    background-color: #f8f5f0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 5px solid #B0814F;
    padding: 12px 10px 18px;
    max-width: 260px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-icon {
    background-color: #B0814F;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: -35px auto 15px;
    box-shadow: 0 5px 15px rgba(176, 129, 79, 0.3);
    position: relative;
    z-index: 1;
}

.service-content {
    padding: 20px 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.service-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.service-features li i {
    color: #B0814F;
    margin-right: 10px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-card {
        max-width: 400px;
        margin: 0 auto;
        padding: 20px 15px 25px;
    }
    .company-intro-content {
        padding: 15px;
    }
    .company-intro-content p {
        font-size: 15px;
    }
}

/* 中医诊疗内容 */
#diagnosis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 特色疗法内容 */
#therapy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 医生简介弹窗样式 */
.doctor-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.doctor-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.doctor-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    right: 20px;
    top: 15px;
}

.doctor-modal-close:hover {
    color: #333;
}

.doctor-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #868686;
}

.doctor-modal-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #B0814F;
}

.doctor-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-modal-body {
    padding: 0;
    overflow-y: auto;
}

.doctor-modal-section {
    margin-bottom: 20px;
}

.doctor-modal-section-title {
    font-size: 18px;
    color: #000000;
    margin-bottom: 15px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.doctor-modal-info-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    white-space: pre-line;
    text-align: justify;
}

.doctor-modal-name {
    font-size: 22px;
    color: #333;
    margin: 10px 0 5px;
    font-weight: 600;
}

.doctor-modal-title {
    font-size: 12px;
    color: #B0814F;
    margin: 0 0 10px;
}