/* ============ 公文文档库 — 站点样式（Bootstrap 之后加载） ============ */
:root {
    --primary: #b91c1c;          /* 党建红 */
    --primary-dark: #7f1d1d;
    --primary-hover: #991b1b;
    --teal: #0d9488;             /* 青绿：区块标题强调色 */
    --teal-dark: #0f766e;
    --gold: #c9a227;             /* 金色点缀 */
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f6f5f2;
    --card: #ffffff;
    --radius: .5rem;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
    --shadow: 0 1px 3px rgba(17, 24, 39, .07), 0 1px 2px rgba(17, 24, 39, .05);
    --shadow-lg: 0 12px 28px -8px rgba(17, 24, 39, .16), 0 4px 12px -6px rgba(17, 24, 39, .08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

/* 全局清除浏览器默认红色焦点环（保留键盘可访问的 :focus-visible） */
*:focus { outline: none !important; }
*:focus-visible {
    outline: 2px solid rgba(185, 28, 28, .55);
    outline-offset: 2px;
    border-radius: .25rem;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* 主色覆盖 Bootstrap */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary-dark);
}
.text-primary { color: var(--primary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }

/* ============ 行1：顶部品牌条 ============ */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .4rem; }
.brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    padding: .18rem .6rem;
    border-radius: .4rem;
}
.brand-text { font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: .5px; }

.topbar-search {
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 3px;
    gap: 4px;
    max-width: 380px;
    flex: 1 1 260px;
}
.topbar-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    border-radius: 2rem;
    padding: .4rem 1rem;
    font-size: .92rem;
}
.topbar-search button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 2rem;
    padding: .4rem 1.15rem;
    font-size: .85rem;
    font-weight: 600;
}
.topbar-search button:hover { background: var(--primary-hover); }

