/* ============================================================
   counselor_detail.css - 咨询师详情页
   品牌色：#f96c9f / #d9658d
   ============================================================ */

/* ========== Hero Banner 背景 ========== */
.cd-hero {
    height: 520px;
    position: relative;
    overflow: hidden;
}
/* Hero 文字内容（居中显示） */
.cd-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 20px;
}
.cd-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.cd-hero-title {
    font-size: 16px;
    opacity: 0.88;
    letter-spacing: 4px;
    margin-bottom: 16px;
}
.cd-hero-tagline {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* 首席 首席咨询师 - 深紫粉渐变 */
.cd-hero-level-4,
.cd-hero-level-chief {
    background: linear-gradient(135deg, #1a0a2e 0%, #4a1258 50%, #8c2973 100%);
}
/* 3 专家咨询师 - 深蓝紫渐变 */
.cd-hero-level-3,
.cd-hero-level-expert {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #2c3e50 100%);
}
/* 2 资深咨询师 - 深绿粉渐变 */
.cd-hero-level-2,
.cd-hero-level-senior {
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a3e 50%, #3e6b55 100%);
}
/* 1 中级咨询师 - 深蓝渐变 */
.cd-hero-level-1,
.cd-hero-level-intermediate {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #2a5a8c 100%);
}
/* 0 实习咨询师 - 深灰渐变 */
.cd-hero-level-0,
.cd-hero-level-intern {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 50%, #666 100%);
}

/* Hero 装饰光晕 */
.cd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(249,108,159,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}
.cd-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.10);
}

/* ========== 资料卡（悬浮于Hero底部） ========== */
.cd-profile-wrapper {
    position: relative;
    margin-top: -140px;
    z-index: 10;
    padding-bottom: 48px;
}
.cd-profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.10);
    padding: 40px 48px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    position: relative;
}

