/* Custom styles for 2UC传奇游戏平台 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8fafc;
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 100%);
    background-attachment: fixed;
}

.nav-link {
    color: #000000;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #d4af37;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 2px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.rank-badge {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 4px;
}

.rank-1 { background-color: #f2662c; }
.rank-2 { background-color: #3a7ced; }
.rank-3 { background-color: #27b65c; }
.rank-4 { background-color: #7b10ce; }
.rank-5 { background-color: #a40001; }
.rank-6 { background-color: #a3a60a; }
.rank-other { background-color: #94a3b8; }

.rank-item {
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    padding: 6px 8px;
}

.rank-item:hover {
    background-color: #f8fafc;
    border-color: #3a7ced;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rank-item-img {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.game-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.2);
}

.game-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-card .time-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #e60000 0%, transparent 100%);
    color: white;
    font-size: 12px;
    padding: 2px 16px;
    font-weight: bold;
    z-index: 10;
}

.game-card .info {
    padding: 16px;
    position: relative;
    z-index: 10;
}

.game-card .title {
    color: #0f172a;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.game-card .subtitle {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 12px;
}

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

.game-card .tag {
    font-size: 10px;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 2px 6px;
    border-radius: 2px;
}

.game-card .hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(2px);
}

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

.overlay-btn {
    width: 120px;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-gray {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-gray:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-red {
    background: linear-gradient(180deg, #ff4d4d 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.2);
}

.btn-red:hover {
    background: linear-gradient(180deg, #ff6666 0%, #e60000 100%);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    transform: scale(1.05);
}

.btn-gold {
    background: linear-gradient(180deg, #f5cc47 0%, #b8860b 100%);
    color: #111;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(180deg, #ffdb58 0%, #d4af37 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

.download-page {
    background-color: #f8fafc;
    background-image: url("../img/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.download-hero-overlay {
    background: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 70% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.95) 60%, rgba(248, 250, 252, 1) 100%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
}

.download-btn {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.22);
    color: white;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.32);
    border-color: rgba(147, 197, 253, 0.55);
}

/* Marquee Text Effect */
.marquee-text {
    background: linear-gradient(
        90deg,
        #0f172a 0%,
        #0f172a 20%,
        #ff1414 35%,
        #ffea00 50%,
        #ff1414 65%,
        #0f172a 80%,
        #0f172a 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 1.5s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(255, 234, 0, 0.4));
}

@keyframes textShimmer {
    to {
        background-position: -200% center;
    }
}

/* Hide scrollbar for horizontal scrolling nav */
.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
