* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Microsoft YaHei', sans-serif;
    }

    :root {
      --primary: #7e22ce;
      --secondary: #06b6d4;
      --dark: #121212;
      --light: #f5f5f5;
      --card-bg: #1e1e1e;
      --white: #fff;
    }

    body {
      background-color: var(--light);
      color: var(--dark);
      overflow-x: hidden;
    }

    /* 导航栏 */
    nav {
      position: fixed;
      top: 0;
      width: 100%;
      backdrop-filter: blur(5px);
      padding: 5px 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 999;
    }
   
    .logo {
      font-size: 1.8rem;
      font-weight: bold;
      transition: 0.3s;
    }
    .logo img {
      width: 120px;
      height: 120px;
      border-radius: 30px;
      transition: 0.3s;
    }
    .nav-links a {
      text-decoration: none;
      margin: 0 1.2rem;
      transition: 0.3s;
    }
    .nav-links a:hover {
      color: var(--secondary);
    }
     nav.scrolled {
      /* background: linear-gradient(180deg, #673AB7, #774dc1, #4612a3); */
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      transition: 0.3s;
    }
    nav.scrolled .logo img {
      width: 80px;
      height: 80px;
    }
    nav.scrolled .nav-links a {
      font-size: 1.7rem;
    }
    /* 通用容器 */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 6rem 2%;
    }

    .section-title {
      text-align: center;
      font-size: 3.2rem;
      margin-bottom: 3rem;
      color: var(--primary);
      position: relative;
      font-weight: bold;
      /* 关键：用无衬线模拟手写粗体效果，和原图匹配 */
      font-family: 'Impact', 'Arial Black', sans-serif;
      text-transform: uppercase;
      letter-spacing: 4px;
      /* 米金色渐变填充 */
      background: linear-gradient(180deg, #f0e6cc 0%, #d4b886 50%, #b8956a 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;

      /* 多层描边：内深色描边 + 外白色描边 */
      text-shadow:
        4px 4px 0 #574119,   /* 深棕色粗描边 */
        -1px -1px 0 #574119,
        1px -1px 0 #574119,
        -1px 1px 0 #574119,
        0 4px 0 #574119,
        0 -4px 0 #574119,
        4px 0 0 #574119,
        -4px 0 0 #574119,
        8px 8px 15px rgba(0,0,0,0.4), /* 底部阴影 */
        0 0 10px rgba(255,255,255,0.8); /* 白色外发光 */

      /* 外描边效果，兼容部分浏览器 */
      -webkit-text-stroke: 2px #ffefc8;
    }

    .section-title::after {
      content: '';
      width: 80px;
      height: 3px;
      background: var(--secondary);
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
    }

    /* 英雄区 / 游戏介绍 */
    /* ========== Hero 背景轮播 ========== */
    .hero {
      height: 100vh;
      position: relative;
      overflow: hidden;
    }
    .hero-logo{
        width: 400px;
        height: auto;
    }
    .hero-bg-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1s ease;
    }
    .hero-bg-slide.active {
      opacity: 1;
    }
    /* 遮罩 */
    .hero-bg-slide::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
    }
    /* 内容层 */
    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 700px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 5%;
      align-items:center;
    }
    /* Hero 底部圆点指示器 */
    .hero-dots {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 12px;
      z-index: 3;
    }
    .hero-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255,255,255,0.4);
      cursor: pointer;
      transition: 0.3s;
    }
    .hero-dot.active {
      background: var(--primary);
    }

    .hero h1 {
      font-size: 3.5rem;
      margin-bottom: 1.5rem;
      line-height: 1.2;
    }

    .hero p {
      font-size: 1.1rem;
      line-height: 1.8;
      margin-bottom: 2rem;
      color: #ccc;
    }
    .btn {
      padding: 1rem 2.5rem;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 50px;
      font-size: 1rem;
      cursor: pointer;
      transition: 0.3s;
      text-decoration: none;
      display: inline-block;
    }
    .btn-blue {
      background: var(--secondary);
    }
    .btn:hover {
      background: var(--secondary);
      transform: translateY(-3px);
    }

   

    /* 角色展示 */
    .characters {
      /* background: #151515; */
    }
    .char-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
     
      margin: 0 auto;
    }

    .char-item {
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      padding: 0.5rem;
      transition: 0.3s;
    }

    .char-item:hover {
      transform: scale(1.03);
    }

   

    /* 轮播容器 */
        /* .carousel-container {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 16px;
            background-color: #fff;
            padding: 20px 0;
        } */

        /* 图片轨道 */
        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            touch-action: pan-y;
        }

        /* 单张卡片样式 */
        .carousel-slide {
            flex: 0 0 20%; /* 桌面端一排显示5张 */
            padding: 0 10px;
        }

        .carousel-slide img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            display: block;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        /* 导航箭头 */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(0,0,0,0.5);
            color: #fff;
            border: none;
            font-size: 20px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-btn:hover {
            background-color: rgba(0,0,0,0.8);
        }

        .prev-btn {
            left: 15px;
        }

        .next-btn {
            right: 15px;
        }

        /* 指示器 */
        .indicators {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #ccc;
            cursor: pointer;
            transition: all 0.3s;
        }

        .indicator.active {
            background-color: #007bff;
            transform: scale(1.2);
        }

       
    /* ========== 四格漫画 轮播样式 ========== */
    
    /* 轮播外层容器 */
    .char-carousel {
      position: relative;
    
      margin: 0 auto;
      overflow: hidden;
    }
    /* 轮播轨道 */
    .char-track {
      display: flex;
      transition: transform 0.5s ease;
    }
    /* 单组四格漫画 */
    .char-slide {
      min-width: 100%;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1rem;
      padding: 0 1rem;
    }
    .char-item {
      /* background: var(--card-bg); */
      border-radius: 10px;
      overflow: hidden;
      padding: 0.5rem;
      transition: 0.3s;
    }
    .char-item:hover {
      transform: scale(1.03);
    }
    .char-item img {
      width: 100%;
      object-fit: contain;
      border-radius: 8px;
    }
    /* 左右切换按钮 */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(139,139,139,0.7);
      color: #fff;
      border: none;
      font-size: 18px;
      cursor: pointer;
      z-index: 10;
      transition: 0.3s;
    }
    .carousel-btn:hover {
      background: var(--primary);
    }
    .prev-btn {
      left: 10px;
    }
    .next-btn {
      right: 10px;
    }
    /* 指示器小圆点 */
    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 2rem;
    }
    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #444;
      cursor: pointer;
      transition: 0.3s;
    }
    .dot.active {
      background: var(--primary);
    }



    /* 游戏介绍 */
    .introduction {
      background: #e4f3ff;
    }
    .introduction h3 {
      font-size: 2rem;
      padding:1rem 0px ;
      color: var(--card-bg);
    }
    .introduction p {
      line-height: 1.8;
      color: #333;
      font-size: 1.1rem;
    }
    
   /* ========== 全新底部 Footer 样式 ========== */
footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(126, 34, 206, 0.2);
  padding: 60px 5% 30px;
  color: #999;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #7e22ce;
}

/* 底部菜单链接 */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #06b6d4;
  padding-left: 6px;
}

/* 联系信息 */
.footer-contact p {
  line-height: 2;
}

.footer-contact p i {
  color: #7e22ce;
  margin-right: 8px;
}

/* 版权信息 */
.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #666;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

    /* 响应式 */
    @media (max-width: 768px) {
      nav .logo img {
          width: 80px;
          height: 80px;
      }
      nav .nav-links a {
          font-size: 1.5rem;
      }
      .nav-links {
        display: none;
      }
      nav.scrolled .nav-links {
        display: block;
      }
      .Button{
        border-inline:unset!important;
        padding-inline:unset!important;
      }
      .hero h1 {
        font-size: 2.2rem;
      }
      /* 四格故事漫画 */
      .char-slide {
        grid-template-columns: repeat(2, 1fr);
      }
    }

.Button {
            backface-visibility: hidden;
            background: url(./img/button-pattern.png) 50% / auto 100% repeat-x;
            background-clip: padding-box;
            border: 0;
            border-inline: 1.25em solid transparent;
            color: #264500;
            cursor: pointer;
            display: inline-block;
            font-size: 20px;
            font-size: 2rem;
            font-weight: 700;
            line-height: 2.5;
            outline: 0;
            padding-inline: .45em;
            position: relative;
            text-decoration: none;
            text-shadow: .0454545455em .0909090909em .2727272727em hsla(0, 0%, 100%, .8);
            text-transform: uppercase;
            transform: translateZ(0);
            transition: transform .1s ease-in-out;
            white-space: nowrap;
            z-index: 0;
        }
        .Button:before {
            background: #aaef36;
            border-radius: 100px;
            content: "";
            inset: .18em -.95em;
            opacity: 0;
            position: absolute;
            transition: all .3s;
            z-index: -1;
        }
        .Button:after {
            background: url(./img/button-left.png) 0 / auto 100% no-repeat, url(./img/button-right.png) 100% / auto 100% no-repeat;
            content: "";
            inset: 0 -1.2727272727em;
            position: absolute;
            z-index: -2;
        }
        .hero-title.section-title::after{
            background: unset;
        }
        .hero-font{
            font-size: xx-large;
        }    


         /* 移动端适配 */
        @media (max-width: 1024px) {
            .carousel-slide {
                flex: 0 0 33.33%; /* 平板端一排显示3张 */
            }
             .section-title{
                font-size: 2.5rem;
            }
            .Button{
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .carousel-slide {
                flex: 0 0 50%; /* 手机端一排显示1张 */
            }
            .carousel-btn {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }
            .section-title{
                font-size: 2.2rem;
            }
             .Button{
                font-size: 1.2rem;
            }
            nav.scrolled .nav-links a {
                font-size: 1.2rem;
            }
        }