/**
 * ============================================================================
 * 导师模块样式 - 暗金轻奢主题
 * ============================================================================
 * 包含: 列表页 + 详情页
 * ============================================================================
 */

/* ==========================================================================
   列表页 - 页面头部横幅
   ========================================================================== */
.mp-banner {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #0A0E14 0%, #161B22 50%, #0D1117 100%);
    overflow: hidden;
}

.mp-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mp-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mp-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mp-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #E6EDF3;
    margin-bottom: 12px;
}

.mp-banner-title .gradient-text {
    background: linear-gradient(135deg, #C9A96E, #E8D5A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mp-banner-desc {
    font-size: 1rem;
    color: #8B949E;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   列表页 - 筛选工具栏
   ========================================================================== */
.mp-toolbar {
    background: #161B22;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.mp-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mp-search {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.mp-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    transition: all 0.2s;
}

.mp-search-input:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.mp-search-input::placeholder {
    color: #484F58;
}

.mp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #484F58;
    font-size: 14px;
}

.mp-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-filter-label {
    font-size: 13px;
    color: #8B949E;
    white-space: nowrap;
}

.mp-filter-select {
    height: 42px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B949E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s;
}

.mp-filter-select:focus {
    outline: none;
    border-color: #C9A96E;
}

.mp-filter-select option {
    background: #21262D;
    color: #E6EDF3;
}

.mp-sort-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-sort-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    color: #8B949E;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mp-sort-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.mp-sort-btn.active {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border-color: transparent;
    font-weight: 500;
}

.mp-toolbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #8B949E;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

/* ==========================================================================
   列表页 - 导师列表区域
   ========================================================================== */
.mp-list-section {
    padding: 40px 0 60px;
    background: #0D1117;
    min-height: 500px;
}

.mp-result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
    color: #8B949E;
}

.mp-result-count {
    color: #C9A96E;
    font-weight: 600;
}

.mp-view-toggle {
    display: flex;
    gap: 8px;
}

.mp-view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B949E;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-view-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.mp-view-btn.active {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border-color: transparent;
}

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

.mp-grid.list-view {
    grid-template-columns: 1fr;
}

/* 导师卡片增强 */
.mp-grid .mentor-card {
    display: flex;
    flex-direction: column;
}

.mp-grid .mentor-header {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0 0;
}

.mp-grid .mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C9A96E;
}

.mp-grid .mentor-badge {
    position: absolute;
    bottom: 0;
    right: calc(50% - 40px);
    width: 24px;
    height: 24px;
    background: #3FB950;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.mp-grid .mentor-body {
    flex: 1;
    padding: 16px 20px 20px;
    text-align: center;
}

.mp-grid .mentor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 4px;
}

.mp-grid .mentor-title {
    font-size: 13px;
    color: #C9A96E;
    margin-bottom: 12px;
}

.mp-grid .mentor-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #8B949E;
}

.mp-grid .mentor-stats i {
    color: #C9A96E;
    margin-right: 4px;
}

.mp-grid .mentor-bio {
    font-size: 13px;
    color: #8B949E;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.mp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.mp-tag {
    padding: 3px 10px;
    font-size: 12px;
    color: #C9A96E;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
}

.mp-grid .mentor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.mp-grid .mentor-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #C9A96E;
}

/* 列表视图样式 */
.mp-grid.list-view .mentor-card {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

.mp-grid.list-view .mentor-header {
    padding: 0;
    margin-right: 20px;
}

.mp-grid.list-view .mentor-avatar {
    width: 60px;
    height: 60px;
}

.mp-grid.list-view .mentor-body {
    flex: 1;
    padding: 0;
    text-align: left;
}

.mp-grid.list-view .mentor-footer {
    padding: 0;
    border: none;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   列表页 - 空状态
   ========================================================================== */
.mp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.mp-empty-icon {
    font-size: 64px;
    color: #21262D;
    margin-bottom: 20px;
}

.mp-empty-title {
    font-size: 18px;
    color: #8B949E;
    margin-bottom: 8px;
}

.mp-empty-desc {
    font-size: 14px;
    color: #484F58;
}

/* ==========================================================================
   列表页 - 分页
   ========================================================================== */
.mp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.mp-page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8B949E;
    background: #161B22;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mp-page-btn:hover {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.3);
}

.mp-page-btn.active {
    color: #0D1117;
    background: linear-gradient(135deg, #C9A96E, #B8943F);
    border-color: transparent;
    font-weight: 600;
}

.mp-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.mp-page-ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #484F58;
    font-size: 14px;
}

/* ==========================================================================
   详情页 - 导师头部
   ========================================================================== */
.md-hero {
    position: relative;
    padding: 0;
    background: #0A0E14;
    overflow: hidden;
}

.md-hero-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.md-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.md-hero-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #0A0E14 0%, transparent 100%);
}

.md-hero-body {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: -60px auto 0;
    padding: 0 24px 40px;
    display: flex;
    gap: 32px;
    align-items: flex-end;
}

.md-hero-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #C9A96E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.md-hero-info {
    flex: 1;
    padding-bottom: 8px;
}

