/* ============================================================
   SEO斗篷 全站样式
   设计原则：专业、克制、技术感、现代、干净
   浅紫背景 + 深紫文字 + 紫色强调色（主紫 #6a11cb）
   移动优先；无 emoji 图标（全部使用内联 SVG）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --c-bg: #ffffff;
    --c-bg-soft: #faf7ff;
    --c-bg-inset: #f3ecfd;
    --c-text: #1a0e2e;
    --c-text-2: #2a1b3d;
    --c-muted: #6a5c7d;
    --c-border: #e8ddf8;
    --c-accent: #6a11cb;
    --c-accent-strong: #4a0e8f;
    --c-accent-soft: #f1e7ff;
    --c-success: #0e7a4f;
    --c-success-soft: #e9f6ef;
    --c-warning: #9a5b00;
    --c-warning-soft: #fdf3e3;
    --c-dark: #1a0e2e;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    --radius: 10px;
    --radius-sm: 6px;
    --header-h: 84px;
    --container: 1100px;
    --container-narrow: 780px;
    --shadow-card: 0 1px 2px rgba(42, 27, 61, .04), 0 6px 18px rgba(42, 27, 61, .05);
    --shadow-card-hover: 0 2px 4px rgba(42, 27, 61, .05), 0 12px 30px rgba(42, 27, 61, .10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--c-text-2);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--c-text); line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-strong); }
img, svg { max-width: 100%; vertical-align: middle; }
button { font: inherit; }
code, pre, kbd { font-family: var(--font-mono); }

/* ---------- 工具类 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--container-narrow); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
    position: absolute; top: -48px; left: 12px; z-index: 100;
    background: var(--c-accent); color: #fff; padding: 8px 16px;
    border-radius: var(--radius-sm); transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-menu, .icon-close { width: 22px; height: 22px; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-soft); }
.section-head { margin-bottom: 36px; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; letter-spacing: .12em;
    color: var(--c-accent); margin-bottom: 10px;
}
.section-eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--c-accent); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
.section-lead { margin-top: 12px; max-width: 640px; color: var(--c-muted); font-size: .95rem; }
.section-note { margin-top: 24px; color: var(--c-muted); font-size: .88rem; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; line-height: 1.5;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(106, 17, 203, .22); }
.btn-primary:hover { background: var(--c-accent-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.text-link:hover .icon { transform: translateX(2px); }
.text-link .icon { transition: transform .15s; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background:
        linear-gradient(90deg, var(--c-accent) 0%, #8a5cf6 42%, rgba(138, 92, 246, 0) 100%) left bottom / 100% 2px no-repeat,
        rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
/* 页头导流按钮：桌面端显示，移动端由菜单内的 .nav-cta-item 承担 */
.header-cta {
    display: none; align-items: center; gap: 7px;
    padding: 10px 17px; border-radius: 999px;
    background: var(--c-accent); color: #fff;
    font-size: .9rem; font-weight: 600; line-height: 1;
    box-shadow: 0 6px 16px rgba(106, 17, 203, .22);
    transition: background .15s, box-shadow .15s;
}
.header-cta:hover { background: var(--c-accent-strong); color: #fff; box-shadow: 0 8px 20px rgba(74, 14, 143, .28); }
.header-cta .icon { transition: transform .15s; }
.header-cta:hover .icon { transform: translateX(2px); }
/* 移动端菜单内的导流入口（仅在收起为汉堡菜单时出现） */
.nav-cta-item { display: block; }
.nav-list .nav-cta-link { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-accent); }
.nav-list .nav-cta-link:hover { color: var(--c-accent-strong); }
.brand { display: inline-flex; align-items: center; color: var(--c-text); }
.brand:hover { color: var(--c-text); }
/* 品牌字标为完整 logo 图（含图形与文字），按高度缩放、宽度自适应，避免拉伸 */
.brand-logo { display: block; height: 56px; width: auto; flex: none; }
.site-nav { display: none; }
.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); background: #fff; color: var(--c-text); cursor: pointer;
}
.icon-close { display: none; }
body.nav-open .icon-close { display: block; }
body.nav-open .icon-menu { display: none; }

