/* ==========================================
   名医团队页面 — team.css
   3列竖排卡片布局，图片完整展示
   ========================================== */

/* ===== 团队主区域 ===== */
.team-section {
    background: #f8fcfb;
    padding: 80px 0 100px;
    position: relative;
    z-index: 2;
}

/* 区块标题 */
.team-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.team-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.team-section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 3列卡片布局 ===== */
.team-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

/* ===== 单张医生卡片 — 竖排上图下文 ===== */
.doctor-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 179, 134, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 179, 134, 0.13);
    border-color: rgba(0, 179, 134, 0.2);
}

.doctor-card:hover::before {
    opacity: 1;
}

/* 医生照片区 — 完整展示人物 */
.doctor-card-img {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: linear-gradient(180deg, #e6f9f4 0%, #d4f0e6 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .doctor-card-img img {
    transform: scale(1.04);
}

/* 职称角标 */
.doctor-title-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.badge-chief-dr {
    background: linear-gradient(135deg, rgba(230, 168, 23, 0.9), rgba(255, 200, 50, 0.9));
    color: #6b3d00;
}

.badge-deputy-dr {
    background: linear-gradient(135deg, rgba(0, 143, 107, 0.9), rgba(0, 179, 134, 0.9));
    color: #ffffff;
}

.badge-attending-dr {
    background: linear-gradient(135deg, rgba(44, 111, 187, 0.9), rgba(66, 153, 225, 0.9));
    color: #ffffff;
}

/* 预约状态小标签 */
.doctor-avail {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.doctor-avail.online {
    background: rgba(0, 60, 40, 0.7);
    color: #00d9a3;
}

.doctor-avail.offline {
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255,255,255,0.75);
}

.avail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.doctor-avail.online .avail-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* 医生信息区 */
.doctor-card-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doctor-card-name {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.doctor-card-dept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 14px;
}

.doctor-card-dept::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.7;
}

/* 成就标签 */
.doctor-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.achieve-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    background: var(--primary-lightest);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 179, 134, 0.15);
}

.achieve-tag::before {
    content: '✦';
    font-size: 9px;
    color: var(--primary-color);
}

.doctor-card-skill {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-card-skill strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 出诊时间 */
.doctor-card-schedule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding: 9px 12px;
    background: #f5faf8;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.schedule-cal-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 操作按钮组 */
.doctor-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn-appoint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-appoint-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 179, 134, 0.2);
}

.btn-appoint-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 134, 0.35);
    color: #ffffff;
}

.btn-appoint-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid rgba(0, 179, 134, 0.3);
}

.btn-appoint-outline:hover {
    background: rgba(0, 179, 134, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* ===== 专家预约 CTA ===== */
.team-cta {
    background: linear-gradient(135deg, #004d3a 0%, #007a5e 60%, #00b386 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.team-cta h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    z-index: 3;
}

.team-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    position: relative;
    z-index: 3;
}

.team-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #004d3a;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-decoration: none;
}

.cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.18);
    color: #007a5e;
}

.cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.9);
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.cta-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .team-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    /* 第三张卡占满两列居中 */
    .team-layout > .doctor-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 56px 0 72px;
    }
    .team-section-header {
        margin-bottom: 40px;
    }
    .team-section-header h2 {
        font-size: 26px;
    }
    .team-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .team-layout > .doctor-card:nth-child(3) {
        max-width: none;
        justify-self: auto;
    }
    .doctor-card-img {
        height: 300px;
    }
    .doctor-card-body {
        padding: 20px 18px 22px;
    }
    .doctor-card-name {
        font-size: 19px;
    }
    .doctor-card-skill {
        -webkit-line-clamp: 4;
    }
    .team-cta {
        padding: 56px 0;
    }
    .team-cta h2 {
        font-size: 26px;
    }
    .team-cta-btns {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn-white,
    .cta-btn-ghost {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .doctor-card-img {
        height: 260px;
    }
    .doctor-card-actions {
        grid-template-columns: 1fr;
    }
    .btn-appoint {
        padding: 10px 0;
    }
}
