/* /style/index.css */
@import "./global.css";

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 15, 32, 0.4) 0%,
      rgba(8, 15, 32, 0.55) 55%,
      rgba(8, 15, 32, 0.88) 100%
    ),
    radial-gradient(
      120% 80% at 50% 40%,
      rgba(11, 94, 215, 0.18) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 28px;
  max-width: 960px;
  animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero-badge .material-icons {
  font-size: 16px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  max-width: 720px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-video-toggle {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.hero-video-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

.hero-video-toggle .material-icons {
  font-size: 24px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: heroScrollBounce 2.2s infinite;
}

.hero-scroll .material-icons {
  font-size: 22px;
}

@keyframes heroScrollBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 1;
  }
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: 120px 0 100px;
  background: var(--bg);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 15.5px;
}

.about-text .btn {
  margin-top: 16px;
}

.about-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-900);
  aspect-ratio: 4 / 3;
}

.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ---------- 统计数据 ---------- */
.about-stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #fff;
  border-color: transparent;
}

.stat-item:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.stat-icon .material-icons {
  font-size: 24px;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stat-item p strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

/* ============================================================
   Products
   ============================================================ */
.products {
  padding: 110px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.product-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 60px 40px;
  min-height: 520px;
  isolation: isolate;
  background: var(--ink-900);
  box-shadow: var(--shadow-lg);
}

.product-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: background-image 0.7s ease, opacity 0.6s ease;
  opacity: 0.6;
  will-change: background-image;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      135deg,
      rgba(8, 15, 32, 0.9) 0%,
      rgba(8, 15, 32, 0.45) 55%,
      rgba(8, 15, 32, 0.88) 100%
    ),
    radial-gradient(
      80% 60% at 20% 20%,
      rgba(11, 94, 215, 0.25) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.product-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: 100%;
}

.product-item {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.product-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 94, 215, 0.55) 0%,
    rgba(255, 107, 53, 0.28) 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.product-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.product-item:hover::before {
  opacity: 1;
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 26px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.product-item:hover .product-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06) rotate(-4deg);
  box-shadow: var(--shadow-accent);
}

.product-icon .material-icons {
  font-size: 28px;
  color: #fff;
}

.product-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.product-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}

.product-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: color var(--transition), gap var(--transition);
}

.product-more .material-icons {
  font-size: 18px;
  transition: transform var(--transition);
}

.product-item:hover .product-more {
  color: var(--accent);
}

.product-item:hover .product-more .material-icons {
  transform: translateX(4px);
}

/* ============================================================
   News
   ============================================================ */
.news {
  padding: 110px 0;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all var(--transition);
  position: relative;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-media img {
  transform: scale(1.07);
}

.news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 15, 32, 0.45) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.news-card:hover .news-media::after {
  opacity: 1;
}

.news-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-body h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color var(--transition);
  line-height: 1.45;
}

.news-card:hover .news-body h3 {
  color: var(--primary);
}

.news-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 22px;
}

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light);
}

.news-date .material-icons {
  font-size: 14px;
}

.news-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.news-card:hover .news-more {
  gap: 8px;
}

.news-more::after {
  content: "arrow_forward";
  font-family: "Material Icons";
  font-size: 15px;
}

.news-footer {
  text-align: center;
  margin-top: 60px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-item {
    min-height: 300px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-video-toggle {
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
  }

  .hero-actions .btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  .about,
  .products,
  .news {
    padding: 72px 0;
  }

  .about-stats {
    margin-top: 48px;
  }

  .product-stage {
    padding: 36px 22px;
    border-radius: var(--radius-lg);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-item {
    min-height: 0;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .product-item .product-icon {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .product-icon .material-icons {
    font-size: 24px;
  }

  .product-item h3 {
    font-size: 17px;
  }

  .product-more {
    position: absolute;
    right: 22px;
    bottom: 18px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-footer {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .section-head {
    margin-bottom: 40px;
  }
}