/* 基础样式重置和变量定义 */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --dark-color: #1d3557;
  --light-color: #f8f9fa;
  --success-color: #4ade80;
  --warning-color: #facc15;
  --danger-color: #f87171;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --border-radius: 10px;
  --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #0f172a;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(76, 201, 240, 0.1), transparent 20%),
              radial-gradient(circle at bottom left, rgba(67, 97, 238, 0.1), transparent 20%);
  z-index: -2;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* 容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 加载动画 */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 粒子背景 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
a {
  list-style: none;
  text-decoration: none;
  color: #fff;
}
/* 头部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  padding: 15px 0;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-lg);
}

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

.logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  font-weight: 800;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

nav ul li a:hover {
  color: #fff;
}

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

nav ul li a:hover::after {
  width: 100%;
}

.cta-button .btn-primary {
  padding: 10px 25px;
  font-size: 1rem;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  outline: none;
}

.btn-primary {
  background: var(--gradient-bg);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: translateY(-3px);
}

.btn-primary.large {
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* 主要内容区域 */
main {
  margin-top: 80px;
}

/* 首屏区域 */
.hero {
  padding: 50px 0 30px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(2px);
}

.hero-bg img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(67, 97, 238, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.badge-text {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .short-desc {
  font-size: 2rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 30px;
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.stat-number span {
  font-size: 1rem;
  color: var(--accent-color);
  margin-left: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
}

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

.image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image img {
  max-width: 100%;
  height: 40rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  z-index: 2;
  position: relative;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.7;
  filter: blur(20px);
  animation: float 8s infinite ease-in-out;
}

.element-1 {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  top: -30px;
  right: -30px;
  animation-delay: 0s;
}

.element-2 {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

.element-3 {
  width: 50px;
  height: 50px;
  background: var(--success-color);
  top: 50%;
  left: -40px;
  animation-delay: 4s;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  animation: scrollDown 2s infinite;
  z-index: 2;
}

.scroll-down span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* 功能区域 */
.features {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.5);
  position: relative;
}

.features .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.features .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features .section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Tab 栏切换样式 */
.features-tabs {
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
}

.tab-btn {
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  outline: none;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--accent-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
}

.tabs-content {
  padding: 40px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.tab-text {
  flex: 1;
}

.tab-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.tab-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.tab-text ul {
  list-style: none;
  margin-bottom: 30px;
}

.tab-text ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #cbd5e1;
}

.tab-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success-color);
  font-weight: bold;
}

.tab-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tab-image img {
  max-width: 100%;
  height: 40rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tab-image img:hover {
  transform: scale(1.05);
}

/* 详细描述区域 */
.details {
  padding: 100px 0;
}

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

.details-text {
  flex: 1;
}

.details-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.details-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.details-text ul {
  list-style: none;
  margin-bottom: 30px;
}

.details-text ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #cbd5e1;
}

.details-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success-color);
  font-weight: bold;
}

.details-image {
  flex: 1;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.details-image img {
  max-width: 100%;
  height: 28rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

/* CTA区域 */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e2e8f0;
}

/* 页脚 */
footer {
  background: rgba(15, 23, 42, 0.9);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo p {
  color: #94a3b8;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.link-column h4 {
  color: #f1f5f9;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.link-column ul {
  list-style: none;
}

.link-column ul li {
  margin-bottom: 12px;
}

.link-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.link-column ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

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

/* 动画效果 */
.animate-text, .animate-fade-in, .animate-card, .animate-float {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-text.visible, .animate-fade-in.visible, .animate-card.visible, .animate-float.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-slide-in {
  display: inline-block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.text-slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-slide-in.delay-1 {
  transition-delay: 0.2s;
}

.text-slide-in.delay-2 {
  transition-delay: 0.4s;
}

.text-slide-in.delay-3 {
  transition-delay: 0.6s;
}

.animate-fade-in.delay-1 {
  transition-delay: 0.3s;
}

.animate-fade-in.delay-2 {
  transition-delay: 0.6s;
}

.animate-fade-in.delay-3 {
  transition-delay: 0.9s;
}

.animate-card {
  transform: translateY(50px);
}

.animate-card.delay-0 {
  transition-delay: 0.1s;
}

.animate-card.delay-1 {
  transition-delay: 0.3s;
}

.animate-card.delay-2 {
  transition-delay: 0.5s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float.delay-3 {
  animation-delay: 0.5s;
}

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

/* 图片优化 */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

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

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero-content .short-desc {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .details-content {
    flex-direction: column;
  }

  .details-text {
    order: 2;
  }

  .details-image {
    order: 1;
    margin-bottom: 50px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
  
  .tab-content-wrapper {
    flex-direction: column;
  }
  
  .tab-text {
    order: 2;
  }
  
  .tab-image {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .features .section-header h2,
  .details-text h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  nav ul {
    display: none;
  }

  .feature-cards {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .btn-secondary {
    margin-left: 0;
  }
  
  .hero-image img,
  .details-image img {
    max-width: 90%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .tabs-nav {
    flex-direction: column;
  }
  
  .tab-btn {
    text-align: center;
  }
  
  .tabs-content {
    padding: 20px;
  }
}