/**
 * 官网全屏英雄区 · 品牌视觉
 * .site-hero--djk 青衿序墨玉 / .site-hero--jldc 巨量电光
 */

.site-hero {
  --hero-ink: #071510;
  --hero-accent: #2f6b58;
  --hero-accent-2: #c4a574;
  --hero-text: #f4f7f5;
  --hero-muted: rgba(244, 247, 245, 0.72);
  position: relative;
  width: 100%;
  min-height: min(92vh, 820px);
  height: min(92vh, 820px);
  overflow: hidden;
  background: var(--hero-ink);
  color: var(--hero-text);
  isolation: isolate;
}

.site-hero--djk {
  --hero-ink: #071510;
  --hero-accent: #3d8f74;
  --hero-accent-2: #c4a574;
  --hero-text: #f3f6f4;
  --hero-muted: rgba(243, 246, 244, 0.74);
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(61, 143, 116, 0.28), transparent 55%),
    radial-gradient(900px 420px at 88% 10%, rgba(196, 165, 116, 0.18), transparent 50%),
    linear-gradient(160deg, #071510 0%, #0d241c 48%, #102018 100%);
}

.site-hero--jldc {
  --hero-ink: #050d18;
  --hero-accent: #1ec8ff;
  --hero-accent-2: #ffb020;
  --hero-text: #f2f7fc;
  --hero-muted: rgba(242, 247, 252, 0.74);
  background:
    radial-gradient(1100px 500px at 12% -8%, rgba(30, 200, 255, 0.22), transparent 55%),
    radial-gradient(900px 460px at 92% 8%, rgba(26, 140, 255, 0.2), transparent 52%),
    radial-gradient(700px 380px at 70% 100%, rgba(255, 176, 32, 0.1), transparent 50%),
    linear-gradient(155deg, #050d18 0%, #0a1a2e 50%, #071525 100%);
}

.site-hero-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
  filter: saturate(0.85) brightness(0.55);
}

.site-hero-photo.is-active {
  opacity: 0.72;
  transform: scale(1);
}

.site-hero--djk .site-hero-photo.is-active { opacity: 0.7; }
.site-hero--jldc .site-hero-photo.is-active { opacity: 0.72; }

.site-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.site-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 28%, rgba(0, 0, 0, 0.55) 100%);
}

.site-hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 110px;
  max-width: 1180px;
  margin: 0 auto;
  pointer-events: none;
}

.site-hero-inner a,
.site-hero-inner button {
  pointer-events: auto;
}

.site-hero-brand {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-hero--djk .site-hero-brand {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.site-hero--jldc .site-hero-brand {
  font-family: "DIN Alternate", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, #fff 20%, #9fe8ff 55%, #fff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 10px 30px rgba(30, 200, 255, 0.25));
}

.site-hero-title {
  margin: 0 0 16px;
  max-width: 16em;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--hero-text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.site-hero-lead {
  margin: 0 0 34px;
  max-width: 28em;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--hero-muted);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.site-hero.is-ready .site-hero-brand,
.site-hero.is-ready .site-hero-title,
.site-hero.is-ready .site-hero-lead,
.site-hero.is-ready .site-hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.site-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 26px;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-hero-btn--primary {
  background: var(--hero-accent);
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-hero--djk .site-hero-btn--primary {
  background: linear-gradient(135deg, #3d8f74, #2a6a56);
}

.site-hero--jldc .site-hero-btn--primary {
  background: linear-gradient(135deg, #1a8cff, #0d6fd8);
  box-shadow: 0 10px 32px rgba(30, 140, 255, 0.35);
}

.site-hero-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

.site-hero-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.site-hero-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.site-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.site-hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: hero-scroll-dot 1.6s ease-in-out infinite;
}

.site-hero-scroll:hover { opacity: 1; }

@keyframes hero-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* 首屏后区块轻微抬升质感 */
body.home-premium .enterprise-section,
body.home-premium .enterprise-section-alt,
body.home-premium .home-intro-section {
  position: relative;
}

body.home-premium .section-title h3 {
  letter-spacing: 0.06em;
}

body.home-premium.theme-djk .section-title h3 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

body.home-premium .intro-stats-bar {
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

body.home-premium.theme-djk {
  --brand-primary: #2f6b58;
  --brand-primary-dark: #214d40;
  --brand-primary-light: #4a8f78;
  --brand-glow: rgba(47, 107, 88, 0.32);
}

body.home-premium.theme-jldc {
  --brand-primary: #0d6fd8;
  --brand-primary-dark: #0a56a8;
  --brand-primary-light: #1ec8ff;
  --brand-glow: rgba(30, 200, 255, 0.28);
}

@media (max-width: 991px) {
  .site-hero {
    min-height: 78vh;
    height: 78vh;
  }
  .site-hero-inner {
    padding: 88px 18px 72px;
    text-align: left;
  }
  .site-hero-brand {
    letter-spacing: 0.08em;
  }
  .site-hero-actions {
    width: 100%;
  }
  .site-hero-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 575px) {
  .site-hero {
    min-height: 70vh;
    height: auto;
    min-height: 620px;
  }
  .site-hero-photo.is-active {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero-brand,
  .site-hero-title,
  .site-hero-lead,
  .site-hero-actions,
  .site-hero-photo {
    transition: none !important;
    animation: none !important;
  }
  .site-hero-scroll::after { animation: none; }
}

/* 首页导航：保持白底深色字，避免透明白字“消失” */
body.home-premium .site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.home-premium .site-header .navbar-default {
  background: transparent !important;
}

body.home-premium .site-header .navbar-main .nav-dropdown-inner > .caidan,
body.home-premium .site-header .navbar-main > li:not(.dropdown) > .caidan {
  color: #333 !important;
}

body.home-premium .site-header .nav-hotline-phone {
  color: #333 !important;
}

body.home-premium .site-header .nav-hotline-label {
  color: #999 !important;
}

body.home-premium .site-header .nav-search-wrap .form-control {
  background: #fff;
  border-color: #e5e8ef;
  color: #333;
}

body.home-premium .site-logo {
  filter: none;
}

/* 英雄区轮播控件：必须可点，压在文案层之上 */
.site-hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: auto;
}

.site-hero-arrow {
  touch-action: manipulation;
  pointer-events: auto;
  position: relative;
  z-index: 31;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-hero-arrow::before {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}
.site-hero-prev::before { content: "‹"; }
.site-hero-next::before { content: "›"; }


.site-hero-dots {
  pointer-events: auto;
  position: relative;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  margin: 0;
  list-style: none;
}

.site-hero-dots li {
  width: 36px;
  height: 12px;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, width 0.25s ease;
}

.site-hero-dots li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.site-hero-dots li.is-active {
  width: 48px;
}

.site-hero-dots li.is-active::after {
  background: #fff;
}

.site-hero-scroll {
  bottom: 88px;
}

@media (max-width: 767px) {
  .site-hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .site-hero-controls {
    bottom: 28px;
    gap: 12px;
  }
  .site-hero-dots li {
    width: 22px;
  }
  .site-hero-dots li.is-active {
    width: 32px;
  }
}
