/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* 颜色变量 */
    --primary-color: #FD5324;
    --primary-hover: #e8471f;
    --bg-page: #0A0A0A;
    --bg-dark: #270B33;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --card-bg: rgba(255, 255, 255, 0.05);
    --overlay-dark: rgba(39, 11, 51, 0.9);
    --gradient-start: rgba(39, 11, 51, 0);
    --gradient-end: #270B33;
    
    /* 间距变量 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* 字体大小 */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* 过渡 */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ==========================================================================
   3. GLOBAL STYLES & UTILITIES
   ========================================================================== */

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--font-base);
    overflow-x: hidden;
}

/* 工具类 */
.flex-y {
    display: flex;
    flex-direction: column;
}

.flex-x-center {
    display: flex;
    align-items: center;
}

.flex-y-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* 按钮样式 */
.primary-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e8471f 100%);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--primary-shadow, rgba(253, 83, 36, 0.3));
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-shadow, rgba(253, 83, 36, 0.4));
    background: linear-gradient(135deg, #e8471f 0%, var(--primary-color) 100%);
}

.primary-button:active {
    transform: translateY(0);
}

.play-button {
    background: #28A745;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.play-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* ==========================================================================
   5. LAYOUT SECTIONS
   ========================================================================== */

/* Header */
.header {
    height: 10rem;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

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

.logo-link {
    flex-shrink: 0;
    padding-bottom: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo svg {
    height: 64px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--primary-color);
    background: var(--primary-shadow-light, rgba(253, 83, 36, 0.1));
}

/* Main Content */
.main-content {
    flex: 1;
}

/* ==========================================================================
   6. HERO SECTION & CAROUSEL
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100dvh - 10rem);
    min-height: calc(100vh - 10rem);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(39,11,51,0.8) 75%, rgba(39,11,51,0.95) 100%);
}

.hero-title-original {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    margin: 0;
    width: auto;
    white-space: nowrap;
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Infinite Games Container */
.infinite-games-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* Linear Swiper Rows */
.linear-swiper {
    height: 220px;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
}

.linear-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    height: 100%;
    align-items: center;
}

.linear-swiper .swiper-slide {
    width: auto;
    background: transparent;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linear-swiper .swiper-slide img {
    display: block;
    margin: 0;
}

/* Swiper Height Control - Desktop */
.games-swiper-row1,
.games-swiper-row2,
.games-swiper-row3 {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.games-swiper-row1 .swiper-container,
.games-swiper-row2 .swiper-container,
.games-swiper-row3 .swiper-container,
.games-swiper-row1.swiper,
.games-swiper-row2.swiper,
.games-swiper-row3.swiper {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.games-swiper-row1 .swiper-wrapper,
.games-swiper-row2 .swiper-wrapper,
.games-swiper-row3 .swiper-wrapper {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    align-items: center !important;
}

.infinite-games-container .swiper,
.infinite-games-container .swiper-container {
    height: 220px !important;
}

.infinite-games-container .swiper .swiper-wrapper {
    height: 220px !important;
    align-items: center !important;
    display: flex !important;
}

.infinite-games-container .swiper .swiper-slide {
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Row Directions */
.games-swiper-row1 .swiper-wrapper,
.games-swiper-row3 .swiper-wrapper {
    animation-direction: normal;
}

.games-swiper-row2 .swiper-wrapper {
    animation-direction: reverse;
}

/* Game Icons */
.game-icon {
    height: 180px;
    width: 180px;
    object-fit: contain;
    transition: all var(--transition-fast);
    filter: brightness(0.9) contrast(1.1);
    vertical-align: middle;
}

.game-icon:hover {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--primary-shadow, rgba(253, 83, 36, 0.4));
}

/* ==========================================================================
   7. GAME SHOWCASE SECTION
   ========================================================================== */

.game-showcase-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #270B33 100%);
    padding: 4rem 0;
    margin: 0;
}

/* 为外部按钮预留空间 */
.game-showcase-section .flex-y-center {
    position: relative;
    padding: 0 4rem; /* 为外部按钮预留空间 */
}

/* 轮播图容器恢复完整宽度 */
.game-showcase-section .relative.w-full {
    width: 100%;
    padding: 0; /* 移除内部padding，让轮播图使用完整空间 */
}

.game-showcase-swiper {
    width: 100%;
    height: auto;
}

.game-showcase-card {
    display: flex;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin: 1rem;
}

.game-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--primary-shadow, rgba(74, 144, 226, 0.3));
    border-color: var(--primary-color);
}

.game-preview-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.game-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px 0 0 14px;
}

