* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  scroll-behavior: smooth;
  font-family: "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}
.section {
  width: 100%;
  padding: 80px 20px;
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .section {
    height: 100vh;
    display: flex;
  }
}

/* 背景与布局 */
#section1 {
  background: linear-gradient(to bottom right, #2c2e92, #ff5e62);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  color: white;
  background-color: #000;
}

/* 粒子动画覆盖背景 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 顶部LOGO和菜单 */
.hero-header {
  background: rgba(0, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* 首页顶部透明状态 */
.hero-header.transparent {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* 中心内容 */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px #00f7ff, 0 0 30px #005b9f;
}

@media screen and (max-width: 767px) {
  .hero-title {
    font-size: 36px;
  }
}

.hero-title .highlight {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 30px #00ffff;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 16px;
  color: #cccccc;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.8;
}

/* 动画入场效果 */
.hero-title span,
.hero-subtitle {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 介绍 */
#section2 {
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
  color: white;
  text-align: center;
  z-index: 1;
  background: linear-gradient(160deg, #001f3f 0%, #004080 100%);
}

#section2 .stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: none;
}

/* 每颗星星 */
.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* 内容层始终在上层 */
#section2 > *:not(.stars-container) {
  position: relative;
  z-index: 2;
}

/* タイトル */
.intro-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.intro-title {
  font-size: 20px;
  font-weight: bold;
  padding: 8px 28px;
  background-color: rgba(0, 132, 255, 0.8);
  border: 2px solid #0080ff;
  color: white;
  border-radius: 50px;
  letter-spacing: 10px;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.line {
  flex: 1;
  height: 1px;
  background-color: #0080ff;
  max-width: 120px;
}

/* 说明文 */
.intro-lead {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #aee3ff;
}

.intro-description {
  font-size: 15px;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #d0e5ff;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分类图标 */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.category {
  text-align: center;
  width: 120px;
  transition: transform 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  background: radial-gradient(circle at center, #00d4ff, #0070ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
  transition: box-shadow 0.3s;
}

.icon-wrapper:hover {
  box-shadow: 0 0 30px rgba(0, 195, 255, 0.9), 0 0 60px rgba(0, 195, 255, 0.3);
}

.icon-wrapper img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 4px white);
}

.category p {
  font-weight: bold;
  font-size: 14px;
  color: #ffffff;
}


/* 会社概要 */
#section3 {
  color: white;
  text-align: center;
  position: relative;
}

.company-section {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(to bottom right, #2323d6, #764ba2, #2c5364);
  color: white;
  z-index: 1;
  isolation: isolate;
}

 /* 背景动态光斑容器 */
.company-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 每个动态光点 */
.company-glows .glow {
  position: absolute;
  width: 200px;
  height: 200px;
  max-width: 300px;
  max-height: 300px;
  contain: strict;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: moveGlow 10s infinite alternate ease-in-out;
}

/* 浮动动画 */
@keyframes moveGlow {
  0% { transform: translateY(0) translateX(0); opacity: 0.3; }
  100% { transform: translateY(-30px) translateX(20px); opacity: 0.7; }
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.company-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #a6e1ff;
  letter-spacing: 12px;
  position: relative;
  z-index: 2;
}

.company-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  z-index: 2;
  position: relative;
}

.company-description {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  font-size: 16px;
  line-height: 2;
  color: #dcefff;
  text-align: left;
}

.company-card {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  background: rgba(20, 40, 70, 0.5); /* 深蓝背景 */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 255, 255, 0.4); /* 加深边框 + 发光色 */
  text-align: left;
}

.company-card:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  border-color: rgba(0, 255, 255, 0.7);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.company-item {
  margin-bottom: 20px;
  font-size: 15px;
  color: #e0f7ff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.8;
}

.company-item .icon {
  font-size: 18px;
  opacity: 0.8;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

/* 按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 255, 255, 0.4);
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

/* 圆点 */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
}

.carousel-dots span.active {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .company-section {
    padding: 80px 16px 120px;
  }

  .company-layout {
    flex-direction: column;
    align-items: center;
  }

  .company-description,
  .company-card {
    max-width: 100%;
    width: 100%;
  }

  .carousel {
    height: 260px; /* 手机端降低轮播图高度 */
  }

  .company-title {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .company-card iframe {
    width: 100% !important;
    height: 200px !important;
  }

  .carousel-btn {
    font-size: 24px;
    padding: 5px 10px;
  }

  .carousel-dots span {
    width: 8px;
    height: 8px;
  }

  .description-text {
    font-size: 15px;
  }

  .company-item {
    font-size: 14px;
    gap: 8px;
  }
}

/* 店铺登录 */
#section4 {
  background: linear-gradient(to bottom, #003b73, #001f4d);
  padding: 80px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

#section4::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,255,0.08), transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: glowPulse 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glowPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* 标题部分 */
.register-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.register-title {
  font-size: 22px;
  font-weight: bold;
  padding: 10px 30px;
  border: 2px solid #00cfff;
  border-radius: 30px;
  background: rgba(0, 120, 255, 0.3);
  letter-spacing: 10px;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.register-header .line {
  flex: 1;
  height: 1px;
  background-color: #00cfff;
  margin: 0 15px;
  opacity: 0.6;
}

/* 表单卡片美化 */
.register-card {
  max-width: 750px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0,255,255,0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* .register-card:hover {
  transform: scale(1.01);
} */

/* 两栏布局 */
.form-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.form-column {
  flex: 1;
  min-width: 250px;
}

/* 表单组 */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #a3d8ff;
  font-size: 14px;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

/* 输入框美化 */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 15px;
  transition: border-bottom 0.3s;
}

input:focus {
  outline: none;
  border-bottom: 1px solid #00cfff;
}

/* 占位符颜色 */
::placeholder {
  color: #ccc;
}

/* 提交按钮美化 */
.register-submit {
  display: block;
  margin: 40px auto 0;
  background: linear-gradient(to right, #00cfff, #0088ff);
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

.register-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,255,255,0.5);
}

/* 导航指示器 */
.page-indicator {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: block;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: white;
}

/* 回到顶部 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 999;
  display: none;
  background: linear-gradient(135deg, #0061a7, #003b73);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #004b8a, #002a5a);
}

/* 邮件反馈 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 60, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease forwards;
}

.modal-box {
  background: linear-gradient(145deg, #003f7d, #005b9f);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.2);
  color: #eaf6ff;
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.4s ease;
}

.modal-box p {
  font-size: 18px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.close-btn {
  background: #00cfff;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.close-btn:hover {
  background: #009cd1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}