/* 全局变量 - 亮色模式 */
:root {
  /* 主色调 */
  --primary-color: #7b2cbf;
  --primary-light: #9d4edd;
  --primary-dark: #5a189a;
  --accent-color: #ff758f;
  --img-opacity:1;
  /* 文本颜色 */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4e69;
  --text-tertiary: #686d76;

  /* 背景颜色 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;

  /* 边框和阴影 */
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* 功能色 */
  --success-color: #2b9348;
  --error-color: #d00000;
  --warning-color: #ffb703;
  --info-color: #4361ee;

  /* 动画时间 */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;

  /* 字体 */
  --font-family: "Noto Sans SC", sans-serif;
}

/* 暗色模式变量 */
.dark-mode {
  /* 主色调 */
  --primary-color: #9d4edd;
  --primary-light: #c77dff;
  --primary-dark: #7b2cbf;
  --accent-color: #ff758f;
  --img-opacity:0.8;

  /* 文本颜色 */
  --text-primary: #f8f9fa;
  --text-secondary: #e9ecef;
  --text-tertiary: #ced4da;

  /* 背景颜色 */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;

  /* 边框和阴影 */
  --border-color: #4a4e69;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.icon-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary-color);
}

.accent {
  color: var(--primary-color);
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.logo:hover .logo-text::after {
  transform: translateX(0);
}

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

.nav-link {
  margin: 0 15px;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

.menu-toggle:hover {
  color: var(--primary-color);
}

/* 英雄区 */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 140px 5% 100px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bg-tertiary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background-color: var(--bg-tertiary);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
  transition: transform var(--transition-normal);
}

.phone-mockup:hover {
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.app-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* 功能区 */
.features {
  padding: 100px 5%;
  background-color: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-primary);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 150%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  transition: color var(--transition-normal);
}

.feature-card p {
  color: var(--text-secondary);
  transition: color var(--transition-normal);
}

/* 隐私区 */
.privacy {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 5%;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.privacy::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--bg-secondary) 100%);
  opacity: 0.5;
  z-index: 0;
}

.privacy-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.privacy-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.privacy-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.privacy-content p {
  margin-bottom: 25px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.privacy-list {
  list-style: none;
  margin-bottom: 35px;
}

.privacy-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}

.privacy-list li i {
  color: var(--success-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

.privacy-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.privacy-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.privacy-illustration:hover {
  transform: scale(1.03);
}

/* 下载区 */
.download {
  padding: 100px 5%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bg-tertiary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.download p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 18px 35px;
  border-radius: 12px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.download-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.download-btn i {
  font-size: 1.5rem;
  margin-right: 12px;
}

/* 页面头部 */
.page-header {
  padding: 140px 5% 60px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bg-tertiary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* 内容区 */
.content-section {
  padding: 80px 5%;
  background-color: var(--bg-primary);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.policy-content ul {
  padding-left: 25px;
}

.policy-content ul li {
  margin-bottom: 12px;
}

.policy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 页脚 */
footer {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 80px 5% 30px;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-logo h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
}

.footer-logo p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links a,
.footer-contact a {
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-contact a i {
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--primary-color);
  font-weight: 500;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealText {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-slide {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-text {
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: revealText 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
  transition-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
  transition-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
  transition-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
  transition-delay: 1s;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero,
  .privacy {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .privacy-content {
    max-width: 100%;
    margin-bottom: 60px;
  }

  .privacy-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .privacy-list li {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .section-title,
  .privacy-content h2,
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    margin: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

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

  .download-options {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-links a:hover,
  .footer-contact a:hover {
    transform: translateX(0) scale(1.05);
  }
}

@media (max-width: 480px) {
  .section-title,
  .privacy-content h2,
  .hero-content h1,
  .page-header h1 {
    font-size: 1.8rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .privacy,
  .features,
  .download {
    padding: 80px 5% 60px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}
.privacy img{
  opacity: var(--img-opacity);
}
