/* ===== 新闻页专用样式 ===== */

/* Banner 复用 products.css 的 .page-banner */
.page-banner {
    position: relative;
    padding: 160px 40px 80px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.banner-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 65%);
}
.banner-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.banner-container {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
}
.banner-title { font-size: 3rem; font-weight: 900; margin: 16px 0 20px; }
.banner-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; max-width: 600px; margin: 0 auto 24px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); }

/* ===== 新闻 Tab ===== */
.news-tab-section {
    padding: 22px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 100;
}
.news-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.news-tab {
    padding: 9px 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.news-tab:hover { border-color: var(--primary); color: var(--primary); }
.news-tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #000;
    font-weight: 600;
}

/* ===== 头条新闻 ===== */
.news-main-section {
    padding: 60px 0 0;
    background: var(--bg-primary);
}
.news-hero-card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}
.news-hero-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.news-hero-image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}
.news-hero-image .image-placeholder {
    width: 100%; height: 100%;
    min-height: 320px;
    display: flex; align-items: center; justify-content: center;
}
.hero-badge {
    position: absolute;
    top: 20px; left: 20px;
    padding: 5px 14px;
    background: var(--gradient-1);
    color: #000;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.news-hero-content {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.news-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 14px 0 16px;
}
.news-hero-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.news-hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* 分类标签 */
.news-category-tag {
    display: inline-block;
    padding: 3px 11px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--primary);
}
.tag-tech { background: rgba(0, 255, 136, 0.1); border-color: rgba(0, 255, 136, 0.25); color: var(--accent-green); }
.tag-company { background: rgba(100, 150, 255, 0.1); border-color: rgba(100, 150, 255, 0.25); color: #8aabff; }
.tag-show { background: rgba(255, 180, 0, 0.1); border-color: rgba(255, 180, 0, 0.25); color: #ffbe00; }
.tag-industry { background: rgba(255, 100, 100, 0.1); border-color: rgba(255, 100, 100, 0.25); color: #ff7a7a; }

/* ===== 新闻列表 + 侧边栏 ===== */
.news-list-section {
    padding: 50px 0 80px;
    background: var(--bg-primary);
}
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* 新闻条目 */
.news-list-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.news-list-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.news-list-thumb {
    border-radius: 10px;
    overflow: hidden;
    height: 130px;
}
.news-list-thumb .image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.news-list-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-items: flex-start;
}
.news-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    transition: var(--transition);
}
.news-list-item:hover .news-list-title { color: var(--primary); }
.news-list-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}
.news-list-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.news-list-meta .tag {
    font-size: 0.73rem;
    padding: 2px 8px;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
.page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--gradient-1); border-color: transparent; color: #000; font-weight: 700; }
.page-next { width: auto; padding: 0 16px; }
.page-dots { color: var(--text-muted); }

/* ===== 侧边栏 ===== */
.news-sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
}
.search-input {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    padding: 0 16px;
    background: rgba(0, 212, 255, 0.1);
    border: none;
    border-left: 1px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.search-btn:hover { background: rgba(0, 212, 255, 0.2); }

/* 热门列表 */
.hot-list { display: flex; flex-direction: column; gap: 14px; }
.hot-item { display: flex; align-items: flex-start; gap: 12px; }
.hot-rank {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-muted);
}
.hot-rank.rank-1 { background: var(--gradient-1); color: #000; }
.hot-rank.rank-2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #000; }
.hot-rank.rank-3 { background: linear-gradient(135deg, #f97316, #fb923c); color: #fff; }
.hot-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition);
}
.hot-title:hover { color: var(--primary); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { cursor: pointer; }
.tag-cloud .tag:hover { background: rgba(0, 212, 255, 0.16); border-color: var(--primary); }

/* ===== 隐藏 ===== */
.hidden { display: none !important; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
    .news-hero-card { grid-template-columns: 1fr; }
    .news-hero-image { min-height: 240px; }
    .banner-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .page-banner { padding: 120px 20px 60px; }
    .banner-title { font-size: 1.9rem; }
    .news-list-item { grid-template-columns: 1fr; }
    .news-list-thumb { height: 180px; }
    .news-hero-content { padding: 24px; }
    .news-hero-title { font-size: 1.2rem; }
}
