/* ============================================================
   千智AI · 智能体平台 — 产品页专属样式
   product.css
   依赖：base.css（tokens / 通用 section / 按钮 / 卡片 / footer）
   ============================================================ */

/* ============================================================
   产品页 Hero
   ============================================================ */

.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.page-hero .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;
}

.page-hero .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);
  }
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.page-hero h1 .grad {
  background: linear-gradient(120deg, #3f74e0, #12b5a6 60%, #d99b24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p.lead {
  font-size: 17px;
  color: var(--hero-lead);
  max-width: 720px;
  margin: 0 auto 28px;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: var(--btn-ghost-bg);
}

.badge b {
  color: var(--brand-2);
  font-weight: 600;
}

/* ============================================================
   产品模块导航（锚点卡片）
   ============================================================ */

.product-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.product-nav a {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.product-nav a:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.product-nav .pn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: rgba(63, 116, 224, 0.12);
  border: 1px solid rgba(63, 116, 224, 0.25);
}

.product-nav .pn-icon svg {
  width: 22px;
  height: 22px;
}

.product-nav .pn-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.product-nav .pn-desc {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   产品详情（交替布局）
   ============================================================ */

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.product-block.reverse {
  direction: rtl;
}

.product-block.reverse > * {
  direction: ltr;
}

.product-text .pt-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--brand-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-text h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.product-text > p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.feature-list li .fl-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(18, 181, 166, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-list li .fl-icon svg {
  width: 13px;
  height: 13px;
}

.feature-list li b {
  color: var(--text);
  font-weight: 600;
}

/* --- 产品视觉卡片（右侧流程图） --- */

.product-visual {
  background: var(--scene-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.6;
}

.visual-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visual-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--layer-bg);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.visual-node .vn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  flex-shrink: 0;
}

.visual-node .vn-dot.cyan {
  background: var(--brand-2);
  box-shadow: 0 0 8px var(--brand-2);
}

.visual-node .vn-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.visual-node .vn-dot.purple {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.visual-node .vn-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-left: auto;
}

.visual-arrow {
  text-align: center;
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   更多核心能力矩阵
   ============================================================ */

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.matrix-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    transform 0.28s,
    border-color 0.28s,
    box-shadow 0.28s;
}

.matrix-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.matrix-item .mi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(63, 116, 224, 0.1);
  border: 1px solid rgba(63, 116, 224, 0.22);
}

.matrix-item .mi-icon svg {
  width: 24px;
  height: 24px;
}

.matrix-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.matrix-item p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   技术架构亮点
   ============================================================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--arch-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.tech-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.tech-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.tech-card li::before {
  content: "▸";
  color: var(--brand-2);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   响应式（产品页专属）
   ============================================================ */

@media (max-width: 1024px) {
  .product-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .page-hero h1 {
    font-size: 36px;
  }
  .product-block,
  .product-block.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .matrix-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 60px 0 30px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .product-nav {
    grid-template-columns: 1fr;
  }
  .matrix-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .product-text h2 {
    font-size: 26px;
  }
  .product-visual {
    padding: 24px 20px;
  }
}
