/* 游戏竞技风格 CSS - 电竞主题 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* 电竞配色方案 */
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --neon-pink: #ff00ff;
    --neon-green: #00ff88;
    --neon-orange: #ff6b35;
    --neon-yellow: #ffff00;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-glow: rgba(0, 212, 255, 0.5);
    --shadow-glow: rgba(0, 212, 255, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* 电竞网格背景 */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* TailwindCSS 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    
    /* 电竞文字阴影 */
    .text-shadow {
        text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue);
    }
    
    .text-shadow-purple {
        text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    }
    
    .text-shadow-pink {
        text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    }
    
    /* 电竞卡片悬停效果 */
    .card-hover {
        position: relative;
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 212, 255, 0.3);
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
        backdrop-filter: blur(10px);
    }
    
    .card-hover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .card-hover:hover {
        transform: translateY(-5px) scale(1.02);
        border-color: var(--neon-blue);
        box-shadow: 
            0 10px 30px rgba(0, 212, 255, 0.3),
            0 0 20px rgba(0, 212, 255, 0.2),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    
    .card-hover:hover::before {
        opacity: 1;
    }
    
    /* 电竞导航项 */
    .nav-item {
        position: relative;
        font-family: 'Orbitron', monospace;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }
    
    .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -5px;
        width: 2px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, var(--neon-blue), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-item::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
        transition: width 0.3s ease;
        box-shadow: 0 0 10px var(--neon-blue);
    }
    
    .nav-item:hover {
        color: var(--neon-blue);
        text-shadow: 0 0 10px var(--neon-blue);
    }
    
    .nav-item:hover::before {
        opacity: 1;
    }
    
    .nav-item:hover::after {
        width: 100%;
    }
    
    /* 电竞按钮 */
    .cyber-button {
        position: relative;
        background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
        border: 1px solid var(--neon-blue);
        color: var(--text-primary);
        font-family: 'Orbitron', monospace;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 12px 24px;
        border-radius: 0;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .cyber-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
        transition: left 0.5s ease;
    }
    
    .cyber-button:hover {
        color: var(--primary-bg);
        background: var(--neon-blue);
        box-shadow: 
            0 0 20px var(--neon-blue),
            inset 0 0 20px rgba(0, 212, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .cyber-button:hover::before {
        left: 100%;
    }
    
    .cyber-button:active {
        transform: translateY(0);
    }
    
    /* 搜索弹窗 */
    .search-popup {
        background: rgba(26, 26, 46, 0.95);
        border: 1px solid var(--neon-blue);
        backdrop-filter: blur(15px);
        transform: scale(0);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform-origin: top right;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    }
    
    .search-popup.active {
        transform: scale(1);
        opacity: 1;
    }
    
    /* 电竞输入框 */
    .cyber-input {
        background: rgba(10, 10, 15, 0.8);
        border: 1px solid rgba(0, 212, 255, 0.5);
        color: var(--text-primary);
        font-family: 'Rajdhani', sans-serif;
        transition: all 0.3s ease;
    }
    
    .cyber-input:focus {
        outline: none;
        border-color: var(--neon-blue);
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.3),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    
    /* 电竞标题 */
    .cyber-title {
        font-family: 'Orbitron', monospace;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: titleGlow 3s ease-in-out infinite alternate;
    }
    
    @keyframes titleGlow {
        0% { filter: brightness(1); }
        100% { filter: brightness(1.2); }
    }
    
    /* 电竞分割线 */
    .cyber-divider {
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
        margin: 20px 0;
        position: relative;
        overflow: hidden;
    }
    
    .cyber-divider::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
        animation: dividerMove 3s linear infinite;
    }
    
    @keyframes dividerMove {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    /* HOT标签电竞风格 */
    .hot-tag {
        background: linear-gradient(135deg, var(--neon-orange), var(--neon-yellow));
        color: var(--primary-bg);
        font-family: 'Orbitron', monospace;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 4px 8px;
        clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 5px 100%);
        animation: hotPulse 2s ease-in-out infinite alternate;
    }
    
    @keyframes hotPulse {
        0% { box-shadow: 0 0 5px var(--neon-orange); }
        100% { box-shadow: 0 0 15px var(--neon-orange), 0 0 25px var(--neon-orange); }
    }
    
    /* 电竞加载动画 */
    .cyber-loading {
        position: relative;
        overflow: hidden;
    }
    
    .cyber-loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
        animation: loading 2s linear infinite;
    }
    
    @keyframes loading {
        0% { left: -100%; }
        100% { left: 100%; }
    }
}

