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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

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

/* 按钮样式 */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #2980b9;
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.btn-secondary:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* 头部导航 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 导航栏基础样式 */
/* 头部导航 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto 0 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        background: white;
    }

    .main-nav {
        padding: 10px 20px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .user-actions {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 10px;
    }

    .nav-links.active,
    .user-actions.active {
        display: flex;
    }

    .btn-login, 
    .btn-register {
        width: 100%;
        text-align: center;
    }
}

/* 确保主内容不被导航栏遮挡 */
main {
    margin-top: 70px;
}

/* CTA按钮样式统一 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid white;
}

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

/* 当在浅色背景下的样式 */
.features-section .btn-secondary,
.lifestyle-section .btn-secondary,
.security-section .btn-secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.features-section .btn-secondary:hover,
.lifestyle-section .btn-secondary:hover,
.security-section .btn-secondary:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #2980b9;
    color: #2980b9;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #3498db;
}

.user-actions {
  display: flex;
  gap: 15px;
}

.btn-login, .btn-register {
  padding: 8px 16px;
  border-radius: 4px;
}

.btn-login {
  color: #3498db;
}

.btn-register {
  background-color: #3498db;
  color: white;
}

/* 英雄区域 */
.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* 特性区域 */
.features-section {
  padding: 80px 0;
  background-color: white;
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 20px;
}

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

/* 生活方式区域 */
.lifestyle-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.lifestyle-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.lifestyle-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.lifestyle-item {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.lifestyle-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #3498db;
}

/* 安全区域 */
.security-section {
  padding: 80px 0;
  background-color: white;
}

.security-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.security-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.security-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.badge {
  padding: 8px 16px;
  background-color: #e3f2fd;
  color: #3498db;
  border-radius: 20px;
  font-weight: 500;
}

/* CTA区域 */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* 页脚 */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-info, .footer-links {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-info h3, .footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links a {
  display: block;
  color: #bdc3c7;
  margin-bottom: 10px;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .user-actions {
    width: 100%;
    justify-content: center;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .feature-card {
    min-width: 100%;
  }
  
  .lifestyle-item {
    min-width: 100%;
  }
}

/* 移动端菜单 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
}

/* 添加响应式图片支持 */
img {
  max-width: 100%;
  height: auto;
}

/* 添加暗色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #f0f0f0;
  }
  
  .site-header, .features-section, .security-section {
    background-color: #2a2a2a;
  }
  
  .feature-card {
    background-color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links a {
    color: #f0f0f0;
  }
  
  .btn-login {
    color: #74b9ff;
  }
  
  .badge {
    background-color: #2c3e50;
    color: #74b9ff;
  }
}

/* 添加动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-section, .features-section, .lifestyle-section, .security-section, .cta-section {
  animation: fadeIn 1s ease-in-out;
}

/* 增强移动端体验 */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section h2 {
    font-size: 1.3rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .features-section h2, .lifestyle-section h2, .security-section h2, .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* 添加滚动动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 页面通用样式 */
.about-section,
.help-section,
.terms-section,
.privacy-section {
    padding: 80px 0;
}

.about-section h1,
.help-section h1,
.terms-section h1,
.privacy-section h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.about-content,
.help-content,
.terms-content,
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content h2,
.help-content h2,
.terms-content h2,
.privacy-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: #2c3e50;
}

.about-content p,
.help-content p,
.terms-content p,
.privacy-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content ul,
.help-content ul,
.terms-content ul,
.privacy-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-content li,
.help-content li,
.terms-content li,
.privacy-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ样式 */
.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.faq-item h3 {
    color: #3498db;
    margin-bottom: 15px;
}

/* 联系部分样式 */
.contact-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}