/* ============================================
   链金引擎 v58 · 深墨绿+古铜金 设计系统
   Forest Luxe · 供应链金融专属风格
   ============================================ */

:root {
  /* 背景色系 - 深墨绿 */
  --bg-primary: #0a1f1a;
  --bg-secondary: #0d2818;
  --bg-tertiary: #113527;
  --bg-card: #122e22;
  --bg-card-hover: #163d2d;
  --bg-glass: rgba(18,46,34,0.85);

  /* 主色系 - 古铜金 */
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --gold-bright: #e8c97a;
  --gold-dark: #8b6508;
  --gold-glow: rgba(184,134,11,0.35);
  --gold-gradient: linear-gradient(135deg, #e8c97a, #b8860b);

  /* 辅助色 - 翡翠绿 */
  --emerald: #2e8b57;
  --emerald-light: #3cb371;
  --emerald-glow: rgba(46,139,87,0.3);

  /* 文字 */
  --text-primary: #f0f5f2;
  --text-secondary: rgba(240,245,242,0.75);
  --text-muted: rgba(240,245,242,0.5);
  --text-faint: rgba(240,245,242,0.35);

  /* 边框 */
  --border: rgba(184,134,11,0.2);
  --border-light: rgba(240,245,242,0.08);
  --border-card: rgba(184,134,11,0.15);

  /* 状态色 */
  --green: #10b981;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #3b82f6;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 阴影 */
  --shadow-gold: 0 8px 32px var(--gold-glow);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-emerald: 0 8px 32px var(--emerald-glow);

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 滚动动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===== 导航栏 ===== */
.nav-v58 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,31,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.nav-v58.scrolled {
  background: rgba(10,31,26,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-container-v58 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-v58 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-mark-v58 {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1206;
  font-weight: 900;
  font-size: 16px;
}
.nav-links-v58 {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link-v58 {
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link-v58:hover, .nav-link-v58.active {
  color: var(--gold-light);
  background: rgba(184,134,11,0.1);
}
.nav-cta-v58 {
  padding: 8px 20px;
  background: var(--gold-gradient);
  color: #1a1206 !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

/* ===== Hero区 ===== */
.hero-v58 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,134,11,0.12), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(46,139,87,0.15), transparent 60%),
    linear-gradient(160deg, #061410 0%, #0a1f1a 50%, #0d2818 100%);
  overflow: hidden;
  padding-top: 64px;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-v58-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}
.hero-badge-v58 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(184,134,11,0.1);
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title-v58 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-title-v58 .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle-v58 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.hero-subtitle-v58 strong {
  color: var(--gold-light);
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ===== CTA按钮 ===== */
.btn-v58 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-v58-primary {
  background: var(--gold-gradient);
  color: #1a1206;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-v58-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}
.btn-v58-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-v58-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(184,134,11,0.05);
}

/* ===== 数据条 ===== */
.stats-band-v58 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(18,46,34,0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat-item-v58 { text-align: center; }
.stat-num-v58 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stat-label-v58 {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== section通用 ===== */
.section-v58 {
  padding: 100px 0;
  position: relative;
}
.section-header-v58 {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-tag-v58 {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(184,134,11,0.1);
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.section-title-v58 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc-v58 {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== 智能体卡片 ===== */
.agents-grid-v58 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.agent-card-v58 {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  overflow: hidden;
}
.agent-card-v58::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.agent-card-v58:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.agent-card-v58:hover::before { transform: scaleX(1); }
.agent-icon-v58 {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,134,11,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--gold-light);
}
.agent-icon-v58 svg { width: 26px; height: 26px; }
.agent-name-v58 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.agent-desc-v58 {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.agent-phase-v58 {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(46,139,87,0.15);
  color: var(--emerald-light);
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
}

/* ===== 闭环流程 ===== */
.flow-chain-v58 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.flow-node-v58 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-circle-v58 {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 700;
  color: var(--gold-light);
  transition: var(--transition);
}
.flow-circle-v58:hover {
  background: var(--gold-gradient);
  color: #1a1206;
  box-shadow: var(--shadow-gold);
}
.flow-label-v58 {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.flow-arrow-v58 {
  color: var(--gold);
  font-size: 20px;
  opacity: 0.6;
}

/* ===== 资金方卡片 ===== */
.funder-card-v58 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.funder-card-v58:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.funder-header-v58 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.funder-name-v58 {
  font-size: 17px;
  font-weight: 700;
}
.funder-type-v58 {
  font-size: 11px;
  color: var(--emerald-light);
  background: rgba(46,139,87,0.15);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.match-bar-v58 {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin: 12px 0;
}
.match-fill-v58 {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 100px;
  transition: width 1.5s ease;
}
.match-score-v58 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.match-label-v58 { font-size: 13px; color: var(--text-muted); }
.match-value-v58 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
}
.funder-meta-v58 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.funder-meta-label-v58 { color: var(--text-muted); font-size: 11px; }
.funder-meta-value-v58 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2px;
  font-size: 13px;
}

/* ===== 环形评分 ===== */
.radar-ring-v58 {
  position: relative;
  width: 120px;
  height: 120px;
}
.radar-ring-v58 svg { transform: rotate(-90deg); }
.radar-ring-bg-v58 {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}
.radar-ring-fg-v58 {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
}
.radar-ring-text-v58 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.radar-ring-num-v58 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
}
.radar-ring-label-v58 {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== 思考链 ===== */
.thinking-chain-v58 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
}
.chain-step-v58 {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.chain-step-v58:last-child { border-bottom: none; }
.chain-time-v58 {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 50px;
  font-variant-numeric: tabular-nums;
}
.chain-dot-v58 {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.chain-text-v58 {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== 骨架屏 ===== */
.skeleton-v58 {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(184,134,11,0.06) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== 定价 ===== */
.pricing-grid-v58 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pricing-card-v58 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}
.pricing-card-v58.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(184,134,11,0.08), var(--bg-card));
  transform: scale(1.03);
}
.pricing-card-v58:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.pricing-badge-v58 {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #1a1206;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-name-v58 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-price-v58 {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.pricing-period-v58 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-features-v58 {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features-v58 li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features-v58 li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: 700;
}

/* ===== 痛点区 ===== */
.pain-grid-v58 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card-v58 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.pain-card-v58:hover {
  border-color: var(--red);
}
.pain-icon-v58 {
  font-size: 32px;
  margin-bottom: 16px;
}
.pain-title-v58 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--red);
}
.pain-desc-v58 {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer-v58 {
  background: #061410;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid-v58 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-v58 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-desc-v58 {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col-title-v58 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold-light);
}
.footer-links-v58 {
  list-style: none;
}
.footer-links-v58 li {
  padding: 6px 0;
}
.footer-links-v58 a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links-v58 a:hover {
  color: var(--gold-light);
}
.footer-bottom-v58 {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== 动画 ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .agents-grid-v58 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-v58 { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-band-v58 { grid-template-columns: repeat(2, 1fr); }
  .pain-grid-v58 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-v58 { grid-template-columns: repeat(2, 1fr); }
  .nav-links-v58 { display: none; }
}
@media (max-width: 640px) {
  .agents-grid-v58 { grid-template-columns: 1fr; }
  .pricing-grid-v58 { grid-template-columns: 1fr !important; }
  .stats-band-v58 { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 16px; }
  .pain-grid-v58 { grid-template-columns: 1fr; }
  .flow-chain-v58 { flex-direction: column; }
  .flow-arrow-v58 { transform: rotate(90deg); }
  .footer-grid-v58 { grid-template-columns: 1fr; }
  .section-v58 { padding: 60px 0; }
}

.logo-img-v58 {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.footer-logo-img-v58 {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-img-v58 {
  height: 44px !important;
  width: auto !important;
  object-fit: contain;
}
.footer-logo-img-v58 {
  height: 36px !important;
  width: auto !important;
  object-fit: contain;
}

.logo-img-v58 {
  height: 48px !important;
  width: auto !important;
  object-fit: contain;
  border-radius: 10px;
}
.footer-logo-img-v58 {
  height: 40px !important;
  width: auto !important;
  object-fit: contain;
  border-radius: 8px;
}

/* 导航栏布局修复 */
.nav-container-v58 {
  justify-content: flex-start !important;
  gap: 32px;
}
.nav-links-v58 {
  margin-left: auto !important;
}

/* 导航栏布局：logo与菜单紧挨，对标高盛/摩根士丹利 */
.nav-container-v58 {
  justify-content: flex-start !important;
  gap: 0 !important;
}
.nav-logo-v58 {
  margin-right: 28px !important;
}
.nav-links-v58 {
  margin-left: 0 !important;
  gap: 2px !important;
}

/* ===== 移动端汉堡菜单 ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 1101;
  border-radius: 8px;
}
.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary, #e0e0e0);
  margin: 2.5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }
  .nav-links-v58 {
    position: fixed !important;
    top: 64px;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    height: calc(100vh - 64px);
    background: rgba(10,31,26,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 4px !important;
    margin-left: 0 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex !important;
  }
  .nav-links-v58.mobile-open {
    right: 0;
  }
  .nav-links-v58 .nav-link-v58 {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav-links-v58 .nav-cta-v58 {
    margin-left: 0 !important;
    margin-top: 12px;
    text-align: center;
  }
}
