/* 全局样式 */
.highlight-sync {
  color: #f97316;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { text-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
  50% { text-shadow: 0 0 20px rgba(249, 115, 22, 0.8); }
  100% { text-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
}

:root {
  --primary-color: #f97316; /* 暖橙色 */
  --secondary-color: #ea580c; /* 深橙色 */
  --dark-bg: #1c1917; /* 深棕色背景 */
  --darker-bg: #0c0a09; /* 更深的棕色背景 */
  --card-bg: #292524; /* 卡片背景 */
  --text-light: #fafaf9; /* 浅米色文字 */
  --text-muted: #a8a29e; /* 柔和的灰色文字 */
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航栏 */
.navbar {
  background-color: rgba(28, 25, 23, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(168, 162, 158, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 英雄区域 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 35px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.hero-image {
  flex: 1;
  min-width: 0; /* 修复flex容器中的内容溢出问题 */
  display: flex;
  justify-content: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 轮播图样式 */
.carousel {
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  height: 350px;
  
  /* 中等宽度设备样式 */
  @media (max-width: 900px) and (min-width: 768px) {
    max-width: 100%;
    min-width: 400px;
  }
  
  /* 移动设备样式 */
  @media (max-width: 768px) {
    height: 250px;
    max-width: 100%;
    min-width: 300px;
  }
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5; /* 确保轮播容器在控制按钮下方但仍能接收点击事件 */
  cursor: pointer; /* 明确表示这是可点击区域 */
  overflow: hidden;
  background-color: var(--darker-bg);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide .carousel-image {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--border-radius);
  background-color: var(--darker-bg);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  z-index: 10;
  pointer-events: none; /* 允许点击穿透到下层元素 */
}

.carousel:hover .carousel-btn {
  opacity: 1;
  transform: scale(1);
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  pointer-events: auto; /* 确保按钮可以接收点击事件 */
  opacity: 0;
  transform: scale(0.8);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  pointer-events: none; /* 允许点击穿透到下层元素 */
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
  pointer-events: auto; /* 确保指示器可以接收点击事件 */
}

.indicator.active {
  background: white;
}

/* 模态窗口样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 1280px;
  height: 80%;
  max-height: 800px;
  background-color: var(--dark-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.modal-video {
  width: 100%;
  height: 100%;
  border: none;
  background-color: black;
  object-fit: contain;
}

/* 功能介绍区域 */
.features {
  padding: 100px 0;
  background-color: var(--darker-bg);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 15px auto;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '点击播放演示';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(249, 115, 22, 0.8);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.feature-card:hover::after {
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(249, 115, 22, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* 增加点击区域 */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  cursor: pointer;
}

/* 下载区域 */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  text-align: center;
}

.download-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  min-width: 200px;
}

.download-button.windows {
  background: linear-gradient(90deg, var(--primary-color), #fb923c);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.download-button.mac {
  background: linear-gradient(90deg, var(--secondary-color), #f97316);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.download-support {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 10px 0;
  text-align: center;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 联系提示框样式 */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tooltip.show {
  opacity: 1;
}

/* 页脚 */
.footer {
  background-color: var(--darker-bg);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 300px;
}

.footer-description {
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.link-group h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-group a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 15px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 0;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .download-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-links {
    gap: 30px;
  }
  
  /* 移动端导航菜单 */
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--darker-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
  .nav-links.mobile-hidden {
    transform: translateX(100%);
  }
  
  .nav-links.mobile-visible {
    transform: translateX(0);
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  .nav-links {
    gap: 10px;
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 12px 25px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-card::after {
    padding: 5px 0;
    font-size: 0.8rem;
    opacity: 1;
    transform: translateY(0);
    background: rgba(249, 115, 22, 0.6);
  }
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .download-button {
    min-width: auto;
    max-width: 300px;
    width: 100%;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 20px;
  }
}

/* 移动端导航菜单默认隐藏 */
.menu-toggle {
  display: none;
}