/* 云端影视 - UI风格: 动感活力, 布局: C */

/* 基础样式已在HTML内联，此处为增强样式 */

main {
  min-height: 60vh;
}

a {
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* 响应式网格优化 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  main {
    padding: 1.5rem 0 !important;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }
}

/* 卡片悬停效果 */
.video-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 0.9;
}

.back-to-top.show {
  display: flex;
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

article, section {
  animation: fadeIn 0.6s ease-out;
}

/* 打印样式 */
@media print {
  header, footer, nav, .back-to-top {
    display: none;
  }

  body {
    background: white;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
