/* 炫彩渐变主题 - 严格限定在 rainbow-mode 下 */
body.rainbow-mode {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: rainbow-gradientFlow 15s ease infinite;
    color: #fff;
    font-family: 'Noto Sans SC', sans-serif;
}

@keyframes rainbow-gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 仅针对 rainbow-mode 下的元素 */
body.rainbow-mode .scanlines,
body.rainbow-mode .neon-orbs {
    display: none !important;
}

body.rainbow-mode #particles-canvas {
    opacity: 0.3;
}

body.rainbow-mode .glitch-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

body.rainbow-mode h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #ffe4e1, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-textShine 3s linear infinite;
    letter-spacing: -0.02em;
    text-shadow: none;
}

@keyframes rainbow-textShine {
    to { background-position: 200% center; }
}

body.rainbow-mode .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: none;
    margin-top: 10px;
}

body.rainbow-mode .cyber-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

body.rainbow-mode .corner {
    display: none;
}

body.rainbow-mode .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.rainbow-mode .section-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

body.rainbow-mode .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.rainbow-mode .neon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

body.rainbow-mode .neon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

body.rainbow-mode .neon-btn svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

body.rainbow-mode .neon-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

body.rainbow-mode .neon-btn.disabled {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.1);
}

body.rainbow-mode .neon-btn.disabled::after {
    content: '即将上线';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    color: #e73c7e;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

body.rainbow-mode .cyber-hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

body.rainbow-mode #cyber-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

body.rainbow-mode .status-label {
    font-weight: 700;
    color: #fff;
}

body.rainbow-mode .latency-value,
body.rainbow-mode .system-time {
    color: #fff;
    font-weight: 700;
}

body.rainbow-mode .ping-bar {
    display: none;
}

@media (max-width: 768px) {
    body.rainbow-mode h1 { font-size: 2rem; }
    body.rainbow-mode .cyber-section { padding: 20px 16px; }
    body.rainbow-mode .neon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}