/* ====== 量子宇宙重置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --quantum-purple: #7c3aed;
    --neon-cyan: #06b6d4;
    --plasma-pink: #ec4899;
    --electric-green: #10b981;
    --void-black: #0a0a0a;
    --white-matter: #ffffff;
    --glow-gold: #fbbf24;
    --dimension-blue: #3b82f6;
    --plasma-gradient: linear-gradient(135deg, var(--quantum-purple), var(--plasma-pink), var(--neon-cyan));
    --cosmic-gradient: radial-gradient(ellipse at center, var(--dimension-blue) 0%, var(--quantum-purple) 50%, var(--void-black) 100%);
}

body {
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
    background: var(--void-black);
    color: var(--white-matter);
    overflow: hidden;
    min-height: 100vh;
    perspective: 1500px;
}

/* ====== 量子容器 ====== */
.quantum-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--cosmic-gradient);
    animation: cosmicShift 20s ease-in-out infinite;
}

@keyframes cosmicShift {
    0%, 100% { background: var(--cosmic-gradient); }
    25% { background: radial-gradient(ellipse at top-left, var(--plasma-pink) 0%, var(--quantum-purple) 30%, var(--void-black) 100%); }
    50% { background: radial-gradient(ellipse at top-right, var(--neon-cyan) 0%, var(--dimension-blue) 30%, var(--void-black) 100%); }
    75% { background: radial-gradient(ellipse at bottom, var(--electric-green) 0%, var(--quantum-purple) 30%, var(--void-black) 100%); }
}

/* ====== 粒子场效果 ====== */
.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: floatQuantum 10s infinite ease-in-out;
}

@keyframes floatQuantum {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) scale(1.5);
        opacity: 1;
    }
    50% { 
        transform: translateY(-40px) translateX(-10px) scale(0.5);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-20px) translateX(-5px) scale(1.2);
        opacity: 0.5;
    }
}

/* ====== 浮动几何元素 ====== */
.geo-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.geo-cube, .geo-sphere, .geo-pyramid {
    position: absolute;
    opacity: 0.7;
}

.geo-cube {
    width: 40px;
    height: 40px;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.geo-cube::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--plasma-pink), var(--neon-cyan));
    transform: rotateY(90deg);
    box-shadow: 0 0 20px var(--plasma-pink);
}

.cube-1 { top: 10%; left: 15%; animation-delay: 0s; }
.cube-2 { top: 20%; right: 20%; animation-delay: -5s; }

@keyframes rotateCube {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.geo-sphere {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, var(--electric-green), var(--quantum-purple));
    border-radius: 50%;
    animation: floatSphere 12s infinite ease-in-out;
    box-shadow: 0 0 30px var(--electric-green);
}

.sphere-1 { top: 60%; left: 10%; animation-delay: -2s; }

@keyframes floatSphere {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.geo-pyramid {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid var(--glow-gold);
    animation: rotatePyramid 18s infinite linear;
    filter: drop-shadow(0 0 15px var(--glow-gold));
}

.pyramid-1 { bottom: 20%; right: 15%; animation-delay: -8s; }

@keyframes rotatePyramid {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

/* ====== 梦境标题 ====== */
.dream-header {
    position: relative;
    text-align: center;
    padding: 3rem 0;
    z-index: 10;
}

.dream-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.title-main {
    display: block;
    font-size: 4rem;
    background: linear-gradient(45deg, var(--neon-cyan), var(--plasma-pink), var(--glow-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    animation: glitchText 3s infinite;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    letter-spacing: 0.5rem;
    margin-top: 0.5rem;
    animation: pulseGlow 2s infinite;
}

@keyframes glitchText {
    0%, 100% { text-shadow: 0 0 30px rgba(6, 182, 212, 0.5); }
    25% { text-shadow: -2px 0 var(--plasma-pink), 2px 0 var(--neon-cyan); }
    50% { text-shadow: 2px 0 var(--glow-gold), -2px 0 var(--plasma-pink); }
    75% { text-shadow: 0 0 40px rgba(236, 72, 153, 0.8); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--neon-cyan); }
}

.reality-glitch {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--electric-green);
    letter-spacing: 0.2rem;
    position: relative;
    animation: flicker 2s infinite;
}

.reality-glitch::before,
.reality-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reality-glitch::before {
    animation: glitch1 0.5s infinite;
    color: var(--plasma-pink);
    z-index: -1;
}

.reality-glitch::after {
    animation: glitch2 0.5s infinite;
    color: var(--neon-cyan);
    z-index: -2;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

@keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(20% 0 30% 0); }
    50% { clip-path: inset(50% 0 20% 0); }
    75% { clip-path: inset(10% 0 60% 0); }
}

@keyframes glitch2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(60% 0 10% 0); }
    50% { clip-path: inset(20% 0 50% 0); }
    75% { clip-path: inset(30% 0 20% 0); }
}

