/* ==========================================
   专家详情页 — doctor-detail.css
   布局：顶部居中照片 → 下方信息卡片 → 二维码预约
   ========================================== */

/* ===== Hero 区域缩小（仅面包屑） ===== */
.doctor-hero {
    padding-top: 60px;
    padding-bottom: 30px;
    min-height: auto;
}

.doctor-hero .page-hero-inner {
    max-width: 100%;
    text-align: left;
}

/* ===== 照片区域：顶部居中展示，不随滚动 ===== */
.doctor-photo-section {
    background: linear-gradient(180deg, #f0faf6 0%, #f8fcfb 100%);
    padding: 48px 0 60px;
    text-align: center;
}

.doctor-photo-container {
    display: inline-block;
    position: relative;
}

.doctor-photo-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 179, 134, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 179, 134, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #e8faf5, #d4f0e6);
}

.doctor-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 179, 134, 0.08);
    color: #00a87a;
    border: 1px solid rgba(0, 179, 134, 0.15);
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    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.4); }
}

/* ===== 信息卡片区域 ===== */
.doctor-overview {
    background: #f8fcfb;
    padding: 0 0 80px;
    position: relative;
    z-index: 2;
    margin-top: -24px;
}

.doctor-info-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 179, 134, 0.08);
    overflow: hidden;
}

.doctor-info-card-inner {
    padding: 48px 52px;
}

/* -- 头部信息 -- */
.info-card-header {
    text-align: center;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 179, 134, 0.1);
}

.detail-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.badge-chief-dr {
    background: linear-gradient(135deg, rgba(230, 168, 23, 0.9), rgba(255, 200, 50, 0.9));
    color: #6b3d00;
}

.detail-doctor-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.detail-doctor-dept {
    font-size: 17px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 20px;
}

/* 成就标签 */
.detail-achievements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.achieve-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 14px;
    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: 10px;
    color: var(--primary-color);
}

/* -- 内容区块 -- */
.detail-skill-section,
.detail-intro-section {
    margin-bottom: 28px;
}

.detail-skill-section:last-child,
.detail-intro-section:last-child {
    margin-bottom: 0;
}

.detail-skill-section h3,
.detail-intro-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 179, 134, 0.08);
}

.detail-skill-section h3 svg,
.detail-intro-section h3 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-skill-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

.detail-intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

.detail-intro-text p {
    margin: 0 0 10px;
}

.detail-intro-text p:last-child {
    margin-bottom: 0;
}

/* 出诊时间 */
.detail-schedule-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    background: #f5faf8;
    border-radius: 16px;
    border: 1px solid rgba(0, 179, 134, 0.06);
    margin-top: 4px;
}

.detail-schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.schedule-cal-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.schedule-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 72px;
}

.schedule-value {
    color: var(--text-secondary);
}

/* ===== 二维码预约区块 ===== */
.doctor-qr-section {
    background: #f8fcfb;
    padding: 0 0 0;
    position: relative;
    z-index: 2;
}

.doctor-qr-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #004d3a 0%, #007a5e 50%, #00b386 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 77, 58, 0.2);
    position: relative;
}

.doctor-qr-card::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: 40px 40px;
    pointer-events: none;
}

.qr-card-left {
    flex: 1;
    padding: 48px 44px;
    position: relative;
    z-index: 2;
}

.qr-card-left h2 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.qr-card-left p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0 0 24px;
}

.qr-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.qr-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.qr-feature-item svg {
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.qr-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.qr-phone-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

.qr-card-right {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.06);
    border-left: 1px solid rgba(255,255,255,0.08);
}

.qr-code-frame {
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.qr-code-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 8px;
}

.qr-code-placeholder svg {
    color: var(--primary-color);
    opacity: 0.6;
}

.qr-code-placeholder p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.qr-scan-tip {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* 返回团队按钮 */
.back-team-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 179, 134, 0.1);
    border: 1.5px solid rgba(0, 179, 134, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-team-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 179, 134, 0.2);
    border-color: rgba(0, 179, 134, 0.3);
    color: var(--primary-dark);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .doctor-info-card-inner {
        padding: 40px 36px;
    }

    .qr-card-left {
        padding: 40px 32px;
    }
    .qr-card-left h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .doctor-hero {
        padding-top: 48px;
        padding-bottom: 20px;
    }

    .doctor-photo-section {
        padding: 32px 0 48px;
    }

    .doctor-photo-frame {
        width: 160px;
        height: 160px;
    }

    .doctor-overview {
        padding: 0 0 56px;
    }

    .doctor-info-card {
        border-radius: 20px;
    }

    .doctor-info-card-inner {
        padding: 32px 24px;
    }

    .detail-doctor-name {
        font-size: 26px;
    }

    .detail-doctor-dept {
        font-size: 16px;
    }

    .detail-skill-section h3,
    .detail-intro-section h3 {
        font-size: 17px;
    }

    .detail-skill-text,
    .detail-intro-text {
        font-size: 15px;
    }

    /* 二维码区块 */
    .doctor-qr-card {
        flex-direction: column;
        border-radius: 20px;
    }

    .qr-card-left {
        padding: 32px 24px 24px;
    }

    .qr-card-left h2 {
        font-size: 21px;
        text-align: center;
    }

    .qr-card-left p {
        text-align: center;
        font-size: 15px;
    }

    .qr-features {
        align-items: center;
    }

    .qr-phone-btn {
        width: 100%;
        justify-content: center;
    }

    .qr-card-right {
        width: 100%;
        flex-direction: row;
        gap: 16px;
        padding: 24px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .qr-code-frame {
        width: 120px;
        height: 120px;
        border-radius: 14px;
        padding: 10px;
    }

    .qr-scan-tip {
        margin-top: 0;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .doctor-photo-frame {
        width: 140px;
        height: 140px;
    }

    .detail-doctor-name {
        font-size: 24px;
    }

    .doctor-info-card-inner {
        padding: 28px 20px;
    }

    .detail-schedule-section {
        padding: 16px 18px;
    }

    .detail-schedule-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .qr-card-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qr-scan-tip {
        text-align: center;
    }
}
