/* ============================================================
   千智AI · 智能体平台 — 首页专属样式
   home.css
   依赖：base.css（tokens / 通用 section / 按钮 / 卡片 / footer）
   ============================================================ */

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 90px 0 56px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  border: 1px solid rgba(217, 155, 36, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(217, 155, 36, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(217, 155, 36, 0);
  }
}

.hero h1 {
  font-size: 50px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 .grad {
  background: linear-gradient(120deg, #3f74e0, #12b5a6 60%, #d99b24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--hero-lead);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat .num em {
  font-style: normal;
  color: var(--gold);
  font-size: 20px;
}

.stat .lbl {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
}

/* ============================================================
   Hero 节点网络（签名元素）
   ============================================================ */

.net-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.net-core {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  background: radial-gradient(circle at 32% 28%, #7aa8ff, #3f74e0 60%, #2b4f9e);
  box-shadow:
    0 0 40px rgba(63, 116, 224, 0.6),
    0 0 90px rgba(63, 116, 224, 0.22);
  animation: core 5s ease-in-out infinite;
}

.net-core svg {
  width: 46px;
  height: 46px;
}

@keyframes core {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.net-orbit {
  position: absolute;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.net-orbit.o1 {
  width: 330px;
  height: 330px;
  animation: spin 26s linear infinite;
}

.net-orbit.o2 {
  width: 240px;
  height: 240px;
  animation: spin-rev 19s linear infinite;
}

.net-orbit.o3 {
  width: 420px;
  height: 420px;
  animation: spin 36s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

.net-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--node-bg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  box-shadow: var(--shadow);
  color: var(--text);
}

.net-node .ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.net-node.cyan .ico {
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
}

.net-node.purple .ico {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.net-node .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.n1 {
  top: 6%;
  left: 6%;
}

.n2 {
  top: -4%;
  right: 8%;
}

.n3 {
  bottom: 22%;
  left: -4%;
}

.n4 {
  bottom: 2%;
  right: 2%;
}

.n5 {
  top: 38%;
  left: -6%;
}

.net-connects {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.net-connects line {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  animation: dash 3s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -18;
  }
}

/* ============================================================
   核心价值 .value-grid（使用 base.css 的 .card）
   ============================================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
   架构图面板 + 四层架构 .layer-row
   ============================================================ */

.arch-panel {
  background: var(--arch-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-strong);
}

.arch-panel img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.arch-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 18px;
  font-family: var(--font-mono);
}

.layer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.layer-item {
  background: var(--layer-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.layer-item:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.layer-item .lt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.layer-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.layer-item p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   智能体 / 流程编排 .split-grid
   ============================================================ */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.split-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition:
    transform 0.28s,
    border-color 0.28s,
    box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}

.split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  opacity: 0;
  transition: opacity 0.28s;
}

.split-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.split-card:hover::before {
  opacity: 1;
}

.split-card .sp-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(18, 181, 166, 0.12);
  border: 1px solid rgba(18, 181, 166, 0.28);
}

.split-card .sp-ico svg {
  width: 27px;
  height: 27px;
}

.split-card .sp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--brand-2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.split-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.split-card > p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.sp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.sp-list li .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(18, 181, 166, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-list li .tick svg {
  width: 12px;
  height: 12px;
}

.sp-list li b {
  color: var(--text);
  font-weight: 600;
}

/* 流程编排四步骤 */

.sp-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.sp-step {
  flex: 1;
  min-width: 120px;
  background: var(--layer-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.sp-step .no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.sp-step h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.sp-step p {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   功能模块 Tabs + Panels
   ============================================================ */

.feat-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feat-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: transparent;
  transition: all 0.2s;
}

.feat-tab.active,
.feat-tab:hover {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.feat-panel {
  display: none;
}

.feat-panel.active {
  display: block;
  animation: fade 0.4s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-item {
  background: var(--layer-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition:
    border-color 0.25s,
    transform 0.25s;
  display: flex;
  gap: 16px;
}

.feat-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feat-item .fi {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(18, 181, 166, 0.1);
  border: 1px solid rgba(18, 181, 166, 0.22);
}

.feat-item .fi svg {
  width: 22px;
  height: 22px;
}

.feat-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.feat-item p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   平台特色 .special-grid
   ============================================================ */

.special-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.special-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.special-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.special-item .snum {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  padding-top: 4px;
  flex-shrink: 0;
}

.special-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.special-item p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================================
   应用场景 .scene-grid
   ============================================================ */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.scene-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--scene-bg);
  transition:
    transform 0.28s,
    border-color 0.28s;
}

.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-2);
}

.scene-card .sc-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(63, 116, 224, 0.12);
  border: 1px solid rgba(63, 116, 224, 0.28);
  margin-bottom: 18px;
}

.scene-card .sc-ico svg {
  width: 26px;
  height: 26px;
}

.scene-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.scene-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.scene-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scene-tags span {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   部署与服务 .dep-grid + .path-list
   ============================================================ */

.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dep-item {
  background: var(--dep-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.dep-item:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.dep-item .di {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: rgba(217, 155, 36, 0.12);
  border: 1px solid rgba(217, 155, 36, 0.28);
}

.dep-item .di svg {
  width: 26px;
  height: 26px;
}

.dep-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.dep-item p {
  font-size: 13px;
  color: var(--text-dim);
}

.path-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.path-list li {
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--dep-bg);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-list li b {
  color: var(--text);
  font-weight: 600;
}

.path-list .arrow {
  color: var(--gold);
  font-family: var(--font-mono);
}

/* ============================================================
   响应式（首页专属）
   ============================================================ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .value-grid,
  .layer-row,
  .split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-grid,
  .dep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .net-wrap {
    min-height: 360px;
    transform: scale(0.85);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .value-grid,
  .layer-row,
  .split-grid,
  .feat-grid,
  .special-grid,
  .scene-grid,
  .dep-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .net-wrap {
    transform: scale(0.7);
    min-height: 320px;
  }
  .arch-panel {
    padding: 20px;
  }
}
