/*
Theme Name: 贵金属投资平台优选 - 墨绿金主题
Theme URI: https://example.com
Author: 贵金属投资平台优选
Author URI: https://example.com
Description: 围绕"投资贵金属哪个平台最好"打造的贵金属投资平台测评类 WordPress 主题。墨绿主调配香槟金点缀，衬线标题风格，包含首页、列表页、内容页、平台测评、投资品种、常见问题等完整模板，内置 SEO TKD、内链关键词替换与安全加固。
Version: 1.0.0
License: GPL v2 or later
Text Domain: pm-invest
*/

/* ============================================================
   设计系统：墨绿 + 香槟金（区别于蓝红圆角风格）
   直角卡片 / 衬线标题 / 金色细线点缀
   ============================================================ */
:root {
    --ink:        #12332b;   /* 深墨绿（主色） */
    --ink-2:      #1c4a3e;   /* 次级墨绿 */
    --ink-3:      #27604f;   /* 亮墨绿 */
    --gold:       #c6a15b;   /* 香槟金 */
    --gold-deep:  #a8823f;   /* 深金 */
    --gold-soft:  #f3e9d2;   /* 浅金底 */
    --cream:      #faf6ee;   /* 米白背景 */
    --paper:      #ffffff;
    --line:       #e6dfcf;   /* 卡片描边 */
    --text:       #2a2e2c;
    --muted:      #6f7673;
    --ok:         #2f7d5c;
    --radius:     6px;
    --shadow:     0 2px 10px rgba(18, 51, 43, 0.06);
    --shadow-lift:0 14px 34px rgba(18, 51, 43, 0.14);
    --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;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .serif { font-family: var(--serif); }

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

/* ---------------- 顶部公告条 ---------------- */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 12px;
}
.topbar .topbar-right a { color: var(--gold); }

/* ---------------- 主导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 66px;
}
.site-logo {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo .logo-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    display: inline-block;
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    font-size: 15.5px;
    color: #3b423f;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--ink);
    border-bottom-color: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: #3b423f;
    border-bottom: 1px dashed var(--line);
}
@media (min-width: 992px) {
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .mobile-nav { display: none !important; }
}

/* ---------------- 按钮（直角、墨绿/金） ---------------- */
.pmi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}
.pmi-btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(168, 130, 63, 0.35);
}
.pmi-btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.pmi-btn-ink {
    background: var(--ink);
    color: #fff;
}
.pmi-btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.pmi-btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.pmi-btn-ghost:hover { background: var(--ink); color: #fff; }
.pmi-btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.pmi-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.pmi-btn-lg { padding: 14px 34px; font-size: 16.5px; }

/* ---------------- 首页 Hero（墨绿底 + 金色纹理） ---------------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(198, 161, 91, 0.18), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(39, 96, 79, 0.55), transparent 60%),
        linear-gradient(150deg, #0d2a24 0%, var(--ink) 55%, #16352c 100%);
    color: #fff;
    padding: 84px 0 96px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.025) 0 2px,
        transparent 2px 14px
    );
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-kicker {
    display: inline-block;
    border: 1px solid rgba(198, 161, 91, 0.6);
    color: var(--gold);
    font-size: 13.5px;
    letter-spacing: 4px;
    padding: 6px 18px;
    margin-bottom: 26px;
}
.hero h1 {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 22px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold);
    border-bottom: 3px solid rgba(198, 161, 91, 0.5);
    padding-bottom: 2px;
}
.hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Hero 数据条 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 920px;
    margin: 54px auto 0;
}
.hero-stat {
    background: rgba(13, 42, 36, 0.55);
    padding: 22px 16px;
}
.hero-stat .num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.hero-stat .lbl { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.hero-stat .sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); margin-top: 3px; }
@media (min-width: 992px) {
    .hero { padding: 110px 0 120px; }
    .hero h1 { font-size: 46px; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-eyebrow {
    color: var(--gold-deep);
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 14px;
    font-weight: 700;
}
.section-head h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
}
.section-head p { color: var(--muted); font-size: 16px; }
@media (min-width: 768px) { .section-head h2 { font-size: 32px; } }

/* ---------------- 测评维度卡片（首页核心） ---------------- */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 640px)  { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .criteria-grid { grid-template-columns: repeat(3, 1fr); } }
.criteria-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    transition: 0.28s;
}
.criteria-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-top-color: var(--ink);
}
.criteria-card .c-ico {
    width: 52px;
    height: 52px;
    background: var(--gold-soft);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.criteria-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.criteria-card p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.criteria-card .c-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--ok);
    background: rgba(47, 125, 92, 0.08);
    padding: 3px 10px;
    border: 1px solid rgba(47, 125, 92, 0.25);
}

