/* CSS Variables - Material Design 3 */
:root {
    /* Material Design Colors */
    --md-primary: #6750A4;
    --md-primary-container: #EADDFF;
    --md-on-primary: #FFFFFF;
    --md-on-primary-container: #21005D;
    
    --md-secondary: #625B71;
    --md-secondary-container: #E8DEF8;
    --md-on-secondary: #FFFFFF;
    --md-on-secondary-container: #1D192B;
    
    --md-tertiary: #7D5260;
    --md-tertiary-container: #FFD8E4;
    --md-on-tertiary: #FFFFFF;
    --md-on-tertiary-container: #31111D;
    
    --md-error: #BA1A1A;
    --md-error-container: #FFDAD6;
    --md-on-error: #FFFFFF;
    --md-on-error-container: #410002;
    
    --md-surface: #FFFBFE;
    --md-surface-dim: #DDD8DD;
    --md-surface-bright: #FFFBFE;
    --md-surface-container-lowest: #FFFFFF;
    --md-surface-container-low: #F7F2FA;
    --md-surface-container: #F1ECF4;
    --md-surface-container-high: #EBE6EF;
    --md-surface-container-highest: #E6E0E9;
    
    --md-on-surface: #1C1B1F;
    --md-on-surface-variant: #ccc5db;
    --md-outline: #79747E;
    --md-outline-variant: #CAC4D0;
    
    /* Custom Colors */
    --accent-orange: #FF7D00;
    --accent-blue: #165FF;
    --accent-green: #00ff88;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--md-surface);
    color: var(--md-on-surface);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Header */
.header {
    position: static;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.navbar {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--md-primary), var(--accent-orange));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(103, 80, 164, 0.3);
    transition: all var(--transition-normal);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(103, 80, 164, 0.4);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--md-primary), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    min-width: 0;
    max-width: 50%;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-sm) var(--space-lg);
    transition: all var(--transition-normal);
    min-width: 120px;
    flex: 1;
    max-width: 300px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--md-primary), var(--accent-orange));
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-xl);
}

.search-box:focus-within {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.1);
    background: white;
}

.search-box:focus-within::before {
    opacity: 0.1;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--md-on-surface);
    outline: none;
    flex: 1;
    font-size: var(--text-base);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.search-input::placeholder {
    color: var(--md-on-surface-variant);
    font-weight: 400;
}

.search-btn {
    background: none;
    border: none;
    color: var(--md-on-surface-variant);
    cursor: pointer;
    font-size: var(--text-base);
    transition: all var(--transition-normal);
    padding: var(--space-xs);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
}

.search-btn:hover {
    color: var(--md-primary);
    background: rgba(103, 80, 164, 0.1);
    transform: scale(1.1);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-orange), #ff9500);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #e66a00, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 125, 0, 0.4);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-bottom: var(--space-2xl);
    min-height: calc(100vh - 200px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-sizing: border-box;
}

/* Page Content Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.page-hero {
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    text-align: center;
    background: linear-gradient(135deg, var(--md-surface-container-low) 0%, var(--md-surface-container) 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-md);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--md-on-surface);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--md-on-surface-variant);
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-3xl);
    padding: var(--space-lg);
    background: var(--md-surface-container-lowest);
    border-radius: var(--radius-lg);
    border: 1px solid var(--md-outline-variant);
}

.privacy-content,
.contact-content {
    padding: var(--space-lg);
}

.privacy-container,
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section,
.contact-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--md-outline-variant);
}

.privacy-section:last-child,
.contact-section:last-child {
    border-bottom: none;
}

.privacy-section h2,
.contact-section h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--md-on-surface);
    margin-bottom: var(--space-md);
}

.privacy-section p,
.contact-section p {
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.privacy-section ul,
.contact-section ul {
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    padding-left: var(--space-lg);
}

.privacy-section li,
.contact-section li {
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 20px;
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 20px;
        padding-left: var(--space-xs);
        padding-right: var(--space-xs);
    }
}

/* Hero Banner Carousel */
.hero-banner {
    margin: var(--space-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    padding: var(--space-lg);
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 900;
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.hero-description {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.hero-button {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-button:hover {
    background: #e66a00;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-xs);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: var(--space-md);
}

.carousel-next {
    right: var(--space-md);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Section Styles */
.section-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--md-on-surface);
}

/* Featured Games */
.featured-games {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-lg);
}

.games-scroll {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -var(--space-md);
    padding-bottom: var(--space-sm);
}

/* PC端显示滚动条 */
.games-scroll::-webkit-scrollbar {
    height: 8px;
}

.games-scroll::-webkit-scrollbar-track {
    background: var(--md-surface-container-low);
    border-radius: 4px;
}

.games-scroll::-webkit-scrollbar-thumb {
    background: var(--md-outline-variant);
    border-radius: 4px;
}

.games-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--md-primary);
}

