/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow: hidden; /* 隐藏默认滚动条 */
}

html {
  scroll-behavior: smooth; /* 启用平滑滚动 */
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

.container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 5vw;
}

/* 头部样式 */
header {
  background: rgba(44, 44, 44, 0.9); /* 半透明黑灰色背景 */
  color: white;
  padding: 1vh 0; /* 使用vh单位 */
  box-shadow: 0 0.2vh 1vh rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: -10vw; /* logo靠左侧屏幕距离 */
}

nav {
  margin-right: -10vw; /* 导航靠右侧屏幕距离 */
}

.logo-image {
  height: 6vh; /* 使用vh单位 */
  width: auto;
  object-fit: contain;
  filter: invert(1); /* 颜色反转 - 黑色变白色，白色变黑色 */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3vw; /* 使用vw单位 */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.8vh; /* 使用vh单位 */
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* 主要内容区域 */
main {
  min-height: calc(100vh - 15vh);
  padding: 4vh 0;
}

/* 旧版样式 - 保留但注释掉，避免冲突 */
/*
.hero {
  text-align: center;
  padding: 8vh 0;
  background: white;
  border-radius: 2vh;
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.1);
  margin-bottom: 6vh;
}

.hero h2 {
  font-size: 4vh;
  margin-bottom: 2vh;
  color: #333;
}

.hero p {
  font-size: 2.2vh;
  color: #666;
  margin-bottom: 4vh;
}

.status {
  background: #f8f9fa;
  padding: 2vh;
  border-radius: 1vh;
  border-left: 0.8vh solid #28a745;
}

.status p {
  margin: 0;
  font-weight: 500;
  font-size: 2.2vh;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40vw, 1fr));
  gap: 4vh;
  margin-top: 6vh;
}

.feature {
  background: white;
  padding: 4vh;
  border-radius: 2vh;
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-1vh);
}

.feature h3 {
  color: #667eea;
  margin-bottom: 2vh;
  font-size: 2.8vh;
}

.feature p {
  color: #666;
  font-size: 2.2vh;
}
*/

/* 新区块样式 */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../../picture/background1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 80vw;
  padding: 4vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 靠左侧对齐 */
  width: 100%;
}

.hero-image-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-left: -40vw; /* 向左移动40vw */
  margin-top: -10vh; /* 向上移动10vh */
}

.hero-image {
  max-width: 70vw; /* 增大图片宽度 */
  max-height: 80vh; /* 增大图片高度 */
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-section h2 {
  font-size: 5vh;
  margin-bottom: 3vh;
  font-weight: bold;
  text-shadow: 0.4vh 0.4vh 0.8vh rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 2.8vh;
  margin-bottom: 4vh;
  text-shadow: 0.2vh 0.2vh 0.4vh rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  display: block;
  margin-bottom: 1vh;
  font-size: 1.8vh;
}

.arrow {
  font-size: 3vh;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2vh);
  }
  60% {
    transform: translateY(-1vh);
  }
}

.features-section {
  min-height: 100vh;
  padding: 4vh 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 4.5vh;
  margin-bottom: 6vh;
  color: #333;
}

.features-section .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40vw, 1fr));
  gap: 4vh;
}

.features-section .feature {
  background: white;
  padding: 5vh;
  border-radius: 3vh;
  box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 0.2vh solid #e9ecef;
}

.features-section .feature:hover {
  transform: translateY(-2vh);
  box-shadow: 0 4vh 8vh rgba(0, 0, 0, 0.15);
}

.features-section .feature h3 {
  color: #667eea;
  margin-bottom: 2vh;
  font-size: 2.8vh;
}

.features-section .feature p {
  color: #666;
  line-height: 1.6;
  font-size: 2.2vh;
}

.about-section {
  min-height: 100vh;
  padding: 4vh 0;
  background: white;
  display: flex;
  align-items: center;
}

.about-content {
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 2.8vh;
  line-height: 1.8;
  color: #555;
  margin-bottom: 6vh;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25vw, 1fr));
  gap: 4vh;
  margin-top: 4vh;
}

.stat {
  text-align: center;
  padding: 3vh;
}

.stat h4 {
  font-size: 4vh;
  color: #667eea;
  margin-bottom: 1vh;
  font-weight: bold;
}