/* 移动端菜单（由 .nav-open 控制） */
body.nav-open .site-nav {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: 0 16px 30px rgba(42, 27, 61, .08);
}
.nav-list > li > a, .nav-dropdown > summary {
    display: block; padding: 13px 20px; font-weight: 500; color: var(--c-text-2);
    border-top: 1px solid var(--c-bg-soft);
}
.nav-list > li > a:hover, .nav-list > li > a.is-current { color: var(--c-accent); }
.nav-dropdown > summary { list-style: none; cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary { display: flex; align-items: center; justify-content: space-between; }
.nav-dropdown-menu a {
    display: block; padding: 11px 34px; font-size: .95rem; color: var(--c-text-2);
    border-top: 1px solid var(--c-bg-soft);
}
.nav-dropdown-menu a:hover { color: var(--c-accent); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 1px 1px, rgba(106, 17, 203, .10) 1px, transparent 0) 0 0 / 26px 26px,
        radial-gradient(80% 120% at 82% 0%, rgba(106, 17, 203, .13) 0%, rgba(106, 17, 203, 0) 62%),
        radial-gradient(70% 110% at 8% 8%, rgba(138, 92, 246, .10) 0%, rgba(138, 92, 246, 0) 60%),
        linear-gradient(180deg, #f7f0ff 0%, #ffffff 78%);
    border-bottom: 1px solid var(--c-border);
}
.hero-inner { padding: 68px 0 60px; }
.hero-eyebrow {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: var(--c-accent-soft); color: var(--c-accent-strong);
    font-size: .82rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.3rem, 6.4vw, 3.4rem); font-weight: 800; letter-spacing: .01em; }
.hero-subtitle { margin-top: 14px; font-size: clamp(1.02rem, 2.5vw, 1.24rem); font-weight: 600; color: var(--c-text-2); }
.hero-desc { margin-top: 18px; color: var(--c-muted); max-width: 620px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { margin: 34px 0 0; }
.hero-figure img {
    display: block; width: 100%; height: auto;
    border-radius: var(--radius); border: 1px solid var(--c-border);
    box-shadow: 0 18px 44px rgba(74, 14, 143, .14);
}
.hero-grid { display: grid; gap: 30px; }

/* ---------- 主题卡片 ---------- */
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
/* 核心主题总览页（/topics/）：同一网格里改用「栏目块」，含最新文章与篇数 */
.topic-block {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 22px 22px 18px;
}
.topic-block-head { display: flex; align-items: center; gap: 12px; }
.topic-block-name { font-size: 1.05rem; margin-top: 6px; }
.topic-block-name a { color: var(--c-text); }
.topic-block-name a:hover { color: var(--c-accent); }
.topic-latest {
    display: flex; flex-direction: column; gap: 9px;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-bg-soft);
    font-size: .9rem;
}
.topic-latest a { color: var(--c-text-2); }
.topic-latest a:hover { color: var(--c-accent); }
.topic-block-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 16px; font-size: .85rem;
}
.topic-count { color: var(--c-muted); }

.topic-card {
    display: flex; flex-direction: column; gap: 12px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 0 22px 22px; color: inherit; overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: #d6bdf7; color: inherit; }
.topic-card:hover .topic-thumb img { transform: scale(1.03); }
.topic-thumb { display: block; margin: 0 -22px 2px; border-bottom: 1px solid var(--c-border); overflow: hidden; background: var(--c-bg-soft); }
.topic-thumb img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 3 / 2; object-fit: cover;
    transition: transform .35s ease;
}
.topic-head { display: flex; align-items: center; gap: 10px; }
.topic-icon {
    display: inline-flex; width: 34px; height: 34px; border-radius: 9px; flex: none;
    background: var(--c-accent-soft); color: var(--c-accent);
    align-items: center; justify-content: center;
}
.topic-icon .icon { width: 18px; height: 18px; }
.topic-name { font-size: 1.04rem; font-weight: 700; }
.topic-desc { font-size: .9rem; color: var(--c-muted); flex: 1; }
.topic-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--c-accent); }

/* ---------- 专题页封面 ---------- */
.article-cover { max-width: var(--container-narrow); margin: 26px auto 30px; }
.article-cover.is-lockup { max-width: 520px; }   /* 品牌字标按实际宽度展示，避免在大容器里被放大 */
.article-cover.is-lockup img { border: 0; background: transparent; }
.article-cover img {
    display: block; width: 100%; height: auto;
    border-radius: var(--radius); border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
}