.md-hero-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #E6EDF3;
    margin-bottom: 4px;
}

.md-hero-title {
    font-size: 1rem;
    color: #C9A96E;
    margin-bottom: 12px;
}

.md-hero-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #8B949E;
}

.md-hero-stats i {
    color: #C9A96E;
    margin-right: 4px;
}

.md-hero-actions {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.md-hero-actions .btn {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
}

/* ==========================================================================
   详情页 - 内容布局
   ========================================================================== */
.md-content {
    padding: 40px 0 60px;
    background: #0D1117;
}

.md-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.md-main {}

.md-section {
    background: #161B22;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(201, 169, 110, 0.08);
}

.md-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.md-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #E6EDF3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.md-section-title i {
    color: #C9A96E;
}

/* 导师简介 */
.md-bio {
    font-size: 15px;
    color: #8B949E;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 专长标签 */
.md-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.md-specialty-tag {
    padding: 8px 16px;
    font-size: 14px;
    color: #C9A96E;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
}

/* 课程列表 */
.md-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.md-course-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #21262D;
    border-radius: 10px;
    transition: background 0.2s;
    text-decoration: none;
}

.md-course-item:hover {
    background: #2D333B;
}

.md-course-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.md-course-info {
    flex: 1;
    min-width: 0;
}

.md-course-title {
    font-size: 15px;
    font-weight: 500;
    color: #E6EDF3;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.md-course-meta {
    font-size: 13px;
    color: #8B949E;
    margin-bottom: 8px;
}

.md-course-meta i {
    color: #C9A96E;
    margin-right: 4px;
}

.md-course-price {
    font-size: 16px;
    font-weight: 600;
    color: #C9A96E;
}

/* 评价列表 */
.md-review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.md-review-item {
    padding: 16px;
    background: #21262D;
    border-radius: 10px;
}

.md-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.md-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.md-review-info {
    flex: 1;
}

.md-review-name {
    font-size: 14px;
    font-weight: 500;
    color: #E6EDF3;
}

.md-review-rating {
    font-size: 12px;
    color: #C9A96E;
}

.md-review-content {
    font-size: 14px;
    color: #8B949E;
    line-height: 1.6;
}

/* ==========================================================================
   详情页 - 侧边栏
   ========================================================================== */
.md-sidebar {}

.md-sidebar-card {
    background: #161B22;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 169, 110, 0.08);
}

.md-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #E6EDF3;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.md-sidebar-title i {
    color: #C9A96E;
}

/* 预约卡片 */
.md-booking-price {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.md-booking-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C9A96E;
}

.md-booking-price .unit {
    font-size: 14px;
    color: #8B949E;
}

.md-booking-form .form-group {
    margin-bottom: 16px;
}

.md-booking-form label {
    display: block;
    font-size: 13px;
    color: #8B949E;
    margin-bottom: 6px;
}

.md-booking-form input,
.md-booking-form select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #E6EDF3;
    background: #21262D;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    transition: all 0.2s;
}

.md-booking-form input:focus,
.md-booking-form select:focus {
    outline: none;
    border-color: #C9A96E;
}

.md-booking-form .btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

/* 统计卡片 */
.md-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.md-stat-item {
    text-align: center;
    padding: 16px;
    background: #21262D;
    border-radius: 8px;
}

.md-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9A96E;
    margin-bottom: 4px;
}

.md-stat-label {
    font-size: 12px;
    color: #8B949E;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .mp-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-layout {
        grid-template-columns: 1fr;
    }

    .md-sidebar {
        order: -1;
    }

    .md-hero-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .md-hero-info {
        padding-bottom: 0;
    }

    .md-hero-actions {
        padding-bottom: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mp-banner {
        padding: 40px 0 30px;
    }

    .mp-banner-title {
        font-size: 1.6rem;
    }

    .mp-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-search {
        min-width: 100%;
    }

    .mp-filter-group,
    .mp-sort-group {
        width: 100%;
    }

    .mp-sort-group {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .mp-toolbar-toggle {
        display: flex;
    }

    .mp-toolbar-body {
        display: none;
    }

    .mp-toolbar-body.mp-toolbar-open {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .mp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .mp-grid.list-view .mentor-card {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-grid.list-view .mentor-header {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .mp-grid.list-view .mentor-body {
        text-align: center;
    }

    .mp-grid.list-view .mentor-footer {
        flex-direction: row;
        padding-top: 16px;
        border-top: 1px solid rgba(201, 169, 110, 0.08);
    }

    .mp-result-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .md-hero-cover {
        height: 200px;
    }

    .md-hero-avatar {
        width: 100px;
        height: 100px;
    }

    .md-hero-name {
        font-size: 1.5rem;
    }

    .md-hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .md-section {
        padding: 20px;
    }

    .md-course-item {
        flex-direction: column;
    }

    .md-course-cover {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .mp-grid {
        grid-template-columns: 1fr;
    }

    .mp-pagination {
        gap: 4px;
    }

    .mp-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .md-hero-avatar {
        width: 80px;
        height: 80px;
    }

    .md-hero-name {
        font-size: 1.25rem;
    }
}
