/* PC端样式 */
* { box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; }

/* 头部 */
.site-header { background: #c0392b; padding: 0; }
.header-inner { display: flex; align-items: center; padding: 12px 0; }
.site-logo { color: #fff; font-size: 22px; font-weight: bold; text-decoration: none; flex: 1; }
.site-logo img { height: 40px; }
.logo-text { color: #fff; }
.site-logo:hover { text-decoration: none; color: #ffd; }
.header-search { display: flex; margin: 0 20px; }
.header-search input { width: 220px; height: 32px; border: none; border-radius: 16px 0 0 16px; padding: 0 15px; font-size: 13px; }
.header-search button { height: 32px; padding: 0 15px; background: #e74c3c; color: #fff; border: none; border-radius: 0 16px 16px 0; cursor: pointer; }
.header-search button:hover { background: #c0392b; }
/* 导航 */
.site-nav { background: rgba(0,0,0,0.2); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav ul li a { display: block; color: #fff; padding: 10px 18px; text-decoration: none; font-size: 14px; transition: background .2s; }
.site-nav ul li a:hover, .site-nav ul li.active a { background: #c0392b; text-decoration: none; }

/* 主容器 */
.main-container { margin-top: 20px; margin-bottom: 30px; }

/* 轮播 */
.banner-section { margin-bottom: 20px; border-radius: 6px; overflow: hidden; }
.carousel-caption { background: rgba(0,0,0,0.5); bottom: 0; left: 0; right: 0; text-align: left; padding: 10px 20px; }
.carousel-caption h4 { margin: 0; font-size: 16px; }

/* 新闻块 */
.news-block { background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.block-title { font-size: 18px; color: #333; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 2px solid #c0392b; }
.block-title .more-link { float: right; font-size: 13px; color: #888; font-weight: normal; }

/* 新闻卡片 */
.news-card { border: 1px solid #eee; border-radius: 4px; overflow: hidden; margin-bottom: 15px; transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.news-card a { text-decoration: none; color: inherit; display: block; }
.news-cover { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-cover-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #667eea, #764ba2); }
.news-info { padding: 10px; }
.news-category { background: #c0392b; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 2px; }
.news-title { font-size: 14px; margin: 6px 0 4px; line-height: 1.5; }
.news-meta { color: #aaa; font-size: 12px; margin: 0; }

/* 新闻列表 */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-bottom: 1px dashed #eee; padding: 8px 0; display: flex; }
.news-list li:last-child { border-bottom: none; }
.news-list .news-time { color: #aaa; font-size: 12px; min-width: 50px; }
.news-list li a { color: #333; text-decoration: none; flex: 1; }
.news-list li a:hover { color: #c0392b; }

/* 边栏 */
.sidebar-block { background: #fff; border-radius: 4px; padding: 15px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sidebar-title { font-size: 16px; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #c0392b; }
.hot-list { padding-left: 20px; margin: 0; }
.hot-list li { margin-bottom: 8px; line-height: 1.5; }
.hot-list li a { color: #333; text-decoration: none; font-size: 13px; }
.hot-list li a:hover { color: #c0392b; }

/* 文章列表页 */
.breadcrumb-bar { color: #888; font-size: 13px; margin-bottom: 10px; }
.breadcrumb-bar a { color: #c0392b; }
.page-title { font-size: 22px; margin: 0 0 8px 0; }
.page-desc { color: #888; margin-bottom: 15px; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-item { background: #fff; border-radius: 4px; padding: 15px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; gap: 15px; }
.article-thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; }
.article-body { flex: 1; }
.article-title { font-size: 16px; margin: 0 0 6px 0; }
.article-title a { color: #222; text-decoration: none; }
.article-title a:hover { color: #c0392b; }
.article-summary { color: #666; font-size: 13px; margin: 0 0 8px 0; line-height: 1.6; }
.article-meta { color: #aaa; font-size: 12px; }
.article-meta span { margin-right: 12px; }

/* 详情页 */
.article-h1 { font-size: 24px; font-weight: bold; margin: 0 0 10px 0; line-height: 1.4; }
.article-subtitle { font-size: 16px; color: #666; margin: 0 0 10px 0; font-weight: normal; }
.article-meta-bar { color: #888; font-size: 13px; padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.article-meta-bar span { margin-right: 20px; }
.article-summary-box { background: #f9f9f9; border-left: 3px solid #c0392b; padding: 10px 15px; margin-bottom: 15px; color: #555; font-size: 13px; }
.article-content { line-height: 1.9; font-size: 16px; color: #333; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.article-content p { margin-bottom: 12px; }
.article-content h2, .article-content h3 { margin: 20px 0 10px; }
.article-tags { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ddd; }
.tag-item { display: inline-block; background: #f0f0f0; padding: 3px 10px; border-radius: 3px; margin: 0 5px 5px 0; font-size: 12px; color: #666; text-decoration: none; }
.tag-item:hover { background: #c0392b; color: #fff; }
.prev-next-nav { background: #f9f9f9; padding: 12px 15px; border-radius: 4px; margin: 20px 0; font-size: 13px; }
.prev-next-nav div { margin-bottom: 5px; }
.prev-next-nav span { color: #888; }
.prev-next-nav a { color: #333; text-decoration: none; }
.prev-next-nav a:hover { color: #c0392b; }
.related-news { margin-top: 20px; }
.related-news h4 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #c0392b; }
.related-card { border: 1px solid #eee; border-radius: 3px; overflow: hidden; margin-bottom: 15px; }
.related-card a { display: block; text-decoration: none; color: #333; }
.related-card img { width: 100%; height: 100px; object-fit: cover; }
.related-card p { padding: 8px; font-size: 13px; margin: 0; }
.related-card:hover { border-color: #c0392b; }

/* 分页 */
.pagination { margin: 20px 0; }
.pagination .pagination-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pagination .pagination-list li a { display: block; padding: 5px 12px; border: 1px solid #ddd; border-radius: 3px; color: #333; text-decoration: none; background: #fff; }
.pagination .pagination-list li a:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.pagination .pagination-list li.active a { background: #c0392b; color: #fff; border-color: #c0392b; }
.pagination .page-info { color: #888; font-size: 13px; }

/* 底部 */
.site-footer { background: #2c3e50; color: #aaa; text-align: center; padding: 20px 0; font-size: 13px; margin-top: 30px; }
.site-footer p { margin: 5px 0; }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #aaa; margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-update-time { color: #fff; font-size: 12px; }

/* ============================================================
   详情页增强：相关推荐 + 排行榜选项卡
   ============================================================ */
.block-title-sm { font-size: 16px; color: #333; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #c0392b; }
.block-title-sm i { color: #c0392b; margin-right: 5px; }

/* 相关推荐卡片 */
.related-cover { width: 100%; height: 110px; object-fit: cover; display: block; }
.related-cover-ph { width: 100%; height: 110px; background: linear-gradient(135deg, #c0392b44, #e74c3c44); }
.related-title { font-size: 13px; margin: 6px 8px 4px; line-height: 1.5; color: #333; }
.related-card:hover .related-title { color: #c0392b; }

/* 排行榜选项卡 */
.rank-block .rank-tabs { margin-bottom: 0; border-bottom: 1px solid #ddd; }
.rank-block .rank-tabs li a { font-size: 13px; padding: 7px 12px; }
.rank-block .rank-tabs li.active a { color: #c0392b; border-bottom-color: #fff; }
.rank-content { padding: 0; }
.rank-list { padding: 0; margin: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; gap: 6px; }
.rank-list li:last-child { border-bottom: none; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px; font-size: 12px; font-weight: bold; background: #aaa; color: #fff; flex-shrink: 0; }
.rank-1 { background: #e74c3c; }
.rank-2 { background: #e67e22; }
.rank-3 { background: #f39c12; }
.rank-list li a { flex: 1; font-size: 12px; color: #444; text-decoration: none; line-height: 1.4; overflow: hidden; }
.rank-list li a:hover { color: #c0392b; }
.rank-hits { font-size: 11px; color: #aaa; flex-shrink: 0; }

/* 点击次数 */
#hit-count { font-weight: bold; font-style: normal; }
