/* ==========================================================================
   首席特许观察 - 前台样式
   设计基调：深藏青 + 暖白，衬线标题，克制的留白，偏机构/期刊质感
   ========================================================================== */

:root {
    --ink: #16202a;
    --text: #3d4956;
    --muted: #8a939e;
    --line: #e7e4dc;
    --bg: #f7f5f1;
    --paper: #ffffff;
    --brand: #123b52;
    --brand-2: #0f2b3c;
    --gold: #a8823c;
    --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); font-family: var(--serif); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: 800px; }

/* ------------------------------ 顶部信息条 ------------------------------ */
.topbar {
    background: #0b2130;
    color: rgba(255, 255, 255, .58);
    font-size: 12.5px;
}

.topbar-inner {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-note { letter-spacing: .14em; }

.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.topbar-wechat i { margin-right: 4px; }

/* ------------------------------ 页头 ------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}

.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(18, 32, 42, .07); }

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; color: var(--ink); }
.brand-text small { margin-top: 5px; font-size: 9.5px; letter-spacing: .2em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav > a {
    position: relative;
    padding: 10px 18px;
    font-size: 15px;
    color: var(--text);
    transition: color .2s;
}

.main-nav > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width .25s;
}

.main-nav > a:hover { color: var(--brand); }
.main-nav > a.on { color: var(--brand); }
.main-nav > a.on::after,
.main-nav > a:hover::after { width: 22px; }

.nav-mobile-extra { display: none; }

.nav-toggle {
    display: none;
    position: relative;
    z-index: 140;          /* 抽屉导航在同一个页头里，按钮必须压在它上面 */
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    border-radius: 3px;
}

/* ------------------------------ 品牌区 ------------------------------ */
.exhibit { background: var(--brand-2); color: #fff; }

.exhibit-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-top: 58px;
    padding-bottom: 52px;
}

