/*
Theme Name: TMGM Pro
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 深蓝金经典金融风格 WordPress 主题。海军蓝底 + 暗金点缀 + 衬线标题，厚重权威。内置 SEO 三要素 + 主关键词/长尾词配置、8 家站长验证、收录推送、sitemap 增强、右侧跟随弹窗、行情演示表、中英切换。
Version: 4.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tm-pro
Tags: finance, trading, seo, responsive, custom-logo, custom-menu, blog, custom-colors
*/

/* ============================================================
   设计系统 —— 深蓝金 · 经典金融
   海军蓝底 / 暗金点缀 / 衬线标题 / 双线边框
   ============================================================ */
:root {
  /* 深蓝层次 */
  --navy:      #0d1b31;
  --navy-2:    #122542;
  --navy-3:    #1a3055;
  --navy-soft: #213c66;

  /* 暗金 */
  --gold:   #c8a55c;
  --gold-2: #b8934a;
  --gold-3: #e0c88a;

  /* 文字（深底） */
  --ink:   #f4f6fa;
  --ink-2: #b9c4d6;
  --ink-3: #7d8ca5;

  /* 浅底区块文字（表格等） */
  --on-light:      #10203a;
  --on-light-2:    #47576f;
  --on-light-3:    #7b8aa1;

  /* 描边 */
  --line:   rgba(200, 165, 92, .26);
  --line-2: rgba(200, 165, 92, .48);
  --line-3: rgba(255, 255, 255, .10);

  /* 涨跌 */
  --up:   #4ade80;
  --down: #f87171;

  /* 圆角 —— 经典风格：小圆角 */
  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 6px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow-2: 0 10px 34px rgba(0, 0, 0, .42);

  --font-serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "SF Mono", "JetBrains Mono", "Roboto Mono", Consolas, Menlo, monospace;

  --header-h: 72px;
  --wrap: 1200px;
}

/* ============================================================
   Reset
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--gold); text-decoration: none; transition: color .18s, border-color .18s; }
a:hover { color: var(--gold-3); text-decoration: none; }
img { max-width: 100%; height: auto; }

::selection { background: var(--gold); color: var(--navy); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-soft); border: 2px solid var(--navy); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

/* ============================================================
   布局
   ========================================================== */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 84px 0; }
.section-alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-entry { padding: 56px 0 76px; background: var(--navy); }

.section-head { margin: 0 0 38px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.35;
}
.section-title::before {
  content: ""; display: block;
  width: 40px; height: 2px; margin-bottom: 16px;
  background: var(--gold);
}
.section-sub { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 660px; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ============================================================
   按钮 —— 金色主按钮
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 600;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #10203a;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  text-align: center;
  letter-spacing: .02em;
}
.btn:hover {
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold) 100%);
  border-color: var(--gold-3);
  color: #10203a;
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(200, 165, 92, .10); color: var(--gold-3); border-color: var(--gold); transform: none; }
.btn-green { background: linear-gradient(180deg, #16a34a, #15803d); border-color: #16a34a; color: #fff; }
.btn-green:hover { background: linear-gradient(180deg, #22c55e, #16a34a); border-color: #22c55e; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   顶部导航 —— 深蓝 + 金色底线
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.2rem; letter-spacing: .04em;
  color: #fff; flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand-mark {
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #10203a;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.brand-text { white-space: nowrap; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block; padding: 7px 12px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
}
.primary-nav a:hover { color: var(--gold-3); background: var(--navy-3); }
.primary-nav .current-menu-item > a { color: var(--gold); }
.primary-nav .current-menu-item > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--gold);
}
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 180px; padding: 6px 0; margin: 0;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  flex-direction: column; gap: 0;
}
.primary-nav li:hover > .sub-menu { display: flex; }
.primary-nav .sub-menu a { font-size: .86rem; padding: 8px 14px; border-radius: 0; }
.primary-nav .sub-menu a:hover { background: var(--navy-3); }

.header-cta { flex-shrink: 0; }