/* 移动端隐藏滚动条 */
@media (max-width: 768px) {
    .games-scroll::-webkit-scrollbar {
        display: none;
    }
}

.game-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.game-info {
    padding: var(--space-md);
    width: 100%;
    box-sizing: border-box;
}

.game-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--md-on-surface);
    margin-bottom: var(--space-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.game-genre {
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-xs);
}

.game-rating {
    font-size: var(--text-sm);
    color: var(--accent-orange);
    font-weight: 600;
}

/* Popular Categories */
.popular-categories {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.category-item {
    background: var(--md-surface-container);
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    aspect-ratio: 1;
    text-align: center;
}

.category-item:hover {
    background: var(--md-primary-container);
    border-color: var(--md-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: var(--text-2xl);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-xs);
}

.category-name {
    font-size: var(--text-xs);
    color: var(--md-on-surface-variant);
    font-weight: 500;
}

.category-item:hover .category-icon,
.category-item:hover .category-name {
    color: var(--md-primary);
}

/* Trending Now */
.trending-now {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-lg);
}

.trending-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.trending-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.new-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--accent-orange);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.trending-info {
    padding: var(--space-md);
}

.trending-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: var(--space-xs);
}

.trending-description {
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

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

.trending-genre {
    background: var(--md-primary-container);
    color: var(--md-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.trending-rating {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: var(--text-sm);
}

/* New Releases */
.new-releases {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-lg);
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.release-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    aspect-ratio: 1;
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.release-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.release-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.release-card:hover .release-image img {
    transform: scale(1.05);
}

.release-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-orange);
    color: white;
    padding: 2px var(--space-xs);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.release-info {
    /* position: absolute;
    bottom: 0;
    left: 0;
    right: 0; */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--space-md);
    color: white;
}

.release-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.release-genre {
    font-size: var(--text-xs);
    opacity: 0.8;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-sm);
        height: 56px;
    }
    
    .nav-actions {
        gap: var(--space-xs);
        max-width: 60%;
    }
    
    .search-box {
        min-width: 100px;
        max-width: 180px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .search-input {
        font-size: var(--text-sm);
    }
    
    .cta-button {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
    
    .logo-text {
        font-size: var(--text-lg);
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: var(--text-base);
    }
    
    .search-box {
        min-width: 100px;
        max-width: 200px;
        padding: var(--space-xs) var(--space-md);
    }
    
    .cta-button {
        padding: var(--space-xs) var(--space-lg);
        font-size: var(--text-xs);
    }
    
    .carousel-container {
        height: 180px;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .featured-games,
    .popular-categories,
    .trending-now,
    .new-releases {
        padding: 0 var(--space-md);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    .category-item {
        padding: var(--space-md);
    }
    
    .releases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-xs);
        height: 52px;
    }
    
    .nav-actions {
        gap: 4px;
        max-width: 70%;
    }
    
    .search-box {
        min-width: 80px;
        max-width: 120px;
        padding: 4px var(--space-xs);
    }
    
    .search-input {
        font-size: var(--text-xs);
    }
    
    .search-input::placeholder {
        font-size: var(--text-xs);
    }
    
    .cta-button {
        padding: 4px var(--space-xs);
        font-size: 10px;
    }
    
    .logo-text {
        font-size: var(--text-base);
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: var(--text-sm);
    }
    
    .search-box {
        min-width: 80px;
        max-width: 140px;
        padding: 4px var(--space-sm);
    }
    
    .cta-button {
        padding: 4px var(--space-sm);
        font-size: 10px;
    }
    
    .carousel-container {
        height: 160px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .game-card {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }
    
    .game-image {
        height: 150px;
    }
    
    .featured-games,
    .popular-categories,
    .trending-now,
    .new-releases {
        padding: 0 var(--space-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-item {
        padding: var(--space-sm);
    }
    
    .category-icon {
        font-size: var(--text-lg);
    }
    
    .category-name {
        font-size: 10px;
    }
}

/* ===========================================
   Detail Page Specific Styles
   =========================================== */

/* Game Detail Layout */
.game-detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--md-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.breadcrumb-nav a:hover {
    color: var(--md-on-surface);
}

.breadcrumb-nav .separator {
    color: var(--md-outline-variant);
}

.game-hero-section {
    background: var(--md-surface-container);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.game-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Game Image Container - 详情页 */
.game-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.game-image-container:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.game-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-info-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.game-info-container .game-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--md-on-surface);
    margin: 0;
    line-height: 1.2;
}

.game-info-container .game-description {
    font-size: var(--text-base);
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

.game-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--md-surface-container-low);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: var(--text-2xl);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--md-on-surface-variant);
    font-weight: 500;
}

.stat-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--md-on-surface);
}

