/* ==================================================================
   全局基础 & 主题（暗 / 亮）
   ================================================================== */
:root {
  --bg: #0a0d16;
  --bg-alt: #0f1421;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #141a29;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f2f5ff;
  --text-dim: #9aa4bb;
  --text-faint: #6b7488;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(10, 13, 22, 0.78);
  --accent: #8b7cf6;
  --accent-2: #56b6c2;
  --accent-soft: rgba(139, 124, 246, 0.13);
  --accent-glow: rgba(139, 124, 246, 0.35);
  --grad: linear-gradient(120deg, #9d7cd8 0%, #8b7cf6 48%, #56b6c2 100%);
  --good: #7fd88f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-alt: #ffffff;
  --panel: rgba(20, 25, 50, 0.025);
  --panel-solid: #ffffff;
  --border: rgba(20, 25, 50, 0.1);
  --border-strong: rgba(20, 25, 50, 0.18);
  --text: #12161f;
  --text-dim: #4d566b;
  --text-faint: #7d8699;
  --shadow: 0 24px 60px rgba(30, 40, 80, 0.13);
  --nav-bg: rgba(245, 247, 252, 0.82);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(139, 124, 246, 0.25);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(140, 150, 180, 0.35);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 150, 180, 0.55);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================================================================
   产品主题变量（每个产品页独立作用域）
   ================================================================== */
.product-page.theme-oa,
.product-page.theme-mada {
  --accent: #8b7cf6;
  --accent-2: #56b6c2;
  --accent-soft: rgba(139, 124, 246, 0.13);
  --accent-glow: rgba(139, 124, 246, 0.35);
  --grad: linear-gradient(120deg, #9d7cd8 0%, #8b7cf6 48%, #56b6c2 100%);
  --grad-soft: linear-gradient(120deg, rgba(157, 124, 216, .14), rgba(86, 182, 194, .1));
  --halo-1: rgba(139, 124, 246, 0.20);
  --halo-2: rgba(86, 182, 194, 0.14);
  --halo-3: rgba(157, 124, 216, 0.12);
  --good: #7fd88f;
}

/* ==================================================================
   顶部导航
   ================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 40px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name b {
  font-size: 16px;
}

.brand-name small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--text-faint);
}

/* 产品切换 Tab */
.product-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 13px;
  margin-left: 8px;
}

.product-switch button {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-switch button:hover {
  color: var(--text);
}

.product-switch button .sw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  transition: opacity .18s ease, box-shadow .18s ease;
}

.product-switch button.active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.product-switch button.active .sw-dot {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
}

/* 切换时按钮渐变跟随当前产品 */
.nav[data-current="oa"] .product-switch button.active,
.nav[data-current="mada"] .product-switch button.active {
  background: linear-gradient(120deg, #9d7cd8, #8b7cf6 50%, #56b6c2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav[data-current="mada"] .nav-web {
  display: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  border-radius: 11px;
  cursor: pointer;
  transition: all .16s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

/* ==================================================================
   产品页容器 —— 独立作用域 + 各自氛围光
   ================================================================== */
.product-page {
  display: none;
  position: relative;
}

.product-page.active {
  display: block;
  animation: pageIn .4s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.product-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62vw 52vw at 84% -10%, var(--halo-1), transparent 62%),
    radial-gradient(52vw 46vw at 2% 8%, var(--halo-2), transparent 62%),
    radial-gradient(48vw 44vw at 52% 110%, var(--halo-3), transparent 64%);
  transition: background .4s ease;
}

/* ==================================================================
   通用区块 / 组件（颜色全部走变量，两个产品共用）
   ================================================================== */
section {
  padding: 88px 0;
  position: relative;
}

.section-alt {
  background: var(--panel);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}

h3 {
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0;
}

/* --- Hero 通用 --- */
.hero {
  padding: 84px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}

.hero h1 {
  font-size: clamp(33px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.032em;
  margin: 0 0 20px;
  font-weight: 900;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-stats .stat strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.hero-stats .stat span {
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.hero-note i {
  color: var(--accent);
  font-style: normal;
  margin-right: 5px;
}

/* --- 卡片网格 --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-solid);
}

.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card .ico svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.3px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  transition: opacity .16s ease;
}

.card-link:hover {
  opacity: .8;
  text-decoration: underline;
}

.card-link svg {
  width: 14px;
  height: 14px;
}

/* --- 左右分栏 --- */
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.split.rev {
  grid-template-columns: 1.08fr .92fr;
}

.split h2 {
  text-align: left;
}

.split .lead {
  color: var(--text-dim);
  font-size: 15.8px;
  margin: 0 0 22px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.3px;
  color: var(--text-dim);
}

.checklist .tick {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist .tick svg {
  width: 12px;
  height: 12px;
}

.panel-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-solid);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

/* --- 工作流节点（Mada Agent 用） --- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
}

.flow-node .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.flow-node .kind {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.flow-node .kind svg {
  width: 15px;
  height: 15px;
}

.k-start {
  background: rgba(127, 216, 143, .16);
  color: #7fd88f;
}

.k-task {
  background: var(--accent-soft);
  color: var(--accent);
}

.k-llm {
  background: rgba(86, 182, 194, .16);
  color: #56b6c2;
}

.k-end {
  background: rgba(241, 116, 113, .16);
  color: #f17471;
}

.flow-arrow {
  height: 20px;
  width: 2px;
  background: var(--border-strong);
  margin-left: 34px;
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--border-strong);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.chip {
  font-size: 12.3px;
  font-family: var(--mono);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
}

.chip.hot {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* --- 应用 Mock（Mada Agent） --- */
.app-mock {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  position: relative;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

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

.mock-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mock-dots i:nth-child(1) {
  background: #f17471;
}

.mock-dots i:nth-child(2) {
  background: #f2cf76;
}

.mock-dots i:nth-child(3) {
  background: #7fd88f;
}

.mock-title {
  font-size: 12.4px;
  color: var(--text-faint);
  margin: 0 auto;
  font-family: var(--mono);
}

.mock-body {
  display: grid;
  grid-template-columns: 114px 1fr;
  min-height: 350px;
}

.mock-side {
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-side span {
  font-size: 12.4px;
  color: var(--text-dim);
  padding: 7px 10px;
  border-radius: 8px;
}

.mock-side span.on {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.mock-chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bubble {
  font-size: 13.3px;
  border-radius: 12px;
  padding: 10px 13px;
  max-width: 90%;
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.agent {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-dim);
}

.tool-step {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.6px;
  color: var(--accent-2);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 8px;
}

.tool-step .spinner {
  width: 11px;
  height: 11px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.mock-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-faint);
  font-size: 12.8px;
}

.mock-float {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.4px;
}

.mock-float .live {
  color: var(--good);
  font-weight: 600;
}

.mock-float svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

/* --- 拓扑图（Mada） --- */
.hero-visual {
  position: relative;
}

section[id] {
  scroll-margin-top: 84px;
}

.topo-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/.86;
  margin: 0 auto;
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 18px;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft) 0%, transparent 68%);
  box-shadow: var(--shadow);
}

.topo-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.topo-label {
  fill: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}

.topo-label.sm {
  fill: var(--text-faint);
  font-size: 10px;
}

.topo-node {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.topo-node.gold {
  stroke: var(--accent-2);
  fill: rgba(86, 182, 194, .12);
}

.topo-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 6 8;
  animation: dash 2s linear infinite;
  fill: none;
}

.topo-line.gold {
  stroke: var(--accent-2);
  stroke-width: 2;
  animation-duration: 2.6s;
}

@keyframes dash {
  to {
    stroke-dashoffset: -28;
  }
}

.topo-signal {
  stroke: var(--accent-2);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  opacity: .8;
}

.topo-static {
  stroke: var(--text-faint);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  opacity: .6;
}

.topo-pill {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1;
}

.topo-pill-txt {
  fill: var(--text-dim);
  font-size: 9.5px;
}

.badge-float {
  position: absolute;
  background: var(--panel-solid);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  padding: 7px 15px;
  font-size: 12.2px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

.badge-float svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* --- 架构流程条（Mada） --- */
.arch-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 28px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 8px;
  min-width: 620px;
}

.arch-node {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px 19px;
  text-align: center;
  min-width: 102px;
  transition: all .2s ease;
}

.arch-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.arch-node .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 3px;
}

.arch-node .title {
  font-weight: 600;
  font-size: .9rem;
}

.arch-node .sub {
  font-size: .7rem;
  color: var(--text-faint);
}

.arch-node .pill {
  display: inline-block;
  font-size: .64rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 11px;
  border-radius: 40px;
  margin-top: 5px;
  border: 1px solid var(--border);
}

.arch-node .pill.gold {
  color: var(--accent-2);
  background: rgba(86, 182, 194, .12);
}

.arch-arrow {
  color: var(--text-faint);
  display: flex;
  align-items: center;
}

.arch-arrow svg {
  width: 18px;
  height: 18px;
}

.arch-arrow.accent svg {
  color: var(--accent);
}

.arch-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 22px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--text-dim);
}

.arch-legend b {
  color: var(--accent);
  font-weight: 700;
}

.arch-legend b.gold {
  color: var(--accent-2);
}

/* --- 痛点对比（Mada） --- */
.pain-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .2s ease;
}

