@charset "utf-8";
/* =========================================================
   政卿事迹网 · 东方文史主题
   2026-11 全站样式重构
   ========================================================= */
:root {
    --ink: #23262b;
    --ink-2: #3f444c;
    --ink-3: #626872;
    --muted: #8e877b;
    --muted-2: #a9a193;
    --paper: #f6f1e7;
    --paper-2: #efe8da;
    --paper-3: #e7ddcb;
    --card: #fffdf8;
    --card-soft: #fbf8f1;
    --line: #e5dccb;
    --line-strong: #d3c4aa;
    --red: #a83226;
    --red-2: #c34a3a;
    --red-soft: #f6e5df;
    --gold: #ad8749;
    --gold-soft: #ead9b7;
    --green: #3d5a4c;
    --shadow-sm: 0 2px 10px rgba(61, 48, 30, .04);
    --shadow: 0 16px 42px -26px rgba(52, 39, 22, .38);
    --shadow-lg: 0 26px 70px -38px rgba(52, 39, 22, .46);
    --radius: 14px;
    --radius-lg: 20px;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.7;
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 12% -5%, rgba(173, 135, 73, .10), transparent 42%),
        radial-gradient(circle at 88% 5%, rgba(168, 50, 38, .055), transparent 38%),
        linear-gradient(180deg, #fbf8f1 0%, #f6f0e5 44%, #f7f2e9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: clip;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .35;
    background-image:
        repeating-linear-gradient(0deg, rgba(120, 100, 70, .028) 0, rgba(120, 100, 70, .028) 1px, transparent 1px, transparent 4px);
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
a:hover { color: var(--red); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    min-width: 0;
}
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 999;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }

/* ================= 顶部信息条 ================= */
.topbar {
    background: #1f2328;
    color: #bdb4a4;
    font-size: 12px;
    letter-spacing: .02em;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 36px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar b { color: var(--gold-soft); font-weight: 600; }
.topbar a { color: #c9c0b0; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--gold); font-size: 11px; }
.topbar-dot { width: 3px; height: 3px; border-radius: 50%; background: #6b6459; display: inline-block; }

/* ================= 站头 ================= */
.site-header { position: relative; }
.masthead {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 26px;
    padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; flex-shrink: 0; }
.brand-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 6px;
    flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: .06em;
    color: var(--ink);
    white-space: nowrap;
}
.brand-text em {
    margin-top: 6px;
    font-style: normal;
    font-size: 11px;
    letter-spacing: .32em;
    color: var(--muted);
}
.masthead-side {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}
.masthead-slogan {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .03em;
    max-width: 430px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search {
    display: flex;
    align-items: center;
    width: 360px;
    max-width: 100%;
    height: 42px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 253, 248, .86);
    border-radius: 999px;
    padding: 0 5px 0 38px;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173, 135, 73, .12); }
.search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    font-size: 13px;
}
.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    padding: 0 6px;
}
.search input::placeholder { color: var(--muted-2); }
.search button {
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    padding: 0 16px;
    flex-shrink: 0;
    transition: background .2s;
}
.search button:hover { background: var(--red); }
.nav-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--ink-2);
    border-radius: 999px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

