/* ============================================================
   首页专属样式 — index.css v3.0
   品牌升级版：增强首屏冲击力 · 优化视觉层次
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* 背景装饰 */
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(30, 64, 175, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 浮动装饰球 */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-decoration-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-decoration-2 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: -50px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

.hero-decoration-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 15%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite;
  animation-delay: -5s;
}

/* 网格背景 */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 64, 175, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  flex: 1;
  padding-bottom: 100px;
}

/* 左：文字区 */
.hero-copy { }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  color: var(--brand);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.hero-h1 .accent {
  position: relative;
  color: var(--brand);
  background: none;
  -webkit-text-fill-color: var(--brand);
  background-clip: unset;
}

.hero-h1 .accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-lead {
  margin-top: 0;
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 500px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.trust-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 14px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* 右：视觉卡片 */
.hero-visual {
  position: relative;
}

/* 产品卡片容器 */
.hero-card-container {
  position: relative;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 产品卡片 - 增强版 */
.hero-product-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  transition: all var(--dur-normal) var(--ease-out-back);
  overflow: hidden;
}

.hero-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.hero-product-card:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-border);
}

.hero-product-card:hover::before {
  opacity: 1;
}

/* 主推产品卡片高亮 */
.hero-product-card.featured {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
  border-color: var(--brand-border);
}

.hero-product-card.featured::before {
  opacity: 1;
}

.product-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out-back);
}

.hero-product-card:hover .product-card-icon {
  transform: scale(1.1) rotate(3deg);
}

.product-card-icon.blue  { background: var(--brand-soft); }
.product-card-icon.green { background: var(--green-soft); }
.product-card-icon.sky   { background: var(--sky-soft);   }
.product-card-icon.gray  { background: var(--bg-muted);   }

.product-card-body {
  flex: 1;
  min-width: 0;
}

.product-card-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-card-tag {
  flex-shrink: 0;
}

/* 指标条 */
.hero-stats {
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px 40px;
  border-right: 1px solid var(--line);
}

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

.stat-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 3px;
  height: 50%;
  background: var(--gradient-brand);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -.03em;
}

.stat-num span {
  font-size: .55em;
  font-weight: 700;
  color: var(--brand);
  margin-left: 2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── 产品矩阵 ─────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-tile {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-normal) var(--ease-out-back);
  overflow: hidden;
}

.product-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur-normal) ease;
}

.product-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-normal) ease;
  pointer-events: none;
}

.product-tile:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-border);
  transform: translateY(-8px);
}

.product-tile:hover::before { opacity: 1; }
.product-tile:hover::after { opacity: 1; }

.product-tile.featured {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 50%);
}

.product-tile.featured::before { opacity: 1; }

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tile-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform var(--dur-normal) var(--ease-out-back);
}

.product-tile:hover .tile-icon {
  transform: scale(1.1) rotate(-3deg);
}

.tile-icon.blue  { background: var(--brand-soft); }
.tile-icon.green { background: var(--green-soft); }
.tile-icon.sky   { background: var(--sky-soft);   }
.tile-icon.gray  { background: var(--bg-muted);   }

/* 真实图片图标变体 */
.tile-icon--img {
  background: none;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-card-icon--img {
  background: none;
  padding: 0;
  overflow: hidden;
}

.tile-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.product-tile h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.tile-sub {
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}

.tile-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.tile-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.tile-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
}

.tile-points li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-border);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l4 4 6-7' stroke='%231E40AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}

.tile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── 解决方案 ─────────────────────────────────────────────── */
.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  transition: all var(--dur-normal) var(--ease-out-back);
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-border);
  transform: translateX(4px);
}

.solution-card:hover::before {
  opacity: 1;
}

.sol-cell {}

.sol-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sol-label-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.sol-label.problem { color: #B45309; }
.sol-label.problem .sol-label-icon { background: #FEF3C7; }
.sol-label.action  { color: var(--brand); }
.sol-label.action .sol-label-icon { background: var(--brand-soft); }
.sol-label.result  { color: var(--green); }
.sol-label.result .sol-label-icon { background: var(--green-soft); }

.sol-cell p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── 公司能力 ─────────────────────────────────────────────── */
.capability-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cap-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all var(--dur-normal) var(--ease-out-back);
  overflow: hidden;
}

.cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.cap-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cap-card:hover::before {
  opacity: 1;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--brand);
  transition: transform var(--dur-fast) var(--ease-out-back);
}

.cap-card:hover .cap-icon {
  transform: scale(1.1) rotate(5deg);
}

.cap-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.cap-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 序号 */
.cap-num {
  display: block;
  font-family: var(--font-en), monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .15em;
  margin-bottom: 18px;
  opacity: .5;
}

.cap-icon { display: none; }

/* 合作路径 */
.roadmap {
  position: relative;
  background: var(--gradient-brand);
  border-radius: var(--r-2xl);
  padding: 48px 44px;
  color: rgba(255,255,255,.9);
  overflow: hidden;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}

.roadmap::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 60%);
  pointer-events: none;
}

.roadmap h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.roadmap-step {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
  z-index: 1;
}

.roadmap-step:last-child { margin-bottom: 0; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.step-content strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content span {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

/* 步骤连接线 */
.roadmap-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.1) 100%);
}

/* ── 联系 CTA ─────────────────────────────────────────────── */
.home-cta {
  position: relative;
  background: linear-gradient(135deg, #0B1628 0%, #1E293B 100%);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(30, 64, 175, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.home-cta .container { position: relative; z-index: 1; }

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 24px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}

.cta-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.home-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.home-cta p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-white {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.btn-white:hover {
  background: #F0F9FF;
  border-color: #F0F9FF;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-3px);
}

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-copy { max-width: 600px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .capability-wrap { grid-template-columns: 1fr; gap: 48px; }
  .solution-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .home-hero { padding-top: calc(var(--nav-h) + 60px); min-height: auto; }
  .hero-inner { padding-bottom: 60px; }
  .hero-decoration { display: none; }
  .products-grid { grid-template-columns: 1fr; gap: 24px; }
  .solution-card { grid-template-columns: 1fr; gap: 24px; }
  .capability-grid { grid-template-columns: 1fr; gap: 16px; }
  .roadmap { padding: 36px 28px; }
  .home-cta { padding: 80px 0; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .hero-inner { gap: 40px; padding-bottom: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2) { border-bottom: 0; }
  .product-tile { padding: 32px 24px; }
  .solution-card { padding: 28px 24px; }
  .cap-card { padding: 28px 24px; }
  .roadmap { padding: 32px 24px; border-radius: var(--r-xl); }
  .step-content strong { font-size: 16px; }
  .home-cta h2 { font-size: 28px; }
  .home-cta p { font-size: 16px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
