@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  /* 主色调 - 更亮 */
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-card: #222222;
  --bg-light: #f8f9fa;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-dark: #333333;

  /* AI科技色 - 更亮 */
  --accent: #00ffb3;
  --accent-glow: rgba(0, 255, 179, 0.4);
  --accent-2: #7b2ff7;
  --accent-2-glow: rgba(123, 47, 247, 0.3);

  /* 边框 */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.1);

  /* 网格线 */
  --grid-line: rgba(0, 255, 179, 0.15);
}

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

body {
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 科技网格背景 - 更亮 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;

}

/* AI粒子效果 */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 255, 179, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(123, 47, 247, 0.05) 0%, transparent 30%);
  animation: particleMove 30s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleMove {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(2deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* 导航栏 - 更透亮 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

/* 导航栏右侧区域 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

/* Logo 图片 */
.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

/* Logo 文字 */
.logo-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}


.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Bootstrap 轮播图覆盖样式 */
.carousel {
  margin-top: 80px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.carousel-item {
  height: 600px;
  background: var(--bg-darker);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.1) 0%, rgba(123, 47, 247, 0.1) 100%);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.8;
}

.carousel-caption {
  background: rgba(26, 26, 26, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 2rem 3rem;
  bottom: 20%;
  border: 1px solid rgba(0, 255, 179, 0.3);
  z-index: 2;
}

.carousel-caption h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.carousel-indicators [data-bs-target] {
  width: 40px;
  height: 4px;
  background: var(--accent);
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  /* background-color: rgba(0, 255, 179, 0.3);
  border-radius: 50%;
  padding: 2rem; */
  display: none;
}

/* AI芯片卡片 */
.card {
  background: rgba(34, 34, 34, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent));
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  border-radius: 18px;
  z-index: -1;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover::before {
  opacity: 0.3;
  animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* AI标签 */
.ai-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 255, 179, 0.1);
  border: 1px solid var(--accent);
  border-radius: 30px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 8px;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--bg-dark);
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
}

/* 页脚 */
.footer {
  background: rgba(17, 17, 17, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
  /* padding-left: 5px; */
}

/* 页面标题 */
.page-header {
  text-align: center;
  margin: 4rem 0;
  padding-top: 4rem;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}



/* 响应式 */
/* @media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 1rem;
    bottom: 10%;
  }

  .carousel-caption h3 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }
} */

/* 响应式 */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;
    transition: transform 0.3s ease;
    /* 按钮旋转动画 */
    z-index: 1001;
  }

  .menu-toggle.active {
    transform: rotate(90deg);
    /* 点击时旋转 */
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 0;
    /* 收起时 padding 为 0 */
    gap: 0;
    max-height: 0;
    /* 限制高度实现手风琴 */
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* 更平滑的动画曲线 */
    border-bottom: 1px solid var(--border);
    pointer-events: none;
    /* 收起时不可点击 */
  }

  .nav-links.active {
    padding: 2rem;
    /* 展开时才加 padding */
    gap: 1rem;
    max-height: 500px;
    /* 展开高度 */
    opacity: 1;
    pointer-events: auto;
    /* 展开时可点击 */
    transform: translateY(0);
  }

  /* 菜单项依次出现效果 */
  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* 依次延迟 */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 1rem;
    bottom: 10%;
  }

  .carousel-caption h3 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  /* 标签开始 */
  .container.text-center.my-4 {
    text-align: left;
    /* 小屏幕左对齐 */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* 靠左 */
    gap: 0.5rem;
  }

  .ai-tag {
    margin-right: 0;
    /* 去掉原有的 margin-right */
  }

  /* 标签结束 */
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}


/* 它的作用是让元素出现时有一个“由小到大 + 由下往上 + 由透明到可见 */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 给不同区块加延迟 */
.ai-tag {
  opacity: 0;
  /* 初始隐藏 */
  animation: fadeInScale 0.4s ease forwards;
}

/* 依次延迟 */
.ai-tag:nth-child(1) {
  animation-delay: 0s;
}

.ai-tag:nth-child(2) {
  animation-delay: 0.1s;
}

.ai-tag:nth-child(3) {
  animation-delay: 0.2s;
}

.ai-tag:nth-child(4) {
  animation-delay: 0.3s;
}

.ai-tag:nth-child(5) {
  animation-delay: 0.4s;
}

.page-header {
  animation: fadeInScale 0.6s ease forwards;
}

.row.g-4 {
  animation: fadeInScale 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}