/* ---------- 最新内容 ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.post-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .15s, border-color .15s;
}
.post-card:hover { box-shadow: var(--shadow-card-hover); border-color: #d6bdf7; }
.post-card-thumb { display: block; border-bottom: 1px solid var(--c-border); background: var(--c-bg-soft); overflow: hidden; }
.post-card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; flex-wrap: wrap; }
.post-cat {
    padding: 2px 10px; border-radius: 999px; background: var(--c-accent-soft);
    color: var(--c-accent-strong); font-weight: 600;
}
.post-time { color: var(--c-muted); display: inline-flex; align-items: center; gap: 4px; }
.post-title { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.post-title a { color: var(--c-text); }
.post-title a:hover { color: var(--c-accent); }
.post-excerpt { font-size: .9rem; color: var(--c-muted); }

/* ---------- 核心知识模块 ---------- */
.knowledge-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.knowledge-item {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 26px 24px; display: flex; flex-direction: column;
}
.knowledge-icon {
    display: inline-flex; width: 40px; height: 40px; border-radius: 11px; flex: none;
    background: var(--c-accent-soft); color: var(--c-accent);
    align-items: center; justify-content: center; margin-bottom: 16px;
}
.knowledge-icon .icon { width: 20px; height: 20px; }
.knowledge-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.knowledge-num { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--c-accent); letter-spacing: .04em; }
.knowledge-title { font-size: 1.08rem; font-weight: 700; }
.knowledge-desc {
    font-size: .92rem; color: var(--c-text-2);
    /* 限行：保证卡片等高、避免首页出现长文字墙。全文在栏目页完整呈现，HTML 中仍保留完整文本 */
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.knowledge-item .text-link { margin-top: auto; padding-top: 16px; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; font-weight: 600; color: var(--c-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--c-bg-soft); }
.faq-chevron { color: var(--c-muted); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--c-accent); }
.faq-answer { padding: 14px 20px 18px; font-size: .93rem; color: var(--c-text-2); }
.faq-more { margin-top: 20px; font-size: .92rem; color: var(--c-muted); }

/* ---------- 按关注点阅读（首页导航区） ---------- */
.focus-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.focus-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 18px 20px; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.focus-card:hover { border-color: #d6bdf7; box-shadow: var(--shadow-card); transform: translateY(-2px); color: inherit; }
.focus-icon {
    display: inline-flex; width: 38px; height: 38px; border-radius: 10px; flex: none;
    background: var(--c-accent-soft); color: var(--c-accent);
    align-items: center; justify-content: center;
}
.focus-icon .icon { width: 19px; height: 19px; }
.focus-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.focus-q { font-size: .97rem; font-weight: 700; color: var(--c-text); }
.focus-a { font-size: .85rem; color: var(--c-muted); }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0; font-size: .85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; color: var(--c-border); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: var(--c-text-2); font-weight: 500; }

/* ---------- 专题页 / 文章页 ---------- */
.article-page { padding: 40px 0 56px; }

/* ---------- 栏目列表页 ---------- */
.column-header {
    padding: 42px 0 26px;
    background: linear-gradient(180deg, #f7f0ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--c-border);
}
.column-title { font-size: clamp(1.6rem, 4.4vw, 2.1rem); font-weight: 800; margin-top: 10px; }
.column-intro { margin-top: 14px; max-width: 780px; color: var(--c-text-2); }
.column-count { margin-top: 12px; font-size: .85rem; color: var(--c-muted); }
.column-list { padding: 40px 0 64px; }
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-list .post-card { display: flex; gap: 18px; align-items: flex-start; }
.post-list .post-thumb {
    flex: none; width: 200px; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--c-border); background: var(--c-bg-soft);
}
.post-list .post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-list .post-body { flex: 1; }
.empty-tip { padding: 36px 0; color: var(--c-muted); }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-link {
    padding: 7px 13px; border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); font-size: .9rem; color: var(--c-text-2);
}
.page-link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.page-link.is-current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.page-link.is-disabled { color: var(--c-muted); opacity: .55; }