.stat p {
  color: #666;
  font-size: 2.2vh;
  margin: 0;
}

/* 第二区块 - 1111轮播图样式 */
.carousel-section {
  min-height: 100vh;
  padding: 0;
  background: #eaeaea;
  position: relative;
  overflow: hidden;
}

.carousel-container-1111 {
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #f5f5f5;
  overflow: hidden;
}

#slide {
  width: max-content;
  margin-top: 50px;
}

.item {
  width: 200px;
  height: 300px;
  background-position: 50% 50%;
  display: inline-block;
  background-size: cover;
  position: absolute;
  top: 50%;
  margin-top: -150px;
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  transition: 0.5s;
}

.item:nth-child(1),
.item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.item:nth-child(3) {
  left: 70%;
}
.item:nth-child(4) {
  left: calc(70% + 220px);
}
.item:nth-child(5) {
  left: calc(70% + 440px);
}
.item:nth-child(n + 6) {
  left: calc(70% + 660px);
  opacity: 0;
}

.item .content {
  width: 300px;
  position: absolute;
  left: 80px;
  top: 40%; /* 从50%调整为40%，使内容整体上移 */
  transform: translateY(-50%);
  font-family: system-ui;
  color: #eee;
  display: none;
}

.item:nth-child(2) .content {
  display: block;
}

.item .name {
  font-size: 40px;
  font-weight: bold;
  opacity: 0;
  animation: showcontent 1s ease-in-out 1 forwards;
}

.item .des {
  margin: 20px 0;
  opacity: 0;
  animation: showcontent 1s ease-in-out 0.3s 1 forwards;
}

.item button {
  padding: 10px 20px;
  border: none;
  background: #fff;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  animation: showcontent 1s ease-in-out 0.6s 1 forwards;
}

