/* ==========================================================================
   高粱蜘蛛池 v2.0 - 前台样式
   高粱seo工作室 | 售后：seo-boy
   ========================================================================== */

:root {
    --ink: #12201c;
    --ink-2: #33443e;
    --muted: #6b7c75;
    --brand: #123c33;
    --brand-2: #1d5a4b;
    --brand-3: #0b2a23;
    --gold: #b98336;
    --gold-2: #d9b273;
    --sorghum: #a83a32;
    --paper: #f7f5f0;
    --paper-2: #efeae1;
    --white: #ffffff;
    --line: rgba(18, 32, 28, 0.1);
    --line-strong: rgba(18, 32, 28, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 22px 50px -32px rgba(18, 60, 51, 0.45);
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* ------------------------------ Header ------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px -28px rgba(18, 32, 28, .5);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 78px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(140deg, #1d5a4b, #0b2a23);
    color: #f0d9ae;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 18px -12px rgba(11, 42, 35, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 18px; letter-spacing: .5px; }
.brand-text small {
    font-size: 9px;
    letter-spacing: 2.4px;
    color: var(--muted);
    margin-top: 3px;
}
.brand-light .brand-mark {
    background: linear-gradient(140deg, #d9b273, #b98336);
    color: #10231e;
}
.brand-light .brand-text strong { color: #f5efe3; }
.brand-light .brand-text small { color: rgba(245, 239, 227, .55); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-link {
    position: relative;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--ink-2);
    transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: rgba(18, 60, 51, .06); color: var(--brand); }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 210px;
    flex-shrink: 0;
}
.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 15px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
    font-size: 13.5px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search input:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(29, 90, 75, .12);
}
.header-search button {
    position: absolute;
    right: 5px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
}
.header-search button:hover { background: rgba(18, 60, 51, .08); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: transparent;
    padding: 11px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 1.6px;
    background: var(--ink);
    margin: 4px 0;
    transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
    position: relative;
    padding: 82px 0 66px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 320px at 82% 12%, rgba(185, 131, 54, .10), transparent 65%),
        radial-gradient(520px 300px at 8% 88%, rgba(18, 60, 51, .08), transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold-2);
}
.eyebrow-light { color: var(--gold-2); }
.hero h1 {
    margin: 20px 0 22px;
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.22;
    letter-spacing: 1px;
    font-weight: 700;
}
.hero h1 em {
    font-style: normal;
    color: var(--brand);
    position: relative;
    white-space: nowrap;
}
.hero h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 10px;
    background: linear-gradient(90deg, rgba(185, 131, 54, .26), rgba(185, 131, 54, .04));
    z-index: -1;
    border-radius: 3px;
}
.hero-lead {
    max-width: 540px;
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, #1d5a4b, #0d3129);
    color: #f6f1e6;
    box-shadow: 0 16px 30px -18px rgba(13, 49, 41, .8);
}
.btn-primary:hover { box-shadow: 0 20px 34px -18px rgba(13, 49, 41, .9); }
.btn-ghost {
    border-color: var(--line-strong);
    color: var(--brand);
    background: rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: #fff; }
.btn-light {
    background: #f6f1e6;
    color: #123c33;
}
.btn-light:hover { background: #fff; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 0; }
.hero-stats dt {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.hero-stats dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
}

.hero-art {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-art svg {
    width: 100%;
    max-width: 440px;
    height: auto;
    animation: float 9s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-art-label {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
}

/* ------------------------------ Sections ------------------------------ */

.section { padding: 76px 0; }
.section-tight { padding-top: 48px; }
.section-tint {
    background:
        linear-gradient(180deg, rgba(239, 234, 225, .7), rgba(239, 234, 225, .35));
    border-top: 1px solid rgba(18, 32, 28, .05);
    border-bottom: 1px solid rgba(18, 32, 28, .05);
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.section-head h2 {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: 1px;
}
.section-link {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
    border-bottom: 1px solid var(--gold-2);
    padding-bottom: 2px;
}
.section-note { font-size: 13px; color: var(--muted); }

/* ------------------------------ Post cards ------------------------------ */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(18, 60, 51, .18);
}
.post-cover {
    position: relative;
    display: block;
    height: 138px;
    overflow: hidden;
}
.post-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 30%, rgba(0, 0, 0, .18));
}
.cover-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .5;
}
.cover-char {
    position: absolute;
    right: 16px;
    bottom: -16px;
    font-family: var(--serif);
    font-size: 98px;
    line-height: 1;
    color: rgba(255, 255, 255, .2);
    z-index: 1;
}
.cover-tag {
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 2;
    font-size: 11px;
    letter-spacing: 1.6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(4px);
}
.tone-0 { background: linear-gradient(135deg, #1d5a4b, #0b2a23); }
.tone-1 { background: linear-gradient(135deg, #c8954a, #8a5c1e); }
.tone-2 { background: linear-gradient(135deg, #a8433a, #6d201b); }
.tone-3 { background: linear-gradient(135deg, #2f4858, #13242e); }
.tone-4 { background: linear-gradient(135deg, #6d7f5b, #34402a); }

.post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.post-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}
.post-title {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: .3px;
    margin-bottom: 10px;
}
.post-title a { transition: color .2s ease; }
.post-title a:hover { color: var(--brand-2); }
.post-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post-more span { transition: transform .2s ease; color: var(--gold); }
.post-card:hover .post-more span { transform: translateX(4px); }

/* ------------------------------ Categories ------------------------------ */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.cat-card {
    position: relative;
    display: block;
    padding: 26px 24px;
    background: rgba(255, 255, 255, .66);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--shadow);
}
.cat-num {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 1px;
}
.cat-card h3 {
    margin: 12px 0 8px;
    font-family: var(--serif);
    font-size: 21px;
}
.cat-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 18px;
    min-height: 48px;
}
.cat-count { font-size: 12px; color: var(--brand); font-weight: 600; }

/* ------------------------------ Feature ------------------------------ */

.feature-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.feature-copy h2 {
    margin: 12px 0 18px;
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 34px);
}
.feature-copy > p { color: var(--ink-2); max-width: 520px; }
.feature-list { margin-top: 26px; display: grid; gap: 18px; }
.feature-list li {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line-strong);
}
.feature-list strong { color: var(--brand); font-size: 15px; }
.feature-list span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.feature-panel {
    background: linear-gradient(150deg, #123c33, #0a241e);
    border-radius: 22px;
    padding: 30px;
    color: #e9e2d4;
    box-shadow: 0 30px 60px -35px rgba(10, 36, 30, .9);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    letter-spacing: 1.4px;
    color: rgba(233, 226, 212, .75);
}
.panel-head em {
    font-style: normal;
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid rgba(216, 178, 115, .4);
    border-radius: 999px;
    color: var(--gold-2);
}
.panel-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13.5px;
    color: rgba(233, 226, 212, .7);
}
.panel-row strong {
    font-family: var(--serif);
    font-size: 24px;
    color: #f4e9d3;
    font-weight: 600;
}
.panel-foot { padding-top: 18px; font-size: 11.5px; color: rgba(233, 226, 212, .45); }

/* ------------------------------ Keywords ------------------------------ */

.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-cloud a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .58);
    font-size: 13.5px;
    color: var(--ink-2);
    transition: all .2s ease;
}
.keyword-cloud a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #f3ecdd;
    transform: translateY(-2px);
}

/* ------------------------------ CTA ------------------------------ */

.cta-band {
    padding: 64px 0;
    background: linear-gradient(120deg, #0d3129, #123c33 55%, #1d4a3f);
    color: #f2ecdf;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-inner h2 {
    margin: 12px 0 10px;
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 32px);
}
.cta-inner p { color: rgba(242, 236, 223, .65); margin: 0; font-size: 14px; }

/* ------------------------------ Page head ------------------------------ */

.page-head {
    padding: 52px 0 38px;
    background: linear-gradient(180deg, rgba(239, 234, 225, .8), rgba(247, 245, 240, 0));
    border-bottom: 1px solid var(--line);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 {
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.page-head > .container > p {
    max-width: 680px;
    color: var(--ink-2);
    font-size: 15px;
}
.page-count {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .5px;
}

/* ------------------------------ Layout with sidebar ------------------------------ */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 46px;
    align-items: start;
}
.content-main { min-width: 0; }
.post-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 20px;
}
.side-card {
    background: rgba(255, 255, 255, .68);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px;
}
.side-title {
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--brand);
}
.side-search { display: flex; gap: 8px; }
.side-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 13px;
    outline: none;
}
.side-search input:focus { border-color: var(--brand-2); }
.side-search button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: var(--brand);
    color: #f4ecdd;
    font-size: 13px;
    cursor: pointer;
}
.side-cats li + li { border-top: 1px dashed var(--line); }
.side-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink-2);
}
.side-cats a:hover { color: var(--brand); }
.side-cats em {
    font-style: normal;
    font-size: 11px;
    color: var(--gold);
    background: rgba(185, 131, 54, .1);
    padding: 2px 8px;
    border-radius: 999px;
}
.side-hot { display: grid; gap: 12px; }
.side-hot li { display: flex; gap: 10px; align-items: flex-start; }
.hot-index {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gold);
    line-height: 1.6;
}
.side-hot a { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.side-hot a:hover { color: var(--brand); }
.side-card-dark {
    background: linear-gradient(150deg, #123c33, #0b2a23);
    border-color: transparent;
    color: #eee6d6;
}
.side-card-dark .side-title { color: #f0e5cf; border-color: rgba(255, 255, 255, .12); }
.side-card-dark p { font-size: 13px; color: rgba(238, 230, 214, .7); line-height: 1.8; }
.side-card-dark strong { color: var(--gold-2); }
.side-link { font-size: 13px; color: var(--gold-2); font-weight: 600; }

/* ------------------------------ Article ------------------------------ */

.article { padding-top: 40px; }
.article-head { padding-top: 10px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-cat {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--gold);
    padding: 4px 12px;
    border: 1px solid rgba(185, 131, 54, .35);
    border-radius: 999px;
    margin-bottom: 18px;
}
.article-head h1 {
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.35;
    letter-spacing: 1px;
    margin-bottom: 18px;
    max-width: 900px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
    align-items: start;
    padding-top: 36px;
}
.article-main { min-width: 0; }

.ai-summary {
    position: relative;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(216, 178, 115, .14), rgba(29, 90, 75, .07));
    border: 1px solid rgba(185, 131, 54, .24);
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
}
.ai-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ai-badge {
    font-size: 11px;
    letter-spacing: 1.6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #f3ead8;
}
.ai-note { font-size: 11.5px; color: var(--muted); }
.ai-summary p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.ai-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.ai-points li a {
    display: inline-block;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    color: var(--brand);
}
.ai-points li a:hover { border-color: var(--brand-2); }

.toc {
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin-bottom: 30px;
}
.toc-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.toc ol { counter-reset: toc; display: grid; gap: 8px; }
.toc li { counter-increment: toc; font-size: 13.5px; }
.toc li a { color: var(--ink-2); }
.toc li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--serif);
    color: var(--gold);
    margin-right: 10px;
    font-size: 12px;
}
.toc li a:hover { color: var(--brand); }

