/* 基础样式 */
:root {
  --primary-color: #8A2BE2;
  --primary-light: #9d44e6;
  --primary-dark: #6a1cb1;
  --secondary-color: #00BFFF;
  --secondary-light: #33ccff;
  --secondary-dark: #0095cc;
  --accent-color: #FF1493;
  --accent-light: #ff47a9;
  --accent-dark: #cc0f76;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --error-color: #F44336;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --card-bg: #ffffff;
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-button: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --font-heading: 'Poppins', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  color: var(--text-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(138, 43, 226, 0.6);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-download {
  background: var(--gradient-button);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  transition: var(--transition);
  margin-top: 15px;
  border: none;
}

.btn-download i {
  margin-right: 8px;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(138, 43, 226, 0.5);
  color: white;
}

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.logo span {
  color: var(--accent-color);
}

.header.scrolled .logo h1 {
  color: var(--text-dark);
}

.menu-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: white;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
}

.header.scrolled .nav-menu a {
  color: var(--text-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu .download-btn {
  background: var(--accent-color);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 15px;
}

.nav-menu .download-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* 英雄部分样式 */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particles-bg::before,
.particles-bg::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.particles-bg::before {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  animation: float1 8s infinite;
}

.particles-bg::after {
  width: 400px;
  height: 400px;
  top: 40%;
  right: 10%;
  animation: float2 10s infinite;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  100% {
    transform: translate(-100px, 30px) scale(1.2);
    opacity: 0.5;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  color: white;
  max-width: 550px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: white;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.app-info {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.info-item {
  text-align: center;
}

.info-item i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
}

.info-item span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.info-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.app-screen {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
}

.hero-image:hover .app-screen {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-el {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.el-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation: float-element 6s ease-in-out infinite;
}

.el-2 {
  width: 50px;
  height: 50px;
  bottom: 30%;
  right: 15%;
  animation: float-element 8s ease-in-out infinite;
}

.el-3 {
  width: 70px;
  height: 70px;
  bottom: 10%;
  left: 30%;
  animation: float-element 7s ease-in-out infinite 1s;
}

@keyframes float-element {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

/* 功能部分样式 */
.features {
  background-color: var(--bg-light);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 应用截图部分样式 */
.screenshots {
  background-color: #f8f9fa;
  position: relative;
}

.screenshots-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.screenshots-slider::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 80%;
  max-width: 80%;
  scroll-snap-align: center;
  text-align: center;
  transition: var(--transition);
}

.screenshot-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
}

.screenshot-caption {
  font-size: 1rem;
  color: var(--text-medium);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.prev-btn,
.next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--primary-light);
  color: white;
}

.prev-btn i,
.next-btn i {
  font-size: 0.9rem;
}

.slider-dots {
  display: flex;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

/* 技术优势部分样式 */
.tech-advantage {
  padding: 120px 0;
  background: linear-gradient(135deg, #f6f9fc, #eef1f5);
}

.tech-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.tech-text {
  flex: 1;
}

.tech-text h2 {
  margin-bottom: 20px;
}

.tech-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.tech-list {
  margin-bottom: 30px;
}

.tech-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.tech-list i {
  color: var(--success-color);
  margin-right: 10px;
  font-size: 1.1rem;
}

.tech-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.tech-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 0;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

/* 用户评价部分样式 */
.testimonials {
  position: relative;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.user-rating {
  color: #FFD700;
  margin-bottom: 15px;
}

.user-rating i {
  margin-right: 2px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-medium);
  line-height: 1.6;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.user-details h4 {
  margin: 0;
  font-size: 1.1rem;
}

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

/* FAQ部分样式 */
.faq {
  background-color: #f8f9fa;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon i {
  font-size: 0.9rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* 下载部分样式 */
.download {
  position: relative;
  overflow: hidden;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.download-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  width: 100%;
  max-width: 320px;
  position: relative;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.download-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.download-badge {
  position: absolute;
  top: -12px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.download-icon {
  margin-bottom: 20px;
}

.download-icon i {
  font-size: 3rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-card h3 {
  margin-bottom: 10px;
}

.download-card p {
  margin-bottom: 25px;
  color: var(--text-light);
}

.download-version {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 15px;
}

.download-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  background: rgba(138, 43, 226, 0.05);
  padding: 15px 30px;
  border-radius: 50px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.download-note i {
  color: var(--primary-color);
  margin-right: 10px;
}

.download-note p {
  margin: 0;
  font-size: 0.95rem;
}

.download-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.download-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.05;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -250px;
  left: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -100px;
}

/* 页脚部分样式 */
.footer {
  background-color: #1a1a2e;
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 15px;
}

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

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links ul li,
.footer-support ul li {
  margin-bottom: 15px;
}

.footer-links a,
.footer-support a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-support a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact ul {
  margin-bottom: 25px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  width: 25px;
  color: var(--primary-light);
  margin-right: 10px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: white;
}

.qr-code {
  text-align: center;
}

.qr-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin: 0 auto 10px;
}

.qr-code p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}