/* ═══════════════════════════════════════════════════════════
   assets/css/pages/home.css — 首页 v5
   专业Hero: 全屏背景 + 结构化证据卡片 + 编号服务 + IP方向
   ═══════════════════════════════════════════════════════════ */

/* ╔══════════════════════════════════════════════════════════╗
   ║ 1. Hero — 全屏主图 + 双列：文字左 / 证据卡片右              ║
   ╚══════════════════════════════════════════════════════════╝ */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  background: var(--color-text-primary);
}

/* 全屏背景图片 */
.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: var(--z-base);
}

/* 深色渐变遮罩 */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* 内容层 — 双列：文字左 + 证据卡片右 */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ── 右侧证据卡片（替代散乱贴图） ── */
.hero-evidence {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-evidence-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.625rem;
  transition: all var(--transition-base);
}
.hero-evidence-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-4px);
}

.hero-evidence-image {
  width: 80px;
  height: 60px;
  min-width: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-evidence-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  line-height: 1.5;
}
.hero-evidence-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.hero-evidence-text p {
  margin: 0;
  font-weight: var(--fw-medium);
}

/* ── 品牌标签 ── */
.hero-eyebrow {
  font-size: var(--text-eyebrow);
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  font-weight: var(--fw-semibold);
}

/* ── 主标题 ── */
.hero-title {
  margin-bottom: 1.5rem;
  line-height: var(--lh-tight);
  color: #fff;
}
.text-highlight {
  color: var(--color-accent-400);
}

/* ── 描述文字 ── */
.hero-desc {
  font-size: var(--text-lead);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: var(--lh-relaxed);
}

