/* ============================================================
   图文资讯站主题  style.css
   参考 tz887 图文攻略站风格，去除软件/游戏下载模块，
   保留清爽卡片网格 + 双栏文章页布局。
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px; line-height: 1.7; color: #333; background: #f5f6f8;
}
a { color: #2a6fc0; text-decoration: none; }
a:hover { color: #e53333; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 1100px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { font-size: 22px; font-weight: 700; color: #2a6fc0; white-space: nowrap; }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav li { }
.site-nav a {
    display: block; padding: 0 16px; line-height: 64px; color: #444; font-size: 15px;
}
.site-nav li:first-child a { color: #2a6fc0; font-weight: 600; }
.site-nav a:hover { color: #e53333; background: #f5f6f8; }
.search-box form { display: flex; align-items: center; background: #f0f2f5; border-radius: 18px; padding: 2px 4px 2px 14px; }
.search-box input { border: none; background: transparent; outline: none; width: 160px; height: 34px; }
.search-box button { border: none; background: #2a6fc0; color: #fff; border-radius: 16px; padding: 6px 14px; cursor: pointer; }
.search-box button:hover { background: #1f5aa0; }

/* ---------- 主体两栏 ---------- */
.contLR { display: flex; gap: 24px; margin: 20px auto; align-items: flex-start; }
.contL { flex: 1; min-width: 0; }
.contR { width: 320px; flex-shrink: 0; }

/* ---------- 区块标题 ---------- */
.bhTit, .hero-tit, .list-tit, .sideTit, .rel-news .bhTit {
    display: flex; align-items: center; justify-content: space-between;
    border-left: 4px solid #2a6fc0; padding-left: 10px; margin: 18px 0 14px;
    font-size: 18px; font-weight: 700; color: #222;
}
.bhTit a, .hero-tit a, .rel-news .bhTit a { font-size: 13px; color: #999; font-weight: 400; }

/* ---------- 卡片网格 ---------- */
.hero-grid, .rel-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.card-img { height: 170px; overflow: hidden; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; }
.card-title {
    font-size: 15px; font-weight: 600; color: #222; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: 8px; font-size: 12px; color: #999; display: flex; gap: 12px; }

/* ---------- 文章页 ---------- */
.article-box { background: #fff; border-radius: 10px; padding: 24px 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.article-title { font-size: 26px; line-height: 1.4; color: #1a1a1a; margin-bottom: 12px; }
.article-intro {
    font-size: 13px; color: #999; padding-bottom: 12px; border-bottom: 1px solid #eee;
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.article-intro a { color: #999; }
.article-cont { font-size: 16px; line-height: 1.9; color: #333; }
.article-cont p { margin: 14px 0; text-indent: 2em; }
.article-cont img { margin: 16px auto; border-radius: 6px; }
.article-cont h3 { margin: 22px 0 10px; font-size: 19px; color: #222; }
.article-tags { margin-top: 22px; padding-top: 14px; border-top: 1px solid #eee; font-size: 13px; color: #999; }
.article-tags a { display: inline-block; background: #f0f2f5; border-radius: 4px; padding: 3px 10px; margin: 0 6px 6px 0; color: #555; }
.article-tags a:hover { background: #2a6fc0; color: #fff; }

/* 相关文章（双栏里的横向卡片） */
.rel-list { grid-template-columns: repeat(2, 1fr); }
.rel-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.rel-img { height: 120px; background: #eee; }
.rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-title { padding: 8px 10px 2px; font-size: 14px; color: #333; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-time { display: block; padding: 0 10px 10px; font-size: 12px; color: #aaa; }

/* ---------- 右栏 ---------- */
.side-box { background: #fff; border-radius: 10px; padding: 14px 16px 18px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sideTit { border-left: 4px solid #2a6fc0; padding-left: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.side-box .sidebar li { list-style: none; padding: 8px 0; border-bottom: 1px dashed #eee; }
.side-box .sidebar li a { color: #555; }
.side-box ul.module-ul li { list-style: none; padding: 8px 0; border-bottom: 1px dashed #eee; }

/* ---------- 列表/搜索/面包屑 ---------- */
.crumb { font-size: 13px; color: #999; margin: 6px 0 10px; }
.crumb a { color: #2a6fc0; }
.list-page { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.no-result { padding: 40px; text-align: center; color: #999; }
.not-found { text-align: center; padding: 80px 0; color: #999; }
.not-found h1 { font-size: 64px; color: #2a6fc0; }
.not-found a { color: #2a6fc0; text-decoration: underline; }

/* ---------- 分页 ---------- */
.pagebar { text-align: center; margin: 24px 0; }
.pagebar a, .pagebar span {
    display: inline-block; min-width: 34px; height: 34px; line-height: 34px; margin: 0 4px;
    background: #fff; border-radius: 6px; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pagebar .now-page { background: #2a6fc0; color: #fff; }
.pagebar a:hover { background: #f0f2f5; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2b3445; color: #9aa3b2; margin-top: 30px; padding: 28px 0; font-size: 13px; }
.footer-links { max-width: 1100px; margin: 0 auto 16px; padding: 0 2%; }
.footer-links .sideTit { color: #fff; border-color: #4a90d9; }
.link-list a { display: inline-block; margin: 0 12px 8px 0; color: #9aa3b2; }
.link-list a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #3a4356; padding-top: 16px; }
.copyright a { color: #9aa3b2; }

/* ---------- 右侧栏 精彩推荐列表 ---------- */
.side-news { list-style: none; margin: 0; padding: 0; }
.side-news li, .side-news .side-news-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #e3e3e3; align-items: center; }
.side-news li:last-child, .side-news .side-news-item:last-child { border-bottom: none; }
.side-news .sn-img { flex-shrink: 0; width: 72px; height: 56px; overflow: hidden; border-radius: 6px; background: #eee; }
.side-news .sn-img img { width: 100%; height: 100%; object-fit: cover; }
.side-news .sn-body { min-width: 0; }
.side-news .sn-title {
    display: block; font-size: 14px; color: #333; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-news .sn-title:hover { color: #e53333; }
.side-news .sn-time { font-size: 12px; color: #aaa; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .contLR { flex-direction: column; }
    .contR { width: 100%; }
    .hero-grid, .rel-list { grid-template-columns: repeat(2, 1fr); }
    .site-nav { display: none; }
}
@media (max-width: 560px) {
    .hero-grid, .rel-list { grid-template-columns: 1fr; }
    .search-box input { width: 110px; }
}
