/* wwcms-next 默认主题 — 前台样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}

a { color: #0c6329; text-decoration: none; }
a:hover { color: #08481e; }

img { max-width: 100%; height: auto; display: block; }

/* ========== 顶部导航 ========== */
.topnav {
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topnav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.topnav .logo {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 主导航 */
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;          /* 窄屏时主导航横向滚动，避免溢出覆盖右侧工具栏 */
    scrollbar-width: none;     /* Firefox 隐藏滚动条 */
}
.main-nav ul::-webkit-scrollbar { display: none; }  /* WebKit 隐藏滚动条 */
.main-nav li { margin-left: 4px; }
.main-nav li a {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all .2s;
    display: block;
    white-space: nowrap;
}
.main-nav li a:hover,
.main-nav li.current a {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.main-nav li.current a {
    background: #0c6329;
    color: #fff;
}

/* 右侧工具栏（搜索 + 语言） */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;        /* 始终固定到最右侧，绝不与主导航项重叠 */
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 0 4px 0 12px;
    transition: border-color .2s, background .2s;
}
.search-box:focus-within {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
}
.search-box input {
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 120px;
    padding: 5px 0;
}
.search-box input::placeholder { color: rgba(255,255,255,.45); }
.search-box button {
    background: #0c6329;
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.search-box button:hover { background: #0a4f21; }

/* 语言切换器 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 3px 4px;
    font-size: 12px;
    user-select: none;
}
.lang-label {
    font-size: 14px;
    margin-right: 4px;
    opacity: .7;
}
.lang-switch a {
    color: rgba(255,255,255,.65);
    padding: 4px 11px;
    border-radius: 16px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    line-height: 1.4;
}
.lang-switch a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.lang-switch a.active {
    color: #fff;
    background: #0c6329;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(12,99,41,.35);
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

/* ========== 响应式 ========== */
/* 窄屏：隐藏搜索框，保留语言切换，缩小导航间距 */
@media (max-width: 960px) {
    .search-box { display: none; }
    .main-nav li a { padding: 8px 10px; font-size: 13px; }
    .topnav .container { gap: 10px; }
}
/* 移动端：主导航折叠为汉堡菜单下拉，语言切换常驻右上角 */
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 6px 0;
        box-shadow: 0 8px 18px rgba(0,0,0,.28);
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        overflow-x: visible;
    }
    .main-nav li { margin: 0; }
    .main-nav li a {
        padding: 12px 20px;
        border-radius: 0;
        white-space: normal;
    }
    .nav-tools { gap: 8px; }
}

/* ========== 主体 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

main.container { min-height: 80vh; }

/* ========== Banner 轮播 ========== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}
.banner-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.banner-slider .slide.active { opacity: 1; }
.banner-slider .slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: background .2s;
}
.banner-dots span.active { background: #0c6329; }

/* 兼容旧 .banner 引用 */
.banner img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}

/* ========== 数据指标 ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.stat-card .num {
    font-size: 32px;
    font-weight: bold;
    color: #0c6329;
}
.stat-card .desc {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

/* ========== 区块 ========== */
section { margin-bottom: 32px; }
section h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #0c6329;
}

