* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f7f4ec 0%, #ece5d4 100%); color: #3a3630; }

header { text-align: center; padding: 4.5vh 0 1vh; }
header h1 { font-size: clamp(26px, 2.8vw, 44px); letter-spacing: 8px; color: #7a5c2e; }
header p { margin-top: 1vh; color: #9a8c72; font-size: clamp(13px, 1.2vw, 18px); letter-spacing: 2px; }

/* ---------- 时间轴 ---------- */
#timeline-wrap {
    position: relative; width: 92%; margin: 4vh auto 0;
    padding: 2vh 0;
}
#timeline {
    display: flex; align-items: center; gap: 0;
    position: relative; padding: 3vh 2vw;
    overflow-x: auto; scrollbar-width: none;
}
#timeline::-webkit-scrollbar { display: none; }
#timeline::before {
    content: ''; position: absolute; left: 2vw; right: 2vw; top: 50%;
    height: 3px;
    background: linear-gradient(90deg, #d8c9a5, #b5945a, #d8c9a5);
    border-radius: 2px;
}

.node {
    position: relative; z-index: 2;
    flex: 1; min-width: 120px;
    text-align: center; cursor: pointer;
}
.node .dot {
    width: clamp(16px, 1.6vw, 24px); height: clamp(16px, 1.6vw, 24px);
    margin: 0 auto; border-radius: 50%;
    background: #fff; border: 4px solid #b5945a;
    transition: all .25s;
}
.node:hover .dot { transform: scale(1.35); }
.node.active .dot { background: #b5945a; box-shadow: 0 0 0 6px rgba(181, 148, 90, .25); }
.node .year {
    margin-top: 1.4vh; font-size: clamp(16px, 1.7vw, 26px);
    font-weight: 700; color: #8a6d3b; letter-spacing: 1px;
}
.node .caption { font-size: clamp(11px, 1vw, 15px); color: #a2907a; margin-top: .4vh; }

.tl-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 34px; color: #b5945a; cursor: pointer;
    user-select: none; z-index: 3;
}
.tl-arrow.left { left: -8px; }
.tl-arrow.right { right: -8px; }

/* ---------- 详情面板 ---------- */
#stage-panel {
    width: min(86vw, 1100px);
    margin: 4vh auto 0;
    background: #fffdf8;
    border: 1px solid #e3d5b8;
    border-radius: 16px;
    padding: 4vh 4vw;
    box-shadow: 0 14px 44px rgba(140, 110, 60, .18);
    animation: slideUp .45s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.stage-year {
    display: inline-block;
    font-size: clamp(34px, 4vw, 64px); font-weight: 800;
    color: #b5945a; line-height: 1;
    border-bottom: 4px solid #e0cba0; padding-bottom: 1vh;
}
.stage-title { margin-top: 2vh; font-size: clamp(18px, 1.9vw, 28px); color: #6b5330; }
.stage-img {
    width: 100%; max-height: 34vh; object-fit: cover;
    border-radius: 12px; margin-top: 2.2vh;
}
.stage-text {
    margin-top: 2.2vh; font-size: clamp(14px, 1.4vw, 21px);
    line-height: 2; color: #55503f; white-space: pre-wrap;
}