.lang-switch {
  display: flex; border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 11px; font-size: .76rem; font-weight: 600;
  color: var(--ink-3); letter-spacing: .04em;
}
.lang-switch a + a { border-left: 1px solid var(--line-2); }
.lang-switch a:hover { color: var(--gold-3); background: var(--navy-3); }
.lang-switch a.active { background: var(--gold); color: #10203a; }
.lang-switch a.active:hover { background: var(--gold-3); color: #10203a; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 38px; height: 38px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--gold); transition: transform .2s, opacity .16s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .primary-nav a { padding: 7px 9px; font-size: .87rem; }
}
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .header-cta, .lang-switch { display: none; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 8px 0 14px; max-height: 70vh; overflow-y: auto;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .primary-nav a { padding: 12px 8px; font-size: .94rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .primary-nav .sub-menu { display: none !important; }
}

/* ============================================================
   Hero —— 深蓝 + 金色衬线标题
   ========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(200, 165, 92, .10), transparent 62%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 76px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: start;
}
.hero-text { max-width: 660px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.28; font-weight: 700; letter-spacing: .01em;
  margin: 0 0 20px; color: #fff;
}
.hero h1 .accent {
  color: var(--gold); font-weight: 700;
  font-family: var(--font-serif);
}

.hero-lead {
  font-size: 1.02rem; color: var(--ink-2); margin: 0 0 32px;
  max-width: 560px; line-height: 1.85;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 右侧行情面板 —— 深蓝卡片 + 金线 */
.hero-stats {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 27, 49, .72);
  padding: 0;
  box-shadow: var(--shadow-1);
}
.hero-stats-head {
  padding: 12px 18px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}
.hero-stat {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: baseline;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-3);
}
.hero-stat:last-of-type { border-bottom: none; }
.hero-stat .k {
  font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .04em; color: var(--ink-2); font-weight: 600;
}
.hero-stat .v {
  font-family: var(--font-mono); font-size: .92rem;
  font-weight: 600; color: #fff;
}
.hero-stat .c { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; min-width: 58px; text-align: right; }
.v-up { color: var(--up); }
.v-down { color: var(--down); }
.hero-stats-note {
  margin: 0; padding: 10px 18px;
  font-size: .72rem; color: var(--ink-3);
  border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18);
  border-radius: 0 0 var(--radius) var(--radius);
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { max-width: 420px; }
}

/* ============================================================
   入口区（前置 CTA）—— 双线金框
   ========================================================== */
.cta-strip {
  position: relative;
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border-radius: var(--radius);
  padding: 40px 38px 38px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}
.cta-strip::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: var(--font-serif);
  margin: 0 0 8px; font-size: 1.48rem; font-weight: 700;
  letter-spacing: .02em; color: #fff;
}
.cta-strip p { margin: 0 0 24px; color: var(--ink-2); font-size: .92rem; }
.cta-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.cta-buttons .btn { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%); color: #10203a; border-color: var(--gold); }
.cta-buttons .btn:hover { background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold) 100%); border-color: var(--gold-3); color: #10203a; }

.cta-inline {
  background: var(--navy-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; text-align: center;
}

/* ============================================================
   指标条 —— 深蓝格 + 金分隔
   ========================================================== */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0;
}
.metric {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  background: rgba(13, 27, 49, .55);
  transition: background .2s;
}
.metric:last-child { border-right: none; }
.metric:hover { background: var(--navy-3); }
.metric .k {
  font-size: .74rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 8px;
}
.metric .v {
  font-family: var(--font-mono); font-size: 1.32rem; font-weight: 700;
  color: #fff; letter-spacing: -.02em;
}
.metric .v.c1 { color: var(--gold); }
.metric .v.c2 { color: var(--gold-3); }
.metric .v.c3 { color: var(--gold-2); }

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: none; }
  .metric:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   表格 —— 深蓝底 + 金表头
   ========================================================== */
