/* 搜索优化师 (www.cnseoer.net) - Local Editorial Tech Stylesheet */
:root {
  --brand-primary: #0f5ca8;
  --brand-dark: #0a3f75;
  --brand-sky: #0ea5e9;
  --brand-soft: #e8f3fc;
  --bg-page: #f6f8fc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --indigo: #4338ca;
  --indigo-bg: #eef2ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: clip;
}

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

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

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

h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 0;
  font-weight: 700;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  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: 70px;
}

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

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

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

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

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

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

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

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

.header-search:focus-within {
  border-color: var(--brand-sky);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: 0;
  background: var(--brand-primary);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

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

.mobile-menu-btn {
  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: #ffffff;
  cursor: pointer;
}

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

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 14px 0 18px;
  box-shadow: var(--shadow-md);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.mobile-search button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

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

.mobile-nav-grid a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.mobile-nav-grid a.is-active {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

/* Announcement Bar - directly beneath nav */
.announcement-bar {
  background: linear-gradient(90deg, #0b4a88 0%, #0f5ca8 55%, #0e7490 100%);
  color: #ffffff;
  font-size: 13px;
}

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

.announcement-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.announcement-text {
  font-weight: 500;
  color: #f8fafc;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.announcement-links a {
  color: #dbeafe;
  font-size: 12px;
  white-space: nowrap;
}

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

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--text-main);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.pill-blue {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.pill-emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.pill-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.cat-blue { background: #e0f2fe; color: #0369a1; }
.cat-indigo { background: var(--indigo-bg); color: var(--indigo); }
.cat-emerald { background: var(--emerald-bg); color: var(--emerald); }
.cat-amber { background: var(--amber-bg); color: var(--amber); }

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--brand-primary);
}

.hero-lead {
  font-size: 15.5px;
  color: var(--text-body);
  margin: 0 0 22px;
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #dbe6f3;
}

.metric-item strong {
  display: block;
  font-size: 20px;
  color: var(--text-main);
  line-height: 1.25;
}

.metric-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card {
  background: #ffffff;
  border: 1px solid #d7e5f5;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card-title {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-card-title a {
  color: var(--text-main);
}

.hero-card-title a:hover {
  color: var(--brand-primary);
}

.hero-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.hero-quick-tools {
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}

.hero-quick-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

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

.quick-tool-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

.quick-tool-chip:hover {
  border-color: var(--brand-sky);
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.quick-tool-icon {
  color: var(--brand-primary);
  display: inline-flex;
}

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

.section-tools {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

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

.section-header-sub {
  margin-top: 38px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-sky);
  margin-bottom: 4px;
}

.section-title {
  font-size: 24px;
  margin: 0;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

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

.tool-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tool-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-lg {
  width: 48px;
  height: 48px;
}

.tool-card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.tool-card-title a {
  color: var(--text-main);
}

.tool-card-title a:hover {
  color: var(--brand-primary);
}

.tool-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
}

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

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.pillar-card.pillar-indigo { border-top-color: var(--indigo); }
.pillar-card.pillar-emerald { border-top-color: var(--emerald); }
.pillar-card.pillar-amber { border-top-color: #d97706; }

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.pillar-tag {
  font-weight: 700;
  color: var(--brand-primary);
}

.pillar-count {
  color: var(--text-muted);
}

.pillar-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  flex: 1;
}

.pillar-enter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
}

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

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

.topic-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  line-height: 1.42;
  margin-bottom: 10px;
}

.article-card-title a {
  color: var(--text-main);
}

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

.article-card-excerpt {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 16px;
  flex: 1;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.tag-chip:hover {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

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

/* Compact Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-list-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

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

.article-list-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.article-list-title a {
  color: var(--text-main);
}

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

.article-list-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar Widgets */
.sidebar-column,
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.side-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.side-widget-head h3 {
  font-size: 16px;
  margin: 0;
}

.side-widget-head a {
  font-size: 13px;
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mini-table th,
.mini-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.mini-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.mini-table td strong {
  color: var(--brand-primary);
}

.redline-list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-body);
}

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

.glossary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
}

.glossary-pill:hover {
  background: var(--brand-soft);
  border-color: var(--brand-sky);
  color: var(--brand-primary);
}

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

.side-cat-list a,
.side-tool-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 13.5px;
}

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

.side-cat-num {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
}

.side-tool-list a span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.related-list li {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

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

.related-list a {
  display: block;
}

.related-list strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 3px;
}

.related-list a:hover strong {
  color: var(--brand-primary);
}

.related-list span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Inner Page Banner */
.page-banner {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 32px;
}

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

.breadcrumb a {
  color: var(--text-muted);
}

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

.page-banner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-banner h1 {
  font-size: 28px;
  margin: 10px 0 10px;
}

.page-banner-desc {
  margin: 0;
  max-width: 740px;
  color: var(--text-body);
  font-size: 15px;
}

.page-banner-stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  flex-shrink: 0;
}

.page-banner-stat strong {
  display: block;
  font-size: 28px;
  color: var(--brand-primary);
  line-height: 1.1;
}

.page-banner-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Article Detail Page */
.article-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.article-header-wrap {
  max-width: 860px;
}

.article-title {
  font-size: 30px;
  line-height: 1.32;
  margin: 10px 0 18px;
}

.tldr-box {
  background: #f0f8ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.tldr-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.tldr-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-main);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-main-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

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

.prose h2 {
  font-size: 21px;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
  scroll-margin-top: 90px;
}

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

.prose h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  scroll-margin-top: 90px;
}

