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


.item-box,
.item-box a,
.item-box a:hover,
.item-box a:visited,
.item-box a:link,
.featured-card,
.featured-card a,
.featured-card a:hover,
.featured-card a:visited,
.featured-card a:link,
.category-card,
.category-card a,
.category-card a:hover {
    text-decoration: none !important;
}

:root {
    --primary: #94a3b8;
    --secondary: #64748b;
    --accent: #cbd5e1;
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-hover: #334155;
    --text-main: #f1f5f9;
    --text-sub: #cbd5e1;
    --border: #475569;
    --shadow: rgba(100, 116, 139, 0.3);
    --shadow-lg: rgba(100, 116, 139, 0.5);
}

body {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(100, 116, 139, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(71, 85, 105, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
}


.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s;
}

.brand:hover {
    transform: scale(1.05);
}

.brand i {
    font-size: 1.75rem;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.3s;
}

.submenu li a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}


.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transition: right 0.3s;
    box-shadow: -4px 0 20px var(--shadow-lg);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.3s;
}

.mobile-nav-list li a:hover {
    background: var(--bg-hover);
}


.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 2.5rem 5rem;
}

/* Hero Banner */
.quick-access-section {
    margin-bottom: 3rem;
}

.quick-search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.search-icon-wrapper {
    color: var(--text-sub);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.quick-search-input::placeholder {
    color: var(--text-sub);
}

.quick-search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quick-search-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-category-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.quick-category-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.quick-category-item i {
    font-size: 0.875rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .quick-search-box {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .search-icon-wrapper {
        display: none;
    }
    
    .quick-search-input {
        width: 100%;
    }
    
    .quick-search-btn {
        width: 100%;
    }
    
    .quick-categories {
        gap: 0.5rem;
    }
    
    .quick-category-item {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

.featured-section {
    margin-bottom: 4rem;
}

/* .featured-header 已移除，使用统一的 .section-header */

.featured-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.featured-title i {
    color: var(--primary);
    font-size: 1.75rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

@media (max-width: 1400px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.featured-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-card,
.featured-card * {
    text-decoration: none !important;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
}

.featured-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.12);
}

.featured-card-content {
    padding: 1.5rem;
}

.featured-card-title {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card:hover .featured-card-title {
    color: var(--primary);
}

.featured-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-sub);
}

.featured-card-rating {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.featured-card-rating .stars {
    color: #ffc107;
    font-size: 1rem;
}


.games-section {
    margin-bottom: 4rem;
}

.games-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .games-sections-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.title-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.section-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.section-more:hover {
    gap: 0.75rem;
    color: var(--secondary);
    background: rgba(139, 92, 246, 0.1);
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 3rem;
    }
}


.tags-categories-section {
    margin-top: 4rem;
}

.tags-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tags-card,
.categories-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tags-card:hover,
.categories-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}



.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-sec:first-of-type {
    margin-top: 1rem;
}

.content-sec {
    width: 100%;
}


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

.sec-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sec-title::before {
    content: '';
    width: 5px;
    height: 2rem;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.more-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.more-btn:hover {
    gap: 0.75rem;
}


.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

@media (min-width: 1400px) {
    .items-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
    }
}


.game-strip .item-box {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.item-box {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.item-box,
.item-box * {
    text-decoration: none !important;
}

.item-box a {
    text-decoration: none !important;
}

.item-box a:hover {
    text-decoration: none !important;
}

.item-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.3);
}

.item-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-dark);
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-box:hover .item-thumb img {
    transform: scale(1.1);
}

.item-info {
    padding: 1.5rem;
}

.item-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-sub);
}

.item-rating {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}


.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.tag-count {
    font-size: 0.8125rem;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-weight: 600;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}


.category-card {
    background: var(--bg-dark);
    border-radius: 14px;
    padding: 1.5rem;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    transition: all 0.4s;
}

.category-icon {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.category-icon i {
    font-size: 1.75rem;
}

.category-card:hover .category-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1) rotate(5deg);
}

.category-card:hover .category-icon {
    color: white;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.category-game-count {
    font-size: 0.8125rem;
    color: var(--text-sub);
}


.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.scroll-top:hover {
    transform: translateY(-10px) scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6), 0 0 0 6px rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.scroll-top:active {
    transform: translateY(-8px) scale(1.05);
}


.category-header {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 1.125rem;
    color: var(--text-sub);
}


.tags-page-header {
    margin-bottom: 3rem;
}

.tags-page-header p {
    color: var(--text-sub);
    margin-top: 0.5rem;
}


.search-header {
    margin-bottom: 2rem;
}

.search-header p {
    color: var(--text-sub);
    margin-top: 0.5rem;
}


.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-controls label {
    color: var(--text-sub);
}

.sort-controls select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
}


