/* ==========================================================================
   SEO Guard · 前台视觉层 app.css
   依据 CONTRACT.md 第 10 节：浅色主题、契约变量、8pt 间距栅格、
   圆角 12–16px、中文字体栈、行高 1.65、移动优先（断点 768 / 1024）、
   无外部字体 / CDN、无 emoji 图标（图标一律内联 SVG 或纯 CSS 形状）。
   100dvh 仅用于全屏容器；保留 :focus-visible；prefers-reduced-motion 降级。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 契约第 10 节配色，原样保留 */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --line: #e5e9f0;
  --brand: #2563eb;
  --brand-soft: #eff4ff;
  --ok: #0f9d58;
  --warn: #e8a33d;
  --danger: #dc2626;

  /* 语义派生色（不改变契约主色） */
  --brand-strong: #1d4ed8;
  --ok-soft: #e9f7ef;
  --warn-soft: #fff4e3;
  --danger-soft: #fdecec;
  --surface-2: #fbfcfe;
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, .06);
  --shadow-md: 0 8px 24px rgba(31, 42, 55, .08);

  /* 8pt 间距栅格 */
  --sp-0: 0;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 64px;

  /* 圆角 12–16px */
  --radius-sm: 12px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1120px;
  --line-h: 1.65;
  --t: 160ms ease;
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: var(--line-h);
  -webkit-font-smoothing: antialiased;
  /* 全屏容器：保证短页面也能铺满视口（100dvh 仅用于此处） */
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .01em;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--sp-2); }

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

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

img {
  height: auto;
}

ul, ol {
  margin: 0 0 var(--sp-2);
  padding-left: var(--sp-3);
}

code, pre, kbd {
  font-family: var(--mono);
  font-size: .9em;
}

pre {
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-3) 0;
}

[hidden] {
  display: none !important;
}

/* 键盘可达焦点：统一保留 :focus-visible */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 减少动效偏好：关闭过渡与动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

.section {
  padding: var(--sp-5) 0;
}

.section__head {
  margin-bottom: var(--sp-3);
  max-width: 720px;
}

.section__title {
  margin-bottom: var(--sp-1);
}

.section__lead {
  color: var(--muted);
  margin: 0;
}

.stack > * + * {
  margin-top: var(--sp-2);
}

.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 导航 / 顶栏（由 layout.php 提供） ---------- */
/* 视图只输出 <main> 内正文，故此处选择器仅命中布局中的顶栏，不会误伤文章内容。 */
body > header,
body > nav,
.nav,
.site-nav,
.topbar,
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav__inner,
.site-nav__inner,
.topbar__inner,
.navbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-1) var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
  min-height: 56px;
}

body > header a,
body > nav a,
.nav a,
.site-nav a,
.topbar a,
.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}

body > header a:hover,
body > nav a:hover,
.nav a:hover,
.site-nav a:hover,
.topbar a:hover,
.navbar a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.nav__brand,
.site-nav__brand,
.topbar__brand,
.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text) !important;
  letter-spacing: .02em;
}

/* 纯 CSS 形状作为站点标记，不使用 emoji */
.nav__brand::before,
.site-nav__brand::before,
.topbar__brand::before,
.navbar__brand::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--brand-soft);
}

.nav__links,
.nav__menu,
.site-nav__links,
.topbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__actions,
.site-nav__actions,
.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link.is-active,
.nav__link--active,
.nav__links a.is-active,
.site-nav__links a.is-active,
body > header a[aria-current="page"],
body > nav a[aria-current="page"],
.nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t),
    box-shadow var(--t), transform var(--t);
}

.btn:hover {
  text-decoration: none;
}

.btn:active:not(:disabled):not(.is-loading) {
  transform: translateY(1px);
}

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

.btn--primary:hover:not(:disabled):not(.is-loading) {
  color: #ffffff;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  box-shadow: var(--shadow-md);
}

.btn--primary:active:not(:disabled) {
  background: #1e40af;
}

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