/* 左侧头像列 */
.cd-avatar-col {
    position: relative;
    flex-shrink: 0;
}
.cd-avatar {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    box-shadow: 0 8px 32px rgba(249,108,159,0.15);
}
.cd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cd-level-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* 等级标签色 - 对应 level 数字 */
.cd-level-4, .cd-level-chief { background: linear-gradient(135deg, #f96c9f, #e85a8e); }
.cd-level-3, .cd-level-expert { background: linear-gradient(135deg, #ff8a65, #f4511e); }
.cd-level-2, .cd-level-senior { background: linear-gradient(135deg, #81c784, #43a047); }
.cd-level-1, .cd-level-intermediate { background: linear-gradient(135deg, #64b5f6, #1e88e5); }
.cd-level-0, .cd-level-intern { background: linear-gradient(135deg, #bdbdbd, #9e9e9e); }

/* 右侧信息列 */
.cd-info-col {
    flex: 1;
    min-width: 0;
}
.cd-info-main h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.cd-title {
    font-size: 15px;
    color: #f96c9f;
    font-weight: 500;
    margin-bottom: 12px;
}
.cd-brief {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 统计行 */
.cd-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}
.cd-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}
.cd-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff0f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cd-stat-icon i { color: #f96c9f; font-size: 14px; }
.cd-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}
.cd-stat-lbl { color: #999; font-size: 13px; }

/* 标签 */
.cd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cd-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    color: #f96c9f;
    background: #fff0f5;
    border-radius: 12px;
}

/* 操作按钮 */
.cd-actions {
    display: flex;
    gap: 14px;
}
.cd-btn-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #f96c9f, #e85a8e);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(249,108,159,0.35);
}
.cd-btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,108,159,0.45);
    color: #fff;
}
.cd-btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #f96c9f;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid #f96c9f;
    text-decoration: none;
    transition: all .3s;
}
.cd-btn-call:hover {
    background: #fff0f5;
    color: #f96c9f;
}

/* ========== 详情内容区 ========== */
.cd-detail {
    padding: 20px 0 60px;
    background: #fafafa;
}
.cd-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* 主内容 */
.cd-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.cd-block {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cd-block-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f5f5f5;
}
.cd-block-title i { color: #f96c9f; margin-right: 8px; }
.cd-block-body {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
}
.cd-block-body p { margin-bottom: 12px; }
.cd-block-body ul { padding-left: 20px; }
.cd-block-body li { margin-bottom: 8px; }

/* 资质列表 */
.cd-cert-list {
    list-style: none;
    padding: 0;
}
.cd-cert-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
    color: #555;
}
.cd-cert-list li:last-child { border-bottom: none; }
.cd-cert-list i { color: #81c784; margin-right: 8px; }

/* 资质照片 */
.cd-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.cd-photo-item {
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform .3s;
}
.cd-photo-item:hover { transform: scale(1.05); }
.cd-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 侧边栏 ========== */
.cd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

/* 预约卡片 */
.cd-booking-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
}
.cd-booking-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.cd-booking-card h3 i { color: #f96c9f; margin-right: 6px; }
.cd-booking-price { margin-bottom: 20px; }
.cd-price {
    font-size: 36px;
    font-weight: 700;
    color: #f96c9f;
}
.cd-unit {
    font-size: 14px;
    color: #999;
}
.cd-booking-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    text-align: left;
}
.cd-booking-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f8f8f8;
}
.cd-booking-features li:last-child { border-bottom: none; }
.cd-booking-features i { color: #81c784; margin-right: 8px; }
.cd-btn-booking {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #f96c9f, #e85a8e);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(249,108,159,0.35);
}
.cd-btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,108,159,0.45);
    color: #fff;
}

/* 评价卡片 */
.cd-reviews-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.cd-reviews-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
}
.cd-reviews-card h3 i { color: #f96c9f; margin-right: 6px; }
.cd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cd-review-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.cd-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.cd-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cd-review-name { font-size: 13px; color: #666; font-weight: 500; }
.cd-review-rating { color: #ffc107; font-size: 12px; }
.cd-review-rating .fas { margin-right: 2px; }
.cd-review-text {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}
.cd-no-reviews {
    text-align: center;
    color: #ccc;
    padding: 24px 0;
    font-size: 14px;
}

/* ========== 相关咨询师 ========== */
/* ========== 相关咨询师（卡片式） ========== */
.cd-related {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.cd-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.cd-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #f96c9f, #e85a8e);
    margin: 12px auto 0;
    border-radius: 2px;
}
.cd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cd-related-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
    border: 1px solid rgba(249,108,159,0.08);
}
.cd-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(249,108,159,0.15);
    border-color: rgba(249,108,159,0.25);
}
/* 卡片内链接 */
.cd-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* 头像区 */
.cd-avatar-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    position: relative;
}
.cd-avatar-wrap img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    transition: border-color .3s;
}
.cd-related-card:hover .cd-avatar-wrap img {
    border-color: #f96c9f;
}
/* 级别标签 */
.cd-level-tag {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    z-index: 2;
}
/* 姓名 */
.cd-related-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 4px;
}
/* 职称 */
.cd-card-subtitle {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-bottom: 10px;
}
/* 专长标签 */
.cd-specialty-tags {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.6;
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 悬停遮罩 */
.cd-card-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249,108,159,0.92), rgba(232,90,142,0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: 16px;
    z-index: 3;
}
.cd-related-card:hover .cd-card-hover {
    opacity: 1;
}
.cd-btn-view {
    display: inline-block;
    padding: 10px 28px;
    background: #fff;
    color: #f96c9f;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transform: scale(0.9);
    transition: all .25s;
}
.cd-btn-view:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1);
}

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
    .cd-detail-grid { grid-template-columns: 1fr 280px; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 991px) {
    .cd-hero { height: 400px; }
    .cd-hero-content h1 { font-size: 32px; }
    .cd-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 28px;
    }
    .cd-stats-row { justify-content: center; flex-wrap: wrap; }
    .cd-tags { justify-content: center; }
    .cd-actions { justify-content: center; }
    .cd-detail-grid { grid-template-columns: 1fr; }
    .cd-sidebar { position: static; }
}
@media (max-width: 767px) {
    .cd-hero { height: 320px; }
    .cd-hero-content h1 { font-size: 26px; }
    .cd-profile-wrapper { margin-top: -100px; }
    .cd-profile-card { padding: 24px 18px; }
    .cd-avatar { width: 140px; height: 140px; }
    .cd-avatar-col { width: 140px; }
    .cd-info-main h1 { font-size: 24px; }
    .cd-stat-val { font-size: 18px; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cd-avatar-wrap { width: 72px; height: 72px; }
    .cd-avatar-wrap img { width: 72px; height: 72px; }
    .cd-related-card { padding: 20px 14px; }
    .cd-block { padding: 20px; }
}
@media (max-width: 480px) {
    .cd-profile-card { padding: 20px 14px; }
    .cd-stats-row { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .cd-actions { flex-direction: column; align-items: center; }
    .cd-btn-book, .cd-btn-call { width: 100%; justify-content: center; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cd-avatar-wrap { width: 64px; height: 64px; }
    .cd-avatar-wrap img { width: 64px; height: 64px; }
    .cd-related-card { padding: 16px 12px; }
}
