/*
 * Copyright: YC-2025Copyright
 * Created: 2025-01-09
 * Updated: 2025-01-09
 * Description: 页面特定样式（合并自 learning.css, reports.css, home-enhancements.css, lowest-economy.css）
 */

/* ========================================
   学习页面样式（来自 learning.css）
   ======================================== */

/* 学习页面动画效果 */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.learning-page {
    animation: fadeIn 0.8s ease-out;
}

.learning-header {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.progress-card {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.learning-tabs {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.notes-section {
    animation: slideInUp 0.8s ease-out 0.8s both;
}

/* 悬停效果增强 */
.tool-logo-large:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.btn-learning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary-learning:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b5b9e);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.resource-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.resource-icon {
    transition: all 0.3s ease;
}

/* 进度条动画增强 */
.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 标签页切换动画 */
.tab-content {
    position: relative;
    overflow: hidden;
}

.tab-pane {
    animation: fadeIn 0.5s ease-out;
}

/* 学习笔记区域增强 */
.notes-textarea {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.notes-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.note-item {
    transition: all 0.3s ease;
}

.note-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 空状态样式 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #718096;
}

.empty-state span {
    display: block;
    margin: 0 auto 20px;
    opacity: 0.7;
}

.empty-state h4 {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 收藏按钮动画 */
.btn-favorited {
    animation: pulse 0.5s ease;
    background: linear-gradient(135deg, #e53e3e, #f56565);
}

.btn-favorited:hover {
    background: linear-gradient(135deg, #c53030, #e53e3e);
}

/* 分享按钮样式 */
.share-btn {
    padding: 15px 20px;
    margin: 10px;
    border: none;
    border-radius: 15px;
    background: #f7fafc;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.share-icon {
    font-size: 20px;
}

/* 难度标签增强 */
.resource-difficulty {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.resource-difficulty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.resource-difficulty:hover::before {
    left: 100%;
}

/* 学习状态指示器 */
.learning-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    animation: pulse 2s infinite;
}

.learning-indicator.learning {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.learning-indicator.completed {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

/* 骨架屏 loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* 性能优化：减少重绘 */
.resource-card,
.tab-button,
.btn-learning {
    will-change: transform;
}

/* 滚动条美化 */
.notes-list::-webkit-scrollbar {
    width: 6px;
}

.notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notes-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 焦点样式增强 */
.btn-learning:focus,
.tab-button:focus,
.share-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功提示动画 */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
    z-index: 9999;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 工具徽章动画 */
.tool-badges .badge-custom {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-badges .badge-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-badges .badge-custom:hover::before {
    left: 100%;
}

.tool-badges .badge-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* SPA布局中的子菜单样式 */
.sidebar-submenu {
    display: none;
}

.sidebar-submenu.show {
    display: block;
}

.sidebar-menu-arrow {
    transition: transform var(--transition-fast);
}

/* 确保SPA布局中的左侧菜单样式正确 */
.sidebar-nav {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
}

.sidebar-brand-link {
    color: var(--text-primary) !important;
}

.sidebar-menu-link {
    color: var(--text-secondary) !important;
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
    color: var(--primary-color) !important;
    background: rgba(89, 97, 249, 0.05) !important;
}

.sidebar-menu-link.active::before {
    background: var(--primary-color) !important;
}

.sidebar-submenu {
    background: var(--bg-light) !important;
}

.sidebar-submenu-link {
    color: var(--text-secondary) !important;
}

.sidebar-submenu-link:hover,
.sidebar-submenu-link.active {
    color: var(--primary-color) !important;
    background: rgba(89, 97, 249, 0.05) !important;
}

.sidebar-submenu-link.active::before {
    background: var(--primary-color) !important;
}

.sidebar-menu-divider {
    background: var(--border-light) !important;
}

/* ========================================
   AI洞察报告样式（来自 reports.css）
   ======================================== */

/* AI洞察报告主题变量 */
:root {
    /* 报告主题色彩 */
    --report-primary: #5B7CFF;
    --report-secondary: #FF6B9D;
    --report-accent: #FFB84D;
    --report-success: #52C41A;
    --report-warning: #FAAD14;
    --report-danger: #F5222D;

    /* 报告专用渐变 */
    --report-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --report-gradient-secondary: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --report-gradient-accent: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);

    /* 报告卡片阴影 */
    --report-shadow-light: 0 2px 8px rgba(91, 124, 255, 0.08);
    --report-shadow-medium: 0 4px 16px rgba(91, 124, 255, 0.12);
    --report-shadow-heavy: 0 8px 24px rgba(91, 124, 255, 0.16);
    --report-shadow-hover: 0 12px 32px rgba(91, 124, 255, 0.20);
}

/* 报告卡片样式 */
.report-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--report-shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(91, 124, 255, 0.08);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--report-shadow-hover);
    border-color: rgba(91, 124, 255, 0.15);
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--report-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card:hover::before {
    opacity: 1;
}

/* 报告封面 */
.report-cover {
    width: 100%;
    height: 200px;
    background: var(--report-gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-cover::after {
    content: "📊";
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

.report-cover.tech-trends::after { content: "🚀"; }
.report-cover.market-analysis::after { content: "📈"; }
.report-cover.industry-insights::after { content: "🏭"; }
.report-cover.ai-research::after { content: "🔬"; }

/* 报告封面叠加层 */
.report-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card:hover .report-cover-overlay {
    opacity: 1;
}

/* 报告元数据 */
.report-meta {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.report-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.report-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* 报告统计信息 */
.report-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(91, 124, 255, 0.04);
    border-radius: 8px;
}

.report-stats-left {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 0.9rem;
    color: var(--report-primary);
}

.stat-number {
    font-weight: 600;
    color: var(--text-secondary);
}

/* 报告标签和徽章 */
.report-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.report-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.report-badge.featured {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
}

.report-badge.free {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
}

.report-badge.premium {
    background: linear-gradient(135deg, #faad14, #ffc53d);
    color: white;
}

.report-badge.new {
    background: linear-gradient(135deg, #5b7cff, #7a93ff);
    color: white;
    animation: pulse 2s infinite;
}

/* 报告操作按钮 */
.report-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.report-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.report-btn-primary {
    background: var(--report-gradient-primary);
    color: white;
}

.report-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 124, 255, 0.3);
    color: white;
}

.report-btn-secondary {
    background: white;
    color: var(--report-primary);
    border: 1px solid var(--report-primary);
}

.report-btn-secondary:hover {
    background: var(--report-primary);
    color: white;
}

/* 筛选和搜索区域 */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--report-shadow-light);
    border: 1px solid rgba(91, 124, 255, 0.08);
}

.filters-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: var(--report-primary);
}

/* 分类导航 */
.category-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(91, 124, 255, 0.2);
    border-radius: 25px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background: var(--report-gradient-primary);
    color: white;
    border-color: transparent;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 124, 255, 0.2);
}

/* 搜索框样式 */
.search-box-reports {
    position: relative;
    max-width: 500px;
}

.search-box-reports .input-group-text {
    background: white;
    border-color: rgba(91, 124, 255, 0.2);
    color: var(--report-primary);
    font-size: 1.1rem;
}

.search-box-reports .form-control {
    border-color: rgba(91, 124, 255, 0.2);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.search-box-reports .form-control:focus {
    border-color: var(--report-primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 124, 255, 0.15);
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--report-shadow-light);
    text-align: center;
    border: 1px solid rgba(91, 124, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--report-gradient-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--report-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--report-shadow-medium);
}

/* 搜索高亮 */
.search-highlight {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #8b4513;
}

/* ========================================
   首页增强样式（来自 home-enhancements.css）
   ======================================== */

/* 平滑滚动和整体优化 */
html {
    scroll-behavior: smooth;
}

/* 内容区域优化 */
#contentArea {
    animation: fadeInUp 0.6s ease-out;
}

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

/* 教程卡片增强 */
.learning-section .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
}

.learning-section .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(89,97,249,0.2);
}

/* 卡片图片遮罩效果 */
.card-img-top {
    position: relative;
}

.card:hover .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89,97,249,0.3), rgba(118,75,162,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-img-top::after {
    opacity: 1;
}

/* Badge 动画效果 */
.badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.card:hover .badge::before {
    left: 100%;
}

/* 进度条动画 */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 按钮增强效果 */
.card-footer .btn {
    position: relative;
    overflow: hidden;
}

.card-footer .btn::after {
    content: '→';
    position: absolute;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.card-footer .btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.card-footer .btn:hover {
    padding-right: 2.5rem;
}

/* 欢迎横幅增强 */
.welcome-banner {
    animation: bannerSlideIn 0.8s ease-out;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section 标题动画 */
.section-title {
    animation: titleFadeIn 0.6s ease-out;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 卡片堆叠动画 */
.learning-section .col-sm-6:nth-child(1) .card {
    animation: cardSlideIn 0.5s ease-out 0.1s both;
}

.learning-section .col-sm-6:nth-child(2) .card {
    animation: cardSlideIn 0.5s ease-out 0.2s both;
}

.learning-section .col-sm-6:nth-child(3) .card {
    animation: cardSlideIn 0.5s ease-out 0.3s both;
}

.learning-section .col-sm-6:nth-child(4) .card {
    animation: cardSlideIn 0.5s ease-out 0.4s both;
}

.learning-section .col-sm-6:nth-child(5) .card {
    animation: cardSlideIn 0.5s ease-out 0.5s both;
}

.learning-section .col-sm-6:nth-child(6) .card {
    animation: cardSlideIn 0.5s ease-out 0.6s both;
}

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

/* 图标动画 */
.card:hover .bi {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 文字渐变效果 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.section-header:hover .section-title::after {
    width: 100%;
}

/* 加载状态优化 */
.card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%
    );
    animation: loading 1.5s infinite;
}

/* 空状态优化 */
.alert-info {
    background: linear-gradient(135deg, rgba(24,144,255,0.1), rgba(64,169,255,0.1));
    border: 2px solid rgba(24,144,255,0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    padding: 1.5rem;
    font-weight: 500;
}

/* 滚动条美化（针对内容区域） */
#contentArea::-webkit-scrollbar {
    width: 10px;
}

#contentArea::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

#contentArea::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

#contentArea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* ========================================
   低空经济板块样式（来自 lowest-economy.css）
   ======================================== */

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.banner-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.banner-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-text p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

/* TAB容器样式 */
.lowest-tabs-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* TAB导航样式 */
.lowest-tabs {
    border-bottom: 2px solid var(--border-light);
    padding: 0;
    margin: 0;
    background: var(--bg-gray);
    display: flex;
    flex-wrap: wrap;
}

.lowest-tabs .nav-item {
    flex: 1;
    min-width: 0;
}

.lowest-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lowest-tabs .nav-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lowest-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(91, 124, 255, 0.05);
    border-bottom-color: rgba(91, 124, 255, 0.3);
}

.lowest-tabs .nav-link.active {
    color: var(--primary-color);
    background: var(--bg-white);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* TAB内容区域 */
.lowest-tab-content {
    padding: 1.5rem;
    min-height: 400px;
}

/* TAB面板显示控制 */
.lowest-tab-content .tab-pane {
    display: none;
}

.lowest-tab-content .tab-pane.active,
.lowest-tab-content .tab-pane.show {
    display: block !important;
}

.lowest-tab-content .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.lowest-tab-content .tab-pane.fade.show {
    opacity: 1;
}

.tab-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.tab-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-header h3 i {
    color: var(--primary-color);
}

.tab-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* 产业报告网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 报告章节标题 */
.reports-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle i {
    color: var(--primary-color);
}

/* 卡片底部信息 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-meta i {
    font-size: 0.875rem;
}

/* 课程网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.course-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.course-image {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-content {
    padding: 1.25rem;
}

.course-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta i {
    margin-right: 0.25rem;
}

/* 无人机培训网格 */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.training-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
}

.training-card.featured {
    border: 2px solid var(--primary-color);
}

.training-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.training-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.training-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.training-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.training-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.training-features li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.training-features i {
    color: var(--success-color);
}

.training-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.duration {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* eVTOL展示 */
.evtol-showcase {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.evtol-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.evtol-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.evtol-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.evtol-stats {
    display: flex;
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.evtol-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.evtol-icon-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4.5rem;
}

.evtol-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.evtol-applications {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.evtol-applications h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.application-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 应用场景网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.application-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.app-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.app-image.agriculture {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

.app-image.logistics {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.app-image.inspection {
    background: linear-gradient(135deg, #722ed1 0%, #9254de 100%);
}

.app-image.emergency {
    background: linear-gradient(135deg, #f5222d 0%, #ff4d4f 100%);
}

.app-image.tourism {
    background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%);
}

.app-image.transportation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-content {
    padding: 1.25rem;
}

.app-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-content > p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.app-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.app-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.app-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.app-stat span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.app-example {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.app-example i {
    color: var(--primary-color);
    margin-top: 0.125rem;
}

/* ========================================
   响应式设计
   ======================================== */

/* 学习页面响应式 */
@media (max-width: 576px) {
    .tool-title {
        font-size: 24px;
    }

    .learning-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .tab-button {
        font-size: 14px;
        padding: 15px 10px;
    }

    .btn-learning {
        padding: 12px 20px;
        font-size: 14px;
    }

    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .sidebar-nav.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* 报告页面响应式 */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filters-section {
        padding: 1.5rem;
    }

    .category-nav {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .report-card {
        margin-bottom: 1rem;
    }

    .report-cover {
        height: 160px;
    }

    .report-meta {
        padding: 1rem;
    }

    .report-title {
        font-size: 1rem;
    }

    .report-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .report-stats-left {
        gap: 0.5rem;
    }

    .category-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-btn {
        text-align: center;
        justify-content: center;
    }
}

/* 首页增强响应式 */
@media (max-width: 768px) {
    .learning-section {
        animation: none;
    }
    
    .learning-section .card {
        animation: none !important;
    }
    
    .card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* 低空经济响应式 */
@media (max-width: 768px) {
    .lowest-tabs {
        flex-direction: column;
    }
    
    .lowest-tabs .nav-item {
        width: 100%;
    }
    
    .lowest-tabs .nav-link {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    
    .lowest-tab-content {
        padding: 1rem;
    }
    
    .feature-grid,
    .course-grid,
    .training-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .evtol-main {
        grid-template-columns: 1fr;
    }
    
    .evtol-icon-large {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }
    
    .evtol-stats {
        flex-direction: column;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-text h1 {
        font-size: 1.75rem;
    }
    
    .banner-text p {
        font-size: 0.875rem;
    }
    
    .lowest-tab-content {
        min-height: auto;
    }
    
    .tab-header h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    .learning-actions,
    .tabs-header,
    .notes-form,
    .share-modal {
        display: none !important;
    }

    .learning-page {
        background: white !important;
    }

    .learning-header,
    .progress-card,
    .learning-tabs,
    .notes-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .report-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .report-cover {
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .filters-section,
    .pagination,
    .report-actions {
        display: none !important;
    }
}

/* ========================================
   暗色模式支持
   ======================================== */

[data-theme="dark"] .share-btn {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .share-btn:hover {
    background: #667eea;
    color: white;
}

[data-theme="dark"] .notes-textarea {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] .notes-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] {
    --report-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --report-shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --report-shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.5);
    --report-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .report-card {
    background: #2c2e2f;
    border-color: rgba(91, 124, 255, 0.2);
}

[data-theme="dark"] .filters-section {
    background: #2c2e2f;
    border-color: rgba(91, 124, 255, 0.2);
}

[data-theme="dark"] .stat-card {
    background: #2c2e2f;
    border-color: rgba(91, 124, 255, 0.2);
}

[data-theme="dark"] .empty-state {
    background: #2c2e2f;
}

[data-theme="dark"] .category-btn {
    background: #2c2e2f;
    border-color: rgba(91, 124, 255, 0.3);
    color: #c6c9cf;
}

[data-theme="dark"] .search-box-reports .input-group-text,
[data-theme="dark"] .search-box-reports .form-control {
    background: #2c2e2f;
    border-color: rgba(91, 124, 255, 0.3);
    color: #c6c9cf;
}

/* 报告页面动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-card {
    animation: fadeInUp 0.6s ease-out;
}

.report-card:nth-child(1) { animation-delay: 0.1s; }
.report-card:nth-child(2) { animation-delay: 0.2s; }
.report-card:nth-child(3) { animation-delay: 0.3s; }
.report-card:nth-child(4) { animation-delay: 0.1s; }
.report-card:nth-child(5) { animation-delay: 0.2s; }
.report-card:nth-child(6) { animation-delay: 0.3s; }

/* 加载状态 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
