/* 榆林招标采购网 (www.ylbid.cn) — Institutional Editorial Design System */
:root {
  --navy: #0d3b66;
  --navy-deep: #092642;
  --brand: #1565b4;
  --brand-hover: #0e4f91;
  --cyan: #0284c7;
  --cyan-soft: #e0f2fe;
  --blue-tint: #eef6ff;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --green: #047857;
  --green-bg: #ecfdf5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.narrow-container {
  max-width: 880px;
}

/* Top Utility Bar */
.topbar {
  background: var(--navy-deep);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-right a {
  color: #e2e8f0;
}

.topbar-right a:hover {
  color: #7dd3fc;
}

.topbar-sep {
  color: #475569;
}

/* Main Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand);
  background: var(--blue-tint);
}

.nav-link.is-active {
  color: var(--brand);
  background: var(--blue-tint);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
  width: 220px;
  flex-shrink: 0;
}

.header-search input {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--ink);
  width: 100%;
  outline: none;
  font-family: inherit;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-only-search {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Announcement Banner (Homepage below nav) */
.announce-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid #bae6fd;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.announce-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0b2d52 0%, #124880 55%, #1565b4 100%);
  color: #ffffff;
  padding: 44px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(186, 230, 253, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 0.98rem;
  color: #dbeafe;
  line-height: 1.75;
}

.hero-search {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: 0 8px 24px rgba(9, 38, 66, 0.25);
  max-width: 600px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.hero-search button {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.hero-search button:hover {
  background: var(--brand-hover);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags-label {
  font-size: 0.82rem;
  color: #bae6fd;
}

.tag-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(9, 38, 66, 0.28);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.panel-kicker {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.panel-more {
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
}

.hero-tool-item:hover {
  border-color: var(--brand);
  background: var(--blue-tint);
  color: var(--ink);
}

.tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.tool-icon-blue { background: #dbeafe; color: #1d4ed8; }
.tool-icon-cyan { background: #e0f2fe; color: #0369a1; }
.tool-icon-amber { background: #fef3c7; color: #b45309; }

.tool-item-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.tool-item-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hero-stat-strip strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand);
  line-height: 1.2;
}

.hero-stat-strip span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-tinted {
  background: #edf3f9;
  border-top: 1px solid #dce6f2;
  border-bottom: 1px solid #dce6f2;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-more {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Badges & Meta */
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.badge-primary {
  background: var(--brand);
  color: #ffffff;
}

.badge-soft {
  background: var(--blue-tint);
  color: var(--brand);
}

.badge-outline {
  background: #f8fafc;
  color: var(--ink-2);
  border: 1px solid var(--border);
}

/* Spotlight Grid */
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
}

.spotlight-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.spotlight-lead h3 {
  margin: 4px 0 12px;
  font-size: 1.32rem;
  line-height: 1.45;
}

.spotlight-lead h3 a {
  color: var(--navy);
}

.spotlight-lead h3 a:hover {
  color: var(--brand);
}

.spotlight-lead p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
  flex: 1;
}

.lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.text-link {
  font-weight: 700;
  color: var(--brand);
}

.spotlight-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.spotlight-item:hover {
  border-color: #93c5fd;
}

.spotlight-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.spotlight-item h3 a {
  color: var(--navy);
}

.spotlight-item h3 a:hover {
  color: var(--brand);
}

.spotlight-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sector Cards */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sector-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sector-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.sector-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.sector-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sector-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.35;
}

.sector-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--ink-2);
  flex: 1;
}

.sector-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
}

/* Main + Sidebar Layout */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.content-block {
  margin-bottom: 32px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

.block-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: #93c5fd;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.article-card h3 a {
  color: var(--navy);
}

.article-card h3 a:hover {
  color: var(--brand);
}

.article-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dual-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compact-list li {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 4px;
}

.compact-title:hover {
  color: var(--brand);
}

.compact-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Q&A Cards */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.qa-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.qa-q h2,
.qa-q h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--navy);
  flex: 1;
}

.qa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.qa-badge-ans {
  background: var(--green);
}