.collections-header {
    margin-bottom: 3rem;
}

.collections-header p {
    color: var(--text-sub);
    margin-top: 0.5rem;
}

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

.collection-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.collection-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.collection-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-icon i {
    font-size: 3.5rem;
}

.collection-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.collection-box p {
    color: var(--text-sub);
    margin-bottom: 1.5rem;
}

.collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.collection-link:hover {
    gap: 0.75rem;
}


.tags-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.tags-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tags-page-header p {
    color: var(--text-sub);
    font-size: 1.125rem;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tag-btn span {
    font-size: 0.875rem;
    opacity: 0.7;
}

.tag-btn:hover span {
    opacity: 1;
}


@media (max-width: 1024px) {
    
    .hero-description {
        font-size: 1rem;
    }
    
    .tags-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary);
}

.page-text {
    line-height: 1.8;
    color: var(--text-main);
}

.intro-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-sub);
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-text p {
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li i {
    position: absolute;
    left: 0;
    color: var(--primary);
}

.closing-text {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    color: var(--text-sub);
}


.contact-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--border);
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.email-address {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}

.email-note {
    font-size: 0.9375rem;
    color: var(--text-sub);
    font-style: italic;
}


.site-footer {
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    margin-top: 5rem;
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-section p {
    color: var(--text-sub);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-sub);
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .search-wrapper {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .games-sections-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tags-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tags-card,
    .categories-card {
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}



    
    .section,
    .games-section {
        margin-bottom: 2rem !important;
    }
    
    .games-grid,
    .featured-grid {
        gap: 0.75rem !important;
    }
    
    .item-info,
    .game-card-content {
        padding: 0.875rem 0.75rem !important;
    }
    
    .section-title {
        margin-bottom: 0.75rem !important;
    }
}


/* ============================================
   移动端导航栏完整修复 (480px及以下)
   ============================================ */
@media (max-width: 480px) {
    /* 导航栏容器 */
    .top-nav,
    .nav-bar,
    .header,
    .site-header {
        padding: 0.5rem 0.75rem !important;
        min-height: 56px;
    }
    
    /* 导航栏包装器 - 关键修复 */
    .nav-wrapper,
    .header-container,
    .nav-content,
    .header-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    /* Logo和品牌 - 左侧 */
    .brand,
    .site-logo,
    .logo-wrapper,
    .brand-logo,
    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.875rem !important;
        font-weight: 600;
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 50px);
        overflow: hidden;
    }
    
    .brand span,
    .site-logo span,
    .logo-wrapper span,
    .brand-logo span,
    .logo span {
        font-size: 0.875rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand img,
    .site-logo img,
    .logo-wrapper img,
    .brand-logo img,
    .logo img {
        height: 28px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    
    /* 搜索框 - 导航栏中隐藏 */
    .search-wrapper,
    .search-container,
    .search-box {
        display: none !important;
    }
    
    /* 导航菜单 - 隐藏 */
    .nav-menu,
    .nav-links,
    .site-nav,
    .nav-actions,
    nav > ul {
        display: none !important;
    }
    
    /* 移动菜单按钮 - 右侧显示 */
    .mobile-menu-btn,
    .mobile-menu-toggle,
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1001;
        order: 999;
    }
    
    .mobile-menu-btn span,
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        margin: 3px 0;
        transition: all 0.3s;
    }
    
    /* 移动菜单中的搜索框 */
    .mobile-nav .search-wrapper,
    .mobile-nav .search-container,
    .mobile-menu .search-wrapper {
        display: flex !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
        gap: 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav .search-input,
    .mobile-menu .search-input {
        flex: 1 !important;
        padding: 0.625rem 0.75rem !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        border: 1px solid var(--border, rgba(255, 255, 255, 0.2)) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-main, #ffffff) !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav .search-btn,
    .mobile-menu .search-btn {
        padding: 0.625rem 1rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }
}

/* ============================================
   中等屏幕导航栏优化 (768px及以下)
   ============================================ */
@media (max-width: 768px) {
    .top-nav,
    .nav-bar,
    .header,
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .nav-wrapper,
    .header-container,
    .nav-content,
    .header-inner {
        padding: 0;
        gap: 1rem;
    }
    
    .brand,
    .site-logo,
    .logo-wrapper,
    .brand-logo,
    .logo {
        font-size: 1rem !important;
    }
    
    .brand img,
    .site-logo img,
    .logo-wrapper img,
    .brand-logo img,
    .logo img {
        height: 32px !important;
    }
    
    .search-wrapper,
    .search-container {
        max-width: 200px;
        flex: 0 1 auto;
    }
    
    .nav-menu,
    .nav-links,
    .site-nav {
        display: none;
    }
    
    .mobile-menu-btn,
    .menu-toggle {
        display: flex !important;
    }
}
