/* 蒋氏文化网 · 前台样式（Discuz 门户模板风格：橙色主导航 + 蓝色栏目标题条 + 灰底白卡片）
   配色/版心由后台“页面设计”的 CSS 变量覆盖，见 site/app/lib.php 的 page_css_vars() */

:root {
    --c-primary: #1a5fa8;
    --c-primary-d: #12457d;
    --c-accent: #ff6a00;
    --c-bg: #f2f3f5;
    --c-text: #333333;
    --c-muted: #888888;
    --radius: 2px;
    --container: 1200px;
    --fs-scale: 100%;
    --line: #e3e5e8;
    --line-soft: #eceef1;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--c-bg); color: var(--c-text);
    font-size: calc(13px * var(--fs-scale) / 100); line-height: 1.65;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; border: 0; vertical-align: middle; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.wrap { width: min(var(--container), 100% - 32px); margin: 0 auto; }

/* ---------------- 顶部工具条 ---------------- */
.topbar { background: #f5f6f7; border-bottom: 1px solid var(--line); font-size: 12px; color: #7d838c; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left .tb-phone { color: #666; }
.topbar-left .tb-slogan { color: #999; border-left: 1px solid #dfe2e6; padding-left: 10px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right a { color: #666; }
.topbar-right a:hover { color: var(--c-accent); }
.topbar-right a, .tb-user, .tb-phone { white-space: nowrap; color: #666; }
.topbar-right .tb-user { color: var(--c-primary); font-weight: 700; }
.topbar-right .tb-sep { color: #d3d8de; }
.topbar-right .tb-post { color: var(--c-accent); font-weight: 700; }


/* ---------------- 页头：品牌行 ---------------- */
/* 全站页头随页面滚动，不做吸顶 */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: static; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
/* LOGO 与站点名同排：图片按高度等比缩放，文字块垂直居中，两者中线对齐 */
.brand-logo {
    display: block; width: auto; height: 52px; max-width: 220px;
    object-fit: contain; flex: none;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 3px; display: grid; place-items: center;
    background: linear-gradient(160deg, #2a76c6, var(--c-primary-d)); color: #fff;
    font-size: 21px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(18,69,125,.18);
}
.brand-name { display: block; font-size: 21px; font-weight: 700; color: #1b3a5c; line-height: 1.25; letter-spacing: .04em; white-space: nowrap; }
.brand-sub { display: block; font-size: 11px; color: #97a0aa; letter-spacing: .14em; margin-top: 2px; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

/* 页头品牌行中部广告位（Logo 与右侧工具区之间）：固定 900×72，窄屏按可用宽度收缩，图片自动裁切填满 */
.header-ad-slot { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; margin-right: 14px; }
.header-ad-slot .ad-wrap { margin: 0; padding: 0; max-width: 900px; width: 100%; display: flex; justify-content: center; }
.header-ad-slot .ad-box { border: 0; background: transparent; display: flex; justify-content: center; width: 100%; height: 72px; overflow: hidden; }
.header-ad-slot .ad-box img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.head-ad {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%; max-width: none; height: 56px; padding: 0 16px;
    background: linear-gradient(90deg, #f5f9fe, #eaf3fc); border: 1px solid #dbe7f4;
}
.head-ad-txt b { display: block; font-size: 14px; color: #12457d; letter-spacing: .02em; }
.head-ad-txt span { display: block; font-size: 11.5px; color: #7d8fa3; margin-top: 2px; }
.head-ad-go {
    flex: none; font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(180deg, #ff8a1f, #f4610a); padding: 5px 11px; border-radius: 2px;
}

/* 页头会员入口框（对应参考图右上角登录框） */
.header-member {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--line); background: #fbfcfd; padding: 7px 10px 7px 12px;
}
.hm-txt { font-size: 12px; color: #777; line-height: 1.45; }
.hm-txt b { display: block; color: #4a5560; font-weight: 600; }
.hm-actions { display: flex; align-items: center; gap: 6px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ---------------- 主导航（橙色通栏） ---------------- */
.nav-bar {
    background: linear-gradient(180deg, #ff8a1f 0%, #f4610a 100%);
    border-top: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav-bar .wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.site-nav { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; height: 42px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-item {
    display: inline-flex; align-items: center; height: 42px; padding: 0 15px; flex: none; white-space: nowrap;
    font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: .02em;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav-item.active { background: rgba(150,45,0,.28); color: #fff; }
.nav-has-sub { position: relative; height: 42px; display: flex; align-items: center; }
.nav-cta {
    position: absolute; right: 0; top: 6px;
    padding: 0 16px; height: 30px; line-height: 30px;
    background: #c84700; color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 2px;
    border: 1px solid rgba(255,255,255,.35);
}
.nav-cta:hover { background: #a83a00; color: #fff; }
.nav-toggle {
    display: none; width: 38px; height: 34px; border: 1px solid var(--line); background: #fff;
    border-radius: 2px; font-size: 17px; color: #555; cursor: pointer; align-items: center; justify-content: center;
}
/* 下拉面板：桌面端由脚本搬进页头 .nav-drop-layer（导航条是横向滚动容器，留在里面会被裁掉） */
.nav-sub {
    position: fixed; left: -9999px; top: -9999px; z-index: 70; min-width: 168px; max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 6px 18px rgba(20,40,70,.14);
    padding: 4px 0; opacity: 0; visibility: hidden; transition: opacity .14s; border-radius: 0 0 2px 2px;
}
.nav-sub.open { opacity: 1; visibility: visible; }
.nav-sub a { display: block; padding: 7px 16px; font-size: 13px; color: #333; white-space: nowrap; }
.nav-sub a:hover { background: #fff4e8; color: var(--c-accent); }
.nav-drop-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 70; }

/* ---------------- 搜索条（导航下方，含热搜词） ---------------- */
.search-strip { background: #f7f8fa; border-bottom: 1px solid var(--line); }
.search-strip-inner { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.search-form {
    display: flex; align-items: center; background: #fff; border: 1px solid #d9dde2; border-radius: 2px;
    padding: 0; overflow: hidden; height: 32px;
}
.search-form input { border: 0; background: transparent; outline: none; width: 214px; flex: 1; min-width: 0; font-size: 13px; padding: 0 10px; color: #333; }
.search-form input::placeholder { color: #a7adb5; }
.search-form button {
    border: 0; background: linear-gradient(180deg, #ff8a1f, #f4610a); color: #fff; border-radius: 0;
    padding: 0 18px; height: 32px; font-size: 13px; cursor: pointer; font-weight: 600; flex: none; white-space: nowrap;
}
.search-form button:hover { background: linear-gradient(180deg, #f9800f, #de5503); }
.hot-words { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #888; min-width: 0; overflow: hidden; }
.hot-words b { font-weight: 400; color: #666; flex: none; }
.hot-words a { color: #1a5fa8; white-space: nowrap; }
.hot-words a:hover { color: var(--c-accent); }

/* 广告位容器 */
.ad-wrap { display: flex; justify-content: center; margin: 10px auto; max-width: var(--container); padding: 0 16px; }
.ad-wrap-header { margin: 0 auto; }
.ad-box { background: #fff; border: 1px solid var(--line); overflow: hidden; }

/* 门户文字广告条：左侧 2×2 文字位 + 中间 468×60 横幅 + 右侧 2×2 文字位 */
.portal-ads { display: flex; justify-content: center; align-items: stretch; gap: 8px; max-width: var(--container); margin: 10px auto; padding: 0 16px; }
.pa-grid { width: 304px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pa-text {
    display: flex; flex-direction: column; justify-content: center; height: 58px; padding: 5px 9px;
    background: #fff; border: 1px solid var(--line); color: #6d7680; font-size: 12px; line-height: 1.5;
    overflow: hidden;
}
.pa-text b { display: block; color: #4b5563; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-text span { display: block; font-size: 11px; color: #98a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-text:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pa-text:hover b { color: var(--c-accent); }
.pa-banner { flex: none; width: 468px; }
.pa-banner .ad-box { height: 60px; border: 1px solid var(--line); }

/* 横幅：468×60 / 通栏 */
.banner-468 {
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
    background: linear-gradient(100deg, #0f3f70 0%, #1a5fa8 62%, #2d7fd0 100%); color: #fff;
}
.banner-468 .b-txt b { display: block; font-size: 15px; letter-spacing: .04em; }
.banner-468 .b-txt span { display: block; font-size: 11.5px; color: rgba(255,255,255,.78); margin-top: 1px; }
.banner-468 .b-go {
    flex: none; background: linear-gradient(180deg, #ff8a1f, #f4610a); color: #fff; font-size: 12px;
    font-weight: 700; padding: 6px 12px; border-radius: 2px;
}
.banner-wide {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 0 26px; background: linear-gradient(100deg, #0c3563 0%, #12457d 46%, #1a5fa8 100%);
    color: #fff; position: relative; overflow: hidden;
}
.banner-wide::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,138,31,.34), rgba(255,138,31,0) 70%);
}
.banner-wide .bw-txt b { display: block; font-size: 21px; letter-spacing: .06em; }
.banner-wide .bw-txt span { display: block; font-size: 12.5px; color: rgba(255,255,255,.8); margin-top: 4px; }
.banner-wide .bw-tags { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.85); }
.banner-wide .bw-tags i { font-style: normal; border: 1px solid rgba(255,255,255,.4); padding: 3px 10px; border-radius: 2px; }

/* 首页腰部演示横幅 */
.ad-demo {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px;
    background: linear-gradient(100deg, #0f3f70, #1a5fa8 60%, #2d7fd0); color: #fff;
}
.ad-demo-txt strong { display: block; font-size: 19px; letter-spacing: .06em; }
.ad-demo-txt span { display: block; font-size: 12px; color: rgba(255,255,255,.76); margin-top: 3px; }
.ad-demo-brand { text-align: right; font-size: 14px; font-weight: 700; }
.ad-demo-brand em { display: block; font-style: normal; font-size: 10px; color: rgba(255,255,255,.6); letter-spacing: .16em; margin-top: 2px; }

/* ---------------- 主体 ---------------- */
.site-main { padding: 12px 0 26px; }
.home-body { margin-top: 10px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 6px; align-items: start; }
.home-main { min-width: 0; }


/* 首页栏目频道表格内的左栏广告组：整体通栏、3 列 × 2 排，广告之间上下左右零间距无缝拼接 */
.left-ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.left-ad { width: 100%; }
/* 广告渲染器自带的 10px 上下外边距、16px 左右内边距会把格子撑高、把图挤窄，这里清零让广告铺满整格 */
.left-ad .ad-wrap { margin: 0; padding: 0; }
.left-ad .ad-box { width: 100% !important; max-width: 100% !important; }
.left-ad img { width: 100% !important; height: 140px !important; object-fit: cover; display: block; border: 0; }
@media (max-width: 640px) {
    .left-ads { grid-template-columns: minmax(0, 1fr); }
    .left-ad, .left-ad .ad-box, .left-ad img { width: 100% !important; max-width: 100% !important; }
    .left-ad img { height: auto !important; }
}
/* 首页左右两栏整列等高：较短的一栏把余量按间距均分补足，两栏底部齐平（≤1100 为单列形态，不生效） */
@media (min-width: 1101px) {
    /* 首页两栏：内容单栏通排 + 右侧栏 310 定宽；两栏按整列等高拉伸 */
    .home-grid { align-items: stretch; }
    .home-main { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
    .home-main > * { margin-top: 0; margin-bottom: 0; }
    .home-main > .sec { margin-top: 0; margin-bottom: 0; }
    /* 右栏块间距压到最小 4px，剩余空间仍按间距均分，保证右栏底边与左栏齐平 */
    .home-grid .sidebar { height: 100%; justify-content: space-between; gap: 4px; }
    .home-grid .sidebar > * { margin-bottom: 0; }

    /* 内页左右两栏：栏目间距统一 14px（紧凑一致），余量全部由底部宣纸长卷吸收 → 底边与正文齐平 */
    .content-with-side.has-sidebar { align-items: stretch; }
    .content-with-side .sidebar { height: 100%; justify-content: flex-start; gap: 14px; }
    .content-with-side .sidebar > * { margin-bottom: 0; }
    .content-with-side .sidebar > .side-ad-slot { flex: 1 1 0; min-height: 0; }
}

/* 内页右栏底部自适应广告位：宽随侧栏 100%，高吸满页面余量，图片等比裁切铺满 */
.content-with-side .sidebar > .side-fill-ad { flex: 1 1 0; min-height: 0; }
.side-fill-ad { container-type: size; display: flex; overflow: hidden; border: 1px solid #e8dfcd; background: #fdfaf4; }
.side-fill-ad > a, .side-fill-ad .ad-box { display: block; width: 100% !important; max-width: 100% !important; height: 100% !important; }
.side-fill-ad img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border: 0; }
.side-fill-ad .ad-box { overflow: hidden; }
/* 余量太小时只留一条窄条，避免露出被裁得只剩一线的广告 */
@container (max-height: 130px) { .side-fill-ad .ad-box { display: none !important; } }
/* 内页右栏底部自适应广告位占位（未投放时显示虚线框，投放后由广告图铺满） */
.side-ad-slot {
    container-type: size;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 16px 12px; overflow: hidden;
    border: 1px dashed #dccfb6; background: #fdfaf4;
}
.sas-title {
    writing-mode: vertical-rl; text-orientation: upright;
    font-size: 15px; font-weight: 600; color: #b39a6d; letter-spacing: .34em; line-height: 1.4;
}
.sas-meta { font-size: 11px; color: #a89877; letter-spacing: .02em; text-align: center; }
@container (max-height: 200px) { .sas-title, .sas-meta { display: none; } }
/* 首页头条区：左「头条轮播」+ 右「最新推荐」列表 并排（窄屏 ≤900 折为上下单列） */
.headline { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
/* 头条区维持 300 高（列表条目恢复原字号与内边距） */
.headline .hl-slider { min-height: 300px; }
.hl-slider { position: relative; min-height: 300px; background: #12457d; overflow: hidden; }
.hl-slide {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; opacity: 0; pointer-events: none;
    background-color: #12457d; text-decoration: none;
}
.hl-slide.on { opacity: 1; pointer-events: auto; z-index: 1; }
.hl-slider.slider-ready .hl-slide { transition: opacity .55s ease; }
.hl-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-slide::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, rgba(6,26,50,0) 28%, rgba(6,26,50,.86) 100%);
}
.hl-dots { position: absolute; right: 14px; bottom: 12px; z-index: 4; display: flex; gap: 6px; }
.hl-dot {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.42); transition: background .2s;
}
.hl-dot.on { background: var(--c-accent); }
.hl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 30px 16px; color: var(--c-muted); font-size: 13px; }
.hl-empty p { margin: 0; }
.hl-empty a { color: var(--c-primary); font-size: 12.5px; }
.hl-cover-ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 44px; font-weight: 700; }
.hl-lead-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 14px; z-index: 2; }
.hl-tag { display: inline-block; background: var(--c-accent); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 2px; }
.hl-title { color: #fff; font-size: 19px; line-height: 1.5; margin-top: 7px; font-weight: 700; }
.hl-desc { color: rgba(255,255,255,.78); font-size: 12.5px; line-height: 1.7; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-list { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.hl-list-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; height: 34px; background: #f7f8fa; border-bottom: 1px solid var(--line);
}
.hl-list-head h2 { font-size: 13.5px; font-weight: 700; color: #12457d; position: relative; padding-left: 10px; }
.hl-list-head h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 3px; height: 13px; background: var(--c-accent); }
.hl-list-head a { font-size: 11.5px; color: #999; }
.hl-list-head a:hover { color: var(--c-accent); }
.hl-item { display: block; padding: 8px 12px; border-bottom: 1px dashed var(--line-soft); }
.hl-item:last-child { border-bottom: 0; }
.hl-item .hi-title { display: block; font-size: 13px; color: #333; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-item .hi-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #9aa2ab; margin-top: 2px; }
.hl-item:hover { background: #fbfcfd; }
.hl-item:hover .hi-title { color: var(--c-accent); }

/* ---------------- 栏目频道 ---------------- */
.sec { background: #fff; border: 1px solid var(--line); margin-top: 14px; }
.sec-head { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; background: linear-gradient(180deg, #2e7fd0, #1a5fa8); }
.sec-title { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .04em; }
.sec-sub { color: rgba(255,255,255,.72); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-more { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,.86); flex: none; }
.sec-more:hover { color: #ffe0c2; }
.sec > .cards, .sec > .block-html { margin-top: 0; padding: 10px 14px 12px; }
.ch-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.ch-tab {
    border: 1px solid var(--line); border-bottom: 0; background: #f7f8fa; color: #4b5563;
    font-size: 12px; padding: 5px 11px; cursor: pointer; border-radius: 2px 2px 0 0; position: relative; top: 1px;
}
.ch-tab i { font-style: normal; color: #a4abb3; margin-left: 4px; font-size: 11px; }
.ch-tab:hover { color: var(--c-accent); border-color: #f6c9a3; }
.ch-tab.on { background: #fff; color: var(--c-accent); border-color: #f1b282 #f1b282 #fff; font-weight: 700; }
.ch-tab.on i { color: var(--c-accent); }
/* 不显示一级栏目名的频道块：页签直接贴在区块顶部 */
.ch-sec.no-title .ch-tabs { padding-top: 12px; border-top: 3px solid #1a5fa8; }
.ch-empty { padding: 14px 0 !important; color: #8b939c; font-size: 12.5px; display: block !important; border-bottom: 0 !important; }
/* 横排卡片页签：一行三张，封面 + 标题 + 日期 */
.ch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0 2px; }
.ch-card { display: block; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.ch-card:hover { border-color: #f1b282; box-shadow: 0 2px 8px rgba(26,95,168,.08); }
.ch-card-img { position: relative; padding-top: 66.67%; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #f3f5f8; }
.ch-card-img.cover-ph span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 20px; color: #fff; letter-spacing: .08em; }
.ch-card-body { padding: 9px 11px 11px; }
.ch-card-title { font-size: 13px; line-height: 1.55; color: #2b2f36; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-card:hover .ch-card-title { color: var(--c-accent); }
.ch-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 11px; color: #a2a9b1; }
.ch-card-go { color: var(--c-accent); opacity: 0; transition: opacity .15s; }
.ch-card:hover .ch-card-go { opacity: 1; }
.ch-cards-empty { padding: 22px 0; text-align: center; color: #8b939c; font-size: 12.5px; }
/* 首页前两块栏目频道并排两列 */
.home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-items: start; }
.home-pair .sec { margin-bottom: 0; }
.home-pair .ch-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.home-pair .ch-tabs { gap: 2px; padding-left: 10px; padding-right: 10px; }
.home-pair .ch-tab { font-size: 11px; padding: 4px 6px; }
.home-pair .ch-tab i { margin-left: 2px; font-size: 10px; }
.home-pair .ch-list { padding: 10px 0 0; }
.home-pair .ch-list li { align-items: flex-start; gap: 8px; }
.home-pair .ch-list a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
.home-pair .ch-date { padding-top: 1px; }
.home-pair .ch-more { padding-top: 6px; }
/* 单块时按通栏铺满，避免右侧留半列空白 */
.home-pair.one { grid-template-columns: minmax(0, 1fr); }
.home-pair.one .ch-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .home-pair.one .ch-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .home-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .ch-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ch-cards { grid-template-columns: 1fr; } }

/* ---------- 首页紧凑化与四边对齐（仅 .home-main 内生效，内页不受影响） ---------- */
.home-main .sec-head { height: 32px; }
.home-main .sec > .cards, .home-main .sec > .block-html { padding: 8px 12px 10px; }
.home-main .ch-panes { padding: 2px 12px 8px; }
.home-main .ch-cards { gap: 10px; padding: 8px 0 2px; }
.home-main .ch-list li { padding: 6px 0; }
.home-pair .sec { margin-top: 0; }
@media (max-width: 1100px) {
    .home-main > .sec, .home-main > .home-pair, .home-main > .left-ads, .home-main > .ad-wrap { margin-top: 4px; }
}
/* 首页底部通栏广告：横跨内容列 + 右侧栏整宽，左右边与整页容器对齐 */
.home-main > .ad-wrap { padding-left: 0; padding-right: 0; }
.home-bottom-band { margin-top: 4px; }
.home-bottom-band .ad-wrap { margin: 0; padding: 0; max-width: none; width: 100%; }
.home-bottom-band .ad-wrap > a, .home-bottom-band .ad-box { display: block; width: 100% !important; max-width: 100% !important; }
.home-bottom-band .ad-box img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block; }
.ch-panes { padding: 2px 14px 10px; }
.ch-pane { display: none; }
.ch-pane.on { display: block; }
.ch-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.ch-list li:last-child { border-bottom: 0; }
.ch-list a { flex: 1; min-width: 0; font-size: 13px; color: #333; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-list a:hover { color: var(--c-accent); }
.ch-date { flex: none; font-size: 11px; color: #a3aab2; }
.ch-top { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--c-accent); border-radius: 2px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.ch-more { display: block; text-align: right; padding-top: 7px; font-size: 11.5px; color: #999; }
.ch-more:hover { color: var(--c-accent); }

/* ---------------- 侧栏 ---------------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.widget { background: #fff; border: 1px solid var(--line); }
.widget-title { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; background: linear-gradient(180deg, #2e7fd0, #1a5fa8); }
.widget-title > span { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; position: relative; padding-left: 10px; }
.widget-title > span::before { content: ""; position: absolute; left: 0; top: 3px; width: 3px; height: 12px; background: var(--c-accent); }
.widget-title > a { color: rgba(255,255,255,.8); font-size: 11.5px; }
.widget-title > a:hover { color: #ffe0c2; }
.widget-body { padding: 8px 12px 10px; }
.news-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { flex: 1; min-width: 0; font-size: 12.5px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover { color: var(--c-accent); }
.news-list .nl-date { flex: none; font-size: 11px; color: #a3aab2; }
/* 首页右栏：联谊公告页签 */
.side-announce .widget-title { padding: 0; }
.side-announce .st-tab { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(255,255,255,.16); position: relative; }
.side-announce .st-tab::before { display: none; }
.side-announce .st-tab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-accent); }
.side-announce .widget-title > a { margin-right: 12px; }
.side-empty { margin: 3px 0 2px; font-size: 12.5px; color: #8b939c; line-height: 1.95; }
.side-empty-more { display: inline-block; margin-top: 2px; font-size: 12.5px; color: var(--c-accent); }
.side-empty-more:hover { text-decoration: underline; }
.rank-list li { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.rank-list li:last-child { border-bottom: 0; }
.rank-no { flex: none; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 11px; color: #fff; background: #b9c0c8; border-radius: 2px; }
.rank-no.r1 { background: #e8452c; }
.rank-no.r2 { background: #f0762a; }
.rank-no.r3 { background: #eaa32c; }
.rank-list a { flex: 1; min-width: 0; font-size: 12.5px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--c-accent); }
.cat-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list li a { font-size: 12.5px; color: #444; }
.cat-list .cl-count { font-size: 11px; color: #a3aab2; }

/* 首页右栏会员表单 */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 0 10px; }
.auth-tab {
    flex: 1; padding: 7px 0; font-size: 12.5px; color: #555; background: #f7f8fa; border: 0;
    border-bottom: 2px solid transparent; cursor: pointer;
}
.auth-tab:hover { color: var(--c-accent); }
.auth-tab.on { background: #fff; color: var(--c-accent); font-weight: 700; border-bottom-color: var(--c-accent); }
.auth-tab:last-child { border-right: 0; }
.auth-pane { display: none; }
.auth-pane.on { display: block; }
.auth-pane label { display: block; font-size: 11.5px; color: #7b838c; margin: 7px 0 3px; }
.auth-pane input {
    width: 100%; border: 1px solid #d9dde2; border-radius: 2px; padding: 6px 9px; font-size: 12.5px;
    outline: none; background: #fff; color: #333; height: 30px;
}
.auth-pane input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(26,95,168,.1); }
.auth-pane .btn { margin-top: 9px; }
.auth-hint { font-size: 11px; color: #949ba3; line-height: 1.6; margin-top: 7px; }
.auth-user { display: flex; align-items: center; gap: 10px; padding: 4px 0 9px; }
.auth-avatar { width: 38px; height: 38px; display: grid; place-items: center; background: linear-gradient(160deg, #2a76c6, var(--c-primary-d)); color: #fff; font-size: 17px; font-weight: 700; border-radius: 2px; }
.auth-user b { display: block; font-size: 13px; color: #333; }
.auth-state { font-size: 11px; color: #98a1aa; }
.auth-actions { display: flex; flex-direction: column; gap: 7px; }
.auth-actions .btn { width: 100%; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid transparent; border-radius: 2px; padding: 7px 16px; font-size: 13px;
    cursor: pointer; line-height: 1.4; font-weight: 600; transition: .15s;
}
.btn.block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #ff8a1f, #f4610a); color: #fff; border-color: #e25700; }
.btn-primary:hover { background: linear-gradient(180deg, #f9800f, #de5503); color: #fff; }
.btn-accent { background: linear-gradient(180deg, #2e7fd0, #1a5fa8); color: #fff; border-color: #14508e; }
.btn-accent:hover { background: linear-gradient(180deg, #2775c2, #144f8b); color: #fff; }
.btn-ghost { background: #fff; color: #4b5563; border-color: #cfd5db; }
.btn-ghost:hover { background: #fff6ee; color: var(--c-accent); border-color: #f4b183; }

/* ---------------- 页头（栏目页/搜索页） ---------------- */
.page-head { margin-top: 10px; }
.crumbs { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8b939c; padding: 7px 0; }
.crumbs a { color: #6f7881; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs .cur { color: #a3aab2; }
.page-head-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(180deg, #2e7fd0, #1a5fa8); padding: 13px 18px; min-height: 56px;
}
.page-title { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.page-sub { color: rgba(255,255,255,.78); font-size: 12px; margin-top: 3px; }
.page-count { color: rgba(255,255,255,.8); font-size: 12px; flex: none; }
.page-count b { color: #fff; font-size: 14px; }
.page-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.memo-search { display: flex; align-items: center; }
.memo-search input {
    width: 196px; height: 32px; padding: 0 10px; line-height: 30px;
    border: 1px solid rgba(255, 255, 255, .65); border-right: 0; border-radius: 2px 0 0 2px;
    background: #fff; color: #23384f; font-size: 12.5px; outline: none;
}
.memo-search input::placeholder { color: #9aa4ae; }
.memo-search input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 2px rgba(240, 150, 40, .18); }
.memo-search button {
    height: 32px; padding: 0 16px; border: 0; border-radius: 0 2px 2px 0;
    background: var(--c-accent); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.memo-search button:hover { background: #f5b04a; }
.memo-search-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 12px; padding: 8px 12px;
    background: #fff; border: 1px solid #e8dfcd; font-size: 12.5px; color: #7a6a4e;
}
.memo-search-bar b { color: #a86800; }
.memo-search-bar a { color: var(--c-primary); }
.page-head.has-sub .page-head-inner { border-radius: 0; }
.sub-cats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-top: 0; padding: 9px 14px; }
.sub-cats a { font-size: 12px; color: #4b5563; border: 1px solid #dde1e6; padding: 4px 11px; border-radius: 2px; background: #fafbfc; }
.sub-cats a:hover { color: var(--c-accent); border-color: #f2b78f; background: #fff6ee; }

/* ---------------- 列表/搜索布局 ---------------- */
.content-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; margin-top: 12px; }
.content-with-side:not(.has-sidebar) { grid-template-columns: minmax(0, 1fr); }
.content-main { min-width: 0; }
.page-body { background: #fff; border: 1px solid var(--line); padding: 4px 14px 12px; }
.page-body .empty-tip { border: 0; padding: 40px 16px; background: transparent; }
.empty-tip { background: #fff; border: 1px dashed #d9dde2; color: #8b939c; text-align: center; padding: 40px 20px; font-size: 13px; }
.empty-tip strong, .empty-tip b { color: #4b5563; }
.page-body + .pager { background: #fff; border: 1px solid var(--line); border-top: 0; padding: 10px 14px; }

/* 卡片：网格 / 行式 */
.cards { display: grid; gap: 12px; }
.cards.cols-1 { grid-template-columns: 1fr; gap: 0; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.card:hover { border-color: #f2b78f; }
.cards.cols-1 .card { display: flex; flex-direction: row; align-items: stretch; border: 0; border-bottom: 1px dashed var(--line-soft); }
.cards.cols-1 .card:last-child { border-bottom: 0; }
.cards.cols-1 .card:hover { background: #fffaf5; }
.card-cover, .thumb-img { display: block; background: #12457d center/cover no-repeat; overflow: hidden; }
.card-cover { width: 100%; height: 146px; }
.cards.cols-1 .row-thumb, .cards.cols-1 .row-thumb .thumb-img { width: 100%; height: 100%; }
.cards.cols-1 .row-thumb { flex: none; width: 214px; height: 134px; }
.cards.cols-1 .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cards.cols-1 .row-body { flex: 1; min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.cards.cols-1 .row-body .card-title { font-size: 15px; }
.cards.cols-1 .row-body .card-desc { font-size: 12.5px; color: #7b838c; }
.card-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--c-accent); }
.card-desc { font-size: 12px; color: #8b939c; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a3aab2; margin-top: auto; }
.card-cat { color: #1a5fa8; background: #eff5fb; padding: 1px 6px; border-radius: 2px; }
.card-link { font-size: 11.5px; color: #9aa2ab; }
.card-row { flex-direction: row; }
.cover-ph { position: relative; background: #12457d; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 20px; font-weight: 700; min-height: 120px; }
.cover-ph span { position: relative; z-index: 1; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 0 4px; font-size: 12px; }
.pager a, .pager .cur { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d9dde2; background: #fff; color: #555; padding: 0 8px; border-radius: 2px; }
.pager a:hover { color: var(--c-accent); border-color: #f2b78f; }
.pager .cur { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 700; }
.pager .gap { color: #b0b7bf; }

/* ---------------- 文章详情 ---------------- */
.article { background: #fff; border: 1px solid var(--line); padding: 18px 22px 22px; }
.article-head { border-bottom: 1px dashed var(--line-soft); padding-bottom: 12px; margin-bottom: 14px; }
.article-cat { display: inline-block; font-size: 11.5px; color: var(--c-accent); border: 1px solid #f6cdaa; background: #fff6ee; padding: 1px 8px; border-radius: 2px; }
.article-title { font-size: 22px; line-height: 1.5; color: #23384f; margin-top: 9px; font-weight: 700; }
.article-sub { font-size: 12.5px; color: #8b939c; margin-top: 5px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: #a3aab2; margin-top: 8px; flex-wrap: wrap; }
.article-cover { margin: 0 0 16px; }
.article-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.article-body { font-size: 14.5px; line-height: 1.95; color: #3b4652; }
.article-body p { margin: 0 0 14px; }
.article-body h2 { font-size: 17px; color: #23384f; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--c-accent); }
.article-body h3 { font-size: 15.5px; color: #23384f; margin: 18px 0 8px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 14px; list-style: disc; }
.article-body a { color: var(--c-primary); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 12px auto; }
.article-body figure { margin: 16px 0; }
.article-body figcaption { font-size: 12px; line-height: 1.7; color: #8b939c; text-align: center; margin-top: 8px; }
.article-body video { max-width: 100%; display: block; margin: 12px auto; }
.article-body .lead { background: #f4f8fc; border-left: 3px solid var(--c-primary); padding: 10px 14px; color: #3b4652; }
.article-body blockquote { margin: 16px 0; padding: 10px 14px; background: #fffaf3; border-left: 3px solid var(--c-accent); color: #4b5563; }
.article-body blockquote p { margin: 0; }
.article-media { margin-top: 18px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.media-item { border: 1px solid var(--line); background: #fff; }
.media-item img { display: block; width: 100%; }
.media-title { font-size: 12px; color: #7b838c; padding: 6px 8px; }
.media-video video { width: 100%; display: block; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-soft); margin-top: 16px; padding-top: 10px; font-size: 12px; color: #98a1aa; flex-wrap: wrap; }
.pn-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pn {
    display: block; background: #fff; border: 1px solid var(--line); padding: 10px 14px; font-size: 13px; color: #444;
    overflow: hidden;
}
.pn span { display: block; font-size: 11px; color: #a3aab2; margin-bottom: 2px; }
.pn:hover { border-color: #f2b78f; color: var(--c-accent); }
.pn.disabled { color: #b0b7bf; background: #fafbfc; }
.pn.next { text-align: right; }
.related { margin-top: 16px; background: #fff; border: 1px solid var(--line); }
.gif-badge { display: inline-block; font-size: 10px; color: #fff; background: var(--c-accent); padding: 0 5px; border-radius: 2px; }

/* ---------------- 搜索页 ---------------- */
.search-form.big { height: 36px; }
.search-form.big input { width: 260px; }
.search-form.big button { height: 36px; }

/* ---------------- 会员中心 ---------------- */
.member-shell { margin-top: 12px; }
.member-card { background: #fff; border: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.member-head { background: linear-gradient(180deg, #2e7fd0, #1a5fa8); padding: 15px 22px; color: #fff; }
.member-head h1 { font-size: 19px; font-weight: 700; }
.member-head p { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 3px; }
.member-body { padding: 16px 22px 22px; }
.member-form { display: block; }
.member-form label { display: block; font-size: 12.5px; color: #555; margin: 11px 0 5px; }
.member-form label i { font-style: normal; color: #e8452c; }
.member-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
.member-form select, .member-form textarea {
    width: 100%; border: 1px solid #d9dde2; border-radius: 2px; padding: 7px 10px; font-size: 13px;
    background: #fff; outline: none; color: #333; line-height: 1.5;
}
/* 单行输入框统一高度，避免 type=email 等类型因浏览器默认样式而尺寸不一 */
.member-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
.member-form select { height: 35px; }
.member-form input:focus, .member-form select:focus, .member-form textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(26,95,168,.1); }
.member-form button { margin-top: 14px; }
.member-form.wide { max-width: 100%; }
.member-sage-fieldset {
    margin: 16px 0 6px;
    padding: 14px 16px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fbfcfe;
}
.member-sage-fieldset h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a5fa8;
}
.member-sage-fieldset .hint {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.7;
    color: #8b939c;
}
/* 任职申请表框：姓名/电话两列，单位与简介占整行 */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.apply-grid .apply-full { grid-column: 1 / -1; }
.apply-grid label { margin-top: 8px; }
@media (max-width: 640px) { .apply-grid { grid-template-columns: 1fr; } }
.member-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; }
.member-links a { color: #6f7881; }
.member-links a:hover { color: var(--c-accent); }
.member-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ms-item { background: #f7f9fb; border: 1px solid var(--line); padding: 10px 12px; }
.ms-item span { display: block; font-size: 11.5px; color: #8b939c; }
.ms-item b { font-size: 19px; color: var(--c-accent); }
.member-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { background: #f7f8fa; color: #555; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.table .t-title { color: #333; }
.table .t-reason { font-size: 11.5px; color: #e8452c; margin-top: 2px; }
.table .t-ops a { color: var(--c-primary); }
.table .t-ops a.danger { color: #d23c22; }
/* 稿件删除改为 POST 表单后，按钮保持与链接一致的外观 */
.table .t-ops .t-del { display: inline; margin: 0; padding: 0; }
.table .t-ops .t-del button {
    border: 0; background: none; padding: 0; margin-left: 8px; cursor: pointer;
    font: inherit; font-size: 12px; color: #d23c22; text-decoration: underline;
}
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 2px; }
.tag-draft { background: #f0f2f4; color: #777; }
.tag-pending { background: #fff4e8; color: #d06400; }
.tag-published { background: #eef6ee; color: #2f7d32; }
.tag-rejected { background: #fdeeed; color: #c62828; }
.alert { border: 1px solid var(--line); padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; background: #fafbfc; color: #555; }
.alert-success { border-color: #cde6cd; background: #f1f8f1; color: #2f7d32; }
.alert-info { border-color: #cfe0f7; background: #f2f7ff; color: #215a9e; }
.alert-warn { border-color: #f6ddb0; background: #fff8ec; color: #a86800; }
.alert-error { border-color: #f3c7c2; background: #fdf2f1; color: #c62828; }
.alert .hint { color: #8b939c; }
.reset-link { word-break: break-all; color: var(--c-primary); }

/* ---------------- 服务条 ---------------- */
.value-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.value-item { padding: 18px 20px; border-right: 1px dashed var(--line-soft); }
.value-item:last-child { border-right: 0; }
.value-item .v-no { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c-accent); border-bottom: 2px solid var(--c-accent); padding-bottom: 1px; }
.value-item h3 { font-size: 14.5px; color: #23384f; margin-top: 5px; font-weight: 700; }
.value-item p { font-size: 12px; color: #8b939c; line-height: 1.7; margin-top: 3px; }

/* ---------------- 页脚（浅色 + 备案徽标） ---------------- */
.site-footer { background: #fff; border-top: 2px solid var(--c-accent); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 26px 0 22px; }
.footer-col h4 { font-size: 13px; color: #23384f; font-weight: 700; margin-bottom: 8px; padding-left: 9px; position: relative; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 2px; width: 3px; height: 12px; background: var(--c-accent); }
.footer-col ul li { font-size: 12.5px; color: #7b838c; line-height: 1.9; }
.footer-col ul li a { color: #6f7881; }
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-logo { font-size: 19px; font-weight: 700; color: #1b3a5c; letter-spacing: .05em; }
.footer-brand p { font-size: 12.5px; color: #8b939c; line-height: 1.8; margin-top: 8px; max-width: 420px; }
.footer-bottom { border-top: 1px solid var(--line); background: #f7f8fa; }
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 12px; color: #8b939c; flex-wrap: wrap; }
.footer-badges { display: flex; align-items: center; gap: 8px; }
.fb-badge {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 92px; padding: 5px 9px; border: 1px solid #dfe2e6; background: #fff; line-height: 1.4; text-align: center;
}
.fb-badge b { font-size: 11.5px; color: #5b6570; font-weight: 600; }
.fb-badge span { font-size: 10px; color: #a3aab2; }
a.fb-badge { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.fb-badge:hover { border-color: #1a5fa8; box-shadow: 0 1px 4px rgba(26,95,168,.14); }

/* ---------------- 404 ---------------- */
.notfound { background: #fff; border: 1px solid var(--line); text-align: center; padding: 56px 20px; margin-top: 14px; }
.nf-code { font-size: 60px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.nf-title { font-size: 19px; color: #23384f; margin-top: 8px; }
.nf-desc { font-size: 12.5px; color: #8b939c; margin-top: 6px; }
.nf-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* 浮动广告 */
.float-ad { position: fixed; right: 16px; bottom: 18px; z-index: 60; max-width: 200px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1279px) {
    .nav-bar { background: none; border-top: 0; box-shadow: none; }
    .nav-bar .wrap { display: block; height: 0; }
    .nav-cta { display: none; }
    .site-nav {
        position: fixed; left: 0; right: 0; top: 118px; background: #fff; padding: 8px 22px 14px;
        flex-direction: column; align-items: stretch; gap: 1px; display: none; height: auto;
        box-shadow: 0 12px 30px rgba(20,40,70,.18); border-bottom: 1px solid var(--line);
        max-height: 72vh; overflow: auto; z-index: 60;
    }
    .site-nav.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .nav-item { height: auto; padding: 9px 10px; font-size: 14px; color: #333; }
    .nav-item:hover { color: var(--c-accent); background: #fff6ee; }
    .nav-item.active { background: #fff4e8; color: var(--c-accent); }
    .site-nav > .nav-item:first-child { padding-left: 10px; }
    .nav-has-sub { height: auto; display: block; }
    .site-nav .nav-sub {
        position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0;
        padding: 0 0 4px 14px; max-height: none; overflow: visible; transform: none;
    }
    .site-nav .nav-sub a { padding: 6px 10px; font-size: 12.5px; color: #6f7881; }
}
@media (max-width: 1100px) {
    .home-grid, .content-with-side.has-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar .widget, .sidebar .ad-wrap { flex: 1 1 300px; }
    .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-item:nth-child(2) { border-right: 0; }
    .value-item:nth-child(3), .value-item:nth-child(4) { border-top: 1px dashed var(--line-soft); }
    .header-member { display: none; }
    .pa-grid { display: none; }
    .portal-ads { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .headline { grid-template-columns: minmax(0, 1fr); }
    .hl-lead { min-height: 220px; }
    .hl-list { border-left: 0; border-top: 1px solid var(--line); }
    .banner-wide .bw-tags { display: none; }
}
@media (max-width: 820px) {
    .header-inner { height: 60px; gap: 8px; }
    .brand-mark { width: 34px; height: 34px; font-size: 16px; }
    .brand-logo { height: 40px; max-width: 130px; }
    .brand-name { font-size: 17px; }
    .brand-sub { display: none; }
    .header-member { display: none; }
    .header-ad-slot { display: none; }
    .header-tools { margin-left: auto; }
    .site-nav { padding: 8px 16px 14px; }
    .topbar-left .tb-phone { display: none; }
    .topbar-right { gap: 9px; }
    .search-strip-inner { padding: 8px 0; }
    .hot-words { display: none; }
    .search-form { flex: 1; }
    .search-form input { width: 100%; }
    .page-head-inner { padding: 11px 14px; }
    .page-title { font-size: 16.5px; }
    .sub-cats { padding: 8px 10px; gap: 5px; }
    .sub-cats a { padding: 3px 9px; font-size: 11.5px; }
    .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .cards.cols-1 .card { flex-direction: column; }
    .cards.cols-1 .row-thumb { width: 100%; height: 168px; }
    .cards.cols-1 .row-body { padding: 10px 12px 12px; }
    .article { padding: 14px 14px 18px; }
    .article-title { font-size: 19px; }
    .article-body { font-size: 14px; }
    .article-body p, .article-body h2, .article-body h3, .article-body ul { max-width: 100%; overflow-wrap: break-word; }
    .member-body { padding: 12px 14px 18px; }
    .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-grid { grid-template-columns: minmax(0, 1fr); }
    .pn-nav { grid-template-columns: minmax(0, 1fr); }
    .value-grid { grid-template-columns: minmax(0, 1fr); }
    .value-item { border-right: 0; border-top: 1px dashed var(--line-soft); }
    .value-item:first-child { border-top: 0; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0 16px; }
    .footer-bottom .wrap { justify-content: center; text-align: center; }
    .float-ad { display: none; }
    .banner-wide { padding: 0 16px; }
    .banner-wide .bw-txt b { font-size: 17px; }
    .portal-ads { padding: 0 10px; }
    .pa-banner { width: 100%; }
    .ad-demo { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
    .ad-demo-brand { text-align: left; }
}
@media (max-width: 560px) {
    .topbar-left .tb-slogan { display: none; }
    .search-strip-inner { gap: 8px; }
    .card-meta { flex-wrap: wrap; }
    .sec-sub { display: none; }
}

/* 古代先贤：先贤档案表框 */
.card-sage-meta {
    align-self: flex-start;
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid #eadfca;
    border-radius: 2px;
    background: #fbf7ee;
    color: #8a6a3b;
    font-size: 11.5px;
    line-height: 1.8;
}
.sage-profile {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid #e4ddcf;
    background: #fcfbf7;
}
.sage-photo {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0ece3;
    border: 1px solid #e4ddcf;
}
.sage-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sage-photo-ph { color: #b08d57; font-size: 30px; letter-spacing: 4px; }
.sage-info { min-width: 0; }
.sage-kicker { font-size: 11.5px; letter-spacing: 2px; color: #9a7b4c; margin-bottom: 4px; }
.sage-name { margin: 0 0 14px; font-size: 21px; line-height: 1.4; color: #23384f; font-weight: 700; }
.sage-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.sage-table th, .sage-table td { border: 1px solid #e4ddcf; padding: 8px 10px; vertical-align: top; }
.sage-table th { width: 104px; background: #f5f0e5; color: #7a5a2e; font-weight: 600; text-align: left; white-space: nowrap; }
.sage-table td { color: #3b4652; line-height: 1.85; word-break: break-word; }
.sage-body-title {
    margin: 22px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--c-accent);
    font-size: 17px;
    color: #23384f;
}
@media (max-width: 820px) {
    .sage-profile { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
    .sage-photo { width: 220px; max-width: 100%; height: 300px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .sage-photo { width: 180px; height: 246px; }
    .sage-name { font-size: 18px; }
    .sage-table { font-size: 12.5px; }
    .sage-table th { width: 62px; padding: 6px 8px; white-space: normal; }
    .sage-table td { padding: 6px 8px; }
}

/* ---------------- 祭奠先人 ---------------- */
.memorial-note {
    display: flex; gap: 8px; align-items: baseline;
    margin: 12px 0 14px; padding: 9px 12px;
    background: #fff8ec; border: 1px solid #f0dfc0;
    font-size: 12.5px; color: #8a6a3b;
}
.memorial-note span { flex: none; font-weight: 700; color: #a86800; }

.memo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.memo-card {
    display: block; padding: 16px 14px 0; background: #fff; border: 1px solid var(--line);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.memo-card:hover { transform: translateY(-2px); border-color: #e6b47a; box-shadow: 0 8px 20px rgba(15,23,42,.10); }
.memo-avatar {
    position: relative; width: 104px; height: 104px; margin: 0 auto 10px;
    border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: #f6f1e6; border: 1px solid #e6dcc8;
    box-shadow: 0 4px 12px rgba(15,23,42,.08), inset 0 0 0 3px #fff;
    transition: box-shadow .15s, border-color .15s;
}
.memo-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.96); }
.memo-avatar-ph { font-size: 32px; font-weight: 700; color: #b08d57; letter-spacing: 1px; }
.memo-card:hover .memo-avatar { border-color: #e6b47a; box-shadow: 0 6px 16px rgba(200,120,30,.18), inset 0 0 0 3px #fff; }
.memo-body { padding: 0 0 12px; text-align: center; }
.memo-name { font-size: 16px; font-weight: 700; color: #23384f; letter-spacing: .04em; }
.memo-life, .memo-meta { margin-top: 3px; font-size: 12px; color: #8b939c; }
.memo-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-soft);
    font-size: 11.5px;
}
.memo-count { color: #a86800; }
.memo-go { color: var(--c-primary); }
.memo-card:hover .memo-go { color: var(--c-accent); }

.memo-profile { border-color: #e4ddcf; }
.memo-ritual, .memo-records { background: #fff; border: 1px solid var(--line); margin-top: 18px; }

/* 祭奠区遗像：黑框遗照 + 姓名 + 敬献说明 */
.ritual-altar {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 16px 14px; margin: 14px 14px 0;
    background: linear-gradient(180deg, #fbf7ef, #f5eee0);
    border: 1px solid #e8dfcd;
}
.altar-photo {
    width: 200px; height: 266px; overflow: hidden;
    display: grid; place-items: center; background: #fff;
    border: 8px solid #2b2b2b; box-shadow: 0 0 0 1px #c9b894, 0 10px 22px rgba(15, 23, 42, .14);
}
.altar-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.altar-ph { font-size: 52px; font-weight: 700; color: #b08d57; }
.altar-name { margin-top: 14px; font-size: 20px; font-weight: 700; color: #23384f; letter-spacing: .08em; }
.altar-sub { margin-top: 3px; font-size: 12.5px; color: #8b939c; }
.altar-rule { width: 140px; height: 1px; background: #d8cbb4; margin: 12px 0 8px; }
.altar-note { font-size: 12.5px; color: #a08b64; letter-spacing: .1em; }

.ritual-stat {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
    font-size: 12.5px; color: #7a7f87;
}
.rs-item { border: 1px solid #f0e0c2; background: #fdfaf3; padding: 3px 10px; }
.rs-item b { color: #a86800; }
.rs-total { margin-left: auto; border-color: #cfe0f7; background: #f2f7ff; }
.rs-total b { color: var(--c-primary); }

.memo-form { padding-top: 4px; }
.ritual-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.ritual-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 6px 13px; border: 1px solid #e4ddcf; background: #fcfbf7; cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.ritual-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ritual-item:hover { border-color: #dcbf8b; background: #fffdf7; transform: translateY(-1px); }
.ritual-item.on, .ritual-item:has(input:checked) {
    border-color: #c8912f; background: #fff6e3; box-shadow: inset 0 0 0 1px #e8c789, 0 6px 14px rgba(200,145,47,.14);
}
.ri-icon {
    width: 84px; height: 84px; display: block;
    transition: transform .18s, filter .18s;
}
.ri-icon svg { width: 100%; height: 100%; display: block; }
.ritual-item:hover .ri-icon { transform: scale(1.06); }
.ritual-item.on .ri-icon, .ritual-item:has(input:checked) .ri-icon { filter: drop-shadow(0 3px 6px rgba(200,145,47,.28)); }
.ri-label { font-size: 13.5px; color: #3b4652; letter-spacing: .5px; }
.ritual-item.on .ri-label { color: #8a5a12; font-weight: 700; }

/* —— 祭奠方式动效 —— */
.ri-icon svg * { transform-box: view-box; }
.ic-flame { transform-origin: 32px 29px; animation: candleFlicker 1.15s ease-in-out infinite alternate; }
.ic-flame-core { transform-origin: 32px 22px; animation: candleFlicker 1.15s ease-in-out infinite alternate-reverse; }
.ic-flame-sm { transform-origin: 32px 63px; animation: candleFlicker 1.05s ease-in-out infinite alternate; }
.ic-flame-sm-core { transform-origin: 32px 60px; animation: candleFlicker 1.05s ease-in-out infinite alternate-reverse; }
.ic-glow { animation: emberGlow 2.4s ease-in-out infinite; }
.ic-smoke { transform-origin: 32px 64px; animation: smokeRise 2.6s ease-in-out infinite; opacity: .45; }
.ic-smoke.s2 { animation-delay: .8s; }
.ic-smoke.s3 { animation-delay: 1.6s; }
.ic-ember { animation: emberFloat 2.2s ease-in-out infinite; }
.ic-ember.e2 { animation-delay: 1.1s; }
.ic-bloom { transform-origin: 32px 22px; animation: bloomSway 3.2s ease-in-out infinite; }
.ic-cup { transform-origin: 23px 53px; animation: cupLift 2.8s ease-in-out infinite; }
.ic-jug { transform-origin: 43px 40px; animation: jugPour 2.8s ease-in-out infinite; }
.ic-pour { animation: pourFlow 2.8s ease-in-out infinite; }
.ic-bow { transform-origin: 27px 49px; animation: kneelBow 2.9s ease-in-out infinite; }
.ritual-item.on .ic-flame, .ritual-item:has(input:checked) .ic-flame { animation-duration: .82s; }
.ritual-item.on .ic-bow, .ritual-item:has(input:checked) .ic-bow { animation-duration: 2.2s; }
.ritual-item.on .ic-flame-sm, .ritual-item:has(input:checked) .ic-flame-sm { animation-duration: .8s; }

@keyframes candleFlicker {
    0%   { transform: scale(1, 1) translateY(0) rotate(-1.5deg); opacity: .96; }
    50%  { transform: scale(.94, 1.08) translateY(-1px) rotate(1.5deg); opacity: 1; }
    100% { transform: scale(1.05, .95) translateY(0) rotate(-.5deg); opacity: .94; }
}
@keyframes emberGlow { 0%, 100% { opacity: .14; transform: scale(.92); } 50% { opacity: .36; transform: scale(1.06); } }
@keyframes smokeRise {
    0%   { opacity: .28; transform: translateY(3px) scale(.97); }
    45%  { opacity: .82; transform: translateY(-2px) scale(1); }
    100% { opacity: .3; transform: translateY(-7px) scale(1.02); }
}
@keyframes jugPour {
    0%, 100% { transform: rotate(0) translateY(0); }
    50%      { transform: rotate(-4deg) translateY(-2px); }
}
@keyframes pourFlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes emberFloat { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: .95; transform: translateY(-4px); } }
@keyframes bloomSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes cupLift { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(-2.4px) rotate(1.6deg); } }
@keyframes kneelBow { 0%, 30%, 100% { transform: rotate(0); } 52%, 66% { transform: rotate(16deg); } }
@media (prefers-reduced-motion: reduce) {
    .ri-icon svg *, .ic-glow { animation: none !important; }
}

.memo-hint { padding: 0 14px; font-size: 12px; color: #8b939c; }
.memo-fields { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; padding: 12px 14px 4px; }
.memo-field label { display: block; margin-bottom: 5px; font-size: 12.5px; color: #5b6470; }
.memo-field label i { font-style: normal; color: #c62828; }
.memo-field input, .memo-field textarea {
    width: 100%; border: 1px solid #d9dde2; background: #fff;
    padding: 7px 9px; font-size: 13px; color: #333; line-height: 1.7;
}
.memo-field input:focus, .memo-field textarea:focus { outline: 0; border-color: #c8912f; box-shadow: 0 0 0 2px rgba(200,145,47,.12); }
.memo-field textarea { resize: vertical; min-height: 96px; }
.memo-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 16px; }
.memo-tip { font-size: 12px; color: #8b939c; }

.memo-login { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; padding: 18px 14px 20px; }
.memo-login p { font-size: 13px; color: #5b6470; }
.memo-login .btn { display: inline-block; }

.tribute-list { padding: 2px 14px 10px; }
.tribute-item { padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.tribute-item:last-child { border-bottom: 0; }
.tribute-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.tribute-name { font-weight: 700; color: #23384f; }
.tribute-methods { padding: 1px 8px; border: 1px solid #f0e0c2; background: #fdf6e8; color: #a86800; }
.tribute-time { margin-left: auto; font-size: 11.5px; color: #a3aab2; }
.tribute-msg { margin-top: 5px; font-size: 13px; color: #3b4652; line-height: 1.85; }

@media (max-width: 980px) {
    .memo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ritual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .memo-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .memo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .memo-card { padding: 12px 10px 0; }
    .memo-avatar { width: 84px; height: 84px; }
    .memo-name { font-size: 15px; }
    .ritual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
    .ri-icon { width: 54px; height: 54px; }
    .ri-label { font-size: 12px; }
    .memo-foot { font-size: 11px; }
    .tribute-time { margin-left: 0; }
}

.memo-jump { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.memo-jump span { font-size: 12px; color: #8b939c; }

/* ---------------- 组织机构（表框录入 · 独立发布） ---------------- */
.org-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.org-card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px; border: 1px solid #e4ddcf; background: #fcfbf7;
    color: inherit; text-decoration: none;
}
.org-card:hover { border-color: #d8c8a8; background: #fff; }
.org-thumb { flex: none; width: 96px; height: 96px; overflow: hidden; border: 1px solid #e4ddcf; background: #f0ece3; }
.org-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.org-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.org-tag { font-size: 11px; letter-spacing: 1.6px; color: #9a7b4c; }
.org-name { font-size: 16.5px; font-weight: 700; color: #23384f; line-height: 1.4; }
.org-meta { font-size: 12.5px; color: #5b6572; line-height: 1.7; }
.org-meta span { display: block; }
.org-meta b { display: inline-block; min-width: 40px; margin-right: 6px; color: #a86800; font-weight: 600; }
.org-desc { font-size: 12.5px; color: #7d838c; line-height: 1.75; }
.org-more { margin-top: 2px; font-size: 12px; color: #c0392b; }

.org-profile { margin: 18px 0 20px; padding: 16px 18px; border: 1px solid #e4ddcf; background: #fcfbf7; }
.org-profile-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.org-profile-tag { flex: none; font-size: 11.5px; letter-spacing: 2px; color: #9a7b4c; }
.org-profile-name { margin: 0; font-size: 21px; line-height: 1.4; color: #23384f; font-weight: 700; }
.org-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.org-table th, .org-table td { border: 1px solid #e4ddcf; padding: 8px 10px; vertical-align: top; }
.org-table th { width: 128px; background: #f5f0e5; color: #7a5a2e; font-weight: 600; text-align: left; white-space: nowrap; }
.org-table td { color: #3b4652; line-height: 1.85; word-break: break-word; }
.org-none { color: #a0a6ae; }

@media (max-width: 820px) {
    .org-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .org-card { padding: 12px; gap: 12px; }
    .org-thumb { width: 78px; height: 78px; }
    .org-name { font-size: 15px; }
    .org-table { font-size: 12.5px; }
    .org-table th { width: 96px; padding: 6px 8px; white-space: normal; }
    .org-table td { padding: 6px 8px; }
}.org-banner { margin-top: 14px; border: 1px solid #e4ddcf; overflow: hidden; }
.org-banner img { display: block; width: 100%; height: auto; }
/* ---------------- 理事联络（表框录入 · 独立发布） ---------------- */
.council-block { margin: 4px 0 20px; }
.council-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.council-table th, .council-table td { border: 1px solid #e4ddcf; padding: 9px 12px; text-align: left; vertical-align: middle; }
.council-table thead th { background: #f5f0e5; color: #7a5a2e; font-weight: 600; white-space: nowrap; }
.council-table tbody td { color: #3b4652; }
.council-tel { color: #c0392b; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.council-tel:hover { text-decoration: underline; }
.council-note { margin-top: 8px; font-size: 12px; color: #8b939c; }
.org-tel-text { color: #5b6572; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .council-table { font-size: 12.5px; }
    .council-table th, .council-table td { padding: 7px 8px; }
}

/* ---------------- 供需互助（表框录入 · 独立发布） ---------------- */
.supply-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: 1.2px;
    padding: 2px 9px;
    border: 1px solid #cfe3cf;
    background: #f1f8f1;
    color: #2f7d32;
}
.supply-tag.demand { border-color: #f3dcc0; background: #fff6ec; color: #b45309; }
.supply-tag.coop { border-color: #cfe0f5; background: #f0f6fd; color: #1a5fa8; }
/* 首页侧栏每块内容下方固定尺寸广告位（300×150，两个一组） */
.side-ad { width: 300px; max-width: 100%; height: 150px; align-self: flex-start; flex: 0 0 auto; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.side-ad .ad-wrap,
.side-ad .ad-box { margin: 0; height: 100%; }
.side-ad .ad-box img { width: 100%; height: 148px; object-fit: cover; display: block; }
@media (max-width: 820px) {
    .page-head-inner { flex-wrap: wrap; }
    .page-tools { width: 100%; justify-content: space-between; gap: 10px; }
    .memo-search input { width: auto; flex: 1 1 auto; min-width: 0; }
    .memo-search-bar { flex-wrap: wrap; }
}