/* 星网数科 · 选址 SEO/GEO 专页样式
 * 与本站浅色青绿体系统一：#0F766E 主 / #D97706 琥珀 / #0F172A 深墨 / #F8FAFC 浅底
 * 仅作用于 .xseo-* 作用域，避免污染既有页面。
 */
:root {
  --xseo-teal: #0f766e;
  --xseo-teal-deep: #0b4f4b;
  --xseo-soft: #e6f5f2;
  --xseo-amber: #d97706;
  --xseo-ink: #0f172a;
  --xseo-muted: #64748b;
  --xseo-line: #e2e8f0;
  --xseo-bg: #f8fafc;
  --xseo-ok: #047857;
  --xseo-warn: #b45309;
  --xseo-risk: #b91c1c;
  --xseo-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  --xseo-shadow-lg: 0 18px 44px rgba(15, 118, 110, 0.14);
  --xseo-r: 14px;
  --xseo-r-lg: 18px;
}

.xseo-page { color: var(--xseo-ink); background: var(--xseo-bg); padding-bottom: 56px; }
.xseo-page .container, .xseo-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.xseo-page > .breadcrumb { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.xseo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(217, 119, 6, 0.22), transparent 62%),
    radial-gradient(720px 380px at 8% 10%, rgba(45, 212, 191, 0.18), transparent 65%),
    linear-gradient(135deg, #0b3b39 0%, #0f766e 52%, #0b4f4b 100%);
}
.xseo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(600px) rotateX(52deg) scale(1.8) translateY(28%);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
}
.xseo-hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -220px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 68%);
  filter: blur(6px);
}
.xseo-hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 20px 52px; }
.xseo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.xseo-hero h1 {
  max-width: 900px;
  margin: 20px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}
.xseo-hl { color: #fbbf24; }
.xseo-lead { max-width: 860px; margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.86); }
.xseo-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xseo-hero-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #e2f5f1;
}

