/*!
 * Desktop-Only CSS for SkillUnlock Website
 * 仅用于桌面端的样式，不包含移动端样式
 * 最小宽度：1024px
 */

/* =========================================================================
   基础样式和变量
   ========================================================================= */
:root {
  --primary-color: #CCFF00;
  --secondary-color: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(37, 37, 37, 0.9);
  --hover-transform: translateY(-8px) scale(1.02);
}

/* 仅在桌面端应用 */
@media (min-width: 1024px) {
  
  /* =========================================================================
     全局样式
     ========================================================================= */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* 滚动条样式 */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(204, 255, 0, 0.6);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  /* 容器样式 */
  .container.mx-auto {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* 头部容器 */
  #header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 主体样式 */
  body {
    background-color: #121212;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
  }

  body.overflow-hidden {
    overflow: hidden;
  }

  /* =========================================================================
     导航栏样式
     ========================================================================= */
  .nav-link {
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-color);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  /* =========================================================================
     搜索框样式
     ========================================================================= */
  .search-input {
    padding: 0.75rem 1rem 0.75rem 4rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    width: 20rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }
  
  .search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(204, 255, 0, 0.5);
    width: 24rem;
  }
  
  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  /* =========================================================================
     按钮样式
     ========================================================================= */
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
    border: none;
    cursor: pointer;
  }
  
  .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;
    z-index: -1;
  }
  
  .btn-primary:hover::before {
    left: 100%;
  }
  
  .btn-primary:hover {
    background-color: #B8E600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.4);
  }
  
  .btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
  }
  
  .btn-outline:hover {
    background-color: rgba(204, 255, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
  }

  /* =========================================================================
     Hero区域
     ========================================================================= */
  .hero-section {
    background-image: url('../images/hero1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 700px;
    margin-top: 0;
    padding-top: 80px;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.8) 50%, rgba(18, 18, 18, 0.2) 100%);
    backdrop-filter: blur(8px);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    padding-top: 150px;
    max-width: 600px;
  }

  /* =========================================================================
     卡片样式
     ========================================================================= */
  .content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .content-card:hover {
    transform: var(--hover-transform);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(204, 255, 0, 0.15);
    background: linear-gradient(145deg, rgba(47, 47, 47, 0.9), rgba(28, 28, 28, 0.98));
  }
  
  .content-card .card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #181818;
  }
  
  .content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .content-card:hover img {
    transform: scale(1.05) !important;
  }

  /* =========================================================================
     轮播组件
     ========================================================================= */
  .carousel-wrapper {
    position: relative;
    padding: 0 40px;
  }
  
  .carousel-container {
    overflow: hidden;
  }
  
  .carousel-stage {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
  }
  
  .carousel-slide.content-card {
    flex: 0 0 calc(100% / 6);
    margin-right: 20px;
    padding: 0;
    box-sizing: border-box;
  }
  
  .carousel-slide.content-card:last-child {
    margin-right: 0;
  }
  
  .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(238, 255, 0, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #000;
    font-size: 18px;
  }
  
  .carousel-prev {
    left: 0;
  }
  
  .carousel-next {
    right: 0;
  }
  
  .carousel-nav-btn:hover {
    background: #eeff00;
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
  }

  /* =========================================================================
     播放器页面样式
     ========================================================================= */
  #player-container {
    position: relative;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  #player-container iframe,
  #player-container video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
  }

  #playleft {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
  }

  /* 播放器控制按钮样式 */
  .play-speed-btn,
  .quality-btn {
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .play-speed-btn:hover,
  .quality-btn:hover {
    background-color: rgba(204, 255, 0, 0.2) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
  }

  .play-speed-btn.active,
  .quality-btn.active {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
  }

  /* 集数按钮网格样式 */
  .episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .episode-btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
  }

  .episode-btn:hover {
    background-color: rgba(204, 255, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
  }

  .episode-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
  }

  /* 视频信息区域 */
  .video-info-section {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
  }

  .video-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
  }

  .video-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
  }

  /* 相关视频轮播优化 */
  .related-videos .carousel-item {
    width: 280px;
    flex-shrink: 0;
    margin-right: 1.5rem;
  }

  .related-videos .carousel-item:last-child {
    margin-right: 0;
  }

  .related-videos .content-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .related-videos .content-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(37, 37, 37, 0.9);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }

} /* 结束桌面端媒体查询 */