.table-card {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  color: var(--gold);
  padding: 13px 18px; text-align: left;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.data td {
  padding: 12px 18px; border-bottom: 1px solid var(--line-3);
  white-space: nowrap; color: var(--ink);
}
table.data tbody tr { transition: background .16s; }
table.data tbody tr:hover { background: var(--navy-3); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td:nth-child(2), table.data td:nth-child(2) strong { font-family: var(--font-mono); font-weight: 600; color: #fff; }
table.data td:nth-child(3), table.data td:nth-child(4), table.data td:nth-child(5) { font-family: var(--font-mono); color: var(--ink-2); }
.cell-up { color: var(--up) !important; font-family: var(--font-mono); font-weight: 600; }
.cell-down { color: var(--down) !important; font-family: var(--font-mono); font-weight: 600; }
.cell-up::before { content: "\25B2 "; font-size: .68em; }
.cell-down::before { content: "\25BC "; font-size: .68em; }
.note { margin: 12px 0 0; font-size: .8rem; color: var(--ink-3); }

/* ============================================================
   内容块 —— 深蓝卡 + 左侧金线
   ========================================================== */
.panel {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.panel h3 {
  font-family: var(--font-serif);
  margin: 0 0 12px; font-size: 1.14rem; color: #fff; font-weight: 700; letter-spacing: .02em;
}
.panel p { margin: 0 0 14px; color: var(--ink-2); font-size: .95rem; line-height: 1.82; }
.panel p:last-child { margin-bottom: 0; }
.panel-accent { border-left: 3px solid var(--gold); }

.prose { color: var(--ink-2); }
.prose p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem; color: #fff; margin: 38px 0 14px;
  font-weight: 700; letter-spacing: .02em;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem; color: var(--gold-3); margin: 28px 0 10px; font-weight: 700;
}
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 22px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink-2);
}
.prose code {
  font-family: var(--font-mono); background: rgba(200, 165, 92, .12); color: var(--gold-3);
  padding: 2px 6px; border-radius: var(--radius-sm); font-size: .86em;
}
.prose pre { background: #08111f; color: #dbe4f0; padding: 18px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--line-3); }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line-3); padding: 10px 14px; text-align: left; }
.prose th { border-bottom: 1px solid var(--line-2); font-weight: 700; color: var(--gold); }
.prose strong { color: #fff; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   文章卡 —— 深蓝卡 + 金 hover
   ========================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, background .2s, transform .2s;
}
.card:hover { border-color: var(--gold); background: var(--navy-3); transform: translateY(-2px); }
.card-thumb { display: block; position: relative; overflow: hidden; background: var(--navy); }
.card-thumb img { display: block; width: 100%; height: 172px; object-fit: cover; transition: opacity .3s; }
.card:hover .card-thumb img { opacity: .9; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-family: var(--font-serif);
  margin: 0 0 10px; font-size: 1.08rem; line-height: 1.5; font-weight: 700; letter-spacing: .01em;
}
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--gold); }
.card-meta { font-size: .78rem; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); }
.card p { margin: 0; font-size: .89rem; color: var(--ink-2); line-height: 1.72; }

/* ============================================================
   FAQ —— 深蓝折叠 + 金色标记
   ========================================================== */
