/* ── 主站：科技感多巴胺风格 ── */
.home {
  --home-bg: #f4f7ff;
  --home-text: #1e1b4b;
  --home-text-muted: #5b5675;
  --home-text-soft: #8b85a8;
  --home-card: rgba(255, 255, 255, 0.82);
  --home-border: rgba(255, 255, 255, 0.9);
  --home-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
  --home-accent-1: #6366f1;
  --home-accent-2: #ec4899;
  --home-accent-3: #06b6d4;
  --home-accent-4: #f59e0b;
  --home-accent-5: #10b981;
  color: var(--home-text);
  background: var(--home-bg);
  position: relative;
  overflow-x: hidden;
}

.home::before,
.home::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.home::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
  animation: home-float 12s ease-in-out infinite;
}

.home::after {
  width: 480px;
  height: 480px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
  animation: home-float 14s ease-in-out infinite reverse;
}

@keyframes home-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.05); }
}

.home .home__blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.home .home__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
}

.home .home__blob--1 {
  width: 360px;
  height: 360px;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
  animation: home-float 16s ease-in-out infinite;
}

.home .home__blob--2 {
  width: 280px;
  height: 280px;
  top: 60%;
  right: 10%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45), transparent 70%);
  animation: home-float 10s ease-in-out infinite reverse;
}

.home .gallery {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-top: 48px;
}

/* ── 头部大图轮播 ── */
.home-hero {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 78vh, 720px);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(99, 102, 241, 0.18);
}

.home-hero__carousel {
  position: absolute;
  inset: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 8s ease;
  transform: scale(1.06);
}

.home-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.home-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__slide[data-theme="indigo"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.72) 0%, rgba(236, 72, 153, 0.55) 45%, rgba(6, 182, 212, 0.35) 100%),
    linear-gradient(180deg, rgba(15, 10, 40, 0.15) 0%, rgba(15, 10, 40, 0.55) 100%);
}

.home-hero__slide[data-theme="amber"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.65) 0%, rgba(249, 115, 22, 0.55) 40%, rgba(59, 130, 246, 0.45) 100%),
    linear-gradient(180deg, rgba(20, 10, 5, 0.12) 0%, rgba(20, 10, 5, 0.58) 100%);
}

.home-hero__slide[data-theme="purple"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.75) 0%, rgba(236, 72, 153, 0.6) 50%, rgba(99, 102, 241, 0.4) 100%),
    linear-gradient(180deg, rgba(20, 5, 50, 0.1) 0%, rgba(20, 5, 50, 0.6) 100%);
}

.home-hero__slide[data-theme="cyan"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.7) 0%, rgba(99, 102, 241, 0.55) 50%, rgba(236, 72, 153, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 20, 50, 0.1) 0%, rgba(5, 20, 50, 0.58) 100%);
}

.home-hero__slide[data-theme="green"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.7) 0%, rgba(6, 182, 212, 0.55) 50%, rgba(99, 102, 241, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 30, 20, 0.1) 0%, rgba(5, 30, 20, 0.58) 100%);
}

.home-hero__slide[data-theme="sunset"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.55) 0%, rgba(236, 72, 153, 0.5) 45%, rgba(99, 102, 241, 0.45) 100%),
    linear-gradient(180deg, rgba(15, 10, 40, 0.08) 0%, rgba(15, 10, 40, 0.52) 100%);
}

.home-hero__slide[data-theme="lime"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(132, 204, 22, 0.55) 50%, rgba(234, 179, 8, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 20, 40, 0.08) 0%, rgba(5, 20, 40, 0.5) 100%);
}

.home-hero__slide[data-theme="teal"] .home-hero__overlay {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.6) 0%, rgba(132, 204, 22, 0.5) 45%, rgba(234, 179, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 25, 30, 0.08) 0%, rgba(5, 25, 30, 0.52) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(520px, 78vh, 720px);
  padding: 80px clamp(24px, 5vw, 64px) 120px;
}

