/* ==========================================================================
   GEO智见Insight · 视觉样张总览页 (variants/index.css)
   依赖 ../assets/css/brand.css 的 tokens 与组件
   ========================================================================== */
.idx-page { background: var(--cream); color: var(--ink); }
.idx-wrap { width: min(1240px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.idx-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 26, 38, 0.1);
}
.idx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.idx-nav .brand { font-size: 19px; }
.idx-nav-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.idx-nav-links a {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.idx-nav-links a:hover { background: rgba(23, 26, 38, 0.07); color: var(--ink); }
.idx-nav-cta {
  background: var(--ink-900) !important;
  color: #fff !important;
  padding: 9px 16px !important;
}

/* ---------- Hero ---------- */
.idx-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(105% 80% at 82% 0%, rgba(108, 92, 255, 0.36) 0%, rgba(11, 16, 32, 0) 58%),
    radial-gradient(80% 60% at 0% 92%, rgba(255, 61, 127, 0.16) 0%, rgba(6, 9, 18, 0) 64%),
    linear-gradient(160deg, #0b1020 0%, #0d1226 52%, #170f22 100%);
  color: var(--text-hi);
  padding: clamp(64px, 9vw, 124px) 0 clamp(52px, 7vw, 92px);
}
.idx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 82%);
  pointer-events: none;
}
.idx-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.idx-hero .eyebrow { color: var(--text-muted); }
.idx-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: var(--text-shadow-dark);
  max-width: 15ch;
}
.idx-hero h1 .accent {
  background: linear-gradient(115deg, #b57bff 0%, #ff6aa8 52%, #ffb020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.idx-hero .lead { color: var(--text-body); max-width: 62ch; }
.idx-hero .lead strong { color: #fff; }
.idx-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.idx-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(26px, 4vw, 46px);
}
.idx-hero-stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.idx-hero-stat strong {
  display: block;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.idx-hero-stat span { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-muted); }

/* ---------- 通用 section 头 ---------- */
.idx-section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(30px, 4vw, 52px); max-width: 760px; }
.idx-section-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.1; }
.idx-section-head p { color: var(--ink-soft); font-size: clamp(15px, 1.3vw, 17px); }

