/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-color: #050a14;
    --card-bg: rgba(16, 28, 45, 0.85);
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --accent-cyan: #00f2ff;
    --accent-blue: #0077ff;
    --timeline-line: rgba(0, 242, 255, 0.3);
}

* { box-sizing: border-box; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
}

/* 背景 Canvas */
#geo-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.5;
}

/* Header Animation */
header {
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, rgba(5,10,20,1) 0%, rgba(5,10,20,0) 100%);
}
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
    to { text-shadow: 0 0 20px rgba(0, 242, 255, 0.6); }
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
/* The central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-line);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* Timeline Card Containers */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.container.show {
    opacity: 1;
    transform: translateY(0);
}

.left { left: 0; }
.right { left: 50%; }

/* The dots on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    right: -10px; top: 25px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-cyan);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
}
.right::after { left: -10px; }

/* Arrows */
.left::before {
    content: " "; position: absolute; top: 25px; right: 30px;
    border: medium solid white; border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-bg);
}
.right::before {
    content: " "; position: absolute; top: 25px; left: 30px;
    border: medium solid white; border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

/* Card Content */
.content {
    padding: 20px 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}
.content:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
    border-color: var(--accent-cyan);
}
.content h2 { margin-top: 0; color: var(--accent-cyan); font-family: 'Orbitron'; }
.date { font-size: 0.9rem; color: #aaa; margin-bottom: 10px; }

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .container::before { left: 60px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent var(--card-bg) transparent transparent; }
    .left::after, .right::after { left: 21px; }
    .right { left: 0%; }
}

/* Detail Page Styles */
.detail-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.game-box {
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid var(--accent-cyan);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(0,242,255,0.1);
}
.slider-group { margin-bottom: 15px; }
input[type=range] { width: 100%; accent-color: var(--accent-cyan); }

/* Magnetic Game Styles */
#mag-canvas {
    width: 100%; height: 150px;
    background: #000;
    border: 1px solid #555;
    margin-top: 10px;
}
.mag-legend { display: flex; justify-content: center; gap: 20px; margin-top: 5px; font-size: 0.8rem; color: #ccc;}
.legend-box { width: 15px; height: 15px; display: inline-block; vertical-align: middle; margin-right: 5px; }

/* Images */
img { max-width: 100%; border-radius: 8px; border: 1px solid #444; margin: 10px 0; }