:root {
    --primary: #8b5cf6; 
    --secondary: #3b82f6; 
    --success: #10b981; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --meteor-trail-color: rgba(139, 92, 246, 0.5); 
    --banner-height: 80px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #0f172a;
    height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-main);
    perspective: 1200px; 
    position: relative; 
}

/* 背景与流星 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; 
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, #0f172a 100%);
    z-index: 1;
}

.meteors-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-15deg);
    z-index: 2;
}

.meteor {
    position: absolute;
    top: -100px; 
    display: flex;
    align-items: center;
    opacity: 0; 
    animation: meteor-fly linear infinite;
}

.meteor i {
    font-size: 1.5rem;
    color: #fff;
    margin-right: -1px; 
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff; 
    transform: rotate(-15deg); 
}

.meteor-trail {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--meteor-trail-color), transparent);
    box-shadow: 0 0 10px 1px var(--meteor-trail-color);
    border-radius: 2px;
}

@keyframes meteor-fly {
    0% { top: -100px; left: var(--start-x); opacity: 0; transform: scale(0.5); }
    10% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; }
    90% { opacity: 0; transform: scale(0.5); }
    100% { top: calc(100vh + 100px); left: calc(var(--start-x) + var(--distance-x)); opacity: 0; }
}

.meteor.m1 { --start-x: 10vw; --distance-x: 30vw; animation-duration: 5s; animation-delay: 1s; }
.meteor.m1 i { font-size: 2.2rem; }
.meteor.m1 .meteor-trail { width: 300px; height: 3px; }

.meteor.m2 { --start-x: 60vw; --distance-x: -20vw; animation-duration: 7s; animation-delay: 0s; }
.meteor.m2 i { font-size: 1.8rem; }
.meteor.m2 .meteor-trail { width: 250px; height: 2px; }

.meteor.m3 { --start-x: 35vw; --distance-x: 15vw; animation-duration: 4s; animation-delay: 2.5s; }
.meteor.m3 i { font-size: 1.8rem; }
.meteor.m3 .meteor-trail { width: 200px; height: 2px; }

.meteor.m4 { --start-x: 80vw; --distance-x: 10vw; animation-duration: 3.5s; animation-delay: 4.2s; }
.meteor.m4 i { font-size: 1.5rem; }
.meteor.m4 .meteor-trail { width: 150px; height: 1.5px; }

.meteor.m5 { --start-x: -10vw; --distance-x: 50vw; animation-duration: 3s; animation-delay: 0.5s; }
.meteor.m5 i { font-size: 1.5rem; }
.meteor.m5 .meteor-trail { width: 100px; height: 1.5px; }

/* 海浪 */
.ocean-container {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: -1; 
    pointer-events: none; 
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px; 
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* 顶部横幅 */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banner-height);
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; 
    padding: 0 40px;
}

.top-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1480px;
    width: 100%;
}

.grain-archive-text {
    font-size: 2.8rem; 
    font-weight: 800; 
    color: #fff;
    position: relative;
    padding-left: 60px; 
    letter-spacing: -1px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: neon-pulse 3s ease-in-out infinite alternate;
}

.grain-archive-text:hover {
    transform: scale(1.05);
}

.grain-archive-text:hover .film-roll-icon svg {
    animation: film-spin 1.5s linear infinite; 
    stroke: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.film-roll-icon {
    position: absolute;
    top: -5px; 
    left: 0;
    width: 45px;
    height: 45px;
}

.film-roll-icon svg {
    width: 100%;
    height: 100%;
    stroke: #fff;
    fill: none;
    transform-origin: center;
    animation: film-spin 15s linear infinite; 
    transition: all 0.3s ease;
}

@keyframes film-spin {
    to { transform: rotate(360deg); }
}

@keyframes neon-pulse {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
    100% { text-shadow: 0 0 15px rgba(139, 92, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4); }
}

/* 主容器 */
.wrapper {
    display: flex;
    width: 1480px;
    max-width: 98%;
    height: 520px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.4); 
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6), 
        0 0 120px rgba(139, 92, 246, 0.2), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-top: calc(var(--banner-height) - 20px); 
    transform-style: preserve-3d;
    position: relative;
    z-index: 10; 
    animation: slideIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.1s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.left-panel {
    flex: 0 0 320px; 
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(30px); 
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.avatar-container {
    position: relative;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(#0f172a, #0f172a) padding-box, 
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    border: 3px solid transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.avatar-container:hover .avatar { transform: scale(1.1) rotate(5deg); }

.intro h1 { 
    font-size: 2.6rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p { 
    font-size: 0.88rem; 
    color: rgba(255, 255, 255, 0.85); 
    line-height: 1.7; 
    font-weight: 300; 
    transition: opacity 0.5s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    font-style: italic; 
    padding: 0 10px; 
}

.social-links { display: flex; gap: 15px; }

.social-links a {
    text-decoration: none;
    outline: none; 
}

.social-links i { 
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.05);
    font-size: 16px; color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease; cursor: pointer; 
}

.social-links i:hover { 
    color: #fff; background: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); transform: translateY(-5px); 
}

.right-panel {
    flex: 1;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px; 
    transform: translateZ(20px);
}

/* ================= 高级悬浮卡片效果 ================= */
.nav-tile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; 
    padding: 16px 20px; 
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 15px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-tile::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -150%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg); 
    transition: 0.6s ease;
    z-index: 1;
}

.nav-tile:hover {
    transform: translateY(-8px); 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5), 
        0 15px 25px rgba(139, 92, 246, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.2); 
}