/* ---------------- 平台对比表 ---------------- */
.compare-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: 14.5px;
}
.compare-table th, .compare-table td {
    border: 1px solid var(--line);
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}
.compare-table thead th {
    background: var(--ink);
    color: #fff;
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 1px;
}
.compare-table tbody tr:nth-child(even) { background: #fbf9f3; }
.compare-table .yes { color: var(--ok); font-weight: 600; }
.compare-table .no { color: #b3552f; font-weight: 600; }

/* ---------------- 新手步骤（流程图样式） ---------------- */
.flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
@media (min-width: 768px) {
    .flow-chart { flex-direction: row; justify-content: center; align-items: flex-start; gap: 0; }
}
.flow-node {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
    width: 200px;
    padding: 0 10px;
}
@media (min-width: 768px) { .flow-node { width: 180px; } }
.flow-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
    color: var(--gold);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 20px rgba(18, 51, 43, 0.25);
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}
.flow-node:hover .flow-circle { transform: scale(1.06); border-color: var(--gold-deep); }
.flow-circle::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(198, 161, 91, 0.3);
    z-index: -1;
}
.flow-node h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.flow-node p { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* 连接线 */
.flow-arrow {
    flex: 1 1 auto;
    min-width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    position: relative;
    margin-top: 38px;
    max-width: 80px;
}
.flow-arrow::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-deep);
    font-size: 16px;
}
/* 竖向连接线（移动端） */
@media (max-width: 767px) {
    .flow-arrow {
        width: 2px;
        height: 36px;
        max-width: none;
        margin: 0;
        background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    }
    .flow-arrow::after {
        right: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(50%) rotate(90deg);
    }
}
@media (min-width: 768px) {
    .flow-arrow { display: block; }
}
@media (max-width: 767px) {
    .flow-arrow { display: block; }
}