.pain-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.pain-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.3px;
}

.pain-row .mi {
  flex: 0 0 18px;
  margin-top: 3px;
}

.pain-bad {
  color: #f87171;
}

.pain-good {
  color: var(--good);
}

.pain-div {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* --- 场景（Mada） --- */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 66px;
}

.scenario:last-child {
  margin-bottom: 0;
}

.scenario h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.scenario p {
  color: var(--text-dim);
  font-size: 15.4px;
  margin: 0 0 18px;
}

.code-block {
  background: #05080f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: #a5f3fc;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

[data-theme="light"] .code-block {
  background: #0d1420;
}

.code-block svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: 0 0 14px;
}

.scenario-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  aspect-ratio: 16/10.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.mini-ui {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px;
  width: 100%;
}

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

.mini-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

/* --- 步骤 --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step {
  text-align: center;
  padding: 30px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.step h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: .94rem;
}

/* --- 下载 --- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.dl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  transition: all .2s ease;
  text-align: center;
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.dl-card svg {
  width: 30px;
  height: 30px;
  color: var(--text-dim);
}

.dl-card .os {
  font-weight: 600;
}

.dl-note {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 22px;
  text-align: center;
}

.dl-note a {
  color: var(--accent);
  font-weight: 600;
}

.dl-note a:hover {
  text-decoration: underline;
}

/* --- FAQ --- */
.faq {
  max-width: 790px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.3px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 14.3px;
}

