.consultant-detail-main {
    background: #f5f8fa;
    padding-top: 80px;
}

/* 顶部详情区 */
.consultant-profile {
    background: linear-gradient(90deg, #0a2e5d 60%, #2a5caa 100%);
    color: #fff;
    padding: 40px 0 30px 0;
}

.profile-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-photo img {
    width: 260px;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    background: #fff;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.star {
    color: #ffb400;
    font-size: 18px;
    margin-left: 8px;
}

.tag {
    display: inline-block;
    background: #e5e0d8;
    color: #7a5c2e;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 14px;
    margin-right: 8px;
}

.tag.strict {
    background: #b38d54;
    color: #fff;
}

.tag.auth {
    background: #6c757d;
    color: #fff;
}

.profile-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.profile-meta > div {
    min-width: 180px;
}

.profile-qr {
    text-align: center;
}

.profile-qr img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
    background: #fff;
    border-radius: 8px;
}

.profile-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px; 
    
    position: relative;
}

.action-btn {
     display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0a2e5d;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s; 
   
}

.action-btn:hover {
    background: #b38d54;
    color: #fff;
}

/* 个人简介 */
.consultant-about {
    background: #f7fafc;
    padding: 40px 0;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 30px;
}

.section-title span {
    color: #b0b8c1;
    font-size: 18px;
    font-weight: normal;
    margin-left: 10px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
    font-size: 16px;
    color: #222;
    line-height: 2;
}

.about-video {
    flex: 1;
    position: relative;
    min-width: 220px;
    max-width: 320px;
}

.video-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5) url('../images/icons/play.png') no-repeat center;
    background-size: 60% 60%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* 视频/风采展示 */
.consultant-videos {
    background: #2a3b54;
    padding: 50px 0;
}

.section-title.dark {
    color: #fff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.video-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.video-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    /* background: rgba(42,59,84,0.8); */
    background: rgba(42,59,84,0.8);

    color: #fff;
    font-size: 15px;
    padding: 8px 0;
    text-align: center;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .profile-flex, .about-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .profile-photo img {
        width: 200px;
        height: 260px;
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-photo img {
        width: 140px;
        height: 180px;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
} 
/*点击电话弹窗*/
.phone-popup {
    display: none;
    position: absolute;
    left: 10%;
    top: 50px;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 10;
    text-align: center;
    padding: 20px 0 10px 0;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

.phone-popup.popup-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    overflow: hidden;
}
.phone-popup.popup-arrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
    position: absolute;
    top: 5px;
    left: 0;
    box-shadow: -2px -2px 4px rgba(0,0,0,0.03);
}

.popup-title {
    color: #888;
    font-size: 18px;
    margin-bottom: 8px;
}

.popup-number {
    color: #222;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}
/* Tab Navigation Styles */
.tab-navigation {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #f6f8fb;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #121212;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