/* ================= 导航 ================= */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(252, 249, 242, .94);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow .2s;
}
.nav-bar.is-stuck { box-shadow: 0 10px 28px -20px rgba(52, 39, 22, .45); }
.nav-inner { display: flex; align-items: center; min-height: 54px; }
.main-nav { display: flex; align-items: center; flex: 1; min-width: 0; flex-wrap: wrap; }
.main-nav > li { position: relative; flex-shrink: 0; }
.main-nav > li > a,
.main-nav > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 54px;
    padding: 0 17px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 14.5px;
    letter-spacing: .02em;
    position: relative;
    white-space: nowrap;
}
.main-nav > li > a::after,
.main-nav > li > button::after {
    content: "";
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .22s ease;
}
.main-nav > li > a:hover,
.main-nav > li > button:hover { color: var(--red); }
.main-nav > li > a:hover::after,
.main-nav > li > button:hover::after,
.main-nav > li.is-active > a::after { transform: scaleX(1); }
.main-nav > li.is-active > a { color: var(--red); font-weight: 600; }
.nav-search-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink-2);
    flex-shrink: 0;
}
.nav-search-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: 640px;
    max-width: calc(100vw - 40px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 18px;
    display: none;
    z-index: 80;
}
.cat-panel.is-open { display: block; animation: panelIn .18s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cat-panel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cat-panel-head strong { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.cat-panel-head span { font-size: 11px; color: var(--muted); }
.cat-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; max-height: calc(100vh - 200px); overflow-y: auto; }
.cat-panel-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.cat-panel-grid a:hover { background: var(--paper); color: var(--red); }
.cat-panel-grid em { font-style: normal; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ================= 首屏 ================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
    gap: 22px;
    margin-top: 28px;
}
.hero-main {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 456px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #2a2723;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-main:hover .hero-media img { transform: scale(1.035); }
.hero-letter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 190px;
    color: rgba(255, 253, 248, .12);
    background:
        radial-gradient(circle at 35% 30%, rgba(173, 135, 73, .45), transparent 55%),
        linear-gradient(135deg, #2b2a27, #4a3a2a 60%, #2a2622);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 16, .05) 0%, rgba(20, 18, 16, .12) 38%, rgba(18, 16, 14, .82) 100%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 38px 32px; color: #fff; z-index: 2; min-width: 0; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #f0e5d2;
    letter-spacing: .12em;
    padding: 4px 10px;
    border: 1px solid rgba(240, 229, 210, .38);
    border-radius: 999px;
    margin-bottom: 14px;
}
.hero-kicker i { color: var(--gold-soft); }
.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-content p {
    margin-top: 12px;
    max-width: 680px;
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.hero-meta-sep { width: 18px; height: 1px; background: rgba(255, 255, 255, .35); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; min-height: 0; }
.hero-mini {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 0;
    box-shadow: var(--shadow-sm);
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.hero-mini:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.hero-mini-img { position: relative; overflow: hidden; background: var(--paper-2); min-height: 100%; }
.hero-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-mini:hover .hero-mini-img img { transform: scale(1.04); }
.mini-letter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 54px;
    color: rgba(120, 90, 50, .28);
    background: linear-gradient(135deg, var(--paper-2), #f8f4ea);
}
.hero-mini-body { padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-mini-kicker { font-size: 11px; color: var(--red); letter-spacing: .12em; margin-bottom: 7px; }
.hero-mini-body strong {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-mini-body time { margin-top: 9px; font-size: 11px; color: var(--muted-2); }

/* ================= 频道条 ================= */
.channel-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 13px 18px;
    background: rgba(255, 253, 248, .68);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.channel-strip-label { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-size: 12px; letter-spacing: .12em; flex-shrink: 0; padding-right: 14px; border-right: 1px solid var(--line); }
.channel-strip-list { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.channel-strip-list::-webkit-scrollbar { display: none; }
.channel-strip-list a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }
.channel-strip-list a:hover { background: var(--paper-2); color: var(--red); }
.channel-strip-list em { font-style: normal; font-size: 10px; color: var(--muted-2); }

/* ================= 双栏布局 ================= */
.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
    margin-top: 26px;
    padding-bottom: 50px;
}
.feed { min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 13px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.section-eyebrow { font-size: 10px; letter-spacing: .24em; color: var(--red); font-weight: 700; }
.section-title h2 { font-family: var(--serif); font-size: 26px; letter-spacing: .06em; font-weight: 700; color: var(--ink); line-height: 1.2; }
.section-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.section-note b { color: var(--red); font-weight: 600; }

/* ================= 文章卡片 ================= */
.post-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.post-card {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    min-width: 0;
    min-height: 160px;
    background: rgba(255, 253, 248, .9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-thumb { position: relative; overflow: hidden; background: var(--paper-2); display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-thumb img { transform: scale(1.045); }
.post-card.is-text .post-thumb {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(173, 135, 73, .18), transparent 55%),
        linear-gradient(145deg, #f3ecdd, #e9dfcc);
}
.thumb-letter { font-family: var(--serif); font-size: 62px; color: rgba(168, 50, 38, .32); line-height: 1; }
.thumb-rule { position: absolute; width: 26px; height: 2px; background: rgba(168, 50, 38, .35); bottom: 46px; }
/* 无图文章：不再用一整块重复的大字，收紧成纯文字卡片 */
.post-card.is-text { grid-template-columns: 1fr; }
.post-card.is-text .post-thumb { display: none; }
.post-card.is-text .post-body { position: relative; padding: 20px 24px 18px 27px; }
.post-card.is-text .post-body::before {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    bottom: 19px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--red), var(--gold-soft));
    opacity: .75;
}
.post-card.is-text .post-title { font-size: 21px; }
.post-card.is-text .post-excerpt { -webkit-line-clamp: 3; }
.post-body { padding: 18px 22px 16px; display: flex; flex-direction: column; min-width: 0; }
.post-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 7px; }
.post-kicker a { color: var(--red); font-weight: 600; }
.post-kicker .sep { color: var(--line-strong); }
.post-title {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a:hover { color: var(--red); }
.post-excerpt {
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-foot { margin-top: auto; padding-top: 11px; display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--muted-2); }
.post-foot i { margin-right: 4px; }
.post-more { margin-left: auto; color: var(--red); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; opacity: .76; }
.post-card:hover .post-more { opacity: 1; }

/* ================= 侧栏 ================= */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 76px; }
.side-box { background: rgba(255, 253, 248, .92); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px 12px; border-bottom: 1px solid var(--line); }
.side-head h3 { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 16px; letter-spacing: .06em; font-weight: 700; }
.side-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--red); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 700; border-radius: 4px; flex-shrink: 0; }
.side-sub { font-size: 10px; color: var(--muted-2); letter-spacing: .08em; }
.side-link { font-size: 11px; color: var(--muted); }
.side-link:hover { color: var(--red); }
.hot-list { padding: 8px 18px 12px; }
.hot-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: 0; }
.hot-num { font-family: var(--serif); font-size: 13px; color: var(--muted-2); font-style: italic; width: 22px; flex-shrink: 0; line-height: 1.6; }
.hot-num.is-top { color: var(--red); font-weight: 700; }
.hot-list a { font-size: 13px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list a:hover { color: var(--red); }
.cat-list { padding: 6px 10px 10px; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.cat-list li a:hover { background: var(--paper); color: var(--red); }
.cat-list em { font-style: normal; font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; }
.tag-cloud a { display: inline-block; border: 1px solid var(--line); background: var(--card-soft); color: var(--ink-3); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.tag-cloud a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.tag-cloud .tag-lg { font-size: 14px; color: var(--red); border-color: var(--red-soft); background: var(--red-soft); }
.tag-cloud .tag-md { font-size: 13px; }
.tag-cloud .tag-sm { font-size: 11.5px; }
.side-about-text { padding: 14px 18px 4px; color: var(--ink-3); font-size: 12.5px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 14px; }
.about-stats div { background: var(--card); padding: 12px 6px; text-align: center; }
.about-stats strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--red); line-height: 1.2; }
.about-stats span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.side-empty { padding: 18px; color: var(--muted); font-size: 12px; }

/* ================= 分页 ================= */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 30px 0 6px; }
.page-status { font-size: 12px; color: var(--muted); margin-right: 8px; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--ink-2);
    font-size: 13px;
}
.page-btn:hover { border-color: var(--red); color: var(--red); background: #fff; }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn.is-disabled { color: var(--muted-2); background: var(--card-soft); cursor: not-allowed; }
.page-ellipsis { color: var(--muted-2); padding: 0 2px; }

/* ================= 频道头 ================= */
.cat-hero {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 28px;
    padding: 30px 150px 30px 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(173, 135, 73, .13), transparent 46%),
        rgba(255, 253, 248, .9);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.cat-hero-ghost {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-size: 176px;
    line-height: 1;
    color: rgba(168, 50, 38, .055);
    pointer-events: none;
    user-select: none;
}
.cat-hero-quote {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: .32em;
    color: var(--muted-2);
    opacity: .85;
    pointer-events: none;
}
.cat-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -70px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(173, 135, 73, .18);
    border-radius: 50%;
}
.cat-seal {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--red);
    color: #fff8ec;
    font-family: var(--serif);
    font-size: 38px;
    border-radius: 14px;
    box-shadow: 0 10px 24px -14px rgba(168, 50, 38, .6);
    transform: rotate(-2deg);
}
.tag-hero .cat-seal { background: var(--ink); font-size: 34px; }
.cat-hero-body { position: relative; z-index: 1; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: 10px; margin-right: 4px; }
.cat-hero h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; letter-spacing: .05em; }
.cat-hero p { margin-top: 7px; color: var(--ink-3); font-size: 13px; }
.cat-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.cat-meta i { margin-right: 4px; color: var(--gold); }

