/* expert-consultation.css - 整理后的专家咨询页面样式 */

:root {
    --primary: #2c7be5;
    --primary-dark: #1a68d1;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
    --border: #e9ecef;
    --success: #00d97e;
    --danger: #e63757;
    --warning: #f6c343;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* 导航栏样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.login-actions {
    display: flex;
    gap: 10px;
}

.user-info-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

#navUsername {
    font-weight: 500;
    color: var(--dark);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    color: var(--secondary);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* 角色标识样式 */
.user-roles {
    display: flex;
    flex-direction: column; /* 改为纵向排列 */
    gap: 2px; /* 减少间距 */
    margin-left: 8px;
}

.role-tag {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.role-user {
    background-color: #6c757d;
    color: white;
}

.role-contributor {
    background-color: #17a2b8;
    color: white;
}

.role-admin {
    background-color: #dc3545;
    color: white;
}

.role-vip {
    background-color: #ffc107;
    color: #212529;
}


/* 用户名和角色容器 */
.user-name-roles-container {
    display: flex;
    align-items: center;
}

.panel-roles {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.panel-role-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 主要内容区域 */
.section {
    padding: 40px 0;
}

.consultation-content {
    display: flex;
    gap: 30px;
}

/* 筛选侧边栏 */
.filters-sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
}

.filter-options input {
    margin-right: 10px;
}

.filter-count {
    margin-left: auto;
    color: var(--secondary);
    font-size: 0.85rem;
}

/* 专家列表主区域 */
.experts-main {
    flex: 1;
}

.search-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 7px 15px;
    border-radius: 4px;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.expert-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.expert-header {
    padding: 25px 25px 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.expert-info {
    flex: 1;
}

.expert-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.expert-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.expert-tag {
    background-color: #e6f2ff;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.expert-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--warning);
    font-weight: 600;
}

.expert-body {
    padding: 0 25px 15px;
}

.expert-description {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.5;
}

.expert-specialty {
    margin-bottom: 15px;
}

.expert-specialty h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.expert-specialty ul {
    list-style: none;
    padding-left: 0;
}

.expert-specialty li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.expert-specialty li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.expert-methods {
    margin-bottom: 15px;
}

.expert-methods h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.expert-methods ul {
    list-style: none;
    padding-left: 0;
}

.expert-methods li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.expert-methods li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.expert-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.consultation-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-weight: 600;
}

/* 咨询方式区域 */
.consultation-types {
    margin: 50px 0;
    width: 100%;
}

.consultation-types h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--dark);
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.type-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.type-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.type-card p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--dark);
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-link.disabled {
    color: var(--secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* 分页信息 */

 .join-experts-section {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     padding: 60px 0;
     margin-top: 40px;
 }

.join-experts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.join-experts-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.join-experts-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.benefits-list i {
    color: #4ade80;
    margin-right: 12px;
    font-size: 1.2rem;
}

.requirements {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.requirements h4 {
    margin-bottom: 15px;
    color: #e0e7ff;
}

.requirements ul {
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

.requirements li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#joinExpertBtn {
    background: #4ade80;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#joinExpertBtn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

.expert-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4ade80;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .join-experts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .join-experts-text h2 {
        font-size: 2rem;
    }

    .expert-stats-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

     /* 加入专家队伍版块样式 */
 .join-experts-section {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     padding: 60px 0;
     margin-top: 40px;
 }

.join-experts-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.join-experts-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.join-experts-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
    display: inline-block;
    text-align: left;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.benefits-list i {
    color: #4ade80;
    margin-right: 12px;
    font-size: 1.2rem;
}

.requirements {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.requirements h4 {
    margin-bottom: 15px;
    color: #e0e7ff;
    text-align: center;
}

.requirements ul {
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

.requirements li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#joinExpertBtn {
    background: #4ade80;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#joinExpertBtn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .join-experts-text h2 {
        font-size: 2rem;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.form-but {
    text-align: center;
}

.form-switch {
    text-align: center;
    margin-top: 15px;
}

.form-switch a {
    color: var(--primary);
    cursor: pointer;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .consultation-content {
        flex-direction: column;
    }

    .filters-sidebar {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .search-sort-bar {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .user-info-display {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 30px 0;
    }

}