/* =========================================================
   Codeing · 官网样式
   基于 Bootstrap 5.3 扩展
   ========================================================= */

:root {
  --brand: #5b5bd6;
  --brand-2: #06b6d4;
  --brand-3: #8b5cf6;
  --brand-soft: rgba(91, 91, 214, 0.1);
  --ink: #0f1430;
  --ink-2: #4a5170;
  --ink-3: #7a819c;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eef0f7;
  --line: rgba(15, 20, 48, 0.09);
  --line-strong: rgba(15, 20, 48, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 20, 48, 0.06), 0 8px 24px -12px rgba(15, 20, 48, 0.18);
  --shadow-md: 0 24px 60px -28px rgba(15, 20, 48, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --nav-h: 72px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
}

[data-bs-theme="dark"] {
  --brand: #8b8bf5;
  --brand-2: #22d3ee;
  --brand-soft: rgba(139, 139, 245, 0.14);
  --ink: #eef1ff;
  --ink-2: #b3bad8;
  --ink-3: #8b93b4;
  --surface: #101528;
  --surface-2: #0b1020;
  --surface-3: #161d33;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

* {
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--surface-2);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

::selection {
  background: rgba(91, 91, 214, 0.24);
}

.text-muted-2 {
  color: var(--ink-2) !important;
}

.text-dim {
  color: var(--ink-3) !important;
}

/* ---------------- 导航 ---------------- */
.site-nav {
  min-height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 20, 48, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.06rem;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -8px rgba(91, 91, 214, 0.9);
}

.brand-mark i {
  line-height: 1;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.navbar-nav .nav-link {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ink);
  background: var(--brand-soft);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-3);
}

/* ---------------- 按钮 ---------------- */
.btn {
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(91, 91, 214, 0.22);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 10px;
  padding: 0.6rem 1.15rem;
}

.btn-brand {
  color: #fff;
  border: none;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-3) 55%, var(--brand-2) 130%);
  box-shadow: 0 12px 26px -14px rgba(91, 91, 214, 0.95);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ---------------- 通用 ---------------- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-tight {
  padding: 4.5rem 0;
}

