/* 全局样式 */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5b4fcf;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --gray-color: #636e72;
    --light-gray: #dfe6e9;
    --success-color: #00b894;
    --danger-color: #d63031;
    --warning-color: #fdcb6e;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
}

img {
    border-radius: 10px;
    max-width: 100%;
    display: block;
}

/* 顶部导航样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo h1 {
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: var(--primary-dark);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.user-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 首页游戏网格样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.game-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.game-image {
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info {
    padding: 15px;
}

.game-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.page-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover, .page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Tab切换样式 */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.tab {
    padding: 12px 25px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.tab:hover {
    background-color: #f0f0f0;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 游戏详情页样式 */
.game-detail {
    margin-bottom: 50px;
}

.game-header {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.game-cover {
    flex: 0 0 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

.game-info {
    flex: 1;
}

.game-info h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.game-meta {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.game-meta span {
    padding: 5px 15px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-rating i {
    color: var(--warning-color);
    margin-right: 3px;
}

.game-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.like-btn, .dislike-btn {
    padding: 12px 25px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.like-btn:hover {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.dislike-btn:hover {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.download-btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

.game-content {
    /* display: grid; */
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.game-description {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.game-description h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.game-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.system-requirements {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    gap: 20px;
    margin-top: 20px;
}

.requirement {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
}

.requirement h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.requirement ul {
    padding-left: 20px;
}

.requirement li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.download-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.download-option {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.download-option:hover {
    border-color: var(--primary-color);
    background-color: white;
}

.download-link-btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.download-link-btn:hover {
    background-color: var(--primary-dark);
}

.download-speed {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--success-color);
    text-align: center;
}

.download-tips {
    background-color: #fff9e6;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
}

.download-tips h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-tips ul {
    padding-left: 20px;
}

.download-tips li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.download-tips a {
    color: var(--primary-color);
    font-weight: 500;
}

.download-tips a:hover {
    text-decoration: underline;
}

/* 登录注册页样式 */
.header-simple {
    justify-content: center;
    border-bottom: none;
}

.auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.auth-tab.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.auth-content {
    padding: 40px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.password-toggle {
    position: relative;
}

.password-toggle i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-color);
}

.password-hint {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.auth-btn:hover {
    background-color: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--gray-color);
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--light-gray);
}

.auth-divider span {
    padding: 0 15px;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.social-btn.wechat {
    background-color: #07C160;
    color: white;
    border-color: #07C160;
}

.social-btn.wechat:hover {
    background-color: #06ad56;
}

.social-btn.qq {
    background-color: #12B7F5;
    color: white;
    border-color: #12B7F5;
}

.social-btn.qq:hover {
    background-color: #0ea5e0;
}

.auth-switch {
    text-align: center;
    color: var(--gray-color);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.footer-simple {
    margin-top: 80px;
}

/* 个人中心页样式 */
.user-center {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.user-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    height: fit-content;
}

.user-profile {
    text-align: center;
}

.user-avatar {
    position: relative;
    margin-bottom: 20px;
}

.user-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    /*border: 5px solid var(--light-gray);*/
}

.change-avatar-btn {
    position: absolute;
    bottom: 10px;
    right: calc(50% - 75px);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.game-tags {
    padding: 10px 10px 10px;
    background: #fbfbfb;
    border-radius: 5px
}
.game-tags a {
    padding: 0 10px;
    background: #fff;
    border-radius: 10px;
    color: #888;
	word-break: keep-all;  /* 中文情况下保持词语完整 */
	hyphens: keep-all;         /* 英文单词添加连字符 */
	line-break: strict;    /* 严格的换行规则 */
    transition: all .3s;
    margin-right: 5px;
    line-height: 30px;
    margin-bottom: 5px
}

.game-tags a:hover {
    background: #007bf5;
    color: #fff;
    transition: all .3s
}

.change-avatar-btn:hover {
    background-color: var(--primary-dark);
}

.user-details h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.user-vip, .user-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.user-vip i {
    color: var(--warning-color);
}

.vip-level {
    color: var(--warning-color);
    font-weight: 700;
}

.vip-expiry {
    color: var(--success-color);
    font-weight: 700;
}

.user-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.user-action-btn {
    padding: 12px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.user-action-btn:hover {
    background-color: #f0f0f0;
}

.user-action-btn.vip-upgrade {
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 600;
    border-color: var(--warning-color);
}

.user-action-btn.vip-upgrade:hover {
    background-color: #f7b84d;
}

.user-downloads {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
}

.downloads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.downloads-filter select {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.download-item:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.download-game-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.download-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-game-info {
    flex: 1;
}

.download-game-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.download-time {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.download-action {
    margin-left: 20px;
}

.redownload-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.redownload-btn:hover {
    background-color: var(--primary-dark);
}

/* 页脚样式 */
.footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    color: var(--gray-color);
    border-top: 1px solid var(--light-gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .game-header {
        flex-direction: column;
    }
    
    .game-cover {
        flex: 0 0 auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .user-center {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex: 1 0 100%;
        max-width: 100%;
        margin: 20px 0 0;
    }
    
    .user-actions .login-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tab {
        white-space: nowrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .game-info h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .auth-container {
        margin: 20px auto;
    }
    
    .auth-content {
        padding: 25px;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-game-image {
        margin: 0 0 15px 0;
        width: 120px;
        height: 120px;
    }
    
    .download-action {
        margin: 15px 0 0 0;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
/* 会员升级功能样式 */

/* Tab切换样式 */
.user-center-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 25px;
}

.user-center-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-color);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.user-center-tab:hover {
    color: var(--primary-color);
}

.user-center-tab.active {
    color: var(--primary-color);
}

.user-center-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.user-center-tab-content {
    display: none;
}

.user-center-tab-content.active {
    display: block;
}

/* 会员升级内容样式 */
.membership-upgrade {
    padding: 10px;
}





/* 卡密兑换样式 */
.key-redemption {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.key-redemption h3 {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.redemption-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    /*width: 100%;*/
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.key-input-container {
    position: relative;
}

.key-input-container input {
    padding-right: 50px;
}

.key-paste-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.key-paste-btn:hover {
    text-decoration: underline;
}

.key-hint {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 8px;
}

.redemption-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.buy-key-btn, .submit-key-btn {
    flex: 1;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.buy-key-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.buy-key-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.submit-key-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.submit-key-btn:hover {
    background-color: var(--primary-dark);
}


.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-expired {
    color: var(--danger-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .user-center-tab {
        white-space: nowrap;
        padding: 15px 20px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .redemption-actions {
        flex-direction: column;
    }

}

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.error-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.error-illustration {
    position: relative;
    margin-bottom: 40px;
}
.error-number {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.digit {
    display: inline-block;
    text-shadow: 5px 5px 0 rgba(108, 92, 231, 0.2);
    animation: float 3s ease-in-out infinite;
}

.digit-1 {
    animation-delay: 0s;
}

.digit-2 {
    animation-delay: 0.5s;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.gamepad-container {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
    animation: rotate 10s linear infinite;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.gamepad-container i {
    font-size: 4rem;
    color: white;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-ghost {
    position: absolute;
    bottom: -30px;
    right: 20%;
    animation: ghost-float 4s ease-in-out infinite;
}

@keyframes ghost-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(8px);
    }
}

.ghost-body {
    width: 80px;
    height: 100px;
    background-color: #a29bfe;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.ghost-body::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #a29bfe;
    border-radius: 0 0 50% 50%;
}

.ghost-eye {
    position: absolute;
    top: 35px;
    width: 20px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
}

.ghost-eye.left-eye {
    left: 15px;
}

.ghost-eye.right-eye {
    right: 15px;
}

.ghost-eye::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--dark-color);
    border-radius: 50%;
}

.ghost-mouth {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background-color: white;
    border-radius: 0 0 50% 50%;
}

.error-message h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.error-message p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .error-number {
        font-size: 8rem;
    }

    .gamepad-container {
        width: 80px;
        height: 80px;
        margin: 0 15px;
    }

    .gamepad-container i {
        font-size: 2.5rem;
    }

    .error-ghost {
        display: none;
    }

    .error-message h2 {
        font-size: 2rem;
    }

    .error-message p {
        font-size: 1rem;
    }


}

@media (max-width: 576px) {
    .error-number {
        font-size: 6rem;
    }

    .gamepad-container {
        width: 60px;
        height: 60px;
        margin: 0 10px;
    }

    .gamepad-container i {
        font-size: 2rem;
    }

    .error-message h2 {
        font-size: 1.8rem;
    }
}