/* ================= 搜索页 ================= */
.search-hero {
    margin-top: 28px;
    padding: 34px 38px;
    background: rgba(255, 253, 248, .92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.search-hero-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.search-hero h1 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em; }
.search-lg { width: 100%; height: 52px; border-radius: 12px; padding-left: 46px; }
.search-lg .search-icon { left: 18px; font-size: 15px; }
.search-lg input { font-size: 15px; }
.search-lg button { height: 40px; padding: 0 24px; font-size: 13px; border-radius: 9px; }
.search-summary { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.search-summary strong { color: var(--red); }
.search-suggest { margin-top: 20px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.search-suggest h3 { font-family: var(--serif); font-size: 17px; display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.search-suggest h3 i { color: var(--gold); font-size: 13px; }
.search-suggest .tag-cloud { padding: 0 0 12px; }
.search-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.search-cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.search-cats a:hover { border-color: var(--red); color: var(--red); }
.search-cats em { font-style: normal; font-size: 10px; color: var(--muted-2); }
.empty-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.empty-tags a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 12px; }

/* ================= 文章页 ================= */
.article-page { padding-bottom: 50px; }
.article-breadcrumb { margin-top: 22px; margin-bottom: 0; }
.article-layout-wrap { margin-top: 14px; }
.article-main { background: rgba(255, 253, 248, .94); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-head { padding: 34px 40px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(252, 248, 240, .7), rgba(255, 253, 248, 0)); }
.article-kicker { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); letter-spacing: .05em; margin-bottom: 14px; }
.article-kicker a { color: var(--red); font-weight: 600; }
.article-kicker .sep { color: var(--line-strong); }
.article-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; letter-spacing: .02em; color: var(--ink); }
.article-lead { margin-top: 15px; color: var(--ink-3); font-size: 14.5px; line-height: 1.9; padding-left: 15px; border-left: 2px solid var(--gold-soft); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; margin-top: 18px; font-size: 11.5px; color: var(--muted); }
.article-meta i { margin-right: 5px; color: var(--gold); }
.article-tools { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.font-tools { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.font-tools button, .tool-btn {
    border: 0;
    background: var(--card-soft);
    color: var(--ink-3);
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}
.font-tools button + button { border-left: 1px solid var(--line); }
.font-tools button:hover, .tool-btn:hover { background: var(--paper-2); color: var(--red); }
.tool-btn { border: 1px solid var(--line); border-radius: 8px; }
.article-body {
    padding: 32px 40px 12px;
    font-size: 17px;
    line-height: 2.05;
    color: #2d3037;
    word-break: break-word;
    text-align: justify;
}
.article-body > p { margin: 0 0 1.35em; }
.article-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-size: 3.1em;
    line-height: .86;
    padding: 6px 9px 0 0;
    color: var(--red);
}
.article-body h2, .article-body h3, .article-body h4 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.5;
    margin: 1.7em 0 .8em;
    letter-spacing: .03em;
}
.article-body h2 { font-size: 24px; padding-left: 13px; border-left: 3px solid var(--red); }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 18px; }
.article-body a { color: var(--red); border-bottom: 1px solid rgba(168, 50, 38, .3); }
.article-body a:hover { border-color: var(--red); }
.article-body img, .article-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 10px;
    box-shadow: 0 10px 34px -24px rgba(52, 39, 22, .5);
    cursor: zoom-in;
}
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: var(--card-soft);
    border-left: 3px solid var(--gold);
    color: var(--ink-3);
    font-family: var(--serif);
    font-size: 16px;
}
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: .35em 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; }
.article-body th { background: var(--paper-2); }
.article-body iframe { max-width: 100%; border-radius: 10px; }
.article-body video, .article-body audio { max-width: 100%; }
.article-body pre { overflow: auto; background: #26231f; color: #f4ead9; padding: 16px; border-radius: 8px; font-size: 13px; }
.article-note { margin: 4px 40px 0; padding: 12px 15px; background: var(--card-soft); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.article-note i { color: var(--gold); margin-right: 5px; }

/* 目录 */
.toc-box { margin: 24px 40px 0; padding: 16px 20px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 10px; }
.toc-head { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; }
.toc-head i { color: var(--gold); font-size: 12px; }
.toc-box ol { list-style: none; counter-reset: toc; }
.toc-box li { counter-increment: toc; margin: 3px 0; font-size: 13px; line-height: 1.7; }
.toc-box li::before { content: counter(toc, decimal-leading-zero); color: var(--muted-2); font-size: 10px; margin-right: 8px; }
.toc-box li.toc-lv3 { padding-left: 18px; }
.toc-box a { color: var(--ink-3); }
.toc-box a:hover { color: var(--red); }

/* 标签区 */
.tag-box { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 8px 40px 20px; }
.tag-box-label { color: var(--muted); font-size: 12px; margin-right: 3px; }
.tag-box-label i { color: var(--gold); margin-right: 4px; }
.tag-box a { background: var(--paper-2); color: var(--ink-3); border-radius: 999px; padding: 5px 13px; font-size: 12px; }
.tag-box a:hover { background: var(--red); color: #fff; }

/* 操作区 */
.action-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 26px 40px; border-top: 1px solid var(--line); background: rgba(250, 246, 238, .55); }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 8px 12px; color: var(--ink-3); }
.action-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.action-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card-soft); color: var(--red); font-size: 16px; }
.action-btn strong { font-size: 14px; color: var(--ink); }
.action-btn em { font-style: normal; font-size: 10px; color: var(--muted); }
.action-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.action-btn.is-active .action-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.action-btn.is-active strong, .action-btn.is-active em { color: #fff; }

/* 上下篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px 40px; border-top: 1px solid var(--line); }
.post-nav-item { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-soft); min-width: 0; }
.post-nav-item span { font-size: 11px; color: var(--muted); }
.post-nav-item strong { font-family: var(--serif); font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-item:hover { border-color: var(--red); }
.post-nav-item:hover strong { color: var(--red); }
.post-nav-item.is-next { text-align: right; }
.post-nav-item.is-empty { opacity: .55; }
.post-nav-item.is-empty:hover { border-color: var(--line); }

/* 相关推荐 */
.related-section { padding: 8px 40px 30px; }
.related-section .section-head { margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .2s, border-color .2s; }
.related-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.related-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); position: relative; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-body { display: flex; flex-direction: column; gap: 5px; padding: 11px 13px 13px; }
.related-body em { font-style: normal; font-size: 10px; color: var(--red); }
.related-body strong { font-family: var(--serif); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-body time { font-size: 10px; color: var(--muted-2); }

/* ================= 评论 ================= */
.comment-section { padding: 28px 40px 34px; border-top: 1px solid var(--line); background: rgba(250, 247, 240, .5); }
.comment-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.comment-head h3 { font-family: var(--serif); font-size: 24px; letter-spacing: .04em; display: flex; align-items: center; gap: 9px; }
.comment-head p { color: var(--muted); font-size: 11.5px; }
.comment-count-badge { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--sans); font-size: 10px; font-weight: 600; }
.comment-list { margin-top: 10px; }
.comment-empty { text-align: center; padding: 38px 10px; color: var(--muted); font-size: 13px; }
.comment-empty i { font-size: 30px; color: var(--line-strong); display: block; margin-bottom: 8px; }
.comment-item { display: flex; gap: 13px; padding: 17px 0; border-bottom: 1px dashed var(--line); }
.comment-item:last-child { border-bottom: 0; }
.comment-avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--red); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.comment-main { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: baseline; gap: 11px; margin-bottom: 5px; }
.comment-nick { font-size: 13px; color: var(--ink); }
.comment-time { font-size: 10.5px; color: var(--muted-2); }
.comment-body { color: var(--ink-2); font-size: 13.5px; line-height: 1.85; word-break: break-word; }
.comment-body a { color: var(--red); }
.comment-img { max-width: 220px; max-height: 180px; border-radius: 6px; margin: 6px 0; }
.comment-face { width: 22px; height: 22px; vertical-align: -5px; }
.comment-actions { margin-top: 5px; }
.comment-actions a { font-size: 11px; color: var(--muted); }
.comment-actions a:hover { color: var(--red); }
.comment-actions i { margin-right: 3px; }
.reply-to { font-size: 11.5px; color: var(--muted); margin: 2px 0 4px; }
.reply-to strong { color: var(--red); }
.children-comments { margin-top: 10px; padding: 10px 14px; background: rgba(255, 253, 248, .7); border: 1px solid var(--line); border-radius: 8px; }
.children-comments .comment-item { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.children-comments .comment-item:last-child { border-bottom: 0; padding-bottom: 0; }
.children-comments .comment-avatar { width: 28px; height: 28px; font-size: 13px; }
.comment-pagination { padding: 18px 0 0; }
.comment-form { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.comment-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.comment-form-head strong { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.comment-form-head span { font-size: 11px; color: var(--muted-2); }
.reply-tip { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: var(--paper-2); border-radius: 7px; font-size: 12px; color: var(--ink-3); }
.reply-tip a { color: var(--red); margin-left: auto; }
.form-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.form-row > label { width: 48px; flex-shrink: 0; padding-top: 9px; font-size: 12px; color: var(--muted); }
.form-input, .form-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-soft);
    color: var(--ink);
    padding: 9px 12px;
    font-size: 13px;
    outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173, 135, 73, .12); background: #fff; }
.form-textarea { min-height: 104px; resize: vertical; line-height: 1.8; }
.form-tip { font-size: 10.5px; color: var(--muted-2); align-self: center; white-space: nowrap; }
.comment-preview { margin: 0 0 12px 62px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--card-soft); }
.preview-label { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 6px; }
.face-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px 62px; }
.face-row img { width: 26px; height: 26px; cursor: pointer; border-radius: 4px; padding: 2px; }
.face-row img:hover { background: var(--paper-2); }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 14px; background: var(--card-soft); border-radius: 8px; border: 1px solid var(--line); }
.captcha-label { font-size: 12px; color: var(--muted); }
.captcha-label b { color: var(--red); font-size: 14px; margin-left: 4px; }
.captcha-input { width: 100px; flex: 0 0 auto; }
.btn-submit-comment { margin-left: auto; border: 0; background: var(--red); color: #fff; padding: 10px 26px; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; transition: background .2s, transform .2s; }
.btn-submit-comment:hover { background: #8f2a1f; transform: translateY(-1px); }
.btn-submit-comment:disabled { opacity: .6; cursor: wait; transform: none; }

/* ================= 空状态 ================= */
.empty-state { text-align: center; padding: 60px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; }
.empty-state i { font-size: 34px; color: var(--line-strong); }
.empty-state h3 { font-family: var(--serif); font-size: 20px; margin: 12px 0 6px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.btn-line { display: inline-block; margin-top: 16px; border: 1px solid var(--red); color: var(--red); border-radius: 999px; padding: 7px 20px; font-size: 12px; }
.btn-line:hover { background: var(--red); color: #fff; }

/* ================= 页脚 ================= */
.site-footer { margin-top: 30px; background: #202327; color: #a9a294; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.3fr; gap: 38px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand p { margin-top: 13px; font-size: 12px; line-height: 1.9; color: #8f887b; max-width: 360px; }
.footer-brand .footer-stat { color: var(--gold); font-size: 11px; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; }
.footer-logo img { width: 46px; height: 46px; border-radius: 9px; background: #fff; padding: 4px; }
.footer-logo span { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; color: #f0e7d8; }
.footer-col h4 { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; color: #f0e7d8; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 12px; color: #9d9587; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-about p { font-size: 12px; line-height: 1.9; color: #8f887b; }
.footer-beian { margin-top: 9px; }
.footer-beian a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 56px; font-size: 11px; color: #7f786c; }
.back-top {
    position: fixed;
    right: 24px;
    bottom: 26px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--ink-2);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 70;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ================= Toast / 图片灯箱 ================= */
.toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translate(-50%, -12px);
    z-index: 9999;
    background: rgba(32, 35, 39, .96);
    color: #f4ead9;
    border: 1px solid rgba(173, 135, 73, .38);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: .02em;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(16, 15, 13, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
    cursor: zoom-out;
}
.img-lightbox.is-open { opacity: 1; visibility: visible; }
.img-lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.img-lightbox .lightbox-close { position: absolute; top: 18px; right: 22px; color: #f0e7d8; font-size: 26px; background: none; border: 0; }

/* ================= 响应式 ================= */
@media (max-width: 1120px) {
    .hero { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .8fr); }
    .hero-main { min-height: 420px; }
    .hero-content { padding: 28px 30px; }
    .home-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
    .main-nav > li > a, .main-nav > li > button { padding: 0 12px; font-size: 14px; }
    .main-nav > li > a::after, .main-nav > li > button::after { left: 12px; right: 12px; }
}
@media (max-width: 960px) {
    .masthead { flex-wrap: wrap; gap: 18px; }
    .masthead-side { order: 3; width: 100%; align-items: stretch; }
    .masthead-slogan { display: none; }
    .search { width: 100%; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav-inner { position: relative; flex-wrap: wrap; }
    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--line);
        padding: 6px 0 10px;
    }
    .main-nav.is-open { display: flex; }
    .main-nav > li { width: 100%; }
    .main-nav > li > a, .main-nav > li > button { height: 42px; width: 100%; justify-content: flex-start; padding: 0 6px; border-bottom: 1px dashed var(--line); }
    .main-nav > li > a::after, .main-nav > li > button::after { display: none; }
    .main-nav > li.is-active > a { color: var(--red); }
    .nav-search-link { display: none; }
    .cat-panel { position: static; width: 100%; box-shadow: none; border: 0; padding: 8px 0 4px; max-width: none; max-height: 55vh; overflow-y: auto; }
    .cat-panel-grid { grid-template-columns: repeat(2, 1fr); max-height: none; overflow: visible; }
    .hero { grid-template-columns: 1fr; }
    .hero-main { min-height: 430px; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .hero-mini { grid-template-columns: 1fr; }
    .hero-mini-img { aspect-ratio: 16 / 9; min-height: 0; }
    .home-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
    .side-hot { grid-row: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .topbar-left .topbar-date { display: none; }
    .topbar-right { display: none; }
    .masthead { padding-top: 18px; padding-bottom: 16px; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-text strong { font-size: 24px; }
    .brand-text em { font-size: 9px; letter-spacing: .22em; }
    .hero { margin-top: 18px; gap: 14px; }
    .hero-main { min-height: 380px; border-radius: 16px; }
    .hero-content { padding: 22px 20px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 12.5px; }
    .hero-side { gap: 14px; }
    .hero-mini-body strong { font-size: 15px; }
    .channel-strip { margin-top: 16px; padding: 10px 12px; }
    .home-layout { margin-top: 18px; gap: 20px; }
    .post-card { grid-template-columns: 130px minmax(0, 1fr); min-height: 130px; }
    .post-body { padding: 13px 14px 12px; }
    .post-title { font-size: 17px; -webkit-line-clamp: 2; }
    .post-excerpt { display: none; }
    .post-foot { gap: 10px; padding-top: 7px; font-size: 10.5px; }
    .post-more { display: none; }
    .thumb-letter { font-size: 42px; }
    .thumb-rule { bottom: 32px; }
    .section-title h2 { font-size: 22px; }
    .section-note { font-size: 11px; }
    .cat-hero { padding: 22px 20px; gap: 16px; margin-top: 18px; }
    .cat-seal { width: 58px; height: 58px; font-size: 26px; }
    .cat-hero h1 { font-size: 27px; }
    .cat-hero p { font-size: 12px; }
    .cat-hero-ghost, .cat-hero-quote { display: none; }
    .post-card.is-text .post-body { padding: 15px 16px 13px 20px; }
    .post-card.is-text .post-title { font-size: 17px; }
    .article-head { padding: 24px 20px 20px; }
    .article-head h1 { font-size: 26px; }
    .article-lead { font-size: 13px; }
    .article-body { padding: 22px 20px 8px; font-size: 16px; line-height: 1.95; }
    .article-note { margin: 4px 20px 0; }
    .tag-box { padding: 8px 20px 16px; }
    .action-box { padding: 20px; gap: 10px; }
    .post-nav { grid-template-columns: 1fr; padding: 18px 20px; }
    .post-nav-item.is-next { text-align: left; }
    .related-section { padding: 8px 20px 22px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .comment-section { padding: 22px 20px 26px; }
    .comment-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .comment-form { padding: 16px; }
    .form-row { flex-direction: column; gap: 6px; }
    .form-row > label { width: auto; padding-top: 0; }
    .comment-preview, .face-row { margin-left: 0; }
    .captcha-row { gap: 9px; }
    .btn-submit-comment { margin-left: 0; width: 100%; }
    .search-hero { padding: 24px 20px; margin-top: 18px; }
    .search-lg { height: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 30px; padding-bottom: 24px; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 12px 0; }
    .sidebar { grid-template-columns: 1fr; }
    .side-hot { grid-row: auto; }
    .back-top { right: 14px; bottom: 18px; }
}
@media (max-width: 520px) {
    .topbar { font-size: 11px; }
    .topbar-left { gap: 7px; }
    .brand-text strong { font-size: 21px; }
    .brand-text em { display: none; }
    .hero-main { min-height: 330px; }
    .hero-content h1 { font-size: 23px; }
    .hero-content p { display: none; }
    .hero-side { grid-template-columns: 1fr; }
    .hero-mini { grid-template-columns: 40% 1fr; }
    .hero-mini-img { aspect-ratio: auto; }
    .post-card { grid-template-columns: 104px minmax(0, 1fr); }
    .post-title { font-size: 15.5px; }
    .post-kicker { font-size: 10px; }
    .post-foot span:nth-child(2) { display: none; }
    .channel-strip-label { display: none; }
    .related-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 15.5px; }
    .related-body strong { font-size: 13px; }
    .pagination { gap: 6px; padding-top: 24px; }
    .page-status { display: none; }
    .page-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12px; }
    .page-prev, .page-next { padding: 0 10px; }
    .comment-head p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .site-header, .site-footer, .sidebar, .comment-section, .action-box, .post-nav, .back-top, .article-tools, .related-section { display: none !important; }
    .container { max-width: none; padding: 0; }
    .article-main { border: 0; box-shadow: none; }
    .article-head, .article-body { padding: 0; }
    body { background: #fff; }
}