/* ---------- 侧边栏（文章页 / 栏目页共用） ---------- */
.with-sidebar { display: grid; gap: 34px; }
.sidebar-col { display: flex; flex-direction: column; gap: 22px; }
.widget { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px 20px; }
.widget-title {
    font-size: .95rem; font-weight: 700; margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 1px solid var(--c-bg-soft);
}
.widget-links { display: flex; flex-direction: column; gap: 9px; font-size: .9rem; }
.widget-links a { color: var(--c-text-2); }
.widget-links a:hover, .widget-links a.is-current { color: var(--c-accent); }
/* 侧栏导流卡片：与正文 CTA 同源的紧凑版，用左侧强调条与浅紫底区分于普通导航块 */
.widget-cta { background: linear-gradient(180deg, #f8f3ff 0%, #ffffff 100%); border-left: 3px solid var(--c-accent); }
.widget-cta-label {
    display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
    background: var(--c-accent-soft); color: var(--c-accent-strong);
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}
.widget-cta .widget-title { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.widget-cta-desc { margin: 10px 0 16px; font-size: .88rem; line-height: 1.7; color: var(--c-muted); }
.widget-cta-btn { width: 100%; padding: 10px 16px; font-size: .9rem; }
.article-header { max-width: var(--container-narrow); margin: 0 auto 28px; }
.article-eyebrow {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: var(--c-accent-soft); color: var(--c-accent-strong);
    font-size: .8rem; font-weight: 600; margin-bottom: 16px;
}
.article-title { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; }
.article-lead { margin-top: 14px; font-size: 1.02rem; color: var(--c-muted); }
.article-meta {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-border);
    display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--c-muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--c-muted); }

/* 目录 */
.toc {
    max-width: var(--container-narrow); margin: 0 auto 28px;
    background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.toc summary {
    list-style: none; cursor: pointer; padding: 12px 18px;
    font-weight: 600; font-size: .92rem; color: var(--c-text);
    display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 5px;
    border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
    transform: rotate(45deg); transition: transform .2s; margin-left: auto;
}
.toc[open] summary::after { transform: rotate(225deg); }
.toc ol { padding: 4px 18px 14px; font-size: .9rem; }
.toc ol li { padding: 4px 0; }
.toc a { color: var(--c-text-2); }
.toc a:hover { color: var(--c-accent); }
.toc .toc-l3 { padding-left: 18px; font-size: .86rem; }
.toc .toc-l4 { padding-left: 36px; font-size: .84rem; }

/* ---------- 正文排版 ---------- */
.prose { max-width: var(--container-narrow); margin: 0 auto; font-size: 1rem; }
.prose-narrow { max-width: 720px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.42rem; font-weight: 700; margin-top: 2.1em; padding-bottom: .4em; border-bottom: 1px solid var(--c-bg-soft); scroll-margin-top: 76px; }
.prose h3 { font-size: 1.16rem; font-weight: 700; margin-top: 1.7em; scroll-margin-top: 76px; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5em; }
.prose p { color: var(--c-text-2); }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--c-text-2); }
.prose ul li { list-style: disc; margin: .45em 0; }
.prose ol li { list-style: decimal; margin: .45em 0; }
.prose li::marker { color: var(--c-accent); }
.prose strong { color: var(--c-text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(106, 17, 203, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote {
    margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--c-accent);
    background: var(--c-bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-muted); font-size: .95rem;
}
.prose code {
    background: var(--c-bg-inset); border-radius: 4px; padding: 2px 7px;
    font-size: .86em; color: var(--c-text);
}
.prose pre {
    background: var(--c-dark); color: #ece3ff; border-radius: var(--radius);
    padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.7;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2.2em 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--c-bg-soft); color: var(--c-text); font-weight: 600; white-space: nowrap; }
.prose figure { margin: 1.6em 0; text-align: center; }
.prose figure svg { width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: .85rem; color: var(--c-muted); }

/* 提示框 */
.callout {
    border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent);
    background: var(--c-accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px; margin: 1.4em 0; font-size: .93rem;
}
.callout p { color: var(--c-text-2); }
.callout + .callout { margin-top: 1.4em; }
.callout-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--c-text); margin-bottom: 6px;
}
.callout-title .icon { color: var(--c-accent); }
.callout-warning { border-left-color: #d97706; background: var(--c-warning-soft); }
.callout-warning .callout-title .icon { color: #d97706; }

/* 首页定义区 */
.definition { background: #fff; }

/* ---------- 判定边界辨析卡（首页「什么是 SEO斗篷？」） ---------- */
.clarify { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
.clarify-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    border-top: 3px solid var(--c-warning); padding: 24px 24px 22px;
}
.clarify-card.is-ok { border-top-color: var(--c-success); }
.clarify-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.clarify-head h3 { font-size: 1rem; }
.clarify-badge {
    display: inline-flex; width: 32px; height: 32px; border-radius: 9px; flex: none;
    background: var(--c-warning-soft); color: var(--c-warning);
    align-items: center; justify-content: center;
}
.clarify-card.is-ok .clarify-badge { background: var(--c-success-soft); color: var(--c-success); }
.clarify-badge .icon { width: 17px; height: 17px; }
.clarify-list { display: flex; flex-direction: column; gap: 13px; }
.clarify-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--c-text-2); }
.clarify-list li .icon { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--c-warning); }
.clarify-card.is-ok .clarify-list li .icon { color: var(--c-success); }
.clarify-note {
    max-width: var(--container-narrow); margin: 26px auto 0;
    padding: 16px 20px; background: var(--c-accent-soft);
    border-radius: var(--radius-sm); font-size: .93rem; color: var(--c-accent-strong);
}
.clarify-note strong { color: var(--c-accent-strong); }

