/* ========== 全局 ========== */
* { padding: 0; margin: 0; box-sizing: border-box; }
body {
    font-family: tahoma, arial, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f8f8f8;
    min-width: 1200px; /* PC 端固定 1200px，窄窗口出现横向滚动条，不做压缩 */
}
a { color: #333; text-decoration: none; }
a:hover { color: #2c9be8; }
ul, li { list-style: none; }
.w { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ========== 顶部工具条 ========== */
.topbar {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    height: 38px;
    line-height: 38px;
    font-size: 13px;
    color: #666;
}
.topbar a { color: #666; padding: 0 10px; }
.topbar a:hover { color: #2c9be8; }
.topbar .left { float: left; }
.topbar .right { float: right; position: relative; }
.topbar .right > a.tb-link { display: inline-block; line-height: 14px; }
.tb-ico {
    width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px;
    fill: currentColor; stroke: currentColor;
}
.tb-ico.c-red    { color: #e4393c; fill: #e4393c; stroke: none; }
.tb-ico.c-blue   { color: #2c9be8; fill: none; stroke: #2c9be8; }
.tb-ico.c-green  { color: #09bb07; fill: #09bb07; stroke: none; }
.tb-ico.c-orange { color: #f90; fill: #f90; stroke: none; }
/* 顶栏登录后头像（昵称前，与文字同高） */
.tb-avatar {
    width: 16px; height: 16px; border-radius: 50%;
    vertical-align: -3px; margin-right: 4px; display: inline-block;
}

/* 顶栏积分下拉（登录后由 JS 插入）：积分文字 + 小三角，点击展开 */
.tb-points { display: inline-block; position: relative; }
.tb-points .tbp-btn { user-select: none; }
.tb-points .tbp-arrow { font-size: 16px; color: #bbb; margin-left: 2px; }
.tb-points .tbp-panel {
    display: none;
    position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
    background: #fff; border: 1px solid #e5e5e5; border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    padding: 10px 16px; white-space: nowrap; font-size: 13px; color: #666; z-index: 99;
}
.tb-points:hover .tbp-panel,
.tb-points.open .tbp-panel { display: block; }
.tb-points .tbp-panel b { color: #e4393c; font-size: 13px; margin: 0; }
.tb-points .tbp-panel a { display: block; padding: 6px 0 0; text-align: center; font-size: 12px; }

/* 快捷导航下拉（分类大标题 + 子分类顺排，背景与模块一致） */
.quick-nav { display: inline-block; position: relative; }
.quick-nav .qn-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    width: 540px;
    background: #fdfdfd;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    z-index: 99;
    padding: 6px 14px;
}
.quick-nav:hover .qn-panel { display: block; }
.qn-arrow { font-size: 16px; }
.qn-panel a { border: none !important; }
.qn-row {
    display: flex; align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e5e5;
}
.qn-row:last-child { border-bottom: none; }
/* 大标题：黑色加粗，如「通达信」「文华指标」 */
.qn-cat {
    flex-shrink: 0; width: 76px;
    font-size: 15px; font-weight: bold; color: #333;
    white-space: nowrap;
}
.qn-cat:hover { color: #2c9be8; }
/* 子分类及其他分类：灰色普通字，顺着排列 */
.qn-subs { flex: 1; min-width: 0; }
.qn-subs a {
    display: inline-block;
    padding: 3px 9px;
    font-size: 14px; color: #666;
}
.qn-subs a:hover { color: #2c9be8; background: #f4f4f4; border-radius: 3px; }

/* ========== 头部中间：logo + 搜索 + 功能按钮 ========== */
.header-mid { background: #fff; padding: 22px 0; }
.logo { float: left; width: 240px; height: 64px; }
.logo-img { display: block; width: auto; height: 44px; object-fit: contain; object-position: left center; margin-top: 10px; }
.logo > a { display: block; font-size: 30px; font-weight: bold; color: #2c9be8; line-height: 64px; }
.logo > a span { color: #333; font-size: 14px; font-weight: normal; margin-left: 8px; }
/* 首页 H1：logo（SEO 文本在 img alt 与站点 title 中） */
.logo-h1 { margin: 0; padding: 0; }
.logo-h1 a { display: block; }
.logo-dash { font-size: 0; } /* 连接符保留在 H1 文本中但不显示 */
.logo-tag { display: block; font-size: 12px; color: #999; font-weight: normal; margin-top: 4px; }

.search { float: left; margin: 12px 0 0 50px; width: 480px; }
.search-box { display: flex; height: 42px; background: #fff; }
.search-box input { flex: 1; border: 1px solid #999; border-right: none; outline: none; padding: 0 12px; font-size: 14px; }
.search-box button {
    width: 100px; border: none; background: #40B4F7;
    color: #fff; font-size: 16px; cursor: pointer;
}
.search-box button:hover { background: #1f86cc; }
.search-hot { margin-top: 8px; font-size: 12px; color: #999; }
.search-hot a { color: #999; margin-right: 12px; }
.search-hot a:hover { color: #2c9be8; }

.header-btn { float: right; margin-top: 12px; }
.btn-tool {
    display: inline-block; height: 42px; line-height: 42px;
    padding: 0 26px; margin-left: 14px;
    background: #1ba1e2; color: #fff !important;
    font-size: 16px; border-radius: 4px;
}
.btn-tool:hover { background: #1589c2; }

/* ========== 主导航（蓝色） ========== */
.mainnav { background: #40B4F7; height: 42px; }
.mainnav ul { display: flex; }
.mainnav li { flex: 0 0 auto; }
.mainnav a {
    display: block; padding: 0 24px; height: 42px;
    line-height: 42px; color: #fff; font-size: 15px;
}
.mainnav a:hover, .mainnav li.cur a { background: #2b8fd4; color: #fff; }

/* ========== 二级导航（白色背景框，不通栏） ========== */
.subnav { background: transparent; padding: 0; }
.subnav .w {
    background: #fff; border: 1px solid #e8e8e8; border-top: none;
    border-radius: 0 0 4px 4px; height: 38px;
}
.subnav ul { display: flex; flex-wrap: nowrap; padding: 0 6px; }
.subnav li { flex: 0 0 auto; }
.subnav a {
    display: block; padding: 0 8px; height: 38px;
    line-height: 38px; color: #333; font-size: 13px; white-space: nowrap;
}
.subnav a:hover, .subnav li.cur a { color: #2c9be8; }

/* ========== 布局 ========== */
.container { padding: 16px 0 24px; }
.main-col { float: left; width: 880px; }
.sidebar { float: right; width: 300px; }

/* ========== 首页模块1：三栏排行（统一白色大框） ========== */
.home-mod1 {
    display: flex;
    background: #fdfdfd; border: 1px solid #e8e8e8; border-radius: 4px;
}
.mod-col {
    flex: 1; min-width: 0;
    padding: 0 14px 8px;
}
.mod-col + .mod-col { border-left: 1px solid #f0f0f0; }

/* 左/中栏：标题 + 更多 */
.mod-title-row {
    display: flex; justify-content: space-between; align-items: center;
    height: 44px; border-bottom: 1px solid #f0f0f0;
}
.mod-name { font-size: 16px; font-weight: bold; color: #555; }
.mod-more { font-size: 12px; color: #999; }
.mod-more:hover { color: #2c9be8; }

/* 通用列表 */
.mod-list { padding: 4px 0; }
/* 首页各列表条目间细分隔虚线（浅灰不突出，最后一条不加；排行榜不加）：
   模块1 最新发布/精品指标、模块2 通达信/文华财经左侧分组、模块3 六宫格 */
.home-mod1 .mod-col .mod-list:not(.rank-list) li,
.mod2-group .mod-list li,
.home-mod3 .mod-list li { border-bottom: 1px dashed #e8e8e8; }
.home-mod1 .mod-col .mod-list:not(.rank-list) li:last-child,
.mod2-group .mod-list li:last-child,
.home-mod3 .mod-list li:last-child { border-bottom: none; }
.mod-list li {
    display: flex; align-items: center;
    padding: 7px 0; font-size: 14px;
}
.mod-list li a {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mod-list:not(.rank-list) li a, .side-list:not(.rank-list) li a { color: #585858; }
/* 标题悬停变蓝：特异性需 ≥ 上面的默认灰规则（0,2,2），同级靠后声明生效 */
.mod-list li a:hover, .side-list li a:hover { color: #2c9be8; }
/* 左/中栏列表小方块符号（模块1、分类模块面板、模块3 通用） */
.mod-col .mod-list:not(.rank-list) li a::before,
.mod2-group .mod-list li a::before,
.home-mod3 .mod-list li a::before {
    content: "▪"; color: #999; margin-right: 6px; font-size: 12px;
}

/* 右栏：Tab 切换 */
.mod-tabs { display: flex; padding-top: 10px; }
.rank-tab {
    flex: 1; text-align: center; cursor: pointer;
    height: 36px; line-height: 36px; font-size: 14px; color: #666;
    border-radius: 4px 4px 0 0;
}
.rank-tab.cur { background: #1ba1e2; color: #fff; font-weight: bold; }
.rank-list { border-top: 1px solid #f0f0f0; padding-top: 6px; }

/* 彩色序号徽章 */
.rank-badge {
    display: inline-block; width: 20px; height: 20px; line-height: 20px;
    text-align: center; font-size: 12px; color: #fff;
    border-radius: 3px; margin-right: 8px; flex-shrink: 0;
}
.rb-1  { background: #f0524d; }
.rb-2  { background: #ff9000; }
.rb-3  { background: #f5b800; }
.rb-4  { background: #2fb9a8; }
.rb-5  { background: #2ebc4f; }
.rb-6  { background: #0e7c86; }
.rb-7  { background: #34495e; }
.rb-8  { background: #7b5aa6; }
.rb-9  { background: #d6336c; }
.rb-10 { background: #2470c9; }
.rb-11 { background: #5b4b8a; }
.rb-12 { background: #95a5a6; }
.rb-0  { background: #bdc3c7; }

/* 彩色标题（前8名循环配色） */
.tc-1 { color: #2470c9; }
.tc-2 { color: #ff6600; }
.tc-3 { color: #00a650; }
.tc-4 { color: #8e44ad; }
.tc-5 { color: #d6336c; }
.tc-6 { color: #0e9594; }
.tc-7 { color: #e4393c; }
.tc-8 { color: #34495e; }

.mod-date { color: #999; font-size: 12px; margin-left: 8px; flex-shrink: 0; }

/* ========== 首页模块2：通达信指标 ========== */
.home-mod2 {
    margin-top: 12px;
    background: #fdfdfd; border: 1px solid #e8e8e8; border-radius: 4px;
}
.mod2-head { display: flex; padding: 0 14px; }
.mod2-head-main {
    flex: 1; min-width: 0;
    display: flex; align-items: center;
    height: 48px; border-bottom: 1px solid #f0f0f0;
}
.mod2-head-side {
    width: 389px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    height: 48px; border-bottom: 1px solid #f0f0f0;
    margin-left: 20px;
}
.mod2-head-side .mod2-title { margin-right: 0; }
.mod2-title { font-size: 16px; font-weight: bold; color: #555; margin-right: auto; flex-shrink: 0; }
/* 分类名（通达信/文华财经）下方蓝色横线：长度随文字，粗细适中 */
.mod2-head-main .mod2-title { display: inline-block; padding-bottom: 4px; border-bottom: 3px solid #2c9be8; }

/* 子分类 Tab：灰色药丸小字，整体靠右 */
.mod2-subtabs { flex-shrink: 0; margin: 0 10px; }
.sub-tab {
    display: inline-block; cursor: pointer;
    padding: 3px 12px; margin-left: 6px;
    font-size: 12px; color: #666; background: #f6f6f6; border-radius: 3px;
}
.sub-tab.cur, .sub-tab:hover { background: #2c9be8; color: #fff; }

/* 内容区：三列网格，右侧热门排行跨两行 */
.mod2-body {
    display: grid;
    grid-template-columns: 1fr 1fr 389px;
    grid-template-areas:
        "g1 g2 rank"
        "g3 g4 rank";
    row-gap: 14px; /* 上下两排子分类之间的间隔 */
    padding: 0 14px 12px;
}
.mod2-group { min-width: 0; padding: 0 14px 6px 0; }
.mod2-body > :nth-child(1) { grid-area: g1; }
.mod2-body > :nth-child(2) { grid-area: g2; border-left: 1px solid #f0f0f0; padding-left: 14px; }
.mod2-body > :nth-child(3) { grid-area: g3; border-top: 1px solid #f0f0f0; }
.mod2-body > :nth-child(4) { grid-area: g4; border-left: 1px solid #f0f0f0; border-top: 1px solid #f0f0f0; padding-left: 14px; }
.mod2-group-title { font-size: 15px; font-weight: bold; color: #555; padding: 12px 0 10px; }
/* 内容不足时固定占位留白：三图区 66px（一行图片实测高度）、文字区 8 行 × 33px，
   保证四个面板无论文章多少版式都一致（数据按本分类真实文章数显示，不做补齐） */
.mod2-group .img-cards { min-height: 66px; }
.mod2-group .mod-list { min-height: 264px; }

/* 右侧热门排行：标题在头部（淡灰背景框），列表撑满高度底部对齐 */
.mod2-rank {
    grid-area: rank;
    border-left: 1px solid #f0f0f0;
    padding-left: 14px;
    display: flex; flex-direction: column;
}
/* 头部"排行榜"标题的淡灰色背景框（拉满到最右边），左侧蓝色粗竖线与 VIP 模块标题一致 */
.rank-title-bg {
    flex: 1;
    background: #fafafa; border-radius: 3px;
    padding: 6px 14px;
    border-left: 4px solid #2c9be8;
}
/* 列表行距与模块一 Tab 列表一致（不拉伸），多余空间均分到缝隙实现底部对齐 */
.rank-fill {
    flex: 1; display: flex; flex-direction: column;
    justify-content: space-between;
    padding-top: 12px;
}
.rank-fill li { padding: 7px 0; }
.rank-badge.rb-red  { background: #f0524d; }
.rank-badge.rb-grey { background: #a8a8a8; }

/* ========== 首页模块3/4：多列分类网格 ========== */
.home-mod3, .home-mod4 {
    margin-top: 12px;
    background: #fdfdfd; border: 1px solid #e8e8e8; border-radius: 4px;
    display: grid;
    padding: 0 14px 10px;
}
.home-mod3 { grid-template-columns: 1fr 1fr 1fr; }
.home-mod4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mod3-col { min-width: 0; padding: 0 14px; }
.home-mod3 .mod3-col:nth-child(3n+1) { padding-left: 0; }
.home-mod3 .mod3-col:nth-child(3n)   { padding-right: 0; }
.home-mod3 .mod3-col:nth-child(3n+2) { border-left: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0; }
.home-mod4 .mod3-col:nth-child(4n+1) { padding-left: 0; }
.home-mod4 .mod3-col:nth-child(4n)   { padding-right: 0; }
.home-mod4 .mod3-col:not(:nth-child(4n+1)) { border-left: 1px solid #f0f0f0; }
.mod3-head {
    display: flex; justify-content: space-between; align-items: center;
    height: 44px; border-bottom: 1px solid #f0f0f0;
}
.mod3-name { font-size: 16px; font-weight: bold; color: #555; }
.mod3-col .mod-list { padding-top: 6px; }

/* 模块4 序号徽章配色（截图风格），尺寸缩小30% */
.home-mod4 .rank-badge {
    width: 15px; height: 15px; line-height: 15px;
    font-size: 11px; border-radius: 2px; margin-right: 6px;
}
.mb-1  { background: #e63946; }
.mb-2  { background: #52a72e; }
.mb-3  { background: #f5a800; }
.mb-4  { background: #17a2b8; }
.mb-5  { background: #1ba1e2; }
.mb-6  { background: #d6336c; }
.mb-7  { background: #2c3e50; }
.mb-8  { background: #d4b106; }
.mb-9  { background: #8e44ad; }
.mb-10 { background: #95a5a6; }

/* ========== VIP指标图文模块 ========== */
.home-vip {
    margin-top: 12px;
    background: #fdfdfd; border: 1px solid #e8e8e8; border-radius: 4px;
    padding: 0 14px 14px;
}
/* 抬头通栏铺淡蓝底（比 mod2 用过的 #f2f7fb 略深一点），负 margin 抵消父级内边距实现通栏 */
.vip-head {
    display: flex; justify-content: space-between; align-items: center;
    height: 48px; border-bottom: 1px solid #f0f0f0;
    margin: 0 -14px 14px; padding: 0 14px;
    background: linear-gradient(180deg, #e7eff7 0%, #dfe9f2 100%);
    border-radius: 3px 3px 0 0;
}
.vip-title {
    font-size: 17px; font-weight: bold; color: #555;
    border-left: 4px solid #2c9be8; padding-left: 10px; line-height: 1.2;
}
.vip-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 14px 24px;
}
.vip-card { display: flex; align-items: center; min-width: 0; }
.vip-thumb {
    width: 96px; height: 64px; flex-shrink: 0;
    border-radius: 4px; border: 1px solid #eee;
    object-fit: cover; display: block;
}
.vip-info { flex: 1; min-width: 0; margin-left: 12px; display: flex; flex-direction: column; }
.vip-name {
    font-size: 14px; color: #333; line-height: 1.5;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vip-card:hover .vip-name { color: #2c9be8; }
.vip-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; font-size: 12px; color: #999;
}
.vip-views { display: inline-flex; align-items: center; }
.eye-ico { width: 14px; height: 14px; margin-right: 4px; }

/* 图片卡片 */
.img-cards { display: flex; gap: 8px; margin-bottom: 6px; }
.img-card {
    flex: 1; min-width: 0; position: relative;
    border-radius: 3px; overflow: hidden; display: block;
    border: 1px solid #eee;
}
.img-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f3f5f7; } /* 统一比例裁剪充满，缩略图尺寸不一也不露底 */
.img-card span {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 6px 5px; color: #fff; font-size: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.68));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-card:hover span { color: #fff; }

/* ========== 首页：推荐位 ========== */
.rec-strip { display: flex; gap: 12px; margin-bottom: 16px; }
.rec-card {
    flex: 1; background: #fdfdfd; border: 1px solid #e8e8e8;
    border-top: 3px solid #e4393c; padding: 14px; display: block;
}
.rec-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.rec-tag {
    display: inline-block; background: #e4393c; color: #fff;
    font-size: 12px; padding: 1px 8px; border-radius: 2px; margin-bottom: 8px;
}
.rec-title { font-size: 15px; font-weight: bold; margin-bottom: 6px; }
.rec-desc {
    font-size: 12px; color: #999; line-height: 1.6;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ========== 分类区块 ========== */
.cate-block { background: #fdfdfd; border: 1px solid #e8e8e8; margin-bottom: 16px; }
.block-title {
    height: 40px; line-height: 40px; border-bottom: 2px solid #e4393c;
    padding: 0 14px; font-size: 16px; font-weight: bold;
}
.block-title .more { float: right; font-size: 12px; font-weight: normal; color: #999; }
.formula-list { padding: 8px 14px 12px; }
.formula-list li {
    display: flex; justify-content: space-between;
    border-bottom: 1px dashed #eee; padding: 9px 0; font-size: 14px;
}
.formula-list li:last-child { border-bottom: none; }
.formula-list li a {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 720px;
}
.formula-list li a::before { content: "· "; color: #e4393c; font-weight: bold; }
.formula-list .f-time { color: #bbb; font-size: 12px; flex-shrink: 0; margin-left: 10px; }

/* ========== 侧边栏 ========== */
.side-box { background: #fdfdfd; border: 1px solid #e8e8e8; margin-bottom: 16px; }
.side-title {
    height: 38px; line-height: 38px; padding: 0 12px;
    border-bottom: 1px solid #e8e8e8; font-size: 15px; font-weight: bold; color: #555;
}
/* 标题前短竖线 */
.side-title::before {
    content: ''; display: inline-block; vertical-align: -2px;
    width: 3px; height: 14px; border-radius: 2px; background: #2c9be8; margin-right: 7px;
}
.side-list { padding: 8px 12px 12px; }
.side-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px dashed #eee; font-size: 14px;
}
.side-list li:last-child { border-bottom: none; }
.side-list li a {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.side-date { color: #bbb; font-size: 12px; margin-left: 8px; flex-shrink: 0; }

.rank-num {
    display: inline-block; width: 18px; height: 18px; line-height: 18px;
    text-align: center; font-size: 12px; color: #fff;
    background: #bbb; border-radius: 2px; margin-right: 8px; flex-shrink: 0;
}
.rank-1 { background: #e4393c; }
.rank-2 { background: #f60; }
.rank-3 { background: #f90; }

.side-wechat { text-align: center; padding-bottom: 14px; }
.wechat-qr {
    width: 140px; height: 140px; margin: 14px auto 8px;
    background: #f5f5f5; border: 1px dashed #ccc;
    line-height: 140px; color: #aaa; font-size: 12px;
}
.side-wechat p { color: #999; font-size: 12px; }

/* ========== 面包屑 ========== */
.crumb {
    background: #f5f5f5; border: 1px solid #e6e6e6;
    padding: 0 14px; height: 38px; line-height: 38px;
    font-size: 13px; color: #666; margin-bottom: 16px;
}

/* ========== 列表页 ========== */
.filter-bar {
    background: #fdfdfd; border: 1px solid #e8e8e8;
    padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}
.filter-label { color: #999; margin-right: 8px; }
.filter-item {
    display: inline-block; padding: 2px 12px; margin-right: 6px; border-radius: 2px;
}
.filter-item.cur, .filter-item:hover { background: #e4393c; color: #fff; }

.list-page { background: #fdfdfd; border: 1px solid #e8e8e8; }
.list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 14px; border-bottom: 1px solid #f0f0f0;
}
.list-item:hover { background: #fafafa; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 16px; font-weight: bold; display: inline-block; margin-bottom: 6px; }
.item-desc {
    color: #888; font-size: 13px; line-height: 1.6; margin-bottom: 8px;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.item-meta { font-size: 12px; color: #aaa; }
.item-meta span { margin-right: 16px; }
.item-btn {
    flex-shrink: 0; margin-left: 16px; padding: 6px 16px;
    border: 1px solid #e4393c; color: #e4393c; border-radius: 3px; font-size: 13px;
}
.item-btn:hover { background: #e4393c; color: #fff; }

/* 分页 */
.pagination { text-align: center; padding: 12px 0; }
.pagination a {
    display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
    padding: 0 5px; margin: 0 2px; background: #fdfdfd;
    border: 1px solid #e0e0e0; border-radius: 3px; font-size: 12px;
}
.pagination a.cur, .pagination a:hover { background: #e4393c; border-color: #e4393c; color: #fff; }

/* ========== 详情页 ========== */
.detail-box { background: #fdfdfd; border: 1px solid #e8e8e8; padding: 24px 28px; margin-bottom: 16px; }
.detail-title { font-size: 22px; text-align: center; margin-bottom: 12px; }
/* meta 行：左侧信息 + 右侧分享按钮 */
.detail-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: #999;
    border-bottom: 1px solid #e8e8e8; padding-bottom: 14px; margin-bottom: 18px;
}
.detail-meta .dm-left span { margin-right: 18px; }
.detail-meta .dm-left b { color: #e4393c; font-weight: normal; }

/* 分享模块：文字 + 彩色图标块（紧凑小巧，靠最右侧） */
.dshare { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.ds-label { font-size: 12px; color: #999; margin-right: 2px; }
.ds-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; border-radius: 6px; transition: opacity .2s;
}
.ds-tile svg { width: 11px; height: 11px; fill: #fff; }
.ds-tile:hover { opacity: .82; }
.ds-wechat { background: #6cb64a; }
.ds-weibo  { background: #f2823f; }
.ds-qq     { background: #4ea3e0; }
.ds-link   { background: #f5b73c; }

.detail-section { margin-bottom: 20px; }
.section-title {
    font-size: 16px; font-weight: bold; color: #555; border-left: 4px solid #2c9be8;
    padding-left: 10px; margin-bottom: 12px; line-height: 1.4;
}
/* 正文段落字号与 .rich-text 基准一致（16px），未设字号的段落不显小 */
.detail-section p { line-height: 1.9; color: #444; font-size: 16px; }

.code-box {
    background: #2d2d2d; color: #f8f8f2; padding: 16px;
    border-radius: 4px; font-family: Consolas, "Courier New", monospace;
    font-size: 13px; line-height: 1.7; overflow-x: auto;
    white-space: pre; user-select: all;
}
.btn-copy {
    float: right; border: none; background: #1ba1e2; color: #fff;
    font-size: 12px; padding: 4px 14px; border-radius: 3px; cursor: pointer;
}
.btn-copy:hover { background: #1589c2; }
.btn-copy.copied { background: #52a72e; }

.effect-imgs img {
    max-width: 100%; border: 1px solid #eee; margin-bottom: 12px;
    cursor: pointer; display: block;
}

/* 全站声明模块 */
.detail-notice {
    background: #fdf6ec; border: 1px solid #f5e2c0; border-radius: 4px;
    color: #b8823a; font-size: 13px; line-height: 1.9;
    padding: 12px 18px; margin-bottom: 16px;
}

/* 下载模块（蓝色虚线外框） */
.dl-box {
    display: flex; align-items: center;
    background: #f7fbff; border: 1px dashed #2c9be8; border-radius: 4px;
    padding: 18px 22px; margin-bottom: 16px;
}
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 15px; font-weight: bold; color: #555; margin-bottom: 6px; }
.dl-meta { font-size: 13px; color: #888; margin-top: 6px; }
.dl-meta b { font-size: 22px; font-weight: bold; color: #f60; margin: 0 2px; vertical-align: -2px; }
.dl-promo {
    display: inline-flex; align-items: center; margin-left: 14px;
    font-size: 13px; font-weight: bold; color: #e4393c; vertical-align: -1px;
}
.dl-promo svg { width: 14px; height: 14px; margin-right: 4px; }
.dl-promo:hover { color: #c81623; text-decoration: underline; }
.dl-btns { flex-shrink: 0; display: flex; gap: 10px; }
.dl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; border-radius: 4px; cursor: pointer;
    font-size: 14px; padding: 10px 24px; transition: all .2s;
    white-space: nowrap;
}
.dl-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.dl-btn-main {
    background: #2c9be8; color: #fff; font-weight: bold;
    box-shadow: 0 2px 8px rgba(44,155,232,.3);
}
.dl-btn-main:hover { background: #1d8bd8; }
.dl-btn-sub { background: #fff; color: #666; border: 1px solid #dcdfe6; }
.dl-btn-sub:hover { border-color: #2c9be8; color: #2c9be8; }

/* 标签 + 收藏/点赞 行 */
.dt-action { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dt-tags { font-size: 14px; color: #555; }
.dt-tags b { margin-right: 4px; }
.dt-btns { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
.dt-btn {
    display: inline-flex; align-items: center; gap: 5px;
    border: none; border-radius: 6px; cursor: pointer;
    font-size: 12px; padding: 6px 13px; transition: all .2s;
}
.dt-btn .dt-ico { width: 12px; height: 12px; }
/* 收藏：浅绿底 + 绿字绿星 */
.dt-btn-fav { background: #e7f7f1; color: #2fb38a; }
.dt-btn-fav:hover { background: #d5f1e6; }
.dt-btn-fav.on { background: #2fb38a; color: #fff; }
/* 点赞：浅粉底 + 红字红心，计数在括号内 */
.dt-btn-like { background: #fdeef0; color: #e5636e; }
.dt-btn-like:hover { background: #fbdde1; }
.dt-btn-like.on { background: #e5636e; color: #fff; }

/* 马卡龙色标签（详情标签 + 侧栏随机标签共用） */
.mtag {
    display: inline-block; font-size: 12px; border-radius: 3px;
    padding: 3px 10px; margin: 0 6px 6px 0;
}
.tag-c1 { background: #fde7e9; color: #e06c75; }
.tag-c2 { background: #fdeee0; color: #e09543; }
.tag-c3 { background: #fdf3d8; color: #c9a227; }
.tag-c4 { background: #e3f4e5; color: #4da35c; }
.tag-c5 { background: #e0f2f1; color: #3a9a94; }
.tag-c6 { background: #e3eefb; color: #4a86d0; }
.tag-c7 { background: #eee7f7; color: #8e6fc0; }
.tag-c8 { background: #fce8f3; color: #d163a0; }
.mtag:hover { opacity: .82; }

/* 上一篇 / 下一篇 */
.prev-next { border-top: 1px solid #f0f0f0; padding: 14px 0; font-size: 13px; margin-bottom: 16px; }
.prev-next .prev { float: left; max-width: 48%; }
.prev-next .next { float: right; max-width: 48%; text-align: right; }
.prev-next span { color: #aaa; }
.prev-next a { color: #585858; }
.prev-next a:hover { color: #2c9be8; }

/* 三栏排行：相关推荐 / 收藏排行 / 下载排行 */
.dt-triple { display: flex; gap: 16px; width: 100%; margin-bottom: 16px; }
.tri-box { flex: 1; min-width: 0; background: #fdfdfd; border: 1px solid #e8e8e8; }
.tri-title {
    height: 38px; line-height: 38px; padding: 0 12px;
    border-bottom: 1px solid #e8e8e8; font-size: 14px; font-weight: bold; color: #555;
}
.tri-list { padding: 8px 12px 12px; }
.tri-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px dashed #eee; font-size: 14px;
}
.tri-list li:last-child { border-bottom: none; }
.tri-list li a {
    color: #585858; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tri-list li a:hover { color: #2c9be8; }
.tri-time { color: #bbb; font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.tri-list .rank-num { flex-shrink: 0; margin-right: 8px; }

/* 评论模块 */
.cm-box { background: #fdfdfd; border: 1px solid #e8e8e8; margin-bottom: 16px; }
.cm-title {
    height: 40px; line-height: 40px; padding: 0 16px;
    border-bottom: 1px solid #ececec; font-size: 15px; font-weight: bold; color: #555;
}
.cm-title span { font-size: 12px; color: #999; font-weight: normal; }
.cm-publish { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid #ececec; }
.cm-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: #e8ecf2; }
.cm-input { flex: 1; min-width: 0; }
.cm-input textarea {
    width: 100%; height: 78px; box-sizing: border-box; resize: vertical;
    border: 1px solid #e2e8f0; border-radius: 4px; background: #fff;
    padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #333; outline: none;
    font-family: inherit; transition: border-color .2s;
}
.cm-input textarea:focus { border-color: #2c9be8; }
.cm-bar { display: flex; align-items: center; margin-top: 10px; }
.cm-tip { font-size: 12px; color: #e4393c; }
.cm-submit {
    margin-left: auto; border: none; border-radius: 4px; cursor: pointer;
    background: #2c9be8; color: #fff; font-size: 13px; padding: 8px 26px;
}
.cm-submit:hover { background: #1d8bd8; }
.cm-list { padding: 6px 16px 16px; }
.cm-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed #e8e8e8; }
.cm-list li:last-child { border-bottom: none; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { font-size: 13px; margin-bottom: 6px; }
.cm-head b { color: #4a86d0; margin-right: 10px; }
.cm-head span { color: #bbb; font-size: 12px; }
.cm-body p { font-size: 14px; color: #444; line-height: 1.8; }
.cm-foot { margin-top: 6px; font-size: 12px; }
.cm-foot a { color: #999; margin-right: 16px; }
.cm-foot a:hover { color: #2c9be8; }

/* 站长回复（评论下方浅色块） */
.cm-admin-reply { margin-top: 8px; background: #f6f8fb; border-left: 3px solid #2c9be8; border-radius: 4px; padding: 8px 12px; }
.cm-admin-reply b { font-size: 12px; color: #2c9be8; }
.cm-admin-reply b span { color: #bbb; font-weight: normal; margin-left: 8px; }
.cm-admin-reply p { margin-top: 4px; font-size: 13px; color: #666; line-height: 1.7; }

/* 侧栏：全站最近更新（图文结合） */
.side-recent { padding: 10px 12px; }
.side-recent li {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed #eee;
}
.side-recent li:last-child { border-bottom: none; }
.sr-img { flex-shrink: 0; width: 96px; height: 60px; overflow: hidden; border-radius: 3px; }
.sr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-info { flex: 1; min-width: 0; }
.sr-info a {
    display: block; font-size: 13px; color: #585858; line-height: 1.5; margin-bottom: 5px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sr-info a:hover { color: #2c9be8; }
.sr-info span { font-size: 12px; color: #bbb; }

/* 侧栏：随机标签 */
.side-tags { padding: 12px; }

/* ========== 友情链接 ========== */
.friend-links {
    background: #fdfdfd; border-top: 1px solid #e8e8e8;
    padding: 14px 0; margin-top: 12px;
}
.friend-links .w { display: flex; align-items: baseline; }
.fl-title { font-size: 14px; font-weight: bold; color: #555; margin-right: 16px; flex-shrink: 0; }
.fl-list { flex: 1; min-width: 0; }
.fl-list a {
    display: inline-block; font-size: 13px; color: #888;
    margin: 0 14px 4px 0;
}
.fl-list a:hover { color: #2c9be8; }

/* ========== 右侧悬浮工具栏 ========== */
.side-toolbar {
    position: fixed; right: 18px; top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    overflow: visible;
}
.st-item {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; cursor: pointer;
    color: #666; transition: all .2s;
}
.st-item:first-child { border-radius: 12px 12px 0 0; }
.st-item:last-child { border-radius: 0 0 12px 12px; }
.st-item + .st-item { border-top: 1px solid #f0f0f0; }
.st-ico { width: 22px; height: 22px; fill: currentColor; transition: transform .2s; }
.st-item:hover { background: #2c9be8; color: #fff; }
.st-item:hover .st-ico { transform: scale(1.12); }
.st-vip:hover { background: #f5a800; }

/* 悬停弹出文字标签 */
.st-tip {
    position: absolute; right: 62px; top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #333; color: #fff; font-size: 12px;
    padding: 5px 12px; border-radius: 4px;
    white-space: nowrap;
    opacity: 0; visibility: hidden;
    transition: all .2s;
    pointer-events: none;
}
.st-tip::after {
    content: ""; position: absolute; left: 100%; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: #333;
}
.st-item:hover .st-tip {
    opacity: 1; visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 微信二维码弹层 */
.st-qr {
    position: absolute; right: 62px; top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #fff; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 12px; text-align: center;
    opacity: 0; visibility: hidden;
    transition: all .2s;
}
.st-qr::after {
    content: ""; position: absolute; left: 100%; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: #fff;
}
.st-wechat:hover .st-qr,
.st-item:hover .st-qr {
    opacity: 1; visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.st-qr-img {
    width: 110px; height: 110px; line-height: 110px;
    background: #f5f5f5; border: 1px dashed #ccc;
    color: #aaa; font-size: 12px; border-radius: 4px;
}
.st-qr-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; vertical-align: top; }
.st-qr-img:has(img) { line-height: 0; border-style: solid; background: #fff; }
.st-qr p { margin-top: 8px; font-size: 12px; color: #666; }

/* 回到顶部：默认隐藏，滚动后显示 */
.st-top { display: none; }
.side-toolbar.show-top .st-top { display: flex; }

/* ========== 页脚 ========== */
.footer { background: #3a3a3a; color: #999; text-align: center; padding: 26px 0; font-size: 13px; }
.footer-links { margin-bottom: 12px; }
.footer-links a { color: #bbb; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: #666; margin: 0 12px; }
.footer-disclaimer { margin-bottom: 8px; line-height: 1.7; }
.footer-copy { color: #777; }
.footer-copy a { color: #777; margin-left: 12px; }
.footer-copy a:hover { color: #bbb; }

/* ========== 详情页：下载弹窗 ========== */
.dlg-mask {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.45);
    align-items: center; justify-content: center;
}
.dlg-mask.show { display: flex; }
.dlg {
    width: 520px; max-width: 94vw; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0,0,0,.25);
    animation: dlg-rise .25s ease;
}
.dlg-sm { width: 440px; }
@keyframes dlg-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.dlg-hd {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
    font-size: 16px; font-weight: bold; color: #333;
}
.dlg-hd-ico { width: 18px; height: 18px; color: #2c9be8; }
.dlg-close {
    margin-left: auto; width: 28px; height: 28px; line-height: 26px;
    text-align: center; font-size: 20px; color: #999;
    border-radius: 50%; cursor: pointer; transition: all .2s;
}
.dlg-close:hover { background: #f2f2f2; color: #333; }

.dlg-bd { padding: 18px 22px; }

/* 弹窗一：文章信息 */
.dlg-title { font-size: 15px; font-weight: bold; color: #e4393c; margin-bottom: 12px; line-height: 1.6; }
.dlg-title-sm { font-size: 14px; }
.dlg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #888; margin-bottom: 14px; }
.dlg-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; color: #aaa; }
.dlg-meta .c-blue { color: #2c9be8; }
.dlg-meta .c-orange { color: #f60; font-size: 15px; }
.dlg-vipfree {
    font-style: normal; font-size: 12px; color: #fff; margin-left: 6px;
    background: linear-gradient(90deg, #f0c05a, #e0a83a);
    border-radius: 3px; padding: 2px 8px;
}

/* 弹窗一：免责声明 */
.dlg-law {
    background: #fafafa; border: 1px solid #eee; border-radius: 6px;
    padding: 12px 16px; max-height: 180px; overflow-y: auto;
}
.dlg-law-t { font-size: 13px; font-weight: bold; color: #555; margin-bottom: 8px; }
.dlg-law ol { padding-left: 18px; font-size: 12px; color: #888; line-height: 2; }
.dlg-law ol li { list-style: decimal; } /* 全局 ul,li 重置了 list-style，序号需显式恢复 */
.dlg-law .c-red { color: #e4393c; }
.dlg-warn { font-size: 12px; color: #e4393c; line-height: 1.8; margin: 12px 0; }
.dlg-warn a { color: #2c9be8; text-decoration: underline; } /* 条款链接：免责声明/侵权处理流程 */
.dlg-agree { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; }
.dlg-agree input { accent-color: #2c9be8; width: 15px; height: 15px; }

/* 弹窗按钮 */
.dlg-ft { padding: 0 22px 20px; text-align: center; }
.dlg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 6px; cursor: pointer;
    background: linear-gradient(90deg, #3fa9e1, #2c9be8); color: #fff;
    font-size: 14px; font-weight: bold; padding: 11px 44px;
    box-shadow: 0 4px 12px rgba(44,155,232,.3); transition: all .2s;
}
.dlg-btn:hover { background: linear-gradient(90deg, #2f9bd8, #1d8bd8); }
.dlg-btn:disabled { background: #c8c8c8; box-shadow: none; cursor: not-allowed; }
.dlg-btn svg { width: 15px; height: 15px; }
.dlg-btn-warn {
    background: linear-gradient(90deg, #ff9a3c, #f60);
    box-shadow: 0 4px 12px rgba(255,102,0,.3); text-decoration: none;
}
.dlg-btn-warn:hover { background: linear-gradient(90deg, #f58c28, #e65c00); }

/* 弹窗二：积分信息行 */
.dlg-row {
    display: flex; align-items: center;
    background: #fafafa; border: 1px solid #f0f0f0; border-radius: 6px;
    padding: 10px 16px; font-size: 13px; color: #888; margin-bottom: 10px;
}
.dlg-row-l { width: 110px; color: #666; }
.dlg-row b { font-size: 18px; margin-right: 4px; }
.dlg-row .c-orange { color: #f60; }
.dlg-row .c-blue { color: #2c9be8; }
.dlg-act { text-align: center; margin-top: 18px; }
.dlg-lack-tip {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; color: #f60; margin-bottom: 12px;
}
.dlg-lack-tip svg { width: 16px; height: 16px; }
.dlg-viptip {
    display: block; /* a 标签默认 inline，转块级保持居中布局 */
    margin-top: 16px; text-align: center;
    font-size: 12px; color: #c9a24a;
}
.dlg-viptip:hover { color: #e0a83a; }
.dlg-viptip svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.dlg-viptip b { color: #e0a83a; }

/* 详情页富文本（后台编辑器内容；pre-line 兼容旧的纯文本换行数据）
   基准字号与编辑器默认 16px 一致：内链等未包 font-size 行内样式的节点不会显小 */
.rich-text { white-space: pre-line; line-height: 1.9; color: #333; font-size: 16px; }
.rich-text a { color: #2c9be8; } /* 内链蓝色（全局 a 重置为 #333，需显式覆盖） */
.rich-text a:hover { text-decoration: underline; }
.rich-text p { margin: 0 0 8px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 4px; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 14px 0 8px; }

/* ---------- 图片灯箱：点击正文/效果图放大，蒙版再点即还原 ---------- */
.rich-text img, .at-content img, .effect-imgs img { cursor: zoom-in; }
.img-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
    opacity: 0; transition: opacity 0.2s ease;
}
.img-lightbox.show { opacity: 1; }
.img-lightbox img {
    max-width: 92vw; max-height: 92vh;
    border-radius: 4px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92); transition: transform 0.2s ease;
    cursor: zoom-out;
}
.img-lightbox.show img { transform: scale(1); }
