/* ============================================================
   融资AI页（financing-ai.html）专属样式
   依赖 assets/ai-agents.css 提供的基础设计系统与组件
   ============================================================ */

/* ---------- 首屏流动光影：独立装饰图层，不改变正文 ---------- */
.page-hero {
  background: linear-gradient(105deg, #fff 0%, #f8fcf9 53%, #e5f1e9 100%);
}
.page-hero::before,
.page-hero::after { display: none; }
.financing-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.financing-hero-art .flow-upper {
  animation: financing-flow-upper 7s ease-in-out infinite alternate;
}
.financing-hero-art .flow-lower {
  animation: financing-flow-lower 9s ease-in-out infinite alternate;
}
.financing-hero-art .flow-shimmer {
  animation: financing-shimmer 5.5s ease-in-out infinite alternate;
}
@keyframes financing-flow-upper {
  from { transform: translate3d(-75px, -24px, 0) rotate(-2deg); opacity: .72; }
  to { transform: translate3d(75px, 25px, 0) rotate(2deg); opacity: 1; }
}
@keyframes financing-flow-lower {
  from { transform: translate3d(95px, 27px, 0) rotate(2deg); opacity: .65; }
  to { transform: translate3d(-90px, -26px, 0) rotate(-2deg); opacity: 1; }
}
@keyframes financing-shimmer {
  from { transform: translate3d(-70px, 0, 0); opacity: .38; }
  to { transform: translate3d(100px, -12px, 0); opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .financing-hero-art .flow-upper,
  .financing-hero-art .flow-lower,
  .financing-hero-art .flow-shimmer { animation: none; }
}

/* ---------- 指标数据条 ---------- */
.metric-banner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border: 1px solid rgba(27, 94, 32, 0.14);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
}
.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: #33691E;
  letter-spacing: 0.04em;
}
.metric-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(27,94,32,0.4);
}
.metric-arrow {
  font-size: 15px;
  color: #1B5E20;
  font-weight: 700;
}
.metric-new {
  font-size: 15px;
  font-weight: 700;
  color: #1B5E20;
}

/* ---------- 效率对比表 ---------- */
.eff-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 4px 24px rgba(27, 94, 32, 0.06);
}
.eff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.eff-table thead th {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: #1B5E20;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  text-align: left;
  padding: 16px 22px;
  border-bottom: 2px solid rgba(27, 94, 32, 0.10);
  white-space: nowrap;
}
.eff-table tbody td {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: 1.6;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.eff-table tbody tr:last-child td { border-bottom: none; }
.eff-table tbody tr:hover { background: rgba(232, 245, 233, 0.35); }
.eff-name {
  font-weight: 600;
  color: var(--fg);
}
.eff-new {
  font-weight: 700;
  color: #1B5E20;
}
.eff-gain {
  font-weight: 700;
  color: #558B2F;
}
.eff-note {
  margin-top: 24px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- 场景标签 ---------- */
.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.scene-tags span {
  font-size: 13px;
  color: #33691E;
  background: rgba(139, 195, 74, 0.14);
  border: 1px solid rgba(27, 94, 32, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  line-height: 1.5;
}

/* ---------- Hero 指标数据卡 ---------- */
.deploy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.deploy-stat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.deploy-stat-k {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #1B5E20;
  line-height: 1.25;
  margin-bottom: 6px;
}
.deploy-stat-v {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 四步流程（标准样式：图片卡片轮播） ---------- */
.services-grid-wrapper {
  position: relative;
}
.services-grid {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: #1B5E20 var(--surface);
}
.services-grid::-webkit-scrollbar { height: 10px; }
.services-grid::-webkit-scrollbar-track { background: #e8f5e9; border-radius: 5px; margin: 0 20px; }
.services-grid::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #1B5E20, #2E7D32); border-radius: 5px; min-width: 80px; border: 2px solid #e8f5e9; }
.services-grid::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #2E7D32, #388E3C); }

.services-grid-wrapper::before,
.services-grid-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 30px;
  width: 60px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.services-grid-wrapper::before { left: 0; background: linear-gradient(90deg, #ffffff 0%, transparent 100%); }
.services-grid-wrapper::after { right: 0; background: linear-gradient(-90deg, #ffffff 0%, transparent 100%); }

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1B5E20;
  color: #1B5E20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.scroll-arrow:hover { background: #1B5E20; color: #ffffff; transform: translateY(-50%) scale(1.1); }
.scroll-arrow:active { transform: translateY(-50%) scale(0.95); }
.scroll-arrow--left { left: -22px; }
.scroll-arrow--right { right: -22px; }
.scroll-arrow svg { width: 20px; height: 20px; }

.scroll-dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 0; }
.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4e8e0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.scroll-dot:hover { background: #a5d6a7; transform: scale(1.2); }
.scroll-dot.active { background: #1B5E20; border-color: #8BC34A; transform: scale(1.4); box-shadow: 0 2px 8px rgba(27,94,32,0.3); }

.service {
  position: relative;
  min-width: 320px;
  max-width: 360px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.service:hover { border-color: #1B5E20; box-shadow: 0 12px 40px rgba(27,94,32,0.12); }
.service-img { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.service:hover .service-img img { transform: scale(1.05); }
.service-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #8BC34A;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  z-index: 2;
}
.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.82) 100%);
  color: #fff;
  z-index: 2;
}
.service-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: #fff;
}
.service-overlay .service-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

/* ---------- 响应式 ---------- */
@media (max-width: 833px) {
  .deploy-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .service { min-width: 280px; max-width: 320px; }
  .scroll-arrow--left { left: 8px; }
  .scroll-arrow--right { right: 8px; }
  .metric-banner { gap: 8px; padding: 8px 16px; }
  .metric-old { font-size: 12px; }
  .metric-new { font-size: 13px; }
  .eff-table tbody td { padding: 14px 16px; font-size: var(--text-sm); }
  .eff-table thead th { padding: 12px 16px; font-size: var(--text-sm); }
}



