/* XCAGI 官网 v2 设计系统 —— Apple 留白 / Linear 克制 / Stripe 企业可信。
   适用：index / cases / pricing / verify 等新页面。旧页面继续使用 styles.css。
   规范：大面积白 + 极浅灰分区 + 近黑正文 + 单一品牌蓝；卡片 12-16px 圆角弱边框；
   一屏一个视觉中心；禁止霓虹/渐变光效/多色混用。 */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #e8e8ed;
  --brand: #0b63f6;
  --brand-soft: rgba(11, 99, 246, 0.08);
  --ok: #1f9d6b;
  --ok-soft: rgba(31, 157, 107, 0.1);
  --warn: #b25e09;
  --warn-soft: rgba(178, 94, 9, 0.09);
  --bad: #d0342c;
  --bad-soft: rgba(208, 52, 44, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.05);
  --container: 1120px;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'PingFang SC', 'HarmonyOS Sans SC', 'Segoe UI',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ---------- 基础 ---------- */
html {
  scroll-behavior: smooth;
}
body.xc2 {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.xc2 *,
body.xc2 *::before,
body.xc2 *::after {
  box-sizing: border-box;
}
body.xc2 img {
  max-width: 100%;
  display: block;
}
body.xc2 a {
  color: var(--brand);
  text-decoration: none;
}
body.xc2 a:hover {
  text-decoration: underline;
}
body.xc2 h1,
body.xc2 h2,
body.xc2 h3,
body.xc2 h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.xc2-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.xc2-section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.xc2-section--soft {
  background: var(--bg-soft);
}
.xc2-section--border {
  border-top: 1px solid var(--line);
}
.xc2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.xc2-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.xc2-h1 {
  font-size: clamp(38px, 5.6vw, 62px);
}
.xc2-h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.xc2-h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}
.xc2-lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 18px 0 0;
}
.xc2-center {
  text-align: center;
}
.xc2-center .xc2-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 按钮 ---------- */
.xc2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: filter 0.18s ease, transform 0.12s ease, background 0.18s ease;
}
.xc2-btn:active {
  transform: scale(0.98);
}
body.xc2 .xc2-btn--primary {
  background: var(--brand);
  color: #fff;
}
body.xc2 .xc2-btn--primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
body.xc2 .xc2-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
body.xc2 .xc2-btn--ghost:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.xc2-btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}
.xc2-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- 卡片 / 截图 ---------- */
.xc2-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.xc2-shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.xc2-shot img {
  width: 100%;
  height: auto;
}
.xc2-shot figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 徽标 ---------- */
.xc2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.xc2-badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.xc2-badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.xc2-badge--bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.xc2-badge--info {
  background: var(--brand-soft);
  color: var(--brand);
}
.xc2-badge--muted {
  background: var(--bg-soft);
  color: var(--ink-2);
}

/* ---------- 步骤 ---------- */
.xc2-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xc2-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.xc2-step .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.xc2-step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.xc2-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- 对比表 ---------- */
.xc2-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.xc2-compare th,
.xc2-compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.xc2-compare tr:last-child th,
.xc2-compare tr:last-child td {
  border-bottom: 0;
}
.xc2-compare thead th {
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
}
.xc2-compare .col-x {
  color: var(--ink-3);
  width: 38%;
}
.xc2-compare .col-xcagi {
  color: var(--ink);
  font-weight: 500;
}
.xc2-compare thead .col-xcagi {
  color: var(--brand);
  font-weight: 700;
}

/* ---------- 价格卡 ---------- */
.xc2-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.xc2-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.xc2-plan--hl {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.xc2-plan .name {
  font-size: 17px;
  font-weight: 700;
}
.xc2-plan .price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.xc2-plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 6px;
  letter-spacing: 0;
}
.xc2-plan .desc {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.xc2-plan .quota {
  font-size: 13px;
  color: var(--ok);
  font-weight: 600;
}
.xc2-plan .xc2-btn {
  width: 100%;
}

/* ---------- 证据 / 视频块 ---------- */
.xc2-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.xc2-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.xc2-evidence-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.xc2-scope-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 数据时间戳 ---------- */
.xc2-updated {
  font-size: 12.5px;
  color: var(--ink-3);
}
.xc2-updated code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---------- 键值卡（移动端技术表格降级） ---------- */
.xc2-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 13.5px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.xc2-kv dt {
  color: var(--ink-2);
  margin: 0;
}
.xc2-kv dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

/* ---------- 案例页 ---------- */
.xc2-case-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.xc2-case-flow li {
  counter-increment: flow;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.xc2-case-flow li::before {
  content: '0' counter(flow);
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

/* ---------- Hero（首屏） ---------- */
.xc-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 50% -12%, rgba(11, 99, 246, 0.055), transparent 70%),
    var(--bg);
}
.xc-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.xc-hero-cta {
  justify-content: center;
  margin-top: 34px;
}
.xc-hero-shot {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 980px;
}
.xc-hero-shot figcaption {
  justify-content: center;
}

/* ---------- 30 秒看懂：演示块 ---------- */
.xc-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
}
.xc-demo-copy p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.xc-demo-copy .xc2-h3 {
  margin-bottom: 10px;
}

/* ---------- 案例双栏 ---------- */
.xc-case {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.xc-case ~ .xc2-case-flow {
  margin-top: clamp(32px, 4vw, 48px);
}
.xc-case--flip .xc-case-copy {
  order: 2;
}
.xc-case--flip .xc-case-media {
  order: 1;
}
.xc-case-copy .xc2-lead {
  font-size: 16.5px;
}
.xc-case-actions {
  margin-top: 24px;
  align-items: center;
}
.xc-case-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xc-case-shot-sub {
  width: 78%;
  margin-left: auto;
  box-shadow: var(--shadow);
}

/* ---------- 最终 CTA ---------- */
.xc-final {
  background: var(--bg-soft);
}
.xc-final-cta {
  justify-content: center;
  margin-top: 36px;
}

/* ---------- 链接箭头 / 间距工具 ---------- */
.xc2-link-arrow {
  font-weight: 600;
  font-size: 15px;
}
.xc2-mt24 {
  margin-top: 24px;
}
.xc2-mt40 {
  margin-top: 40px;
}
.xc2-table-wrap {
  overflow-x: auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .xc2-steps {
    grid-template-columns: 1fr;
  }
  .xc2-plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .xc2-case-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xc-case,
  .xc-demo {
    grid-template-columns: 1fr;
  }
  .xc-case--flip .xc-case-copy {
    order: 1;
  }
  .xc-case--flip .xc-case-media {
    order: 2;
  }
  .xc-case-shot-sub {
    display: none;
  }
}
@media (max-width: 640px) {
  .xc2-container {
    padding: 0 20px;
  }
  .xc2-section {
    padding: 64px 0;
  }
  .xc2-btn {
    width: 100%;
  }
  .xc2-btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .xc2-compare {
    font-size: 14px;
  }
  .xc2-compare th,
  .xc2-compare td {
    padding: 12px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.xc2 * {
    transition: none !important;
  }
}
