/* ============================================================
   EuroWarehouse - 首页专属样式
   home.css
============================================================ */

/* ── Hero 区 ─────────────────────────────────────────────── */
.ew-hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #020c1b 0%, #061539 40%, #0A2463 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.ew-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.ew-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.ew-hero-orb--1 {
  width: 600px; height: 600px;
  background: #00D4FF;
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.ew-hero-orb--2 {
  width: 400px; height: 400px;
  background: #D4AF37;
  bottom: -80px; left: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.ew-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ew-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ew-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}

.ew-hero-badge-dot {
  width: 8px; height: 8px;
  background: #00D4FF;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ew-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.ew-hero-title-highlight {
  background: linear-gradient(135deg, #00D4FF, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ew-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.ew-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.ew-btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; }
.ew-btn-cyan { background: #00D4FF; color: #061539; font-weight: 700; }
.ew-btn-cyan:hover { background: #00b8e0; color: #061539; transform: translateY(-2px); }
.ew-btn-outline-dark { border: 2px solid #2D3448; color: #2D3448; background: transparent; }
.ew-btn-outline-dark:hover { background: #0A2463; color: #fff; border-color: #0A2463; }

.ew-hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ew-hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ew-hero-trust-num {
  font-size: 1.375rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.ew-hero-trust-item span:last-child {
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
  margin-top: 0.2rem;
}

.ew-hero-trust-sep {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,.2);
}

/* Hero 右侧地图卡片 */
.ew-hero-map-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.ew-hero-map-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ew-hero-map-countries { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1.5rem; }

.ew-hero-map-pin {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.25s ease;
}
.ew-hero-map-pin:hover { background: rgba(255,255,255,.1); border-color: rgba(0,212,255,.3); }

.ew-hero-map-pin-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.ew-hero-map-pin--fr .ew-hero-map-pin-dot { background: #002395; box-shadow: 0 0 8px #002395; }
.ew-hero-map-pin--de .ew-hero-map-pin-dot { background: #FFCE00; box-shadow: 0 0 8px #FFCE00; }
.ew-hero-map-pin--it .ew-hero-map-pin-dot { background: #009246; box-shadow: 0 0 8px #009246; }
.ew-hero-map-pin--es .ew-hero-map-pin-dot { background: #AA151B; box-shadow: 0 0 8px #AA151B; }

.ew-hero-map-pin-info strong { display: block; font-size: 0.875rem; color: #fff; }
.ew-hero-map-pin-info span { font-size: 0.75rem; color: rgba(255,255,255,.55); }

.ew-hero-map-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ew-hero-map-stats div { text-align: center; }
.ew-hero-map-stats strong { display: block; font-size: 1.25rem; font-weight: 900; color: #00D4FF; }
.ew-hero-map-stats span { font-size: 0.7rem; color: rgba(255,255,255,.55); }

/* ── 服务入口区 ───────────────────────────────────────────── */
.ew-section { padding: 6rem 0; }

.ew-section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.ew-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ew-service-entry-card {
  background: #fff;
  border: 1px solid #E2E6EF;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ew-service-entry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A2463, #E63946);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ew-service-entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: transparent;
}
.ew-service-entry-card:hover::after { transform: scaleX(1); }

.ew-service-entry-card--battery {
  background: linear-gradient(160deg, #0D1B2A, #0a2040);
  border-color: rgba(0,212,255,.2);
  grid-column: span 2;
}
.ew-service-entry-card--battery::after {
  background: linear-gradient(90deg, #00D4FF, #0A2463);
}
.ew-service-entry-card--battery .ew-service-entry-body h3,
.ew-service-entry-card--battery .ew-service-entry-body p,
.ew-service-entry-card--battery .ew-service-entry-link {
  color: rgba(255,255,255,.9);
}
.ew-service-entry-card--battery .ew-service-entry-link { color: #00D4FF; }

.ew-service-entry-card--cta {
  background: linear-gradient(160deg, #0A2463, #1E3A8A);
  border-color: transparent;
}
.ew-service-entry-card--cta .ew-service-entry-body h3,
.ew-service-entry-card--cta .ew-service-entry-body p,
.ew-service-entry-card--cta .ew-service-entry-link { color: rgba(255,255,255,.9); }

.ew-service-entry-icon { font-size: 2.25rem; }
.ew-service-entry-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: rgba(0,212,255,.15);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.ew-service-entry-body h3 { font-size: 1.0625rem; font-weight: 700; color: #061539; margin-bottom: 0.5rem; }
.ew-service-entry-body p { font-size: 0.875rem; color: #5A6478; line-height: 1.65; flex: 1; }
.ew-service-entry-link { font-size: 0.875rem; font-weight: 600; color: #0A2463; }

/* ── 四国仓库区 ───────────────────────────────────────────── */
.ew-countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ew-country-card {
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.ew-country-card:hover { transform: translateY(-6px); }
.ew-country-card--france  { background: linear-gradient(160deg, #001a70, #002395, #0032c8); }
.ew-country-card--germany { background: linear-gradient(160deg, #111, #2a2a2a, #444); }
.ew-country-card--italy   { background: linear-gradient(160deg, #005a28, #009246, #00b857); }
.ew-country-card--spain   { background: linear-gradient(160deg, #6a0a0d, #AA151B, #cc1a21); }

.ew-country-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ew-country-flag { font-size: 2.5rem; }
.ew-country-badge {
  padding: 0.25rem 0.625rem;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ew-country-card h3 { font-size: 1.375rem; font-weight: 800; margin-bottom: 0.375rem; }
.ew-country-location { font-size: 0.8125rem; color: rgba(255,255,255,.7); margin-bottom: 1.25rem; }
.ew-country-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ew-country-features li { font-size: 0.875rem; color: rgba(255,255,255,.85); }

/* ── 纯电池 Banner ────────────────────────────────────────── */
.ew-battery-banner-section {
  position: relative;
  background: #0D1B2A;
  padding: 6rem 0;
  overflow: hidden;
}
.ew-battery-banner-bg { position: absolute; inset: 0; }
.ew-battery-banner-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.ew-battery-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ew-battery-banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 1rem 0;
}

.ew-battery-banner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.ew-battery-banner-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.ew-battery-icon-display {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ew-battery-icon-main {
  font-size: 6rem;
  position: relative;
  z-index: 3;
  animation: batteryPulse 3s ease-in-out infinite;
}

@keyframes batteryPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0,212,255,.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(0,212,255,.7)); }
}

.ew-battery-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringExpand 3s ease-in-out infinite;
}
.ew-battery-icon-ring--1 { width: 140px; height: 140px; animation-delay: 0s; }
.ew-battery-icon-ring--2 { width: 210px; height: 210px; animation-delay: 0.5s; }
.ew-battery-icon-ring--3 { width: 280px; height: 280px; animation-delay: 1s; }

@keyframes ringExpand {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

.ew-battery-float-tag {
  position: absolute;
  background: rgba(0,212,255,.12);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00D4FF;
  white-space: nowrap;
  z-index: 4;
}
.ew-battery-float-tag--1 { top: 10%; right: -10%; animation: floatTag 4s ease-in-out infinite; }
.ew-battery-float-tag--2 { bottom: 20%; right: -15%; animation: floatTag 4s ease-in-out infinite 1s; }
.ew-battery-float-tag--3 { bottom: 10%; left: -5%; animation: floatTag 4s ease-in-out infinite 2s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── 数据统计区 ───────────────────────────────────────────── */
.ew-stats-section { background: #fff; padding: 5rem 0; }
.ew-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.ew-stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  background: #F8F9FC;
  border: 1px solid #E2E6EF;
  transition: all 0.25s ease;
}
.ew-stat-card:hover { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.ew-stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.ew-stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0A2463;
  line-height: 1;
  display: inline;
}
.ew-stat-suffix { font-size: 1.5rem; font-weight: 700; color: #E63946; display: inline; }
.ew-stat-label { font-size: 0.8125rem; color: #9BA3B4; margin-top: 0.5rem; }

/* ── 服务流程区 ───────────────────────────────────────────── */
.ew-home-process-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}
.ew-home-process-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  position: relative;
}
.ew-home-process-num {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: #E63946;
  color: #fff;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ew-home-process-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ew-home-process-step h4 { font-size: 1rem; font-weight: 700; color: #061539; margin-bottom: 0.5rem; }
.ew-home-process-step p { font-size: 0.8125rem; color: #9BA3B4; line-height: 1.6; }
.ew-home-process-arrow {
  font-size: 1.5rem;
  color: #0A2463;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ── 客户评价区 ───────────────────────────────────────────── */
.ew-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.ew-testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid #E2E6EF;
  transition: all 0.25s ease;
}
.ew-testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.ew-testimonial-stars { font-size: 1rem; margin-bottom: 1rem; }
.ew-testimonial-text {
  font-size: 0.9375rem;
  color: #5A6478;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.ew-testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.ew-testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2463, #E63946);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ew-testimonial-author strong { display: block; font-size: 0.9375rem; color: #061539; }
.ew-testimonial-author span { font-size: 0.8125rem; color: #9BA3B4; }

/* ── 底部 CTA 区 ──────────────────────────────────────────── */
.ew-home-cta-section {
  position: relative;
  background: linear-gradient(135deg, #020c1b, #0A2463);
  padding: 6rem 0;
  overflow: hidden;
}
.ew-home-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,212,255,.06) 0%, transparent 70%);
}
.ew-home-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ew-home-cta-content h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.ew-home-cta-content p { font-size: 1.0625rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; line-height: 1.7; }
.ew-home-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.ew-home-cta-info { display: flex; flex-direction: column; gap: 1.25rem; }
.ew-home-cta-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.ew-home-cta-info-icon { font-size: 1.75rem; flex-shrink: 0; }
.ew-home-cta-info-item strong { display: block; color: #fff; font-size: 0.9375rem; }
.ew-home-cta-info-item span { color: rgba(255,255,255,.65); font-size: 0.875rem; }

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ew-services-grid { grid-template-columns: repeat(3, 1fr); }
  .ew-service-entry-card--battery { grid-column: span 3; }
  .ew-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .ew-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ew-hero-visual { display: none; }
  .ew-countries-grid { grid-template-columns: repeat(2, 1fr); }
  .ew-battery-banner-inner { grid-template-columns: 1fr; }
  .ew-battery-banner-visual { display: none; }
  .ew-home-cta-inner { grid-template-columns: 1fr; }
  .ew-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .ew-home-process-grid { flex-wrap: wrap; gap: 1.5rem; }
  .ew-home-process-arrow { display: none; }
  .ew-home-process-step { flex: 0 0 calc(33% - 1rem); }
}

@media (max-width: 768px) {
  .ew-section { padding: 4rem 0; }
  .ew-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ew-service-entry-card--battery { grid-column: span 2; }
  .ew-countries-grid { grid-template-columns: 1fr 1fr; }
  .ew-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ew-testimonials-grid { grid-template-columns: 1fr; }
  .ew-home-process-step { flex: 0 0 calc(50% - 1rem); }
  .ew-section-header-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .ew-services-grid { grid-template-columns: 1fr; }
  .ew-service-entry-card--battery { grid-column: span 1; }
  .ew-countries-grid { grid-template-columns: 1fr; }
  .ew-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ew-home-process-step { flex: 0 0 100%; }
  .ew-hero-trust { gap: 1rem; }
}
