:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --brand: #0d3b66;
  --brand-mid: #1374b8;
  --brand-soft: #e9f4fc;
  --bull: #c82333;
  --bull-soft: #fdf0f1;
  --bear: #0f8a5f;
  --bear-soft: #e7f7f0;
  --amber: #b45309;
  --amber-soft: #fff8eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 26px rgba(13, 59, 102, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-mid); text-decoration: none; transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease; }
a:hover { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ico { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 46px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-link:hover { background: var(--brand-soft); color: var(--brand); }
.nav-link.is-active { background: var(--brand); color: #ffffff; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 4px 2px 12px;
  width: 196px;
}
.header-search:focus-within { border-color: var(--brand-mid); background: #ffffff; }
.header-search input { border: 0; background: transparent; outline: none; font-size: 0.84rem; color: var(--ink); width: 100%; min-width: 0; }
.header-search button {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-search button:hover { background: var(--brand-mid); }

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-drawer { border-top: 1px solid var(--border); background: #ffffff; padding: 14px 0 18px; }
.mobile-search { display: flex; gap: 8px; margin-bottom: 12px; }
.mobile-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 0.92rem; }
.mobile-search button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--brand); color: #ffffff; font-weight: 600; cursor: pointer; }
.mobile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-links a {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.mobile-links a.is-active { background: var(--brand); border-color: var(--brand); color: #ffffff; }

/* Official Top Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #0d3b66 0%, #135d96 65%, #1374b8 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 214, 153, 0.2);
  border: 1px solid rgba(255, 214, 153, 0.45);
  color: #fde68a;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.announce-text { margin: 0; font-size: 0.92rem; color: #f8fafc; font-weight: 600; flex: 1; min-width: 180px; }
.announce-link { color: #bae6fd; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.announce-link:hover { color: #ffffff; text-decoration: underline; }

/* Hero Band */
.hero-band {
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 34px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #c5dff5;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-title { margin: 0 0 12px; font-size: clamp(1.48rem, 2.5vw, 2.1rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.hero-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 0.96rem; }

.rule-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.rule-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  box-shadow: var(--shadow-sm);
}
.rule-pill strong { display: block; font-size: 0.98rem; color: var(--brand); line-height: 1.3; }
.rule-pill span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

.lead-story {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.lead-story-media { border-radius: 8px; overflow: hidden; background: #eaf2fa; }
.lead-story-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-story-body h2 { margin: 8px 0; font-size: 1.12rem; line-height: 1.4; }
.lead-story-body h2 a { color: var(--ink); }
.lead-story-body h2 a:hover { color: var(--brand-mid); }
.lead-story-body p { margin: 0 0 10px; font-size: 0.89rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hero-toolbox {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.toolbox-head h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); }
.toolbox-head p { margin: 0 0 14px; font-size: 0.84rem; color: var(--muted); }
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
}
.tool-card:hover { border-color: var(--brand-mid); background: #ffffff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tool-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-ico-blue { background: var(--brand-soft); color: var(--brand-mid); }
.tool-ico-red { background: var(--bull-soft); color: var(--bull); }
.tool-ico-green { background: var(--bear-soft); color: var(--bear); }
.tool-ico-navy { background: #e8eef6; color: var(--brand); }
.tool-info { flex: 1; min-width: 0; }
.tool-info strong { display: block; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.tool-info span { display: block; font-size: 0.77rem; color: var(--muted); margin-top: 2px; }
.tool-go { color: var(--brand-mid); font-weight: 700; flex-shrink: 0; }

.featured-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.mini-feature { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.mini-feature h3 { margin: 8px 0 6px; font-size: 0.96rem; line-height: 1.4; }
.mini-feature h3 a { color: var(--ink); }
.mini-feature h3 a:hover { color: var(--brand-mid); }
.mini-feature p { margin: 0 0 8px; font-size: 0.83rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-meta { font-size: 0.76rem; color: var(--muted); }

/* Badges & Buttons */
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.cat-pill { display: inline-block; background: var(--brand); color: #ffffff; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.cat-pill-soft { display: inline-block; background: var(--brand-soft); color: var(--brand); padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.88rem; font-weight: 700; color: var(--brand-mid); }
.text-link:hover { color: var(--brand); }

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.89rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #ffffff; border: 1px solid var(--brand); }
.btn-primary:hover { background: var(--brand-mid); border-color: var(--brand-mid); color: #ffffff; }
.btn-outline { background: #ffffff; color: var(--brand); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--brand-mid); background: var(--brand-soft); color: var(--brand); }

/* Sections */
.section-block { padding: 40px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 4px; font-size: 1.38rem; line-height: 1.3; color: var(--ink); }
.section-head p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* K-Line Visual Cards */
.kline-preview-grid, .kline-lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.kline-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.kline-svg-wrap { position: relative; padding: 14px 14px 8px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.kline-svg { width: 100%; height: auto; display: block; }
.signal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.signal-bull { background: var(--bull-soft); color: var(--bull); border: 1px solid #f4c2c7; }
.signal-bear { background: var(--bear-soft); color: var(--bear); border: 1px solid #b8e6d5; }
.signal-neutral { background: var(--amber-soft); color: var(--amber); border: 1px solid #f6d79b; }
.kline-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.k-meta-line { font-size: 0.76rem; color: var(--muted); margin-bottom: 4px; }
.kline-card-body h2, .kline-card-body h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--ink); }
.kline-card-body p { margin: 0 0 8px; font-size: 0.85rem; color: var(--ink-2); }
.k-struct { font-size: 0.82rem !important; color: var(--muted) !important; }
.kline-warn {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--amber-soft);
  font-size: 0.8rem;
  color: #7c3a04;
  line-height: 1.5;
}

/* Vertical Panels */
.vertical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vertical-panel { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand-mid); }
.vertical-panel.accent-red { border-top-color: var(--bull); }
.vertical-panel.accent-green { border-top-color: var(--bear); }
.vertical-panel.accent-navy { border-top-color: var(--brand); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.panel-title { display: flex; gap: 11px; align-items: flex-start; }
.panel-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-mid); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.accent-red .panel-ico { background: var(--bull-soft); color: var(--bull); }
.accent-green .panel-ico { background: var(--bear-soft); color: var(--bear); }
.accent-navy .panel-ico { background: #e8eef6; color: var(--brand); }
.panel-title h3 { margin: 0 0 2px; font-size: 1.06rem; }
.panel-title h3 a { color: var(--ink); }
.panel-title h3 a:hover { color: var(--brand-mid); }
.panel-title p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.more-link { font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.panel-top-item { display: grid; grid-template-columns: 162px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px dashed var(--border); }
.panel-thumb { border-radius: 8px; overflow: hidden; background: #eaf2fa; }
.panel-thumb img { width: 100%; height: 102px; object-fit: cover; }
.panel-top-text h4 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.4; }
.panel-top-text h4 a { color: var(--ink); }
.panel-top-text h4 a:hover { color: var(--brand-mid); }
.panel-top-text p { margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.date-label { font-size: 0.76rem; color: var(--muted); }
.panel-row-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.panel-row-item:last-child { border-bottom: 0; }
.row-title { color: var(--ink-2); font-size: 0.89rem; font-weight: 500; position: relative; padding-left: 12px; }
.row-title::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-mid); }
.row-title:hover { color: var(--brand); }
.row-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* Glossary Grids */
.glossary-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.glossary-mini-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-top strong, .g-top h2 { margin: 0; font-size: 0.98rem; color: var(--brand); }
.g-cat { font-size: 0.72rem; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-mid); font-weight: 700; white-space: nowrap; }
.glossary-mini-card p { margin: 0; font-size: 0.82rem; color: var(--ink-2); line-height: 1.55; }

.glossary-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.glossary-quick-search input { padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 0.88rem; width: 260px; max-width: 100%; }
.glossary-full-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.glossary-card { padding: 18px; display: flex; flex-direction: column; }
.g-def { margin: 0 0 10px; font-size: 0.87rem; color: var(--ink-2); flex: 1; }
.g-tip { padding: 8px 10px; border-radius: 6px; background: var(--brand-soft); font-size: 0.8rem; color: var(--brand); }

/* Cards, Articles, Sidebar, Tables */
.card-surface { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-cover { position: relative; display: block; background: #eaf2fa; aspect-ratio: 16 / 9; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cat { position: absolute; top: 10px; left: 10px; background: rgba(13, 59, 102, 0.92); color: #ffffff; padding: 2px 9px; border-radius: 6px; font-size: 0.74rem; font-weight: 600; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; font-size: 0.99rem; line-height: 1.42; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand-mid); }
.card-body p { margin: 0 0 12px; font-size: 0.84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-foot { display: flex; justify-content: space-between; font-size: 0.77rem; color: var(--muted); padding-top: 10px; border-top: 1px solid #f1f5f9; }

.page-banner, .article-hero { background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%); border-bottom: 1px solid var(--border); padding: 26px 0 28px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.83rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.42rem, 2.5vw, 1.92rem); color: var(--ink); }
.page-banner p { margin: 0; color: var(--ink-2); max-width: 820px; font-size: 0.94rem; }

.cat-layout, .article-layout, .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 24px; align-items: start; }
.article-list-stack { display: flex; flex-direction: column; gap: 16px; }
.list-article-card { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 18px; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.list-thumb { border-radius: 8px; overflow: hidden; background: #eaf2fa; }
.list-thumb img { width: 100%; height: 146px; object-fit: cover; }
.list-body h2 { margin: 8px 0; font-size: 1.12rem; line-height: 1.4; }
.list-body h2 a { color: var(--ink); }
.list-body h2 a:hover { color: var(--brand-mid); }
.list-body p { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-mini { font-size: 0.76rem; padding: 2px 9px; border-radius: 6px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); }
.tag-mini:hover { background: var(--brand); color: #ffffff; border-color: var(--brand); }

.side-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 0.98rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.side-tool-links, .side-cat-links, .related-list { list-style: none; margin: 0; padding: 0; }
.side-tool-links li { margin-bottom: 8px; }
.side-tool-links li:last-child { margin-bottom: 0; }
.side-tool-links a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--ink-2); font-size: 0.87rem; font-weight: 600; }
.side-tool-links a:hover { background: var(--brand-soft); border-color: var(--brand-mid); color: var(--brand); }
.side-cat-links li a { display: flex; justify-content: space-between; padding: 9px 8px; border-bottom: 1px solid #f1f5f9; color: var(--ink-2); font-size: 0.89rem; }
.side-cat-links li a.is-active { color: var(--brand); font-weight: 700; }

/* Article Detail */
.article-head-box h1 { margin: 10px 0 10px; font-size: clamp(1.42rem, 2.7vw, 2.02rem); line-height: 1.32; }
.article-subtitle { margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.83rem; color: var(--muted); }
.article-content-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.article-cover-banner { border-radius: 10px; overflow: hidden; margin-bottom: 20px; background: #eaf2fa; }
.article-tldr { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 13px 16px; border-radius: 0 8px 8px 0; margin-bottom: 22px; font-size: 0.93rem; color: var(--ink-2); }
.prose h2 { margin: 26px 0 12px; font-size: 1.24rem; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--border); scroll-margin-top: 86px; }
.prose h3 { margin: 18px 0 8px; font-size: 1.04rem; color: var(--brand); }
.prose p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.97rem; line-height: 1.82; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 7px; line-height: 1.75; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.88rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: #f8fafc; font-weight: 700; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 0.86rem; line-height: 1.65; white-space: pre-wrap; }
.prose blockquote { margin: 18px 0; padding: 12px 16px; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.risk-inline-box { margin-top: 22px; padding: 12px 15px; border-radius: 8px; background: var(--bull-soft); border: 1px solid #f4c2c7; font-size: 0.85rem; color: #7f1d1d; }
.article-tags-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.tags-label { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.article-cta-box { margin-top: 22px; padding: 18px 20px; border-radius: 10px; background: linear-gradient(135deg, #eef5fc 0%, #f8fafc 100%); border: 1px solid #cfe1f3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta-box h3 { margin: 0 0 4px; font-size: 1.02rem; }
.article-cta-box p { margin: 0; font-size: 0.87rem; color: var(--ink-2); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-toc { position: sticky; top: 84px; }
.toc-list { margin: 0; padding-left: 18px; font-size: 0.85rem; }
.toc-list li { margin-bottom: 6px; }
.toc-list a { color: var(--ink-2); }
.toc-list a:hover { color: var(--brand); }
.related-list li { padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: block; font-size: 0.89rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.related-list a:hover { color: var(--brand-mid); }
.related-list span { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 3px; }

/* Tools & Calculators */
.tools-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hub-tool-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.hub-ico { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hub-tool-card h2 { margin: 0 0 10px; font-size: 1.14rem; }
.hub-tool-card p { margin: 0 0 14px; font-size: 0.89rem; color: var(--ink-2); }
.hub-bullets { margin: 0 0 18px; padding-left: 18px; font-size: 0.85rem; color: var(--muted); flex: 1; }
.hub-bullets li { margin-bottom: 6px; }

.tool-workspace { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-controls, .tool-output { padding: 22px; }
.tool-controls h2, .tool-output h2 { margin: 0 0 16px; font-size: 1.14rem; }
.field-group { margin-bottom: 15px; }
.field-group label { display: block; font-size: 0.87rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field-group input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 0.94rem; color: var(--ink); }
.check-pill { display: flex !important; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-alt); font-weight: 500 !important; font-size: 0.86rem !important; cursor: pointer; }
.check-pill input { margin-top: 3px; flex-shrink: 0; }

.calc-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.calc-kpi { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.calc-kpi.kpi-primary { background: linear-gradient(135deg, #0d3b66 0%, #1374b8 100%); color: #ffffff; border-color: #0d3b66; }
.calc-kpi span { display: block; font-size: 0.8rem; opacity: 0.85; }
.calc-kpi strong { display: block; font-size: 1.38rem; margin-top: 4px; }
.calc-kpi.kpi-primary strong { color: #fde68a; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #f8fafc; color: var(--ink-2); font-weight: 700; }

.advice-box { margin-top: 20px; padding: 15px 18px; background: var(--amber-soft); border: 1px solid #f6d79b; border-radius: 10px; }
.advice-box h3 { margin: 0 0 8px; font-size: 0.96rem; color: var(--amber); }
.advice-box ul { margin: 0; padding-left: 18px; font-size: 0.87rem; color: var(--ink-2); }
.advice-box li { margin-bottom: 5px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #ffffff; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #ffffff; }

/* Search, About, 404, Pagination */
.big-search-form { display: flex; gap: 10px; max-width: 660px; margin: 14px 0 12px; }
.big-search-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 0.94rem; }
.search-hot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.83rem; color: var(--muted); }
.search-hot a { padding: 2px 10px; border-radius: 999px; background: #ffffff; border: 1px solid var(--border); color: var(--ink-2); }
.search-hot a:hover { background: var(--brand); color: #ffffff; border-color: var(--brand); }
.search-count { margin: 0 0 18px; color: var(--ink-2); }
.empty-box { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 22px; text-align: center; color: var(--muted); }
.about-main { padding: 24px; }
.info-dl { margin: 0; }
.info-dl dt { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.info-dl dd { margin: 2px 0 0; font-size: 0.89rem; font-weight: 600; color: var(--ink); }
.notfound-box { padding: 44px 22px; text-align: center; }
.nf-code { font-size: 3.2rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.notfound-box h1 { margin: 0 0 8px; font-size: 1.38rem; }
.notfound-box p { margin: 0 auto 20px; max-width: 520px; color: var(--muted); }
.notfound-box .cta-actions { justify-content: center; }
.pagination { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pagination a { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: #ffffff; color: var(--ink-2); font-weight: 600; }
.pagination a.is-current { background: var(--brand); border-color: var(--brand); color: #ffffff; }

/* Footer */
.site-footer { background: #0d1b2a; color: #cbd5e1; padding: 44px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1fr; gap: 26px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo-wrap { display: inline-block; background: #ffffff; padding: 7px 13px; border-radius: 10px; margin-bottom: 12px; }
.footer-logo-wrap img { height: 38px; width: auto; }
.footer-desc { margin: 0 0 10px; font-size: 0.84rem; color: #94a3b8; line-height: 1.68; }
.footer-risk { margin: 0; font-size: 0.78rem; color: #fcd34d; line-height: 1.55; }
.footer-col h3 { margin: 0 0 12px; font-size: 0.95rem; color: #ffffff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 0.85rem; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 18px; font-size: 0.81rem; color: #94a3b8; }
.footer-bottom p { margin: 0; }
.beian-wrap a { color: #cbd5e1; }
.beian-wrap a:hover { color: #ffffff; text-decoration: underline; }

/* Responsive (Zero horizontal overflow at 375px) */
@media (max-width: 1120px) {
  .header-search { display: none; }
  .hero-grid, .tool-workspace { grid-template-columns: 1fr; }
  .glossary-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .primary-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .vertical-grid, .cat-layout, .article-layout, .about-grid { grid-template-columns: 1fr; }
  .featured-strip, .kline-preview-grid, .kline-lab-grid, .article-cards-grid, .tools-hub-grid, .glossary-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-toc { position: static; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .brand-logo img { height: 38px; }
  .rule-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story, .list-article-card, .panel-top-item { grid-template-columns: 1fr; }
  .panel-thumb img, .list-thumb img { height: 168px; }
  .featured-strip, .kline-preview-grid, .kline-lab-grid, .article-cards-grid, .tools-hub-grid, .glossary-mini-grid, .glossary-full-grid, .footer-grid, .calc-highlight-grid { grid-template-columns: 1fr; }
  .article-content-card { padding: 18px 16px; }
  .big-search-form { flex-direction: column; }
  .announce-link { display: none; }
  .section-block { padding: 28px 0; }
}
