/* 第一部分：全局样式和头部导航 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8faff;
  color: #2c3e50;
  line-height: 1.7;
  padding-top: 80px;
}

/* 头部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 123, 255, 0.1);
}

header nav {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-end; /* Change to flex-end to push content right */
  padding: 0 2rem;
  position: relative;
  height: 70px;
}

header nav {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
  height: 70px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.8rem;
  transition: transform 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  margin-left: 0;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0;
  box-shadow: none;
  padding: 0;
}

.brand-container {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Changed from 26% to 20px for left alignment */
  transform: none; /* Removed translateX to prevent centering */
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}

.brand-logo {
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.brand-text-image {
  height: 24px;
  vertical-align: middle;
}

.nav-brand {
  display: flex;
  align-items: center;
  margin-left: 5rem; /* 增加左边距，使整体右移 */
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand img {
  height: 53px; /* 增加高度从40px到50px */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 1rem; /* 增加右边距 */
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
  transform: scale(1.2); /* 额外放大图片 */
  transition: transform 0.3s ease; /* 添加过渡效果 */
}

.nav-links {
  margin-left: auto; /* 将导航链接推到右边 */
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a i {
  font-size: 1.1rem;
}

.nav-links a:hover {
  background: linear-gradient(45deg, #87ceeb, #1e4a9f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-2px);
}

.corner-brand {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.corner-brand img {
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

/* 英雄区域 */
.hero {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #e0f2ff, #ffffff);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 0 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
  padding-left: 4rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.hero h1 span {
  font-size: 3.5rem;
  display: block;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.5rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.character {
  max-width: 500px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

/* 按钮样式 */
.buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.buttons button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buttons button:first-child {
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  border: none;
  color: white;
  background-size: 200% 100%;
  background-position: left bottom;
}

.buttons button:first-child:hover {
  background: linear-gradient(45deg, #87ceeb, #1e4a9f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.2);
}

.buttons button:last-child {
  background: transparent;
  border: 2px solid transparent;
  position: relative;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.buttons button:last-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* 特性部分 */
.about {
  padding: 5rem 2rem;
  background: #ffffff;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature .icon {
  font-size: 3rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.feature h3 {
  font-size: 1.5rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.feature p {
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.6;
}
/* 最新动态部分 */
.latest-updates {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f8faff, #e8f4ff);
}

.latest-updates h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.updates-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.updates-content {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.update {
  flex: 0 0 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.update .date {
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.2);
}

.update iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.update p {
  font-size: 1.1rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 1.5rem;
  text-align: center;
  max-width: 800px;
  line-height: 1.8;
}

/* 滑动按钮样式 */
.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 10;
}

.prev-btn, .next-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.15);
}

/* 声库信息部分 */
.voicebank-info {
  padding: 5rem 2rem;
  background: #ffffff;
}

.voicebank-info h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info-content {
  display: flex;
  padding: 3rem;
  gap: 4rem;
}

.info-text {
  flex: 1;
}

.info-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.download-btn {
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.info-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.label {
  color: #666;
  font-weight: 500;
  min-width: 80px;
}

.value {
  background: linear-gradient(45deg, #1e4a9f, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.preview-link {
  text-decoration: none;
  color: #1e4a9f;
  transition: all 0.3s ease;
}

.preview-link:hover {
  color: #87ceeb;
}

.info-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-info {
  max-width: 400px;
  height: auto;
}

/* 动画效果 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* 移动端适配 */
@media (max-width: 768px) {
  header nav {
      padding: 0;
      position: relative;
      height: 70px;
  }

  .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%) scale(1.2);
      height: 100%;
  }

  .menu-toggle.active {
      transform: translateY(-50%) scale(1.2) rotate(90deg);
  }

  .menu-toggle i {
      padding: 10px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* 改为右对齐 */
    width: 200px; /* 设置下拉菜单宽度 */
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    padding: 0.8rem 1.5rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    justify-content: flex-start;
    transition: all 0.3s ease;
    gap: 1rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
  }

  .nav-links a:hover {
    background: rgba(135, 206, 235, 0.08);
    padding-left: 2.5rem;
  }

  .nav-brand {
    margin-left: 1rem;
    font-size: 1.2rem;
  }

  .nav-brand img {
    height: 40px;
    transform: scale(1.1); /* 移动端稍微缩小一点 */
  }

  .corner-brand {
    left: 10px;
    bottom: 10px;
    padding: 8px 12px;
  }

  .corner-brand img {
    height: 20px;
  }

  .brand {
    margin: 0;
    margin-left: 1rem;
    font-size: 1.2rem;
  }

  .brand-container {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    padding: 8px 12px;
  }

  .brand img {
    height: 30px;
  }

  .brand-text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1;
  }

  .brand-top {
      margin-bottom: 0.1rem;
      font-size: 1.3rem;
  }

  .brand-bottom {
      font-size: 1.1rem;
  }

  .brand-logo {
      height: 20px;
  }

  .brand-text-image {
    height: 20px;
  }

  .hero-content {
      flex-direction: column-reverse;
      padding: 2rem 1rem;
      gap: 3rem;
  }

  .hero-text {
      text-align: center;
      padding: 0;
  }

  .hero h1 {
      font-size: 2.5rem;
  }

  .hero h1 span {
      font-size: 1.8rem;
  }

  .hero p {
      font-size: 1.2rem;
  }

  .character {
      width: 100%;
      max-width: 280px;
      margin: 0 auto;
  }

  .buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      width: 100%;
  }

  .buttons button {
      width: 100%;
      max-width: 280px;
  }

  .features {
      grid-template-columns: 1fr;
      padding: 0;
  }

  .feature {
      margin: 0 1rem;
  }

  .updates-container {
      margin: 0 1rem;
  }

  .update {
      padding: 1.5rem;
  }

  .update iframe {
      height: 200px;
  }

  .info-content {
      flex-direction: column-reverse;
      padding: 1.5rem;
      gap: 2rem;
  }

  .info-details {
      grid-template-columns: 1fr;
  }

  .character-info {
      max-width: 280px;
  }

  .info-text h1 {
      font-size: 2rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .download-btn {
      align-self: flex-start;
  }
}

/* 更小屏幕的额外优化 */
@media (max-width: 480px) {
  .brand {
      font-size: 1.1rem;
  }

  .brand-top {
      font-size: 1.2rem;
  }

  .brand-bottom {
      font-size: 1rem;
  }
}

/* 页脚样式 */
footer {
  background: #000000;
  padding: 2rem 1rem;
  color: #ffffff;
  margin-top: 0rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section {
  padding: 1rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: #87ceeb;
}

.copyright {
  text-align: right;
  padding-top: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .copyright {
      text-align: center;
  }
}