/* ---------- 页尾区块（FAQ / 相关主题） ---------- */
.article-faq { padding: 56px 0; border-top: 1px solid var(--c-border); }
.article-faq h2, .article-related h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.article-related { padding: 56px 0 72px; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.related-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 18px 20px; color: inherit;
}
.related-card:hover { border-color: #d6bdf7; box-shadow: var(--shadow-card); color: inherit; }
.related-card .topic-icon { width: 38px; height: 38px; border-radius: 8px; }
.related-card .topic-icon .icon { width: 19px; height: 19px; }
.related-card h3 { font-size: .98rem; font-weight: 700; }
.related-card p { font-size: .85rem; color: var(--c-muted); margin-top: 4px; }

/* ---------- 正文后导流 CTA ---------- */
.article-cta {
    max-width: var(--container-narrow); margin: 44px auto 0; padding: 26px 24px;
    border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent);
    border-radius: var(--radius);
    background: linear-gradient(140deg, #f6efff 0%, #ffffff 72%);
}
.article-cta-label {
    display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px;
    background: var(--c-accent-soft); color: var(--c-accent-strong);
    font-size: .74rem; font-weight: 700; letter-spacing: .06em;
}
.article-cta-title { font-size: 1.16rem; font-weight: 700; }
.article-cta-desc { margin-top: 10px; font-size: .92rem; line-height: 1.8; color: var(--c-muted); }
.article-cta-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 上一篇 / 下一篇 ---------- */
.prev-next { max-width: var(--container-narrow); margin: 0 auto; padding: 32px 0 56px; display: grid; gap: 12px; }
.prev-next a {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 18px;
    border: 1px solid var(--c-border); border-radius: var(--radius); font-size: .92rem;
}
.prev-next a:hover { border-color: var(--c-accent); }
.prev-next .pn-label { font-size: .78rem; color: var(--c-muted); font-weight: 600; letter-spacing: .05em; }
.prev-next .pn-title { font-weight: 600; color: var(--c-text); }

/* ---------- 通用页面（about 等） ---------- */
.generic-page { padding: 48px 0 72px; }
.generic-page .article-header { margin-bottom: 20px; }

/* ---------- HTML 网站地图页 ---------- */
.sitemap-groups { max-width: var(--container-narrow); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.sitemap-group h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-bg-soft); }
.sitemap-group ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sitemap-group a { color: var(--c-text-2); text-decoration: underline; text-decoration-color: var(--c-border); text-underline-offset: 4px; }
.sitemap-group a:hover { color: var(--c-accent); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound-code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 6rem); font-weight: 800; color: var(--c-accent); opacity: .14; line-height: 1; }
.notfound h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 8px; }
.notfound p { color: var(--c-muted); margin-top: 14px; }
.notfound .hero-actions { margin-top: 30px; }

/* ---------- 页脚 ---------- */
/* 页脚改为浅色底：字标可以像导航那样直接放上去——同一张图、同一尺寸、同一画面，
   既不必给 logo 改色或改图，也不必额外加白底框（"反过来"处理承载它的表面）。 */
