/*
Theme Name: EX Pro
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 灰白科技风金融资讯 WordPress 主题。内置 SEO 三要素、8 家站长验证、搜索主动推送、sitemap 增强、右侧跟随弹窗、行情演示表。轻量、响应式、无评论。
Version: 3.0.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: ex-pro
Tags: finance, trading, seo, responsive, custom-logo, custom-menu, blog
*/

/* ============================================================
   设计系统
   ============================================================ */
:root {
  --bg:        #f5f7fb;
  --bg-soft:   #eef2f8;
  --surface:   #ffffff;
  --surface-2: #fafbfd;

  --ink:   #0e1726;
  --ink-2: #46536b;
  --ink-3: #8593a8;

  --line:      #e4eaf3;
  --line-soft: #eef2f8;

  --brand:     #1a56db;
  --brand-2:   #0ea5e9;
  --brand-ink: #0b3ea8;
  --gold:      #e0900a;

  --up:   #0f9d58;
  --down: #e0342c;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.05);
  --shadow-2: 0 8px 30px rgba(16,24,40,.10);
  --shadow-3: 0 18px 60px rgba(16,24,40,.14);

  --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: 70px;
  --wrap: 1240px;
}

/* ============================================================
   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.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #cbd5e4; border-radius: 6px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============================================================
   布局
   ============================================================ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 62px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { margin: 0 0 30px; }
.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 8px;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ""; width: 4px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
}
.section-sub { margin: 0; color: var(--ink-3); font-size: .95rem; }

/* 锚点偏移，避开吸顶导航 */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: .98rem; font-weight: 650;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  color: #fff; border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,86,219,.28); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--brand);
  border-color: #cddcf8;
}
.btn-ghost:hover { background: #f2f7ff; color: var(--brand-ink); box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.btn-green { background: linear-gradient(135deg, #12a05f, #0b7c46); }
.btn-green:hover { box-shadow: 0 10px 26px rgba(15,157,88,.28); }
.btn-gold { background: linear-gradient(135deg, #f0a80d, #c97605); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(224,144,10,.3); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -.4px;
  color: var(--ink); flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(26,86,219,.28);
  flex-shrink: 0;
}
.brand-text { white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--brand); }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: .92rem; font-weight: 550; color: var(--ink-2);
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--brand); background: #f0f5ff; }
.primary-nav .current-menu-item > a { color: var(--brand); background: #eef4ff; }
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 190px; padding: 7px 0; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  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: .87rem; padding: 8px 16px; border-radius: 0; }
.primary-nav .sub-menu a:hover { background: #f2f7ff; }

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

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s, opacity .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 10px 0 16px; max-height: 70vh; overflow-y: auto;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 0 18px; }
  .primary-nav a { padding: 12px 10px; font-size: .96rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .primary-nav .sub-menu { display: none !important; }
}

/* ============================================================
   Hero —— 灰白 + 微弱科技感
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 78px 0 66px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(26,86,219,.09), transparent 62%),
    radial-gradient(760px 380px at 88% 8%, rgba(14,165,233,.09), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,86,219,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 380px at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 380px at 50% 0%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
  opacity: .55;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px; margin-bottom: 22px;
  border-radius: 999px;
  background: #eef4ff; border: 1px solid #d8e6ff;
  color: var(--brand-ink); font-size: .82rem; font-weight: 650;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(26,86,219,.14);
  animation: exPulse 1.8s ease-in-out infinite;
}
@keyframes exPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.78)} }

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
  line-height: 1.2; font-weight: 850; letter-spacing: -1px;
  margin: 0 0 16px; color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent { -webkit-text-fill-color: transparent; }
}
.hero-lead { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 30px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px;
  padding: 20px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
}
.hero-stat .k { font-size: .76rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.hero-stat .v { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.hero-stat .v small { font-size: .74em; font-weight: 700; margin-left: 5px; }
.v-up { color: var(--up); }
.v-down { color: var(--down); }

@media (max-width: 820px) {
  .hero { padding: 54px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   指标卡
   ============================================================ */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px; margin-top: -34px; position: relative; z-index: 5;
}
.metric {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-1);
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.metric::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0; transition: opacity .22s;
}
.metric:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #d3e1fb; }
.metric:hover::before { opacity: 1; }
.metric .k { font-size: .79rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.metric .v { font-family: var(--font-mono); font-size: 1.42rem; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.5px; }
.metric .v.c1 { color: var(--brand); }
.metric .v.c2 { color: var(--brand-2); }
.metric .v.c3 { color: var(--gold); }

@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   表格
   ============================================================ */
.table-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
}
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
table.data th {
  background: var(--surface-2); color: var(--ink-2);
  padding: 13px 18px; text-align: left;
  font-size: .78rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td {
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; color: var(--ink);
}
table.data tbody tr { transition: background .16s; }
table.data tbody tr:hover { background: #f7faff; }
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: 700; }
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: 700; }
.cell-down { color: var(--down) !important; font-family: var(--font-mono); font-weight: 700; }
.cell-up::before { content: "\25B2 "; font-size: .72em; }
.cell-down::before { content: "\25BC "; font-size: .72em; }
.note { margin: 12px 0 0; font-size: .81rem; color: var(--ink-3); }

