/* BurnRate - Neo-Brutalism 风格全局样式 */

/* --- 基础重置与全局样式 --- */
:root {
    /* 核心调色板 */
    --c-fire: #FF3E3E;
    --c-cash: #FFD700;
    --c-cold: #1A1AFF;
    --c-dark: #0D0D0D;
    --c-light: #FAFAF5;
    --c-bg: #F0EDE6;
    --c-smoke: #2A2A2A;
    
    /* 统一设计参数 */
    --border-width: 3px;
    --shadow-x: 6px;
    --shadow-y: 6px;
    --radius: 0px; /* 坚持直角 */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Noto Serif SC", "Noto Sans SC", sans-serif;
    background-color: var(--c-bg);
    color: var(--c-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* --- 常驻动态背景 --- */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -99;
    overflow: hidden;
    pointer-events: none;
}

/* 动态网格层 */
.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--c-dark) 1.5px, transparent 1.5px),
        linear-gradient(90deg, var(--c-dark) 1.5px, transparent 1.5px);
    background-size: 60px 60px;
    background-position: 0 0;
    opacity: 0.04;
    animation: gridMove 40s linear infinite;
}

/* 浮动几何体 */
.floating-shape {
    position: absolute;
    opacity: 0.6;
    border: 2px solid var(--c-dark);
    animation: floatShape 15s infinite ease-in-out alternate;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: var(--c-cash);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 70%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--c-cold);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 80%;
    width: 30px;
    height: 30px;
    background: var(--c-fire);
    transform: rotate(45deg);
    animation-delay: -2s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 40px) rotate(180deg); }
}

/* --- 统一 Neo-Brutalism 组件 --- */

/* 卡片容器 */
.neo-card {
    background: var(--c-light);
    border: var(--border-width) solid var(--c-dark);
    box-shadow: var(--shadow-x) var(--shadow-y) 0px var(--c-dark);
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    isolation: isolate;
}

.neo-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-x) + 2px) calc(var(--shadow-y) + 2px) 0px var(--c-dark);
}

/* 装饰性标题栏 (Card Header) */
.neo-header {
    padding: 12px 20px;
    border-bottom: var(--border-width) solid var(--c-dark);
    font-family: "ZCOOL KuaiLe", sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neo-header.bg-dark {
    background: var(--c-dark) !important;
    color: white !important;
}

.neo-header.bg-fire {
    background: var(--c-fire) !important;
    color: white !important;
}

.neo-header.bg-cold {
    background: var(--c-cold) !important;
    color: white !important;
}

.neo-header.bg-cash {
    background: var(--c-cash) !important;
    color: var(--c-dark) !important;
}

/* 按钮 */
.btn-neo {
    display: inline-block;
    background: var(--c-cash);
    color: var(--c-dark);
    font-weight: 900;
    padding: 12px 24px;
    border: var(--border-width) solid var(--c-dark);
    box-shadow: 4px 4px 0 var(--c-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.1s;
    cursor: pointer;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.btn-neo:hover {
    background: #ffe66d;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--c-dark);
    color: var(--c-dark);
}

.btn-neo:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 var(--c-dark);
}

.btn-neo-fire {
    background: var(--c-fire);
    color: white;
}

.btn-neo-fire:hover {
    background: #ff5555;
    color: white;
}

.btn-neo-cold {
    background: var(--c-cold);
    color: white;
}

.btn-neo-cold:hover {
    background: #3399ff;
    color: white;
}

/* --- Header 区域 --- */
header {
    background-color: var(--c-fire);
    border-bottom: var(--border-width) solid var(--c-dark);
    padding: 40px 0 30px 0;
    position: relative;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 2px, transparent 2.5px);
    background-size: 20px 20px;
}

.home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--c-light);
    color: var(--c-dark);
    padding: 8px 16px;
    font-weight: 800;
    text-decoration: none;
    border: var(--border-width) solid var(--c-dark);
    box-shadow: 3px 3px 0 var(--c-dark);
    transition: 0.2s;
    z-index: 20;
}

.home-btn:hover {
    box-shadow: 5px 5px 0 var(--c-dark);
    transform: translate(-2px, -2px);
    color: var(--c-dark);
}

