/* Global Styles - Modern Vibrant Theme */
:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --accent: #fb5607;
    --success: #38b000;
    --danger: #ff006e;
    --warning: #ffbe0b;
    --info: #8338ec;
    --text: #2b2d42;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --card-hover: #f8f9ff;
    --shadow: 0 8px 30px rgba(58, 134, 255, 0.15);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 全局元素选择器添加过渡效果 */
a, button, .game-card, .category-card, .btn-primary {
    transition: var(--transition);
}

/* 微交互效果 - 点击波纹效果 */
.btn-primary, .category-card {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .category-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after, .category-card:focus:not(:active)::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e6eeff 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Hero Section Responsive */
    .hero-section {
        padding: 6rem 0;
        display: block !important;
        visibility: visible !important;
        height: auto;
    }
    
    .hero-section .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        display: flex;
        opacity: 1;
    }
    
    .hero-section .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-section .hero-cta {
        justify-content: center;
    }
    
    /* Featured Stats Responsive */
    .featured-stats {
        display: block !important;
        visibility: visible !important;
        height: auto;
    }
    
    .featured-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-stats .stat-card {
        padding: 1.5rem;
    }
    
    .featured-stats .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .featured-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Header/Navigation */
.header {
    background: rgba(12, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--primary);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 2rem;
}

.nav a {
    color: white;
    font-weight: 600;
}

.nav a:hover, .nav a.active {
    color: #e8f5e9;
}

.logo h1 a {
    color: white;
}

.nav ul li a {
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    color: var(--text);
    font-size: 1.1rem;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 3px;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 0.5rem;
}

.search-bar button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary);
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Hero Section (for new HTML structure) */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    margin-bottom: 2rem;
    display: block;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 62, 65, 0.1) 10px,
        rgba(255, 62, 65, 0.1) 20px
    );
    animation: moveGrid 30s linear infinite;
    z-index: 0;
}

@keyframes moveGrid {
    0% {
        transform: translate(-10px, -10px);
    }
    100% {
        transform: translate(10px, 10px);
    }
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-section .hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-section .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-section .hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.9;
}

.hero-section .hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-section .hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-section .hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-section .hero-img:hover {
    transform: scale(1.02);
}

/* Featured Stats Section */
.featured-stats {
    padding: 4rem 0;
    background: var(--light);
    display: block;
    z-index: 1;
}

.featured-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-stats .stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.featured-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.featured-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-stats .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.featured-stats .stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

.featured-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: var(--transition);
}

.featured-stats .stat-card:hover .stat-number {
    color: var(--primary);
}

.featured-stats .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gradient Background Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 30%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Featured Games */
.featured-games {
    padding: 5rem 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Game card animation styles */
.game-card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 62, 65, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
    transform: perspective(1000px) rotateX(2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Ensure proper display of exactly 9 cards */
.games-grid .game-card {
    opacity: 1;
    transform: translateY(0);
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(58, 134, 255, 0.25);
    background: var(--card-hover);
    border-color: rgba(58, 134, 255, 0.3);
}

/* About Us Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.about-features li i {
    margin-right: 1rem;
    color: var(--success);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: rgba(30, 30, 30, 0.5);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover .member-image {
    border-color: var(--accent);
}

.member-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Info Section */
.contact-info {
    padding: 5rem 0;
    text-align: center;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
}
}

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

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(255, 190, 11, 0.3);
}

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

.game-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    margin-bottom: 1rem;
}

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