.game-showcase-content {
    width: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.game-showcase-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.game-showcase-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.rating-score {
    font-size: 2.0rem;
    font-weight: 700;
    color: white;
}

.rating-stars {
    font-size: 2.0rem;
    color: #FFD700;
}

.rating-count {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1rem;
    font-size: 1.8rem;
}

.game-description-area {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1rem 0;
    flex: 1;
}

.game-round-icon {
    width: 160px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-showcase-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* Custom Swiper Navigation - 移到轮播图外部 */
.custom-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.custom-swiper-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--primary-shadow, rgba(253, 83, 36, 0.3));
}

/* 将按钮定位到轮播图容器完全外部 */
.game-showcase-section .custom-swiper-button-next {
    right: 0.5rem; /* 距离页面边缘 */
}

.game-showcase-section .custom-swiper-button-prev {
    left: 0.5rem; /* 距离页面边缘 */
}

.custom-swiper-button.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-swiper-button svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* ==========================================================================
   8. ALL GAMES SECTION
   ========================================================================== */

.all-games-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(39, 11, 51, 0.3) 100%);
}

.section-title {
    font-size: var(--font-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.game-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.game-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-shadow-light, rgba(253, 83, 36, 0.1)) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.game-item:hover::before {
    opacity: 1;
}

.game-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px var(--primary-shadow-light, rgba(253, 83, 36, 0.2));
}

.game-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

.game-item:hover .game-item-image {
    transform: scale(1.1);
}

/* ==========================================================================
   9. COMPANY PROFILE SECTION
   ========================================================================== */

.company-profile-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(39, 11, 51, 0.6) 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
}

.company-profile {
    margin: 0 auto;
    text-align: center;
}

.company-description {
    font-size: var(--font-2xl);
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 0;
    text-align: left;
}

