/* =========================================
  1. 全局设置 & 沉浸式科技背景
  ========================================= */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
  background-color: #000c1f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 15% 50%, rgba(43, 85, 206, 0.15), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(100, 50, 255, 0.08), transparent 50%);
  background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  overflow-x: hidden;
  scrollbar-width: none;
  min-height: 100vh;
}

.index-html,
.index-body {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  animation: backgroundMove 60s ease-in-out infinite alternate;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@keyframes backgroundMove {
  0% {
    background-position: 0 0, 0 0, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 50px 50px, 50px 50px, 10% 10%, -10% 10%;
  }
}

/* =========================================
  2. 顶部导航栏
  ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(0, 12, 31, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar:hover {
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar:hover .company-name {
  color: #000000;
}

.navbar:hover .nav-menu a {
  color: #333333;
}

.navbar:hover .nav-logo-img {
  filter: none;
  opacity: 1;
}

.navbar:hover .nav-menu a:hover,
.navbar:hover .nav-menu a.active {
  color: #2b55ce;
  font-weight: bold;
}

.nav-container {
  width: 90%;
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo-img {
  height: 24px;
  filter: invert(1) brightness(2);
  transition: filter 0.3s ease;
}

.company-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: #cccccc;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #2b55ce;
  font-weight: bold;
}

/* =========================================
  3. Footer
  ========================================= */
.site-footer {
  background-color: #000814;
  color: #ffffff;
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.site-footer.about-footer {
  background-color: #000814;
  color: #fff;
  padding: 50px 0;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-copyright {
  margin-bottom: 15px;
  color: #d1d1d1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.beian-link {
  display: flex;
  align-items: center;
  color: #0096ff;
  text-decoration: none;
  gap: 5px;
  transition: color 0.3s;
}

.beian-link:hover {
  color: #6432ff;
}

.beian-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* =========================================
  4. 返回顶部按钮
  ========================================= */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #2b55ce;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(43, 85, 206, 0.4);
  z-index: 999;
  transition: background 0.3s;
}

.back-to-top:hover {
  background-color: #1a3ba0;
}

.back-to-top.gradient-bg {
  background: linear-gradient(135deg, #2b55ce, #6432ff);
  transition: all 0.3s ease;
}

.back-to-top.gradient-bg:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(43, 85, 206, 0.6);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
}

/* =========================================
  5. Footer (Full version - index.html style)
  ========================================= */
.site-footer-full {
  background-color: #2e353f;
  color: #ffffff;
  padding: 60px 0 20px 0;
  font-family: 'Microsoft YaHei', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col.company-info {
  flex: 1.5;
}

.footer-company-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 2px;
  margin-top: 0;
}

.footer-company-en {
  font-size: 14px;
  color: #ccc;
  margin-top: 5px;
}

.footer-heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.contact-icon {
  margin-right: 10px;
  font-weight: bold;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

.footer-beian {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.beian-link-light {
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.beian-link-light:hover {
  color: #fff;
}

.beian-icon-light {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* =========================================
  6. 通用动画
  ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* =========================================
  7. Hero Section (Shared for subpages)
  ========================================= */
.hero-section {
  padding-top: 70px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 85, 206, 0.25) 0%, rgba(100, 50, 255, 0.15) 50%, rgba(0, 12, 31, 0.9) 100%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #000c1f, transparent);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 30px;
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff, #a0cfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 1.2s ease-out;
  text-shadow: 0 0 60px rgba(43, 85, 206, 0.5);
}

.hero-content .tagline {
  font-size: 24px;
  color: #a0cfff;
  margin: 0 0 40px;
  animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  animation: heroFadeIn 1.2s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #2b55ce, #6432ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: #a0cfff;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
  8. 响应式通用
  ========================================= */
@media (max-width: 1024px) {
  .hero-stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
}