.btn--ghost:hover:not(:disabled):not(.is-loading) {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn--ghost:active:not(:disabled) {
  background: #e2ebff;
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

.btn--danger:hover:not(:disabled):not(.is-loading) {
  color: #ffffff;
  background: var(--danger);
}

.btn--danger:active:not(:disabled) {
  background: #b91c1c;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: .88rem;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

/* 禁用态 */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 加载态：纯 CSS 旋转形状，不使用 emoji */
.btn.is-loading {
  position: relative;
  cursor: progress;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #ffffff;
  animation: sg-spin .7s linear infinite;
}

.btn--ghost.is-loading::before {
  color: var(--brand);
}

@keyframes sg-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.card--hover {
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

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

.card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  margin: 0 0 var(--sp-1);
  font-size: 1.05rem;
}

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

.card__title a:hover {
  color: var(--brand);
  text-decoration: none;
}

.card__body {
  color: var(--muted);
}

.card__desc {
  color: var(--muted);
  margin: 0;
}

.card__foot {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

/* ---------- 7. 表单 ---------- */
.field {
  margin-bottom: var(--sp-2);
}

.field__label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
}

.field__hint {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa3b2;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #cdd6e5;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.select {
  appearance: none;
  padding-right: 40px;
  /* 纯 CSS 下拉箭头，不使用 emoji */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  align-items: end;
}

.form-row > .field {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
  margin-top: var(--sp-2);
}

/* ---------- 8. 响应式栅格（移动优先） ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.grid--2,
.grid--3,
.grid--4,
.grid--6 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-3); }
  .section { padding: var(--sp-6) 0; }
  .form-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 9. 标签 / 徽章 ---------- */
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag--brand, .badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: transparent;
}

.tag--ok, .badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}

.tag--warn, .badge--warn {
  background: var(--warn-soft);
  color: #92610a;
  border-color: transparent;
}

.tag--danger, .badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.badge--solid {
  color: #ffffff;
  background: var(--muted);
  border-color: transparent;
}

/* ---------- 10. 表格 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

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

.table tbody tr:hover {
  background: var(--brand-soft);
}

/* ---------- 11. 进度条 ---------- */
.progress {
  margin-top: var(--sp-1);
}

.progress__track {
  position: relative;
  width: 100%;
  height: 14px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  min-width: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #ffffff;
  font-size: .68rem;
  line-height: 14px;
  text-align: right;
  padding-right: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  transition: width var(--t);
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}

.progress-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 12. 得分条 ---------- */
.score-bar {
  height: 10px;
  width: 100%;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand);
  transition: width var(--t);
}

.score-bar__fill--ok { background: var(--ok); }
.score-bar__fill--warn { background: var(--warn); }
.score-bar__fill--danger { background: var(--danger); }

.score-bar__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---------- 13. 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-3);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* 纯 CSS 形状作为空状态标记 */
.empty__mark {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  position: relative;
}

.empty__mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid var(--line);
  border-radius: 4px;
}

.empty__title {
  margin: var(--sp-1) 0 0;
  font-weight: 600;
  color: var(--text);
}

.empty__text {
  margin: 0;
  font-size: .9rem;
  max-width: 420px;
}

/* ---------- 14. 提示 / 错误 ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: .92rem;
}

.alert--error {
  background: var(--danger-soft);
  border-color: #f3b6b6;
  color: #991b1b;
}

.alert--ok {
  background: var(--ok-soft);
  border-color: #b7e4c9;
  color: #0b6b3d;
}

.alert--warn {
  background: var(--warn-soft);
  border-color: #f0d29a;
  color: #7c5408;
}

.alert--info {
  background: var(--brand-soft);
  border-color: #c9dbff;
  color: var(--brand-strong);
}

.alert__title {
  font-weight: 700;
  margin: 0 0 4px;
}

/* ---------- 15. 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-3);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__item a,
.pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
}

.pagination__item a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.pagination__item--active a,
.pagination__item--active span {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.pagination__item--disabled span {
  color: var(--muted);
  background: var(--bg);
  cursor: not-allowed;
}

/* ---------- 16. 首页 Hero ---------- */
.hero {
  padding: var(--sp-6) 0 var(--sp-5);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* 区块居中：平台运行概览 / 四维评分 / 六项能力 / 最近样例 标题与导语文案居中 */
.section--center .section__head {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section--center .section__head .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--surface);
  border: 1px solid #d6e2ff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-2);
}

