/* =========================================
   翡翠资讯风格 - 基于 tpuer（修正版）
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.6; background: #f8fafc; color: #1e293b; }
a { text-decoration: none; color: inherit; }

/* 蓝色顶部导航 */
.header { background: #0A5BAC !important; border-bottom: none; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1280px; margin: 0 auto; }
.header .name a { color: #fff !important; font-size: 22px; font-weight: 700; }
.header .menu ul li a { color: rgba(255,255,255,0.9) !important; font-weight: 500; padding: 8px 16px; border-radius: 20px; }
.header .menu ul li a:hover { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.header .schico a { color: #fff !important; }

/* 主布局（首页用） */
.main .wrap { max-width: 1280px; margin: 0 auto; padding: 40px 20px; display: flex; gap: 30px; align-items: flex-start; }
.content { flex: 1; min-width: 0; }

/* 标题渐变装饰线 */
.tit { margin-bottom: 24px; }
.tit .s { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; display: inline-block; position: relative; padding-bottom: 12px; }
.tit .s::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: linear-gradient(135deg, #0A5BAC, #06b6d4); border-radius: 4px; }

/* CMS 风格列表（首页 + 栏目页共用） */
.list1 { list-style: none; background: #fff; border-radius: 20px; padding: 10px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; }
.list1 li { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 24px; border-bottom: 1px solid #f1f5f9; }
.list1 li:last-child { border-bottom: none; }
.list1 li a { flex: 1; font-size: 16px; font-weight: 500; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 20px; }
.list1 li a:hover { color: #0A5BAC; }
.list1 li span { flex-shrink: 0; font-size: 13px; color: #94a3b8; white-space: nowrap; }

/* 侧边栏（仅首页） */
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar .widget { background: #fff; padding: 24px 20px; margin-bottom: 20px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.sidebar .widget h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; position: relative; }
.sidebar .widget h3::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #0A5BAC; }
.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { padding: 10px 0; border-bottom: 1px dashed #f1f5f9; }
.sidebar .widget ul li a { color: #475569; font-size: 14px; }
.sidebar .widget ul li a:hover { color: #0A5BAC; }

/* 分页 */
.pagebar { text-align: center; padding: 30px 0; }
.pagebar a, .pagebar span { display: inline-block; padding: 8px 16px; margin: 0 4px; border-radius: 20px; border: 1px solid #e2e8f0; color: #475569; font-size: 14px; transition: all 0.2s; }
.pagebar a:hover { background: #0A5BAC; color: #fff; border-color: #0A5BAC; }
.pagebar .now-page, .pagebar .current { background: #0A5BAC; color: #fff; border-color: #0A5BAC; }

/* 内容页（文章详情） */
.page-con { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.base-page-tit { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; line-height: 1.3; padding-bottom: 16px; position: relative; }
.base-page-tit::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0A5BAC, #06b6d4);
    border-radius: 4px;
}
.time { color: #94a3b8; font-size: 14px; margin-bottom: 30px; }
.base-con-txt { line-height: 1.8; font-size: 16px; color: #334155; }
.base-con-txt p { margin-bottom: 1.2em; }
.base-con-txt img { max-width: 100%; border-radius: 20px; margin: 20px 0; }
.block-recommend { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.block-recommend .widget h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.block-recommend .widget ul { list-style: none; }
.block-recommend .widget ul li { padding: 12px 0; border-bottom: 1px dashed #f1f5f9; }
.block-recommend .widget ul li a { color: #475569; font-size: 15px; }
.block-recommend .widget ul li a:hover { color: #0A5BAC; }

/* 栏目页无侧边栏时，让内容居中 */
.main .wrap:not(:has(.sidebar)) .content {
    max-width: 900px;
    margin: 0 auto;
}

/* 底部 */
.footer { background: #f8fafc; padding: 30px 0; text-align: center; color: #94a3b8; font-size: 13px; border-top: 1px solid #e2e8f0; }

/* 响应式设计 */
@media (max-width: 768px) {
    .main .wrap { flex-direction: column; padding: 20px 15px; }
    .sidebar { width: 100%; }
    .list1 li { flex-direction: column; gap: 5px; padding: 12px 15px; }
    .list1 li a { white-space: normal; font-size: 15px; }
    .base-page-tit { font-size: 24px; }
    .main .wrap:not(:has(.sidebar)) .content { max-width: 100%; }
}
.pagebar { display: none !important; }
/* 正文小标题加粗 */
.base-con-txt h2,
.base-con-txt h3,
.base-con-txt h4 {
    font-weight: 600;
    color: #1e293b;
    margin: 1.5em 0 0.8em;
}
.base-con-txt h2 { font-size: 1.0rem; }
.base-con-txt h3 { font-size: 1.2rem; }
.base-con-txt h4 { font-size: 1.1rem; }

/* 上一篇/下一篇导航 */
.post-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e2e8f0 !important;
}
.post-nav-item {
    display: block !important;
    width: 100% !important;
}
.post-nav-item a {
    display: block !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: all 0.2s !important;
}
.post-nav-item a:hover {
    background: #0A5BAC !important;
    color: #fff !important;
}