/* ---------------- 投资品种卡片 ---------------- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); max-width: 660px; } }
.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 34px 28px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.28s;
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ink) 0%, var(--gold) 100%);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-card .p-ico {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transform: rotate(45deg);
}
.product-card .p-ico i { transform: rotate(-45deg); }
.product-card h3 { font-size: 20px; color: var(--ink); }
.product-card .p-symbol { color: var(--gold-deep); font-size: 13px; letter-spacing: 2px; margin: 4px 0 18px; }
.product-card ul { text-align: left; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.product-card ul li {
    padding: 8px 0 8px 22px;
    border-bottom: 1px dashed var(--line);
    position: relative;
    line-height: 1.7;
}
.product-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--gold-deep);
    font-size: 12px;
}
.product-card .pmi-btn { width: 100%; justify-content: center; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.faq-item button.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 17px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 600;
    font-family: var(--serif);
    color: var(--ink);
    text-align: left;
}
.faq-item button.faq-q:hover { background: #fbf8f1; }
.faq-item .faq-body {
    display: none;
    padding: 2px 22px 18px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
}
.faq-item .faq-body p { margin-bottom: 8px; }
.faq-item .chev { color: var(--gold-deep); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }

/* ---------------- 资讯列表 ---------------- */
.news-box {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.news-box li { border-bottom: 1px solid #f0ebdd; }
.news-box li:last-child { border-bottom: none; }
.news-box li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    transition: 0.2s;
}
.news-box li a:hover { background: #fbf8f1; }
.news-box .n-cat {
    color: var(--gold-deep);
    font-size: 12.5px;
    border: 1px solid var(--gold-soft);
    background: #fdfaf3;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-box .n-title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    color: #3b423f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-box li a:hover .n-title { color: var(--ink-2); }
.news-box .n-date { color: #a8ada9; font-size: 12.5px; flex-shrink: 0; }
.news-more {
    text-align: center;
    margin-top: 26px;
}
.news-more a {
    color: var(--gold-deep);
    font-size: 15px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* ---------------- 底部 CTA 横幅 ---------------- */
.cta-banner {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(198, 161, 91, 0.25), transparent 55%),
        linear-gradient(120deg, #0d2a24, var(--ink));
    color: #fff;
    text-align: center;
    padding: 76px 0;
}
.cta-banner h2 {
    font-size: 26px;
    margin-bottom: 14px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.cta-banner p { color: rgba(255, 255, 255, 0.72); margin-bottom: 32px; }
@media (min-width: 768px) { .cta-banner h2 { font-size: 32px; } }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { color: #c9c4b6; }

/* ---------------- 列表页 ---------------- */
.list-wrap { max-width: 900px; margin: 0 auto; padding-bottom: 70px; }
.page-title {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink);
    border-left: 5px solid var(--gold);
    padding-left: 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-card {
    display: flex;
    gap: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: 0.25s;
}
.article-card:hover { transform: translateX(4px); border-left: 4px solid var(--gold); }
.article-card .thumb { width: 180px; height: 120px; object-fit: cover; flex-shrink: 0; }
.article-card .body { min-width: 0; flex: 1; }
.article-card .title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    display: block;
    line-height: 1.5;
}
.article-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #9aa09c;
    margin-bottom: 8px;
}
.article-card .summary {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 640px) {
    .article-card { flex-direction: column; }
    .article-card .thumb { width: 100%; height: 170px; }
}

/* 分页 */
.pagination { margin-top: 34px; text-align: center; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 14px;
    transition: 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--ink);
    color: var(--gold);
    border-color: var(--ink);
}
/* ---------------- 资讯列表 ---------------- */
.news-box {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.news-box li { border-bottom: 1px solid #f0ebdd; }
.news-box li:last-child { border-bottom: none; }
.news-box li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    transition: 0.2s;
}
.news-box li a:hover { background: #fbf8f1; }
.news-box .n-cat {
    color: var(--gold-deep);
    font-size: 12.5px;
    border: 1px solid var(--gold-soft);
    background: #fdfaf3;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-box .n-title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    color: #3b423f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-box li a:hover .n-title { color: var(--ink-2); }
.news-box .n-date { color: #a8ada9; font-size: 12.5px; flex-shrink: 0; }
.news-more {
    text-align: center;
    margin-top: 26px;
}
.news-more a {
    color: var(--gold-deep);
    font-size: 15px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* ---------------- 首页文章资讯（三列分类列表） ---------------- */
.news-title {
    text-align: center;
    font-family: var(--serif);
    font-size: 30px;
    color: var(--ink);
    margin-bottom: 36px;
    font-weight: 700;
}
.news-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 768px) { .news-cols { grid-template-columns: repeat(2, 1fr); } }

.news-col {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(18,51,43,0.06);
}
.news-col-title {
    text-align: center;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold);
    margin: 0 0 0 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
    padding: 14px 20px;
    border: none;
    border-bottom: 2px solid var(--gold);
    position: relative;
}
.news-col-title::after {
    display: none;
}
.news-col-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.news-col-title a:hover { color: var(--gold-deep); }

.news-list {
    list-style: none;
    padding: 8px 16px 16px;
    margin: 0;
}
.news-list li {
    border-bottom: 1px solid var(--line);
}
.news-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.news-list li a:hover { color: var(--gold-deep); }
.news-list li a:hover .n-text { color: var(--gold-deep); }

.news-list .n-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    flex-shrink: 0;
    border-radius: 0;
}
.news-list .n-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: var(--ink-2);
}
.news-list .n-date {
    color: #a8ada9;
    font-size: 12.5px;
    flex-shrink: 0;
}
.news-list .n-empty {
    text-align: center;
    padding: 24px 8px;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
/* ---------------- 文章详情页 ---------------- */
.article-detail {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 34px 26px;
}
@media (min-width: 768px) { .article-detail { padding: 48px 56px; } }
.article-detail h1 {
    font-size: 26px;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 18px;
}
@media (min-width: 768px) { .article-detail h1 { font-size: 31px; } }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #9aa09c;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 28px;
}
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #39413d;
}
.article-content h2, .article-content h3 {
    font-family: var(--serif);
    color: var(--ink);
    margin: 30px 0 14px;
    line-height: 1.5;
}
.article-content h2 { font-size: 22px; border-left: 4px solid var(--gold); padding-left: 12px; }
.article-content h3 { font-size: 18px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 16px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); }
.article-content img { margin: 18px auto; box-shadow: var(--shadow); }
.article-content blockquote {
    border-left: 4px solid var(--gold);
    background: var(--gold-soft);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--ink-2);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14.5px;
}
.article-content th, .article-content td {
    border: 1px solid var(--line);
    padding: 10px 14px;
}
.article-content th { background: #fbf8f1; }
.article-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    margin-top: 34px;
    padding-top: 20px;
    font-size: 14px;
    color: var(--muted);
}
.article-nav a { color: var(--ink-2); }
.article-nav a:hover { color: var(--gold-deep); }

/* 关键词内链样式 */
a.pmi-link {
    color: var(--gold-deep);
    border-bottom: 1px dashed var(--gold);
    transition: 0.2s;
}
a.pmi-link:hover { color: var(--ink); border-bottom-style: solid; }

/* 推荐文章 */
.rec-section { margin-top: 40px; }
.rec-section h3 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    border-left: 5px solid var(--gold);
    padding-left: 14px;
    margin-bottom: 20px;
}
.rec-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .rec-grid { grid-template-columns: repeat(2, 1fr); } }
.rec-card {
    display: flex;
    gap: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px;
    transition: 0.2s;
}
.rec-card:hover { border-color: var(--gold); }
.rec-card .thumb { width: 96px; height: 68px; object-fit: cover; flex-shrink: 0; }
.rec-card .title {
    font-size: 14.5px;
    font-weight: 600;
    color: #3b423f;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-card .meta { font-size: 12px; color: #a8ada9; margin-top: 6px; }

/* ---------------- 页面模板 ---------------- */
.page-content-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 34px 26px;
    margin-bottom: 26px;
}
@media (min-width: 768px) { .page-content-card { padding: 44px 52px; } }
.page-content-card h2 {
    font-family: var(--serif);
    font-size: 21px;
    color: var(--ink);
    border-left: 4px solid var(--gold);
    padding-left: 14px;
    margin-bottom: 18px;
}
.page-content-card p { font-size: 15px; color: var(--muted); line-height: 2; margin-bottom: 14px; }
.risk-note {
    background: #f6f2e7;
    border: 1px dashed var(--gold);
    padding: 22px 26px;
    font-size: 13.5px;
    color: #7a715a;
    line-height: 1.9;
}
.risk-note strong { color: var(--ink); }