.article-body { font-size: 16.5px; line-height: 1.95; color: #23332e; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 {
    position: relative;
    margin: 2.2em 0 .9em;
    padding-left: 16px;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: .5px;
    scroll-margin-top: 94px;
}
.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    bottom: .28em;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.article-body h3 {
    margin: 1.8em 0 .7em;
    font-size: 20px;
    font-family: var(--serif);
    scroll-margin-top: 94px;
}
.article-body a {
    color: var(--brand-2);
    border-bottom: 1px solid rgba(29, 90, 75, .3);
}
.article-body a:hover { border-bottom-color: var(--brand-2); }
.article-body ul, .article-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.3em;
    list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    background: rgba(18, 60, 51, .045);
    border-left: 3px solid var(--gold);
    color: var(--ink-2);
    font-size: 15.5px;
    border-radius: 0 10px 10px 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}
.article-body th, .article-body td {
    border: 1px solid var(--line-strong);
    padding: 10px 14px;
    text-align: left;
}
.article-body th { background: rgba(18, 60, 51, .05); }
.article-body code {
    background: rgba(18, 60, 51, .07);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: .9em;
}
.article-body pre {
    background: #10231e;
    color: #e8e0d0;
    padding: 18px 22px;
    border-radius: 12px;
    overflow: auto;
    font-size: 13.5px;
}
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body img { border-radius: 12px; }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 10px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.article-tags a {
    font-size: 12.5px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(18, 60, 51, .06);
    color: var(--ink-2);
}
.article-tags a:hover { background: var(--brand); color: #f4ecdd; }

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 34px 0;
}
.article-nav a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .55);
    transition: border-color .2s ease, background .2s ease;
}
.article-nav a:hover { border-color: var(--brand-2); background: #fff; }
.article-nav span { font-size: 11.5px; color: var(--gold); letter-spacing: 1.4px; }
.article-nav strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nav-next { text-align: right; align-items: flex-end; }

.related { margin-top: 40px; }
.related h2 {
    font-family: var(--serif);
    font-size: 22px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.related-list { display: grid; gap: 12px; }
.related-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s ease;
}
.related-list a:hover { border-color: var(--brand-2); }
.related-list strong { font-size: 14px; font-weight: 600; }
.related-list span { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ------------------------------ Sidebar in article ------------------------------ */

.article .sidebar { top: 98px; }

/* ------------------------------ Pagination ------------------------------ */

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}
.pager a, .pager span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    font-size: 13.5px;
    background: rgba(255, 255, 255, .6);
}
.pager a:hover { border-color: var(--brand-2); color: var(--brand); }
.pager .current {
    background: var(--brand);
    border-color: var(--brand);
    color: #f5eddd;
}
.pager span:not(.current) { border-color: transparent; background: transparent; color: var(--muted); }