.prose p {
  margin: 0 0 16px;
}

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

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

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #f8fafc;
  border-left: 4px solid var(--brand-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #334155;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0f5ca8;
}

.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  margin: 18px 0;
}

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

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

.prose table th,
.prose table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  min-width: 110px;
}

.prose table th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
}

.faq-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-block h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

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

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

.faq-item h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.faq-item p {
  margin: 0;
  font-size: 14px;
}

.article-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tags-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.editorial-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.adj-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
}

.adj-card:hover {
  border-color: var(--brand-sky);
  background: #ffffff;
}

.adj-card span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.adj-card strong {
  font-size: 14px;
  color: var(--text-main);
}

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

.adj-empty {
  opacity: 0.7;
}

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

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  font-size: 13.5px;
  color: var(--text-body);
  padding: 5px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}

.toc-link:hover,
.toc-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
}

.toc-lv-3 {
  padding-left: 18px;
  font-size: 13px;
}

/* Tools Hub & Single Tool Workspace */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-hub-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tool-hub-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.tool-hub-card h2 a {
  color: var(--text-main);
}

.tool-hub-card p {
  color: var(--text-body);
  margin: 0 0 18px;
  flex: 1;
}

.info-callout {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.info-callout h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.info-callout p {
  margin: 0;
}

.tool-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.tool-workspace {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.tool-panel,
.tool-guide {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.field-meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.serp-preview-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.serp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.serp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: #ffffff;
}

.serp-url {
  font-size: 12.5px;
  color: #166534;
  margin-bottom: 4px;
  word-break: break-all;
}

.serp-title {
  font-size: 18px;
  color: #1a0dab;
  line-height: 1.35;
  margin-bottom: 6px;
  font-weight: 600;
}

.serp-desc {
  font-size: 13.5px;
  color: #4d5156;
  line-height: 1.55;
}

.code-output-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.code-output {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 10px;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
  cursor: pointer;
}

.check-opt input {
  width: auto;
  margin-top: 4px;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.roi-stat-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.roi-stat-card span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.roi-stat-card strong {
  font-size: 21px;
  color: var(--text-main);
}

.roi-stat-highlight {
  background: #eff6ff;
  border-color: #93c5fd;
}

.roi-stat-highlight strong {
  color: var(--brand-primary);
}

.roi-insight {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--emerald-bg);
  color: #065f46;
  font-size: 14px;
  font-weight: 500;
}

/* Checklist Page */
.checklist-progress-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 240px;
}

.progress-text {
  font-size: 13.5px;
  margin-bottom: 8px;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-sky));
  transition: width 0.2s ease;
}

.btn-link-reset {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.checklist-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.checklist-group-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.checklist-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.checklist-group-head h2 {
  font-size: 19px;
  margin: 0;
}

.checklist-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
  background: var(--bg-page);
  cursor: pointer;
}

.checklist-row:hover {
  border-color: #cbd5e1;
}

.checklist-box {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
}

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

.checklist-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.checklist-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.priority-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.priority-p0 { background: #fee2e2; color: #b91c1c; }
.priority-p1 { background: #fef3c7; color: #b45309; }
.priority-p2 { background: #e0f2fe; color: #0369a1; }

/* Glossary Page */
.glossary-section {
  margin-bottom: 34px;
}

.glossary-group-title {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-primary);
}

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

.glossary-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  scroll-margin-top: 90px;
}

.glossary-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.glossary-card h3 {
  font-size: 17px;
  margin: 0;
}

.glossary-en {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-primary);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.glossary-summary {
  margin: 0 0 10px;
  font-size: 14px;
}

.glossary-tip {
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: #334155;
}

/* Search & About & Empty States */
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 14px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.search-summary-line {
  margin: 0 0 18px;
  font-size: 14.5px;
}

.search-section-title {
  font-size: 20px;
  margin-bottom: 14px;
}

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

.quick-search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

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

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  margin-top: 32px;
}

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

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand-title span {
  font-size: 13px;
  font-weight: 500;
  color: #38bdf8;
  margin-left: 6px;
}

.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 16px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.footer-col h3 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
}

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

.footer-col a {
  color: #94a3b8;
  font-size: 13.5px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 13px;
  color: #94a3b8;
}

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

.footer-bottom p {
  margin: 0;
}

.footer-beian a {
  color: #e2e8f0;
  font-weight: 500;
}

.footer-beian a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Responsive Breakpoints (Tablet & 375px Mobile) */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .tools-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-with-sidebar,
  .article-layout,
  .tool-page-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .toc-widget {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .header-search {
    display: none;
  }
  .brand-logo {
    height: 38px;
  }
  .announcement-links {
    display: none;
  }
  .hero-section {
    padding: 28px 0 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-title {
    font-size: 25px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-grid,
  .pillars-grid,
  .featured-grid,
  .tools-hub-grid,
  .glossary-grid,
  .roi-inputs,
  .roi-results-grid,
  .adjacent-nav {
    grid-template-columns: 1fr;
  }
  .page-banner-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-main-card {
    padding: 20px 16px;
  }
  .article-title {
    font-size: 23px;
  }
  .section {
    padding: 30px 0;
  }
  .section-title {
    font-size: 20px;
  }
  .search-page-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 32px 15px 26px;
  }
  .adj-next {
    text-align: left;
  }
}
