/*
 * Portal Advanced Styles
 * 高级门户样式 - 现代化设计
 */

/* ========== 全局样式重置 ========== */
.portal-container {
    /*background: #f8f9fa;*/
    min-height: 100vh;
}

/* 解决固定导航栏遮挡问题 */
body {
    padding-top: 90px !important;
}

@media (max-width: 767px) {
    body {
        padding-top: 75px !important;
    }
}

/* 确保主容器不被遮挡 */
.portal-container {
    position: relative;
    z-index: 1;
}

/* 轮播图区域额外间距 */
.hero-section {
    margin-top: 10px;
}

/* ========== 现代化导航栏样式 ========== */
.navbar-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
    min-height: 70px;
    transition: all 0.3s ease;
}

.navbar-modern.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-modern .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 28px;
    padding: 22px 15px;
    height: 70px;
    line-height: 26px;
    transition: all 0.3s ease;
}

.navbar-modern.navbar-scrolled .navbar-brand {
    color: #333 !important;
}

.navbar-modern .navbar-brand img {
    max-height: 45px;
    height: auto;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.navbar-modern.navbar-scrolled .navbar-brand img {
    filter: none;
}

.navbar-modern .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 500;
    font-size: 16px;
    padding: 25px 20px;
    line-height: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-modern.navbar-scrolled .navbar-nav > li > a {
    color: #333 !important;
}

.navbar-modern .navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-modern.navbar-scrolled .navbar-nav > li > a::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.navbar-modern .navbar-nav > li > a:hover::before,
.navbar-modern .navbar-nav > li.active > a::before {
    width: 80%;
}

.navbar-modern .navbar-nav > li > a:hover,
.navbar-modern .navbar-nav > li > a:focus {
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar-modern.navbar-scrolled .navbar-nav > li > a:hover,
.navbar-modern.navbar-scrolled .navbar-nav > li > a:focus {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
}

.navbar-modern .navbar-nav > .active > a,
.navbar-modern .navbar-nav > .active > a:hover,
.navbar-modern .navbar-nav > .active > a:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.2);
}

.navbar-modern.navbar-scrolled .navbar-nav > .active > a,
.navbar-modern.navbar-scrolled .navbar-nav > .active > a:hover,
.navbar-modern.navbar-scrolled .navbar-nav > .active > a:focus {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
}

.navbar-modern .dropdown-menu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-top: 10px;
}

.navbar-modern .dropdown-menu > li > a {
    color: #333 !important;
    font-size: 15px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.navbar-modern .dropdown-menu > li > a:hover,
.navbar-modern .dropdown-menu > li > a:focus {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    transform: translateX(5px);
}

.navbar-modern .navbar-toggle {
    border: 2px solid rgba(255,255,255,0.3);
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: 8px;
}

.navbar-modern.navbar-scrolled .navbar-toggle {
    border-color: rgba(102, 126, 234, 0.3);
}

.navbar-modern .navbar-toggle .icon-bar {
    background-color: #fff;
    transition: all 0.3s ease;
}

.navbar-modern.navbar-scrolled .navbar-toggle .icon-bar {
    background-color: #667eea;
}

.navbar-modern .navbar-toggle:hover,
.navbar-modern .navbar-toggle:focus {
    background: rgba(255,255,255,0.1);
}

.navbar-modern.navbar-scrolled .navbar-toggle:hover,
.navbar-modern.navbar-scrolled .navbar-toggle:focus {
    background: rgba(102, 126, 234, 0.1);
}

/* 覆盖原有的navbar-brown样式 */
.navbar-brown {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3) !important;
    min-height: 70px !important;
}

.navbar-brown .navbar-brand {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    padding: 22px 15px !important;
    height: 70px !important;
    line-height: 26px !important;
}

.navbar-brown .navbar-brand img {
    max-height: 45px !important;
    filter: brightness(0) invert(1) !important;
}

.navbar-brown .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 0 20px !important;
    height: 70px !important;
    line-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.navbar-brown .navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-brown .navbar-nav > li > a:hover::before,
.navbar-brown .navbar-nav > li.active > a::before {
    width: 80%;
}

.navbar-brown .navbar-nav > li > a:hover,
.navbar-brown .navbar-nav > li > a:focus {
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.1) !important;
    height: 70px !important;
}

.navbar-brown .navbar-nav > .active > a,
.navbar-brown .navbar-nav > .active > a:hover,
.navbar-brown .navbar-nav > .active > a:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.2) !important;
    height: 70px !important;
}