/* ---------- 三款样张卡片 ---------- */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}
.variant-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 26, 38, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
}
.variant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.variant-preview {
  position: relative;
  display: block;
  background: #10121f;
  padding: 18px 18px 0;
}
.variant-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px -18px rgba(0, 0, 0, 0.7);
}
.variant-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2vw, 26px); }
.variant-body h3 { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: -0.015em; }
.variant-body > p { font-size: 14px; line-height: 1.72; color: var(--ink-soft); }
.variant-feats { display: grid; gap: 7px; }
.variant-feats li { position: relative; padding-left: 17px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.variant-feats li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--grad-brand); }
.variant-metrics {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(23, 26, 38, 0.045);
  border: 1px solid rgba(23, 26, 38, 0.07);
}
.variant-metrics > div { flex: 1; }
.variant-metrics b { display: block; font-family: "Space Grotesk", var(--font-sans); font-size: 17px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.variant-metrics span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-muted); }
.variant-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.variant-actions .btn:not(.btn--dark):not(.btn--ghost-dark) {
  --btn-bg: linear-gradient(120deg, #6d2fd8 0%, #b81a63 52%, #b5381c 100%);
  box-shadow: 0 10px 26px -12px rgba(255, 61, 127, 0.5);
}

/* ---------- 对比表 ---------- */
.section--compare { background: var(--cream-2); }
.compare-table-card {
  background: #fff;
  border: 1px solid rgba(23, 26, 38, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; vertical-align: top; line-height: 1.62; }
.compare-table thead th { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink-900); color: #fff; font-weight: 800; }
.compare-table thead th:first-child { background: #060912; }
.compare-table tbody th {
  width: 150px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(23, 26, 38, 0.035);
  border-top: 1px solid rgba(23, 26, 38, 0.08);
}
.compare-table tbody td { border-top: 1px solid rgba(23, 26, 38, 0.08); color: var(--ink-soft); }
.compare-table tbody tr:nth-child(even) td { background: rgba(23, 26, 38, 0.02); }
.compare-table .mark-ok { color: #0d7a55; font-weight: 700; }
.compare-table .mark-warn { color: #a85400; font-weight: 700; }

/* ---------- 对比度说明 ---------- */
.section--contrast { background: linear-gradient(160deg, #0d1226 0%, #0b1020 45%, #170f22 100%); color: #fff; position: relative; overflow: clip; }
.section--contrast::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none;
  background: radial-gradient(60% 50% at 88% 8%, rgba(108, 92, 255, 0.34), rgba(11, 16, 32, 0) 70%),
              radial-gradient(50% 40% at 4% 92%, rgba(255, 61, 127, 0.16), rgba(6, 9, 18, 0) 70%);
}
.contrast-inner { position: relative; z-index: 1; }
.contrast-grid { display: grid; gap: clamp(26px, 4vw, 54px); }
@media (min-width: 900px) { .contrast-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.contrast-copy h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.contrast-copy p { color: var(--text-body); font-size: 15.5px; line-height: 1.8; }
.contrast-copy p + p { margin-top: 14px; }
.contrast-copy code { font-family: "Space Grotesk", ui-monospace, monospace; font-size: 0.92em; color: #ffd9e6; background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; }
.contrast-steps { margin-top: 22px; display: grid; gap: 10px; }
.contrast-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--text-body); font-size: 14px; line-height: 1.7; }
.contrast-step i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 61, 127, 0.18); border: 1px solid rgba(255, 61, 127, 0.5); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; font-family: "Space Grotesk", sans-serif; }
.contrast-formula {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}
.contrast-formula h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 14px; }
.formula-list { display: grid; gap: 14px; }
.formula-line { display: flex; flex-direction: column; gap: 4px; }
.formula-line code { font-family: "Space Grotesk", ui-monospace, monospace; font-size: 13.5px; line-height: 1.65; color: #fff; background: rgba(6, 9, 18, 0.5); border: 1px solid rgba(255, 255, 255, 0.12); padding: 10px 12px; border-radius: 10px; display: block; white-space: pre-wrap; }
.formula-line span { font-size: 12.5px; color: var(--text-muted); }
.thresholds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.thresholds div { border-radius: 12px; padding: 11px 13px; background: rgba(92, 242, 192, 0.09); border: 1px solid rgba(92, 242, 192, 0.28); }
.thresholds b { display: block; font-size: 18px; font-family: "Space Grotesk", sans-serif; color: var(--mint); }
.thresholds span { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }

.contrast-table-wrap { margin-top: clamp(28px, 4vw, 48px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14); overflow: hidden; background: rgba(255, 255, 255, 0.035); }
.contrast-scroll { overflow-x: auto; }
table.ba-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ba-table th, .ba-table td { padding: 13px 16px; text-align: left; vertical-align: top; line-height: 1.6; }
.ba-table thead th { background: rgba(6, 9, 18, 0.62); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; font-weight: 800; }
.ba-table tbody th { font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.03); }
.ba-table tbody td { color: var(--text-body); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ba-table .pass { color: var(--mint); font-weight: 700; }
.ba-table .fail { color: #ffb4cb; font-weight: 700; }
.ba-table code { font-family: "Space Grotesk", monospace; font-size: 0.94em; }

/* ---------- 选择建议 ---------- */
.choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.choose-card { padding: clamp(24px, 2.6vw, 34px); border-radius: 24px; border: 1px solid rgba(23, 26, 38, 0.1); background: #fff; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.choose-card--a { background: linear-gradient(160deg, #10142b, #0b1020); color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.choose-card--b { background: linear-gradient(140deg, #7c7bff 0%, #c36bff 48%, #ff6aa8 100%); color: #15162b; border-color: rgba(255, 255, 255, 0.6); }
.choose-card--c { background: linear-gradient(160deg, #113a96, #0b2a6e); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.choose-card .choose-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.95; }
.choose-card--b .choose-kicker { color: #1a1030; opacity: 1; }
.choose-card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.choose-card p { font-size: 14px; line-height: 1.75; opacity: 0.9; }
.choose-card ul { display: grid; gap: 7px; margin-top: auto; }
.choose-card li { font-size: 13px; line-height: 1.6; padding-left: 16px; position: relative; opacity: 0.94; }
.choose-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.65; }

/* ---------- 页脚 ---------- */
.idx-footer { background: #060912; color: #fff; padding: clamp(40px, 5vw, 64px) 0 40px; }
.idx-footer-inner { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; justify-content: space-between; }
.idx-footer .brand { font-size: 20px; }
.idx-footer p { color: var(--text-muted); font-size: 13.5px; line-height: 1.7; max-width: 520px; }
.idx-footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.idx-footer-links a { color: var(--text-body); font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 7px 12px; border-radius: var(--r-pill); }
.idx-footer-links a:hover { background: rgba(255, 255, 255, 0.08); }
.idx-footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-muted); font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-grid .variant-card:last-child { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
  .idx-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .choose-grid { grid-template-columns: 1fr; }
  .idx-hero h1 { max-width: none; }
}
@media (max-width: 720px) {
  .variant-grid { grid-template-columns: 1fr; }
  .variant-grid .variant-card:last-child { max-width: none; }
  .idx-nav-links a:not(.idx-nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .idx-hero-stats { grid-template-columns: 1fr; }
}

/* ---------- 实测摘要卡 ---------- */
.audit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.audit-card { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.14); }
.audit-card b { display: block; font-family: "Space Grotesk", var(--font-sans); font-size: 21px; letter-spacing: -0.02em; color: #fff; }
.audit-card strong { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.02em; }
.audit-card .audit-ok { color: var(--mint); font-weight: 700; }
@media (max-width: 900px) { .audit-cards { grid-template-columns: 1fr; } }


/* ---------- contrast hardening (QA 2026-11-13) ---------- */
.chip.chip--rose, .chip.chip--coral { color: #0b1020; }
.idx-footer .brand-watermark em { opacity: 1; color: #d9deee; }
