/* 基础样式 */
:root {
  --primary-color: #ffffff;
  --secondary-color: #e0e0e0;
  --text-color: #ffffff;
  --light-text-color: #e0e0e0;
  --background-color: #6a0dad;
  --light-background-color: #8a2be2;
  --border-color: #9d4edd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: radial-gradient(circle at center, #8a2be2 0%, #6a0dad 100%);
}

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

/* 导航栏样式 */
header {
  background-color: rgba(106, 13, 173, 0.9);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffd700;
}

.nav-link.active {
  color: #ffd700;
  font-weight: bold;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}



/* 语言选择器样式 */
.language-selector {
  margin-left: 2rem;
}

.language-select {
  background-color: var(--light-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.language-select:hover {
  background-color: var(--border-color);
}

.language-select:focus {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}



/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* 主要内容区域 */
main {
  margin-top: 80px;
}

/* Hero 区域样式 */
.hero {
  padding: 8rem 0 5rem;
  background-color: transparent;
  text-align: center;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--light-text-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #ffd700;
  color: #6a0dad;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #ffed4e;
  color: #8a2be2;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-image {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.hero-image img {
  max-width: 100%;
  max-height: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 功能区域样式 */
.features {
  padding: 5rem 0;
  text-align: center;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--light-text-color);
}

/* 下载区域样式 */
.download {
  padding: 5rem 0;
  background-color: transparent;
  text-align: center;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.download p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--light-text-color);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 280px;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-color);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.download-btn.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.download-btn.disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
  background-color: rgba(255, 255, 255, 0.1);
}

.download-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.download-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.download-info p {
  margin: 0;
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.download-note {
  margin-top: 2rem;
  color: var(--light-text-color);
}

/* 页脚样式 */
footer {
  background-color: rgba(106, 13, 173, 0.9);
  color: white;
  padding: 3rem 0 1rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #aaa;
}

/* 隐私政策页面样式 */
.privacy-policy {
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-policy h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.privacy-policy .last-updated {
  margin-bottom: 2rem;
  color: var(--light-text-color);
  font-style: italic;
}

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.privacy-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
  color: var(--text-color);
}

.privacy-section p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.privacy-section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

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

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features h2,
  .download h2 {
    font-size: 2rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}