﻿/* ═══════════════ 软路由门户 - 中华网风格 ═══════════════ */

:root {
  --red: #c00;
  --red-dark: #a00;
  --red-light: #e00;
  --blue: #1e6bb8;
  --blue-dark: #155a9c;
  --bg: #f4f4f4;
  --bg-dark: #222;
  --text: #333;
  --text-light: #666;
  --border: #ddd;
  --white: #fff;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.main-content { min-height: 500px; }

/* ─── 顶部工具栏 ─── */
.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: 12px;
  height: 30px;
  line-height: 30px;
}
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #ccc; margin-left: 15px; }
.top-bar a:hover { color: var(--white); }

/* ─── 页眉 ─── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a {
  font-size: 32px;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 2px;
}
.logo a:hover { color: var(--red-dark); }
.logo-slogan { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.header-search form { display: flex; }
.header-search input {
  width: 220px;
  padding: 7px 12px;
  border: 2px solid var(--red);
  border-right: none;
  outline: none;
  font-size: 13px;
}
.header-search button {
  padding: 7px 16px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  cursor: pointer;
  font-size: 13px;
}
.header-search button:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ─── 主导航 ─── */
.main-nav {
  background: var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav ul { display: flex; }
.main-nav li { }
.main-nav a {
  display: block;
  padding: 12px 22px;
  color: var(--white);
  font-size: 15px;
  font-weight: bold;
}
.main-nav li:hover,
.main-nav li.active { background: var(--red-dark); }
.main-nav a:hover { color: var(--white); }

/* ─── 首页通用区块 ─── */
.section { margin-bottom: 15px; background: var(--white); }
.section-header {
  border-bottom: 2px solid var(--red);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header h2 { font-size: 18px; color: var(--red); }
.section-header .more { font-size: 13px; color: var(--text-light); }
.section-body { padding: 15px; }

/* ─── 头条区域 ─── */
.hero-section { margin-bottom: 15px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.hero-main {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.hero-main .hero-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hero-main .hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  padding: 30px 20px 15px;
  color: var(--white);
}
.hero-main .hero-overlay h3 { font-size: 22px; margin-bottom: 6px; }
.hero-main .hero-overlay h3 a { color: var(--white); }
.hero-main .hero-overlay p { font-size: 13px; opacity: .85; }

.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hero-item {
  flex: 1;
  position: relative;
  background: var(--white);
  overflow: hidden;
  display: flex;
}
.hero-item .hero-img { width: 160px; height: 106px; object-fit: cover; flex-shrink: 0; }
.hero-item .hero-text { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.hero-item .hero-text h4 { font-size: 14px; margin-bottom: 4px; }
.hero-item .hero-text h4 a { color: var(--text); }
.hero-item .hero-text h4 a:hover { color: var(--red); }
.hero-item .hero-text p { font-size: 12px; color: var(--text-light); }

/* ─── 推荐区块（3列网格） ─── */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.featured-card { }
.featured-card .card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.featured-card h3 { margin: 10px 0 5px; font-size: 15px; }
.featured-card h3 a { color: var(--text); }
.featured-card h3 a:hover { color: var(--red); }
.featured-card p { font-size: 12px; color: var(--text-light); }

/* ─── 双列布局 ─── */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }

/* ─── 文章列表样式 ─── */
.article-list { }
.article-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.article-item:last-child { border-bottom: none; }
.article-item .article-img {
  width: 120px; height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 15px;
}
.article-item .article-info { flex: 1; }
.article-item h3 { font-size: 16px; margin-bottom: 6px; }
.article-item h3 a { color: var(--text); }
.article-item h3 a:hover { color: var(--red); }
.article-item .article-meta {
  font-size: 12px;
  color: var(--text-light);
}
.article-item .article-meta span { margin-right: 12px; }
.article-item .article-summary {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 侧边栏 ─── */
.sidebar .widget {
  background: var(--white);
  margin-bottom: 15px;
}
.sidebar .widget-header {
  border-bottom: 2px solid var(--red);
  padding: 10px 15px;
  font-weight: bold;
  font-size: 15px;
  color: var(--red);
}
.sidebar .widget-body { padding: 10px 15px; }
.sidebar .widget-body li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.sidebar .widget-body li:last-child { border-bottom: none; }
.sidebar .widget-body li a { color: var(--text); display: block; }
.sidebar .widget-body li a:hover { color: var(--red); }
.sidebar .widget-body li .date { float: right; color: var(--text-light); font-size: 12px; }

/* ─── 产品卡片 ─── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  padding-bottom: 15px;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.product-card .prod-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-card h3 { font-size: 16px; margin: 10px 0 5px; }
.product-card .price { color: var(--red); font-size: 18px; font-weight: bold; }
.product-card .specs { font-size: 12px; color: var(--text-light); padding: 0 10px; margin: 6px 0; }

/* ─── 文章详情页 ─── */
.article-detail { background: var(--white); padding: 25px; }
.article-detail h1 { font-size: 26px; margin-bottom: 10px; }
.article-detail .meta {
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.article-detail .meta span { margin-right: 20px; }
.article-detail .body { font-size: 15px; line-height: 1.8; }
.article-detail .body p { margin-bottom: 12px; }

/* ─── 分页 ─── */
.pagination {
  text-align: center;
  padding: 20px 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.pagination .current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.pagination a:hover { background: var(--bg); }

/* ─── 产品详情 ─── */
.product-detail { background: var(--white); padding: 25px; }
.product-detail .prod-top { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 20px; }
.product-detail .prod-img { width: 100%; height: auto; }
.product-detail .prod-info h1 { font-size: 24px; margin-bottom: 10px; }
.product-detail .prod-info .price { font-size: 28px; color: var(--red); font-weight: bold; margin-bottom: 15px; }
.product-detail .specs-table { width: 100%; border-collapse: collapse; }
.product-detail .specs-table td {
  padding: 6px 10px;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.product-detail .specs-table td:first-child { font-weight: bold; width: 100px; color: var(--text-light); }

/* ─── 搜索页 ─── */
.search-page { background: var(--white); padding: 25px; }
.search-page h1 { font-size: 20px; margin-bottom: 15px; }
.search-page h1 span { color: var(--red); }

/* ─── 页脚 ─── */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 30px 0 0;
  margin-top: 20px;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #444;
}
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.8; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 12px;
}


/* ═══════════════ 广告和变现模块 ═══════════════ */
.ad-slot { text-align: center; margin: 10px 0; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-code { line-height: 0; }
.ad-code ins { margin: 0 auto; }
.ad-slot.ad-sidebar_top,
.ad-slot.ad-sidebar_bottom { margin: 0 0 15px 0; }
.ad-slot.ad-footer_banner { padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: #fafafa; }
.ad-slot.ad-article_embed { margin: 20px 0; padding: 15px 0; border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd; }
.ad-slot.ad-floating { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.ad-text-link { display: inline-block; padding: 8px 16px; background: var(--red); color: #fff; border-radius: 4px; font-size: 14px; }
.ad-text-link:hover { background: var(--red-dark); color: #fff; }

.affiliate-section { margin-bottom: 15px; background: #fff; }
.affiliate-section .badge { font-size: 11px; background: #fff7e6; color: #d48806; padding: 2px 8px; border-radius: 3px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 15px; }
.affiliate-card { display: block; border: 1px solid #eee; border-radius: 8px; padding: 12px; text-decoration: none; transition: box-shadow .2s; }
.affiliate-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.affiliate-card h4 { font-size: 14px; color: #333; margin: 6px 0; }
.aff-price { font-size: 18px; font-weight: bold; color: var(--red); }
.aff-commission { font-size: 11px; color: #52c41a; background: #f6ffed; padding: 1px 6px; border-radius: 3px; }

.donate-cta { padding: 20px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; text-align: center; margin: 15px 0; }
.donate-cta p { font-size: 13px; color: #666; margin-bottom: 10px; }
.donate-btn { display: inline-block; padding: 8px 20px; background: var(--red); color: #fff; border-radius: 4px; margin: 0 5px; font-size: 14px; }
.donate-btn:hover { background: var(--red-dark); color: #fff; }


/* ═══════════════ 新增功能模块样式 ═══════════════ */

/* 导航用户区 */


.nav-user { padding: 0 10px; }
.nav-user-btn { display: block; padding: 8px 18px; background: rgba(255,255,255,.2); color: #fff; border-radius: 4px; font-size: 13px; font-weight: bold; }
.nav-user-btn:hover { background: rgba(255,255,255,.35); color: #fff; }

/* 论坛 */
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th { background: #fafafa; padding: 10px 12px; text-align: left; font-size: 13px; font-weight: bold; color: #666; border-bottom: 2px solid var(--red); }
.forum-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 13px; vertical-align: middle; }
.forum-table .thread-title { font-size: 14px; font-weight: bold; }
.forum-table .thread-title a { color: #333; }
.forum-table .thread-title a:hover { color: var(--red); }
.thread-meta { font-size: 11px; color: #999; margin-top: 3px; }
.forum-category { display: inline-block; padding: 2px 8px; background: #f0f5ff; color: var(--blue); border-radius: 3px; font-size: 11px; }
.pin-badge { background: var(--red); color: #fff; padding: 1px 5px; border-radius: 2px; font-size: 10px; margin-right: 4px; }
.essence-badge { background: #faad14; color: #fff; padding: 1px 5px; border-radius: 2px; font-size: 10px; }
.post-content { line-height: 1.8; font-size: 14px; padding: 15px; background: #fafafa; border-radius: 8px; }
.reply-item { padding: 15px 0; border-bottom: 1px solid #eee; }
.reply-item:last-child { border-bottom: none; }
.reply-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.floor-num { float: right; color: #ccc; font-size: 18px; font-weight: bold; }

/* 固件下载 */
.firmware-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.firmware-card { border: 1px solid #eee; border-radius: 8px; padding: 18px; transition: box-shadow .2s; }
.firmware-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.firmware-card h3 { font-size: 16px; margin-bottom: 6px; }
.firmware-card .fw-meta { font-size: 12px; color: #999; }
.firmware-card .fw-meta span { margin-right: 12px; }
.firmware-card .fw-actions { margin-top: 12px; display: flex; gap: 8px; }
.fw-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; margin-right: 4px; }
.fw-badge.official { background: #f6ffed; color: #52c41a; }
.fw-badge.donation { background: #fff7e6; color: #d48806; }
.download-btn { display: inline-block; padding: 6px 16px; background: var(--red); color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }
.download-btn:hover { background: var(--red-dark); color: #fff; }
.fw-rating { color: #faad14; font-size: 13px; }

/* 商城 */
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.shop-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.shop-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.shop-card .shop-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.shop-card .shop-info { padding: 12px; }
.shop-card h4 { font-size: 14px; margin-bottom: 6px; }
.shop-card h4 a { color: #333; }
.shop-card .shop-price { font-size: 20px; font-weight: bold; color: var(--red); }
.shop-card .shop-original { font-size: 12px; color: #999; text-decoration: line-through; margin-left: 6px; }
.shop-card .shop-commission { font-size: 11px; color: #52c41a; }
.shop-card .shop-platform { font-size: 11px; color: #888; }
.shop-badge { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 10px; margin-right: 3px; }
.shop-badge.hot { background: #fff2f0; color: #ff4d4f; }
.shop-badge.new { background: #f6ffed; color: #52c41a; }
.coupon-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
.coupon-item { border: 1px dashed var(--red); border-radius: 4px; padding: 6px 12px; font-size: 12px; }

/* 用户中心 */
.user-header { display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; border-radius: 8px; margin-bottom: 15px; }
.user-avatar { width: 64px; height: 64px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.user-stats { display: flex; gap: 30px; }
.user-stat { text-align: center; }
.user-stat .num { font-size: 22px; font-weight: bold; color: var(--red); }
.user-stat .label { font-size: 12px; color: #999; }
.user-level { color: #faad14; font-weight: bold; }
.checkin-btn { padding: 8px 24px; border-radius: 4px; border: none; font-size: 14px; cursor: pointer; }
.checkin-btn.done { background: #f0f0f0; color: #999; }
.checkin-btn.active { background: var(--red); color: #fff; }

/* 积分商城 & 签到 */
.points-bar { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.points-bar .points-num { font-size: 36px; font-weight: bold; }
.points-bar .points-label { font-size: 13px; opacity: .85; margin-left: 8px; }

/* 响应式 */


/* ============================================== Large Portal Enhancement 2026 ============================================== */

.breadcrumb { padding: 8px 0; font-size: 12px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }
.breadcrumb .current { color: var(--text); }

.main-nav li { position: relative; }
.main-nav li .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 200; border-radius: 0 0 4px 4px; }
.main-nav li:hover .sub-menu { display: block; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { color: #333; padding: 10px 18px; border-bottom: 1px solid #f0f0f0; font-weight: normal; font-size: 13px; }
.main-nav .sub-menu a:hover { background: #f8f8f8; color: var(--red); }
.main-nav .sub-menu li:last-child a { border-bottom: none; }

.nav-hotwords { margin-left: auto; display: flex; align-items: center; font-size: 12px; color: rgba(255,255,255,.7); padding: 0 15px; }
.nav-hotwords a { color: rgba(255,255,255,.7); margin-left: 8px; }
.nav-hotwords a:hover { color: #fff; }
.nav-hotwords .hot { color: #ff6; }

.layout-2col { display: grid; grid-template-columns: 1fr 330px; gap: 20px; }
.layout-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }

.channel-header { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 30px 0; margin-bottom: 20px; }
.channel-header h1 { font-size: 28px; margin-bottom: 6px; }
.channel-header p { font-size: 14px; opacity: .85; }
.channel-nav-links { margin-top: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.channel-nav-links a { padding: 6px 16px; background: rgba(255,255,255,.2); border-radius: 20px; color: #fff; font-size: 13px; }
.channel-nav-links a:hover { background: rgba(255,255,255,.35); }
.channel-nav-links a.active { background: #fff; color: var(--red); font-weight: bold; }

.article-list-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.article-list-item:last-child { border-bottom: none; }
.article-list-img { width: 220px; min-height: 140px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.article-list-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.article-list-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.article-list-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; line-height: 1.4; }
.article-list-title a { color: #222; }
.article-list-title a:hover { color: var(--red); }
.article-list-summary { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-list-meta { font-size: 12px; color: #aaa; }
.article-list-meta span { margin-right: 15px; }
.article-list-meta .tag { display: inline-block; padding: 1px 6px; background: #f0f0f0; border-radius: 2px; color: #666; }
.article-list-meta .tag:hover { background: var(--red); color: #fff; }

.rank-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 8px; }
.rank-num { width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 3px; font-size: 12px; font-weight: bold; flex-shrink: 0; background: #f0f0f0; color: #999; }
.rank-num.top1 { background: var(--red); color: #fff; }
.rank-num.top2 { background: #e68a2e; color: #fff; }
.rank-num.top3 { background: #d4a017; color: #fff; }
.rank-list a { flex: 1; font-size: 13px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--red); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 0; }
.tag-cloud a { display: inline-block; padding: 3px 10px; background: #f5f5f5; border-radius: 3px; font-size: 12px; color: #666; transition: all .2s; }
.tag-cloud a:hover { background: var(--red); color: #fff; }

.ad-placeholder { background: #f9f9f9; border: 1px dashed #ddd; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px; min-height: 90px; margin-bottom: 15px; }
.ad-banner { width: 100%; max-height: 120px; object-fit: contain; display: block; margin: 0 auto; border-radius: 4px; }
.ad-sidebar { width: 100%; max-height: 250px; object-fit: contain; display: block; margin: 0 auto; border-radius: 4px; }
.ad-float { position: fixed; bottom: 20px; right: 20px; z-index: 999; max-width: 300px; box-shadow: 0 4px 20px rgba(0,0,0,.2); border-radius: 8px; overflow: hidden; }
.ad-float .ad-close { position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer; font-size: 14px; line-height: 24px; text-align: center; }

.special-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.special-card { position: relative; border-radius: 8px; overflow: hidden; height: 140px; }
.special-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.special-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 20px 12px 10px; color: #fff; }
.special-overlay h4 { font-size: 14px; }
.special-overlay p { font-size: 11px; opacity: .8; }

.friend-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 0; }
.friend-links a { font-size: 12px; color: #888; padding: 2px 8px; border: 1px solid #eee; border-radius: 3px; }
.friend-links a:hover { color: var(--red); border-color: var(--red); }

.pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #333; background: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .disabled { color: #ccc; border-color: #eee; cursor: not-allowed; }

.article-detail { background: #fff; padding: 30px; border-radius: 8px; }
.article-title-detail { font-size: 26px; font-weight: bold; line-height: 1.4; margin-bottom: 15px; color: #222; }
.article-meta-detail { font-size: 13px; color: #999; padding-bottom: 15px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.article-meta-detail span { margin-right: 20px; }
.article-body { font-size: 16px; line-height: 1.9; color: #333; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 15px 0; }
.article-body h2, .article-body h3 { margin: 20px 0 10px; color: #222; }
.article-body blockquote { border-left: 4px solid var(--red); padding: 10px 20px; background: #f9f9f9; margin: 15px 0; color: #666; }
.article-tags { padding: 15px 0; margin-top: 20px; border-top: 1px solid #eee; display: flex; gap: 6px; flex-wrap: wrap; }
.article-tags a { padding: 3px 10px; background: #f5f5f5; border-radius: 3px; font-size: 12px; color: #666; }
.article-tags a:hover { background: var(--red); color: #fff; }
.article-nav { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid #eee; margin-top: 20px; }
.article-nav a { font-size: 14px; color: #555; max-width: 45%; }
.article-nav a:hover { color: var(--red); }

.related-section { margin-top: 30px; }
.related-section h3 { font-size: 18px; color: #222; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.related-card { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.related-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.related-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.related-card .rc-body { padding: 8px 10px; }
.related-card .rc-body h4 { font-size: 13px; line-height: 1.4; }
.related-card .rc-body h4 a { color: #333; }
.related-card .rc-body h4 a:hover { color: var(--red); }
.related-card .rc-body .rc-date { font-size: 11px; color: #bbb; margin-top: 4px; }

.comment-section { margin-top: 30px; background: #fff; border-radius: 8px; padding: 20px; }
.comment-section h3 { font-size: 18px; color: #222; margin-bottom: 15px; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: var(--red); }
.comment-form .form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.btn-submit { padding: 8px 28px; background: var(--red); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-submit:hover { background: var(--red-dark); }

.alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 15px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.alert-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #0050b3; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #135200; }
.alert-warning { background: #fffbe6; border: 1px solid #ffe58f; color: #613400; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #820014; }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.stat-card .stat-num { font-size: 28px; font-weight: bold; color: var(--red); }
.stat-card .stat-label { font-size: 12px; color: #999; margin-top: 4px; }

.btn { display: inline-block; padding: 8px 20px; border-radius: 4px; font-size: 14px; border: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border: 1px solid var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

.tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 15px; }
.tabs .tab-item { padding: 8px 18px; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs .tab-item:hover { color: var(--red); }
.tabs .tab-item.active { color: var(--red); border-bottom-color: var(--red); font-weight: bold; }

.panel { background: #fff; border-radius: 6px; border: 1px solid #eee; margin-bottom: 15px; overflow: hidden; }
.panel-header { padding: 12px 15px; background: #fafafa; border-bottom: 1px solid #eee; font-weight: bold; font-size: 14px; }
.panel-body { padding: 15px; }

.back-to-top { position: fixed; bottom: 80px; right: 20px; width: 40px; height: 40px; line-height: 40px; text-align: center; background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; cursor: pointer; display: none; z-index: 99; font-size: 18px; }
.back-to-top:hover { background: rgba(0,0,0,.7); }

.empty-state { text-align: center; padding: 60px 20px; color: #ccc; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 15px; }
.empty-state p { font-size: 14px; }

.compare-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 13px; }
.compare-table th, .compare-table td { padding: 10px 12px; border: 1px solid #eee; text-align: center; }
.compare-table th { background: var(--red); color: #fff; font-weight: bold; }
.compare-table tr:nth-child(even) { background: #fafafa; }
.compare-table tr:hover { background: #f0f7ff; }

.steps { display: flex; margin: 20px 0; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::after { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: #eee; z-index: 0; }
.step-item:last-child::after { display: none; }
.step-num { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: #f0f0f0; color: #999; display: inline-block; font-weight: bold; position: relative; z-index: 1; font-size: 14px; }
.step-item.active .step-num { background: var(--red); color: #fff; }
.step-label { font-size: 12px; color: #999; margin-top: 6px; }
.step-item.active .step-label { color: var(--red); font-weight: bold; }

@media (max-width: 768px) {
  .layout-2col, .layout-3col { grid-template-columns: 1fr; }
  .special-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .article-list-item { flex-direction: column; }
  .article-list-img { width: 100%; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .nav-hotwords { display: none; }
  .header-search input { width: 140px; }
}



/* ─── 主导航（完整重写） ─── */
.main-nav .container { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav > .container > ul > li { position: relative; flex-shrink: 0; }
.main-nav > .container > ul > li > a { display: block; padding: 12px 22px; color: #fff; font-size: 15px; font-weight: bold; }
.main-nav > .container > ul > li:hover,
.main-nav > .container > ul > li.active { background: var(--red-dark); }
.main-nav > .container > ul > li > a:hover { color: #fff; }

/* 一级菜单横排 */
.main-nav > .container > ul { flex-direction: row; }

/* 二级菜单 - 默认隐藏 */
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 200; border-radius: 0 0 4px 4px; padding: 0; }
.main-nav ul ul li { display: block; }
.main-nav ul ul a { color: #333; padding: 10px 18px; border-bottom: 1px solid #f0f0f0; font-weight: normal; font-size: 13px; display: block; white-space: nowrap; }
.main-nav ul ul a:hover { background: #f8f8f8; color: var(--red); }
.main-nav ul ul li:last-child a { border-bottom: none; }

/* hover显示二级菜单 */
.main-nav li:hover > ul { display: block; }

/* 移动端 */
.mobile-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px 12px; }
@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; }
  .main-nav > .container > ul { display: none; flex-direction: column; width: 100%; }
  .main-nav > .container > ul.mobile-open { display: flex; }
  .main-nav ul ul { position: static; box-shadow: none; background: #b00; border-radius: 0; }
  .main-nav ul ul a { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.1); }
}

/* ============================================== 首页美化增强 ============================================== */

/* --- 头条区增强 --- */
.hero-tag { display:inline-block; background:#ff4d4f; color:#fff; font-size:11px; padding:2px 8px; border-radius:3px; margin-bottom:6px; }

/* --- 快速入口 --- */
.quick-entry { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:18px; }
.qe-item { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:16px 8px; border-radius:12px; color:#fff; text-decoration:none; transition:transform .2s,box-shadow .2s; min-height:80px; box-shadow:0 4px 15px rgba(0,0,0,.1); }
.qe-item:hover { transform:translateY(-4px); box-shadow:0 8px 25px rgba(0,0,0,.15); color:#fff; }
.qe-icon { font-size:26px; margin-bottom:4px; }
.qe-text { font-size:12px; font-weight:bold; text-shadow:0 1px 2px rgba(0,0,0,.2); }

/* --- 双栏布局模块 --- */
.two-col-section { display:flex; gap:0; margin-bottom:15px; }
.two-col-section .section { flex:1; margin:0; }
.two-col-section .section:first-child { margin-right:15px; }

/* --- 单元间距 --- */
.section { border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.section-body { padding:12px 15px; }
.section-header { padding:10px 15px; }
.featured-card { border-radius:8px; transition:transform .2s,box-shadow .2s; }
.featured-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.12); }
.fc-cat { display:inline-block; padding:1px 6px; background:var(--red); color:#fff; border-radius:2px; font-size:10px; margin-bottom:4px; }

/* --- 文章列表圆角 --- */
.article-list-item { border-radius:6px; }
.article-list-item:hover { background:#fafafa; }
.article-list-img { border-radius:6px; }

/* --- 广告位深色 --- */
.ad-placeholder { background:linear-gradient(135deg,#f5f7fa,#c3cfe2); border:1px dashed #bbb; color:#999; min-height:60px; border-radius:8px; }

/* --- 底部 --- */
.friend-links a { padding:4px 12px; border-radius:4px; font-size:12px; }

/* --- 侧边栏卡片 --- */
.widget { border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); }

/* --- 响应式 --- */
@media (max-width: 768px) {
  .quick-entry { grid-template-columns:repeat(3,1fr); }
  .two-col-section { flex-direction:column; }
  .two-col-section .section:first-child { margin-right:0; margin-bottom:15px; }
  .two-col-section .section { margin-left:0 !important; }
}

/* =====  Hero / Carousel  ===== */
.hero-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
}
.carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
}
.carousel-tag {
    display: inline-block;
    background: var(--red, #e63946);
    color: #fff;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}
.carousel-overlay h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
}
.carousel-overlay p {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}
.carousel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.carousel-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}
.carousel-btn-primary {
    background: var(--red, #e63946);
    color: #fff;
    border: 2px solid var(--red, #e63946);
}
.carousel-btn-primary:hover {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}
.carousel-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.carousel-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.indicator.active {
    background: #fff;
    transform: scale(1.25);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(4px);
}
.carousel-arrow:hover {
    background: rgba(255,255,255,0.35);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-arrow:focus { outline: none; }

@media (max-width: 768px) {
    .carousel-img { height: 260px; }
    .carousel-overlay h2 { font-size: 24px; }
    .carousel-overlay p { font-size: 14px; }
    .carousel-btn { padding: 8px 18px; font-size: 13px; }
    .carousel-arrow { width: 32px; height: 32px; font-size: 18px; }
}

/* ===== Hero + News Side-by-Side ===== */
.hero-news-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}
.hero-carousel-wrap {
    flex: 0 0 65%;
    max-width: 65%;
}
.hero-news-side {
    flex: 1;
    min-width: 0;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.news-side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 10px;
    border-bottom: 2px solid var(--red, #e63946);
}
.news-side-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--red, #e63946);
}
.news-more { font-size: 13px; color: var(--text-light, #999); text-decoration: none; }
.news-more:hover { color: var(--red, #e63946); }
.news-side-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.news-side-item { border-bottom: 1px solid var(--border, #eee); }
.news-side-item:last-child { border-bottom: none; }
.news-side-item a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text, #333);
    transition: background 0.2s;
    gap: 10px;
}
.news-side-item a:hover { background: var(--bg-hover, #f5f5f5); }
.news-side-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-side-meta { flex-shrink: 0; font-size: 12px; color: var(--text-light, #aaa); }
.news-side-focus { border-bottom: 1px solid var(--border, #eee); }
.news-side-focus a { display: block; padding: 0; text-decoration: none; color: var(--text, #333); overflow: hidden; }
.news-side-focus a:hover { background: var(--bg-hover, #fafafa); }
.news-side-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.news-side-focus .news-side-title {
    display: block; padding: 10px 18px 2px; font-size: 15px;
    font-weight: 700; line-height: 1.4; white-space: normal;
}
.news-side-desc { display: block; padding: 0 18px 4px; font-size: 13px; color: var(--text-light, #888); line-height: 1.4; }
.news-side-focus .news-side-meta { display: block; padding: 0 18px 8px; }
@media (max-width: 768px) {
    .hero-news-row { flex-direction: column; }
    .hero-carousel-wrap { flex: 0 0 100%; max-width: 100%; }
}

/* ========================================
   Portal Layout (Inspired by major portals)
   ======================================== */

/* ----- Hero Section: Carousel Left + News Right ----- */
.portal-hero {
    margin-bottom: 20px;
}
.portal-hero-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.ph-carousel {
    flex: 0 0 65%;
    max-width: 65%;
}
.ph-carousel .hero-carousel {
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.ph-news {
    flex: 1;
    min-width: 0;
    background: var(--bg-card,#fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* News Tabs */
.news-tabs {
    display: flex;
    border-bottom: 2px solid var(--red,#e63946);
    background: #fafafa;
}
.news-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.news-tab.active {
    background: var(--red,#e63946);
    color: #fff;
}
.news-tab:hover:not(.active) {
    color: var(--red,#e63946);
    background: #f0f0f0;
}
.news-tab-content { display: none; }
.news-tab-content.active { display: block; }

/* Portal News List */
.portal-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pn-item {
    border-bottom: 1px solid #eee;
}
.pn-item:last-child { border-bottom: none; }
.pn-item a {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    text-decoration: none;
    color: #333;
    transition: background .2s;
    gap: 8px;
}
.pn-item a:hover { background: #f7f7f7; }
.pn-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-meta { font-size: 11px; color: #aaa; flex-shrink: 0; }

/* Focus first item */
.pn-focus { border-bottom: 1px solid #eee; }
.pn-focus a { display: block; padding: 0; text-decoration: none; color: #333; }
.pn-focus a:hover { background: #fafafa; }
.pn-img { width: 100%; height: 145px; object-fit: cover; display: block; }
.pn-focus .pn-title {
    display: block; padding: 10px 16px 2px;
    font-size: 16px; font-weight: 700; line-height: 1.4;
    white-space: normal;
}
.pn-focus .pn-desc {
    display: block; padding: 0 16px 4px;
    font-size: 13px; color: #888; line-height: 1.4;
}
.pn-focus .pn-meta { display: block; padding: 0 16px 8px; }

/* ----- Section Block ----- */
.section-block {
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red,#e63946);
}
.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    padding-left: 12px;
    border-left: 4px solid var(--red,#e63946);
    line-height: 1;
}
.section-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}
.section-more:hover { color: var(--red,#e63946); }

/* ----- Featured Topics Grid ----- */
.portal-topics {
    margin-bottom: 24px;
}
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.topic-card-big {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}
.topic-card-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.topic-card-big a { text-decoration: none; color: #fff; display: block; }
.topic-card-img {
    height: 160px;
    display: block;
}
.topic-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 18px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.topic-card-overlay h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}
.topic-card-overlay p {
    margin: 0;
    font-size: 13px;
    opacity: .85;
}

/* ----- Two Column Layout ----- */
.portal-two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.portal-main {
    flex: 1;
    min-width: 0;
}
.portal-side {
    flex: 0 0 300px;
    max-width: 300px;
}

/* ----- Sidebar Cards ----- */
.side-card {
    background: var(--bg-card,#fff);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.side-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red,#e63946);
}
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.side-links li:last-child { border-bottom: none; }
.side-links a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
    display: block;
    padding-left: 8px;
}
.side-links a:hover { color: var(--red,#e63946); padding-left: 12px; }

.side-articles { list-style: none; margin: 0; padding: 0; }
.side-articles li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}
.side-articles li:last-child { border-bottom: none; }
.side-articles a {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}
.side-articles a:hover { color: var(--red,#e63946); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-item {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    text-decoration: none;
    transition: all .2s;
}
.tag-item:hover {
    background: var(--red,#e63946);
    color: #fff;
}

/* ----- News List (main area) ----- */
.news-list { }
.news-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
    width: 240px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.news-body { flex: 1; }
.news-body h3 { margin: 0 0 8px; font-size: 16px; }
.news-body h3 a { color: #222; text-decoration: none; }
.news-body h3 a:hover { color: var(--red,#e63946); }
.news-body p { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 8px; }
.news-meta { font-size: 12px; color: #aaa; display: flex; gap: 16px; }

/* ----- Firmware Grid ----- */
.firmware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.fw-card {
    background: var(--bg-card,#fff);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow .2s;
}
.fw-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.fw-card h4 { margin: 0 0 6px; font-size: 15px; }
.fw-card p { font-size: 13px; color: #666; margin: 0 0 10px; line-height: 1.4; }
.fw-meta { font-size: 12px; color: #999; margin-bottom: 6px; display: flex; gap: 12px; }
.fw-downloads { font-size: 12px; color: var(--red,#e63946); }
.fw-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 16px;
    background: var(--red,#e63946);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
.fw-btn:hover { background: #c1121f; }

/* ----- Product Grid ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.product-card {
    background: var(--bg-card,#fff);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.product-cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-card h4 {
    margin: 10px 12px 4px;
    font-size: 14px;
    line-height: 1.3;
}
.product-card h4 a { color: #222; text-decoration: none; }
.product-card h4 a:hover { color: var(--red,#e63946); }
.product-price {
    margin: 0 12px 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--red,#e63946);
}
.product-btn {
    display: block;
    margin: 0 12px 12px;
    padding: 6px 0;
    text-align: center;
    background: var(--red,#e63946);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
.product-btn:hover { background: #c1121f; }

/* ----- Forum Hot List ----- */
.forum-hot-list { }
.forum-hot-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}
.forum-hot-item:last-child { border-bottom: none; }
.hot-badge {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}
.forum-hot-item:nth-child(1) .hot-badge,
.forum-hot-item:nth-child(2) .hot-badge,
.forum-hot-item:nth-child(3) .hot-badge { background: var(--red,#e63946); }
.forum-hot-item a {
    flex: 1;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-hot-item a:hover { color: var(--red,#e63946); }
.hot-meta { font-size: 12px; color: #aaa; flex-shrink: 0; }

/* ----- Headlines Box ----- */
.headlines-box { }
.headline-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.headline-item:last-child { border-bottom: none; }
.headline-thumb { width: 120px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.headline-text { flex: 1; }
.headline-text h3 { margin: 0 0 4px; font-size: 14px; }
.headline-text h3 a { color: #222; text-decoration: none; }
.headline-text h3 a:hover { color: var(--red,#e63946); }
.headline-text p { font-size: 13px; color: #666; margin: 0 0 4px; line-height: 1.4; }
.headline-meta { font-size: 11px; color: #aaa; }

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .portal-two-col { flex-direction: column; }
    .portal-side { flex: 0 0 auto; max-width: 100%; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .firmware-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .portal-hero-inner { flex-direction: column; }
    .ph-carousel { flex: 0 0 100%; max-width: 100%; }
    .topic-grid { grid-template-columns: 1fr; }
    .firmware-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-thumb { width: 100%; height: auto; }
}

/* ===== Footer ICP ===== */
.footer-icp {
    text-align: center;
    padding: 8px 0 16px;
    font-size: 12px;
    color: #888;
}
.footer-icp a {
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.footer-icp a:hover { color: var(--red,#e63946); }
.footer-icp .sep { margin: 0 8px; color: #555; }
.footer-extra { text-align: center; }

/* ===== Footer ICP ===== */
.footer-icp {
    text-align: center;
    padding: 8px 0 16px;
    font-size: 12px;
    color: #888;
}
.footer-icp a {
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.footer-icp a:hover { color: var(--red,#e63946); }
.footer-icp .sep { margin: 0 8px; color: #555; }
.footer-extra { text-align: center; }

/* ===== Footer ICP ===== */
.footer-icp {
    text-align: center;
    padding: 8px 0 16px;
    font-size: 12px;
    color: #888;
}
.footer-icp a {
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.footer-icp a:hover { color: var(--red,#e63946); }
.footer-icp .sep { margin: 0 8px; color: #555; }
.footer-extra { text-align: center; }