.section.section-flush-top {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.section-title {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 0.85rem;
}

.section-sub {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 640px;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-soft .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 500;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  overflow: hidden;
  background: var(--surface-2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  background:
    radial-gradient(46% 52% at 18% 18%, rgba(91, 91, 214, 0.28), transparent 70%),
    radial-gradient(38% 46% at 82% 8%, rgba(6, 182, 212, 0.22), transparent 72%),
    radial-gradient(34% 42% at 62% 62%, rgba(139, 92, 246, 0.18), transparent 74%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 10%, transparent 78%);
  opacity: 0.75;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.14;
  margin: 1.1rem 0 1.25rem;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 45%, var(--brand-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.9rem 0 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 控制台演示卡 */
.console-wrap {
  position: relative;
  padding: 1.2rem 0;
}

.console {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #171c33 0%, #0c1020 70%);
  box-shadow: 0 40px 90px -40px rgba(9, 12, 30, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.2);
  color: #e6e9f7;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.console:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0deg);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.console-dots {
  display: inline-flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.console-dots span:first-child {
  background: #f87171;
}

.console-dots span:nth-child(2) {
  background: #fbbf24;
}

.console-dots span:nth-child(3) {
  background: #34d399;
}

.console-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #8f97bb;
}

.console-body {
  padding: 1.15rem 1.1rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.task-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  color: #a9b1d6;
}

.task-line + .task-line {
  margin-top: 0.35rem;
}

.task-line .st {
  width: 18px;
  text-align: center;
  flex: none;
  font-size: 0.8rem;
}

.task-line .st.ok {
  color: #34d399;
}

.task-line .st.run {
  color: #38bdf8;
}

.task-line .st.wait {
  color: #64748b;
}

.task-line .tag {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #8f97bb;
  white-space: nowrap;
}

.task-line.active {
  background: rgba(56, 189, 248, 0.08);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
  color: #dbeafe;
}

.spinner-ring {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  animation: spin 0.9s linear infinite;
  vertical-align: -1px;
}

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

.console-progress {
  margin-top: 1rem;
  padding: 0.85rem 0.75rem 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.console-progress .bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.console-progress .bar > i {
  display: block;
  height: 100%;
  width: 76%;
  border-radius: 6px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}

.console-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #737b9c;
  margin-top: 0.5rem;
}

/* 首屏任务演示动画 */
.console-body .task-line {
  transition: opacity 0.45s ease, background 0.45s ease, box-shadow 0.45s ease,
    color 0.45s ease;
}

.console-body .task-line.is-pending {
  opacity: 0.45;
}

.console-body .task-line.is-done {
  color: #c7d2fe;
}

.console-body .task-line .tag {
  transition: color 0.3s ease, background 0.3s ease;
}

.console-body .task-line.is-done .tag {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.console-progress .bar > i {
  transition: width 0.5s ease;
}

.demo-status span:last-child {
  display: inline-block;
  min-width: 2.8rem;
  text-align: right;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
  z-index: 2;
}

.float-card .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 0.85rem;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.68rem;
}

.float-card.fc-1 {
  left: -18px;
  bottom: 46px;
}

.float-card.fc-2 {
  right: -6px;
  top: 26px;
  animation-delay: -3s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------------- 数据条 ---------------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.stat-item {
  padding: 1.9rem 0.5rem;
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 42%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-num sub {
  font-size: 0.85rem;
  font-weight: 600;
  bottom: 0;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.45rem;
}

/* ---------------- 能力卡片 ---------------- */
.feature-card {
  height: 100%;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 100% 0%, var(--brand-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--shadow-md);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.feature-list li {
  font-size: 0.74rem;
  color: var(--ink-3);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

/* ---------------- 流程 ---------------- */
.flow {
  position: relative;
}

.flow-step {
  position: relative;
  height: 100%;
  padding: 1.45rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.flow-step .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.flow-step .num::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

.flow-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.flow-step p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}

.flow-step .ico {
  position: absolute;
  right: 1.1rem;
  top: 1.15rem;
  color: var(--ink-3);
  font-size: 1.1rem;
  opacity: 0.7;
}

.flow-step.highlight {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--brand) 10%, var(--surface)) 0%,
    var(--surface) 70%
  );
  box-shadow: var(--shadow-sm);
}

/* 闭环流程：按步骤依次高亮 */
.flow .flow-step {
  animation: flowPulse 7.2s ease-in-out infinite;
}

.flow > :nth-child(2) .flow-step {
  animation-delay: 1.2s;
}

.flow > :nth-child(3) .flow-step {
  animation-delay: 2.4s;
}

.flow > :nth-child(4) .flow-step {
  animation-delay: 3.6s;
}

.flow > :nth-child(5) .flow-step {
  animation-delay: 4.8s;
}

.flow > :nth-child(6) .flow-step {
  animation-delay: 6s;
}

@keyframes flowPulse {
  0%,
  10% {
    box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.16);
  }

  20%,
  100% {
    box-shadow: 0 0 0 0 rgba(91, 91, 214, 0);
  }
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 1rem;
  opacity: 0.55;
}

.loop-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 0.83rem;
}

.loop-note i {
  color: var(--brand);
}

/* ---------------- 架构 ---------------- */
.arch-board {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 100% 0%, var(--brand-soft), transparent 70%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.arch-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

.arch-box {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.arch-box:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  transform: translateY(-2px);
}

.arch-box .ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0.9rem;
}

.arch-box strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.arch-box span {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.55;
  display: block;
}

.arch-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.arch-divider::before,
.arch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------------- 区块与标签 ---------------- */
.section-alt {
  background: color-mix(in srgb, var(--surface-3) 55%, var(--surface-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.state-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.state-chain .chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.state-chain .chip.is-active {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background: var(--brand-soft);
}

.state-chain .arrow {
  color: var(--ink-3);
  font-size: 0.7rem;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink-2);
}

.result-tag.ok {
  color: #0f9d58;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.result-tag.bad {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.result-tag.warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.result-tag.skip {
  color: var(--ink-3);
  background: var(--surface-3);
  border-color: var(--line);
}

.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.step-list li {
  position: relative;
  padding-left: 2.4rem;
  padding-bottom: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.7;
}

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

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 26px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}

.step-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- 技术栈 ---------------- */
.stack-card {
  height: 100%;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stack-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: translateY(-2px);
}

.stack-card .ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--brand);
  background: var(--brand-soft);
}

.stack-card strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
}

.stack-card span {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ---------------- FAQ ---------------- */
.accordion-soft .accordion-item {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px !important;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.accordion-soft .accordion-button {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 1rem 1.15rem;
  box-shadow: none;
}

.accordion-soft .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: var(--brand-soft);
}

.accordion-soft .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

.accordion-soft .accordion-body {
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.85;
  padding-top: 0.2rem;
}

/* ---------------- CTA / 页脚 ---------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 3.4rem 2.5rem;
  color: #fff;
  background: linear-gradient(120deg, #1b1f4b 0%, #3b3796 45%, #0e7490 100%);
  box-shadow: var(--shadow-md);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 0;
}

.cta .btn-light-solid {
  background: #fff;
  color: #1b1f4b;
  border: none;
}

.cta .btn-light-solid:hover {
  background: #eef1ff;
  color: #1b1f4b;
}

.cta .btn-outline-light-2 {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta .btn-outline-light-2:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  padding: 3.2rem 0 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 45%, var(--surface-2));
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}

.footer-link {
  display: block;
  color: var(--ink-2);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ---------------- 动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card,
  .spinner-ring,
  .flow .flow-step {
    animation: none;
  }

  .console,
  .console:hover {
    transform: none;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1199.98px) {
  .float-card.fc-1 {
    left: -6px;
  }

  .float-card.fc-2 {
    right: -2px;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: calc(var(--nav-h) + 3rem);
  }

  .console {
    transform: none;
    margin-top: 1rem;
  }

  .console:hover {
    transform: none;
  }

  .float-card {
    display: none;
  }

  .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .site-nav .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem !important;
  }

  .section {
    padding: 4.5rem 0;
  }

  .arch-board {
    padding: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .stat-item {
    padding: 1.4rem 0.5rem;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .cta {
    padding: 2.4rem 1.4rem;
  }
}
