/* 子矜网 (www.zijin5.com) - Local Stylesheet, Zero External CDN */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --ink: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --brand: #0F6BB8;
  --brand-hover: #0B5394;
  --brand-soft: #EFF6FF;
  --sky: #1D9BF0;
  --accent: #EA6A06;
  --accent-hover: #C85602;
  --accent-soft: #FFF7ED;
  --ok: #0F766E;
  --ok-soft: #F0FDFA;
  --warn: #B45309;
  --warn-soft: #FFFBEB;
  --code-bg: #0F172A;
  --code-ink: #E2E8F0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, Menlo, Monaco, monospace;
}

*, *::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;
}

img, svg {
  max-width: 100%;
  height: auto;
}

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);
}

.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;
}

.container {
  width: 100%;
  max-width: 1180px;
  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: 16px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-link-tools {
  color: var(--accent);
  font-weight: 600;
}

.nav-link-tools:hover,
.nav-link-tools.is-active {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

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

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 4px 2px 12px;
  width: 220px;
}

.header-search:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}

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

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

.header-search button:hover {
  color: var(--brand);
}

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

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  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: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
}

.mobile-search button {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  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: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.mobile-links a.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: #BFDBFE;
}

/* Announcement Bar (Homepage verbatim banner directly below navbar) */
.announce-bar {
  background: linear-gradient(90deg, #0B3B6E 0%, #0F6BB8 65%, #125A9C 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FDBA74;
  box-shadow: 0 0 0 3px rgba(234, 106, 6, 0.35);
}

.announce-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  flex: 1;
  min-width: 180px;
}

.announce-link {
  color: #FED7AA;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.announce-link:hover {
  color: #FFFFFF;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
}

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

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

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

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

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

.btn-block {
  width: 100%;
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FC 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid #DBEAFE;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-brand {
  color: var(--brand);
}

.text-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.2;
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.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.85rem;
  font-weight: 700;
  color: var(--ink);
}

.panel-status {
  font-size: 0.78rem;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

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

.pillar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}

.pillar-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.pillar-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.pillar-body {
  flex: 1;
  min-width: 0;
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pillar-top strong {
  font-size: 0.94rem;
  color: var(--ink);
}

.pillar-count {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.pillar-body p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.section-block {
  padding: 44px 0;
}

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

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
}

.section-sub {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

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

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #BFDBFE;
}

.feature-card-lead {
  border-top: 3px solid var(--brand);
}

.feature-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cat-pill, .cat-pill-sm {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}

.cat-pill-sm {
  padding: 2px 8px;
  font-size: 0.75rem;
}

.badge-accent {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.feature-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.feature-title a {
  color: var(--ink);
}

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

.feature-summary {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.meta-text {
  color: var(--ink-muted);
}

.read-link {
  font-weight: 600;
  white-space: nowrap;
}

/* Tools Strip on Homepage */
.section-tools-strip {
  padding-top: 10px;
  padding-bottom: 16px;
}

.tools-banner {
  background: linear-gradient(135deg, #0F172A 0%, #16325C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.tools-banner .section-kicker {
  color: #FDBA74;
}

.tools-banner h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #FFFFFF;
}

.tools-banner .section-sub {
  color: #CBD5E1;
}

.tools-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.tools-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tool-mini-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  color: #FFFFFF;
}

.tool-mini-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FDBA74;
  color: #FFFFFF;
}

.tool-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #FDBA74;
  font-weight: 700;
  margin-bottom: 6px;
}

.tool-mini-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: #FFFFFF;
}

.tool-mini-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.55;
}

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

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

.article-row {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.article-row:hover {
  border-color: #BFDBFE;
}

.article-row-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding-top: 2px;
}

.article-row-body {
  flex: 1;
  min-width: 0;
}

.article-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.meta-sep {
  color: var(--border-strong);
}

.article-row-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.article-row-title a {
  color: var(--ink);
}

.article-row-title a:hover {
  color: var(--brand);
}

.article-row-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

/* Sidebar */
.sidebar-column,
.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

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

.side-card-highlight {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
  border-color: #BFDBFE;
}

.side-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--ink);
}

.side-text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

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

.side-cat-list a,
.side-tool-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.9rem;
  background: var(--bg);
}

