/* Base Styles & Reset */
:root {
    --primary-color: #2a52be;
    --secondary-color: #4169e1;
    --accent-color: #36b5ff;
    --text-color: #f8f9fa;
    --dark-bg: #121212;
    --dark-gray: #1e1e1e;
    --light-gray: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at top right, rgba(54, 181, 255, 0.12), transparent 55%),
        radial-gradient(circle at bottom left, rgba(42, 82, 190, 0.12), transparent 55%);
    background-attachment: fixed;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #7dcfff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hidden {
    display: none !important;
}

/* Header Styles */
.site-header {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 5px rgba(54, 181, 255, 0.2);
}

.logo span {
    color: var(--accent-color);
}

.search-wrapper {
    position: relative;
}

.search-wrapper form {
    display: flex;
    align-items: center;
}

.search-wrapper input {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    background-color: var(--dark-gray);
    color: var(--text-color);
    font-size: 1rem;
    min-width: 250px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.search-wrapper input:focus {
    outline: none;
    background-color: var(--light-gray);
    box-shadow: 0 0 0 2px rgba(54, 181, 255, 0.4);
}

.search-wrapper button {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.3rem;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-speed) ease;
}

.search-wrapper button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(54, 181, 255, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    color: #b3b3b3;
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.categories-section h2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.categories-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--dark-gray);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(54, 181, 255, 0.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.tag:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.tag.active {
    background-color: var(--primary-color);
}

/* Games Section */
.games-section {
    margin-bottom: 4rem;
}

.games-section h2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.games-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

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

.game-card {
    display: block;
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;
    cursor: pointer;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.game-image {
    position: relative;
    height: 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: var(--light-gray); /* 添加默认背景颜色 */
    background-image: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.9), transparent);
    z-index: 1;
}

.game-content {
    padding: 1.5rem;
    position: relative;
}

.game-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.game-categories {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 0.8rem;
}

.game-rating {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.rating-number {
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.rating-stars {
    color: #ffcc00;
    font-size: 0.9rem;
}

/* Site Description */
.site-description {
    background-color: var(--dark-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(54, 181, 255, 0.1);
}

.site-description h2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.site-description h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.description-content p {
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

/* Footer Styles */
.site-footer {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #b3b3b3;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Game Detail Page Styles */
.game-detail-container {
    padding: 2rem 0;
}

.game-detail-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 2.5rem;
}

.game-main-content {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.game-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#rating-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

#rating-stars {
    color: #ffcc00;
    font-size: 1.2rem;
}

.game-image-container {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-meta {
    margin-bottom: 2rem;
}

.game-categories {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.game-categories > span {
    font-weight: bold;
    margin-right: 1rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-tag {
    padding: 0.4rem 1rem;
    background-color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-release {
    color: #b3b3b3;
}

.game-release > span:first-child {
    font-weight: bold;
    margin-right: 0.5rem;
}

.game-description h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.game-description p {
    color: #cccccc;
    line-height: 1.8;
}

/* Sidebar Styles */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.sidebar-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.sidebar-search form {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-right: 2.5rem;
    border: none;
    border-radius: 50px;
    background-color: var(--light-gray);
    color: var(--text-color);
}

.sidebar-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sidebar-category {
    padding: 0.7rem 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.sidebar-category:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.similar-game {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.similar-game:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.similar-game-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.similar-game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.similar-game-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.similar-game-category {
    font-size: 0.8rem;
    color: #b3b3b3;
}

/* Search Results Page Styles */
.search-results-section {
    padding: 2rem 0;
}

.search-results-section h1 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

#search-term {
    color: var(--accent-color);
}

.search-filters {
    margin-bottom: 2.5rem;
}

.search-filters h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results h2 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Legal Pages Styles */
.legal-content {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.legal-date {
    color: #b3b3b3;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #cccccc;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .game-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-wrapper form {
        width: 100%;
    }
    
    .search-wrapper input {
        width: 100%;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .game-rating {
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
}