.qa-topic {
  font-size: 0.75rem;
  color: var(--brand);
  background: var(--blue-tint);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.qa-a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qa-answer-body {
  flex: 1;
}

.qa-answer-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.qa-ref {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f8fafc;
  padding: 6px 10px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 4px 4px 0;
}

/* Sidebar */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-card-alert {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.side-card-alert h3 {
  color: var(--amber);
  border-bottom-color: var(--amber-border);
}

.redline-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.87rem;
  color: #78350f;
}

.redline-list li {
  margin-bottom: 7px;
}

.side-card-cta {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.side-card-cta p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.side-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-link-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.side-link-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-link-list a {
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.side-link-list a:hover {
  color: var(--brand);
}

.side-link-list time {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
}

.side-nav-list a:hover,
.side-nav-list a.is-active {
  background: var(--blue-tint);
  color: var(--brand);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-2);
  font-size: 0.8rem;
}

.tag-pill:hover {
  background: var(--brand);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

.btn-outline {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--blue-tint);
  color: var(--brand-hover);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Inner Page Banner & Breadcrumb */
.page-banner {
  background: linear-gradient(135deg, #0d3b66 0%, #1565b4 100%);
  color: #ffffff;
  padding: 28px 0 30px;
}

.page-banner-compact {
  padding: 14px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #bae6fd;
  margin-bottom: 10px;
}

.page-banner-compact .breadcrumb {
  margin-bottom: 0;
}

.breadcrumb a {
  color: #e0f2fe;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #dbeafe;
  max-width: 780px;
}

/* Archive List */
.archive-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.archive-card h2,
.archive-card h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.archive-card h2 a,
.archive-card h3 a {
  color: var(--navy);
}

.archive-card h2 a:hover,
.archive-card h3 a:hover {
  color: var(--brand);
}

.archive-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.archive-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.kw-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-tag:hover {
  color: var(--brand);
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
}

.page-num.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Article Detail */
.article-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.article-header h1 {
  margin: 8px 0 12px;
  font-size: 1.65rem;
  line-height: 1.38;
  color: var(--navy);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-summary-box {
  background: var(--blue-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0 24px;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}

.article-summary-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--navy);
}

.article-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-prose h2 {
  margin: 28px 0 12px;
  font-size: 1.24rem;
  color: var(--navy);
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}

.article-prose h3 {
  margin: 20px 0 8px;
  font-size: 1.06rem;
  color: var(--navy);
}

.article-prose p {
  margin: 0 0 14px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose .callout {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.94rem;
  color: #78350f;
}

.article-prose .table-wrap {
  margin: 18px 0;
}

.article-disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.neighbor-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.neighbor-next {
  text-align: right;
}

.neighbor-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.neighbor-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.neighbor-empty {
  font-size: 0.86rem;
  color: var(--muted);
}

.side-toc {
  position: sticky;
  top: 88px;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
}

.toc-list li {
  margin-bottom: 7px;
}

.toc-list a {
  color: var(--ink-2);
}

.toc-list a:hover {
  color: var(--brand);
}

/* Topic Filter */
.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Tools Page */
.tool-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jump-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.jump-pill:hover {
  background: #ffffff;
  color: var(--navy);
}

.tool-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.tool-box-head {
  margin-bottom: 20px;
}

.tool-box-head-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-box-head h2 {
  margin: 8px 0 6px;
  font-size: 1.32rem;
  color: var(--navy);
}

.tool-box-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tool-form-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 101, 180, 0.14);
}

.form-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.tool-result-card {
  min-width: 0;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.result-metric {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.result-metric-highlight {
  background: var(--blue-tint);
  border-color: #93c5fd;
}

.result-metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.result-metric strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 4px 0 2px;
}

.result-metric-highlight strong {
  color: var(--brand);
}

.result-metric small {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.ref-collapse {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.ref-collapse summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.timeline-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row strong {
  color: var(--brand);
  white-space: nowrap;
}

/* Checklist */
.checklist-score-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 170px;
}

.score-ring strong {
  font-size: 1.65rem;
  color: var(--brand);
}

.score-ring span {
  font-size: 0.9rem;
  color: var(--muted);
}

.score-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  margin: 4px 0 8px;
}

.score-status.is-pass {
  color: var(--green);
}

.score-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.checklist-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #10b981);
  transition: width 0.2s ease;
}

.checklist-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.check-group {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.check-group h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: var(--navy);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.5;
}

.check-item:hover {
  border-color: #93c5fd;
}

.check-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.check-num {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.check-item.is-checked {
  background: var(--green-bg);
  border-color: #a7f3d0;
  color: #065f46;
}

/* Guide Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-no {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-2);
}

/* Search & Empty States */
.search-page-form {
  margin-top: 16px;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}

.error-code {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 10px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 520px;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 40px 20px 32px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.footer-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.footer-col a {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-beian a {
  color: #e2e8f0;
  text-decoration: underline;
}

.footer-beian a:hover {
  color: #7dd3fc;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .desktop-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-layout { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-toc { position: static; }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .header-inner { min-height: 64px; }
  .brand-logo { height: 42px; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 10px 12px;
  }

  .mobile-only-search {
    display: flex;
    width: 100%;
    margin-top: 12px;
  }

  .mobile-only-search button {
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .announce-link {
    display: none;
  }

  .hero-section {
    padding: 28px 0 32px;
  }

  .hero-title {
    font-size: 1.48rem;
  }

  .hero-search {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .hero-search button {
    width: 100%;
  }

  .section {
    padding: 26px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sector-grid,
  .sector-grid-2,
  .article-cards,
  .dual-columns,
  .checklist-groups,
  .step-grid,
  .article-neighbors,
  .result-summary,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-detail {
    padding: 20px 16px;
  }

  .article-header h1 {
    font-size: 1.35rem;
  }

  .tool-box {
    padding: 18px 14px;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .neighbor-next {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 36px;
  }
  .topbar-left span:last-child {
    font-size: 0.74rem;
  }
  .qa-q {
    flex-wrap: wrap;
  }
}

@media print {
  .topbar, .site-header, .announce-bar, .site-footer, .tool-jump-links, #fee-calc, #bond-calc, .score-actions {
    display: none !important;
  }
  body { background: #ffffff; }
  .tool-box { border: 0; box-shadow: none; padding: 0; }
}
