/* 主样式文件 - 基础样式和CSS变量 */

/* --- CSS VARIABLES / THEME VARS --- */
:root {
    --primary-color: #ff00ff;      /* Hot Pink */
    --secondary-color: #9d00ff;    /* Deep Purple */
    --accent-color: #00ff00;       /* Acid Green */
    --danger-color: #ff0000;       /* Red */
    --bg-dark: #000000;            /* Black Background */
    --panel-bg: rgba(20, 0, 20, 0.9);
    --border-glow: 2px 2px 0px var(--primary-color);
}

/* --- GLOBAL RESET AND BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', 'Impact', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #111;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0;
}

/* --- BODY AND LAYOUT --- */
body {
    background-color: var(--bg-dark);
    color: #ddd;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 50px;
}

/* --- BACKGROUND ELEMENTS --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: -2;
    pointer-events: none;
    animation: noise 0.2s infinite;
    opacity: 0.5;
}

.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, #000 90%);
    z-index: -1;
    pointer-events: none;
}

/* --- MAIN CONTAINER LAYOUT --- */
.container {
    width: 95%;
    max-width: 1400px;
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-left: 1px dashed var(--primary-color);
    border-right: 1px dashed var(--accent-color);
}

/* --- TYPOGRAPHY AND FONT STYLES --- */
h1 {
    font-size: 4rem;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 3px 3px 0px var(--primary-color), -2px -2px 0px var(--accent-color);
    margin-bottom: 0.5rem;
    animation: glitch-skew 3s infinite steps(10);
    font-family: 'Impact', sans-serif;
    letter-spacing: 2px;
}

/* --- UTILITY CLASSES --- */
.screen-shake {
    animation: screenShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* --- BASE NOISE ANIMATION (for background) --- */
@keyframes noise {
    0%, 100% {
        background-position: 0 0;
    }
    10% {
        background-position: -5% -10%;
    }
    20% {
        background-position: -15% 5%;
    }
    30% {
        background-position: 7% -25%;
    }
    40% {
        background-position: 20% 25%;
    }
    50% {
        background-position: -25% 10%;
    }
    60% {
        background-position: 15% 5%;
    }
    70% {
        background-position: 0% 15%;
    }
    80% {
        background-position: 25% 35%;
    }
    90% {
        background-position: -10% 10%;
    }
}

/* --- SCREEN SHAKE ANIMATION --- */
@keyframes screenShake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    10% {
        transform: translate(-10px, -10px) rotate(-1deg);
    }
    20% {
        transform: translate(10px, 10px) rotate(1deg);
    }
    30% {
        transform: translate(-10px, 10px) rotate(0deg);
    }
    40% {
        transform: translate(10px, -10px) rotate(1deg);
    }
    50% {
        transform: translate(-10px, 0px) rotate(-1deg);
    }
    60% {
        transform: translate(10px, 0px) rotate(0deg);
    }
    70% {
        transform: translate(-10px, 0px) rotate(1deg);
    }
    80% {
        transform: translate(10px, 0px) rotate(-1deg);
    }
    90% {
        transform: translate(-5px, 0px) rotate(0deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* --- GLITCH SKEW ANIMATION --- */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }
    20% {
        transform: skew(-2deg);
    }
    40% {
        transform: skew(2deg);
    }
    60% {
        transform: skew(-1deg);
    }
    80% {
        transform: skew(1deg);
    }
    100% {
        transform: skew(0deg);
    }
}