.site-footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); color: var(--c-text-2); margin-top: 0; }
/* 页脚导流区：全站统一的转化入口，浅紫渐变 + 左侧强调条，与正文 CTA 同一视觉语言 */
.footer-cta {
    display: grid; gap: 22px; align-items: center;
    margin-top: 48px; padding: 28px 24px;
    border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent);
    border-radius: var(--radius);
    background: linear-gradient(130deg, #f4ecff 0%, #ffffff 70%);
}
.footer-cta-label {
    display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px;
    background: var(--c-accent-soft); color: var(--c-accent-strong);
    font-size: .74rem; font-weight: 700; letter-spacing: .06em;
}
.footer-cta-title { font-size: 1.24rem; font-weight: 700; }
.footer-cta-desc { margin-top: 10px; font-size: .9rem; line-height: 1.8; color: var(--c-muted); max-width: 720px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 36px 0 40px; }
.footer-brand .brand { color: var(--c-text); }
.footer-desc { margin-top: 16px; font-size: .88rem; line-height: 1.8; color: var(--c-muted); max-width: 380px; }
.footer-title { font-size: .9rem; font-weight: 700; color: var(--c-text); margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--c-text-2); font-size: .9rem; }
.footer-nav a:hover { color: var(--c-accent); }
/* 联系方式：图标与文字保持较大间隙，图标用强调色以便一眼找到 */
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact .icon { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid var(--c-border); padding: 20px 0; }
.footer-bottom p { text-align: center; font-size: .82rem; color: var(--c-muted); }

/* ---------- 浮动咨询按钮（纯图标圆形，页面上不出现第三方平台名称） ---------- */
.float-contact {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--c-accent); color: #fff;
    box-shadow: 0 10px 26px rgba(106, 17, 203, .32);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.float-contact:hover { background: var(--c-accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74, 14, 143, .38); }
.float-contact .icon { width: 25px; height: 25px; }

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .sitemap-group ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 559px) {
    .post-list .post-card { flex-direction: column; gap: 12px; }
    .post-list .post-thumb { width: 100%; }
    /* 小屏浮动按钮改为贴边小圆，避免遮挡正文；文案保留在 aria-label 中供无障碍读取 */
    .float-contact { right: 14px; bottom: 14px; width: 48px; height: 48px; }
    .float-contact .icon { width: 22px; height: 22px; }
    .article-cta-actions .btn, .footer-cta-actions .btn { width: 100%; }
}
@media (min-width: 768px) {
    .section { padding: 84px 0; }
    .hero-inner { padding: 96px 0 84px; }
    .nav-toggle { display: none; }
    .site-nav { display: block; }
    .header-cta { display: inline-flex; }
    .nav-cta-item { display: none; }
    .nav-list { display: flex; align-items: center; gap: 4px; }
    .nav-list > li > a {
        padding: 8px 13px; border: none; font-size: .93rem; border-radius: var(--radius-sm);
    }
    .nav-list > li > a.is-current { color: var(--c-accent); background: var(--c-accent-soft); }
    /* 桌面端“更多主题”下拉 */
    .nav-more { position: relative; }
    /*
     * 悬停桥接层：下拉菜单在 calc(100% + 8px) 处，与触发项之间有 8px 空隙。
     * 鼠标穿过空隙时落在 header 上而非 li 内，会触发 mouseleave 导致菜单瞬间收起。
     * 这里用 li 的 ::after 覆盖这段空隙（宽度与菜单一致），使鼠标全程停留在 li 子树内。
     */
    .nav-more::after {
        content: ""; position: absolute; top: 100%; right: 0;
        width: 170px; height: 12px;
    }
    .nav-dropdown > summary { padding: 8px 13px; font-size: .93rem; border: none; color: var(--c-text-2); }
    .nav-dropdown[open] > summary { color: var(--c-accent); }
    .nav-dropdown-menu {
        position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
        background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
        box-shadow: 0 12px 32px rgba(42, 27, 61, .12); overflow: hidden;
    }
    .nav-dropdown-menu a { padding: 10px 16px; border: none; }
    .knowledge-list { grid-template-columns: repeat(2, 1fr); }
    .clarify { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .prev-next { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
    /* 品牌区占满一行，其余 3 列等宽（主题 / 页面 / 联系） */
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px; }
    .hero-figure { margin-top: 0; }
    .footer-cta { grid-template-columns: minmax(0, 1fr) auto; }
    .footer-cta-actions { flex-direction: column; align-items: stretch; }
}
@media (min-width: 960px) {
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .focus-grid { grid-template-columns: repeat(3, 1fr); }
    .with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
    .sidebar-col { position: sticky; top: calc(var(--header-h) + 22px); align-self: start; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .footer-brand { grid-column: auto; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 打印 ---------- */
@media print {
    .site-header, .site-footer, .nav-toggle, .hero-actions, .toc, .breadcrumb, .float-contact, .article-cta { display: none !important; }
    body { color: #000; }
    .prose p, .prose ul, .prose ol { color: #222; }
}