/* 游戏展示区域 */
.pregame-main {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pregame-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    z-index: -1;
}

.pregame-main:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.pregame-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.game-box {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.game-box:hover {
    box-shadow: 
        0 0 20px var(--neon-blue),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.pregame-img-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.pregame-img-container img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.pregame-img-container:hover img {
    transform: scale(1.05);
}

.pregame-name {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin: 15px 0;
}

.GameNameText {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.GameNameText-span {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
}

.play-triangle {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.play-triangle svg {
    width: 100%;
    height: 100%;
    fill: var(--text-primary);
}

/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .pregame-main {
        margin: 10px;
        padding: 15px;
    }
    
    .pregame-name {
        font-size: 16px;
    }
    
    .cyber-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-item {
        font-size: 14px;
    }
}

@media only screen and (max-width: 500px) {
    .pregame-name {
        font-size: 14px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-triangle {
        width: 20px;
        height: 20px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-pink));
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

.pregame-main {
    width: 100%;
    height: max-content;
    min-width: 340px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 15px 0 15px;
    overflow: hidden
}

.pregame-bg {
    width: 90%;
    height: 90%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px
}

.blurred-img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 0;
    background-size: 100% auto;
    background-position: center
}

@media only screen and (max-width: 500px) {
    .blurred-img {
        background-size:auto 100%
    }
}

.blurred-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: .2
}

.game-box {
    position: absolute;
    height: 100%;
    aspect-ratio: 181/150;
    background-repeat: no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center
}

.game-box-svg {
    width: 100%;
    height: 100%
}

.game-box-opacity {
    cursor: pointer
}

.game-box-opacity+div {
    pointer-events: none
}

@media (hover: hover) {
    .game-box-opacity:hover {
        opacity:.6
    }

    .game-box-opacity:hover+div {
        opacity: .6
    }
}

.play-btn-img {
    position: absolute;
    width: 80px;
    pointer-events: none;
    z-index: 3;
    bottom: -20px;
    right: -60px
}

.pregame-back {
    height: 100%;
    width: 100%
}

.pregame-name {
    font-size: 18px;
    margin: 30px 0 0;
    font-weight: 700
}

.pregame-img-container {
    position: relative;
    width: 70%;
    max-width: 293px;
    z-index: 3;
    margin-top: 68px
}

.pregame-main .pregame-info-container {
    z-index: 3;
    position: absolute;
    top: 8%;
    pointer-events: none;
    width: calc(90% - 12px)
}

.pregame-img-container img {
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    width: 100%
}

.pregame-text {
    padding: 0 20px;
    font-size: 14px;
    max-height: 32px;
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none
}

.pregame-text::-webkit-scrollbar {
    display: none
}

.pregame-name {
    font-size: 18px;
    margin: 15px 0 -15px;
    font-weight: 700
}

.pregame-img-container {
    position: relative;
    width: 50%;
    max-width: 200px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center
}

.GameNameText {
    display: flex;
    align-items: center;
    justify-content: center
}

.GameNameText-span {
    vertical-align: middle;
    color: #fff;
    font-size: 16px;
    font-weight: bolder;
    line-height: 30px;
    width: 100%;
    max-width: 100%;
    height: 30px;
    margin-top: -10px;
    overflow: hidden;
    display: inline-block;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical
}

.bottom-info {
    background-color: #29cedd;
    color: #000;
    text-align: left;
    padding: 30px 20px;
    border-radius: 10px;
    margin: 10px 0;
    box-sizing: border-box
}

@media only screen and (max-width: 700px) {
    .pregame-main {
    }
}

@media only screen and (max-width: 500px) {
    .pregame-name {
        font-size:14px;
        margin: 10px 0 -3px
    }
}

.play-btn {
    position: absolute;
    bottom: -33px;
    right: -65px;
    z-index: 1000
}

.play-triangle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef574f;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    box-shadow: inset 0 -2px 0 0 #db2e27
}

.play-triangle .triangle-svg {
    margin-left: 3px
}