/* ---------------- 404 ---------------- */
.error-wrap { text-align: center; padding: 90px 0 110px; }
.error-wrap .code {
    font-family: var(--serif);
    font-size: 110px;
    font-weight: 700;
    color: var(--gold-soft);
    line-height: 1;
    text-shadow: 0 4px 0 rgba(198, 161, 91, 0.35);
}
.error-wrap h1 { font-size: 28px; color: var(--ink); margin: 10px 0 12px; }
.error-wrap p { color: var(--muted); margin-bottom: 30px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 44px; }
.search-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-right: none;
    font-size: 14px;
    outline: none;
}
.search-form input:focus { border-color: var(--gold); }
.search-form button {
    padding: 0 26px;
    background: var(--ink);
    color: var(--gold);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #0d2a24;
    color: rgba(255, 255, 255, 0.65);
    padding: 64px 0 0;
    font-size: 13.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 44px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 {
    font-family: var(--serif);
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(198, 161, 91, 0.45);
    display: inline-block;
}
.site-footer a:hover { color: var(--gold); }
.footer-links li { padding: 5px 0; }
.footer-links a { color: rgba(255, 255, 255, 0.6); }
.footer-desc { line-height: 1.9; margin-top: 14px; }
.footer-logo {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo .logo-dot { width: 9px; height: 9px; background: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.5px;
    line-height: 1.9;
}

/* ---------------- 双栏布局（内容 + 侧边栏） ---------------- */
.layout-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 60px;
}
@media (min-width: 992px) {
    .layout-wrap {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
}
.layout-content { min-width: 0; }
.layout-sidebar { min-width: 0; }
@media (max-width: 991px) {
    .layout-sidebar { margin-top: 10px; }
}

/* ---------------- 侧边栏组件 ---------------- */
.sidebar-widgets { position: sticky; top: 86px; }
.sidebar-widget {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 22px 20px;
    margin-bottom: 22px;
}
.sidebar-widget .widget-title {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-soft);
    display: flex;
    align-items: center;
}
.sidebar-widget:last-child { margin-bottom: 0; }

/* 最新文章列表 */
.widget-post-list li { border-bottom: 1px dashed #efe9da; }
.widget-post-list li:last-child { border-bottom: none; }
.widget-post-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    transition: 0.2s;
}
.widget-post-list li a:hover { padding-left: 4px; }
.widget-post-list .wp-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: #3b423f;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-post-list li a:hover .wp-title { color: var(--ink-2); }
.widget-post-list .wp-date {
    font-size: 11.5px;
    color: #b3b8b4;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 目录分类列表 */
.widget-cat-list li { border-bottom: 1px dashed #efe9da; }
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: #3b423f;
    transition: 0.2s;
}
.widget-cat-list li a:hover { color: var(--ink-2); padding-left: 4px; }
.widget-cat-list .wc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-cat-list .wc-count {
    font-size: 11.5px;
    color: var(--gold-deep);
    background: var(--gold-soft);
    padding: 1px 8px;
    flex-shrink: 0;
}

/* 标签云 */
.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud-link {
    display: inline-block;
    font-size: 12.5px !important;
    color: #4a504d;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 4px 11px;
    transition: 0.2s;
}
.tag-cloud-link:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

/* 后台小工具兼容样式 */
.sidebar-widgets .widget { margin-bottom: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px 20px; }
.sidebar-widgets .widget ul { list-style: none; }
.sidebar-widgets .widget ul li { border-bottom: 1px dashed #efe9da; }
.sidebar-widgets .widget ul li:last-child { border-bottom: none; }
.sidebar-widgets .widget ul li a { display: block; padding: 8px 0; font-size: 13.5px; color: #3b423f; }
.sidebar-widgets .widget ul li a:hover { color: var(--ink-2); }
.sidebar-widgets .widget .widget-title { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold-soft); }

/* ---------------- 小工具/其他 ---------------- */
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); }
.custom-logo { max-height: 56px; width: auto; }

@media (max-width: 576px) {
    .hero h1 { font-size: 27px; }
    .section { padding: 54px 0; }
    .pmi-btn-lg { padding: 12px 24px; font-size: 15px; }
}
@media (min-width: 992px) {
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .mobile-menu-wrap { display: none !important; }  /* ← 新增：包裹层也隐藏 */
}