/* 东方动态山水 + 赛博朋克控制面板 */
:root {
    --primary: #00e5ff;
    --bg-panel: rgba(10, 15, 25, 0.85);
    --text-main: #e0f7fa;
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: #03080c;
}

/* 仙山楼阁背景特效 */
#scenery-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: url('https://images.unsplash.com/photo-1542856204-00101f558fc2?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    filter: sepia(0.3) hue-rotate(190deg) saturate(1.2) brightness(0.45);
}

/* 动态云海 */
.clouds {
    position: absolute;
    width: 200%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.008" numOctaves="4"/></filter><rect width="100%" height="100%" filter="url(%23f)" opacity="0.35"/></svg>');
    opacity: 0.6;
    animation: drift 70s linear infinite;
    mix-blend-mode: screen;
}
.cloud-2 {
    animation-direction: reverse;
    animation-duration: 90s;
    opacity: 0.3;
    top: 15%;
}
@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 云海飞瀑 */
.waterfall {
    position: absolute;
    right: 18%; top: 25%;
    width: 60px; height: 500px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.05));
    filter: blur(5px);
    animation: fall 1.2s infinite linear;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
@keyframes fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

/* 神仙过海动画 */
.eight-immortals {
    position: absolute;
    bottom: 20%; left: -20%;
    display: flex; gap: 20px;
    animation: crossSea 35s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}
.immortal {
    width: 15px; height: 15px;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px;
    animation: bob 3s infinite ease-in-out alternate;
}
.i1 { background: #ff5252; box-shadow: 0 0 20px 10px #ff5252; animation-delay: 0.1s;}
.i2 { background: #ffeb3b; box-shadow: 0 0 20px 10px #ffeb3b; animation-delay: 0.4s;}
.i3 { background: #448aff; box-shadow: 0 0 20px 10px #448aff; animation-delay: 0.7s;}
.i4 { background: #69f0ae; box-shadow: 0 0 20px 10px #69f0ae; animation-delay: 0.2s;}
.i5 { background: #e040fb; box-shadow: 0 0 20px 10px #e040fb; animation-delay: 0.8s;}
.i6 { background: #ff9800; box-shadow: 0 0 20px 10px #ff9800; animation-delay: 0.5s;}
.i7 { background: #18ffff; box-shadow: 0 0 20px 10px #18ffff; animation-delay: 0.3s;}
.i8 { background: #ffffff; box-shadow: 0 0 20px 10px #ffffff; animation-delay: 0.6s;}

@keyframes crossSea {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(60vw) scale(1.1) translateY(-30px); }
    100% { transform: translateX(120vw) scale(1); }
}
@keyframes bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* 界面UI */
.app-container {
    max-width: 850px;
    margin: 5vh auto;
    background: var(--bg-panel);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    padding: 35px;
    position: relative;
    z-index: 10;
}

header h1 {
    margin: 0;
    background: linear-gradient(90deg, #00e5ff, #005c97);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.4rem;
}
.badge {
    background: linear-gradient(45deg, #ff9800, #f44336);
    color: white;
    -webkit-text-fill-color: white;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 6px;
    vertical-align: top;
    margin-left: 10px;
}
header p { color: #81d4fa; }

.panel {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}
.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,229,255,0.1);
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn:hover:not(:disabled) {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0,229,255,0.5);
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #555;
    color: #888;
}
.btn-magic {
    background: linear-gradient(45deg, #9c27b0, #3f51b5);
    border: none;
    color: white;
}
.btn-magic:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(156,39,176,0.6);
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    min-width: 150px;
}
#train-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00e5ff, #005c97);
    transition: width 0.3s ease;
}

.stats { display: flex; gap: 20px; margin-top: 20px; }
.stat-box {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.stat-box strong { font-size: 1.8rem; color: #00e676; display: block; margin-top: 10px; font-family: monospace;}

.prediction-result {
    display: flex; gap: 12px; margin-top: 25px; justify-content: center;
    min-height: 60px;
}
.ball {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff5252 0%, #b71c1c 80%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(255,82,82,0.5), inset -3px -3px 8px rgba(0,0,0,0.5);
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ball.blue {
    background: radial-gradient(circle at 35% 35%, #448aff 0%, #0d47a1 80%);
    box-shadow: 0 5px 15px rgba(68,138,255,0.5), inset -3px -3px 8px rgba(0,0,0,0.5);
}
@keyframes pop {
    0% { transform: scale(0) rotate(-90deg); opacity: 0;}
    100% { transform: scale(1) rotate(0deg); opacity: 1;}
}

ul#archive-list {
    list-style: none; padding: 0; margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
ul#archive-list::-webkit-scrollbar { width: 6px; }
ul#archive-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
ul#archive-list li {
    background: rgba(255,255,255,0.03);
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
ul#archive-list li:hover {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--primary);
}