.side-cat-list a:hover,
.side-cat-list a.is-active,
.side-tool-list a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: #FFFFFF;
  border: 1px solid #DBEAFE;
  padding: 1px 8px;
  border-radius: 999px;
}

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

.tag-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.tag-chip:hover,
.tag-chip.is-active {
  background: var(--brand-soft);
  border-color: #93C5FD;
  color: var(--brand);
}

/* FAQ */
.section-faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 10px;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.faq-body p {
  margin: 0;
}

/* Page Hero & Breadcrumb */
.page-hero,
.guide-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 34px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
}

.page-hero-desc {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 780px;
}

.page-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-hero-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.list-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

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

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

/* Guide Article Page */
.guide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.32;
}

.guide-summary {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
  max-width: 820px;
}

.guide-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 54px;
  align-items: start;
}

.guide-main {
  min-width: 0;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
  word-break: break-word;
}

.prose h2 {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: 86px;
}

.prose h2:first-child {
  margin-top: 0;
}

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

.prose p {
  margin: 0 0 14px;
  color: #1E293B;
}

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

.prose li {
  margin-bottom: 6px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-alt);
  color: #0B5394;
  padding: 2px 6px;
  border-radius: 5px;
}

.prose pre {
  position: relative;
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.6;
  font-size: 0.86rem;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.8);
  color: #E2E8F0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.code-copy-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.prose blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #1E3A5F;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 700;
}

.guide-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tags-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.guide-cta-box {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #EFF6FF 0%, #FFF7ED 100%);
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-cta-box h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.guide-cta-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.related-section {
  margin-top: 32px;
}

.related-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-card:hover {
  border-color: var(--brand);
}

.related-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.45;
}

.toc-card {
  position: sticky;
  top: 86px;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

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

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

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

/* Search & Empty State */
.big-search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 16px;
}

.big-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-secondary);
}

/* Interactive Tools Page */
.tool-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #DBEAFE;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 600;
}

.tool-pill:hover {
  background: var(--brand);
  color: #FFFFFF;
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
}

.tool-card-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tool-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tool-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.32rem;
}

.tool-card-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

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

.field {
  margin-bottom: 14px;
}

.field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.hint-count {
  font-weight: 500;
  color: var(--ink-muted);
}

.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 184, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  background: var(--bg);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}

.tool-output-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.score-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.score-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-panel p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

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

.audit-list li {
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.audit-list li.is-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.audit-list li.is-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.code-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.copy-mini-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.code-out {
  margin: 0;
  padding: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.serp-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.serp-site-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 6px;
  word-break: break-all;
}

.serp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.serp-preview-title {
  font-size: 1.15rem;
  color: #1A0DAB;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
}

.serp-preview-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  word-break: break-word;
}

.serp-status {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ok);
  font-weight: 600;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

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

.service-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.service-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--brand);
}

.service-box p {
  margin: 0;
  font-size: 0.9rem;
}

.meta-dl {
  margin: 0;
}

.meta-dl dt {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

.meta-dl dt:first-child {
  margin-top: 0;
}

.meta-dl dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* 404 */
.error-page {
  padding: 72px 0;
}

.error-box {
  max-width: 560px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}

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

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 0.9fr;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 36px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.footer-logo-wrap img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #FFFFFF;
}

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

.footer-col a {
  color: #94A3B8;
  font-size: 0.88rem;
}

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

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

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

.footer-bottom p {
  margin: 0;
}

.beian-wrap a {
  color: #E2E8F0;
}

.beian-wrap a:hover {
  color: #FDBA74;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .main-with-sidebar,
  .guide-layout,
  .about-grid,
  .tool-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toc-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 36px;
  }
  .hero-section {
    padding: 28px 0 34px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .metric-item strong {
    font-size: 1.1rem;
  }
  .featured-grid,
  .tools-quick-grid,
  .related-grid,
  .service-cards,
  .check-grid,
  .field-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-row {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .article-row-icon {
    width: 38px;
    height: 38px;
  }
  .prose {
    padding: 20px 16px;
  }
  .tool-card {
    padding: 18px 14px;
  }
  .tools-banner {
    padding: 20px 16px;
  }
  .big-search-form {
    flex-direction: column;
  }
  .page-hero-row {
    align-items: flex-start;
  }
  .announce-inner {
    gap: 6px;
  }
  .announce-link {
    width: 100%;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
