/* 定义音乐主题配色 */
:root {
    --primary-color: #9400D3;      /* 主色调：深紫色 */
    --secondary-color: #FF1493;    /* 次要色：亮粉色 */
    --accent-color: #4B0082;       /* 强调色：靛紫色 */
    --gradient-1: linear-gradient(45deg, #FF1493, #9400D3, #4B0082);
    --gradient-2: linear-gradient(135deg, #4B0082, #9400D3);
    --text-primary: #2D1441;       /* 主要文字颜色 */
    --text-secondary: #6B4E82;     /* 次要文字颜色 */
    --background-light: #FDF4FF;   /* 浅色背景 */
    --background-dark: #F4E6FF;    /* 深色背景 */
    --shadow-color: rgba(148, 0, 211, 0.15);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
}

/* 导航栏基础样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: var(--primary-color);
        margin-left: auto;  /* 将按钮推到右边 */
        padding: 0.5rem;
        z-index: 1001;
    }

    /* 导航链接移动端样式 */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        transition: 0.3s;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-links.active {
        left: 0;
    }

    /* Logo 在移动端的样式 */
    .logo {
        flex: 1;
        padding-right: 50px;
    }

    .main-nav {
        position: relative;
    }

    /* 导航链接样式优化 */
    .nav-links a {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(148, 0, 211, 0.1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-1);
    color: white;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-color);
}

/* 游戏展示区 */
.game-section {
    padding: 4rem 2rem;
    text-align: center;
}

.game-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.game-section > p {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

/* 游戏卡片样式优化 */
.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.game-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* 游戏统计信息样式重写 */
.game-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.2rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-item i {
    font-size: 0.85rem;
}

.stat-item:first-child i {
    color: #3498db;
}

.stat-item:last-child i {
    color: #f1c40f;
}

.stat-item span {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Play Now 按钮样式 */
.play-button {
    display: inline-block;
    padding: 0.8rem 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
}

.play-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* 特性展示区 */
.features-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--background-light), white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.features-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.features-section .content-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: left;
}

.features-section .content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #505c6e;
    margin-bottom: 1.5rem;
}

.features-section .content-card p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1.5rem;
    }

    .features-section h2 {
        font-size: 1.8rem;
    }

    .features-section .content-card {
        padding: 1.5rem;
    }

    .features-section .content-card p {
        font-size: 1rem;
    }
}

/* 评价区域 */
.reviews-section {
    padding: 4rem 2rem;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.review-item {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* About部分 */
.about-section {
    padding: 4rem 2rem;
    text-align: center;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* 页脚样式优化 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;  /* 增加列间距 */
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--background-light), white);
    position: relative;
    max-width: 1200px;  /* 与其他部分保持一致的宽度 */
    margin: 0 auto;
}

/* Footer 区块优化 */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* 改为左对齐 */
    gap: 1rem;  /* 统一间距 */
}

.footer-section h3 {
    color: var(--primary-color);  /* 使用主题色 */
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;  /* 装饰线左对齐 */
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);  /* 添加悬浮效果 */
}

/* 版权信息优化 */
.copyright {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-dark);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        gap: 2rem;
        padding: 3rem 1.5rem;
    }
    
    .footer-section {
        align-items: center;  /* 移动端居中对齐 */
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;  /* 移动端装饰线居中 */
        transform: translateX(-50%);
    }
}

/* 统一的内容区块样式 */
.content-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--background-light), white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.content-section h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.content-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.content-section .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.content-section .content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #505c6e;
    margin-bottom: 1.5rem;
}

.content-section .content p:last-child {
    margin-bottom: 0;
}

/* 修改 content 下的 h1 和 h2 标签样式 */
.content-section .content h1,
.content-section .content h2 {
    text-align: center;  /* 设置文字居中 */
    width: 100%;        /* 确保标题占据整行 */
    margin-bottom: 2rem; /* 保持与下方内容的间距 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1.5rem;
    }

    .content-section h1 {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section .content {
        padding: 1.5rem;
    }

    .content-section .content p {
        font-size: 1rem;
    }
}

/* Share Section 样式优化 */
.share-section {
    padding: 5rem 2rem;
    background: white;
    text-align: center;
    position: relative;
}

.share-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.share-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.share-section > p {
    max-width: 1200px;
    margin: 2rem auto;
    color: #505c6e;
    font-size: 1.1rem;
    line-height: 1.8;
}

.share-options {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.share-text {
    margin-bottom: 2rem;
}

.share-text h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.share-text p {
    color: #505c6e;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a,
.social-links button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: none;
    color: #3498db;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-links a:hover,
.social-links button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    background: #3498db;
    color: white;
}

.copy-link {
    padding: 0;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a,
    .social-links button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Logo 区域优化 - 音乐风格 */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.6rem;  /* 减小字体大小 */
    font-weight: 700;   /* 稍微减轻字重 */
    position: relative;
    padding: 0.4rem 0;  /* 减小内边距 */
    /* 优化渐变色 */
    background: linear-gradient(45deg, #FF1493, #9400D3, #4B0082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: musicPulse 2s infinite;
}

/* 音符装饰 */
.logo-text::before {
    content: '♪';
    position: absolute;
    left: -1rem;    /* 调整音符位置 */
    top: 0.2rem;
    font-size: 1rem; /* 减小音符大小 */
    opacity: 0.8;
    color: #9400D3;
    -webkit-text-fill-color: #9400D3;
    animation: floatNote 3s ease-in-out infinite;
}

.logo-text span {
    font-size: 0.9em;  /* 使 Incredibox 稍小于 Sprunki */
    background: linear-gradient(45deg, #4B0082, #9400D3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 音乐波浪效果 */
.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #FF1493,
        #9400D3,
        #4B0082,
        transparent
    );
    animation: waveMove 2s infinite;
}

/* 动画定义 */
@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes floatNote {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

@keyframes waveMove {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;  /* 移动端更小的字体 */
    }
    
    .logo-text::before {
        font-size: 0.9rem;
        left: -0.8rem;
    }
}

/* 导航链接优化 */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 游戏页面特定样式 */
.games-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-1);
    color: white;
}

.games-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.games-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.games-showcase {
    padding: 4rem 2rem;
}