@keyframes showcontent {
  from {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.buttons {
  position: absolute;
  bottom: 100px; /* 从50px调整为100px，使按钮位置上移 */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.s_button {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: gray;
  background-color: #ffffff;
  font-size: 25px;
  border-radius: 50%;
  font-weight: bold;
  border: 1px solid #555;
  margin: 0 25px;
  transition: 0.5s;
}

.s_button:hover {
  cursor: pointer;
  background-color: #ccc;
}

/* 第三区块 - 个人区块样式 */
.section-tertiary {
  background-color: transparent;
  width: 100%;
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

/* 鼠标检测区域 */
.mouse-detection-area {
  position: absolute;
  left: 0;
  top: 0;
  width: 10%; /* 左侧10%区域用于检测鼠标靠近 */
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

/* 左侧弹窗样式 */
.left-popup {
  position: absolute;
  left: -30%; /* 初始隐藏在左侧 */
  top: 50%;
  transform: translateY(-50%);
  width: 25%; /* 占据25%显示区域 */
  height: 70%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 0 2vh 2vh 0;
  border-right: 0.3vh solid rgba(255, 255, 255, 0.4);
  transition: left 0.5s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 3vh rgba(0, 0, 0, 0.6);
}

.left-popup.active {
  left: 0; /* 弹出时显示在左侧 */
}

.popup-header {
  padding: 2vh;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 0.1vh solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.popup-header h3 {
  color: white;
  margin: 0 0 1vh 0;
  font-size: 2.2vh;
  font-weight: bold;
  text-shadow: 0 0.2vh 0.5vh rgba(0, 0, 0, 0.8);
}

.popup-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vh;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4vh;
}

.scroll-arrow-img {
  width: 2vh;
  height: 2vh;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.popup-scroll-indicator:hover .scroll-arrow-img {
  opacity: 1;
}

.players-container {
  flex: 1;
  overflow-y: auto;
  padding: 1vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.players-container::-webkit-scrollbar {
  width: 0.6vh;
}

.players-container::-webkit-scrollbar-track {
  background: transparent;
}

.players-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1vh;
}

.players-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.player-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.5vh;
  padding: 1.5vh;
  text-align: center;
  transition: all 0.3s ease;
  border: 0.1vh solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.player-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.3vh);
  box-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.player-avatar {
  width: 8vh;
  height: 8vh;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1vh;
  border: 0.2vh solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.4);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-name {
  color: white;
  font-size: 2.4vh;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0.2vh 0.5vh rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  min-width: 8vh;
}

/* 移动端箭头提示样式 */
.mobile-arrow-indicator {
  position: absolute;
  left: 1vh;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5vh 1vh;
  border-radius: 2vh;
  color: white;
  font-size: 1.6vh;
  z-index: 5;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 0.1vh solid rgba(255, 255, 255, 0.3);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.mobile-arrow-indicator:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.mobile-arrow {
  width: 2.5vh;
  height: 2.5vh;
  animation: bounceRight 2s infinite;
  order: 1; /* 箭头放在文字右边 */
}

@keyframes bounceRight {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(0.5vh);
  }
  60% {
    transform: translateX(0.3vh);
  }
}

/* 玩家信息覆盖层样式 */
.player-info-overlay {
  position: absolute;
  top: 10%;
  right: 5%;
  background: transparent;
  padding: 2vh 3vh;
  text-align: right;
  z-index: 5;
}

.player-info-name {
  font-size: 9vh;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5vh;
  text-shadow: 0.2vh 0.2vh 0.8vh rgba(0, 0, 0, 0.9);
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
}

.player-info-guild {
  font-size: 5vh;
  color: #ffffff;
  margin-bottom: 1vh;
  font-weight: 600;
  text-shadow: 0.2vh 0.2vh 0.6vh rgba(0, 0, 0, 0.8);
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
}

.player-info-expertise {
  font-size: 4.5vh;
  color: #ffffff;
  margin-bottom: 1vh;
  font-style: italic;
  text-shadow: 0.2vh 0.2vh 0.6vh rgba(0, 0, 0, 0.8);
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
}

.player-info-style {
  font-size: 2.5vh;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0.2vh 0.2vh 0.6vh rgba(0, 0, 0, 0.8);
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
  .mobile-arrow-indicator {
    display: flex;
  }

  .player-info-overlay {
    padding: 2vh 3vh;
  }

  .player-info-name {
    font-size: 3vh;
  }

  .player-info-guild {
    font-size: 2.5vh;
  }

  .player-info-expertise {
    font-size: 2.2vh;
  }

  .player-info-style {
    font-size: 2vh;
  }
}

/* 桌面端隐藏移动端箭头提示 */
@media (min-width: 769px) {
  .mobile-arrow-indicator {
    display: none;
  }
}

/* 第四区块 - 书页翻页效果样式 */
.book-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5vh 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.book-viewer {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-container {
  position: relative;
  min-height: 500px;
  margin-bottom: 30px;
}

.page {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 40px;
  min-height: 500px;
  transition: all 0.5s ease;
}

.current-page {
  position: relative;
  z-index: 2;
}

.next-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(100px);
}

.page-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px; /* 减少标题和内容的间距 */
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-image {
  max-width: 100%;
  max-height: 400px;
}

.page-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-text {
  font-size: 2rem;
  line-height: 1.8;
  color: #333;
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
  text-align: center;
  max-height: 9rem; /* 限制为5行，每行1.8行高 */
  overflow: visible; /* 改为visible避免内容被裁剪 */
  display: block; /* 改回block布局 */
  padding: 10px 0; /* 添加内边距确保内容可见 */
  margin: 0 auto; /* 居中显示 */
}

/* 毛笔字体样式 */
.brush-text {
  font-family: "STXingkai", "STKaiti", "KaiTi", "楷体", "仿宋", "FangSong",
    "华文楷体", "STXinwei", serif;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.regular-text {
  font-family: "Arial", "Microsoft YaHei", sans-serif;
  font-size: 1.8rem;
  line-height: 1.6;
}

.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.last-page {
  background: rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.5);
}

.page-btn.last-page:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.7);
}

.page-info {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .book-viewer {
    padding: 20px;
    margin: 0 10px;
  }

  .page {
    padding: 20px;
    min-height: 400px;
  }

  .page-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .page-image img {
    max-height: 300px;
  }

  .page-text {
    font-size: 1.6rem;
  }

  .brush-text {
    font-size: 1.8rem;
  }

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

  .page-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .page-info {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .book-viewer {
    padding: 15px;
  }

  .page {
    padding: 15px;
    min-height: 350px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-image img {
    max-height: 250px;
  }

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

  .brush-text {
    font-size: 1.6rem;
  }

  .regular-text {
    font-size: 1.2rem;
  }

  .page-controls {
    flex-direction: column;
    gap: 15px;
  }

  .page-btn {
    width: 100%;
  }
}

/* 第四区块 - 联系我们样式 */
.contact-section {
  min-height: 100vh;
  padding: 4vh 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vh;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3vh;
}

.contact-item {
  background: white;
  padding: 3vh;
  border-radius: 2vh;
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.1);
  border-left: 0.8vh solid #667eea;
}

.contact-item h3 {
  color: #667eea;
  margin-bottom: 1vh;
  font-size: 2.5vh;
}

.contact-item p {
  color: #666;
  font-size: 2.2vh;
  margin: 0;
}

.contact-form {
  background: white;
  padding: 4vh;
  border-radius: 2vh;
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 2.5vh;
}

.contact-form label {
  display: block;
  margin-bottom: 1vh;
  font-weight: 500;
  font-size: 2.2vh;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.5vh;
  border: 0.4vh solid #e1e5e9;
  border-radius: 1vh;
  font-size: 2.2vh;
  transition: border-color 0.3s ease;
  font-family: "Arial", "Microsoft YaHei", sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.contact-form textarea {
  resize: vertical;
  min-height: 15vh;
}

/* 页脚样式 */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 4vh 0;
  margin-top: 0;
}

/* 右下角背景音乐控制按钮样式 */
.bgm-control-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.bgm-control-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.bgm-control-btn:hover {
  background: rgba(102, 126, 234, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.bgm-control-btn:active {
  transform: scale(0.95);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .bgm-control-container {
    bottom: 20px;
    right: 20px;
  }

  .bgm-control-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 3vw;
  }

  header .container {
    flex-direction: column;
    gap: 2vh;
    padding: 2vh 0;
  }

  .logo-image {
    height: 5vh;
  }

  nav ul {
    gap: 3vw;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 1.6vh;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-section h2 {
    font-size: 3.5vh;
    margin-bottom: 2vh;
  }

  .hero-section p {
    font-size: 2.2vh;
    margin-bottom: 3vh;
  }

  .hero-content {
    padding: 2vh;
  }

  .scroll-indicator {
    bottom: 3vh;
  }

  .scroll-indicator span {
    font-size: 1.6vh;
  }

  .arrow {
    font-size: 2.5vh;
  }

  .features-section,
  .about-section {
    min-height: auto;
    padding: 6vh 0;
  }

  .section-title {
    font-size: 3.5vh;
    margin-bottom: 4vh;
  }

  .features-section .features,
  .features {
    grid-template-columns: 1fr;
    gap: 3vh;
  }

  .features-section .feature,
  .feature {
    padding: 3vh;
    margin: 0 1vw;
  }

  .features-section .feature:hover,
  .feature:hover {
    transform: translateY(-0.5vh);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2vh;
  }

  .stat {
    padding: 2vh;
  }

  .stat h4 {
    font-size: 3vh;
  }

  .stat p {
    font-size: 1.8vh;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 4vh;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2vh;
  }

  .contact-item {
    padding: 2vh;
  }

  .contact-form {
    padding: 3vh;
  }

  footer {
    padding: 3vh 0;
  }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 85vw;
  }

  .hero-section h2 {
    font-size: 4.5vh;
  }

  .hero-section p {
    font-size: 2.5vh;
  }

  .features-section .features,
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 3vh;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3vh;
  }
}

/* 大屏幕适配 */
@media (min-width: 1200px) {
  .container {
    max-width: 80vw;
  }

  .hero-section h2 {
    font-size: 6vh;
  }

  .hero-section p {
    font-size: 3.2vh;
  }

  .features-section .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 表单样式 */
.form-group {
  margin-bottom: 3vh;
}

.form-group label {
  display: block;
  margin-bottom: 1vh;
  font-weight: 500;
  font-size: 2.2vh;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.5vh;
  border: 0.4vh solid #e1e5e9;
  border-radius: 1vh;
  font-size: 2.2vh;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  display: inline-block;
  padding: 1.5vh 4vh;
  background: #667eea;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 1vh;
  font-size: 2.2vh;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #5a6fd8;
}

.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

/* 消息提示 */
.alert {
  padding: 2vh;
  border-radius: 1vh;
  margin-bottom: 2vh;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 0.2vh solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 0.2vh solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 0.2vh solid #ffeaa7;
}