/* ====== 环形轨道系统 ====== */
.dream-main {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.orbit-container {
    position: relative;
    width: 600px;
    height: 600px;
    transform-style: preserve-3d;
    animation: rotateOrbitContainer 60s infinite linear;
}

@keyframes rotateOrbitContainer {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.identity-sphere {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: pulseIdentity 3s infinite ease-in-out;
}

.sphere-content {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--glow-gold), var(--quantum-purple), var(--void-black));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 50px var(--glow-gold),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.avatar-placeholder {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px var(--white-matter));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    animation: expandRing 2s infinite ease-out;
}

@keyframes pulseIdentity {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes expandRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ====== 轨道 ====== */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    animation: orbit1 15s infinite linear;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    animation: orbit2 18s infinite linear;
}

.orbit-3 {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    animation: orbit3 21s infinite linear;
}

.orbit-4 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation: orbit4 24s infinite linear;
}

.orbit-5 {
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
    animation: orbit5 27s infinite linear;
}

.orbit-6 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    animation: orbit6 30s infinite linear;
}

.orbit-7 {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    animation: orbit7 33s infinite linear;
}

.orbit-8 {
    width: 460px;
    height: 460px;
    margin: -230px 0 0 -230px;
    animation: orbit8 36s infinite linear;
}

.orbit-9 {
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
    animation: orbit9 39s infinite linear;
}

@keyframes orbit1 { 0% { transform: rotateZ(0deg); } 100% { transform: rotateZ(360deg); } }
@keyframes orbit2 { 0% { transform: rotateZ(40deg); } 100% { transform: rotateZ(400deg); } }
@keyframes orbit3 { 0% { transform: rotateZ(80deg); } 100% { transform: rotateZ(440deg); } }
@keyframes orbit4 { 0% { transform: rotateZ(120deg); } 100% { transform: rotateZ(480deg); } }
@keyframes orbit5 { 0% { transform: rotateZ(160deg); } 100% { transform: rotateZ(520deg); } }
@keyframes orbit6 { 0% { transform: rotateZ(200deg); } 100% { transform: rotateZ(560deg); } }
@keyframes orbit7 { 0% { transform: rotateZ(240deg); } 100% { transform: rotateZ(600deg); } }
@keyframes orbit8 { 0% { transform: rotateZ(280deg); } 100% { transform: rotateZ(640deg); } }
@keyframes orbit9 { 0% { transform: rotateZ(320deg); } 100% { transform: rotateZ(680deg); } }

/* ====== 信息卡片 ====== */
.info-card {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotateZ(-var(--orbit-rotation));
    width: 140px;
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    transform: translateX(-50%) rotateZ(-var(--orbit-rotation)) scale(1.1);
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 30;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.card-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    color: var(--neon-cyan);
}

.card-content {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--white-matter);
    min-height: 2.5rem;
    word-wrap: break-word;
    padding: 0.3rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.editable:hover {
    background: rgba(6, 182, 212, 0.1);
}

