/* ========================================
   网络表演页面 - 渐变炫酷风格样式
   ======================================== */

/* CSS 变量定义 */
:root {
  /* 主色渐变 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);

  /* 霓虹色 */
  --neon-pink: #f093fb;
  --neon-blue: #00d4ff;
  --neon-purple: #b44aff;

  /* 功能色 */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* ========================================
   动态背景
   ======================================== */
.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 60%, rgba(240, 147, 251, 0.15) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ========================================
   Hero Banner 区域
   ======================================== */
.hero-banner {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.4) 0%, transparent 100%);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(102, 126, 234, 0.1) 60deg,
    transparent 120deg,
    rgba(118, 75, 162, 0.1) 180deg,
    transparent 240deg,
    rgba(240, 147, 251, 0.1) 300deg,
    transparent 360deg
  );
  animation: heroRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes heroRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: relative;
  z-index: 100;
  padding: var(--spacing-md) var(--spacing-lg);
  backdrop-filter: blur(20px);
  background: rgba(15, 12, 41, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  text-shadow: 0 0 20px var(--neon-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-blue);
}

/* ========================================
   页面标题
   ======================================== */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: var(--spacing-xl);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple), var(--neon-blue));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.page-subtitle {
  margin-top: var(--spacing-sm);
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ========================================
   内容区域
   ======================================== */
.content-section {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

/* ========================================
   视频卡片网格
   ======================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
  cursor: pointer;
  aspect-ratio: 1;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(102, 126, 234, 0.3),
    inset 0 0 30px rgba(102, 126, 234, 0.1);
  border-color: var(--neon-blue);
}

.video-card:hover::before {
  opacity: 0.1;
}

.video-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.video-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.video-card:hover .video-card-image {
  transform: scale(1.1);
}

/* 播放按钮覆盖层 */
.video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 2;
}

.video-card:hover .video-card-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  transform: scale(0.8);
  transition: var(--transition-normal);
}

.video-card:hover .play-button {
  transform: scale(1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* ========================================
   页脚适配
   ======================================== */
.footer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 402px;
  margin-top: 120px;
  background: rgba(15, 12, 41, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
}

.footer_content {
  max-width: 840px;
  margin: 0 auto;
}

.footer_content ul {
  display: flex;
  justify-content: center;
  gap: 90px;
  padding-top: 45px;
  margin: 0 auto;
  list-style: none;
}

.footer_content ul li {
  list-style: none;
}

.footer_content ul li a {
  display: block;
  width: 108px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--neon-purple);
  line-height: 36px;
  text-align: center;
  font-size: 16px;
  color: var(--neon-purple);
  transition: var(--transition-normal);
}

.footer_content ul li a:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}

.footer_content .company_name,
.footer_content .company_reg {
  color: var(--text-secondary);
  text-align: center;
}

.footer_content .company_name {
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  margin-top: 16px;
}

.footer_content .company_reg {
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  margin-top: 16px;
}

.footer_content .company_reg a {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 12377图片 */
.footer_content img {
  max-width: 100px;
  height: auto;
  margin-top: 20px;
}

/* ========================================
   回到顶部按钮
   ======================================== */
#toTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow:
    0 4px 20px rgba(102, 126, 234, 0.4),
    0 0 30px rgba(102, 126, 234, 0.2);
  transition: var(--transition-normal);
  overflow: hidden;
}

#toTop::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
  z-index: -1;
  animation: toTopGlow 2s ease-in-out infinite;
}

@keyframes toTopGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

#toTop::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(-45deg);
  margin-top: 4px;
}

#toTop:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(102, 126, 234, 0.5),
    0 0 40px rgba(102, 126, 234, 0.3);
}

/* ========================================
   响应式设计
   ======================================== */

/* 大桌面 - 5列 */
@media (max-width: 1399px) {
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 小桌面 - 4列 */
@media (max-width: 1199px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* 平板 - 3列 */
@media (max-width: 991px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
  }

  .hero-banner {
    min-height: 350px;
  }

  .navbar {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .nav-container {
    gap: 4px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* 手机横屏 - 2列 */
@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .hero-banner {
    min-height: 300px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .content-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .nav-link {
    font-size: 12px;
    padding: 5px 8px;
  }

  #toTop {
    width: 44px;
    height: 44px;
    right: 20px;
    bottom: 20px;
  }
}

/* 手机竖屏 */
@media (max-width: 575px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-banner {
    min-height: 280px;
  }

  .navbar {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .nav-container {
    justify-content: center;
  }

  .nav-link {
    font-size: 11px;
    padding: 4px 6px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .play-button {
    width: 45px;
    height: 45px;
  }

  .play-button::after {
    border-left-width: 14px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .content-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

/* ========================================
   动画辅助类
   ======================================== */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 霓虹文字效果 */
.neon-text {
  text-shadow:
    0 0 5px var(--neon-blue),
    0 0 10px var(--neon-blue),
    0 0 20px var(--neon-blue),
    0 0 40px var(--neon-purple);
}

/* 呼吸灯动画 */
.breathing {
  animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
