/* 
 * 基础样式表 - 包含全站通用样式
 * 此文件定义了网站的基本样式、布局和组件
 */

/* 基础样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

/* 
 * 颜色变量定义 - 可根据需要修改颜色值
 * 修改这些变量可以快速更改整个网站的配色方案
 */
:root {
  --blue-400: #60a5fa; /* 浅蓝色，用于图标等 */
  --blue-500: #3b82f6; /* 主要蓝色 */
  --blue-600: #2563eb; /* 深蓝色，用于按钮悬停等 */
  --blue-700: #1d4ed8; /* 更深的蓝色 */
  --blue-800: #1e40af; /* 深蓝色，用于边框等 */
  --blue-900: #1e3a8a; /* 最深的蓝色，用于背景渐变 */
  --purple-400: #a78bfa; /* 浅紫色 */
  --purple-500: #8b5cf6; /* 紫色 */
  --purple-600: #7c3aed; /* 深紫色 */
  --purple-700: #6d28d9; /* 更深的紫色 */
  --pink-500: #ec4899; /* 粉色 */
  --green-400: #4ade80; /* 绿色，用于成功状态 */
  --red-400: #f87171; /* 红色，用于错误状态 */
  --gray-300: #d1d5db; /* 浅灰色，用于次要文本 */
  --gray-400: #9ca3af; /* 中灰色 */
  --gray-800: #1f2937; /* 深灰色 */
  --gray-900: #111827; /* 最深的灰色，接近黑色 */
}

/* 基础页面设置 */
body {
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

.min-h-screen {
  min-height: 100vh;
}

/* 背景样式 - 可修改渐变颜色和图案 */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.radial-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #1e3a8a 0%, #000000 100%); /* 可修改渐变颜色 */
}

.pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48cmVjdCB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE1MCIgcj0iMTAwIiBzdHJva2U9IiMwMGYiIHN0cm9rZS13aWR0aD0iMC41IiBmaWxsPSJub25lIi8+PC9zdmc+");
  opacity: 0.1;
}

.relative-content {
  position: relative;
  z-index: 10;
}

/* 页面顶部导航栏样式 */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header-scrolled {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo样式 - 可修改颜色和大小 */
.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  margin-left: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

/* 导航链接样式 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.5rem;
}

.nav-link:hover {
  color: var(--blue-400);
}

.nav-link.active {
  color: white;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 0.375rem;
}

/* 联盟链接上的徽章样式 - 可修改颜色和动画 */
.affiliate-link {
  position: relative;
}

.badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: linear-gradient(to right, #ef4444, #ec4899); /* 可修改渐变颜色 */
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

/* 按钮样式 */
.btn-outline {
  color: var(--blue-500);
  border: 1px solid var(--blue-500);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s;
}

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

.btn-primary {
  display: inline-block;
  background-color: var(--blue-600);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--blue-700);
}

/* 首页大标题区域样式 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

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

/* 主标题样式 - 可修改字体大小和渐变颜色 */
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--blue-500), var(--purple-500), var(--pink-500)); /* 可修改渐变颜色 */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-300);
}

/* 特性展示区域样式 */
.features-section {
  padding: 5rem 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* 特性卡片样式 - 可修改背景渐变和阴影 */
.feature-card {
  background: linear-gradient(to bottom right, var(--blue-900), #4c1d95); /* 可修改渐变颜色 */
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.text-blue {
  color: var(--blue-400);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--gray-300);
}

/* 产品演示区域样式 */
.demo-section {
  padding: 5rem 1rem;
}

.demo-container {
  max-width: 1152px;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-300);
}

/* 演示图片容器样式 - 可修改边框半径和阴影 */
.demo-image-container {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1)); /* 可修改渐变颜色 */
  animation: gradient 15s ease infinite;
  background-size: 200% 200%;
  z-index: 1;
}

.demo-image {
  width: 100%;
  border-radius: 0.75rem;
  position: relative;
  z-index: 10;
}

/* 对比区域样式 */
.comparison-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, #000, var(--blue-900)); /* 可修改渐变颜色 */
}

.comparison-container {
  max-width: 896px;
  margin: 0 auto;
}

/* 对比表格样式 - 可修改边框颜色 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
}

.comparison-table th {
  text-align: left;
}

.text-left {
  text-align: left;
}

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

.text-green {
  color: var(--green-400);
}

.text-red {
  color: var(--red-400);
}

.comparison-table thead tr {
  border-bottom: 1px solid var(--blue-500); /* 可修改边框颜色 */
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--blue-800); /* 可修改边框颜色 */
}

/* 号召行动区域样式 */
.cta-section {
  padding: 5rem 1rem;
  text-align: center;
}

/* 页脚样式 */
.footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-400);
}

/* 动画定义 */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* 响应式布局 - 根据屏幕大小调整样式 */
@media (min-width: 640px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-container {
    padding: 0 1.5rem;
  }
}