h1.main-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--c-light);
    text-shadow: 5px 5px 0 var(--c-dark);
    line-height: 1;
    margin-bottom: 10px;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.badge-neo {
    background: var(--c-dark);
    color: white;
    padding: 5px 10px;
    font-family: "ZCOOL KuaiLe", sans-serif;
    border: 2px solid white;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 20px;
}

/* --- 跑马灯标题栏 (Marquee) --- */
.marquee-strip {
    background: var(--c-cash);
    border-bottom: var(--border-width) solid var(--c-dark);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-family: "ZCOOL KuaiLe", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Footer --- */
footer {
    margin-top: auto;
    background: var(--c-dark);
    color: white;
    padding: 30px 0;
    border-top: 5px solid var(--c-fire);
    position: relative;
    z-index: 10;
}

footer a {
    color: #aaa;
    transition: 0.2s;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.footer-beian {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-beian a {
    color: #aaa;
    white-space: nowrap;
}

.footer-beian a:hover {
    color: white;
    text-decoration: underline;
}

.footer-beian-sep {
    display: inline-block;
    margin: 0 8px;
    color: #777;
}

/* --- Utilities --- */
.section-title {
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.section-title span.box {
    background: var(--c-dark);
    color: white;
    padding: 5px 15px;
    margin-right: 15px;
    transform: skewX(-10deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    h1.main-title {
        font-size: 2.5rem;
    }

    .marquee-strip {
        font-size: 1rem;
    }

    .neo-card {
        margin-bottom: 20px;
    }

    /* 移动端隐藏 header */
    header {
        display: none;
    }
}

/* 页面内弹窗样式 */
.neo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.neo-modal.active {
    display: flex;
}

.neo-modal-content {
    background: var(--c-light);
    border: var(--border-width) solid var(--c-dark);
    box-shadow: 10px 10px 0 var(--c-dark);
    padding: 0;
    max-width: 420px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.neo-modal-header {
    padding: 20px 25px;
    border-bottom: var(--border-width) solid var(--c-dark);
    background: var(--c-light);
}

.neo-modal-title {
    font-family: "ZCOOL KuaiLe", sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-dark);
}

.neo-modal-title i {
    font-size: 1.6rem;
}

.neo-modal-body {
    padding: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--c-dark);
    background: var(--c-light);
}

.neo-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 25px 25px;
    background: var(--c-light);
}

.neo-modal-footer .btn-neo {
    padding: 12px 32px;
    font-size: 1rem;
    min-width: 100px;
}

/* 成功状态 */
.neo-modal-success .neo-modal-content {
    border-color: #4ade80;
    box-shadow: 8px 8px 0 rgba(74, 222, 128, 0.5);
}

.neo-modal-success .neo-modal-header {
    border-bottom-color: #4ade80;
    background: linear-gradient(135deg, #f0fdf4a 0%, #ffffff 100%);
}

.neo-modal-success .neo-modal-title i {
    color: #22c55e;
}

/* 错误状态 */
.neo-modal-error .neo-modal-content {
    border-color: var(--c-fire);
    box-shadow: 8px 8px 0 rgba(255, 62, 62, 0.5);
}

.neo-modal-error .neo-modal-header {
    border-bottom-color: var(--c-fire);
    background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
}

.neo-modal-error .neo-modal-title i {
    color: var(--c-fire);
}

/* 警告状态 */
.neo-modal-warning .neo-modal-content {
    border-color: #fb923c;
    box-shadow: 8px 8px 0 rgba(251, 146, 60, 0.5);
}

.neo-modal-warning .neo-modal-header {
    border-bottom-color: #fb923c;
    background: linear-gradient(135deg, #ffedd5 0%, #ffffff 100%);
}

.neo-modal-warning .neo-modal-title i {
    color: #ea580c;
}

/* 信息状态 */
.neo-modal-info .neo-modal-content {
    border-color: var(--c-cold);
    box-shadow: 8px 8px 0 rgba(26, 26, 255, 0.4);
}

.neo-modal-info .neo-modal-header {
    border-bottom-color: var(--c-cold);
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
}

.neo-modal-info .neo-modal-title i {
    color: var(--c-cold);
}



