/* ==============================
   Home Page Specific Styles
   ============================== */

/* Hero Banner Section */
.hero-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #6a5acd 0%, #ff6b6b 100%);
    margin-bottom: 60px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 20px 40px rgba(106, 92, 205, 0.3);
}

.hero-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/1920/1080?random=20') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text {
    flex: 1;
    max-width: 600px;
}

.banner-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffd3d6, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.banner-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6a5acd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-content h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}


/* Animations */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Featured Games Section */
.featured-section {
    padding: 60px 0;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 30px;
    margin-bottom: 60px;
}

.featured-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.featured-slide {
    perspective: 1000px;
}

.featured-game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 208, 196, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(106, 92, 205, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 211, 214, 0.5);
    position: relative;
}

.featured-game-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(106, 92, 205, 0.1));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-game-card:hover:before {
    opacity: 1;
}

.featured-game-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(106, 92, 205, 0.3);
}

.game-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.featured-game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

.game-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.game-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333333;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    border-radius: 15px;
    font-size: 0.75rem;
}

.game-rating {
    color: #f8b400;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.9rem;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.game-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 12px;
}

/* Popular Games Section */
.popular-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.section-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.section-link:hover {
    transform: translateX(5px);
}

.games-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.game-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.game-masonry-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 208, 196, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(106, 92, 205, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 211, 214, 0.5);
    position: relative;
}

.game-masonry-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(106, 92, 205, 0.1));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-masonry-card:hover:before {
    opacity: 1;
}

.game-masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(106, 92, 205, 0.25);
}

.game-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.game-masonry-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 92, 205, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.game-masonry-card:hover .game-overlay {
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a5acd;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.btn-icon:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px);
}

.game-info {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.game-name {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-meta .game-category {
    padding: 3px 10px;
    font-size: 0.7rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f8b400;
    font-size: 0.8rem;
}

.game-rating span {
    color: #666666;
    margin-left: 3px;
    font-size: 0.75rem;
}


/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6a5acd, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Animations */
@keyframes glow-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
    }
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 15px;
    }
    
    .banner-text {
        max-width: 100%;
    }
    
    .banner-features {
        max-width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .featured-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hero-banner {
        height: auto;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .games-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .games-masonry {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .hero-banner {
        border-radius: 0 0 20px 20px;
    }
    
    .banner-content {
        padding: 0 10px;
        gap: 20px;
    }
    
    .banner-actions {
        gap: 10px;
    }
    
    .btn-lg {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .banner-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
}

/* 霓虹主题首页样式 */

/* 主容器 */
.neon-home-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 主视觉区域 */
.neon-hero-section {
  position: relative;
  height: 500px;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  margin-bottom: 60px;
  background: rgba(36, 36, 62, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  padding: 40px;
}

.neon-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neon-hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.neon-text-gradient {
  background: var(--neon-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--neon-glow-1);
}

.neon-text-gradient.secondary {
  text-shadow: var(--neon-glow-3);
}

.neon-text-gradient.tertiary {
  text-shadow: var(--neon-glow-4);
}

.neon-hero-subtitle {
  font-size: 1.2rem;
  color: var(--neon-text-medium);
  margin-bottom: 30px;
  max-width: 500px;
}

.neon-hero-actions {
  display: flex;
  gap: 20px;
}

/* 首页按钮样式 */
.neon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--neon-text-light);
  border: 2px solid var(--neon-accent-1);
  border-radius: var(--border-radius-small);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-medium);
  z-index: 1;
  text-decoration: none;
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--neon-gradient-1);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-medium);
}

.neon-button:hover {
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--neon-glow-1);
}

.neon-button:hover::before {
  opacity: 1;
}

.neon-button:active {
  transform: translateY(-1px);
}

.neon-button.secondary {
  border-color: var(--neon-accent-3);
}

.neon-button.secondary::before {
  background: var(--neon-gradient-2);
}

.neon-button.secondary:hover {
  box-shadow: var(--neon-glow-3);
}

.neon-button.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.neon-button.large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.neon-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--neon-gradient-1);
  box-shadow: var(--neon-glow-1);
  opacity: 0.7;
}

.neon-orb.secondary {
  width: 150px;
  height: 150px;
  background: var(--neon-gradient-2);
  box-shadow: var(--neon-glow-3);
  opacity: 0.5;
  top: -50px;
  right: -50px;
}

.neon-orb.tertiary {
  width: 100px;
  height: 100px;
  background: var(--neon-gradient-3);
  box-shadow: var(--neon-glow-4);
  opacity: 0.3;
  bottom: -30px;
  left: -30px;
}

.neon-hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.neon-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 201, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.neon-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 区域标题 */
.neon-section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.neon-section-header .neon-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.neon-section-subtitle {
  color: var(--neon-text-dark);
  font-size: 1.1rem;
  margin-top: 15px;
}

.neon-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-accent-1);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: var(--transition-fast);
}

.neon-section-link:hover {
  color: var(--neon-text-light);
  text-shadow: var(--neon-glow-1);
}

/* 特色游戏区域 */
.neon-featured-section {
  margin-bottom: 60px;
}

.neon-featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.neon-featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.neon-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.neon-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.neon-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--neon-gradient-2);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--neon-glow-3);
  z-index: 2;
}

.neon-card-badge.new {
  background: var(--neon-gradient-1);
  box-shadow: var(--neon-glow-1);
}

.neon-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 41, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: var(--transition-medium);
}

.neon-card:hover .neon-card-overlay {
  opacity: 1;
}

.neon-card-action {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-text-light);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.neon-card-action:hover {
  background: var(--neon-gradient-1);
  color: #000;
  transform: scale(1.1);
  box-shadow: var(--neon-glow-1);
}

.neon-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.neon-card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--neon-text-light);
}

.neon-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.neon-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 201, 255, 0.1);
  color: var(--neon-accent-1);
  border-radius: 20px;
  font-size: 0.8rem;
}

.neon-card-rating {
  color: #f8b400;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.9rem;
}

.neon-card-rating .filled {
  color: #f8b400;
}

.neon-card-actions {
  margin-top: auto;
}

/* 热门游戏区域 */
.neon-popular-section {
  margin-bottom: 60px;
}

.neon-popular-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.neon-popular-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .neon-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .neon-hero-text {
    align-items: center;
  }
  
  .neon-hero-actions {
    justify-content: center;
  }
  
  .neon-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .neon-hero-section {
    height: auto;
    padding: 40px 0;
  }
  
  .neon-hero-title {
    font-size: 2.5rem;
  }
  
  .neon-hero-subtitle {
    font-size: 1rem;
  }
  
  .neon-hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .neon-featured-grid,
  .neon-popular-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}
