/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f8f7fc;
  color: #1e1e2e;
  line-height: 1.6;
}

/* ========== 头部导航 ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4a3a6e, #8b6fc0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}


/* 桌面端导航 */
.nav {
  display: flex;
  gap: 28px;
}

/* 导航链接基础样式 */
.nav-link {
  color: #000000;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

/* 鼠标悬停：浅灰色方块背景，文字黑色 */
.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #000000;
}

/* 选中状态：黑色方块背景，文字白色 */
.nav-link.active {
  background-color: #000000;
  color: #ffffff;
}



/* 汉堡菜单按钮（默认隐藏） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #3a3a4a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端遮罩层 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  display: block;
    pointer-events: auto;  /* 激活时拦截所有点击 */
    min-width: 100vw;      /* 确保最小尺寸 */
    min-height: 100vh;
}

/* ========== 轮播图 ========== */
.carousel {
  position: relative;
    width: 100%;
    height: 800px; /* 固定高度，适配桌面与平板 */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 6rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}




.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.slide-text {
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.slide-text h2 {
  font-size: 4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.slide-text p {
  font-size: 1.6rem;
  opacity: 0.9;
}


/* ========== 左右箭头 ========== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-arrow-left {
  left: 20px;
}

.carousel-arrow-right {
  right: 20px;
}

/* ========== 角色展示 ========== */
.characters {
  text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
	
}

.section-title {
  font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    /* 关键：确保标题文字本身居中 */
    text-align: center;
}
/* 淡蓝色平行四边形装饰 */
    .section-title::after {
      content: '';
        position: absolute;
        bottom: -0.2rem;
        left: 50%;
        transform: translateX(-50%) skewX(-12deg);
        width: fit-content;
        max-width: 100%;
        height: calc(50% - 0.1rem);
        background: #a0d8f1;
        border-radius: 4px 4px 0 0;
        z-index: -1;
        min-width: 200px;
    }


.section-subtitle {
  font-size: 1.2rem;
    color: #888888;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.5px;
    display: block; /* 关键：强制换行，上下结构 */
    text-align: center;
	margin-bottom: 3rem;
}

.characters-scroll {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.characters-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollCharacters 20s linear infinite;
}

.characters-track:hover {
  animation-play-state: paused;
}

@keyframes scrollCharacters {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}



.char-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}


/* 角色卡片 */
.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  padding: 0;              /* 去掉内边距，让图片贴边 */
  overflow: hidden;        /* 确保圆角裁剪图片 */
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  width: 260px;            /* 固定卡片宽度 */
  flex-shrink: 0;
}

.char-img {
  width: 100%;             /* 占满卡片宽度 */
  height: 260px;           /* 正方形，与卡片宽度一致 */
  border-radius: 0;        /* 去掉单独圆角，由卡片统一裁剪 */
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-info {
  padding: 12px 16px;
  text-align: center;
}



.char-1 { background: linear-gradient(145deg, #c4b5e0, #8b6fc0); }
.char-2 { background: linear-gradient(145deg, #e0a87c, #c06a3e); }
.char-3 { background: linear-gradient(145deg, #7ba4b8, #3d6b80); }
.char-4 { background: linear-gradient(145deg, #d47a94, #a04a60); }
.char-5 { background: linear-gradient(145deg, #6ba88a, #3a6048); }
.char-6 { background: linear-gradient(145deg, #a88a6b, #604a30); }

.char-info {
  padding: 14px 12px 16px;
  text-align: center;
}

.char-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2d2a3a;
}

.char-role {
  font-size: 0.8rem;
  color: #8a8a9a;
  margin-top: 2px;
}

/* ========== 黑色Logo区域 ========== */
.dark-strip {
  width: 100%;
  background: #0a0a0a;
  padding: 48px 24px;
  text-align: center;
}

.dark-logo {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4c5f0, #a084d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-logo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ========== 页脚 ========== */
.footer {
  background: #ffffff;
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid #eceaf0;
  color: #5a5a6e;
  font-size: 0.85rem;
  line-height: 2;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  
}
/* 页脚备案链接样式 */
.footer a {
  color: inherit; /* 继承父元素颜色 */
  text-decoration: none; /* 移除下划线 */
}

.footer a:hover {
  color: #007bff; /* 悬停时颜色（可自定义） */
  text-decoration: underline; /* 悬停时显示下划线 */
}


@media (max-width: 768px) {
  /* 显示汉堡菜单，隐藏桌面导航 */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 160;
  }

  .nav.active {
    right: 0;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
	  display: block; 
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .carousel {
    aspect-ratio: 4 / 5;

      width: 100%;
      height: 460px; /* 固定高度，手机 */
  }

  .slide-text {
    padding: 0 0 48px 28px;
  }

  .slide-text h2 {
    font-size: 2.4rem;
  }
  
  .slide-text p {
    font-size: 1rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }

  .carousel-arrow-left {
    left: 12px;
  }

  .carousel-arrow-right {
    right: 12px;
  }
.carousel-slide {
    justify-content: flex-end;  /* 文字靠底部 */
    align-items: flex-start;    /* 文字靠左 */
    padding: 1.5rem 1.5rem;     /* 缩小内边距，让文字更贴边 */
    text-align: left;           /* 文字左对齐 */
  }
  
  .char-card {
      width: 200px;          /* 手机端卡片宽度 */
    }
    
    .char-img {
      height: 200px;         /* 保持正方形 */
    }
    
    .char-info {
      padding: 10px 12px;
    }
}

@media (max-width: 480px) {
  .carousel {
    aspect-ratio: 4 / 5;
  }

  .slide-text {
    padding: 0 0 40px 20px;
  }

  .slide-text h2 {
    font-size: 2.4rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .carousel-arrow-left {
    left: 8px;
  }

  .carousel-arrow-right {
    right: 8px;
  }
.carousel-slide {
    justify-content: flex-end;  /* 文字靠底部 */
    align-items: flex-start;    /* 文字靠左 */
    padding: 1.5rem 1.5rem;     /* 缩小内边距，让文字更贴边 */
    text-align: left;           /* 文字左对齐 */
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }
}
