/* ===== 新闻中心特有样式 ===== */

/* 面包屑 */
.breadcrumb {
    padding: calc(var(--header-h) + 24px) 0 16px;
    background: var(--gray-50);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-2);
    transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* 新闻 Hero */
.news-hero {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #1e1b4b 0%, #0a0a1a 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.news-hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.news-hero .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.news-hero .orb-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-2);
    bottom: -100px;
    right: -100px;
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

.news-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin: 16px 0 12px;
    letter-spacing: -0.02em;
}

.news-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* 主体布局 */
.news-main {
    padding: 60px 0 100px;
    background: var(--bg);
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 文章卡片 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-thumb {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    position: relative;
}

.article-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='30' r='1' fill='rgba(255,255,255,0.4)'/%3E%3Ccircle cx='80' cy='60' r='1.5' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-body {
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-2);
}

.article-cat {
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
}

.article-stats {
    display: flex;
    gap: 16px;
}

.article-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
    cursor: pointer;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    padding: 24px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    transition: all var(--transition);
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.category-list .count {
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.category-list li a.active .count,
.category-list li a:hover .count {
    background: var(--primary);
    color: white;
}

.hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-list li {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.hot-list li:last-child { border-bottom: none; padding-bottom: 0; }

.hot-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.hot-list li:nth-child(1) .hot-num { background: linear-gradient(135deg, #ef4444, #f59e0b); color: white; }
.hot-list li:nth-child(2) .hot-num { background: linear-gradient(135deg, #f59e0b, #eab308); color: white; }
.hot-list li:nth-child(3) .hot-num { background: linear-gradient(135deg, #eab308, #facc15); color: white; }

.hot-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-info h4:hover { color: var(--primary); }

.hot-info span {
    font-size: 11px;
    color: var(--gray-500);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 5px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-2);
    transition: all var(--transition);
}

.tag-cloud a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.contact-widget {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.contact-widget h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-widget p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.contact-widget .btn {
    background: white;
    color: var(--primary);
}

.contact-widget .btn:hover {
    transform: translateY(-2px);
}

/* ===== 文章详情页 ===== */
.article-page {
    padding: calc(var(--header-h) + 24px) 0 80px;
    background: var(--bg);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-main {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-2);
    font-size: 14px;
}

.article-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: var(--radius);
    margin-bottom: 32px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 16px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-2);
    font-style: italic;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.article-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 14px;
    color: var(--accent);
}

/* 标签与分享 */
.article-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-tags strong { font-size: 14px; }

.article-tags a {
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--text-2);
    border-radius: 100px;
    font-size: 13px;
    transition: all var(--transition);
}

.article-tags a:hover {
    background: var(--primary);
    color: white;
}

/* 上下篇 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-nav-item {
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.article-nav-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.article-nav-item.next { text-align: right; }

.article-nav-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.article-nav-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 详情页侧边栏 */
.article-sidebar > .widget + .widget { margin-top: 24px; }

.toc {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    padding: 8px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    font-size: 14px;
}

.toc-list li.active {
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.toc-list a {
    color: var(--text-2);
}

.toc-list li.active a { color: var(--primary); }

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; color: var(--text); }
.empty-state p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .news-layout, .article-layout {
        grid-template-columns: 1fr;
    }
    .article-card {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .article-card {
        grid-template-columns: 1fr;
    }
    .article-thumb {
        aspect-ratio: 16/9;
    }
    .article-main { padding: 24px; }
    .article-header h1 { font-size: 24px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-item.next { text-align: left; }
    .article-info { gap: 12px; font-size: 13px; }
}