.faq-item {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 8px;
  overflow: hidden; transition: border-color .18s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { border-color: var(--gold); }
.faq-q {
  padding: 16px 22px; font-weight: 600; font-size: .96rem; color: #fff;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-serif); letter-spacing: .01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ""; width: 11px; height: 11px; flex-shrink: 0; position: relative;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); margin-top: -5px;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-a { padding: 0 22px 18px; color: var(--ink-2); font-size: .92rem; line-height: 1.82; }
.faq-a > div { margin: 0; }

/* ============================================================
   文章页 / 归档两栏
   ========================================================== */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px; align-items: start;
  max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 80px;
}
.article {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.86rem; line-height: 1.4; font-weight: 700;
  letter-spacing: .015em; margin: 0 0 14px; color: #fff;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: .84rem; color: var(--ink-3);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
  font-family: var(--font-mono);
}
.article-meta a { color: var(--ink-2); }
.article-meta a:hover { color: var(--gold); }
.article-thumb { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.article-thumb img { display: block; width: 100%; }
.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-3); }
.article-tags a {
  display: inline-block; margin: 0 6px 6px 0;
  padding: 3px 11px; border-radius: var(--radius-sm);
  background: rgba(200, 165, 92, .10); border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem;
}
.article-tags a:hover { background: var(--gold); color: #10203a; border-color: var(--gold); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.pager-item { background: rgba(13, 27, 49, .5); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; transition: border-color .18s; }
.pager-item:hover { border-color: var(--gold); }
.pager-item.next { text-align: right; }
.pager-label { display: block; font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 5px; }
.pager-item a { color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.5; }
.pager-item a:hover { color: var(--gold); }

.related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.related-card { background: rgba(13, 27, 49, .5); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .18s; }
.related-card:hover { border-color: var(--gold); }
.related-card h4 { margin: 0 0 6px; font-size: .93rem; line-height: 1.5; font-weight: 600; }
.related-card h4 a { color: var(--ink); }
.related-card h4 a:hover { color: var(--gold); }
.related-card .meta { font-size: .75rem; color: var(--ink-3); font-family: var(--font-mono); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.widget {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
}
.widget-title {
  font-family: var(--font-serif);
  font-size: .82rem; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); color: var(--gold);
  letter-spacing: .14em;
}
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--line-3); font-size: .88rem; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--ink-2); flex: 1; line-height: 1.5; }
.widget-list a:hover { color: var(--gold); }
.widget-list .cnt { font-size: .75rem; color: var(--ink-3); font-family: var(--font-mono); }
.widget-cta { background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); border-color: var(--line-2); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 24px 20px 56px; gap: 36px; }
  .sidebar { position: static; }
  .article { padding: 26px; }
  .article-title { font-size: 1.4rem; }
  .pager { grid-template-columns: 1fr; }
  .pager-item.next { text-align: left; }
}

/* ============================================================
   面包屑
   ========================================================== */
.crumbs { background: var(--navy-2); border-bottom: 1px solid var(--line); }
.crumbs-inner { max-width: var(--wrap); margin: 0 auto; padding: 13px 32px; font-size: .83rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; opacity: .5; }
.crumbs .now { color: var(--gold-3); }

/* ============================================================
   归档头 / 搜索头
   ========================================================== */
.page-head {
  padding: 56px 0 40px; text-align: left;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: 1.68rem; margin: 0 0 10px; font-weight: 700;
  letter-spacing: .02em; max-width: var(--wrap);
  margin-left: auto; margin-right: auto; padding: 0 32px; color: #fff;
}
.page-head p {
  margin: 0 0 24px; color: var(--ink-2);
  max-width: var(--wrap); margin-left: auto; margin-right: auto; padding: 0 32px;
}
.page-head .search-box { max-width: 560px; margin: 0 auto; padding: 0 32px; }
.page-head strong { color: var(--gold); }