.editable:focus {
    outline: 2px solid var(--neon-cyan);
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* 卡片颜色主题 */
.user-name .card-header { color: var(--plasma-pink); }
.email .card-header { color: var(--neon-cyan); }
.dream-target .card-header { color: var(--glow-gold); }
.core-ability .card-header { color: var(--electric-green); }
.competitiveness .card-header { color: var(--plasma-pink); }
.dream .card-header { color: var(--dimension-blue); }
.creative-idea .card-header { color: var(--glow-gold); }
.submit-date .card-header { color: var(--neon-cyan); }
.status .card-header { color: var(--electric-green); }

/* ====== 控制面板 ====== */
.control-panel {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 30;
}

.quantum-btn {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.8));
    border: 1px solid var(--neon-cyan);
    border-radius: 25px;
    color: var(--white-matter);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quantum-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(124, 58, 237, 0.5),
        0 0 30px rgba(6, 182, 212, 0.3);
}

.quantum-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.quantum-btn:hover .btn-glow {
    left: 100%;
}

/* ====== 次元隧道 ====== */
.dimension-tunnel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(6, 182, 212, 0.1) 10deg,
            transparent 20deg
        );
    animation: tunnelSpin 10s linear infinite;
}

.dimension-tunnel.active {
    opacity: 1;
    animation: tunnelActivate 2s ease-out forwards;
}

@keyframes tunnelSpin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes tunnelActivate {
    0% {
        opacity: 0;
        transform: scale(0.1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(3) rotate(360deg);
    }
}

/* ====== 时间指示器 ====== */
.time-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 25;
}

.time-string {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--electric-green);
    letter-spacing: 0.1rem;
    text-shadow: 0 0 10px var(--electric-green);
    animation: timeFlicker 3s infinite;
}

@keyframes timeFlicker {
    0%, 100% { opacity: 0.8; }
    25% { opacity: 1; }
    50% { opacity: 0.6; }
    75% { opacity: 0.9; }
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1rem;
        letter-spacing: 0.3rem;
    }
    
    .orbit-container {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }
    
    .orbit-1 { width: 100px; height: 100px; margin: -50px 0 0 -50px; }
    .orbit-2 { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
    .orbit-3 { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
    .orbit-4 { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
    .orbit-5 { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
    .orbit-6 { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
    .orbit-7 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
    .orbit-8 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
    .orbit-9 { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
    
    .info-card {
        width: 100px;
        padding: 0.7rem;
        top: -15px;
    }
    
    .card-content {
        font-size: 0.7rem;
        min-height: 2rem;
    }
    
    .identity-sphere {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder {
        font-size: 2rem;
    }
    
    .control-panel {
        bottom: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quantum-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dream-header {
        padding: 2rem 0;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .control-panel {
        bottom: 0.5rem;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .quantum-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }
}

/* ====== 矩阵模式 ====== */
.matrix-mode {
    animation: matrixGlitch 0.5s ease-out;
    background: #000 !important;
}

.matrix-mode .info-card {
    background: rgba(0, 255, 0, 0.1) !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5) !important;
}

.matrix-mode .card-header {
    color: #00ff00 !important;
    border-bottom-color: rgba(0, 255, 0, 0.3) !important;
}

.matrix-mode .card-content {
    color: #00ff00 !important;
}

.matrix-mode .dream-title .title-main {
    background: linear-gradient(45deg, #00ff00, #008800) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

@keyframes matrixGlitch {
    0%, 100% { transform: none; filter: none; }
    10% { transform: translateX(-5px); filter: hue-rotate(90deg); }
    20% { transform: translateX(5px); filter: hue-rotate(180deg); }
    30% { transform: translateX(-5px); filter: hue-rotate(270deg); }
    40% { transform: translateX(5px); filter: hue-rotate(360deg); }
    50% { transform: translateX(-3px); filter: hue-rotate(45deg); }
    60% { transform: translateX(3px); filter: hue-rotate(90deg); }
    70% { transform: translateX(-2px); filter: hue-rotate(135deg); }
    80% { transform: translateX(2px); filter: hue-rotate(180deg); }
    90% { transform: translateX(-1px); filter: hue-rotate(225deg); }
}