/* ============================================================
   Bolg CMS 前台样式 v2 · 大气现代化视觉系统
   ============================================================ */
:root {
    --brand: #2563eb;
    --brand-2: #1d4ed8;
    --brand-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --brand-grad-soft: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(37,99,235,.12) 100%);
    --ink: #1f2333;
    --muted: #8a90a2;
    --line: #eceef3;
    --bg: #f6f7fb;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31, 35, 51, .06);
    --shadow-hover: 0 18px 48px rgba(59, 130, 246, .18);
}

* { box-sizing: border-box; }

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

a { text-decoration: none; color: inherit; }
a:hover { color: inherit; }
img { max-width: 100%; }
.text-brand { color: var(--brand) !important; }

/* ---------- 导航栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-navbar {
    background-image: var(--brand-grad);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border: 0;
    transition: box-shadow .25s;
    padding: 0;
}
.site-header.scrolled .site-navbar { box-shadow: 0 10px 30px rgba(31, 35, 51, .18); }

.site-header-container { position: relative; }

.site-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .3px;
    padding: .65rem 0;
}
.site-brand-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    font-size: 1rem;
}
.site-brand-icon i { color: #ffd866; }
.site-brand-text { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav-toggle {
    border: 1px solid rgba(255,255,255,.45);
    padding: .45rem .55rem;
    border-radius: 10px;
}
.site-nav-toggle:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.25); }
.site-nav-toggle-bar {
    display: block;
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
    transition: transform .25s, opacity .25s;
}

.site-nav-main { gap: .15rem; }
.site-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    padding: .55rem .85rem;
    position: relative;
    transition: color .2s, background .2s;
    border-radius: 10px;
}
.site-navbar .nav-link i { font-size: .95rem; opacity: .9; }
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: .3rem;
    height: 2px; background: #fff; border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s;
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }

.site-header-tools {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    padding: .35rem 0;
}
.site-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    font-size: .875rem;
    font-weight: 500;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.site-tool-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-tool-user { max-width: 140px; }
.site-tool-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-tool-muted { opacity: .75; padding: .45rem .55rem; }
.site-tool-cta {
    background: #fff;
    color: var(--brand) !important;
    font-weight: 600;
    padding: .45rem .95rem;
}
.site-tool-cta:hover { background: #f0f4ff; color: var(--brand-2) !important; }

@media (max-width: 991.98px) {
    .site-nav-collapse {
        padding: .75rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,.15);
        margin-top: .35rem;
    }
    .site-nav-main { margin-bottom: .75rem; }
    .site-navbar .nav-link { padding: .65rem .5rem; }
    .site-header-tools {
        flex-wrap: wrap;
        gap: .5rem;
        padding-top: .25rem;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .site-tool-btn { background: rgba(255,255,255,.1); }
    .site-tool-cta { background: #fff; }
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    background-image: var(--brand-grad);
    color: #fff;
    padding: 5.5rem 0 6.5rem;
}
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::before {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%);
    top: -220px; right: -140px;
}
.hero-section::after {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(59,130,246,.45), transparent 60%);
    bottom: -240px; left: -120px;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.hero-subtitle { font-size: 1.1rem; opacity: .92; max-width: 660px; margin: 1.2rem auto 0; }
.hero-search { max-width: 580px; margin: 2rem auto 0; }
.hero-search .input-group {
    background: #fff;
    border-radius: 999px;
    padding: .35rem .4rem .35rem 1.3rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}
.hero-search .form-control {
    border: 0; box-shadow: none; background: transparent;
    font-size: 1rem; padding-left: 0;
}
.hero-search .form-control:focus { box-shadow: none; }
.hero-search .btn { border-radius: 999px; padding: .6rem 1.6rem; font-weight: 600; }

/* ---------- 通用区块 ---------- */
.section { padding: 4rem 0; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.section-title {
    font-size: 1.6rem; font-weight: 800; margin: 0;
    display: flex; align-items: center; gap: .6rem;
}
.section-title::before {
    content: ""; width: 6px; height: 1.5rem; border-radius: 3px;
    background: var(--brand-grad); display: inline-block;
}
.section-link { color: var(--brand); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn-brand {
    background: var(--brand-grad);
    border: 0; color: #fff; font-weight: 600;
    box-shadow: 0 10px 24px rgba(59, 130, 246, .3);
    transition: all .25s;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(59, 130, 246, .42); }
.btn-outline-brand {
    border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600;
    background: #fff; transition: all .2s;
}
.btn-outline-brand:hover { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- 卡片 ---------- */
.card.site-card {
    border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow); background: var(--card);
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.card.site-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ---------- 文章卡片 ---------- */
.post-card .post-thumb {
    height: 184px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--brand-grad);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.9);
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .post-body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card .post-cat { font-size: .75rem; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.post-card .post-title {
    font-size: 1.1rem; font-weight: 700; margin: .4rem 0 .5rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .post-title a:hover { color: var(--brand); }
.post-card .post-summary {
    color: var(--muted); font-size: .9rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { color: var(--muted); font-size: .8rem; margin-top: .7rem; }
.post-meta i { margin-right: .25rem; }

/* ---------- 网址卡片（导航）---------- */
.site-card { position: relative; text-align: center; }
.site-card .site-body { padding: 1.2rem 1.1rem 1.4rem; }
.logo-box {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.6rem; color: #fff;
    background: var(--brand-grad);
    margin: 0 auto .8rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .3);
    overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.site-card .site-title { font-weight: 700; font-size: 1.02rem; margin-bottom: .3rem; }
.site-card .site-desc {
    color: var(--muted); font-size: .82rem; min-height: 2.4em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-card .site-visit {
    margin-top: .9rem;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600; color: var(--brand);
}
.site-card:hover .site-visit { text-decoration: underline; }
.site-badge-rec {
    position: absolute; top: .8rem; right: .8rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; font-size: .68rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(239, 68, 68, .35);
}

/* ---------- 数据概览卡 ---------- */
.stat-card {
    border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
    background: #fff; padding: 1.4rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; height: 100%;
}
.stat-icon {
    width: 54px; height: 54px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; background: var(--brand-grad);
}
.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* ---------- 分类筛选 chips ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.cat-chip {
    padding: .45rem 1.1rem; border-radius: 999px;
    background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem;
    border: 1px solid var(--line); transition: all .2s;
}
.cat-chip:hover, .cat-chip.active {
    background: var(--brand-grad); color: #fff; border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .25);
}

/* ---------- 侧边栏 ---------- */
.side-card {
    border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
    background: #fff; position: sticky; top: 92px; overflow: hidden;
}
.side-card .side-head {
    padding: .9rem 1.2rem; font-weight: 700;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: .5rem;
}
.side-card .side-head i { color: var(--brand); }
.side-cat a {
    display: block; padding: .7rem 1.2rem; color: var(--ink);
    border-bottom: 1px solid var(--line); transition: all .2s;
}
.side-cat a:last-child { border-bottom: 0; }
.side-cat a:hover, .side-cat a.active {
    background: rgba(59, 130, 246, .08); color: var(--brand); padding-left: 1.5rem;
}
.side-block { padding: 1.2rem; }
.tag-cloud a {
    display: inline-block; padding: .35rem .8rem; margin: .25rem;
    background: var(--bg); border-radius: 10px; font-size: .82rem; color: var(--muted);
    transition: all .2s;
}
.tag-cloud a:hover { background: var(--brand-grad); color: #fff; }

/* ---------- 分页 ---------- */
.pagination { justify-content: center; margin-top: 2rem; }
.pagination .page-link {
    color: var(--brand); border: 0; border-radius: 10px !important;
    margin: 0 .25rem; font-weight: 600; min-width: 40px; text-align: center;
}
.pagination .page-item.active .page-link { background: var(--brand-grad); color: #fff; }
.pagination .page-item.disabled .page-link { color: #c5c9d6; }

/* ---------- 详情页 ---------- */
.detail-hero {
    border-radius: var(--radius); box-shadow: var(--shadow); background: #fff;
    padding: 2.2rem; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.detail-hero .logo-box { width: 90px; height: 90px; font-size: 2rem; border-radius: 22px; margin: 0; flex: none; }
.detail-hero .detail-title { font-size: 1.7rem; font-weight: 800; margin: 0; }
.detail-hero .detail-desc { color: var(--muted); margin: .4rem 0 0; }
.detail-meta { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.detail-meta span { margin-right: 1.1rem; }
.detail-meta i { margin-right: .3rem; }

.article-card, .page-card {
    border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
    background: #fff; padding: 2.2rem; margin-bottom: 1.5rem;
}
.article-title { font-size: 2rem; font-weight: 800; margin: 0 0 .6rem; line-height: 1.3; }
.article-meta { color: var(--muted); font-size: .88rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.article-meta span { margin-right: 1.1rem; }
.article-meta i { margin-right: .3rem; }

.content { line-height: 1.9; font-size: 1.02rem; color: #333; }
.content p { margin-bottom: 1.1rem; }
.content img { border-radius: 10px; margin: .5rem 0; max-width: 100%; }
.content h2, .content h3, .content h4 { margin: 1.6rem 0 .8rem; font-weight: 700; }
.content a { color: var(--brand); text-decoration: underline; }
.content blockquote {
    border-left: 4px solid var(--brand); background: rgba(59, 130, 246, .06);
    padding: .8rem 1.1rem; border-radius: 0 10px 10px 0; color: #555; margin: 1.1rem 0;
}
.content pre { background: #1f2333; color: #eee; padding: 1rem; border-radius: 10px; overflow: auto; }

/* 相关推荐 */
.related-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; padding: 1.4rem 1.5rem; }
.related-item { padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.related-item:last-child { border-bottom: 0; padding-bottom: 0; }
.related-item a { font-weight: 600; }
.related-item a:hover { color: var(--brand); }
.related-item .small { color: var(--muted); font-size: .8rem; }

/* ---------- 页脚 ---------- */
/* ========== 友情链接 ========== */
.friend-links-bar {
    background: #fff;
    border-top: 1px solid #e8ecf3;
    padding: 1.15rem 0 1.25rem;
    margin-top: 1rem;
}
.friend-links-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
}
.friend-links-title {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    color: #334155;
    font-size: .9rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.friend-links-title i { color: var(--brand, #2563eb); }
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    flex: 1;
    min-width: 0;
}
.friend-link-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #64748b;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.4;
    padding: .25rem .55rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.friend-link-item:hover { color: var(--brand, #2563eb); background: #f1f5f9; }
.friend-link-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .friend-links-inner { flex-direction: column; align-items: flex-start; }
    .friend-links-list { width: 100%; }
}

.site-footer { background: #15182a; color: #fff; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; }
.footer-brand i { color: #ffd866; }
.footer-about { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: .8rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all .2s;
}
.social-icon:hover { background: var(--brand-grad); transform: translateY(-3px); }
.footer-title { font-weight: 700; margin-bottom: 1rem; color: #fff; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-wechat-qr { margin-top: .75rem; }
.footer-wechat-qr-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .65rem;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
}
.footer-wechat-qr-box img {
    display: block;
    border-radius: 8px;
    background: #fff;
}
.footer-wechat-qr-box span {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; }

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--brand-grad); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 10px 30px rgba(59, 130, 246, .4);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .25s; z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .side-card { position: static; margin-bottom: 1.5rem; }
    .detail-hero { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .hero-section { padding: 3.5rem 0 4rem; }
    .section { padding: 2.5rem 0; }
    .article-card, .page-card { padding: 1.4rem; }
}

/* ---------- 会员中心 ---------- */
.member-wrap { padding: 2.5rem 0 3rem; }
.member-grid { display: grid; grid-template-columns: 252px 1fr; gap: 1.5rem; align-items: start; }
.member-side { position: sticky; top: 90px; }

.member-hero {
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
    background: var(--brand-grad); color: #fff; padding: 1.8rem 1.5rem; position: relative;
}
.member-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -55px;
    width: 170px; height: 170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
}
.member-hero .mh-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.member-avatar {
    width: 64px; height: 64px; border-radius: 18px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; font-weight: 800; color: #fff;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5);
}
.member-hero .mh-name { font-size: 1.25rem; font-weight: 800; }
.member-hero .mh-sub { opacity: .92; font-size: .85rem; margin-top: 3px; }

.member-nav { margin-top: 1.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem; }
.member-nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95rem;
    transition: all .2s;
}
.member-nav a i { font-size: 1.15rem; color: var(--muted); transition: color .2s; }
.member-nav a:hover { background: rgba(59,130,246,.08); color: var(--brand); }
.member-nav a:hover i { color: var(--brand); }
.member-nav a.active { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(59,130,246,.28); }
.member-nav a.active i { color: #fff; }

.member-card {
    border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; padding: 1.6rem 1.7rem;
}
.member-card .mc-title {
    font-size: 1.15rem; font-weight: 800; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .55rem;
}
.member-card .mc-title i { color: var(--brand); }
.member-card .mc-title .mc-more { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--brand); }
.member-card .mc-title .mc-more:hover { text-decoration: underline; }

.m-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.m-stat {
    border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; padding: 1.2rem 1.3rem;
    display: flex; align-items: center; gap: .9rem;
}
.m-stat .ms-icon {
    width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; background: var(--brand-grad);
}
.m-stat .ms-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.m-stat .ms-label { color: var(--muted); font-size: .8rem; margin-top: 4px; }

.order-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.order-table th {
    background: #f5f7fb; color: var(--muted); font-weight: 600; font-size: .82rem;
    padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left;
}
.order-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.order-table tbody tr:hover { background: #f8fafc; }
.order-table .ot-amount { font-weight: 700; color: var(--brand); }

.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-paid    { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-cancel  { background: #f1f5f9; color: #64748b; }

.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.profile-row .full { grid-column: 1 / -1; }
.member-meta { list-style: none; padding: 0; margin: 0; }
.member-meta li { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.member-meta li:last-child { border-bottom: 0; }
.member-meta .mm-label { color: var(--muted); }
.member-meta .mm-value { font-weight: 600; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; }
.quick-item {
    display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.2rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: all .2s; text-align: center;
}
.quick-item i { font-size: 1.6rem; color: var(--brand); }
.quick-item:hover { border-color: var(--brand); background: rgba(59,130,246,.05); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-item span { font-size: .88rem; font-weight: 600; }

@media (max-width: 767.98px) {
    .member-grid { grid-template-columns: 1fr; }
    .member-side { position: static; }
    .profile-row { grid-template-columns: 1fr; }
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-grad);
    padding: 20px;
}
.auth-wrap { width: 100%; max-width: 430px; }
.auth-card {
    background: #fff; border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,.28);
    padding: 2.3rem 2rem 1.9rem; text-align: center;
}
.auth-logo {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff; background: var(--brand-grad);
    box-shadow: 0 10px 24px rgba(59,130,246,.4);
}
.auth-title { font-weight: 800; margin: 0 0 .3rem; }
.auth-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.auth-card .form-label { text-align: left; display: block; }
.auth-card .btn-brand { margin-top: .6rem; }
.auth-foot { margin: 1.3rem 0 0; font-size: .9rem; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-sms-row {
    display: flex;
    gap: .65rem;
    align-items: stretch;
}
.auth-sms-row .form-control {
    flex: 1;
    min-width: 0;
    letter-spacing: .08em;
}
.auth-sms-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 108px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    padding: .5rem .75rem;
}
.auth-sms-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .auth-sms-row { flex-direction: column; }
    .auth-sms-btn { width: 100%; min-width: 0; }
}

.auth-oauth { margin-top: 1.35rem; }
.auth-oauth-divider {
    display: flex; align-items: center; gap: .75rem;
    color: var(--muted); font-size: .82rem; margin-bottom: .95rem;
}
.auth-oauth-divider::before,
.auth-oauth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-oauth-btns {
    display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center;
}
.auth-oauth-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem; border-radius: 999px;
    border: 1px solid #e2e8f0; background: #fff;
    color: #334155; font-size: .88rem; font-weight: 600;
    text-decoration: none; transition: .15s ease;
}
.auth-oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,23,42,.08);
    color: #0f172a;
}
.auth-oauth-icon {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
}
.auth-oauth-wechat .auth-oauth-icon { background: #07c160; }
.auth-oauth-wechat:hover { border-color: #07c160; color: #059669; }
.auth-oauth-qq .auth-oauth-icon { background: #12b7f5; }
.auth-oauth-qq:hover { border-color: #12b7f5; color: #0284c7; }

/* ---------- 首页两栏布局 ---------- */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}
.home-main { min-width: 0; }
.home-side {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.side-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow);
    border: 1px solid #eef2f7;
}
.side-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--dark);
}
.side-title i { color: var(--brand); }

/* 迷你统计 */
.stat-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.stat-mini {
    text-align: center;
    padding: .65rem .2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(59,130,246,.07));
}
.stat-mini-num { font-size: 1.3rem; font-weight: 800; color: var(--brand); line-height: 1.2; }
.stat-mini-label { font-size: .75rem; color: var(--muted); margin-top: .15rem; }

/* 侧栏分类 */
.side-cat { list-style: none; margin: 0; padding: 0; }
.side-cat li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .7rem;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: .92rem;
    transition: all .2s;
}
.side-cat li a span { color: #cbd5e1; transition: transform .2s, color .2s; }
.side-cat li a:hover { background: #f1f5fd; color: var(--brand); }
.side-cat li a:hover span { transform: translateX(3px); color: var(--brand); }

/* 侧栏热门网址 */
.side-site { list-style: none; margin: 0; padding: 0; }
.side-site li { margin-bottom: .15rem; }
.side-site a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem .6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
}
.side-site a:hover { background: #f1f5fd; }
.side-logo {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 10px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    background: var(--brand-grad);
}
.side-logo img { width: 100%; height: 100%; object-fit: cover; }
.side-site-info { display: flex; flex-direction: column; min-width: 0; }
.side-site-info b { font-size: .9rem; font-weight: 600; }
.side-site-info small {
    font-size: .76rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 快速入口 */
.quick-entry { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quick-entry a {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem .8rem;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text);
    text-decoration: none;
    font-size: .88rem; font-weight: 600;
    transition: all .2s;
}
.quick-entry a i { color: var(--brand); font-size: 1.05rem; transition: color .2s; }
.quick-entry a:hover { background: var(--brand-grad); color: #fff; }
.quick-entry a:hover i { color: #fff; }

/* 两栏响应式 */
@media (min-width: 992px) {
    .home-main .post-card .post-thumb { height: 140px; }
}
@media (max-width: 991.98px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-side { position: static; }
}

/* ---------- 首页：资讯门户风格 ---------- */
:root {
    --hp-sidebar: 320px;
    --hp-gap: 1rem;
    --hp-col-main: minmax(0, 1.05fr);
    --hp-col-mid: minmax(0, 1fr);
}

.hp-portal { padding: 1.2rem 0 3rem; background: #f5f7fb; }

/* 统一网格：轮播 | 小图 | 右侧栏；第二行最近发布跨前两列 */
.hp-portal-grid {
    display: grid;
    grid-template-columns: var(--hp-col-main) var(--hp-col-mid) var(--hp-sidebar);
    grid-template-rows: auto auto;
    gap: var(--hp-gap);
    align-items: stretch;
}
.hp-portal-grid > * { min-width: 0; }
.hp-latest { grid-column: 1 / 3; grid-row: 2; }
.hp-sidebar { grid-column: 3; grid-row: 1 / 3; }

/* 右侧栏：报考指南 + 热点推荐 上下堆叠对齐 */
.hp-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--hp-gap);
    height: 100%;
}

/* 轮播 */
.hp-banner {
    position: relative; border-radius: 8px; overflow: hidden;
    background: #000; height: 100%; display: flex; flex-direction: column;
}
.hp-banner .carousel,
.hp-banner .carousel-inner,
.hp-banner .carousel-item,
.hp-banner-link { height: 100%; }
.hp-banner .carousel-item.active { display: flex; }
.hp-banner-link { display: block; position: relative; color: inherit; text-decoration: none; flex: 1; }
.hp-banner-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.hp-banner-placeholder {
    width: 100%; height: 100%; min-height: 280px;
    background: linear-gradient(135deg, #2a3a55, #4a5d80);
    color: #fff; font-size: 2.2rem; opacity: .8;
}
.hp-banner-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.1rem 1.3rem 1.2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.72) 100%);
    color: #fff;
}
.hp-banner-cap h3 { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.4; }
.hp-indicators { bottom: 8px; margin-bottom: 0; }
.hp-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.55); border: 0; opacity: 1;
    padding: 0; cursor: pointer;
}
.hp-indicators .active { background: #fff; }

/* 中间两张小图 — 与右侧栏等高对齐 */
.hp-mid {
    display: flex; flex-direction: column; gap: var(--hp-gap);
    height: 100%; min-height: 280px;
}
.hp-mid-item {
    position: relative; display: block; flex: 1 1 0;
    border-radius: 8px; overflow: hidden; background: #000; min-height: 0;
}
.hp-mid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-mid-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #3a4a6a, #5a6d90);
    color: #fff; font-size: 1.8rem; opacity: .8;
}
.hp-mid-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .65rem .85rem .75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.72) 100%);
    color: #fff;
}
.hp-mid-cap h4 {
    margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 报考指南 */
.hp-guide {
    background: #fff; border: 1px solid #e6e8ee; border-radius: 8px;
    padding: 1rem 1.1rem; display: flex; flex-direction: column;
    flex: 0 0 auto; box-sizing: border-box;
}
.hp-guide-title {
    margin: 0 0 .85rem; padding: 0 0 .65rem; border-bottom: 1px solid #eef0f5;
    font-size: 1.05rem; font-weight: 700; color: #1f2937; flex: 0 0 auto;
}
.hp-guide-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
    flex: 1; align-content: stretch;
}
.hp-guide-item {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    padding: .7rem .35rem; background: #f7f8fb; border: 1px solid #eef0f5; border-radius: 6px;
    color: #374151; text-decoration: none; font-size: .88rem; font-weight: 500;
    transition: all .2s; text-align: center; min-height: 44px;
}
.hp-guide-item i { color: var(--brand); font-size: 1rem; transition: color .2s; }
.hp-guide-item:hover { background: var(--brand-grad); color: #fff; border-color: transparent; }
.hp-guide-item:hover i { color: #fff; }

/* 下方最近发布 */
.hp-latest {
    background: #fff; border: 1px solid #e6e8ee; border-radius: 8px;
    padding: 1.1rem 1.3rem; box-sizing: border-box;
    display: flex; flex-direction: column;
}
.hp-h {
    margin: 0 0 1rem; padding: 0 0 .7rem; border-bottom: 1px solid #eef0f5;
    font-size: 1.15rem; font-weight: 700; color: #1f2937;
}

/* 最近发布列表 */
.hp-latest-list { display: flex; flex-direction: column; flex: 1; }
.hp-latest-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed #e5e7eb; }
.hp-latest-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hp-latest-item:first-child { padding-top: 0; }
.hp-latest-thumb {
    flex: 0 0 200px; position: relative; aspect-ratio: 4 / 3;
    border-radius: 6px; overflow: hidden; background: #f0f2f6; display: block;
    text-decoration: none;
}
.hp-latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-latest-thumb-ph { width: 100%; height: 100%; color: #c0c5d0; font-size: 1.6rem; }
.hp-tag {
    position: absolute; top: 8px; left: 8px;
    background: rgba(37,99,235,.85); color: #fff;
    padding: 2px 8px; font-size: .72rem; font-weight: 600; border-radius: 4px;
}
.hp-latest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-latest-body h4 { margin: 0 0 .35rem; font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.hp-latest-body h4 a { color: #1f2937; text-decoration: none; }
.hp-latest-body h4 a:hover { color: var(--brand); }
.hp-latest-body p {
    margin: 0 0 .5rem; color: #6b7280; font-size: .9rem; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-meta { font-size: .82rem; color: #9ca3af; }

/* 热点推荐 — 与报考指南同栏，自动撑满剩余高度 */
.hp-hot {
    padding: 0; overflow: hidden;
    flex: 1 1 auto; display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e6e8ee; border-radius: 8px;
}
.hp-hot-head {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff; font-weight: 700; font-size: 1.05rem;
    padding: .85rem 1.2rem; border-radius: 8px 8px 0 0;
}
.hp-hot-list { list-style: none; margin: 0; padding: .6rem 1.1rem 1rem; flex: 1; }
.hp-hot-list li {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .7rem 0; border-bottom: 1px dashed #eef0f5;
}
.hp-hot-list li:last-child { border-bottom: 0; }
.hp-hot-dot { color: var(--brand); font-size: .55rem; margin-top: .55rem; flex: 0 0 auto; }
.hp-hot-title {
    flex: 1; min-width: 0; color: #1f2937; text-decoration: none;
    font-size: .92rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-hot-title:hover { color: var(--brand); }
.hp-hot-date { flex: 0 0 80px; text-align: right; color: #9ca3af; font-size: .8rem; padding-top: .05rem; }

/* 响应式 */
@media (max-width: 1199.98px) {
    .hp-portal-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    .hp-sidebar { grid-column: 1 / -1; grid-row: 2; flex-direction: row; }
    .hp-sidebar .hp-guide,
    .hp-sidebar .hp-hot { flex: 1 1 0; }
    .hp-latest { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 767.98px) {
    .hp-portal-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hp-banner,
    .hp-mid,
    .hp-sidebar,
    .hp-latest { grid-column: auto; grid-row: auto; }
    .hp-sidebar { flex-direction: column; }
    .hp-mid { flex-direction: row; min-height: auto; }
    .hp-mid-item { aspect-ratio: 16 / 10; height: auto; flex: 1 1 0; min-height: 120px; }
    .hp-banner-img,
    .hp-banner-placeholder { min-height: 200px; }
    .hp-latest-thumb { flex: 0 0 130px; }
    .hp-latest-body h4 { font-size: 1rem; }
    .hp-banner-cap h3 { font-size: 1.05rem; }
    .hp-hot-date { display: none; }
}

/* ========== 内页静态 Banner ========== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    margin-bottom: 0;
}
.page-hero-site {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(.45);
    transform: scale(1.06);
}
.page-hero-has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .55) 100%);
    z-index: 1;
}
.page-hero-site.page-hero-has-bg::before {
    background: linear-gradient(90deg, rgba(15, 60, 55, .88) 0%, rgba(15, 60, 55, .5) 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    padding: 2.75rem 0 2.5rem;
    max-width: 760px;
}
.page-hero-tag {
    display: inline-block;
    padding: .2rem .65rem;
    margin-bottom: .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.page-hero-title {
    margin: 0 0 .65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.page-hero-desc {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
    max-width: 620px;
}
.news-page,
.site-page {
    padding: 0 0 3rem;
    background: #f5f7fb;
}
.news-page > .container,
.site-page > .container {
    padding-top: 1.5rem;
}
.article-meta-top {
    padding-top: 0;
    border-top: 0;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .page-hero-inner { padding: 2rem 0 1.75rem; }
    .page-hero-desc { font-size: .88rem; }
}

/* ========== 新闻列表页 ========== */
.news-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}
.news-page-main { min-width: 0; }
.news-page-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 84px;
}
.news-list-card { margin: 0; }
.news-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #eef0f5;
}
.news-list-head .hp-h { border-bottom: 0; margin: 0; padding: 0; }
.news-list-filter {
    font-size: .85rem; color: var(--brand); font-weight: 600;
    background: rgba(37,99,235,.08); padding: .25rem .75rem; border-radius: 999px;
}
.news-pagination { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eef0f5; }
.news-pagination .pagination { margin-bottom: 0; }
.news-hot-card { border: 1px solid #e6e8ee; border-radius: 8px; overflow: hidden; }

@media (max-width: 991.98px) {
    .news-page-grid { grid-template-columns: 1fr; }
    .news-page-side { position: static; }
    .news-page-side .side-card,
    .news-page-side .news-hot-card { flex: 1 1 0; }
    .news-page-side { flex-direction: row; flex-wrap: wrap; }
    .news-page-side > * { flex: 1 1 280px; }
}
@media (max-width: 575.98px) {
    .news-page-side { flex-direction: column; }
    .hp-latest-thumb { flex: 0 0 120px; }
}

/* ---------- 网址导航：左栏分类 + 右栏三列 ---------- */
.site-page-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.site-page-nav {
    position: sticky;
    top: 84px;
}
.site-nav-card { margin: 0; }
.site-page-main {
    min-width: 0;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 1.25rem 1.35rem 1.5rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.site-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef0f5;
}
.site-page-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    color: #1e293b;
}
.site-page-sub {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
}
.site-page-badge {
    flex-shrink: 0;
    font-size: .85rem;
    color: var(--brand);
    font-weight: 600;
    background: rgba(37, 99, 235, .08);
    padding: .3rem .85rem;
    border-radius: 999px;
}
.site-card-grid { margin-top: .25rem; }
.site-card-grid .site-card { height: 100%; }
.site-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #94a3b8;
}
.site-empty i { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.site-pagination {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef0f5;
    display: flex;
    justify-content: center;
}
.site-pagination .pagination { margin-bottom: 0; }

@media (max-width: 991.98px) {
    .site-page-grid { grid-template-columns: 1fr; }
    .site-page-nav { position: static; }
    .site-nav-card .side-cat {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        padding: .75rem 1rem 1rem;
    }
    .site-nav-card .side-cat a {
        border-bottom: 0;
        padding: .35rem .85rem;
        border-radius: 999px;
        background: #f1f5f9;
        font-size: .88rem;
    }
    .site-nav-card .side-cat a.active,
    .site-nav-card .side-cat a:hover {
        background: var(--brand);
        color: #fff;
    }
}
@media (max-width: 575.98px) {
    .site-page-main { padding: 1rem; }
    .site-page-head { flex-direction: column; }
}

/* ---------- 网址详情页 ---------- */
.site-detail-page { padding-top: 1.25rem; }
.site-breadcrumb {
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
}
.site-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}
.site-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.site-detail-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 84px;
}
.site-detail-card {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.site-detail-head {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.site-detail-logo.logo-box {
    width: 88px;
    height: 88px;
    font-size: 2rem;
    border-radius: 18px;
    margin: 0;
    flex-shrink: 0;
}
.site-detail-info { min-width: 0; flex: 1; }
.site-detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.site-detail-cat {
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand);
    background: rgba(37, 99, 235, .08);
    padding: .2rem .65rem;
    border-radius: 999px;
}
.site-detail-rec {
    font-size: .78rem;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    padding: .2rem .65rem;
    border-radius: 999px;
}
.site-detail-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 .45rem;
    line-height: 1.35;
    color: #1e293b;
}
.site-detail-desc {
    color: #64748b;
    margin: 0 0 .75rem;
    line-height: 1.65;
    font-size: .95rem;
}
.site-detail-meta {
    color: #94a3b8;
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.1rem;
}
.site-detail-meta i { margin-right: .25rem; }
.site-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eef0f5;
}
.site-detail-url {
    margin-top: .85rem;
    padding: .65rem .85rem;
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 8px;
    font-size: .88rem;
    color: #64748b;
    word-break: break-all;
}
.site-detail-url a { color: var(--brand); text-decoration: none; }
.site-detail-url a:hover { text-decoration: underline; }
.site-detail-url i { margin-right: .35rem; color: var(--brand); }
.site-detail-article {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.site-detail-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #eef0f5;
}
.site-related-block {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 1.25rem 1.35rem 1.35rem;
}
.site-related-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #334155;
}
.site-card-compact .site-body { padding: 1rem .9rem 1.1rem; }
.site-card-compact .logo-box-sm {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin: 0 auto .65rem;
}
.site-card-compact .site-desc {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-info-list {
    list-style: none;
    margin: 0;
    padding: .25rem 1rem .75rem;
}
.site-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px dashed #eef0f5;
    font-size: .88rem;
}
.site-info-list li:last-child { border-bottom: 0; }
.site-info-list span { color: #94a3b8; }
.site-info-list strong { color: #334155; font-weight: 600; }
.site-hot-card { border: 1px solid #e6e8ee; border-radius: 8px; overflow: hidden; background: #fff; }

@media (max-width: 991.98px) {
    .site-detail-grid { grid-template-columns: 1fr; }
    .site-detail-side { position: static; }
    .site-detail-head { flex-direction: column; align-items: center; text-align: center; }
    .site-detail-tags, .site-detail-meta { justify-content: center; }
    .site-detail-actions { justify-content: center; }
}
@media (max-width: 575.98px) {
    .site-detail-card, .site-detail-article { padding: 1.15rem; }
    .site-detail-actions .btn-lg { width: 100%; }
}

.news-detail-page .news-breadcrumb {
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
}
.news-detail-page .breadcrumb-item a { color: var(--brand); }
.news-detail-card {
    margin-bottom: 0;
    border: 1px solid #e6e8ee;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
}
.news-detail-card .article-meta.article-meta-top {
    padding: 1rem 2rem;
    margin: 0;
    border-bottom: 1px solid #eef0f5;
    background: #fafbfc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
}
.news-detail-body {
    padding: 1.5rem 2rem 2rem;
}
.news-detail-title {
    font-size: 23px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1rem;
    text-align: center;
}
.news-detail-card .news-detail-cover {
    margin: 0 0 1.25rem;
}
.news-detail-card .content {
    padding: 0;
}
.news-detail-cat {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 4px;
    margin-bottom: .75rem;
}
.news-detail-cover {
    margin: 1rem 0 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f6;
}
.news-detail-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.news-detail-summary {
    padding: 1rem 1.1rem;
    margin: 0 0 1.25rem;
    background: #f8fafc;
    border-left: 4px solid var(--brand);
    border-radius: 0 8px 8px 0;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
}
@media (max-width: 767.98px) {
    .news-detail-body { padding: 1.15rem 1.25rem 1.5rem; }
    .news-detail-title { font-size: 23px; }
    .news-detail-card .article-meta.article-meta-top { padding: .85rem 1.25rem; }
}
.news-detail-page .hp-latest-item:last-child { border-bottom: 0; }

.article-copyright {
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.75;
}
.article-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.article-copyright-main {
    flex: 1;
    min-width: 0;
}
.article-copyright-qr {
    flex-shrink: 0;
    text-align: center;
}
.article-copyright-qr canvas {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.article-qr-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}
.article-copyright-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: .5rem;
}
.article-copyright-title i { color: var(--brand); margin-right: 4px; }
.article-copyright-text { margin: 0 0 .5rem; }
.article-copyright-tip { margin: 0 0 .35rem; font-size: 12px; }
.article-copyright-tip strong { color: var(--brand); font-weight: 600; }
.article-copyright-icp { margin: .5rem 0 0; font-size: 12px; color: #94a3b8; }
