/* 死神VS火影游戏网站样式文件 - 基于随机数工具设计风格 */

:root {
    /* 游戏主题色彩系统 */
    --game-primary: #4f46e5; /* Indigo-600 */
    --game-secondary: #0ea5e9; /* Sky-500 */
    --game-accent: #ef4444; /* Red-500 */
    --game-success: #10b981; /* Emerald-500 */
    --game-warning: #f59e0b; /* Amber-500 */
    
    /* 动漫主题色彩 */
    --bleach-color: #ff6b35; /* 死神橙色 */
    --naruto-color: #ff9500; /* 火影橙色 */
    --game-bg-pattern: radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                       radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
}

/* 基础样式重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-image: var(--game-bg-pattern);
    background-attachment: fixed;
    min-height: 100vh;
}

/* 暗色主题支持 */
.dark body {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}

/* 游戏容器特殊样式 */
.game-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(79, 70, 229, 0.3);
    box-shadow: 
        0 0 30px rgba(79, 70, 229, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-container:hover {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 
        0 0 40px rgba(79, 70, 229, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(79, 70, 229, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(14, 165, 233, 0.1) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
    border-radius: inherit;
}

/* 按键样式 */
.kbd {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    border-bottom: 2px solid #9ca3af;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 0.1rem;
}

.dark .kbd {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    border-bottom: 2px solid #9ca3af;
    color: #f9fafb;
}

/* 角色卡片动画效果 */
.character-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.character-card:hover::before {
    left: 100%;
}

.character-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(79, 70, 229, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 特色卡片悬浮效果 */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.05) 0%, 
        rgba(14, 165, 233, 0.05) 50%, 
        rgba(239, 68, 68, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 技能标签样式 */
.feature-card .flex-wrap span {
    transition: all 0.2s ease;
    cursor: pointer;
}

.feature-card .flex-wrap span:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 版本标签特殊效果 */
.feature-card span[class*="bg-green"] {
    position: relative;
    overflow: hidden;
}

.feature-card span[class*="bg-green"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 导航链接活跃状态 */
nav a.active {
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--game-primary), var(--game-secondary));
    border-radius: 1px;
}

/* 主题切换按钮动画 */
#theme-toggle {
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(180deg);
}

/* 全屏按钮特效 */
#fullscreen-btn {
    position: relative;
    overflow: hidden;
}

#fullscreen-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

#fullscreen-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* 在线人数动画 */
#online-count {
    animation: pulse-count 3s ease-in-out infinite;
}

@keyframes pulse-count {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--game-primary), var(--game-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4338ca, #0284c7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .character-card {
        padding: 0.75rem;
    }
    
    .character-card .w-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    /* 移动端导航菜单 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 50;
    }
    
    .dark .nav-menu {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .nav-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 加载动画 */
@keyframes gameLoading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.game-container .fas.fa-gamepad {
    animation: gameLoading 2s linear infinite;
}

/* 渐变文字效果 */
.bg-gradient-to-r.from-primary-600.to-secondary-600 {
    background: linear-gradient(90deg, var(--game-primary), var(--game-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 社交媒体图标悬浮效果 */
footer a[class*="rounded-full"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer a[class*="rounded-full"]:hover {
    transform: translateY(-2px);
}

footer a[class*="rounded-full"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

footer a[class*="rounded-full"]:hover::before {
    opacity: 1;
}

/* 特殊按钮组合效果 */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.95);
}

/* 版权信息淡入效果 */
footer .text-center p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer .text-center:hover p {
    opacity: 1;
}

/* 性能优化 */
.card,
.feature-card,
.character-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .character-card {
        border-width: 2px;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* 打印样式 */
@media print {
    .game-container,
    footer,
    #theme-toggle,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card,
    .feature-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
} 