/* ==========================
   合并 a.css + b.css
   文件名：style.css
   ========================== */

/* 知识文档首页特有样式 */

/* 页面头部 */
.document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 区域头部样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 特色文档推荐 */
.featured-section {
    margin-bottom: 4rem;
}

.featured-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.doc-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.doc-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.doc-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1rem;
}

.doc-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.view-btn {
    background: #4a6491;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #3a5471;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.download-btn-small {
    background: #28a745;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn-small:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1rem;
}

/* 知识分类 */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.1rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    border-color: #4a6491;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.2rem;
}

.category-icon {
    margin-top: 0.5rem;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

.category-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-time {
    color: #999;
    font-size: 0.85rem;
}

.arrow-icon {
    color: #4a6491;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 热门标签 */
.tags-section {
    margin-bottom: 4rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-item {
    background: #f8f9fa;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.tag-item:hover {
    background: #4a6491;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 100, 145, 0.3);
}

.tag-item[data-count="1"] { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
.tag-item[data-count="2"] { font-size: 0.85rem; padding: 0.45rem 0.9rem; }
.tag-item[data-count="3"] { font-size: 0.9rem; padding: 0.5rem 1rem; }
.tag-item[data-count="4"] { font-size: 0.95rem; padding: 0.55rem 1.1rem; }
.tag-item[data-count="5"] { font-size: 1rem; padding: 0.6rem 1.2rem; }

/* 最新更新 */
.recent-section {
    margin-bottom: 4rem;
}

.recent-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.recent-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.recent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.doc-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.doc-time {
    color: #999;
    font-size: 0.85rem;
}

.recent-card .doc-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.doc-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

.stat-icon {
    font-size: 0.9rem;
}

.read-more {
    color: #4a6491;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #3a5471;
    text-decoration: none;
    transform: translateX(3px);
}

/* 使用指南 */
.guide-section {
    margin-bottom: 4rem;
}

.guide-content {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.guide-header {
    text-align: center;
    margin-bottom: 2rem;
}

.guide-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #4a6491, #2c3e50);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 列表页样式 */
.category-selector {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.selector-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.current-category {
    color: #666;
    font-size: 1rem;
}

.current-category strong {
    color: #4a6491;
    font-size: 1.1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
    background: white;
}

.category-item:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
    border-color: #4a6491;
    box-shadow: 0 8px 25px rgba(74, 100, 145, 0.15);
}

.category-item.active {
    border-color: #4a6491;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 8px 25px rgba(74, 100, 145, 0.2);
}

/* 文档列表项样式 */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #4a6491;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.current-category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-item {
    padding: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: #4a6491;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.doc-meta-info {
    display: flex;
    gap: 1.5rem;
}

.document-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.document-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.document-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.download-btn {
    background: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 详情页样式 */
.document-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
}

.header-main {
    flex: 1;
}

.document-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.document-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.meta-item {
    text-align: center;
}

.meta-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.meta-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.difficulty-badge {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty-advanced {
    background: #f8d7da;
    color: #721c24;
}

.header-side {
    flex-shrink: 0;
}

.document-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-icon {
    font-size: 3rem;
    color: white;
}

/* 文档标题链接 */
.doc-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 0.5rem;
}

.doc-title-link h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-title-link:hover h4 {
    color: #4a6491;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 悬停时的额外效果 */
.related-item:hover .doc-title-link h4 {
    transform: translateX(3px);
}

/* 文档标签区域 */
.document-tags-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tags-label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

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

/* 内容预览区域 */
.content-preview {
    padding: 2.5rem;
}

.preview-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.preview-content p {
    margin-bottom: 1rem;
}

.preview-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.preview-content li {
    margin-bottom: 0.5rem;
}

.content-highlights {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a6491;
}

.content-highlights h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 下载区域 */
.download-section {
    padding: 2.5rem;
    text-align: center;
}

.download-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.download-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #666;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
}

.download-actions {
    margin-bottom: 2rem;
}

.download-btn-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.download-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.download-icon {
    font-size: 2.5rem;
}

.download-text {
    font-size: 1.3rem;
}

.file-size {
    font-size: 1rem;
    opacity: 0.9;
}

.download-tips {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    font-size: 0.95rem;
}

.tip-icon {
    font-size: 1.1rem;
}

/* 相关推荐 */
.related-section {
    padding: 2rem;
}

.related-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-item:hover {
    border-color: #4a6491;
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.related-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.related-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-info p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.related-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 统计区域 */
.stats-section {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 分页组件基础样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

/* 分页按钮基础样式 */
.pagination-btn,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e9ecef;
    background: white;
    color: #4a6491;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(.disabled),
.page-btn:hover:not(.active) {
    background: #4a6491;
    color: white;
    border-color: #4a6491;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 100, 145, 0.3);
    text-decoration: none;
}

/* 禁用状态 */
.pagination-btn.disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 当前页激活状态 */
.page-btn.active {
    background: #4a6491;
    color: white;
    border-color: #4a6491;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 100, 145, 0.3);
}

/* 页码容器 */
.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 省略号样式 */
.page-dots {
    padding: 0.75rem 0.5rem;
    color: #6c757d;
    font-weight: 600;
}

/* 页面信息样式 */
.pagination-info {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.pagination-info strong {
    color: #4a6491;
    font-weight: 600;
}

/* 上一页/下一页特殊样式 */
.pagination-btn.prev,
.pagination-btn.next {
    min-width: 100px;
    font-weight: 600;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 加载状态动画 */
.pagination-btn:not(.disabled):active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 焦点状态（无障碍支持） */
.pagination-btn:focus,
.page-btn:focus {
    outline: 2px solid #4a6491;
    outline-offset: 2px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* 插画区域 */
.empty-illustration {
    position: relative;
    margin-bottom: 3rem;
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.empty-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: #4a6491;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: #667eea;
    top: 60px;
    right: 0;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: #764ba2;
    bottom: 0;
    left: 70px;
    animation-delay: 2s;
}

/* 内容区域 */
.empty-content {
    position: relative;
    z-index: 2;
}

.empty-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* 建议列表 */
.empty-suggestions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 3rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4a6491;
    text-align: left;
}

.suggestion-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.suggestion-item span:last-child {
    color: #555;
    font-size: 0.95rem;
}

/* 操作按钮 */
.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.primary-btn, .secondary-btn, .outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.primary-btn {
    background: #4a6491;
    color: white;
}

.primary-btn:hover {
    background: #3a5471;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 100, 145, 0.3);
}

.secondary-btn {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.secondary-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
    text-decoration: none;
    transform: translateY(-2px);
}

.outline-btn {
    background: transparent;
    color: #4a6491;
    border: 1px solid #4a6491;
}

.outline-btn:hover {
    background: #4a6491;
    color: white;
    transform: translateY(-2px);
}

/* 点击下载复制链接并弹框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalAppear 0.3s ease;
}

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

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4b6cb7;
}

.modal h2 {
    margin-bottom: 15px;
    color: #182848;
}

.modal p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.modal-btn {
    padding: 12px 30px;
    background: #4b6cb7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: #3a5ca9;
}

/* 底部链接 */
.empty-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.empty-footer p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.feedback-link {
    color: #4a6491;
    text-decoration: none;
    font-weight: 500;
}

.feedback-link:hover {
    text-decoration: underline;
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .document-header {
        padding: 2.5rem 0;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .header-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-documents {
        grid-template-columns: 1fr;
    }
    
    .recent-documents {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doc-actions {
        flex-direction: column;
    }
    
    .doc-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .document-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .document-tags-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-info {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        justify-content: space-between;
    }
    
    .related-documents {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .document-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .document-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* 分页移动端适配 */
    .pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination-pages {
        order: -1;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-info {
        margin-left: 0;
        text-align: center;
        order: -2;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        min-width: 120px;
    }
    
    .page-btn {
        padding: 0.6rem 1rem;
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* 空状态响应式 */
    .empty-state {
        padding: 3rem 1.5rem;
        margin: 1rem 0;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
    
    .empty-title {
        font-size: 1.6rem;
    }
    
    .empty-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-btn, .secondary-btn, .outline-btn {
        width: 200px;
        justify-content: center;
    }
    
    .empty-shapes {
        width: 150px;
        height: 150px;
    }
    
    .shape-1 {
        width: 90px;
        height: 90px;
    }
    
    .shape-2 {
        width: 60px;
        height: 60px;
        top: 45px;
    }
    
    .shape-3 {
        width: 45px;
        height: 45px;
        left: 52px;
    }
}

@media (max-width: 480px) {
    .header-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        align-self: center;
    }
    
    .tags-cloud {
        gap: 0.5rem;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .document-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-meta-info {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .doc-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .download-btn-large {
        padding: 1rem 2rem;
    }
    
    .download-text {
        font-size: 1.1rem;
    }

    /* 分页小屏幕适配 */
    .pagination-pages {
        gap: 0.25rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }

    /* 空状态小屏幕适配 */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-suggestions {
        margin-bottom: 2rem;
    }
    
    .suggestion-item {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .suggestion-icon {
        font-size: 1rem;
    }
}

/* 打印样式 */
@media print {
    .pagination {
        display: none;
    }
}