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

:root {
  --primary-color: #4a90e2;
  --secondary-color: #5c6ac4;
  --accent-color: #f0f4f8;
  --text-color: #333;
  --light-text: #666;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* 响应式布局变量 */
  --header-height: 64px;
  --header-height-mobile: 56px;
  --content-padding: 100px 0;
  --content-padding-tablet: 70px 0;
  --content-padding-mobile: 40px 0;
  --container-padding: 0 20px;
  --hero-padding-top: 150px;
  --hero-padding-top-tablet: 100px;
  --hero-padding-top-mobile: 80px;
  --section-gap: 40px;
  --section-gap-mobile: 25px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
}

section {
  padding: var(--content-padding);
  position: relative;
}

section:nth-child(even) {
  background-color: var(--accent-color);
}

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

a:hover {
  color: var(--secondary-color);
}

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

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  display: block;
  object-fit: contain;
}

.logo h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links li {
  margin-left: 30px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

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

.language-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 30px 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: var(--white);
  cursor: pointer;
  max-width: 150px;
  font-size: 14px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.language-selector:focus {
  outline: none;
  border-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  z-index: 1001;
}

/* 英雄区 */
.hero {
  padding-top: var(--hero-padding-top);
  padding-bottom: 80px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h2 {
  font-size: clamp(24px, 5vw, 48px);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--light-text);
}

.hero-buttons {
  margin-bottom: 40px;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--section-gap);
  margin-top: 0;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 300px;
  margin-bottom: 40px;
}

.phone-slider-container {
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  overflow: hidden;
}

.hero-features {
  flex: 0 0 500px;
  text-align: left;
  max-width: 500px;
}

.hero-features h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.hero-features h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-feature-item .feature-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 3px;
}

.hero-feature-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-color);
}

.hero-feature-text p {
  font-size: 14px;
  margin: 0;
  color: var(--light-text);
  line-height: 1.5;
}

.phone-slider {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.phone-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phone-slide.active {
  display: block;
  opacity: 1;
}

.phone-slide img {
  width: 100%;
  display: block;
}

.slide-caption {
  display: none;
}

/* 保留其他样式以防将来需要恢复 */
.slide-caption h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #ffffff;
}

.slide-caption p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

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

.slider-prev, .slider-next {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
  background: var(--secondary-color);
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 4px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 10px;
  font-size: 18px;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-text {
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-text i {
  margin-left: 8px;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--secondary-color);
}

.btn-text:hover i {
  transform: translateY(3px);
}

/* 特点介绍 */
.features-section {
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.feature-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

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

/* 产品展示 */
.showcase-section {
  text-align: center;
}

.phone-showcase {
  margin: 60px 0;
  position: relative;
}

/* 隐私政策 */
.privacy-section {
  background-color: var(--accent-color);
}

.privacy-summary {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.privacy-summary > p {
  font-size: 18px;
  margin-bottom: 30px;
}

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

.privacy-points li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.privacy-points i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 20px;
}

.privacy-detail {
  display: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: left;
}

.privacy-detail.active {
  display: block;
}

.privacy-detail h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.privacy-detail h4 {
  font-size: 18px;
  margin: 25px 0 15px;
}

.privacy-detail p {
  margin-bottom: 15px;
}

.privacy-detail ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.privacy-detail-close {
  display: inline-block;
  margin-top: 20px;
}

/* 联系我们 */
.contact-section {
  padding: 80px 0;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-email {
  font-size: 24px;
  display: block;
  margin: 20px 0;
  color: var(--primary-color);
}

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

.social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  margin: 0 10px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-5px);
}

/* 页脚 */
footer {
  background-color: #345995;
  padding: 30px 0;
  text-align: center;
  color: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 15px;
  position: relative;
  opacity: 0.9;
  border-radius: 4px;
  white-space: nowrap;
}

.footer-link:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-link i {
  margin-right: 8px;
}

/* 自适应布局 - 使用CSS网格和媒体查询 */
@media (max-width: 991px) {
  :root {
    --content-padding: var(--content-padding-tablet);
    --hero-padding-top: var(--hero-padding-top-tablet);
  }
  
  .hero-content {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-features {
    margin-top: var(--section-gap);
    padding: 0 20px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --section-gap: var(--section-gap-mobile);
  }
  
  header {
    height: var(--header-height-mobile);
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .navbar {
    flex-wrap: wrap;
  }
  
  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }
  
  .nav-container {
    order: 2;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    height: auto;
    align-items: flex-start;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    height: auto;
    margin-left: 0;
    width: 100%;
    padding: 0 20px;
  }
  
  .nav-links a {
    height: auto;
    display: block;
    padding: 12px 0;
    width: 100%;
    font-size: 16px;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .language-menu {
    width: 100%;
    padding: 0 20px;
    margin-top: 10px;
  }
  
  .language-selector {
    width: 100%;
    max-width: 100%;
    padding: 12px 30px 12px 12px;
    margin-left: 0;
    font-size: 16px;
  }
  
  .phone-slider-container {
    max-width: 250px;
  }
  
  .hero-feature-item {
    padding: 12px;
  }
  
  .hero-feature-text h4 {
    font-size: 16px;
  }
  
  .hero-feature-text p {
    font-size: 13px;
  }
  
  .hero p {
    margin-bottom: 25px;
  }
  
  .hero-buttons {
    margin-bottom: 35px;
  }
  
  .btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .hero-image {
    margin-bottom: 30px;
  }
  
  .hero-features h3 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .hero-features-list {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: var(--content-padding-mobile); 
  }
  
  .hero {
    padding-top: calc(var(--header-height-mobile) + 20px);
  }
  
  .hero p {
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    margin-bottom: 30px;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 15px;
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 250px;
  }
  
  .section-header h2 {
    font-size: clamp(20px, 5vw, 28px);
  }
  
  .section-header p {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-image {
    margin-bottom: 25px;
  }
  
  .hero-features h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .hero-features h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-features-list {
    gap: 15px;
  }
}
