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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(to right, #d97706, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 语言切换器 */
.language-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lang-btn:hover {
  background: #e5e7eb;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 160px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: none;
  overflow: hidden;
  z-index: 50;
}

.lang-menu.show {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s;
}

.lang-option:hover {
  background: #f9fafb;
}

/* Hero区域 */
.hero-section {
  padding: 3rem 0;
  max-width: 1920px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 0;
  }
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
    align-items: center; /* 改为center，确保垂直居中 */
    justify-content: space-between;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
  }
}

@media (min-width: 1920px) {
  .hero-container {
    max-width: 1920px;
    gap: 6rem;
    padding: 0 3rem;
  }
}

.hero-content {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    flex: 0 1 48%; /* 稍微减少，给轮播图更多空间 */
    max-width: 48%;
    min-width: 350px; /* 减少最小宽度 */
  }
}

/* 轮播图 - 单张显示 */
.carousel-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .carousel-wrapper {
    flex: 0 0 52%; /* 固定宽度52% */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 500px;
    width: 52%;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 300px; /* 确保最小宽度 */
  height: 500px;
  overflow: hidden;
  background: transparent; /* 透明背景 */
  border-radius: 20px;
  box-shadow: none; /* 取消阴影 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .carousel-container {
    max-width: 700px;
    height: 600px;
  }
}

@media (min-width: 1024px) {
  .carousel-container {
    width: 100%;
    max-width: 550px; /* 设置合理的最大宽度 */
    min-width: 400px;
    height: 550px;
    overflow: hidden;
  }
}

@media (min-width: 1440px) {
  .carousel-container {
    max-width: 650px;
    min-width: 500px;
    height: 650px;
  }
}

@media (min-width: 1920px) {
  .carousel-container {
    max-width: 750px;
    min-width: 600px;
    height: 750px;
  }
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整显示图片，不裁剪 */
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #1f2937;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

@media (max-width: 767px) {
  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .carousel-prev {
    left: 0.5rem;
  }
  
  .carousel-next {
    right: 0.5rem;
  }
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  width: 2rem;
}

/* 产品介绍 */
.intro-content {
  text-align: left;
}

@media (min-width: 1024px) {
  .intro-content {
    text-align: left;
  }
}

.intro-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #b45309, #c2410c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .intro-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .intro-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
}

.intro-subtitle {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .intro-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .intro-subtitle {
    font-size: 1.25rem;
  }
}

/* 内联下载按钮 */
.download-buttons-inline {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.download-buttons-inline .download-btn {
  width: auto;
  min-width: 180px;
}

@media (max-width: 767px) {
  .download-buttons-inline {
    margin-top: 2rem;
    justify-content: center;
  }
  
  .download-buttons-inline .download-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* 核心特点 */
.features-section {
  padding: 3rem 0;
  background: linear-gradient(to right, #fef3c7, #fed7aa);
}

@media (min-width: 768px) {
  .features-section {
    padding: 4rem 0;
  }
}

.features-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .features-title {
    font-size: 1.875rem;
    margin-bottom: 3rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .feature-card {
    padding: 2rem;
  }
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-icon i.fa-bolt,
.feature-icon i.fa-tag {
  color: #d97706;
}

.feature-icon {
  background: #fef3c7;
}

.feature-icon i.fa-bullseye {
  color: #ea580c;
}

.feature-card:nth-child(2) .feature-icon {
  background: #fed7aa;
}

.feature-name {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .feature-name {
    font-size: 1.25rem;
  }
}

.feature-desc {
  font-size: 0.875rem;
  color: #4b5563;
}

@media (min-width: 768px) {
  .feature-desc {
    font-size: 1rem;
  }
}

/* 下载按钮 */
.download-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .download-section {
    padding: 4rem 0;
  }
}

.download-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .download-title {
    font-size: 1.875rem;
  }
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .download-buttons {
    flex-direction: row;
  }
}

.download-btn {
  display: flex;
  align-items: center;
  background: black;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .download-btn {
    width: auto;
  }
}

.download-btn:hover {
  background: #1f2937;
}

.download-btn i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.download-btn-text {
  text-align: left;
}

.download-btn-label {
  font-size: 0.75rem;
}

.download-btn-platform {
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: #f3f4f6;
  text-align: center;
  font-size: 0.875rem;
  color: #4b5563;
}