.search-item {
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 20px; margin-bottom: 14px;
  transition: border-color .18s;
}
.search-item:hover { border-color: var(--gold); }
.search-thumb { flex: 0 0 180px; border-radius: var(--radius-sm); overflow: hidden; align-self: flex-start; }
.search-thumb img { display: block; width: 100%; height: 118px; object-fit: cover; }
.search-body { flex: 1; min-width: 0; }
.search-item h2 {
  font-family: var(--font-serif);
  margin: 0 0 8px; font-size: 1.08rem; line-height: 1.5; font-weight: 700; letter-spacing: .01em;
}
.search-item h2 a { color: #fff; }
.search-item h2 a:hover { color: var(--gold); }
.search-meta { font-size: .77rem; color: var(--ink-3); margin-bottom: 8px; font-family: var(--font-mono); }
.search-item p { margin: 0 0 10px; font-size: .89rem; color: var(--ink-2); line-height: 1.72; }
.search-more { font-size: .86rem; font-weight: 600; }

.empty { background: rgba(13, 27, 49, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 28px; text-align: center; }
.empty h2 {
  font-family: var(--font-serif);
  margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; color: #fff;
}
.empty p { margin: 0; color: var(--ink-3); }

/* ============================================================
   搜索框
   ========================================================== */
.search-form, .search-box form {
  display: flex; background: rgba(0, 0, 0, .22); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; transition: border-color .18s;
}
.search-form:focus-within, .search-box form:focus-within { border-color: var(--gold); }
.search-form input, .search-box input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 12px 18px; font-size: .93rem; color: var(--ink); outline: none; font-family: inherit;
}
.search-form input::placeholder, .search-box input::placeholder { color: var(--ink-3); }
.search-form button, .search-box button {
  border: none; background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #10203a;
  padding: 0 26px; font-size: .93rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.search-form button:hover, .search-box button:hover { background: linear-gradient(180deg, var(--gold-3), var(--gold)); }

/* ============================================================
   分页
   ========================================================== */
.pagination { margin: 36px 0; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  display: inline-block; min-width: 38px; padding: 8px 12px;
  background: rgba(13, 27, 49, .6); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); font-size: .88rem; font-family: var(--font-mono);
  transition: border-color .18s, color .18s, background .18s;
}
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #10203a; font-weight: 700; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   404
   ========================================================== */
.error { padding: 100px 0; }
.error-code {
  font-family: var(--font-serif); font-size: clamp(3.8rem, 11vw, 5.8rem);
  font-weight: 700; line-height: 1; letter-spacing: .02em; margin: 0 0 12px;
  color: var(--gold);
}
.error h1 {
  font-family: var(--font-serif);
  font-size: 1.46rem; margin: 0 0 10px; font-weight: 700; letter-spacing: .02em; color: #fff;
}
.error p { color: var(--ink-2); margin: 0 0 30px; }
.error .search-box { max-width: 460px; margin: 0 0 28px; }
.error-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   页脚 —— 更深的海军蓝 + 金线
   ========================================================== */
.site-footer {
  background: #08111f; color: var(--ink-2);
  border-top: 1px solid var(--line-2);
  padding: 56px 0 32px; font-size: .86rem;
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.footer-brand {
  display: flex; align-items: center; gap: 11px;
  color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
  font-family: var(--font-serif); letter-spacing: .04em;
}
.footer-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.footer-cols h4 {
  color: var(--gold); font-size: .74rem; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 5px 0; }
.footer-cols a { color: var(--ink-2); }
.footer-cols a:hover { color: var(--gold); }
.footer-nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.footer-nav a { color: var(--ink-2); font-size: .85rem; }
.footer-nav a:hover { color: var(--gold); }

.risk {
  background: rgba(248, 113, 113, .07); border: 1px solid rgba(248, 113, 113, .28);
  border-left: 3px solid var(--down);
  border-radius: var(--radius); padding: 15px 18px; margin: 22px 0;
  color: #fca5a5; line-height: 1.78; font-size: .8rem;
}
.risk strong { color: var(--down); }

.footer-bottom { color: var(--ink-3); line-height: 1.82; font-size: .82rem; }
.footer-bottom strong { color: var(--ink-2); }
.footer-bottom p { margin: 0 0 8px; }
.copy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .79rem; }

@media (max-width: 820px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   无障碍 / 打印 / 动效
   ========================================================== */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; }
.skip-link:focus {
  left: 20px; top: 12px; display: inline-block;
  padding: 10px 18px; background: var(--gold); color: #10203a; border-radius: var(--radius); font-weight: 600;
}

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

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .cta-strip, .cta-inline, .sidebar,
  .crumbs, .pager, .nav-toggle, .sidebar-panel, .popup-mask { display: none !important; }
  .hero, .section, .section-alt { background: #fff !important; }
  .layout { grid-template-columns: 1fr; }
  .article, .card, .panel { border: 1px solid #ddd !important; background: #fff !important; }
  .article-title, .section-title, .card h3 { color: #111 !important; }
  .prose, .panel p, .card p { color: #333 !important; }
}
