/* 泛站页面样式 v2 - 高粱seo工作室
 * 三个旧版主题：theme-portal（经典门户）/ theme-magazine（经典杂志）/ theme-minimal（经典极简）
 * 结构共用，观感差异由主题类驱动。
 */
:root {
    --ink: #17221f;
    --ink-2: #47554f;
    --muted: #7c8a84;
    --line: #e3e8e5;
    --bg: #ffffff;
    --tint: #f5f8f6;
    --brand: #123c33;
    --brand-2: #1c5a4a;
    --gold: #b98336;
    --gold-soft: #f7efdf;
    --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ===== 头部（门户默认：深绿渐变吸顶） ===== */
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(135deg, #123c33, #1c5a4a 70%, #23705c);
    box-shadow: 0 6px 18px -10px rgba(11, 42, 35, .55);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.site-brand { display: flex; align-items: center; gap: 11px; color: #f2f7f5; }
.brand-dot {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #b98336, #d9a75a);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 4px 10px -3px rgba(185, 131, 54, .6);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name strong { font-size: 15.5px; font-weight: 700; letter-spacing: .3px; }
.brand-name small { font-size: 11px; opacity: .75; letter-spacing: 1px; }
.site-nav { display: flex; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.site-nav a { color: rgba(242, 247, 245, .88); padding: 6px 12px; border-radius: 8px; transition: background .15s ease; }
.site-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ===== 主体 / Hero ===== */
.site-main { min-height: 60vh; }
.hero {
    padding: 70px 0 54px;
    background:
        radial-gradient(1000px 320px at 85% -60px, rgba(185, 131, 54, .14), transparent 60%),
        linear-gradient(180deg, #f2f7f4, #fff 78%);
    border-bottom: 1px solid var(--line);
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid #ecd9b4;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 { font-size: 38px; line-height: 1.32; margin: 0 0 16px; letter-spacing: -.5px; color: var(--brand); }
.hero-lead { font-size: 16.5px; color: var(--ink-2); max-width: 740px; margin: 0 0 22px; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, #1c5a4a, #123c33);
    color: #f2f7f5;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 20px -10px rgba(18, 60, 51, .6);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost {
    display: inline-block;
    border: 1px solid #c8d3ce;
    color: var(--brand);
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-meta { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-meta b { color: var(--gold); font-size: 15px; }

/* ===== 区块 ===== */
.block { padding: 54px 0; }
.block-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.block-head h2 { font-size: 21px; margin: 0; font-weight: 700; color: var(--brand); position: relative; padding-left: 15px; }
.block-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-2), var(--gold));
}
.block-head span { font-size: 12.5px; color: var(--muted); }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: all .18s ease;
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-2), var(--gold));
    opacity: 0;
    transition: opacity .18s ease;
}
.card:hover { border-color: #c8d3ce; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 60, 51, .1); }
.card:hover::after { opacity: 1; }
.card-date { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-family: Consolas, monospace; }
.card h3 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.card p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.card-more { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; }
.about-text { color: var(--ink-2); max-width: 840px; margin: 0; }
.about-links { margin: 12px 0 0; display: flex; gap: 18px; font-size: 13.5px; }

/* ===== 主题板块 ===== */
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.topic-card h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 700; color: var(--brand); padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.topic-card ul { list-style: none; margin: 0; padding: 0; }
.topic-card li { margin: 0 0 8px; padding-left: 14px; position: relative; }
.topic-card li::before { content: "›"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.topic-card li:last-child { margin-bottom: 0; }
.topic-card li a { font-size: 13.5px; color: var(--ink-2); display: block; line-height: 1.6; }
.topic-card li a:hover { color: var(--brand); }

/* ===== 文章页 ===== */
.article { padding: 30px 0 64px; }
.article-wrap { max-width: 830px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs em { font-style: normal; color: var(--ink-2); }
.article h1 { font-size: 30px; line-height: 1.42; margin: 0 0 14px; letter-spacing: -.4px; color: var(--ink); }
.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
.article-body { font-size: 16px; color: #26312d; }
.article-body h2 { font-size: 20px; margin: 34px 0 12px; padding: 6px 0 6px 14px; border-left: 4px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft), transparent 70%); border-radius: 0 8px 8px 0; line-height: 1.5; }
.article-body h3 { font-size: 17px; margin: 26px 0 10px; color: var(--brand); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.ai-summary {
    background: linear-gradient(135deg, #f4f8f6, #fbf7ee);
    border: 1px solid #dfe9e4;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 26px;
}
.ai-summary strong { display: block; font-size: 13px; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; }
.ai-summary ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.ai-summary li { margin-bottom: 6px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; transition: border-color .15s ease; }
.faq-list details[open] { border-color: #c8d3ce; box-shadow: 0 8px 20px rgba(18, 60, 51, .06); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

/* ===== 相关链接 ===== */
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: all .15s ease; }
.link-card:hover { border-color: #c8d3ce; box-shadow: 0 10px 22px rgba(18, 60, 51, .08); }
.link-card strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.link-card span { font-size: 12px; color: var(--gold); }
.cross-list { list-style: none; margin: 0; padding: 0; }
.cross-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.cross-list li:last-child { border-bottom: 0; }
.cross-list small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ===== 底部（三栏） ===== */
.site-foot { margin-top: 40px; background: linear-gradient(180deg, #0f2f28, #0b241e); color: #d8e4df; padding: 44px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; padding-bottom: 28px; }
.foot-about strong { font-size: 16px; color: #f6f0e2; }
.foot-about p { margin: 10px 0 0; font-size: 13px; color: #a9bdb6; max-width: 380px; }
.foot-col h4 { margin: 0 0 12px; font-size: 14px; color: #f6f0e2; }
.foot-col a { display: block; font-size: 13px; color: #a9bdb6; margin: 7px 0; }
.foot-col a:hover { color: var(--gold); }
.copy-line { border-top: 1px solid rgba(255, 255, 255, .1); }
.copy-line p { margin: 0; padding: 16px 0; font-size: 12.5px; color: #8ba49c; }

/* =====================================================
 * 主题变体 1：经典杂志 —— 衬线标题 · 顶部强调条 · 象牙纸感
 * ===================================================== */
.theme-magazine {
    --brand: #23303c;
    --brand-2: #3d5468;
    --gold: #a2541f;
    --gold-soft: #f9ede2;
    --tint: #faf7f2;
    --line: #e8e2d8;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}
.theme-magazine .site-head { background: #23303c; border-top: 4px solid var(--gold); box-shadow: none; }
.theme-magazine .brand-dot { background: var(--gold); border-radius: 4px; }
.theme-magazine .hero { background: #faf7f2; border-bottom: 1px solid var(--line); }
.theme-magazine .hero h1 { font-size: 44px; font-weight: 900; letter-spacing: 1px; color: #23303c; }
.theme-magazine .eyebrow { color: var(--gold); background: transparent; border: 0; padding: 0; letter-spacing: 4px; }
.theme-magazine .btn-main { background: var(--gold); border-radius: 4px; font-family: inherit; }
.theme-magazine .btn-ghost { border-radius: 4px; color: #23303c; }
.theme-magazine .block-head h2 { color: #23303c; font-size: 23px; padding-left: 0; }
.theme-magazine .block-head h2::before { display: none; }
.theme-magazine .block-head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); margin-top: 8px; }
.theme-magazine .card { border: 1px solid var(--line); border-top: 4px solid var(--brand-2); border-radius: 6px; }
.theme-magazine .card::after { display: none; }
.theme-magazine .card:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(35, 48, 60, .1); }
.theme-magazine .card-more { color: var(--gold); }
.theme-magazine .article-body h2 { border-left: 0; background: none; padding-left: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.theme-magazine .site-foot { background: #23303c; }

/* =====================================================
 * 主题变体 2：经典极简 —— 浅色头部 · 细线列表 · 大留白
 * ===================================================== */
.theme-minimal {
    --brand: #1a1a1a;
    --brand-2: #333333;
    --gold: #555555;
    --gold-soft: #f2f2f2;
    --tint: #fafafa;
    --line: #e6e6e6;
    --radius: 4px;
}
.theme-minimal .site-head { position: static; background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
.theme-minimal .head-inner { height: 64px; }
.theme-minimal .brand-dot { background: #1a1a1a; border-radius: 3px; box-shadow: none; }
.theme-minimal .site-brand { color: #1a1a1a; }
.theme-minimal .site-nav a { color: #555; padding: 6px 10px; border-radius: 0; }
.theme-minimal .site-nav a:hover { background: transparent; color: #000; text-decoration: underline; text-underline-offset: 5px; }
.theme-minimal .hero { background: #fff; border-bottom: 0; padding: 60px 0 36px; }
.theme-minimal .hero h1 { font-size: 30px; color: #111; }
.theme-minimal .eyebrow { background: transparent; border: 0; padding: 0; color: #888; }
.theme-minimal .btn-main { background: #1a1a1a; border-radius: 4px; box-shadow: none; }
.theme-minimal .btn-ghost { border-radius: 4px; color: #333; background: #fff; }
.theme-minimal .block { padding: 44px 0; }
.theme-minimal .block-tint { background: #fafafa; }
.theme-minimal .block-head h2 { color: #111; font-size: 19px; padding-left: 0; }
.theme-minimal .block-head h2::before { display: none; }
.theme-minimal .card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 2px; background: transparent; }
.theme-minimal .card::after { display: none; }
.theme-minimal .card:hover { transform: none; box-shadow: none; border-color: #999; }
.theme-minimal .card h3 { font-weight: 600; }
.theme-minimal .card-more { color: #555; }
.theme-minimal .topic-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 2px; background: transparent; }
.theme-minimal .topic-card h3 { color: #111; border-bottom: 0; }
.theme-minimal .topic-card li::before { content: "-"; color: #999; }
.theme-minimal .article-body h2 { border-left: 0; background: none; padding-left: 0; border-radius: 0; }
.theme-minimal .site-foot { background: #fff; color: #333; border-top: 1px solid var(--line); margin-top: 20px; }
.theme-minimal .foot-about strong { color: #111; }
.theme-minimal .foot-about p { color: #888; }
.theme-minimal .foot-col h4 { color: #111; }
.theme-minimal .foot-col a { color: #777; }
.theme-minimal .foot-col a:hover { color: #111; }
.theme-minimal .copy-line { border-top: 1px solid var(--line); }
.theme-minimal .copy-line p { color: #999; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .hero { padding: 46px 0 34px; }
    .hero h1 { font-size: 27px; }
    .theme-magazine .hero h1 { font-size: 32px; }
    .article h1 { font-size: 23px; }
    .article-body { font-size: 15.5px; }
    .card-grid, .link-grid, .topic-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-nav { display: none; }
    .block { padding: 38px 0; }
}

/* 广告位 */
.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; }
