/* ===== 简洁紧凑的前台样式 ===== */

/* 基础变量 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --radius: 4px;
    --spacing: 1rem;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-light);
    font-size: 14px;
}

/* 导航栏 */
.modern-navbar {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.modern-navbar .navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.2rem;
}

.modern-navbar .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    border-radius: var(--radius);
    margin: 0 0.2rem;
}

.modern-navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 123, 255, 0.1);
}

.modern-navbar .navbar-nav .nav-link.active {
    color: var(--bg-white) !important;
    background: var(--primary-color);
}

/* 搜索框 */
.modern-search {
    max-width: 280px;
}

.search-container {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.search-input {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.9rem;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.search-btn:hover {
    background: #0056b3;
}

/* Hero区域简化 */
.hero-section {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-background,
.hero-particles,
.particle {
    display: none;
}

.hero-content {
    color: var(--text-primary);
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.text-gradient {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-hero-primary:hover {
    background: #0056b3;
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-hero-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 隐藏复杂的视觉效果 */
.hero-visual,
.floating-card,
.hero-illustration,
.scroll-indicator {
    display: none;
}

/* 主内容区域 */
.main-section {
    padding: 1.5rem 0;
    background: var(--bg-light);
}

/* 页面头部 */
.page-header {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.modern-breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.modern-breadcrumb .breadcrumb-item {
    color: var(--text-secondary);
}

.modern-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.modern-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.highlight-number {
    color: var(--primary-color);
    font-weight: 600;
}

/* 侧边栏 */
.sidebar-container {
    position: sticky;
    top: 80px;
}

.modern-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sidebar-header {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h5 {
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.category-list {
    padding: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.category-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.category-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 500;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 标签云 */
.tag-cloud {
    padding: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
}

.tag-count {
    background: white;
    color: var(--text-muted);
    padding: 1px 4px;
    border-radius: var(--radius);
    font-size: 0.65rem;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 快速链接 */
.quick-links {
    padding: 0.8rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.quick-link-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

/* 文档网格 */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.document-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.document-card:hover {
    box-shadow: var(--shadow);
}

/* 移除动画效果 */
.document-card.animate-in {
    animation: none;
}

.card-image {
    height: 150px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    display: none;
}

.card-content {
    padding: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.doc-category {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.doc-views {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.card-tags .tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 2px 0.4rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.doc-meta .doc-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.read-more-btn:hover {
    background: #0056b3;
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.empty-illustration {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.empty-actions .btn {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    border: none;
}

.empty-actions .btn:hover {
    background: #0056b3;
    color: white;
}

/* 页脚 */
.modern-footer {
    background: var(--text-primary);
    color: white;
    margin-top: 2rem;
}

.footer-content {
    padding: 1.5rem 0;
}

.footer-brand h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.footer-stats .stat {
    text-align: center;
}

.footer-stats .stat strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-stats .stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.3rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.footer-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar-container {
        position: static;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 0.8rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .card-content {
        padding: 0.8rem;
    }
    
    .footer-stats {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .page-header {
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
} 