/* --- 安全小卡 --- */
.sec-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--panel);
}

.sec-item h3 {
  font-size: 15px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sec-item h3 svg {
  width: 17px;
  height: 17px;
  color: var(--accent-2);
  flex: 0 0 17px;
}

.sec-item p {
  margin: 0;
  font-size: 13.7px;
  color: var(--text-dim);
}

/* --- 产品间引导条 --- */
.cross-link {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.cross-link .cl-txt {
  flex: 1;
  min-width: 220px;
}

.cross-link .cl-txt h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.cross-link .cl-txt p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* --- 无模型高亮条 --- */
.nomodel {
  margin-top: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nomodel .nm-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-solid);
  color: var(--accent);
  border: 1px solid var(--border);
}

.nomodel .nm-ico svg {
  width: 24px;
  height: 24px;
}

.nomodel .nm-txt {
  flex: 1;
  min-width: 240px;
}

.nomodel .nm-txt h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.nomodel .nm-txt p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

.nomodel .nm-txt strong {
  color: var(--text);
}

/* --- 滚动出现 --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ==================================================================
   页脚
   ================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 14px;
}

.foot-brand svg {
  width: 34px;
  height: 34px;
}

.foot-desc {
  color: var(--text-dim);
  font-size: 13.8px;
  max-width: 320px;
  margin: 0 0 16px;
}

.foot-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-chip {
  font-size: 11.5px;
  font-family: var(--mono);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.foot-col h5 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.foot-col a {
  display: block;
  color: var(--text-dim);
  font-size: 13.8px;
  margin-bottom: 10px;
  transition: color .16s ease;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12.8px;
}

.foot-bottom .icp a {
  color: var(--text-faint);
  transition: color .16s ease;
}

.foot-bottom .icp a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- 轻提示 --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 400;
  transform: translateX(-50%) translateY(12px);
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 40px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

/* ==================================================================
   响应式
   ================================================================== */
@media (max-width: 1020px) {

  .hero-grid,
  .split,
  .split.rev {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split.rev .panel-visual {
    order: 2;
  }

  .scenario {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .scenario.rev .scenario-visual {
    order: 2;
  }

  .scenario.rev .scenario-content {
    order: 1;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 68px 0;
  }
}

@media (max-width: 820px) {
  .brand-name small {
    display: none;
  }

  .product-switch {
    margin-left: 4px;
  }

  .product-switch button {
    padding: 7px 12px;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }

  .nav-inner {
    gap: 12px;
  }

  .brand-name {
    display: none;
  }

  .nav-web-text {
    display: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .mock-float {
    right: 8px;
    bottom: -16px;
  }

  .hero-stats {
    gap: 18px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .arch-wrap {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== 产品切换（改独立页面后为链接） ===== */
.product-switch a {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-switch a:hover {
  color: var(--text);
}

.product-switch a .sw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  transition: opacity .18s ease, box-shadow .18s ease;
}

.product-switch a.active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.product-switch a.active .sw-dot {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
}

.nav[data-current="oa"] .product-switch a.active,
.nav[data-current="mada"] .product-switch a.active {
  background: linear-gradient(120deg, #9d7cd8, #8b7cf6 50%, #56b6c2);
}

/* ===== Home ===== */
.home-hero {
  position: relative;
  padding: 96px 0 40px;
  text-align: center;
}

.home-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 82% -10%, rgba(139, 124, 246, .22), transparent 62%),
    radial-gradient(50vw 44vw at 4% 6%, rgba(86, 182, 194, .14), transparent 62%),
    radial-gradient(46vw 42vw at 50% 108%, rgba(157, 124, 216, .12), transparent 64%);
}

.home-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 900;
}

.home-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero .hero-desc {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: var(--text-dim);
}

.home-hero .hero-cta {
  justify-content: center;
}

.home-products {
  padding: 34px 0 92px;
}

.home-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-solid);
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pc-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

.pc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pc-head h3 {
  margin: 0;
  font-size: 22px;
}

.pc-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 3px;
}

.product-card p {
  color: var(--text-dim);
  font-size: 14.8px;
  margin: 0 0 16px;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pc-tags span {
  font-size: 12.3px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 11px;
}

.pc-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pc-head .card-link {
  align-self: flex-start;
  margin: 0 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
}