* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --accent-color: #E94B3C;
    --dark-bg: #1a1a2e;
    --light-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #b8b8b8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
}

/* 滚动时的视觉反馈 */
body.scrolling {
    cursor: grabbing;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 26, 46, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 滚动进度条 - 增强版 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3), transparent);
    animation: float 20s infinite ease-in-out;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.element-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .company-name {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5);
}

/* Hero 统计数据 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    text-align: center;
    min-width: 140px;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    opacity: 0.9;
}

/* 动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
.section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 关于区域 */
.about {
    background: var(--light-bg);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-gray);
}

/* 特色区域 */
.features {
    background: var(--dark-bg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.feature-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.3;
    min-width: 120px;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
}


/* 关于区域副标题 */
.about-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* 游戏区域 */
.games-section {
    background: var(--light-bg);
}

/* 分类筛选标签 */
.game-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn .btn-loading {
    display: inline-block;
}

/* 隐藏的游戏卡片 */
.game-card.hidden {
    display: none;
}

.game-card.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 320px);
    gap: 2rem;
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 6;
    width: 320px;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.3);
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

/* 精品 - 红色（默认） */
.game-badge.badge-jingpin {
    background: var(--accent-color);
    box-shadow: 0 2px 10px rgba(233, 75, 60, 0.5);
}

/* 默认红色（当没有指定其他类型时） */
.game-badge:not(.badge-qingliang):not(.badge-youzhi):not(.badge-jingpin):not(.new-badge) {
    background: var(--accent-color);
    box-shadow: 0 2px 10px rgba(233, 75, 60, 0.5);
}

/* 轻量 - 绿色 */
.game-badge.badge-qingliang {
    background: #4caf50;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
}

/* 优质 - 蓝色 */
.game-badge.badge-youzhi {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.5);
}

/* NEW - 蓝色（保持兼容） */
.game-badge.new-badge {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.5);
}

.game-image {
    width: 100%;
    flex: 0 0 80%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e; /* 默认背景色 */
}

/* 游戏截图图片样式 */
.game-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例，覆盖整个区域 */
    object-position: center;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 备用预览（当图片加载失败时显示） */
.game-preview-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.game-preview {
    font-size: 4rem;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 当没有图片时使用的预览文字容器 */
.game-preview-text {
    font-size: 4rem;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-info {
    padding: 1rem 1.2rem;
    flex: 0 0 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: rgba(22, 33, 62, 0.8);
    min-height: 0;
    overflow: hidden;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.game-category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.8rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 5;
}

.game-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.4);
    white-space: nowrap;
}

.game-card:hover .game-button {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.game-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.6);
}

.game-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.game-card:hover .game-preview-image {
    opacity: 0.7;
    transform: scale(1.05);
    transition: all 0.4s ease;
}

.game-card:hover .game-preview,
.game-card:hover .game-preview-text {
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.game-card:hover .game-category {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* 联系我们区域 */
.contact-section {
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 视差效果 */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 底部 */
.footer {
    background: var(--dark-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-gray);
    margin: 0.3rem 0;
}

.footer-icp {
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .company-name {
        font-size: 2.5rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 2.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stat-label {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 260px);
        gap: 1.5rem;
        max-width: 600px;
        justify-content: center;
    }
    
    .game-card {
        width: 260px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-number {
        min-width: auto;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 1800px) {
    .games-grid {
        grid-template-columns: repeat(4, 320px);
        gap: 2rem;
        max-width: 1800px;
        justify-content: center;
    }
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(3, 320px);
        gap: 2rem;
        max-width: 1200px;
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .games-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 1.5rem;
        max-width: 800px;
        justify-content: center;
    }
    
    .game-card {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stat-item {
        min-width: 100px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
}