.home-hero__content .section__label {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.home-hero__content h1 {
  margin-top: 20px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  animation: none;
}

.home-hero__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 580px;
  line-height: 1.85;
  margin-top: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.home-hero__captions {
  position: relative;
  min-height: 88px;
  margin-top: 32px;
  width: 100%;
  max-width: 420px;
}

.home-hero__caption-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.home-hero__caption-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-hero__caption-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.home-hero__caption-item strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.home-hero__preview {
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s;
}

.home-hero__preview:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.home-hero__controls {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
}

.home-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.home-hero__dots {
  display: flex;
  gap: 10px;
}

.home-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
  padding: 0;
}

.home-hero__dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
}

.home-hero__scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  animation: home-scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes home-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.home .section__label {
  display: inline-block;
  color: var(--home-accent-1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

@keyframes home-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.home .gallery__section-title {
  color: var(--home-text);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.home .gallery__industries-preview {
  background: var(--home-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--home-border);
  border-radius: 28px;
  padding: 40px clamp(20px, 4vw, 48px);
  box-shadow: var(--home-shadow);
  margin-bottom: 64px;
}

.home .gallery__industries-preview .section__label {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 0 auto 12px;
}

.home .industry-filter {
  margin-bottom: 0;
}

.home .industry-filter__btn {
  color: var(--home-text-muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(99, 102, 241, 0.12);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.06);
}

.home .industry-filter__btn:hover {
  color: var(--home-accent-1);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.home .industry-filter__btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--home-accent-1), var(--home-accent-2));
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.28);
}

.home .gallery__grid {
  gap: 28px;
}

.home .gallery__card {
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--home-shadow);
  background: #fff;
}

.home .gallery__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5), rgba(6, 182, 212, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home .gallery__card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(99, 102, 241, 0.2);
}

.home .gallery__card:hover::before {
  opacity: 1;
}

.home .gallery__card:nth-child(1):hover { box-shadow: 0 28px 60px rgba(99, 102, 241, 0.25); }
.home .gallery__card:nth-child(2):hover { box-shadow: 0 28px 60px rgba(168, 85, 247, 0.25); }
.home .gallery__card:nth-child(3):hover { box-shadow: 0 28px 60px rgba(6, 182, 212, 0.25); }
.home .gallery__card:nth-child(4):hover { box-shadow: 0 28px 60px rgba(16, 185, 129, 0.25); }

.home .gallery__card img {
  opacity: 0.92;
  filter: saturate(1.15) contrast(1.05);
}

.home .gallery__card-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(30, 27, 75, 0.82) 100%
  );
  padding: 28px;
}

.home .gallery__card-num {
  display: inline-block;
  width: fit-content;
  color: #fff;
  background: linear-gradient(135deg, var(--home-accent-1), var(--home-accent-2));
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.home .gallery__card:nth-child(2) .gallery__card-num {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.home .gallery__card:nth-child(3) .gallery__card-num {
  background: linear-gradient(135deg, #0891b2, #6366f1);
}

.home .gallery__card:nth-child(4) .gallery__card-num {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.home .gallery__card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.home .gallery__card-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}

.home .gallery__card-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.home .gallery__empty {
  color: var(--home-text-soft);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
}

.home > .gallery__section-title {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4px;
}

.home > .gallery__section-title::before {
  content: '✦ ';
  color: var(--home-accent-2);
}

.home > .gallery__grid {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: clamp(460px, 85vh, 600px);
  }

  .home-hero__content {
    min-height: clamp(460px, 85vh, 600px);
    padding: 64px 20px 100px;
  }

  .home-hero__content h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .home-hero__controls {
    bottom: 56px;
    gap: 12px;
  }

  .home-hero__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .home .gallery {
    padding-top: 32px;
  }

  .home .gallery__industries-preview {
    border-radius: 20px;
    padding: 28px 20px;
  }

  .home .gallery__card {
    border-radius: 18px;
  }
}