.topbar-account { font-size: .92rem; }
.topbar-account a { color: #374151; font-weight: 500; }
.topbar-account a:hover { color: var(--primary); }
.topbar-account .btn-reg {
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 2rem;
    padding: .28rem .95rem;
    transition: all .15s ease;
}
.topbar-account .btn-reg:hover { background: var(--primary); color: #fff; }

/* ============ 行2：一级分类导航 ============ */
.cat-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 55%, #c23030 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);   /* 中性阴影，避免红色延伸到正文造成「红框」错觉 */
}
.cat-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
    color: rgba(255, 255, 255, .92);
    font-size: 1rem;
    font-weight: 500;
    padding: .72rem 1.05rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all .15s ease;
}
.cat-nav-item:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cat-nav-item.active { color: #fff; border-bottom-color: var(--gold); font-weight: 600; }
.cat-nav-vip {
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 2rem;
    padding: .28rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}
.cat-nav-vip:hover { background: var(--gold); border-color: var(--gold); color: #3d2c00; }

/* ============ 主区域 / 页脚 ============ */
.site-main {
    min-height: calc(100vh - 170px);
    background: #f6f5f2;
    padding-top: 1.5rem;
    position: relative;
    z-index: 0;        /* 确保在 cat-nav 阴影之下，阴影覆盖不到正文 */
}
.site-footer { background: #171717; color: #a3a3a3; padding: 1.25rem 0; font-size: .875rem; margin-top: 3rem; }
.site-footer a { color: #d4d4d4; margin-left: 1rem; }
.site-footer a:hover { color: #fff; }

/* ============ 首页：搜索区 ============ */
.hero {
    background:
        radial-gradient(ellipse at 15% -10%, rgba(255, 255, 255, .14), transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #c23030 100%);
    padding: 2.6rem 1rem 2.1rem;
    color: #fff;
    border-bottom: 3px solid var(--gold);
}
.hero h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: 1px; }
.hero .hero-sub { font-size: 1rem; opacity: .92; margin: .45rem 0 1.3rem; }
.hero-search {
    display: flex;
    max-width: 600px;
    background: #fff;
    border-radius: 2.5rem;
    padding: .4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: .6rem 1.2rem;
    font-size: 1rem;
    border-radius: 2.5rem;
    background: transparent;
}
.hero-search button {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 2.5rem;
    padding: .6rem 1.8rem;
    font-weight: 600;
}
.hero-search button:hover { background: var(--primary-hover); }
.hero-stats { margin-top: 1.1rem; font-size: .92rem; opacity: .95; display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-stats b { font-size: 1.1rem; }
.hero-stats .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }

/* ============ 首页主体 ============ */
.home-body { padding-top: 1.5rem; }

/* 全部分类导航 chips */
.cat-chips-wrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .7rem 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cat-chips .chip {
    background: #f8f7f5;
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: .28rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    transition: all .15s ease;
}
.cat-chips .chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chips .chip-sub { background: #fff; font-weight: 400; color: var(--muted); font-size: .76rem; }

/* 区块通用 */
.block-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: .55rem;
    margin-bottom: .85rem;
    border-bottom: 1px solid var(--line);
}
.block-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    padding-left: .75rem;
    position: relative;
    display: inline-flex;
    align-items: baseline;
}
.block-title::before {
    content: "";
    position: absolute;
    left: 0; top: .15rem; bottom: .15rem;
    width: 4px;
    border-radius: 2px;
}
.block-title small.block-sub { font-size: .72rem; font-weight: 400; color: var(--muted); margin-left: .3rem; }

/* 青绿标题：分类区块 / 最新公文 */
.block-head-teal .block-title { color: var(--teal); }
.block-head-teal .block-title::before { background: var(--teal); }
.block-head-teal { border-bottom-color: #e6f1f0; }

/* 红色标题：排行 */
.block-head-red .block-title { color: var(--primary); }
.block-head-red .block-title::before { background: var(--primary); }
.block-head-red { border-bottom-color: #f5e2e2; }

.block-tags { display: flex; gap: .9rem; font-size: .85rem; color: var(--muted); }
.block-tags a { color: var(--muted); }
.block-tags a:hover { color: var(--primary); }
.block-more { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.block-more:hover { color: var(--primary); }

/* 最新公文 / 分类区块通用：白底圆角阴影 */
.news-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem 1rem .9rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}
.cat-block { margin-bottom: 2rem; }

/* 三列紧凑列表（参考文笔库新闻列表样式：小字、密集） */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 默认移动端：单列 */
.news-list-3col,
.news-list-2col {
    display: block;
}
/* 桌面端：CSS Grid 从左往右按行填充（奇数时左边多右边少，符合阅读习惯） */
@media (min-width: 768px) {
    .news-list-3col {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 1.6rem;
        row-gap: 0;
    }
    .news-list-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2.2rem;
        row-gap: 0;
    }
}
.news-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .2rem 0;
    border-bottom: 1px dashed #ececec;
}
.news-list li:last-child { border-bottom: 0; }
.nl-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    color: var(--ink);
    text-decoration: none;
}
.nl-title {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    font-size: .72rem;
    word-break: break-word;
}
.nl-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #b8c4cc;
    margin-top: 2px;
}
.nl-link:hover .nl-title,
.nl-link:hover .nl-icon { color: var(--primary); }

/* 文件格式色块图标（DOC/PDF/PPT/XLS/TXT…） */
.nl-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: .28rem;
    color: #fff;
    font-size: 5.5px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    font-style: normal;
    font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.nl-date {
    flex-shrink: 0;
    font-size: .6rem;
    color: #b3ada8;
    white-space: nowrap;
}

/* 浏览排行（红色编号） */
.ranking-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.15rem 1.1rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ranking-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .42rem 0;
    border-bottom: 1px dashed #ececec;
}
.ranking-list li:last-child { border-bottom: 0; }
.rk-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: .3rem;
    background: var(--primary);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    font-style: normal;
    flex-shrink: 0;
}
.ranking-list li:nth-child(n+2) .rk-num { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.rk-title {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-list li:hover .rk-title { color: var(--primary); }
.rk-views {
    flex-shrink: 0;
    font-size: .72rem;
    color: #a8a29e;
    white-space: nowrap;
}

/* 资料包横条 */
.pkg-banner {
    margin: .5rem 0 2.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}
.pkg-banner h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .2rem; }
.pkg-banner p { margin: 0; color: var(--muted); font-size: .88rem; }

/* 会员 CTA（红金渐变） */
.vip-cta {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #b45309 130%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.9rem 2.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--gold);
}
.vip-cta h3 { font-weight: 800; margin: 0 0 .3rem; font-size: 1.35rem; }
.vip-cta p { opacity: .92; margin: 0; font-size: .95rem; }
.btn-cta {
    background: var(--gold);
    color: #3d2c00;
    font-weight: 800;
    border: 0;
    border-radius: 2.5rem;
    padding: .65rem 1.9rem;
    font-size: 1.05rem;
    transition: all .15s ease;
}
.btn-cta:hover { background: #d9b53a; color: #2c2000; transform: translateY(-1px); }

/* 列表页（查看更多）富信息卡：序号 + 标题 + 摘要 + 格式 + 阅读 + 日期 */
.doc-rich-list { list-style: none; margin: 0; padding: 0; }
.doc-rich-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .6rem;
    border-bottom: 1px solid #efece8;
    transition: background .15s ease;
}
.doc-rich-item:last-child { border-bottom: 0; }
.doc-rich-item:hover { background: #faf7f4; }
.doc-rich-no {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: .4rem;
    background: #f3f4f6;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    font-family: "SF Mono", "Menlo", Consolas, monospace;
    font-style: italic;
}
.doc-rich-item:hover .doc-rich-no { background: #fef2f2; color: var(--primary); }
.doc-rich-main { flex: 1; min-width: 0; }
.doc-rich-title {
    display: inline-block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: .2rem;
}
.doc-rich-title:hover { color: var(--primary); }
.doc-rich-summary {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.doc-rich-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    flex-shrink: 0;
    text-align: right;
    min-width: 140px;
}
.doc-rich-fmt {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: .66rem;
    font-weight: 700;
    padding: .12rem .5rem;
    border-radius: .25rem;
    letter-spacing: .5px;
    border: 1px solid #e2e8f0;
}
.doc-rich-meta-row {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .74rem;
    color: var(--muted);
}
.doc-rich-date { color: #b3ada8; }

/* ============ 列表页工具条（搜索 + 排序） ============ */
.toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.toolbar-search {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 3px;
    gap: 4px;
    max-width: 340px;
}
.toolbar-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    border-radius: 2rem;
    padding: .35rem .9rem;
    font-size: .88rem;
}
.toolbar-search button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 2rem;
    padding: .35rem 1.05rem;
    font-size: .82rem;
    font-weight: 600;
}
.toolbar-search button:hover { background: var(--primary-hover); }

/* ============ 分类总览 / 列表页 ============ */
.page-title { font-size: 1.6rem; font-weight: 800; outline: none; border: none; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .18s ease; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.breadcrumb { background: transparent; padding: 0 0 .75rem; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--ink); }

/* 文档详情页相关/热门精细列表（去红去粗，显示日期） */
.refine-block { margin-top: 1rem; }
.refine-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: .45rem;
    margin-bottom: .8rem;
}
.refine-head .block-title {
    font-size: 1rem;
    font-weight: 700;
}
.refine-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.refine-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .42rem 0;
    border-bottom: 1px dashed #ececec;
}
.refine-list li:last-child { border-bottom: 0; }
.refine-link {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    font-size: .82rem;
    line-height: 1.4;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.refine-link:hover { color: var(--primary); }
.refine-date {
    flex-shrink: 0;
    font-size: .68rem;
    color: #b3ada8;
    white-space: nowrap;
}
.refine-list-sm .refine-link { font-size: .76rem; }
.refine-list-sm li { padding: .32rem 0; }

/* ============ 文档详情 ============ */
.doc-title { font-size: 1.6rem; font-weight: 800; line-height: 1.45; margin: .25rem 0 1rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.doc-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; white-space: pre-wrap; box-shadow: var(--shadow-sm); }
.paywall { background: #fff; border: 1px solid var(--line) !important; border-left: 4px solid var(--primary) !important; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.paywall .btn + .btn { margin-left: .5rem; }
.badge.bg-light { background: #f3f4f6 !important; color: #374151 !important; border: 1px solid var(--line); }

/* 分类层级面包屑（二级/三级筛选时显示完整路径） */
.cat-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .8rem;
    color: var(--muted);
    padding: .45rem .7rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.cat-crumbs a { color: var(--muted); text-decoration: none; }
.cat-crumbs a:hover { color: var(--primary); }
.cat-crumbs .sep { color: #d1d5db; font-size: .72rem; }
.cat-crumbs .current { color: var(--ink); font-weight: 600; }

/* 三级结构联动筛选（年份 → 月份，同页直接筛选） */
.filter-bar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}
.filter-label {
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    width: 2.6rem;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: .28rem .8rem;
    border-radius: 2rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: .8rem;
    text-decoration: none;
    transition: all .15s ease;
}
.filter-chip:hover {
    background: #fef2f2;
    border-color: var(--primary);
    color: var(--primary);
}
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(185, 28, 28, .3);
}

/* ============ 认证页 ============ */
.auth-card {
    max-width: 480px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.auth-card label { display: block; margin-bottom: .35rem; color: #374151; font-size: .9rem; font-weight: 500; }
.auth-card input[type="text"], .auth-card input[type="email"],
.auth-card input[type="password"], .auth-card input[type="number"],
.auth-card input[type="file"], .auth-card select, .auth-card textarea {
    display: block; width: 100%; padding: .55rem .8rem;
    border: 1px solid #d1d5db; border-radius: .45rem; margin-bottom: .9rem;
    background: #fff; font: inherit;
}
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}
.auth-card .remember label { font-weight: 400; }
.auth-card .remember input { width: auto; margin-right: .35rem; }
.auth-card .alert p:last-child { margin-bottom: 0; }
.auth-card .auth-switch { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; text-align: center; font-size: .9rem; color: var(--muted); }
.auth-switch a { font-weight: 600; }

/* ============ VIP 套餐页 ============ */
.vip-hero {
    background:
        radial-gradient(ellipse at 15% -10%, rgba(255, 255, 255, .12), transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #c23030 100%);
    padding: 2.2rem 1rem 1.9rem;
    color: #fff;
    border-bottom: 3px solid var(--gold);
}
.vip-hero h1 { font-weight: 800; letter-spacing: 1px; }
.vip-hero-sub { opacity: .92; margin: .4rem 0 0; }
.vip-body { padding-top: 2rem; max-width: 1080px; }
.vip-active-alert { border-radius: var(--radius); }

.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
    padding: 1.6rem 1.4rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 14px 32px -12px rgba(185, 28, 28, .38);
}
.plan-ribbon {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(120deg, var(--gold), #d9b53a);
    color: #3d2c00;
    font-size: .72rem;
    font-weight: 800;
    padding: .32rem 1.1rem;
    border-radius: 0 .9rem 0 .55rem;
}
.plan-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fef2f2;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 2rem;
}
.plan-name { font-size: 1.3rem; font-weight: 800; }
.plan-duration { color: var(--muted); font-size: .82rem; margin: .2rem 0 1rem; }
.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.plan-price-now { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.plan-price-orig { font-size: 1rem; color: #9ca3af; text-decoration: line-through; }
.plan-save {
    background: #fef2f2;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    padding: .18rem .6rem;
    border-radius: 2rem;
}
.plan-features { list-style: none; margin: 0 0 1.2rem; padding: 0; text-align: left; }
.plan-features li { padding: .3rem 0; color: #4b5563; font-size: .9rem; }
.plan-features li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: .5rem; }
.plan-btn { margin-top: auto; border-radius: 2.5rem; padding: .6rem 0; font-weight: 700; }
.vip-notes { text-align: center; color: var(--muted); font-size: .85rem; margin: 2rem 0 1rem; }

/* ============ 党建 PPT 模板 ============ */
.ppt-home-block { margin-bottom: 2.2rem; }
.ppt-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .18s ease;
    height: 100%;
}
.ppt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #f0c8c8; }
.ppt-thumb {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #fdf2f2 0%, #f3e8e8 45%, #ece0de 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem;
}
.ppt-slide {
    max-width: 88%;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ppt-dots {
    position: absolute;
    bottom: .35rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .25rem;
}
.ppt-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d6b3b3;
}
.ppt-fmt {
    position: absolute;
    top: .35rem;
    right: .35rem;
    background: #d24726;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    padding: .12rem .4rem;
    border-radius: .22rem;
    letter-spacing: .5px;
}
.ppt-card-body { padding: .55rem .7rem .7rem; display: block; }
.ppt-title {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.ppt-card:hover .ppt-title { color: var(--primary); }
.ppt-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    color: var(--muted);
}

/* ============ 其他 ============ */
.alert { border-radius: var(--radius); }
.list-group-item-action:hover { background: #fafafa; }
.compact-list .list-group-item { padding: .55rem .85rem; }
