@charset "UTF-8";
/* 列表页面专用合并 CSS */
:root {
    --primary-color: #007BFF;
    --primary-dark: #0056b3;
    --primary-light: #e6f0ff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #f0f4f7;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 10px 0;
}

/* ========================================
   modellist 布局样式
======================================== */
.modellist-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.modellist-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.category-item:hover,
.category-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.category-item .count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.category-item.active .count {
    background: var(--primary-color);
    color: white;
}

.modellist-main {
    min-height: 600px;
}

/* ========================================
   新闻/列表样式
======================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list .news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 140px;
}

.news-list .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-list .news-image {
    width: 220px;
    min-width: 220px;
    height: auto;
    min-height: 140px;
    overflow: hidden;
    position: relative;
}

.news-list .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-list .news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-list .news-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list .news-main {
    flex: 1;
    min-width: 0;
}

.news-list .news-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(24, 144, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-list .news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-list .news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-list .news-title a:hover {
    color: var(--primary-color);
}

.news-list .news-excerpt {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list .news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.news-list .news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-list .news-source {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.news-list .news-source.source-original {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

/* ========================================
   分页样式
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 24px 0;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* ========================================
   响应式适配
======================================== */
@media (max-width: 1024px) {
    .modellist-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* 移动端隐藏侧边栏，改为弹层显示 */
    .modellist-sidebar {
        display: none;
    }

    .modellist-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        padding: 16px;
    }

    .news-list .news-card {
        flex-direction: column;
        align-items: stretch;
    }

    .news-list .news-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .news-list .news-content {
        padding: 16px 18px;
    }
}

/* ========================================
   modellist 弹层样式（移动端文档按钮触发）
======================================== */
.modellist-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modellist-popup.active {
    display: block;
    opacity: 1;
}

.modellist-popup__content {
    background: white;
    margin: 20px;
    border-radius: 12px;
    padding: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.modellist-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.modellist-popup__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modellist-popup__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px;
}

/* 弹层分类列表样式 */
.popup-widget-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.popup-widget-title:first-child {
    margin-top: 0;
}

.popup-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-category-list li {
    margin-bottom: 4px;
}

.popup-category-list a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popup-category-list a:hover,
.popup-category-list a:active {
    background: var(--primary-color);
    color: white;
}

/* 文章目录弹层样式 */
.popup-article-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-article-toc .toc-item {
    margin-bottom: 4px;
}

.popup-article-toc .toc-item a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popup-article-toc .toc-item.toc-h3 a {
    padding-left: 28px;
    font-size: 13px;
    color: var(--text-secondary);
}

.popup-article-toc .toc-item a:hover,
.popup-article-toc .toc-item a:active {
    background: var(--primary-color);
    color: white;
}
