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

a {
    text-decoration: none;
    color: inherit;
}

/* 确保所有a链接都没有下划线 */
a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.nav {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-accent {
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 主内容区 */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* 章节标题 */
.section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 游戏网格 */
.games-section {
    margin-bottom: 6rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0), rgba(0,0,0,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-icon, .game-thumbnail {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.game-icon {
    font-size: 32px;
    color: #333;
}

.game-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover .game-icon, .game-card:hover .game-thumbnail {
    background-color: #eaeaea;
}

.game-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.game-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .game-preview {
    opacity: 1;
    transform: translateY(0);
}

/* 数据看板 */
.stats-section {
    margin-bottom: 4rem;
}

.stats-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stats-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 游戏详情模态框 */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-modal.active {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.game-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

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

.game-image-container {
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: auto;
    display: block;
}

.game-info {
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.game-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.game-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* 游戏详情元数据 */
.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.game-details span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.play-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.play-button:hover {
    background-color: #333333;
}

.back-button {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333333;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
    border: 1px solid #dddddd;
    cursor: pointer;
    font-family: inherit;
    margin-left: 1rem;
}

.back-button:hover {
    background-color: #e0e0e0;
}



/* 游戏详情页面的静态补充内容样式 */
.game-additional-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.game-additional-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.game-additional-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: #000000;
}

.game-additional-info ul {
    list-style: none;
    padding-left: 0;
}

.game-additional-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.game-additional-info li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #000000;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main {
        padding: 2rem 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .custom-file-label {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .file-name {
        margin: 0;
        text-align: center;
    }
    
    .file-button {
        width: 100%;
        text-align: center;
    }
}

/* 动画延迟 */
.game-card:nth-child(1) { transition-delay: 0.1s; }
.game-card:nth-child(2) { transition-delay: 0.2s; }
.game-card:nth-child(3) { transition-delay: 0.3s; }
.game-card:nth-child(4) { transition-delay: 0.4s; }
.game-card:nth-child(5) { transition-delay: 0.5s; }
.game-card:nth-child(6) { transition-delay: 0.6s; }
.game-card:nth-child(7) { transition-delay: 0.7s; }
.game-card:nth-child(8) { transition-delay: 0.8s; }
.game-card:nth-child(9) { transition-delay: 0.9s; }
.game-card:nth-child(10) { transition-delay: 1.0s; }

/* 底部样式 */
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    /* padding: 3rem 0; */
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: #000000;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000000;
}

.footer-bottom {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: #666666;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #000000;
}

.footer-email {
    font-size: 0.9rem;
    color: #666666;
}

.footer-email a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email a:hover {
    opacity: 0.8;
}

/* 法律页面样式 */
.legal-section {
    max-width: 1000px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* 联系表单样式 */
.contact-form-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #333333;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.submit-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.submit-button:hover {
    background-color: #333333;
}

/* 响应式表单 */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .submit-button {
        width: 100%;
        text-align: center;
    }
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 2.5rem 0 1.5rem;
    letter-spacing: 0.5px;
}

.legal-section p {
    margin-bottom: 1.5rem;
    color: #333333;
}

.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.8rem;
    color: #333333;
}

/* 响应式底部 */
@media (max-width: 768px) {
    .footer {
        /* padding: 2rem 0; */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-container {
        padding: 0 1rem;
    }
    
    .footer-social {
        gap: 1rem;
    }
}