/* SEGA-Cardmaker 导航页样式 - 黑白灰暗色主题 */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #333333;
    --glow-red: rgba(255, 60, 60, 0.6);
    --glow-yellow: rgba(255, 220, 60, 0.6);
    --glow-blue: rgba(60, 120, 255, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景闪光效果容器 */
.glow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 闪光元素 */
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: glow-pulse 8s ease-in-out infinite;
}

.glow-orb.red {
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
}

.glow-orb.yellow {
    background: radial-gradient(circle, var(--glow-yellow) 0%, transparent 70%);
}

.glow-orb.blue {
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
}

/* 闪光动画 - 红色 */
.glow-orb.red {
    animation-name: glow-red;
    animation-duration: 6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* 闪光动画 - 黄色 */
.glow-orb.yellow {
    animation-name: glow-yellow;
    animation-duration: 7s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: -2s;
}

/* 闪光动画 - 蓝色 */
.glow-orb.blue {
    animation-name: glow-blue;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: -4s;
}

@keyframes glow-red {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    15% {
        opacity: 0.4;
        transform: translate(50px, -30px) scale(1.2);
    }
    30% {
        opacity: 0.6;
        transform: translate(100px, 50px) scale(1.5);
    }
    45% {
        opacity: 0.3;
        transform: translate(80px, 120px) scale(1.3);
    }
    60% {
        opacity: 0;
        transform: translate(20px, 80px) scale(1);
    }
}

@keyframes glow-yellow {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    20% {
        opacity: 0.3;
        transform: translate(-80px, -50px) scale(1.1);
    }
    40% {
        opacity: 0.5;
        transform: translate(-120px, 30px) scale(1.4);
    }
    55% {
        opacity: 0.4;
        transform: translate(-60px, 100px) scale(1.2);
    }
    70% {
        opacity: 0;
        transform: translate(-30px, 60px) scale(1);
    }
}

@keyframes glow-blue {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.35;
        transform: translate(30px, -80px) scale(1.3);
    }
    45% {
        opacity: 0.5;
        transform: translate(-40px, -40px) scale(1.5);
    }
    60% {
        opacity: 0.3;
        transform: translate(-100px, 40px) scale(1.2);
    }
    80% {
        opacity: 0;
        transform: translate(-50px, 100px) scale(1);
    }
}

/* 主容器 */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 标题区域 */
.header-section {
    text-align: center;
    margin-bottom: 4rem;
}

/* 主标题 */
.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    }
}

/* 副标题 */
.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

/* QQ群聊副标题 */
.qq-group {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: inline-block;
}

/* 按钮网格 */
.button-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 游戏卡片按钮 */
.game-card {
    width: 220px;
    height: 280px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* 游戏卡片hover效果 */
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #555;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.05);
}

.game-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* 卡片图标 */
.card-icon {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.game-card:hover .card-icon {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* 卡片名称 */
.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 卡片装饰线 */
.card-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .button-grid {
        gap: 1.5rem;
    }

    .game-card {
        width: 180px;
        height: 240px;
    }

    .card-icon {
        width: 100px;
        height: 50px;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }

    .subtitle {
        font-size: 1rem;
    }

    .button-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .game-card {
        width: 280px;
        height: 200px;
        flex-direction: row;
        padding: 1rem;
    }

    .card-icon {
        width: 140px;
        height: 70px;
    }

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

    .glow-orb {
        width: 200px;
        height: 200px;
    }
}

/* 页脚 */
.footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-primary);
}
