/* 
 * Main CSS for SkillUnlock Theme
 * Mobile-first approach
 */

:root {
  --primary-color: #eeff00;
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --secondary-text: #aaaaaa;
  --card-bg: rgba(255, 255, 255, 0.05);
  --header-height: 60px;
  --container-padding: 1rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Container */
.sk-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.sk-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.sk-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.sk-header__logo img {
  height: 32px;
  width: auto;
}

/* Navigation */
.sk-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.sk-nav__menu {
  display: none;
  list-style: none;
  height: 100%;
}

.sk-nav__item {
  height: 100%;
  position: relative;
}

.sk-nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.sk-nav__link i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.sk-nav__link:hover,
.sk-nav__link.active {
  color: var(--primary-color);
}

.sk-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.sk-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Menu */
.sk-nav__mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 1000;
  padding: 5rem 1rem 1rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.sk-nav__mobile.active {
  right: 0;
}

.sk-nav__mobile-menu {
  list-style: none;
}

.sk-nav__mobile-item {
  margin-bottom: 1rem;
}

.sk-nav__mobile-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.sk-nav__mobile-link i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.sk-nav__mobile-link:hover,
.sk-nav__mobile-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

/* Overlay */
.sk-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sk-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* User Actions */
.sk-user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sk-user-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.sk-user-actions__btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.sk-user-actions__btn .sk-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-top: 0.5rem;
  z-index: 100;
}

.sk-user-actions__btn:hover .sk-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Search */
.sk-search {
  position: relative;
  margin-right: 0.5rem;
}

.sk-search__form {
  display: flex;
  align-items: center;
}

.sk-search__input {
  width: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text-color);
  font-size: 0.875rem;
  transition: width 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

.sk-search__input:focus {
  outline: none;
}

.sk-search.active .sk-search__input {
  width: 180px;
  padding: 0.5rem 0;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.sk-search__submit {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-search__submit:hover {
  color: var(--primary-color);
}

/* Hero Section */
.sk-hero {
  position: relative;
  min-height: 50vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  text-align: center;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

.sk-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.8) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.sk-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.sk-hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(238, 255, 0, 0.3);
  font-weight: 800;
}

.sk-hero__description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sk-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Section */
.sk-section {
  padding: 2rem 0;
}

.sk-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.sk-section__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.sk-section__title i {
  margin-right: 0.5rem;
}

.sk-section__link {
  display: flex;
  align-items: center;
  color: var(--secondary-text);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.sk-section__link i {
  margin-left: 0.25rem;
}

.sk-section__link:hover {
  color: var(--primary-color);
}

/* 模块分割线 */
.sk-section-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(238, 255, 0, 0), rgba(238, 255, 0, 0.3), rgba(238, 255, 0, 0));
  margin: 2rem 0;
  width: 100%;
}

/* Card */
.sk-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sk-card:hover {
  transform: translateY(-5px);
}

.sk-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  aspect-ratio: 2/3;
}

.sk-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.sk-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sk-card:hover .sk-card__poster {
  transform: scale(1.05);
}

.sk-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: rgba(238, 255, 0, 0.9);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.sk-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.sk-card:hover .sk-card__overlay {
  opacity: 1;
}

.sk-card__play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(238, 255, 0, 0.9);
  color: #000;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.sk-card:hover .sk-card__play-btn {
  transform: scale(1.1);
}

.sk-card__content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sk-card__title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.sk-card__title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.sk-card__title a:hover {
  color: var(--primary-color);
}

.sk-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--secondary-text);
  font-size: 0.75rem;
  margin-top: auto;
}

.sk-card__rating {
  display: flex;
  align-items: center;
}

.sk-card__rating i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

/* Grid */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sk-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* Carousel */
.sk-carousel {
  position: relative;
  margin: 0 -1rem;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.sk-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.sk-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.sk-carousel__slide {
  flex: 0 0 auto;
  width: 150px;
}

/* News Card */
.sk-news-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.sk-news-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sk-news-card:hover {
  transform: translateY(-5px);
}

.sk-news-card__image {
  position: relative;
  overflow: hidden;
}

.sk-news-card__link {
  display: block;
  width: 100%;
}

.sk-news-card__link img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.sk-news-card:hover .sk-news-card__link img {
  transform: scale(1.05);
}

.sk-news-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: rgba(238, 255, 0, 0.9);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.sk-news-card__content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sk-news-card__title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.sk-news-card__title-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.sk-news-card__title-link:hover {
  color: var(--primary-color);
}

.sk-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 0.75rem;
  margin-top: auto;
}

.sk-news-card__date,
.sk-news-card__author {
  display: flex;
  align-items: center;
}

.sk-news-card__views {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.sk-news-card__views i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

/* Ad Banner */
.sk-ad {
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.sk-ad__label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--secondary-text);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  border-radius: 0 0 0.25rem 0;
}

.sk-ad__banner {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.sk-ad__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.sk-btn i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.sk-btn--primary {
  background-color: var(--primary-color);
  color: #000;
  border: none;
}

.sk-btn--primary:hover {
  background-color: #d4e500;
  color: #000;
  transform: translateY(-2px);
}

.sk-btn--outline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sk-btn--outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer */
.sk-footer {
  margin-top: auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sk-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sk-footer__logo {
  margin-bottom: 1rem;
}

.sk-footer__description {
  color: var(--secondary-text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.sk-footer__social {
  display: flex;
  gap: 0.75rem;
}

.sk-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sk-footer__social-link:hover {
  background-color: var(--primary-color);
  color: #000;
}

.sk-footer__links-group {
  display: flex;
  flex-direction: column;
}

.sk-footer__links-title {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.sk-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sk-footer__link {
  color: var(--secondary-text);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.sk-footer__link:hover {
  color: var(--primary-color);
}

.sk-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-footer__copyright {
  color: var(--secondary-text);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.sk-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sk-footer__legal-link {
  color: var(--secondary-text);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.sk-footer__legal-link:hover {
  color: var(--primary-color);
}

/* Media Queries */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
  
  .sk-hero {
    min-height: 45vh;
  }
  
  
  .sk-hero__title {
    font-size: 3.5rem;
  }
  
  .sk-hero__description {
    font-size: 1.5rem;
  }
  
  .sk-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .sk-section {
    padding: 3rem 0;
  }
  
  .sk-section__title {
    font-size: 2rem;
  }
  
  .sk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .sk-grid--auto {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .sk-carousel__slide {
    width: 180px;
  }
  
  .sk-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sk-footer__container {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .sk-section-divider {
    margin: 3rem 0;
  }
}

@media (min-width: 1024px) {
  .sk-nav__menu {
    display: flex;
  }
  
  .sk-nav__toggle {
    display: none;
  }
  
  .sk-hero {
    min-height: 40vh;
  }
  

  
  .sk-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .sk-grid--auto {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .sk-carousel__slide {
    width: 200px;
  }
  
  .sk-news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .sk-footer__container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .sk-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .sk-footer__copyright {
    margin-bottom: 0;
  }
} 