/**
 * 首页专用样式（原 index.php 内联）
 */
body {
  background-color: #06080d;
  color: rgba(255, 255, 255, 0.96);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-panel:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #06080d 100%),
    linear-gradient(to bottom, rgba(6, 8, 13, 0.7) 0%, transparent 25%, transparent 70%, #06080d 100%);
}

.dot-pulse {
  box-shadow: 0 0 0 0 rgba(109, 208, 107, 0.7);
  animation: home-pulse 2s infinite;
}
@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 208, 107, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(109, 208, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 208, 107, 0);
  }
}

/* Font Awesome：避免站点自定义字体覆盖图标 */
i.fa-solid,
i.fas,
i.fa-regular,
i.far,
i.fa-brands,
i.fab {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal;
  font-weight: 900;
  display: inline-block;
  line-height: 1;
}
i.far,
i.fa-regular {
  font-weight: 400;
}
i.fab,
i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

/* Section Rail */
.section-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .section-rail {
    display: none;
  }
}
.rail-dot-container {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
}
.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.rail-dot-container:hover .rail-dot {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.5);
}
.rail-dot-container.active .rail-dot {
  background-color: #ffffff;
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.rail-label {
  position: absolute;
  right: 32px;
  background: rgba(6, 8, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.rail-dot-container:hover .rail-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Header / Footer 暗色覆盖 */
#main-header {
  background-color: transparent !important;
  border-bottom: 1px solid transparent !important;
  transition: all 0.3s ease;
}
#main-header.scrolled {
  background-color: rgba(6, 8, 13, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#main-header .text-dark,
#main-header .text-gray-600,
#main-header .text-gray-900,
#main-header .text-gray-800,
#main-header .text-gray-700 {
  color: rgba(255, 255, 255, 0.96) !important;
}
#main-header .text-gray-500,
#main-header .text-gray-400 {
  color: rgba(255, 255, 255, 0.72) !important;
}
#main-header .bg-white {
  background-color: #06080d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
#main-header .hover\:bg-gray-50:hover {
  background-color: rgba(255, 255, 255, 0.055) !important;
}
#main-header .border-gray-100,
#main-header .border-gray-50 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#mobile-menu {
  background-color: #06080d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
#mobile-menu .text-gray-800,
#mobile-menu .text-gray-700 {
  color: rgba(255, 255, 255, 0.96) !important;
}
#mobile-menu .text-gray-600 {
  color: rgba(255, 255, 255, 0.72) !important;
}
#mobile-menu .bg-gray-50\/50 {
  background-color: rgba(255, 255, 255, 0.038) !important;
}
#mobile-menu .border-gray-50 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
#mobile-menu .hover\:bg-blue-50:hover {
  background-color: rgba(255, 255, 255, 0.055) !important;
}

footer {
  background-color: #06080d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
footer .text-dark,
footer .text-gray-900,
footer .text-gray-800,
footer .text-gray-700 {
  color: rgba(255, 255, 255, 0.96) !important;
}
footer .text-gray-600,
footer .text-gray-500,
footer .text-gray-400 {
  color: rgba(255, 255, 255, 0.72) !important;
}
footer .border-gray-200 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
footer.bg-\[\#f4f7f9\] {
  background-color: transparent !important;
}
