/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #121212;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 200, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #64b5f6;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #b0bec5;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #ec407a);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #b0bec5;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 50%, #3d3d5c 100%);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(100,181,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #64b5f6, #ec407a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(100, 181, 246, 0.6));
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #b0bec5;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    box-shadow: 0 5px 20px rgba(100, 181, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    box-shadow: 0 8px 30px rgba(100, 181, 246, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: #64b5f6;
    border-color: #64b5f6;
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    box-shadow: 0 8px 30px rgba(100, 181, 246, 0.5);
    transform: translateY(-3px);
}

/* 通用区块样式 */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #64b5f6, #ec407a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #64b5f6, #ec407a);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
}

/* 特色游戏样式 */
.featured-games {
    padding: 100px 0;
    background: #1a1a2e;
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 181, 246, 0.3);
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-image::before {
    opacity: 1;
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #64b5f6;
    font-weight: 600;
}

.game-category {
    display: inline-block;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(100, 181, 246, 0.3);
}

.game-description {
    color: #b0bec5;
    font-size: 1rem;
    line-height: 1.7;
}

/* 公司理念样式 */
.company-values {
    padding: 100px 0;
    background: #16213e;
    position: relative;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-item {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 181, 246, 0.3);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.value-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #64b5f6;
    font-weight: 600;
}

.value-item p {
    color: #b0bec5;
    font-size: 1rem;
    line-height: 1.7;
}

/* 关于我们页面样式 */
.about {
    padding: 140px 0 100px;
    background: #1a1a2e;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #64b5f6;
    font-weight: 600;
}

.about-text p {
    color: #b0bec5;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-content:hover .about-image img {
    transform: scale(1.05);
}

/* 游戏产品页面样式 */
.games {
    padding: 140px 0 100px;
    background: #1a1a2e;
}

.game-filters {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 5px 10px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    color: #b0bec5;
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    transform: translateY(-3px);
}

/* 联系我们页面样式 */
.contact {
    padding: 140px 0 100px;
    background: #1a1a2e;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.contact-item {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 181, 246, 0.3);
}

.contact-item i {
    font-size: 3rem;
    color: #64b5f6;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #64b5f6;
    font-weight: 600;
}

.contact-item p {
    color: #b0bec5;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    color: #fff;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: #64b5f6;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #b0bec5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links ul li a::before {
    content: '🎮';
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #64b5f6;
    padding-left: 25px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
    color: #b0bec5;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(100, 181, 246, 0.2);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        margin: 0 10px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        margin: 0 10px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6, #ec407a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #42a5f5, #e91e63);
}

/* 页面过渡效果 */
body {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 卡片悬停效果 */
.game-card,
.value-item,
.contact-item {
    position: relative;
    overflow: hidden;
}

.game-card::before,
.value-item::before,
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before,
.value-item:hover::before,
.contact-item:hover::before {
    left: 100%;
}