/* ========================================
   HOME PAGE V2 ENHANCEMENTS
   世界级 B2B 科技公司官网首页优化
   ======================================== */

/* ===== NAVIGATION ENHANCEMENTS ===== */
#hdr {
  background: rgba(6, 10, 24, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease;
}

#hdr.scrolled {
  background: rgba(6, 10, 24, 0.82);
}

/* Logo 放大 */
.brand img {
  height: 90px !important;
  width: auto;
}

/* 导航文字对比度提升 */
.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

/* 语言切换按钮优化 */
.lang {
  gap: 4px;
}

.lang button {
  font-size: 13px;
  padding: 6px 10px;
  opacity: 0.7;
}

.lang button.active {
  opacity: 1;
}

/* ===== UNIFIED HERO STYLES FOR ALL PAGES ===== */

/* 统一 Hero 背景图蒙版 - 左深右浅，保证文字可读性 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(90deg, 
      rgba(3, 7, 18, 0.92) 0%, 
      rgba(3, 7, 18, 0.72) 36%, 
      rgba(3, 7, 18, 0.28) 72%, 
      rgba(3, 7, 18, 0.45) 100%
    ),
    linear-gradient(180deg, 
      rgba(3, 7, 18, 0.15) 0%, 
      rgba(3, 7, 18, 0.72) 100%
    );
  pointer-events: none;
}

/* 确保 Hero 文字内容在最上层 */
.hero .hero-inner {
  position: relative;
  z-index: 10;
}

/* 确保其他装饰层在文字下方 */
.hero .hero-visual,
.hero .scan {
  z-index: 1;
}

/* 统一 Hero 背景图定位 */
.hero .hero-bg img {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  object-position: center right;
}

/* ===== HERO V2 ===== */
.home-hero-v2 {
  min-height: 95vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 0 80px;
  position: relative;
}

.home-hero-v2 .hero-bg::after {
  background: radial-gradient(
    ellipse at 30% 50%,
    transparent 0%,
    rgba(6, 10, 24, 0.4) 100%
  );
}

.home-hero-v2 .hero-bg img {
  object-position: 65% center;
  opacity: 0.75;
}

/* Hero 内容区域 */
.hero-content-v2 {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* Hero Kicker (Eyebrow) */
.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.95);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.js .hero-kicker {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.1s;
}

/* Hero 主标题 - 超大字号 */
.hero-title-v2 {
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 920px;
  color: #ffffff;
}

.hero-title-v2 .l {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.js .hero-title-v2 .l:nth-child(1) {
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 0.3s;
}

.js .hero-title-v2 .l:nth-child(2) {
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 0.5s;
}

/* Hero 副标题 - 控制在2行 */
.hero-subtitle-v2 {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 40px;
  max-width: 720px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
}

.js .hero-subtitle-v2 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

/* Hero CTA 按钮行 */
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

.js .hero-cta-row {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* Hero 能力标签 */
.hero-capability-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.js .hero-capability-tags {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.1s;
}

.hero-capability-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(199, 179, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-capability-tags .tag:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* ===== POSITIONING SECTION ===== */
.home-positioning-section {
  padding: 120px 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 24, 0) 0%,
    rgba(20, 25, 45, 0.3) 50%,
    rgba(6, 10, 24, 0) 100%
  );
  position: relative;
}

.home-positioning-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139, 92, 246, 0.15) 50%,
    transparent 100%
  );
}

/* Physical AI Flow - 三段式能力条 */
.physical-ai-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 64px;
}

.flow-card {
  background: rgba(20, 25, 45, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-card:hover {
  background: rgba(20, 25, 45, 0.6);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: rgba(199, 179, 255, 0.95);
  margin-bottom: 20px;
}

.flow-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

.flow-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
}

.flow-detail {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(139, 92, 246, 0.75);
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
}

.flow-arrow {
  background: transparent;
  color: #c026d3;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  align-self: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .physical-ai-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flow-arrow {
    display: none;
  }
  
  .hero-content-v2 {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .home-hero-v2 {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero-content-v2 {
    padding: 0 24px;
  }
  
  .hero-title-v2 {
    font-size: 36px;
    margin-bottom: 24px;
  }
  
  .hero-subtitle-v2 {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .hero-cta-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-lg {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .hero-capability-tags {
    gap: 8px;
  }
  
  .hero-capability-tags .tag {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .brand img {
    height: 28px !important;
  }
  
  .home-positioning-section {
    padding: 80px 0;
  }
  
  .flow-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title-v2 {
    font-size: 32px;
  }
  
  .hero-subtitle-v2 {
    font-size: 15px;
  }
  
  .hero-kicker {
    font-size: 12px;
  }
}