.navbar-brown .dropdown-menu {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.navbar-brown .dropdown-menu > li > a {
    color: #333 !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
}

.navbar-brown .dropdown-menu > li > a:hover,
.navbar-brown .dropdown-menu > li > a:focus {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
}

.navbar-brown .navbar-toggle {
    border: 2px solid rgba(255,255,255,0.3) !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    border-radius: 8px !important;
}

.navbar-brown .navbar-toggle .icon-bar {
    background-color: #fff !important;
}

.navbar-brown .navbar-toggle:hover,
.navbar-brown .navbar-toggle:focus {
    background: rgba(255,255,255,0.1) !important;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .navbar-brown,
    .navbar-modern {
        min-height: 60px !important;
    }
    
    .navbar-brown .navbar-brand,
    .navbar-modern .navbar-brand {
        padding: 20px 15px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .navbar-brown .navbar-brand img,
    .navbar-modern .navbar-brand img {
        max-height: 35px !important;
    }
    
    .navbar-brown .navbar-nav > li > a,
    .navbar-modern .navbar-nav > li > a {
        padding: 0 15px !important;
        height: 60px !important;
        line-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        font-size: 15px !important;
    }
    
    .navbar-brown .navbar-nav > li > a:hover,
    .navbar-brown .navbar-nav > li > a:focus,
    .navbar-brown .navbar-nav > .active > a,
    .navbar-brown .navbar-nav > .active > a:hover,
    .navbar-brown .navbar-nav > .active > a:focus {
        height: 60px !important;
    }
    
    .navbar-brown .navbar-toggle,
    .navbar-modern .navbar-toggle {
        margin-top: 13px !important;
        margin-bottom: 13px !important;
    }
}

/* ========== Hero Section 英雄区域 ========== */
.hero-section {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.enhanced-carousel {
    position: relative;
    z-index: 2;
}

.carousel-focus {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    background: transparent;
}

.carousel-focus .carousel-img {
    height: 83vh;
    min-height: 600px;
    max-height: 900px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-caption-enhanced {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 60px 40px 40px;
    text-align: left;
    color: white;
}

.caption-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.caption-desc {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.carousel-control {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.left {
    left: 30px;
}

.carousel-control.right {
    right: 30px;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* ========== Statistics Dashboard 统计面板 ========== */
.stats-dashboard {
    background: white;
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color-light));
}

.stat-card-primary {
    --card-color: #007bff;
    --card-color-light: #66b3ff;
}

.stat-card-success {
    --card-color: #28a745;
    --card-color-light: #66d682;
}

.stat-card-info {
    --card-color: #17a2b8;
    --card-color-light: #66d0dd;
}

.stat-card-warning {
    --card-color: #ffc107;
    --card-color-light: #ffde5c;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #212529;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 操作按钮样式 */
.stat-card-action {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.stat-card-action:hover,
.stat-card-action:focus {
    text-decoration: none;
    color: inherit;
}

.stat-card-action .action-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-action .stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.stat-card-action::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.stat-card-action:hover::after {
    transform: translateX(0) translateY(0) rotate(45deg);
}

.stat-card-action:hover .action-text {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.stat-card-action:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* ========== Main Content Area 主内容区 ========== */
.main-content-area {
    padding: 0 0 60px 0;
}

/* ========== Quick Actions Panel 快速操作面板 ========== */
.quick-actions-panel {
    margin-bottom: 30px;
}

.modern-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.quick-action-btn.btn-ask {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-btn.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-btn.btn-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-btn.btn-center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-btn i {
    font-size: 32px;
    margin-bottom: 12px;
}

.quick-action-btn span {
    font-size: 16px;
    font-weight: 600;
}

/* ========== Enhanced Panel Styles 增强面板样式 ========== */
.enhanced-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    margin: 0 -20px 20px -20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.enhanced-heading .panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.enhanced-heading .panel-title i {
    margin-right: 12px;
    font-size: 22px;
}

.panel-actions {
    display: flex;
    align-items: center;
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.filter-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    text-decoration: none;
    transform: scale(1.05);
}

.enhanced-body {
    padding: 30px;
}

/* ========== Enhanced Article List 增强文章列表 ========== */
.enhanced-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.enhanced-article-item {
    margin: 0;
}

.article-card {
    background: white;
    border: 1px solid #e0d9f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 15px;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #d4c7f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* 带图片的文章样式 */
.article-with-image {
    display: flex;
    min-height: 180px;
}

.article-image {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 32px;
}

.article-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 纯文本文章样式 */
.article-text-only {
    padding: 24px;
}

.article-header {
    margin-bottom: 16px;
}

.article-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.article-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.article-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-tag {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.publish-time,
.author-name,
.view-count,
.comment-count,
.like-count {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Article Actions */
.article-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: none;
    border-radius: 20px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

.action-btn.active {
    background: #007bff;
    color: white;
}

/* Article Badges */
.article-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.badge-top {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

/* 多图片文章卡片样式 */
.article-gallery {
    flex-direction: column;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-item .image-wrapper {
    border-radius: 8px;
}

.gallery-item .image-wrapper img {
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.1);
}

.gallery-item .image-overlay {
    background: rgba(102, 126, 234, 0.8);
}

.gallery-item .image-overlay i {
    font-size: 20px;
}

/* ========== Enhanced Sidebar 增强侧边栏 ========== */

/* 主推老师卡片 */
.expert-card-premium {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expert-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.expert-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.expert-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.expert-avatar-wrapper {
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.expert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.expert-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.expert-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.expert-status.online {
    background: #52c41a;
    color: white;
}

.expert-status.online i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

.expert-basic-info {
    flex: 1;
}

.expert-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.expert-title {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 8px;
}

.expert-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.expert-stars i {
    color: #ffd700;
    font-size: 14px;
}

.expert-stars i.fa-star-o {
    color: #ddd;
}

.star-count {
    margin-left: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

.expert-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.expert-stats-enhanced {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #8c98a4;
    text-transform: uppercase;
}

.expert-actions {
    display: flex;
    gap: 8px;
}

.btn-expert-contact,
.btn-expert-profile {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-expert-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-expert-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-expert-profile {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.btn-expert-profile:hover {
    background: #e9ecef;
    color: #5a6cb8;
}

/* 小老师列表 */
.expert-list-mini {
    margin-top: 15px;
}

.expert-mini-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.expert-mini-item:hover {
    background: #f8f9ff;
    border-color: #d4e4ff;
    transform: translateX(2px);
}

.expert-mini-avatar {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.mini-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.mini-status.online {
    background: #52c41a;
}

.mini-status.away {
    background: #faad14;
}

.expert-mini-info {
    flex: 1;
}

.mini-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.mini-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 2px;
}

.mini-stars i {
    font-size: 11px;
    color: #ffd700;
}

.mini-stars i.fa-star-o {
    color: #ddd;
}

.mini-stars span {
    margin-left: 4px;
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
}

.mini-expertise {
    font-size: 11px;
    color: #8c98a4;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.expert-mini-action {
    flex-shrink: 0;
}

.mini-contact-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mini-contact-btn i {
    font-size: 12px;
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .expert-card-premium {
        padding: 15px;
    }
    
    .expert-header {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-avatar-wrapper {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .expert-stats-enhanced {
        margin: 10px 0;
    }
    
    .expert-actions {
        flex-direction: column;
    }
    
    .expert-mini-item {
        padding: 10px;
    }
}

/* 推荐商品增强样式 */
.product-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card-mini {
    background: white;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #d4e4ff;
}

.product-image-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-mini:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-mini:hover .product-overlay {
    opacity: 1;
}

.product-view-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.product-view-btn i {
    font-size: 16px;
}

.product-info-enhanced {
    padding: 15px;
}

.product-title-enhanced {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.product-title-enhanced a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-enhanced a:hover {
    color: #667eea;
}

.product-rating {
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars i {
    font-size: 12px;
    color: #ffd700;
}

.rating-stars i.fa-star-o {
    color: #ddd;
}

.rating-text {
    margin-left: 5px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.product-price-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
}

.price-original {
    font-size: 12px;
    color: #95a5a6;
    text-decoration: line-through;
}

.price-discount {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.product-meta-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #8c98a4;
}

.sales-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sales-count i {
    color: #667eea;
}

/* 商品卡片响应式 */
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 100px;
    }
    
    .product-info-enhanced {
        padding: 12px;
    }
    
    .product-title-enhanced {
        font-size: 13px;
    }
    
    .price-current {
        font-size: 14px;
    }
}
.enhanced-sidebar .sidebar-widget {
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-sidebar .sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.enhanced-sidebar .widget-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enhanced-sidebar .widget-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.enhanced-sidebar .widget-title i {
    margin-right: 8px;
    color: #ffffff;
}

.enhanced-sidebar .widget-more {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.enhanced-sidebar .widget-more:hover {
    color: #ffffff;
    text-decoration: none;
}

.enhanced-sidebar .widget-body {
    padding: 24px;
}

/* Expert Widget */
.expert-card-enhanced {
    text-align: center;
}

.expert-avatar-section {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.expert-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.expert-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.expert-status.online {
    background: #28a745;
}

.expert-name {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #212529;
}

.expert-bio {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.expert-stats-mini {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

.stat-mini {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
    border-color: #667eea;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
    border-color: #667eea;
}

.tag-count {
    margin-left: 8px;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Products Widget */
.product-item-mini {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-item-mini:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-item-mini:hover {
    transform: translateX(8px);
}

.product-image-mini {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.product-image-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item-mini:hover .product-image-mini img {
    transform: scale(1.1);
}

.product-info-mini {
    flex: 1;
}

.product-title-mini {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title-mini a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-mini a:hover {
    color: #007bff;
    text-decoration: none;
}

.product-meta-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.product-price {
    color: #dc3545;
    font-weight: 700;
    font-size: 16px;
}

.product-sales {
    color: #6c757d;
    font-weight: 500;
}

/* Quick Links Widget */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quick-link i {
    margin-right: 10px;
    font-size: 18px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .stats-grid {
        max-width: 1000px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 800px;
    }
    
    .carousel-focus .carousel-img {
        height: 68vh;
        min-height: 450px;
        max-height: 675px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }
    
    .quick-action-btn {
        padding: 20px 16px;
    }
    
    .quick-action-btn i {
        font-size: 24px;
    }
    
    .article-with-image {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .enhanced-sidebar .quick-links {
        grid-template-columns: 1fr;
    }
    
    .expert-actions {
        flex-direction: column;
    }
    
    .carousel-focus .carousel-img {
        height: 60vh;
        min-height: 375px;
        max-height: 525px;
    }
    
    .caption-content h3 {
        font-size: 20px;
    }
    
    .caption-desc {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-left,
    .meta-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.enhanced-article-item {
    animation: fadeInUp 0.6s ease-out;
}

.expert-status.online {
    animation: pulse 2s infinite;
}

/* ========== 优化滚动条 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========== 全局配色统一规则 ========== */
/* 覆盖原有的蓝色主题，统一使用蓝紫色渐变 */

/* 主要按钮统一配色 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* 链接颜色统一 */
a.primary-link,
.text-primary {
    color: #667eea !important;
}

a.primary-link:hover,
.text-primary:hover {
    color: #764ba2 !important;
}

/* 标签页激活状态 */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-bottom-color: #667eea !important;
    color: #667eea !important;
}

/* 分页器激活状态 */
.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
}

/* 表单控件焦点状态 */
.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* 进度条 */
.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 徽章 */
.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 提示框 */
.alert-info {
    border-color: #667eea !important;
    background-color: rgba(102, 126, 234, 0.1) !important;
    color: #495057 !important;
}

/* 下拉菜单激活项 */
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

/* 固定操作按钮增强样式 */
.fixed-action-buttons .action-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
}

.fixed-action-buttons .action-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6) !important;
}

/* 侧边栏文章序号 */
.article-mini-index {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

/* 专家状态在线指示器 */
.expert-status.online {
    background: #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5) !important;
}

/* 商品价格高亮 */
.product-price .price-current {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* ========== 固定操作按钮样式 ========== */

/* 固定按钮容器 */
.fixed-action-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 单个固定按钮 */
.fixed-btn {
    min-width: 80px;
    height: 45px;
    padding: 10px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: none;
    outline: none;
    white-space: nowrap;
}

.fixed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.fixed-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 按钮图标 */
.fixed-btn i {
    color: white;
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fixed-action-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .fixed-btn {
        min-width: 70px;
        height: 40px;
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .fixed-btn i {
        font-size: 13px;
    }
}

/* ========== 通用页面样式 ========== */

/* 通用现代化页面头部 - 可在任何页面使用 */
.enhanced-page-header,
.category-title.enhanced-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* 通用页面标题包装器 */
.page-title-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin: -20px -15px 30px -15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* 通用标题覆盖 */
h1.category-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 30px;
    margin: -20px -15px 30px -15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1.category-title .more {
    margin: 0;
}

h1.category-title .breadcrumb {
    background: rgba(255,255,255,0.1);
    margin: 0;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

h1.category-title .breadcrumb li {
    color: rgba(255,255,255,0.8);
}

h1.category-title .breadcrumb li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

h1.category-title .breadcrumb li a:hover {
    color: white;
}

/* ========== 列表页面专用样式 ========== */

/* 现代化页面头部 */
.enhanced-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.page-main-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.page-main-title i {
    margin-right: 15px;
    font-size: 28px;
}

.page-breadcrumb {
    margin: 0;
}

.enhanced-breadcrumb {
    background: rgba(255,255,255,0.1);
    margin: 0;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.enhanced-breadcrumb li {
    color: rgba(255,255,255,0.8);
}

.enhanced-breadcrumb li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.enhanced-breadcrumb li a:hover {
    color: white;
}

/* 增强筛选面板 */
.enhanced-filter-panel {
    margin-bottom: 30px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.filter-toggle input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.toggle-label {
    font-size: 14px;
}

.category-filters {
    padding: 0;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-title:before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 10px;
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-filters.multiple-mode .filter-options {
    flex-direction: column;
    gap: 4px;
}

/* 排序选项 */
.sort-options {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 6px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-color: #667eea;
    transform: translateY(-1px);
}

.sort-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* 增强分页 */
.enhanced-pagination {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f3f4;
}

.enhanced-pagination .pagination {
    justify-content: center;
}

.enhanced-pagination .pagination > li > a,
.enhanced-pagination .pagination > li > span {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.enhanced-pagination .pagination > li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.enhanced-pagination .pagination > .active > a,
.enhanced-pagination .pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* 文章卡片悬停增强 */
.article-card.card-hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.filter-tag.hover-effect {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .enhanced-page-header {
        padding: 30px 0;
        margin-bottom: 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .page-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .page-main-title {
        font-size: 26px;
    }
    
    .page-main-title i {
        font-size: 22px;
        margin-right: 10px;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .sort-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sort-btn {
        font-size: 13px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .enhanced-page-header {
        padding: 20px 0;
        margin-bottom: 15px;
    }
    
    .page-main-title {
        font-size: 22px;
    }
    
    .filter-title {
        font-size: 14px;
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .sort-options {
        gap: 6px;
    }
} 

/* ========== 侧边栏新增组件样式 ========== */

/* 热门分类卡片网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.2);
}

.category-icon i {
    font-size: 18px;
    color: #667eea;
}

.category-card:hover .category-icon i {
    color: white;
}

.category-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.category-info span {
    font-size: 12px;
    opacity: 0.8;
}

/* 增强文章小卡片的点赞数据 */
.article-mini-meta span:last-child {
    color: #e91e63;
}

.article-mini-meta span:last-child i {
    color: #e91e63;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .category-card {
        padding: 12px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .category-icon i {
        font-size: 16px;
    }
    
    .category-info h5 {
        font-size: 13px;
    }
    
    .category-info span {
        font-size: 11px;
    }
}

/* 热门文章列表 */
.article-mini-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-mini-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-mini-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.article-mini-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.article-mini-content {
    flex: 1;
}

.article-mini-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.article-mini-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-mini-title a:hover {
    color: #667eea;
}

.article-mini-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.article-mini-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-mini-meta i {
    font-size: 11px;
}



/* 专家卡片增强样式覆盖 */
.expert-details {
    flex: 1;
}

.expert-avatar-section {
    position: relative;
    margin-bottom: 16px;
    text-align: center;
}

.expert-avatar-section .expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.expert-status {
    position: absolute;
    bottom: 8px;
    right: calc(50% - 40px + 8px);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #dc3545;
}

.expert-status.online {
    background: #28a745;
}

.expert-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    text-align: center;
}

.expert-bio {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.4;
    text-align: center;
}

.expert-stats-mini {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    justify-content: center;
}

.stat-mini {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    line-height: 1;
}

.stat-mini .stat-label {
    font-size: 12px;
    color: #888;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
}

.expert-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 产品覆盖层样式 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item-mini:hover .product-overlay {
    opacity: 1;
}

.product-overlay i {
    color: white;
    font-size: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .expert-avatar-section .expert-avatar {
        width: 60px;
        height: 60px;
    }
    
    .expert-stats-mini {
        gap: 16px;
    }
    
    .expert-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .article-mini-item {
        padding: 10px;
    }
    
    .article-mini-index {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}