/* =========================================================================
   桌面端轮播功能增强
   ========================================================================= */

/* 轮播容器优化 */
.carousel-wrapper {
  position: relative;
  padding: 0 40px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(238, 255, 0, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #000;
  font-size: 18px;
}

.carousel-nav-btn:hover {
  background: #eeff00;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-stage {
  display: flex;
  transition: transform 0.3s ease;
  width: 200%; /* 容纳12张卡片，每次显示6张 */
}

/* 桌面端卡片统一尺寸 */
.carousel-slide.content-card {
  width: 200px !important;
  height: 320px !important;
  flex-shrink: 0;
  margin-right: 16px;
}

.carousel-slide.content-card .card-image {
  height: 240px !important;
}

.carousel-slide.content-card .card-info {
  height: 80px !important;
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-slide.content-card .card-title {
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-slide.content-card .card-meta {
  font-size: 0.75rem !important;
  margin-top: auto;
}

/* 桌面端Type页面卡片固定高度 */
.grid .content-card {
  height: 380px !important;
}

.grid .content-card .card-image {
  height: 300px !important;
}

.grid .content-card .card-info,
.grid .content-card .p-3 {
  height: 80px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid .content-card .card-title,
.grid .content-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* 广告栏条桌面端修复 */
.ad-container {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ad-banner {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2520/285 !important;
  display: block !important;
  max-height: 285px !important;
}

.ad-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 确保广告容器在桌面端完整显示 */
@media (min-width: 1024px) {
  .ad-container {
    margin: 0 auto !important;
    padding: 24px 0 !important;
  }
  
  .ad-banner {
    border-radius: 12px !important;
    overflow: hidden !important;
  }
}

/* 页脚固定底部 */
@media (min-width: 1024px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .main-content {
    flex: 1;
  }
  
  footer {
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* 播放页面专用样式修复 */
@media (min-width: 1024px) {
  /* 相关推荐区域间距增加 */
  .related-videos {
    margin-bottom: 3rem !important;
    z-index: 2 !important;
    position: relative !important;
  }
  
  /* Latest News图片容器固定16:9尺寸 */
  .news-image {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    position: relative !important;
    height: auto !important;
  }
  
  .news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* 播放页面轮播项目间距 */
  .related-videos .carousel-item {
    margin-bottom: 1.5rem !important;
  }
  
  /* 广告横幅区域z-index控制 */
  .ad-container,
  .ad-banner {
    z-index: 1 !important;
    position: relative !important;
  }
}

/* 首页卡片和广告栏条优化 */
@media (min-width: 1024px) {
  /* 广告栏条缩小和边距优化 */
  .ad-container {
    padding: 1rem 0 !important;
  }
  
  .ad-banner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    max-height: 200px !important;
    aspect-ratio: 2520/285 !important;
  }
  
  /* 首页轮播卡片优化 */
  .carousel-slide.content-card {
    width: 200px !important;
    height: 320px !important;
    margin-right: 16px !important;
  }
  
  .carousel-slide .card-image {
    height: 240px !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
  }
  
  /* POPULAR TUTORIALS卡片优化 */
  .tutorial-image {
    aspect-ratio: 16/9 !important;
    height: 200px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }
  
  .tutorial-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* 卡片hover效果统一 */
  .content-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  }
  
  .content-card:hover img {
    transform: scale(1.05) !important;
  }
  
  /* 注释：幻灯片样式已移至style.css统一管理，避免冲突 */
} 