.game-stats span {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-stats i {    margin-right: 5px;    color: var(--warning);}

/* 新的游戏卡片布局样式 */
.game-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.hot-label {
    background: linear-gradient(45deg, var(--danger), #ff5757);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.category-title {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HOT游戏行布局 */
.game-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hot-game {
    flex: 0 0 250px;
}

/* 游戏网格布局 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 游戏图片区域 */
.game-image {
    position: relative;
    overflow: hidden;
    height: 140px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

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

/* 游戏信息区域 */
.game-info {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 1));
    padding: 1.2rem;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.game-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.game-card:hover .game-info h3 {
    color: var(--accent);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .game-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.8rem;
    }
    
    .hot-game {
        flex: 1;
        max-width: calc(50% - 0.4rem);
        min-width: 0;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .game-section {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    /* 小屏幕设备调整 */
    .hot-label {
        padding: 0.5rem 1.5rem;
        font-size: 1.3rem;
    }
    
    .category-title {
        font-size: 1.7rem;
    }
    
    .section-header::after {
        width: 60px;
        bottom: -12px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-image {
        height: 120px;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-info h3 {
        font-size: 1rem;
    }
    
    .hot-label {
        padding: 0.4rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .game-section {
        padding: 1.2rem;
        margin-bottom: 2.5rem;
    }
}

/* Categories Section */
.categories {
    padding: 2rem 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
    animation: gradientShift 5s ease infinite;
}

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

.categories .container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories h2 {
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
}

/* 移动端下拉菜单容器 */
.category-dropdown {
    display: none;
    margin-bottom: 20px;
    position: relative;
}

.category-dropdown-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-dropdown-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 4px 20px rgba(58, 134, 255, 0.6);
}

.category-dropdown-btn::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-dropdown-btn.active::after {
    transform: rotate(180deg);
}

.category-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.category-dropdown-content.active {
    max-height: 400px;
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.category-dropdown-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding-left: 25px;
}

.category-dropdown-item.active {
    background: rgba(58, 134, 255, 0.2);
    color: var(--accent);
    font-weight: 600;
    border-left: 3px solid var(--accent);
}

/* New Tab-based Category Navigation */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.category-tab:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 86, 7, 0.3);
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 86, 7, 0.4);
}

/* Category Content Sections */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        display: none;
    }
    
    .category-dropdown {
        display: block;
    }
    
    .categories {
        padding: 1.5rem 0;
    }
}

/* Game Grid Improvements */
.game-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--accent);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.hot-label {
    background: #ff3e3e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    margin-right: 1rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    text-align: center;
}

.newsletter form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2rem;
}

.newsletter input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: var(--card-bg);
    color: var(--text);
    outline: none;
}

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
    background: #e9ecef;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Game Detail Page Styles */
.game-detail {
    padding: 3rem 0;
}

.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.game-sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.game-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.game-main-image img {
    width: 100%;
    height: auto;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-info-detail {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.game-detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-meta-item {
    display: flex;
    align-items: center;
}

.game-meta-item i {
    margin-right: 10px;
    color: var(--accent);
}

.game-description {
    margin-bottom: 2rem;
}

.game-screenshots {
    margin-top: 3rem;
}

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

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .game-detail-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    /* 手机端两列游戏卡片布局 */
    .container {
        padding: 0 4px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        margin-top: 0.5rem;
    }
    
    .game-card {
        border-radius: 8px;
        box-shadow: none;
        margin: 0;
    }
    
    .game-image {
        height: 100px;
        overflow: hidden;
    }
    
    .game-image img {
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .game-category {
        top: 5px;
        right: 5px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .game-info {
        padding: 0.8rem;
    }
    
    .game-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-stats span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 4rem 0;
        display: block !important;
        visibility: visible !important;
        height: auto;
    }
    
    .hero-section .hero-content {
        display: block !important;
        opacity: 1;
    }
    
    .hero-section .hero-text {
        margin-bottom: 2rem;
    }
    
    /* Featured Stats Mobile */
    .featured-stats {
        display: block !important;
        visibility: visible !important;
        height: auto;
        padding: 3rem 0;
    }
    
    .featured-stats .container {
        opacity: 1;
    }
    
    .hero-section .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-text p {
        font-size: 1rem;
    }
    
    .hero-section .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Featured Stats Mobile */
    .featured-stats .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .featured-stats .stat-card {
        padding: 1.2rem;
    }
    
    .featured-stats .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .featured-stats .stat-number {
        font-size: 1.8rem;
    }
    
    /* 保持两列布局 */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 小屏幕进一步优化 */
    .game-image {
        height: 80px;
    }
    
    .game-info h3 {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card,
.category-card,
.hero-content {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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