:root {
  --primary-color: #00ffcc;
  --secondary-color: #0a0a0a;
  --tertiary-color: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --border-color: rgba(0, 255, 204, 0.2);
  --shadow-color: rgba(0, 255, 204, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  flex-shrink: 0;
}

.hero {
  flex: 1;
}

.section {
  flex-shrink: 0;
}

footer {
  flex-shrink: 0;
}

/* 粒子背景效果 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

header {
  background: linear-gradient(135deg, var(--tertiary-color), var(--secondary-color));
  padding: 20px 0;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

nav a:hover::after {
  width: 100%;
}

/* 语言切换按钮 */
.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.language-switch button {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.language-switch button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.hero {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.8)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=futuristic%20AI%20technology%20background%20with%20neon%20blue%20elements%20and%20digital%20particles&image_size=landscape_16_9') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

/* 轮播图样式 */
#carousel {
  min-height: 50vh;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-link {
  display: block;
  min-width: 100%;
  text-decoration: none;
  color: inherit;
}

.carousel-content {
  min-width: 100%;
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
  position: relative;
  overflow: hidden;
}

.carousel-link:hover .carousel-content {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.carousel-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  animation: shine 3s infinite;
}

.carousel-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  position: relative;
  z-index: 1;
}

.carousel-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.carousel-content .cta-button {
  position: relative;
  z-index: 1;
}

/* 轮播图控制按钮 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--primary-color);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* 轮播图指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(0, 255, 204, 0.7);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 20px;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary-color), #00ccaa);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
}

.section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 隐藏团队模块 */
#team {
  display: none;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.features, .solutions, .cases, .team, .news, .research {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
  flex: 1;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.feature, .solution, .case, .team-member, .news-item, .research-item {
  background: rgba(26, 26, 26, 0.8);
  padding: 30px;
  border-radius: 10px;
  width: calc(33.333% - 30px);
  margin: 0 15px 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  box-sizing: border-box;
}

.feature::before, .solution::before, .case::before, .team-member::before, .news-item::before, .research-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature:hover::before, .solution:hover::before, .case:hover::before, .team-member:hover::before, .news-item:hover::before, .research-item:hover::before {
  left: 100%;
}

.feature:hover, .solution:hover, .case:hover, .team-member:hover, .news-item:hover, .research-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

.feature h4, .solution h4, .case h4, .team-member h4, .news-item h4, .research-item h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.feature p, .solution p, .case p, .team-member p, .news-item p, .research-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

/* 团队成员样式 */
.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
  align-self: center;
}

.team-member .position {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-top: 5px;
}

/* 客户案例样式 */
.case img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

footer {
  background: var(--tertiary-color);
  padding: 50px 20px;
  text-align: center;
  border-top: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.05), transparent);
}

.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  flex: 1;
  align-items: flex-start;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-section {
  width: calc(25% - 20px);
  margin: 0 10px 30px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
  box-sizing: border-box;
}

.footer-section h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  text-align: left;
}

.footer-section p, .footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  nav a {
    margin: 0 10px;
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section {
    padding: 60px 20px;
    min-height: auto;
  }

  .section h3 {
    font-size: 2rem;
  }

  .section p {
    font-size: 1rem;
  }

  .features, .solutions, .cases, .team, .news, .research {
    flex-direction: column;
    align-items: center;
  }

  .feature, .solution, .case, .team-member, .news-item, .research-item {
    width: 90%;
    margin: 10px 0;
    min-height: 250px;
  }

  .footer-section {
    width: 100%;
    text-align: center;
    min-height: auto;
  }
}

/* 平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

/* 确保锚点链接不会因为固定导航栏而遮挡内容 */
section {
  scroll-margin-top: 100px;
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ccaa;
}

/* 发布页面样式 */
.release-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.release-section {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.release-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.release-section h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.release-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.release-section ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.release-section li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.back-button {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), #00ccaa);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.back-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
}
