/* Tailwind 自定义配置 */
@layer theme {
  :root {
    --color-dark: #0A0B0E;
    --color-purple: #A855F7;
    --color-blue: #3B82F6;
  }
}

@layer utilities {
  /* 渐变文字 */
  .text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--color-purple), var(--color-blue));
  }
  
  /* 流光按钮动画 */
  .btn-shine {
    position: relative;
    overflow: hidden;
  }
  .btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
  }
  @keyframes shine {
    from { transform: rotate(30deg) translateX(-100%); }
    to { transform: rotate(30deg) translateX(100%); }
  }
  
  /* 玻璃态背景 */
  .glass-bg {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  /* Light Pillar 光柱动画 */
  .light-pillar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
  }
  .pillar {
    position: absolute;
    width: 80px;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(168, 85, 247, 0) 0%,
      rgba(168, 85, 247, 0.1) 50%,
      rgba(59, 130, 246, 0) 100%
    );
    animation: pillarMove 8s infinite ease-in-out;
    transform: translateY(100%);
  }
  @keyframes pillarMove {
    0% { transform: translateY(100%); }
    50% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }
}

/* 科技动态背景 - 粒子动画 */
.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0A0B0E 0%, #050507 100%);
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.particle-line {
  position: absolute;
  background: linear-gradient(45deg, var(--color-purple), var(--color-blue));
  pointer-events: none;
  opacity: 0.3;
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 价格卡片底部对齐 */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-content {
  flex: 1;
}

.price-bottom {
  margin-top: auto;
  padding-top: 1rem;
}

/* 确保网格内的卡片对齐 */
.grid > .price-card {
  height: 100%;
}

/* 价格文字去除背景 */
.price-amount {
  font-size: clamp(2rem, 4vw, 2.5rem);
  background: transparent !important;
  background-color: transparent !important;
}

/* 响应式价格字体 */
.price-amount {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

/* 价格文字发光效果 - 使用text-shadow */
@keyframes textNeonPulse {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
  }
  50% { 
    text-shadow: 0 0 15px rgba(168, 85, 247, 1), 0 0 30px rgba(59, 130, 246, 0.8), 0 0 45px rgba(59, 130, 246, 0.6);
  }
}

.shadow-neon-pulse {
  animation: textNeonPulse 2s ease-in-out infinite;
  background: transparent !important;
  background-color: transparent !important;
}

/* 官网推荐缎带标签 */
.recommend-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #1f2937;
  font-size: 11px;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 20;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 缎带后部折叠效果 - 上小下大的梯形 */
.recommend-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 18px;
  background: #B45309;
  clip-path: polygon(100% 0, 100% 100%, 0 60%);
}

.recommend-badge::after {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 18px;
  background: #B45309;
  clip-path: polygon(0 0, 0 100%, 100% 60%);
}

/* ==================== 视频首页样式 ==================== */

/* 视频英雄区 */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 视频元素 */
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* 视频占位符背景 */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.video-placeholder .placeholder-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  z-index: 2;
}

.video-placeholder .placeholder-text i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

/* 紫色半透明方格覆盖层 */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
}

/* 渐变遮罩层 */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 14, 0.3) 0%,
    rgba(10, 11, 14, 0.1) 50%,
    rgba(10, 11, 14, 0.6) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* 内容层 */
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 视频页导航栏 */
.video-navbar {
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 固定导航栏样式 */
.video-navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.video-navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-navbar .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #A855F7, #3B82F6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-navbar .logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #A855F7, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-navbar .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.video-navbar .nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.video-navbar .nav-links a:hover {
  color: #A855F7;
}

.video-navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #A855F7, #3B82F6);
  transition: width 0.3s ease;
}

.video-navbar .nav-links a:hover::after {
  width: 100%;
}

.video-navbar .nav-actions {
  display: flex;
  gap: 1rem;
}

/* 视频页按钮样式 */
.video-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.video-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.video-btn-outline:hover {
  border-color: #A855F7;
  background: rgba(168, 85, 247, 0.1);
}

.video-btn-primary {
  background: linear-gradient(135deg, #A855F7, #3B82F6);
  color: white;
  position: relative;
  overflow: hidden;
}

.video-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.video-btn-primary:hover::before {
  left: 100%;
}

/* 主要内容区域 */
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .gradient-text {
  background: linear-gradient(to right, #A855F7, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.video-btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* 底部滚动提示 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 第二屏内容区域 */
.content-section {
  min-height: 100vh;
  background: #0A0B0E;
  padding: 5rem 2rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .price-amount {
    font-size: 2rem;
  }
  
  .video-navbar {
    padding: 1rem;
  }

  .video-navbar .nav-links {
    display: none;
  }

  .video-navbar .nav-actions .video-btn-outline {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }
}