/* ------------------------------ Empty / 404 / Search ------------------------------ */

.empty-state {
    padding: 60px 30px;
    text-align: center;
    background: rgba(255, 255, 255, .55);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty-state h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.page-head-404 { text-align: center; padding: 76px 0 54px; }
.error-code {
    display: block;
    font-family: var(--serif);
    font-size: clamp(72px, 12vw, 130px);
    line-height: 1;
    color: rgba(18, 60, 51, .12);
    letter-spacing: 6px;
}
.page-head-404 h1 { margin-top: -10px; }
.page-head-404 .hero-actions { justify-content: center; }

.search-big {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 22px;
}
.search-big input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 15px;
    outline: none;
}
.search-big input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(29, 90, 75, .1); }
.search-big button {
    height: 50px;
    padding: 0 30px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #f4ecdd;
    font-size: 14.5px;
    cursor: pointer;
}
.search-big button:hover { background: var(--brand-2); }

/* ------------------------------ Footer ------------------------------ */

.site-footer {
    margin-top: 20px;
    padding: 64px 0 26px;
    background: linear-gradient(160deg, #0c2b25, #081d19);
    color: rgba(238, 231, 217, .72);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand p {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.85;
    color: rgba(238, 231, 217, .55);
    max-width: 320px;
}
.footer-contact { color: var(--gold-2) !important; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(238, 231, 217, .45);
    margin-bottom: 6px;
    font-weight: 500;
}
.footer-col a { font-size: 13.5px; color: rgba(238, 231, 217, .78); }
.footer-col a:hover { color: var(--gold-2); }
.footer-note p { font-size: 13px; line-height: 1.85; margin: 0; color: rgba(238, 231, 217, .55); }
.footer-badge {
    display: inline-block;
    margin-top: 6px !important;
    font-size: 11.5px !important;
    letter-spacing: 1.4px;
    color: var(--gold-2) !important;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    font-size: 12px;
    color: rgba(238, 231, 217, .38);
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1080px) {
    .hero-grid { gap: 28px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; }
    .header-search { width: 176px; }
}

@media (max-width: 900px) {
    .header-inner { height: 68px; }
    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .nav-link { padding: 11px 14px; font-size: 15px; }
    .nav-link.active::after { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .header-search { display: none; }
    .brand { margin-right: auto; }
    .hero { padding: 56px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
    .hero-art-label { display: none; }
    .feature-grid { grid-template-columns: 1fr; gap: 32px; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-layout .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .container { padding: 0 18px; }
    .hero h1 { font-size: 34px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .hero-lead { font-size: 15px; }
    .post-grid, .post-grid-list, .cat-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sidebar, .article-layout .sidebar { grid-template-columns: 1fr; }
    .article-head h1 { font-size: 27px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .article-nav { grid-template-columns: 1fr; }
    .nav-next { text-align: left; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .search-big { flex-direction: column; }
    .search-big button { height: 46px; }
    .brand-text small { display: none; }
    .feature-list li { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 广告位 */
.glad { max-width: 100%; margin: 14px 0; overflow: hidden; line-height: 0; }
.glad img, .glad iframe { max-width: 100%; height: auto; }
.glad-head { margin-top: 0; }