.game-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* 详情页主要播放按钮 - 重新设计 */
.btn-play-primary {
    background: linear-gradient(135deg, #6750a4 0%, #7c63b8 100%);
    color: #ffffff;
    border: none;
    padding: 20px 48px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(103, 80, 164, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-play-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-play-primary:hover::before {
    left: 100%;
}

.btn-play-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(103, 80, 164, 0.4);
    background: linear-gradient(135deg, #7c63b8 0%, #8b75c5 100%);
}

.btn-play-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
}

.btn-play-primary .btn-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

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

/* 保持旧的 btn-primary 类兼容性 */
.btn-primary {
    background: linear-gradient(135deg, #6750a4 0%, #7c63b8 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(103, 80, 164, 0.4);
    background: linear-gradient(135deg, #7c63b8 0%, #8b75c5 100%);
}

.btn-primary .btn-icon {
    font-size: 18px;
}

/* Related Games Section */
.related-games-section {
    margin-top: var(--space-2xl);
}

.related-games-section .section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: var(--space-lg);
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.related-game-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.related-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-game-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.related-game-info {
    padding: var(--space-md);
}

.related-game-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--md-on-surface);
    margin: 0 0 var(--space-xs) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
}

.related-game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-game-rating .stars {
    color: #ffc107;
    font-size: var(--text-xs);
}

/* Detail Page Responsive Styles */
@media (max-width: 768px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .game-hero-section {
        padding: var(--space-xl);
    }
    
    .game-info-container .game-title {
        font-size: var(--text-2xl);
    }
    
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: var(--text-xs);
    }
    
    .game-hero-section {
        padding: var(--space-md);
    }
    
    .game-info-container .game-title {
        font-size: var(--text-xl);
    }
    
    .game-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .stat-item {
        width: 100%;
    }
    
    .related-games-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-play-primary {
        padding: 16px 32px;
        font-size: 16px;
        min-width: 160px;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .game-image-container:hover {
        transform: scale(1);
    }
}

/* ===========================================
   Search Page Specific Styles
   =========================================== */

/* Search Hero Section */
.page-hero,
.search-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--space-2xl);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: #ffffff;
}

.hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    color: #ffffff;
}

.search-form {
    margin: var(--space-xl) 0;
}

.search-input-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 24px;
    font-size: 20px;
    color: #49454f;
}

.search-input-large {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px 16px 56px;
    font-size: 16px;
    color: #1c1b1f;
    outline: none;
}

.search-input-large::placeholder {
    color: #79747e;
}

.search-btn-large {
    background: #6750a4;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn-large:hover {
    background: #7965b3;
    transform: scale(1.02);
}

