/* 导航栏 */
.navbar {
    background-color: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo .brand-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo .brand-domain {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

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

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f1f3f5;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 游戏卡片 */
.game-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.game-thumb {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.game-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.game-tag {
    font-size: 11px;
    color: var(--text-muted);
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    z-index: 3;
}

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

.game-overlay .game-desc {
    font-size: 13px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .brand-name {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.footer-logo .brand-slogan {
    font-size: 14px;
    color: #bbb;
    margin-top: 10px;
    display: block;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .navbar {
        height: auto;
        padding: 10px 0;
    }
    .navbar .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo {
        flex: 1;
    }
    .logo .brand-name {
        font-size: 20px;
    }
    .logo .brand-domain {
        font-size: 12px;
    }
    .search-box {
        width: 100%;
        order: 3;
        margin-top: 5px;
    }
    .nav-links {
        display: none; /* Mobile menu needed later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block !important;
    }
}
