/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #667eea;
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #667eea;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #667eea;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.language-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    margin: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.language-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(5px);
}

.language-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #667eea;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #667eea;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 主要内容 */
.main {
    margin-top: 90px;
    padding-bottom: 3rem;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    color: white;
    text-align: center;
    padding: 6rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 搜索框样式 */
.search-container {
    max-width: 600px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.search-icon {
    color: #667eea;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.search-input::placeholder {
    color: #7f8c8d;
    opacity: 0.8;
}

.search-clear {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.search-clear:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    opacity: 1;
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    margin-top: 0.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin: 0.5rem;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(5px);
}

.suggestion-game-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1rem;
}

.suggestion-game-info {
    flex: 1;
}

.suggestion-game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.suggestion-game-desc {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.suggestion-game-tags {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.suggestion-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.view-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0 0 15px 15px;
    margin: 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: 600;
}

.view-all-results:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
}

.view-all-results i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 搜索结果高亮 */
.search-result-section {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.search-result-title {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: white;
}

.search-no-results i {
    font-size: 3rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.search-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.search-no-results p {
    opacity: 0.7;
    font-size: 1rem;
}

/* 分类区域 */
.category-section {
    margin-bottom: 5rem;
    padding: 0 20px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    justify-content: center;
}

.category-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #667eea;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.game-card:hover .game-info h3 {
    color: #667eea;
}

.game-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: rgba(44, 62, 80, 0.98);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #667eea;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.footer-links li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #ecf0f1;
    transform: translateX(5px);
}

.footer-links li a:hover::before {
    color: #764ba2;
}

.footer-links li span {
    color: #bdc3c7;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li span::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-social i {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 游戏模态框 */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-modal.show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1400px;
    height: 90%;
    max-height: 900px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fullscreen-btn,
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover,
.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-btn {
    font-size: 2rem;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.fullscreen-btn:hover {
    transform: scale(1.1);
}

.modal-body {
    height: calc(100% - 80px);
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: #f8f9fa;
}

/* 全屏模式样式 */
.game-modal.fullscreen-mode {
    background: #000;
}

.game-modal.fullscreen-mode .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    position: static;
    transform: none;
}

.game-modal.fullscreen-mode .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 0 10px;
    padding: 0.8rem 1rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: auto;
}

.game-modal.fullscreen-mode .modal-header h3 {
    display: none;
}

.game-modal.fullscreen-mode .modal-body {
    height: 100%;
    padding: 0;
}

/* 游戏加载对话框 */
.game-loading-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.game-loading-dialog.show {
    opacity: 1;
    visibility: visible;
}

.dialog-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-loading-dialog.show .dialog-content {
    transform: scale(1);
}

.dialog-header {
    margin-bottom: 2rem;
}

.dialog-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dialog-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.dialog-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #2c3e50;
}

.game-preview {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.game-preview i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.dialog-message {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
}

.game-error {
    text-align: center;
    padding: 3rem 2rem;
    color: #e74c3c;
}

.game-error i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.game-error h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.game-error p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease-out both;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    background-clip: content-box;
}

html {
    scroll-behavior: smooth;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    animation: loading 3s ease-in-out;
    transform: translateX(-100%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-controls {
        gap: 1rem;
    }
    
    .language-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        right: -10px;
        min-width: 180px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .search-container {
        margin: 2rem auto 0;
        padding: 0 1rem;
    }
    
    .search-box {
        padding: 0 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .suggestion-item {
        padding: 0.8rem 1rem;
    }
    
    .suggestion-game-image {
        width: 40px;
        height: 40px;
    }
    
    .suggestion-game-title {
        font-size: 0.9rem;
    }
    
    .suggestion-game-desc {
        font-size: 0.8rem;
    }
    
    .search-suggestions {
        margin-top: 0.3rem;
        border-radius: 15px;
        max-height: 300px;
        max-width: calc(100vw - 2rem);
    }
    
    .view-all-results {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .view-all-results i {
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .game-card img {
        height: 180px;
    }
    
    .game-info {
        padding: 1.2rem;
    }
    
    .game-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 98%;
        height: 92%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .fullscreen-btn,
    .close-btn {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
    
    .close-btn {
        font-size: 1.5rem;
    }
    
    .dialog-content {
        padding: 2rem;
        max-width: 400px;
    }
    
    .dialog-header h3 {
        font-size: 1.5rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .game-preview i {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .game-card img {
        height: 160px;
    }
    
    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .dialog-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .game-preview {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 100%;
        height: 95%;
        margin: 0;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .fullscreen-btn,
    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    
    .close-btn {
        font-size: 1.3rem;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* 特殊效果 */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

/* 成功状态 */
.success-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    animation: fadeInUp 0.5s ease-out;
}

/* 错误状态 */
.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    animation: fadeInUp 0.5s ease-out;
} 