.hero__title {
  font-size: 2rem;
  margin-bottom: var(--sp-2);
}

.hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--sp-3);
}

.hero__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: var(--sp-3) auto 0;
  text-align: left;
}

.hero__note {
  color: var(--muted);
  font-size: .85rem;
  margin: var(--sp-2) 0 0;
}

.hero__demo {
  margin-top: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  font-size: .86rem;
  color: var(--muted);
}

.scan-status {
  margin-top: var(--sp-3);
  padding: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.scan-stage {
  font-weight: 600;
  margin: 0 0 6px;
}

@media (min-width: 768px) {
  .hero { padding: var(--sp-8) 0 var(--sp-6); }
  .hero__title { font-size: 2.5rem; }
}

/* ---------- 17. 统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  text-align: center;
}

.stat__num {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  margin: 0 0 4px;
}

.stat__label {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 18. 四维评分说明卡 ---------- */
.dim-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.dim-tile {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
}

.dim-tile--ux { background: var(--ok-soft); color: #0b6b3d; }
.dim-tile--seo { background: var(--brand-soft); color: var(--brand); }
.dim-tile--geo { background: var(--warn-soft); color: #92610a; }
.dim-tile--sec { background: var(--danger-soft); color: var(--danger); }

.dim-card__title { margin: 0; font-size: 1rem; }
.dim-card__weight { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.dim-card__desc { color: var(--muted); font-size: .9rem; min-height: 3em; }
.dim-card__foot { margin: var(--sp-2) 0 0; color: var(--muted); font-size: .8rem; }

/* ---------- 19. 能力模块 ---------- */
.feature__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1rem; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- 20. 最近公开检测样例 ---------- */
.samples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.sample__head { min-width: 0; }
.sample__url {
  font-weight: 600;
  word-break: break-all;
  margin: 0;
}
.sample__meta {
  color: var(--muted);
  font-size: .82rem;
  margin: 4px 0 0;
}
.sample__side {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 21. CTA ---------- */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta__title { margin-bottom: var(--sp-1); }
.cta__text { color: var(--muted); margin-bottom: var(--sp-3); }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1);
}

/* ---------- 22. 面包屑 ---------- */
.breadcrumb { margin-bottom: var(--sp-3); }
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumb__list li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb__list li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
  opacity: .7;
}
.breadcrumb__list a { color: var(--muted); }
.breadcrumb__list a:hover { color: var(--brand); }

/* ---------- 23. 知识库 ---------- */
.article-grid { gap: var(--sp-2); }
.article-card { display: flex; flex-direction: column; }
.article-card__cat { align-self: flex-start; margin-bottom: var(--sp-1); }
.article-card__title { font-size: 1.05rem; margin-bottom: var(--sp-1); }
.article-card__summary {
  color: var(--muted);
  font-size: .9rem;
  flex: 1 1 auto;
  margin-bottom: var(--sp-2);
}
.article-card__meta {
  color: var(--muted);
  font-size: .8rem;
  margin: 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

.article-head { margin-bottom: var(--sp-3); }
.article-head__title { font-size: 1.8rem; margin-bottom: var(--sp-2); }
.article-head__lead { color: var(--muted); font-size: 1.02rem; }
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  color: var(--muted);
  font-size: .85rem;
}

/* Markdown 正文排版 */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 {
  font-size: 1.25rem;
  margin-top: var(--sp-4);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 1.08rem; margin-top: var(--sp-3); }
.prose p, .prose ul, .prose ol { color: var(--text); }
.prose li { margin-bottom: 4px; }
.prose blockquote {
  margin: var(--sp-2) 0;
  padding: var(--sp-1) var(--sp-2);
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--brand-strong);
}
.prose code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.prose pre code { border: 0; padding: 0; background: transparent; }
.prose a { text-decoration: underline; }
.prose img { border-radius: var(--radius-sm); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-2) 0;
  font-size: .92rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.prose th { background: var(--surface-2); }

.related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
}
.related__link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.related__link:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  background: var(--brand-soft);
}
/* 纯 CSS 箭头形状 */
.related__link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-head__title { font-size: 2.1rem; }
}