/* Company Profile - Mobile响应式 */
@media (max-width: 768px) {
    .company-profile-section {
        padding: var(--spacing-xl) 0;
    }
    
    .company-description {
        font-size: var(--font-lg);
        line-height: 1.6;
        text-align: left;
    }
    
    .company-profile {
        text-align: left;
    }
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, var(--bg-page) 0%, #270B33 100%);
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.footer-link {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-decoration: underline;
    transition: color var(--transition-fast);
    line-height: 1.5;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */

/* Large Screens (≤1535px) */
@media (max-width: 1535px) {
    .game-icon {
        height: 140px;
        width: 140px;
    }
    
    .linear-swiper {
        height: 180px;
    }
    
    .games-swiper-row1,
    .games-swiper-row2,
    .games-swiper-row3,
    .games-swiper-row1.swiper,
    .games-swiper-row2.swiper,
    .games-swiper-row3.swiper,
    .games-swiper-row1 .swiper-wrapper,
    .games-swiper-row2 .swiper-wrapper,
    .games-swiper-row3 .swiper-wrapper,
    .infinite-games-container .swiper,
    .infinite-games-container .swiper-container,
    .infinite-games-container .swiper .swiper-wrapper,
    .infinite-games-container .swiper .swiper-slide {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .hero-title-original {
        font-size: 3rem;
    }
    
    .hero-section {
        height: calc(100dvh - 10rem);
        min-height: calc(100vh - 10rem);
    }
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .infinite-games-container {
        gap: 1rem;
    }
    
    .all-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

/* Medium Tablets (≤1023px) */
@media (max-width: 1023px) {
    .infinite-games-container {
        gap: 0.75rem;
    }
    
    .linear-swiper {
        height: 150px;
    }
    
    .games-swiper-row1,
    .games-swiper-row2,
    .games-swiper-row3,
    .games-swiper-row1.swiper,
    .games-swiper-row2.swiper,
    .games-swiper-row3.swiper,
    .games-swiper-row1 .swiper-wrapper,
    .games-swiper-row2 .swiper-wrapper,
    .games-swiper-row3 .swiper-wrapper,
    .infinite-games-container .swiper,
    .infinite-games-container .swiper-container,
    .infinite-games-container .swiper .swiper-wrapper,
    .infinite-games-container .swiper .swiper-slide {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .game-icon {
        height: 110px;
        width: 110px;
    }
    
    .hero-section {
        height: calc(100dvh - 10rem);
        min-height: calc(100vh - 10rem);
    }
}

/* Mobile & Tablets (≤768px) */
@media (max-width: 768px) {
    .infinite-games-container {
        gap: 0.25rem !important;
    }
    
    .linear-swiper {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .games-swiper-row1,
    .games-swiper-row2,
    .games-swiper-row3 {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header {
        height: 8rem;
        padding: 0 var(--spacing-sm);
    }
    
    .section-content {
        padding: 0 var(--spacing-sm);
    }
    
    .all-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    /* Custom Swiper Buttons - Mobile */
    .custom-swiper-button {
        width: 44px;
        height: 44px;
    }
    
    /* 移动设备上隐藏按钮，使用触摸滑动 */
    .game-showcase-section .custom-swiper-button {
        display: none; /* 隐藏所有导航按钮 */
    }
    
    .game-showcase-section .flex-y-center {
        padding: 0 1rem; /* 移动设备上减少padding，不需要为按钮预留空间 */
    }
    
    .custom-swiper-button svg {
        width: 20px;
        height: 20px;
    }
    
    /* Game Showcase - Mobile */
    .game-showcase-card {
        flex-direction: column;
        min-height: auto;
        margin: 0.5rem;
    }
    
    .game-preview-image {
        width: 100%;
        height: 100%;
    }
    
    .game-preview-img {
        border-radius: 14px 14px 0 0;
    }
    
    .game-showcase-content {
        width: 100%;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .game-showcase-title {
        font-size: 1.7rem;
    }
    
    .game-description-area {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .rating-score,
    .rating-stars,
    .rating-count {
        font-size: 1.2rem;
    }
    
    .game-round-icon {
        display: none;
    }
    
    .game-showcase-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .play-button {
        width: 100%;
        text-align: center;
    }
}

/* Game Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Phones (≤767px) */
@media (max-width: 767px) {
    .hero-title-original {
        font-size: 1.5rem;
        bottom: 2rem;
        z-index: 30;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    .linear-swiper {
        height: 130px;
    }
    
    .games-swiper-row1,
    .games-swiper-row2,
    .games-swiper-row3,
    .games-swiper-row1.swiper,
    .games-swiper-row2.swiper,
    .games-swiper-row3.swiper,
    .games-swiper-row1 .swiper-wrapper,
    .games-swiper-row2 .swiper-wrapper,
    .games-swiper-row3 .swiper-wrapper,
    .infinite-games-container .swiper,
    .infinite-games-container .swiper-container,
    .infinite-games-container .swiper .swiper-wrapper,
    .infinite-games-container .swiper .swiper-slide {
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
    }
    
    .game-icon {
        height: 90px;
        width: 90px;
    }
    
    .hero-section {
        height: calc(100dvh - 25rem);
        min-height: calc(100vh - 25rem);
    }
}

/* Medium Mobile (≤640px) */
@media (max-width: 640px) {
    .all-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .game-item {
        padding: var(--spacing-sm);
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .infinite-games-container {
        gap: 0.125rem !important;
    }
    
    .header-right {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .social-links {
        order: 2;
    }
    
    .primary-button {
        order: 1;
        font-size: var(--font-xs);
    }
    
    .all-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .game-item {
        padding: var(--spacing-sm);
    }
    
    /* 超小屏幕上隐藏按钮，使用触摸滑动 */
    .game-showcase-section .custom-swiper-button {
        display: none !important;
    }
    
    .game-showcase-section .flex-y-center {
        padding: 0 0.5rem; /* 最小padding */
    }
}

/* Very Small Mobile (≤360px) */
@media (max-width: 360px) {
    .infinite-games-container {
        gap: 0.0625rem !important;
    }
    
    .all-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .game-item {
        padding: calc(var(--spacing-sm) * 0.75);
    }
    
    .section-content {
        padding: 0 var(--spacing-xs);
    }
}

/* ==========================================================================
   11. SCROLLBAR & SELECTION STYLES
   ========================================================================== */

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* 禁用用户选择 */
.logo svg,
.game-icon,
.feature-icon {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
