/* ==========================================================================
   智飞云培官网 - 首页专属样式 (对齐 dberp.com.cn 浅色商务结构)
   ========================================================================== */

/* ==================== 1. 首屏 Hero 区域 (深邃藏青背景) ==================== */
.hero {
  padding: 136px 0 76px;
  background: var(--navy);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.release-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9dcf6;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.release-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #c7d2fe;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 600px;
  color: #d7daf2;
  font-size: 17px;
  line-height: 1.8;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 28px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: #eef0ff;
  font-size: 14px;
  font-weight: 600;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-list-check {
  color: #818cf8;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-hint {
  color: #9aa1c2;
  font-size: 13px;
  margin: 0;
}

.hero-hint a {
  color: #e0e7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================== 高保真 Mac 风格工作台窗口 Mockup ==================== */
.app-window {
  background: #131929;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: #1a2337;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #f97066; }
.window-dot.yellow { background: #fdb022; }
.window-dot.green { background: #32d583; }

.window-url {
  margin-left: 12px;
  flex: 1;
  background: #253147;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  padding: 4px 10px;
  font-family: monospace;
}

.app-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 340px;
}

.app-side {
  background: #172134;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #64748b;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.app-side-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.app-side-item.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.app-main {
  padding: 22px;
  background: #1e293b;
}

.app-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.app-title-bar span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: #27354a;
  color: #cbd5e1;
}

.metric-card small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.metric-card strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 4px;
}

.metric-card.primary {
  border-left: 3px solid #818cf8;
}

.metric-card.success {
  border-left: 3px solid #34d399;
}

.chart-box {
  border-radius: 10px;
  background: #27354a;
  padding: 16px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.chart-bars {
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chart-bar {
  flex: 1;
  background: #475569;
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.chart-bar.active {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
}

.chart-bar.highlight {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* ==================== 2. 信任背书横条 (Trust Strip) ==================== */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.trust-grid {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ==================== 3. 核心业务能力 (Features - 对标图 5) ==================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.08);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.feature-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}

/* ==================== 4. 管理看板 Showcase 区域 ==================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.product-copy h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.product-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 16px;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 3px;
}

.check-list strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

.check-list span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-mock {
  border: 1px solid #d8dce5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.dash-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary);
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 4px;
}

.dash-content {
  padding: 20px;
  background: var(--surface);
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-metric-item {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dash-metric-item span {
  font-size: 11px;
  color: var(--muted);
}

.dash-metric-item strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
}

.dash-chart-card {
  margin-top: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dash-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.dash-chart-bars {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.dash-bar {
  flex: 1;
  background: #c7d2fe;
  border-radius: 4px 4px 0 0;
}

.dash-bar.active {
  background: var(--primary);
}

/* ==================== 5. 适用场景 (Scenarios) ==================== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.scenario-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.scenario-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ==================== 6. 部署、安全与服务 ==================== */
.deploy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.deploy-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.deploy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.deploy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.deploy-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.deploy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.update-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--soft);
  border-radius: 0 10px 10px 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.update-note strong {
  color: var(--ink);
}

/* ==================== 7. 价格方案 (Pricing) ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.price-card.recommended {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}

.recommended-label {
  position: absolute;
  top: -13px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.price-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.price-sub {
  color: var(--muted);
  font-size: 13px;
  min-height: 38px;
  margin: 6px 0 16px;
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price-amount small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.price-features li.disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

.price-check {
  color: var(--success);
  font-weight: 900;
}

.price-cross {
  color: #cbd5e1;
}

.price-card .btn {
  width: 100%;
}

/* ==================== 8. 常见问题 FAQ (手风琴) ==================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.faq-intro h2 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}

.faq-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  position: relative;
  user-select: none;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 18px;
  font-size: 24px;
  color: var(--primary);
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: -6px 40px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ==================== 9. 底部行动号召大横幅 (Final CTA) ==================== */
.final-cta {
  margin-top: 72px;
  padding: 44px 48px;
  border-radius: 20px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(36, 38, 79, 0.15);
}

.final-cta h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.final-cta p {
  margin: 0;
  color: #c7cadf;
  font-size: 15px;
}

.final-cta .hero-actions {
  margin: 0;
  flex: none;
}

/* ==================== 响应式断点控制 ==================== */
@media (max-width: 1020px) {
  .hero-grid,
  .product-grid,
  .deploy-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid,
  .scenario-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 110px 0 50px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-lead {
    font-size: 15px;
  }
  .value-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .app-window {
    display: none;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-item {
    border-right: 0;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .feature-grid,
  .scenario-grid,
  .pricing-grid,
  .deploy-panel {
    grid-template-columns: 1fr;
  }
  .dash-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .final-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }
  .final-cta .hero-actions {
    justify-content: center;
  }
}