/* ============================================================
   内容块
   ============================================================ */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-1);
}
.panel h3 { margin: 0 0 12px; font-size: 1.12rem; color: var(--ink); }
.panel p { margin: 0 0 14px; color: var(--ink-2); }
.panel p:last-child { margin-bottom: 0; }
.panel-accent { border-left: 3px solid var(--brand); }

.prose { color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 1.32rem; color: var(--ink); margin: 34px 0 14px; padding-left: 13px; border-left: 3px solid var(--brand); }
.prose h3 { font-size: 1.1rem; color: var(--ink); margin: 26px 0 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--brand-2);
  background: #f1f8ff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose code {
  font-family: var(--font-mono); background: #eef2f8; color: var(--brand-ink);
  padding: 2px 7px; border-radius: 5px; font-size: .88em;
}
.prose pre { background: #0e1726; color: #e6edf7; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface-2); }

/* ============================================================
   文章卡
   ============================================================ */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #cfe0fb; }
.card-thumb { display: block; position: relative; overflow: hidden; background: var(--bg-soft); }
.card-thumb img { display: block; width: 100%; height: 178px; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; line-height: 1.45; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card-meta { font-size: .78rem; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.card-meta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.card p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: #cfdcee; }
.faq-item[open] { border-color: #c3d9fb; box-shadow: var(--shadow-1); }
.faq-q {
  padding: 17px 22px; font-weight: 650; font-size: .98rem; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "\FF0B"; color: var(--brand); font-size: 1.1rem; flex-shrink: 0; font-weight: 400;
}
.faq-item[open] .faq-q::after { content: "\FF0D"; }
.faq-a { padding: 0 22px 18px; color: var(--ink-2); font-size: .93rem; }
.faq-a > div { margin: 0; }

/* ============================================================
   CTA 条
   ============================================================ */
.cta-strip {
  background: linear-gradient(120deg, #0f2a6b 0%, #16408f 45%, #0d6ba8 100%);
  border-radius: var(--radius-lg);
  padding: 40px 34px; color: #fff;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; }
.cta-strip p { margin: 0 0 24px; color: rgba(255,255,255,.78); font-size: .95rem; }
.cta-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.cta-buttons .btn { background: #fff; color: #10306e; }
.cta-buttons .btn:hover { background: #eef4ff; color: #0a2160; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.cta-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-1); }
.cta-inline .cta-buttons .btn { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; }
.cta-inline .cta-buttons .btn:hover { color: #fff; }

/* ============================================================
   文章页 / 归档两栏
   ============================================================ */
.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: 34px; align-items: start;
  max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 60px;
}
.article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-1);
}
.article-title { font-size: 1.85rem; line-height: 1.35; font-weight: 850; letter-spacing: -.5px; margin: 0 0 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .84rem; color: var(--ink-3);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.article-meta a { color: var(--ink-2); }
.article-meta a:hover { color: var(--brand); }
.article-thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.article-thumb img { display: block; width: 100%; }
.article-tags { margin-top: 28px; 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: 999px;
  background: #eef4ff; border: 1px solid #d8e6ff; color: var(--brand-ink); font-size: .8rem;
}
.article-tags a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.pager-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 18px; transition: border-color .2s; }
.pager-item:hover { border-color: #cfe0fb; }
.pager-item.next { text-align: right; }
.pager-label { display: block; font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px; }
.pager-item a { color: var(--ink); font-size: .92rem; font-weight: 550; line-height: 1.45; }
.pager-item a:hover { color: var(--brand); }

.related { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }
.related-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; transition: border-color .2s; }
.related-card:hover { border-color: #cfe0fb; }
.related-card h4 { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; }
.related-card h4 a { color: var(--ink); }
.related-card h4 a:hover { color: var(--brand); }
.related-card .meta { font-size: .76rem; color: var(--ink-3); font-family: var(--font-mono); }

.sidebar { position: sticky; top: calc(var(--header-h) + 18px); }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
.widget-title { font-size: .92rem; font-weight: 750; margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--ink); text-transform: uppercase; letter-spacing: .6px; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); 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(--brand); }
.widget-list .cnt { font-size: .76rem; color: var(--ink-3); font-family: var(--font-mono); }
.widget-cta { background: linear-gradient(160deg, #eef4ff, #ffffff); }

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

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

/* ============================================================
   归档头 / 搜索头
   ============================================================ */
.page-head {
  padding: 52px 0 40px; text-align: center;
  background: linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 1.7rem; margin: 0 0 10px; font-weight: 820; letter-spacing: -.4px; }
.page-head p { margin: 0 0 24px; color: var(--ink-3); }
.page-head .search-box { max-width: 520px; margin: 0 auto; }
.page-head strong { color: var(--brand); }

.search-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 20px; margin-bottom: 16px;
  transition: border-color .2s, transform .2s;
}
.search-item:hover { border-color: #cfe0fb; transform: translateY(-2px); }
.search-thumb { flex: 0 0 190px; border-radius: var(--radius-sm); overflow: hidden; align-self: flex-start; }
.search-thumb img { display: block; width: 100%; height: 126px; object-fit: cover; }
.search-body { flex: 1; min-width: 0; }
.search-item h2 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.45; }
.search-item h2 a { color: var(--ink); }
.search-item h2 a:hover { color: var(--brand); }
.search-meta { font-size: .78rem; color: var(--ink-3); margin-bottom: 8px; font-family: var(--font-mono); }
.search-item p { margin: 0 0 10px; font-size: .9rem; color: var(--ink-2); }
.search-more { font-size: .86rem; font-weight: 650; }

.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 28px; text-align: center; }
.empty h2 { margin: 0 0 10px; font-size: 1.2rem; }
.empty p { margin: 0; color: var(--ink-3); }

/* ============================================================
   搜索框
   ============================================================ */
.search-form, .search-box form {
  display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; transition: border-color .18s, box-shadow .18s;
}
.search-form:focus-within, .search-box form:focus-within {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26,86,219,.10);
}
.search-form input, .search-box input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 13px 22px; font-size: .94rem; 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(135deg, var(--brand), var(--brand-ink));
  color: #fff; padding: 0 28px; font-size: .94rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.search-form button:hover, .search-box button:hover { filter: brightness(1.06); }

/* ============================================================
   分页
   ============================================================ */
.pagination { margin: 34px 0; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  display: inline-block; min-width: 40px; padding: 9px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .9rem; font-family: var(--font-mono);
  transition: border-color .18s, color .18s, background .18s;
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   404
   ============================================================ */
.error { padding: 96px 0; text-align: center; }
.error-code {
  font-family: var(--font-mono); font-size: clamp(4.6rem, 15vw, 8rem);
  font-weight: 850; line-height: 1; letter-spacing: -3px; margin: 0 0 8px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .error-code { -webkit-text-fill-color: transparent; }
}
.error h1 { font-size: 1.5rem; margin: 0 0 10px; }
.error p { color: var(--ink-3); margin: 0 0 30px; }
.error .search-box { max-width: 480px; margin: 0 auto 30px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: #0e1726; color: #9fb0c8; padding: 52px 0 30px; font-size: .86rem; margin-top: 40px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-cols h4 { color: #fff; font-size: .9rem; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 5px 0; }
.footer-cols a { color: #9fb0c8; }
.footer-cols a:hover { color: #fff; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-nav a { color: #9fb0c8; font-size: .86rem; }
.footer-nav a:hover { color: #fff; }
.risk {
  background: rgba(224,52,44,.10); border: 1px solid rgba(224,52,44,.26);
  border-radius: var(--radius-sm); padding: 15px 18px; margin: 22px 0;
  color: #f3a9a4; line-height: 1.7; font-size: .82rem;
}
.risk strong { color: #ff7a72; }
.footer-bottom { text-align: center; color: #7b8ca4; line-height: 1.8; }
.footer-bottom strong { color: #b8c6da; }
.footer-bottom p { margin: 0 0 8px; }
.copy { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; }

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

/* ============================================================
   无障碍 / 打印 / 动效
   ============================================================ */
.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: 16px; top: 16px; display: inline-block;
  padding: 10px 18px; background: var(--brand); color: #fff; border-radius: var(--radius-sm); font-weight: 700;
}

@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 {
  .site-header, .site-footer, .cta-strip, .cta-inline, .sidebar,
  .crumbs, .pager, .nav-toggle, .sidebar-panel, .popup-overlay { display: none !important; }
  body { background: #fff; }
  .layout { grid-template-columns: 1fr; }
  .article { border: none; box-shadow: none; }
}