.search-trending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.trending-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

.trending-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.trending-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Search Results Section */
.search-results-section {
    margin-top: var(--space-2xl);
}

.search-results-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    gap: var(--space-md);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--md-surface-container);
    border-top-color: var(--md-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--text-lg);
    color: var(--md-on-surface-variant);
    font-weight: 500;
}

.search-results-grid {
    margin-bottom: var(--space-2xl);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--md-outline-variant);
}

.search-results-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--md-on-surface);
    margin: 0;
}

.search-results-count {
    font-size: var(--text-base);
    color: var(--md-on-surface-variant);
    font-weight: 500;
}

/* Games Grid for Search Results */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.games-grid .game-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    min-width: auto;
    max-width: none;
}

.games-grid .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.games-grid .game-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    height: auto;
}

.games-grid .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.games-grid .game-card:hover .game-overlay {
    opacity: 1 !important;
    visibility: visible;
}

.play-btn {
    background: #6750a4;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #7965b3;
}

.games-grid .game-info {
    padding: var(--space-lg);
    width: 100%;
    box-sizing: border-box;
}

.games-grid .game-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--md-on-surface);
    margin: 0 0 var(--space-sm) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.4;
}

.game-description {
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--md-on-surface-variant);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-rating .stars {
    color: #ffc107;
    font-size: var(--text-sm);
}

.game-category {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* No Results State */
.no-results-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: var(--space-lg);
}

.no-results-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: var(--space-sm);
}

.no-results-subtitle {
    font-size: var(--text-lg);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--space-xl);
}

.suggestions-card {
    background: var(--md-surface-container);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.suggestions-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--md-on-surface);
    margin-bottom: var(--space-md);
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: var(--space-xs) 0;
    color: var(--md-on-surface-variant);
    font-size: var(--text-base);
}

.popular-searches {
    margin-top: var(--space-xl);
}

.popular-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--md-on-surface);
    margin-bottom: var(--space-md);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.popular-tag {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popular-tag:hover {
    background: var(--md-primary);
    color: var(--md-on-primary);
    transform: translateY(-2px);
}

/* Search Page Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .page-hero,
    .search-hero-section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-md);
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .search-results-section .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .search-input-container {
        flex-direction: column;
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .search-icon {
        position: static;
        margin-bottom: var(--space-sm);
    }
    
    .search-input-large {
        padding: var(--space-md);
        text-align: center;
    }
    
    .search-btn-large {
        width: 100%;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .search-results-section .container {
        padding: 0 var(--space-sm);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--md-surface-container);
}

::-webkit-scrollbar-thumb {
    background: var(--md-outline-variant);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-primary);
}

/* Footer Styles */
.footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 32px 0 16px;
    margin-top: 64px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-brand {
    text-align: center;
    padding: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1c1b1f;
    margin-bottom: 16px;
}

.footer-description {
    color: #49454f;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1ecf4;
    border: 1px solid #cac4d0;
    border-radius: 12px;
    color: #49454f;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #eaddff;
    color: #6750a4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 80, 164, 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.link-group h4 {
    color: #1c1b1f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    color: #49454f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: #6750a4;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #cac4d0;
    margin-top: 24px;
}

.footer-bottom p {
    color: #49454f;
    font-size: 14px;
    margin: 0;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer {
        padding: 24px 8px 16px;
        margin-top: 48px;
    }
    
    .footer-content {
        padding: 0 8px;
        gap: 24px;
    }
    
    .footer-brand {
        padding: 8px;
    }
    
    .footer-links {
        gap: 16px;
    }
    
    .link-group h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 16px 4px 12px;
        margin-top: 32px;
    }
    
    .footer-content {
        padding: 0 4px;
        gap: 16px;
    }
    
    .footer-brand {
        padding: 4px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-description {
        font-size: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .link-group h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .link-group a {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 16px;
        margin-top: 16px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

@media (min-width: 481px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1fr 3fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}
a{
    text-decoration: none;
    color: var(--md-on-surface-variant);
}