/* ===== 基础重置 ===== */
body {
    margin: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #2c3e50;
    background: #fff;
}

.breadcrumb {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 15px;
    font-size: .9rem;
    color: #7a8a9e;
}

.breadcrumb a {
    color: #1a5e9c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}

.experts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-heading {
    text-align: center;
    margin: 24px 0 30px;
}

.page-heading h1 {
    font-size: 2.4rem;
    color: #1a3f66;
    margin: 0 0 10px;
}

.page-heading p {
    font-size: 1.05rem;
    color: #5b7a9a;
    margin: 0;
}

/* ===== 顶部科室导航 ===== */
.dept-top-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e6eef8;
    padding: 12px 0;
    margin-bottom: 24px;
}

.dept-top-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.dept-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    background: #f4f8fd;
    color: #1a5e9c;
    text-decoration: none;
    font-size: .92rem;
    border: 1px solid #dce8f5;
    transition: .2s;
    white-space: nowrap;
}

.dept-item:hover {
    background: #eaf2fc;
}

.dept-item.active {
    background: #1a5e9c;
    color: #fff;
    border-color: #1a5e9c;
    font-weight: 600;
}

.dept-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eaf2fc;
    color: #1a5e9c;
    font-size: .72rem;
    font-weight: 600;
}

.dept-item:hover .dept-index {
    background: #1a5e9c;
    color: #fff;
}

.dept-item.active .dept-index {
    background: #fff;
    color: #1a5e9c;
}

/* ========================================================= */
/* ===== 以下为全新独立命名的类，彻底避免重名干扰 ===== */
/* ========================================================= */

/* 左右双栏主容器 */
.ex-main-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* 左侧主内容 */
.ex-content-left {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    /* 避免受全局样式影响 */
    background: transparent;
    border: none;
    padding: 0;
}

/* 右侧边栏 */
.ex-content-right {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
}

/* 左侧内容包裹层 */
.ex-doctor-wrapper {
    width: 100%;
    scroll-margin-top: 90px;
    padding: 0;
    background: transparent;
}

/* 医生列表：单列拉长 */
.ex-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* 宽大舒展的医生卡片 */
.ex-doctor-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    border: 1px solid #eaf0f8;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(26, 94, 156, 0.05);
    transition: all 0.3s ease;
}

.ex-doctor-row:hover {
    box-shadow: 0 12px 30px rgba(26, 94, 156, 0.1);
    transform: translateY(-3px);
}

/* 头像 */
.ex-doctor-photo {
    flex: 0 0 130px;
    width: 130px;
    margin-top: 5px;
}

.ex-doctor-photo img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f4f9ff;
    background: #eef4fb;
    display: block;
}

/* 信息区 */
.ex-doctor-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 姓名与职称 */
.ex-doctor-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.ex-doctor-head h3 {
    font-size: 1.6rem;
    color: #1a3b5e;
    margin: 0;
    font-weight: bold;
}

.ex-doctor-title {
    font-size: 1.05rem;
    color: #1a5e9c;
    font-weight: 500;
}

/* 科室 */
.ex-doctor-dept {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.ex-doctor-dept .label {
    color: #1a3f66;
    font-weight: 600;
}

/* 简介 */
.ex-doctor-intro-wrap {
    margin-bottom: 20px;
    width: 100%;
}

.ex-doctor-intro {
    font-size: 1rem;
    color: #5f748b;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ex-doctor-intro-wrap.expanded .ex-doctor-intro {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* 展开按钮 */
.ex-intro-toggle {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #1a5e9c;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.ex-intro-toggle:hover {
    text-decoration: underline;
}

/* 预约按钮 */
.ex-doctor-btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    background: #0072bc;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.ex-doctor-btn:hover {
    background: #005a96;
}

/* 空状态与底部 */
.ex-empty-tip {
    text-align: center;
    color: #93a2b3;
    padding: 20px 0;
    width: 100%;
}

.footer-note {
    text-align: center;
    margin: 50px 0 20px;
    color: #7f8c9b;
    font-size: .95rem;
}

.footer-note .addr {
    font-size: .85rem;
    color: #99aab9;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .ex-main-container {
        flex-direction: column;
    }

    .ex-content-left, .ex-content-right {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-heading h1 {
        font-size: 1.8rem;
    }

    .dept-top-inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .dept-item {
        flex: 0 0 auto;
    }

    .ex-doctor-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .ex-doctor-photo {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .ex-doctor-head {
        justify-content: center;
    }

    .ex-doctor-dept, .ex-doctor-intro {
        text-align: left;
    }

    .ex-doctor-btn {
        align-self: center;
    }
}