/* ------------------ style.css ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0d0d0d;
  color: #fff;
  line-height: 1.6;
}

header {
  width: 100%;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

nav a:hover {
  color: #fff;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h2 {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.typing-dot {
  width: 10px;
  height: 10px;
  background: #fff; /* 白色实心圆点 */
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  animation: dotFade 0.8s ease forwards;
}

@keyframes dotFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.4); }
}

.cursor {
  width: 3px;
  height: 40px;
  background: #fff;
  margin-left: 5px;
  animation: blink 0.8s infinite;
  display: inline-block;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  opacity: 0.8;
}

.section {
  padding: 100px 40px;
  max-width: 900px;
  margin: auto;
}

.section h3 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}

.section p {
  opacity: 0.8;
  font-size: 17px;
}

footer {
  text-align: center;
  padding: 40px;
  opacity: 0.5;
  font-size: 14px;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  background: #f0f0f0;
}

/* ------------------ 轮播样式 ------------------ */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}

/* ------------------ style.css ------------------ */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding-right: 40px;
  box-sizing: border-box; /* 防止放大溢出 */
}

.carousel-item {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 20px;
  text-align: center;
  box-sizing: border-box; /* 保持尺寸稳定 */
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s, opacity 0.3s; /* 去掉背景变化，只保留透明度动画 */
  z-index: 10;
  opacity: 0;
}


/* 全部链接加粗并保持原本颜色风格 */
a {
  font-weight: bold;       /* 加粗 */
  color: #fff;             /* 链接颜色，可以根据需要修改 */
  text-decoration: none;   /* 去掉下划线 */
  transition: color 0.3s;  /* 悬停颜色过渡 */
}

a:hover {
  color: #f0f0f0;          /* 悬停颜色 */
}
.carousel-item img {
  user-select: none;      /* 防止选中文字 */
}

.social-links {
  display: flex;
  justify-content: center; /* 水平居中 */
  gap: 20px; /* 图标间距 */
  margin-bottom: 15px; /* 与 footer 之间的距离 */
}

.social-links a img {
  width: 32px; /* 图标大小，可调整 */
  height: 32px;
  transition: transform 0.3s;
}

.social-links a img:hover {
  transform: scale(1.2); /* 悬停放大效果 */
}