/* ── Hero统计数字 ── */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-stat + .hero-stat {
  padding-left: 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat .count-up {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 800;
  color: var(--color-accent-400);
  line-height: 1;
}
.hero-stat .hero-stat-unit {
  font-size: 1.5rem;
  color: var(--color-accent-400);
  font-weight: var(--fw-semibold);
  margin-left: 2px;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  font-weight: var(--fw-medium);
}

/* ── CTA按钮 ── */
.hero-cta {
  display: flex;
  gap: 1rem;
}

/* ── 滚动提示 ── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.scroll-indicator span {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent-400), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator span { animation: none; opacity: 0.5; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 2. Logo墙                                                ║
   ╚══════════════════════════════════════════════════════════╝ */

.logo-wall {
  background: var(--color-white);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}
.logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2.5rem 3.5rem; margin-top: 2rem;
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: default;
}
.logo-item img {
  max-height: 42px; max-width: 130px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--transition-base);
}
.logo-item:hover img {
  filter: grayscale(0%); opacity: 1;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 3. 服务预览                                              ║
   ╚══════════════════════════════════════════════════════════╝ */

.services-preview {
  background: var(--color-bg-page);
}
.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 4. 数据说服力区                                          ║
   ╚══════════════════════════════════════════════════════════╝ */

.stats-section {
  background: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(249,115,22,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.stats-section .section-title { color: var(--color-white); position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 920px;
  margin: 3rem auto 0;
  position: relative;
}
.stats-section .stat-card {
  padding: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  transition: all var(--transition-base);
}
.stats-section .stat-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.stats-section .stat-number { color: var(--color-accent-400); }
.stats-section .stat-unit { color: var(--color-accent-400); }
.stats-section .stat-label { color: rgba(255,255,255,0.8); }

/* ╔══════════════════════════════════════════════════════════╗
   ║ 5. IP资源方向（芯片式）                                   ║
   ╚══════════════════════════════════════════════════════════╝ */

.ip-section { background: var(--color-white); }
.ip-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.ip-chip {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.ip-chip:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-200);
  transform: translateY(-1px);
}
.ip-chip-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: var(--fw-bold);
}
.ip-chip-name {
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.ip-chip-tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
  text-align: right;
  line-height: 1.3;
}
.ip-chip-link {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-50);
  transition: all var(--transition-fast);
}
.ip-chip-link:hover { background: var(--color-primary); color: #fff; }

/* ╔══════════════════════════════════════════════════════════╗
   ║ 6. 精选案例                                              ║
   ╚══════════════════════════════════════════════════════════╝ */

.cases-preview { background: var(--color-bg-page); }
.cases-featured { display: flex; flex-direction: column; gap: 2rem; }

/* ╔══════════════════════════════════════════════════════════╗
   ║ 7. 核心优势区                                            ║
   ╚══════════════════════════════════════════════════════════╝ */

.advantages-section { background: var(--color-white); position: relative; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.advantage-card {
  text-align: center; padding: 2.5rem 1.5rem; position: relative;
  transition: all var(--transition-base);
}
.advantage-card:hover { transform: translateY(-4px); }
.advantage-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: var(--color-primary-100); line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--transition-base);
}
.advantage-card:hover .advantage-number { color: var(--color-primary-200); }
.advantage-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.advantage-card p {
  font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 8. 全球执行网络                                           ║
   ╚══════════════════════════════════════════════════════════╝ */

.global-section {
  background: var(--gradient-dark); color: #fff;
  position: relative; overflow: hidden;
}
.global-section::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.global-inner { align-items: center; position: relative; z-index: 1; }
.global-text h2 {
  color: #fff; margin-bottom: 1.25rem;
  font-size: var(--text-section-title);
}
.global-text p {
  color: rgba(255,255,255,0.75); margin-bottom: 2rem;
  line-height: var(--lh-relaxed); font-size: var(--text-body-lg);
}
.global-list { list-style: none; padding: 0; }
.global-list li {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.85); padding: 0.75rem 1rem;
  font-size: 1.0625rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm); margin-bottom: 0.5rem;
  border-left: 3px solid var(--color-accent);
  transition: all var(--transition-fast);
}
.global-list li:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--color-accent-400);
}
.global-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--color-accent); flex-shrink: 0;
}
.global-map { display: flex; justify-content: center; }
.map-placeholder {
  width: 100%; max-width: 400px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 9. CTA                                                   ║
   ╚══════════════════════════════════════════════════════════╝ */

.cta-section {
  background: var(--color-text-primary);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(26,86,219,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 {
  color: #fff; font-size: var(--text-section-title); margin-bottom: 1rem;
}
.cta-section .section-subtitle {
  color: rgba(255,255,255,0.65); margin-bottom: 2.5rem;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║ 10. 响应式                                               ║
   ╚══════════════════════════════════════════════════════════╝ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-grid-home { grid-template-columns: repeat(2, 1fr); }

  /* Hero平板：证据卡片缩小 */
  .hero-inner { grid-template-columns: 1fr 280px; gap: 2rem; }
  .hero-evidence-card { padding: 0.5rem; }
  .hero-evidence-image { width: 60px; height: 45px; min-width: 60px; }
  .hero-evidence-text { font-size: 0.6875rem; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; gap: 1.5rem; }
  .hero-stat + .hero-stat { padding-left: 1.5rem; }
  .hero-stat .count-up { font-size: 2rem; }
  .hero-stat .hero-stat-unit { font-size: 1.125rem; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }

  /* 证据卡片：水平排列，不隐藏 */
  .hero-evidence {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .hero-evidence-card {
    flex: 0 0 auto;
    max-width: 300px;
  }

  .logo-grid { gap: 1rem 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-section .stat-card { padding: 1.5rem 1rem; }
  .ip-grid-home { grid-template-columns: 1fr 1fr; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .case-feature-card, .case-feature-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-feature-card:nth-child(even) .case-feature-image { order: 0; }
  .case-feature-image { max-height: 240px; }
  .global-inner { grid-template-columns: 1fr; }
  .global-text { text-align: center; }
  .global-list li { text-align: left; }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 64px;
  }
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
  .hero-inner { gap: 1.25rem; }
  .hero-title { margin-bottom: 1rem; }
  .hero-desc { margin-bottom: 1.5rem; font-size: 1rem; }
  .hero-stats { flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
  .hero-stat + .hero-stat { padding-left: 0.75rem; }
  .hero-stat .count-up { font-size: 1.5rem; }
  .hero-stat .hero-stat-unit { font-size: 0.875rem; }
  .hero-stat-label { font-size: 0.6875rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* 移动端证据卡片：堆叠排列 */
  .hero-evidence {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-evidence-card { width: 100%; max-width: 280px; }
  .scroll-indicator { display: none; }

  .logo-grid { gap: 1rem 1.25rem; }
  .logo-item img { max-height: 32px; max-width: 100px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .ip-grid-home { grid-template-columns: 1fr; }
}

/* ── 超窄屏 (375-430px): 确保无横向溢出 ── */
@media (max-width: 430px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 64px;
  }
  .hero-eyebrow {
    font-size: 0.75rem;
    word-break: break-word;
  }
  .hero-title {
    font-size: 1.75rem;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 0.9375rem;
    word-break: break-word;
  }
  .hero-stats {
    gap: 0.5rem;
    justify-content: center;
  }
  .hero-stat + .hero-stat {
    padding-left: 0.5rem;
    border-left-width: 1px;
  }
  .hero-stat .count-up {
    font-size: 1.25rem;
  }
  .hero-stat .hero-stat-unit {
    font-size: 0.75rem;
  }
  .hero-stat-label {
    font-size: 0.625rem;
  }
  .hero-evidence-card {
    max-width: 260px;
  }
  .hero-evidence-image {
    width: 56px;
    height: 42px;
    min-width: 56px;
  }
  .hero-evidence-text {
    font-size: 0.6875rem;
  }
}