/* ========== 网格 ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card h3 {
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
}
.card h3 a { color: #333; }
.card p { padding: 0 16px 12px; font-size: 13px; color: #888; }

/* ========== 新闻列表 ========== */
.news ul { background: #fff; border-radius: 8px; padding: 8px 24px; }
.news li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.news li:last-child { border-bottom: 0; }

/* ========== 单页 / 文章详情 ========== */
.page, .article-detail, .product-detail {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.page h1, .article-detail h1, .product-detail h1 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
}
.body { color: #555; font-size: 15px; line-height: 1.8; }
.body p { margin-bottom: 12px; }

/* ========== 面包屑 ========== */
.location {
    background: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #888;
}
.location a { color: #0c6329; }

/* ========== 列表页 ========== */
.list-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sidebar h3 {
    font-size: 14px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}
.sidebar ul { list-style: none; }
.sidebar li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
}
.sidebar li a:hover { background: #f0f7f0; color: #0c6329; }

.article-list, .product-list {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.article-list ul, .product-list ul { list-style: none; }
.article-list li {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.article-list li:last-child { border-bottom: 0; }
.article-list li a {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.article-list p {
    margin-top: 8px;
    color: #888;
    font-size: 13px;
}

/* ========== 分页 ========== */
.pagination {
    margin-top: 24px;
    text-align: center;
    padding: 16px 0;
}
.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}
.pagination a:hover {
    background: #0c6329;
    color: #fff;
    border-color: #0c6329;
}

/* ========== 产品详情 ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.gallery img { border-radius: 4px; }
.specs {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    margin: 24px 0;
}
.specs p { padding: 4px 0; color: #555; font-size: 14px; }

/* ========== 404 ========== */
.error {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.error h1 { font-size: 72px; color: #ddd; }
.error p { color: #888; margin: 16px 0; }

/* ========== 底部 ========== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 24px;
    margin-top: 48px;
    font-size: 13px;
}
.footer p { margin: 4px 0; }

/* ===== 模板标签自动渲染：自定义表单 / 评论 / 留言 ===== */
.ww-form { max-width: 640px; margin: 20px 0; }
.ww-form-item { margin-bottom: 16px; }
.ww-form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #333; }
.ww-req { color: #e4393c; }
.ww-form-control { width: 100%; padding: 9px 11px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; box-sizing: border-box; transition: border-color .15s; }
.ww-form-control:focus { border-color: #0c6329; outline: none; }
.ww-form-btn { padding: 10px 28px; background: #0c6329; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 15px; }
.ww-form-btn:hover { background: #0a5523; }
.ww-comment, .ww-message { padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; line-height: 1.7; }
.ww-comment b, .ww-message b { color: #0c6329; }
.ww-cmeta { color: #999; font-size: 12px; margin-left: 6px; }

/* ================================================================
   前台风格增强层（对标 PbootCMS 默认模板，超越其 Bootstrap4 观感）
   设计令牌 + 区块标题 + 按钮 + 卡片升级 + Hero 字幕 + 页脚组件 + 滚动揭示
   ================================================================ */
:root {
    --primary: #0c6329;
    --primary-dark: #08481e;
    --primary-light: #e8f3ec;
    --ink: #1a1a2e;
    --text: #333;
    --muted: #8a93a0;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --line: #edf0f4;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(20,30,50,.06);
    --shadow-hover: 0 12px 36px rgba(12,99,41,.14);
    --maxw: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 区块标题（居中 + 装饰短线） ---------- */
.section-head { text-align: center; margin: 0 auto 36px; max-width: 720px; }
.section-head .title { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.section-head .subtitle { margin-top: 10px; font-size: 15px; color: var(--muted); }
.section-head::after { content: ""; display: block; width: 48px; height: 3px; background: var(--primary); border-radius: 3px; margin: 16px auto 0; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left::after { margin-left: 0; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 26px; border-radius: 30px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: all .25s var(--ease); line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(12,99,41,.25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Hero 字幕 ---------- */
.banner-slider { border-radius: var(--radius); box-shadow: var(--shadow); }
.banner-slider::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.58) 100%);
}
.banner-slider .slide { border-radius: var(--radius); }
.banner-slider .slide a { display: block; height: 100%; }
.banner-slider .slide img { border-radius: var(--radius); }
.banner-caption { position: absolute; left: 52px; bottom: 58px; z-index: 4; max-width: 560px; color: #fff; }
.banner-caption h2 { font-size: 38px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.banner-caption p { font-size: 16px; opacity: .92; margin-bottom: 20px; }
@media (max-width: 768px) {
    .banner-slider, .banner-slider .slide, .banner-slider .slide img { height: 240px; }
    .banner-caption { left: 20px; right: 20px; bottom: 26px; }
    .banner-caption h2 { font-size: 24px; }
}

/* ---------- 卡片升级（图片缩放 + 媒体/正文/摘要/元信息） ---------- */
.card { border: 1px solid var(--line); }
.card-media { display: block; overflow: hidden; }
.card img { transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.07); }
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.card-meta { font-size: 12px; color: #b3bac4; display: flex; gap: 6px; align-items: center; }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #cfd5dd; }
.card h3 a:hover { color: var(--primary); }

/* ---------- 网格响应式 ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 新闻列表（带日期） ---------- */
.news ul { padding: 4px 24px; }
.news li { display: flex; align-items: baseline; gap: 14px; }
.news .news-date { flex: 0 0 auto; font-size: 13px; color: var(--primary); font-variant-numeric: tabular-nums; }
.news li a { font-size: 15px; color: var(--text); }
.news li a:hover { color: var(--primary); }
.news li.flag-h a { font-weight: 600; }

/* ---------- 数据指标升级 ---------- */
.stat-card { border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .num { background: linear-gradient(135deg, var(--primary), #1a9e4a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 页脚组件（多栏组件化） ---------- */
.footer { text-align: left; padding: 0; margin-top: 56px; background: #1a1a2e; color: #aaa; font-size: 13px; }
.footer-widgets { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 36px; }
.footer .fw-brand .logo { font-size: 20px; font-weight: 700; color: #fff; }
.footer .fw-brand p { color: #9aa3b0; font-size: 13px; line-height: 1.8; margin-top: 12px; max-width: 320px; }
.footer .fw-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer .fw-col h4::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--primary); }
.footer .fw-col ul { list-style: none; }
.footer .fw-col li { margin-bottom: 10px; }
.footer .fw-col a, .footer .fw-col span { color: #9aa3b0; font-size: 13px; transition: color .2s; }
.footer .fw-col a:hover { color: #fff; }
.footer .fw-qr img { width: 110px; border-radius: 8px; background: #fff; padding: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 24px; text-align: center; color: #7e8794; font-size: 13px; }
.footer-bottom a { color: #9aa3b0; margin: 0 6px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 768px) { .footer-widgets { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-widgets { grid-template-columns: 1fr; } }

/* ---------- CTA 引流条 ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--primary), #15803d);
    border-radius: var(--radius); padding: 40px 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow);
}
.cta-band h3 { font-size: 24px; margin-bottom: 6px; }
.cta-band p { opacity: .9; font-size: 14px; }
@media (max-width: 768px) { .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; } }

/* ---------- 文章详情元信息 / 互动 / 评论 ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #999; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-interact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-interact .btn { padding: 8px 18px; font-size: 14px; border-radius: 8px; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prev-next p { margin: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .c-name { font-weight: 600; color: var(--ink); }
.comment-list .c-time { color: #bbb; font-size: 12px; margin-left: 10px; }
.comment-list .c-content { margin: 6px 0 0; color: #555; font-size: 14px; line-height: 1.7; }
.comment-form { max-width: 600px; }
.comment-form label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; font-family: inherit; margin-bottom: 12px; box-sizing: border-box;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); outline: none; }
.comment-form .btn { border-radius: 8px; }

/* ---------- 滚动揭示动画（仅在有 JS 时隐藏，避免无脚本时内容不可见） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 间距助手 ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.text-center { text-align: center; }

/* ---------- 列表页：两栏 + 筛选面板 ---------- */
.list-layout { align-items: start; }
@media (max-width: 768px) { .list-layout { grid-template-columns: 1fr; } .sidebar { margin-bottom: 20px; } }
.filter-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.filter-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-item label { font-size: 13px; color: #888; }
.filter-item select {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 14px; min-width: 140px;
}
.filter-item select:focus { border-color: var(--primary); outline: none; }
.filter-clear { color: #999; font-size: 13px; align-self: center; margin-left: 4px; }
.filter-clear:hover { color: var(--primary); }

/* ============ 资讯门户首页（对标 DedeCMS 默认首页组件） ============ */
.portal-home { margin-top: 36px; }
.portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.portal-main { display: flex; flex-direction: column; gap: 28px; }
.block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.block-head { display: flex; align-items: center; margin-bottom: 16px; }
.block-head h3 { font-size: 19px; margin: 0; position: relative; padding-left: 12px; }
.block-head h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--primary); }

/* 头条 */
.hl-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.hl-big img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.hl-big h4 { margin: 12px 0 6px; font-size: 17px; line-height: 1.4; }
.hl-big h4 a:hover { color: var(--primary); }
.hl-big p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.hl-list li { display: flex; gap: 10px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.hl-list li span { color: var(--muted); font-size: 13px; flex: none; }
.hl-list li a:hover { color: var(--primary); }

/* 栏目聚合 */
.chan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.chan-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.chan-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
.chan-title a:first-child { font-size: 16px; font-weight: 600; }
.chan-title .more { font-size: 13px; color: var(--muted); }
.chan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chan-list li { display: flex; gap: 8px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-list li span { color: var(--muted); font-size: 12px; flex: none; }
.chan-list li a:hover { color: var(--primary); }

/* 侧栏通用 */
.portal-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.side-head { margin-bottom: 12px; border-left: 4px solid var(--primary); padding-left: 10px; }
.side-head h4 { margin: 0; font-size: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list li { font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list li a:hover { color: var(--primary); }
.side-list.hot li { display: flex; align-items: center; gap: 10px; }
.side-list.hot .rank { flex: none; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; background: var(--line); color: var(--muted); font-size: 12px; font-style: normal; }
.side-list.hot li:nth-child(1) .rank { background: #e63946; color: #fff; }
.side-list.hot li:nth-child(2) .rank { background: #f3722c; color: #fff; }
.side-list.hot li:nth-child(3) .rank { background: #f9c74f; color: #fff; }
.side-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-imgs .si { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.side-imgs .si img { width: 100%; height: 70px; object-fit: cover; display: block; }
.side-imgs .si span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-comment { font-size: 13px; line-height: 1.6; color: #555; margin-bottom: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.side-comment b { color: var(--primary); }
.side-comment a { color: #555; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; padding: 4px 10px; background: var(--bg); border-radius: 20px; font-size: 13px; color: #555; }
.tag-cloud a:hover { background: var(--primary); color: #fff; }
.qr-box .qr-center { text-align: center; }
.qr-box .ww-qrcode { width: 120px; height: 120px; }
.footer-links { font-size: 13px; color: var(--muted); margin-top: 6px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

/* ============ 文章页 2 栏 + 相关文章（对标 DedeCMS 文章页） ============ */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.article-main { min-width: 0; }
.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.related-grid .rc { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: .2s; }
.related-grid .rc:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.related-grid .rc img { width: 100%; height: 110px; object-fit: cover; }
.related-grid .rc .rt { padding: 8px 10px; font-size: 13px; line-height: 1.4; height: 44px; overflow: hidden; }
.related-grid .rc:hover .rt { color: var(--primary); }

@media (max-width: 980px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-side { position: static; }
    .hl-wrap { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-side { position: static; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .chan-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}
/* ===================== 专题(special) 前台 ===================== */
.special-index .page-head, .special-detail .page-head { text-align:center; margin:36px 0 24px; }
.special-index .page-head h1, .special-detail .page-head h1 { font-size:30px; margin:0 0 8px; }
.special-index .page-sub, .special-detail .page-sub { color:#888; margin:0; }
.special-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.special-card { display:block; background:#fff; border:1px solid #f0f0f0; border-radius:8px; overflow:hidden; text-decoration:none; color:#333; transition:.18s; }
.special-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.08); transform:translateY(-2px); }
.special-thumb { height:160px; background:#f4f6f8; overflow:hidden; }
.special-thumb img { width:100%; height:100%; object-fit:cover; }
.special-thumb-empty { height:100%; display:flex; align-items:center; justify-content:center; font-size:48px; color:#c9d2db; }
.special-info { padding:14px 16px 18px; }
.special-info h3 { margin:0 0 8px; font-size:17px; }
.special-desc { margin:0 0 10px; color:#777; font-size:13px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.special-cate { display:inline-block; background:#eaf7f4; color:#009688; font-size:12px; padding:2px 10px; border-radius:10px; }
.special-hero { display:flex; gap:24px; align-items:center; background:#fff; border:1px solid #f0f0f0; border-radius:10px; padding:24px; margin:24px 0; }
.special-hero-cover { flex:0 0 320px; height:200px; border-radius:8px; overflow:hidden; background:#f4f6f8; }
.special-hero-cover img { width:100%; height:100%; object-fit:cover; }
.special-hero-body h1 { margin:0 0 12px; font-size:26px; }
.special-keywords { margin-bottom:12px; }
.special-keywords span { display:inline-block; background:#f2f2f2; color:#666; font-size:12px; padding:2px 10px; border-radius:10px; margin:0 6px 6px 0; }
.special-desc { margin:0; color:#666; line-height:1.8; }
.special-hero.no-cover { display:block; text-align:center; padding:32px; }
.special-body { background:#fff; border:1px solid #f0f0f0; border-radius:8px; padding:20px 24px; margin-bottom:24px; line-height:1.9; color:#444; }
.special-body img { max-width:100%; }
.card-media-empty { height:100%; min-height:150px; display:flex; align-items:center; justify-content:center; font-size:40px; color:#c9d2db; background:#f4f6f8; }
.empty-tip { text-align:center; color:#aaa; padding:40px 0; }
@media (max-width:980px){ .special-grid { grid-template-columns:repeat(2,1fr); } .special-hero { flex-direction:column; align-items:stretch; } .special-hero-cover { flex:none; height:180px; } }
@media (max-width:560px){ .special-grid { grid-template-columns:1fr; } }