.nav-tile:hover::after { left: 150%; }

.nav-tile .tile-icon {
    font-size: 20px; 
    width: 48px; height: 48px; 
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    flex-shrink: 0; 
    z-index: 2; 
}

.nav-tile:hover .tile-icon { transform: scale(1.1) rotate(5deg); }

.nav-tile:nth-child(1) .tile-icon { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3); }
.nav-tile:nth-child(2) .tile-icon { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3); }
.nav-tile:nth-child(3) .tile-icon { background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3); }
.nav-tile:nth-child(4) .tile-icon { background: linear-gradient(135deg, #8b5cf6, #3b82f6); box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3); }
.nav-tile:nth-child(5) .tile-icon { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3); }
.nav-tile:nth-child(6) .tile-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3); }

.tile-info { display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.tile-info h3 { font-size: 1rem; margin-bottom: 2px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.3); transition: color 0.3s; }
.tile-info p { font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }

.nav-tile:hover .tile-info h3 { color: #fff; }

/* ================= 时间轴样式 ================= */
.timeline-panel {
    flex: 0 0 280px;
    padding: 40px 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%; 
}

.timeline-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0; 
}

.timeline-header i {
    color: var(--primary);
}

.timeline-container {
    flex: 1;
    position: relative;
    overflow: hidden; 
    min-height: 0; 
}

/* --- 自动滚动动画 --- */
.timeline.auto-scroll {
    animation: scroll-up 25s linear infinite; 
}

.timeline-container:hover .timeline.auto-scroll {
    animation-play-state: paused; 
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 40px;
    margin-top: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    transition: all 0.3s;
}

.timeline-item:hover::before {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.9);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-family: monospace;
}

.timeline-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.timeline-title:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.loading-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 音乐播放器 */
.music-player-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.music-player {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.music-player:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.music-player.playing i {
    animation: spin 4s linear infinite;
    color: var(--primary); 
}

.music-list-card {
    width: 240px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    bottom: 70px;
    right: 0;
}

.music-list-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-header span { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.list-header i { cursor: pointer; color: var(--text-muted); font-size: 0.8rem; }

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.song-item:hover { background: rgba(255, 255, 255, 0.05); }
.song-item.active { background: rgba(139, 92, 246, 0.15); }
.song-item.active .song-name { color: #fff; font-weight: 600; }
.song-item.active i { color: var(--primary); }

.song-item i { font-size: 0.8rem; color: var(--text-muted); }
.song-name { font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* 响应式调整 */
@media (max-width: 1024px) {
    body { height: auto; min-height: 100dvh; align-items: flex-start; overflow-y: auto; }
    .wrapper { flex-direction: column; height: auto; width: 90%; margin: 100px auto 140px; transform: none !important; }
    .left-panel { flex: none; padding: 40px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 40px 40px 0 0; }
    .right-panel { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding: 25px; gap: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    
    .timeline-panel { flex: none; border-left: none; padding: 30px 25px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .wrapper > .timeline-panel:last-child { border-bottom: none; border-radius: 0 0 40px 40px; }
    
    .nav-tile { padding: 20px 24px; border-radius: 24px; gap: 20px; }
    .tile-icon { width: 50px; height: 50px; font-size: 22px; border-radius: 14px; }
    .tile-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
    .tile-info p { font-size: 0.9rem; }
    .music-player-container { bottom: 20px; right: 20px; } 
    .top-banner { padding: 0 20px; height: 70px; }
    .grain-archive-text { font-size: 2rem; padding-left: 40px; }
    .film-roll-icon { width: 30px; height: 30px; top: 0px; }
}

@media (max-width: 650px) {
    .right-panel { grid-template-columns: 1fr; }
}