/* KPI 指标卡 */
.xseo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.xseo-kpi {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--xseo-r);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.xseo-kpi-label { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.xseo-kpi-value { display: block; margin-top: 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.1; }
.xseo-kpi-value.is-amber { color: #fbbf24; }
.xseo-kpi-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.68); }
.xseo-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 按钮 ---------- */
.xseo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.xseo-btn:hover { transform: translateY(-1px); }
.xseo-btn-primary { background: var(--xseo-amber); color: #fff; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32); }
.xseo-btn-primary:hover { background: #b86505; box-shadow: 0 10px 26px rgba(217, 119, 6, 0.42); }
.xseo-btn-outline { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.xseo-btn-outline:hover { background: rgba(255, 255, 255, 0.2); }
.xseo-btn-ghost { background: #fff; border-color: var(--xseo-line); color: var(--xseo-teal); }
.xseo-btn-ghost:hover { border-color: var(--xseo-teal); background: #f0fdfa; }
.xseo-btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.xseo-btn-block { width: 100%; }

/* ---------- 通用区块 ---------- */
.xseo-section { max-width: 1200px; margin: 36px auto 0; padding: 0 20px; }
.xseo-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.xseo-section-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; color: var(--xseo-ink); }
.xseo-section-head p { margin: 0; font-size: 13px; color: var(--xseo-muted); }
.xseo-card { background: #fff; border: 1px solid var(--xseo-line); border-radius: var(--xseo-r-lg); box-shadow: var(--xseo-shadow); }
.xseo-panel { padding: 22px 24px; background: #fff; border: 1px solid var(--xseo-line); border-radius: var(--xseo-r); box-shadow: var(--xseo-shadow); }
.xseo-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--xseo-muted); }
.xseo-empty { padding: 36px 20px; text-align: center; background: #fff; border: 1px dashed var(--xseo-line); border-radius: var(--xseo-r); color: var(--xseo-muted); }
.xseo-ordered { margin: 0; padding-left: 22px; }
.xseo-ordered li { margin: 10px 0; line-height: 1.7; font-size: 14px; }
.xseo-ordered li strong { display: block; color: var(--xseo-ink); }
.xseo-ordered li p { margin: 4px 0 0; color: var(--xseo-muted); font-size: 13px; }

/* ---------- 筛选条 ---------- */
.xseo-filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 24px;
  padding: 14px 0;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--xseo-line);
}
.xseo-filter-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.xseo-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.xseo-filter-row + .xseo-filter-row { margin-top: 10px; }
.xseo-filter-label { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--xseo-muted); }
.xseo-pills { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.xseo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--xseo-line);
  border-radius: 999px;
  background: #fff;
  color: var(--xseo-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.xseo-pill:hover { border-color: var(--xseo-teal); color: var(--xseo-teal); }
.xseo-pill small { color: var(--xseo-muted); font-weight: 500; }
.xseo-pill.is-active { background: var(--xseo-teal); border-color: var(--xseo-teal); color: #fff; }
.xseo-pill.is-active small { color: rgba(255, 255, 255, 0.78); }
.xseo-search {
  flex: 1 1 220px;
  min-width: 160px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--xseo-line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--xseo-ink);
}
.xseo-search:focus { outline: none; border-color: var(--xseo-teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.xseo-result-count { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--xseo-teal); }

/* ---------- 网格 ---------- */
.xseo-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.xseo-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.xseo-card-item { display: flex; flex-direction: column; padding: 20px; min-width: 0; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.xseo-card-item:hover { transform: translateY(-3px); box-shadow: var(--xseo-shadow-lg); }
.xseo-card-item[hidden] { display: none; }
.xseo-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.xseo-badge { padding: 4px 10px; border-radius: 8px; background: var(--xseo-soft); color: var(--xseo-teal); font-size: 12px; font-weight: 700; }
.xseo-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--xseo-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.xseo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.xseo-tag-ok { background: #ecfdf5; color: var(--xseo-ok); }
.xseo-tag-warn { background: #fffbeb; color: var(--xseo-warn); }
.xseo-tag-risk { background: #fef2f2; color: var(--xseo-risk); }
.xseo-card-title { margin: 14px 0 6px; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--xseo-ink); }
.xseo-card-desc { margin: 0; font-size: 13px; line-height: 1.65; color: var(--xseo-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xseo-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.xseo-card-metric { padding: 10px 12px; border-radius: 10px; background: var(--xseo-bg); }
.xseo-card-metric span { display: block; font-size: 11px; color: var(--xseo-muted); }
.xseo-card-metric strong { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; color: var(--xseo-teal); }
.xseo-card-metric small { font-size: 10px; color: var(--xseo-muted); }
.xseo-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.xseo-card-actions .xseo-btn { flex: 1 1 auto; }
.xseo-tool-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 量化表格 ---------- */
.xseo-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--xseo-line); border-radius: var(--xseo-r); background: #fff; box-shadow: var(--xseo-shadow); }
.xseo-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.xseo-table caption { padding: 14px 16px; text-align: left; font-size: 14px; font-weight: 700; color: var(--xseo-ink); }
.xseo-table th, .xseo-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--xseo-line); vertical-align: top; }
.xseo-table thead th { position: sticky; top: 0; background: #f1f5f9; font-weight: 700; color: var(--xseo-ink); white-space: nowrap; }
.xseo-table tbody tr:last-child td { border-bottom: none; }
.xseo-table tbody tr:hover { background: #f8fafc; }
.xseo-table .num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; text-align: right; white-space: nowrap; }
.xseo-table th.num { text-align: right; }

/* ---------- 计算卡片 ---------- */
.xseo-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xseo-calc { padding: 18px; }
.xseo-calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.xseo-calc-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.xseo-calc-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--xseo-line); }
.xseo-calc-row span { color: var(--xseo-muted); }
.xseo-calc-row strong { color: var(--xseo-ink); }
.xseo-calc-total { border-bottom: none; background: var(--xseo-bg); margin: 6px -8px -6px; padding: 10px 8px; border-radius: 8px; }
.xseo-calc-total strong { color: var(--xseo-teal); }
.xseo-calc-total small { font-size: 11px; color: var(--xseo-muted); }

/* ---------- GEO 直答 ---------- */
.xseo-geo-answer {
  position: relative;
  padding: 18px 20px 18px 22px;
  border-left: 4px solid var(--xseo-teal);
  border-radius: 0 var(--xseo-r) var(--xseo-r) 0;
  background: linear-gradient(90deg, #ecfdf5, #fff 60%);
  box-shadow: var(--xseo-shadow);
}
.xseo-geo-flag { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; background: var(--xseo-teal); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.xseo-geo-answer p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--xseo-ink); }
.xseo-geo-answer .xseo-note { margin-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .xseo-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xseo-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .xseo-hero-inner { padding: 40px 16px 38px; }
  .xseo-hero h1 { font-size: 28px; }
  .xseo-lead { font-size: 14px; }
  .xseo-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .xseo-kpi { padding: 14px; }
  .xseo-kpi-value { font-size: 21px; }
  .xseo-cta-row .xseo-btn, .xseo-card-actions .xseo-btn { flex: 1 1 100%; }
  .xseo-grid-3, .xseo-grid-2, .xseo-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .xseo-filter-inner, .xseo-section, .xseo-page .container, .xseo-container { padding-left: 16px; padding-right: 16px; }
  .xseo-pill { flex: 1 1 auto; justify-content: center; }
  .xseo-search { flex: 1 1 100%; }
  .xseo-result-count { flex: 1 1 100%; }
  .xseo-table { min-width: 560px; }
  .xseo-panel { padding: 16px; }
  .xseo-tool-links .xseo-btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .xseo-kpi-grid { grid-template-columns: minmax(0, 1fr); }
}