.exhibit-kicker { font-size: 11px; letter-spacing: .34em; color: #8ba3b1; }

.exhibit-main h1 {
    margin: 14px 0 16px;
    font-size: 40px;
    letter-spacing: .08em;
    color: #fff;
    font-weight: 600;
}

.exhibit-desc {
    max-width: 640px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.95;
    color: rgba(255, 255, 255, .72);
}

.exhibit-meta { display: flex; gap: 44px; flex: 0 0 auto; }
.exhibit-meta dt { font-size: 11px; letter-spacing: .18em; color: #8ba3b1; }
.exhibit-meta dd { margin: 8px 0 0; font-family: var(--serif); font-size: 26px; color: #fff; letter-spacing: .04em; }

/* ------------------------------ 主体布局 ------------------------------ */
.page-main { padding: 42px 0 72px; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
    align-items: start;
}

/* 置顶文章 */
.lead {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
}

.lead-cover { display: block; min-height: 260px; }
.lead-cover img { width: 100%; height: 100%; object-fit: cover; }

.lead-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }

.lead-flag {
    align-self: flex-start;
    padding: 3px 10px;
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--gold);
    border: 1px solid rgba(168, 130, 60, .38);
}

.lead-body h2 { margin: 16px 0 12px; font-size: 24px; line-height: 1.6; }
.lead-body h2 a:hover { color: var(--brand); }

.lead-desc { margin: 0; font-size: 13.8px; line-height: 1.9; color: var(--text); }

/* 区块标题 */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 44px 0 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.section-title { font-size: 19px; letter-spacing: .04em; }
.section-sub { font-size: 10.5px; letter-spacing: .26em; color: var(--muted); }

/* 文章列表 */
.post-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 168px;
    gap: 22px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.post-index {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: .06em;
}

.post-body h3 { font-size: 18px; line-height: 1.65; }
.post-body h3 a:hover { color: var(--brand); }

.post-desc {
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line { margin-top: 12px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

.post-thumb { display: block; width: 168px; height: 108px; overflow: hidden; background: #ece7de; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-row:hover .post-thumb img { transform: scale(1.04); }

.cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: #ece7de;
    color: #b7ada0;
    font-size: 22px;
}

/* 侧栏 */
.side-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 24px;
    margin-bottom: 20px;
}

.side-wx { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.side-kicker { font-size: 10.5px; letter-spacing: .3em; color: #8ba3b1; }
.side-wx strong { display: block; margin: 10px 0 10px; font-family: var(--serif); font-size: 18px; color: #fff; }
.side-wx p { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .68); }

.side-title { font-size: 15px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-text { font-size: 13.5px; line-height: 1.95; color: var(--text); }
.side-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--brand); }
.side-link:hover { color: var(--gold); }

.side-list li:last-child a { border-bottom: 0; }
.side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px dashed var(--line);
}
.side-list a:hover { color: var(--brand); }
.side-list i { font-size: 11px; color: var(--muted); }

/* ------------------------------ 列表页头 ------------------------------ */
.page-head {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 48px 0 42px;
}

.page-kicker { font-size: 11px; letter-spacing: .3em; color: var(--gold); margin: 0 0 12px; }
.page-head h1 { font-size: 32px; letter-spacing: .06em; }
.page-desc { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* ------------------------------ 文章详情 ------------------------------ */
.article-head { padding: 38px 0 0; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 12.5px;
    color: var(--muted);
}
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 9px; }

.article-title { font-size: 34px; line-height: 1.55; letter-spacing: .02em; }

.article-sub { margin: 16px 0 0; font-size: 15px; color: var(--muted); line-height: 1.8; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #c9c2b6; }

.article-cover { margin-top: 34px; }
.article-cover img { width: 100%; border-radius: 2px; }

.article-body {
    margin-top: 38px;
    font-size: 16.5px;
    line-height: 2;
    color: var(--text);
    word-break: break-word;
}

.article-body * { max-width: 100% !important; }

.article-body p { margin: 20px 0; }

/* 微信模板里的装饰引号段：字号 60px，不要再继承正文的 2 倍行高，否则会撑出大片空白 */
.article-body section[style*="font-size: 60px"],
.article-body section[style*="font-size:60px"] { line-height: 1.2; }

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 38px 0 16px;
    font-size: 20px;
    line-height: 1.6;
}

.article-body img { margin: 28px auto; height: auto !important; }

.article-body blockquote {
    margin: 26px 0;
    padding: 16px 22px;
    background: #f0ede6;
    border-left: 3px solid var(--gold);
    color: #55606c;
}

.article-body a { color: var(--brand); text-decoration: underline; }

.article-body ul,
.article-body ol { margin: 20px 0; padding-left: 24px; }
.article-body li { margin: 8px 0; list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-body td,
.article-body th { border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; }

/* 上下篇 */
.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 54px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.nav-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: border-color .2s;
}

.nav-cell:hover { border-color: #cdc6b8; }
.nav-cell.next { text-align: right; align-items: flex-end; }
.nav-cell.disabled { color: var(--muted); background: transparent; border-style: dashed; }
.nav-label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.nav-cell strong { font-family: var(--serif); font-size: 14.5px; line-height: 1.65; color: var(--ink); }

/* 相关阅读 */
.related { padding-top: 56px; padding-bottom: 76px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.related-card { background: var(--paper); border: 1px solid var(--line); }
.related-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ece7de; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 16px 18px 18px; }
.related-body h4 { font-size: 15px; line-height: 1.65; }
.related-body h4 a:hover { color: var(--brand); }

/* ------------------------------ 关于页 ------------------------------ */
.about-wrap { padding: 52px 24px 76px; }

.about-block { margin-bottom: 44px; }
.about-block h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
    line-height: 1.4;
}
.about-block p { margin: 0; font-size: 15px; line-height: 2; color: var(--text); }

.about-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}
.about-list strong { flex: 0 0 96px; font-family: var(--serif); font-size: 15px; color: var(--ink); }
.about-list span { font-size: 14px; color: var(--text); line-height: 1.9; }

/* ------------------------------ 分页 ------------------------------ */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pager-btn {
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
}
.pager-btn:hover { color: var(--brand); border-color: #cdc6b8; }
.pager-btn.disabled { color: #b8b2a7; background: transparent; border-style: dashed; }

.pager-nums { display: flex; align-items: center; gap: 6px; }

.pager-num {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--text);
}
.pager-num:hover { color: var(--brand); border-color: #cdc6b8; }
.pager-num.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-gap { color: var(--muted); padding: 0 4px; }

/* 空状态 */
.empty-box {
    padding: 70px 0;
    text-align: center;
    color: var(--muted);
    background: var(--paper);
    border: 1px dashed var(--line);
}
.empty-box i { font-size: 30px; margin-bottom: 12px; display: block; color: #c8c1b4; }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer { background: var(--brand-2); color: rgba(255, 255, 255, .7); }

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 46px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.footer-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
}

.footer-logo strong { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; color: #fff; }

.footer-desc { margin: 0; font-size: 13px; line-height: 1.95; color: rgba(255, 255, 255, .55); max-width: 340px; }

.footer-col h4 { margin-bottom: 16px; font-size: 14px; color: #fff; letter-spacing: .08em; }
.footer-col ul li { font-size: 13px; line-height: 2.2; color: rgba(255, 255, 255, .55); }
.footer-col ul li a { color: rgba(255, 255, 255, .62); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li i { width: 16px; color: rgba(255, 255, 255, .38); }

.footer-wx-label { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); letter-spacing: .1em; }
.footer-wx-name { margin: 8px 0 6px; font-family: var(--serif); font-size: 15px; color: #fff; }
.footer-wx-tip { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 58px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .42);
}
.footer-bottom-inner a:hover { color: #fff; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .side-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .side-card { margin-bottom: 0; }
}

@media (max-width: 980px) {
    .topbar-links .topbar-wechat { display: none; }

    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 268px;
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 84px 26px 26px;
        background: var(--paper);
        box-shadow: -10px 0 30px rgba(18, 32, 42, .12);
        transform: translateX(102%);
        transition: transform .28s ease;
        z-index: 130;
        overflow-y: auto;
    }

    body.nav-open .main-nav { transform: translateX(0); }

    /* 页头要压在抽屉与遮罩之上，否则右上角按钮点不到 */
    body.nav-open .site-header { z-index: 150; }

    .main-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
    .main-nav > a::after { display: none; }

    .nav-mobile-extra { display: block; margin-top: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 24, 34, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s;
        z-index: 120;
    }
    .nav-overlay.on { opacity: 1; pointer-events: auto; }

    .exhibit-inner { flex-direction: column; align-items: flex-start; gap: 30px; padding-top: 44px; padding-bottom: 38px; }
    .exhibit-main h1 { font-size: 32px; }
    .exhibit-meta { gap: 36px; }

    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 36px; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }

    .topbar-note { letter-spacing: .06em; font-size: 12px; }
    .topbar-inner { height: 34px; }

    .header-inner { height: 66px; }
    .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
    .brand-text strong { font-size: 16.5px; }
    .brand-text small { font-size: 8.5px; letter-spacing: .14em; }

    .page-main { padding: 30px 0 52px; }

    .lead { grid-template-columns: 1fr; }
    .lead-cover { min-height: 0; aspect-ratio: 16 / 10; }
    .lead-body { padding: 22px 20px 24px; }
    .lead-body h2 { font-size: 20px; }

    .post-row { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
    .post-thumb { display: none; }
    .post-body h3 { font-size: 16.5px; }

    .side-col { grid-template-columns: 1fr; }

    .page-head { padding: 34px 0 30px; }
    .page-head h1 { font-size: 25px; }

    .article-head { padding: 26px 0 0; }
    .article-title { font-size: 25px; line-height: 1.55; }
    .article-body { font-size: 16px; line-height: 1.95; margin-top: 28px; }
    .article-body p { margin: 16px 0; }

    .article-nav { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
    .nav-cell.next { text-align: left; align-items: flex-start; }

    .related { padding-top: 40px; padding-bottom: 46px; }
    .related-grid { grid-template-columns: 1fr; gap: 16px; }

    .pager { flex-wrap: wrap; }
    .pager-btn { padding: 8px 12px; }

    .about-wrap { padding: 34px 18px 56px; }
    .about-list li { flex-direction: column; gap: 6px; }

    /* 移动端页脚只保留品牌信息与版权，三列导航/联系/关注全部隐藏 */
    .footer-top { grid-template-columns: 1fr; gap: 0; padding-top: 34px; padding-bottom: 28px; }
    .footer-col { display: none; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: auto; padding-top: 16px; padding-bottom: 16px; }
}
