/* 资讯中心样式 */

.news-hero {
    background: linear-gradient(135deg, #34a853 0%, #00bcd4 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.news-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 8px; }

.news-section { padding: 60px 0; background: var(--gray-50); }

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

/* Tabs */
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 8px 20px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.news-tab.active,
.news-tab:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 置顶 */
.news-featured {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.featured-img {
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
}

.featured-img span {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.featured-info { padding: 24px 24px 24px 0; }

.featured-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.featured-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 文章列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.news-content { padding: 16px 20px 16px 0; }

.news-cat {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-content p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-500);
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

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

.side-widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.side-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hot-list {
    list-style: none;
    counter-reset: hot;
}

.hot-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.hot-list li:hover {
    color: var(--primary);
}

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

.hot-list .rank {
    display: inline-flex;
    width: 22px;
    height: 22px;
    background: var(--gray-100);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
}

.hot-list li:nth-child(1) .rank { background: #ea4335; color: #fff; }
.hot-list li:nth-child(2) .rank { background: #f9ab00; color: #fff; }
.hot-list li:nth-child(3) .rank { background: #34a853; color: #fff; }

.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.download-list li:last-child { border-bottom: none; }

.download-list a {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
}

.newsletter p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.newsletter input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-featured { grid-template-columns: 1fr; }
    .featured-img { height: 140px; }
    .featured-info { padding: 0 24px 24px; }
}

@media (max-width: 768px) {
    .news-item { grid-template-columns: 100px 1fr; }
    .news-thumb { height: 80px; font-size: 24px; }
    .news-content { padding: 12px 12px 12px 0; }
    .news-content h3 { font-size: 14px; }
}
