﻿/* ============================================
   闃舵浜?路 鏃跺厜闀垮粖
   鏂滃悜鏃剁┖杞ㄩ亾 路 鍙充笂 <-> 宸︿笅
   ============================================ */

#timeline-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 85% 55% at 50% 78%,
            rgba(245, 199, 142, 0.05) 0%,
            rgba(245, 199, 142, 0.015) 35%,
            transparent 72%
        );
    transition: opacity 0.9s ease;
}

.timeline-header {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 3;
}

.header-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 195, 185, 0.18),
        transparent
    );
}

.header-text {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    letter-spacing: 6px;
    color: rgba(200, 195, 185, 0.28);
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-scroll-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.timeline-scroll-area:active {
    cursor: grabbing;
}

.timeline-track {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: -10vw;
    top: 72vh;
    width: 165vw;
    height: 2px;
    transform-origin: left center;
    transform: rotate(-45deg);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(227, 196, 147, 0.05) 10%,
        rgba(227, 196, 147, 0.2) 45%,
        rgba(227, 196, 147, 0.05) 85%,
        transparent 100%
    );
    box-shadow: 0 0 18px rgba(227, 196, 147, 0.08);
    pointer-events: none;
}

.polaroid-card,
.seal-card {
    position: absolute;
    width: 220px;
    will-change: transform, opacity, filter;
}

.polaroid-card {
    background: #f5f0e8;
    padding: 12px 12px 42px 12px;
    border-radius: 3px;
}

.polaroid-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.38),
        0 4px 10px rgba(0, 0, 0, 0.28);
    z-index: -1;
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #cfc4b6;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.polaroid-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(78, 62, 45, 0.56);
    letter-spacing: 1.5px;
    background:
        linear-gradient(135deg, rgba(232, 224, 212, 0.82), rgba(188, 174, 157, 0.58)),
        repeating-linear-gradient(
            -45deg,
            rgba(120, 105, 88, 0.06) 0,
            rgba(120, 105, 88, 0.06) 10px,
            rgba(244, 239, 232, 0.07) 10px,
            rgba(244, 239, 232, 0.07) 20px
        );
    outline: 1px dashed rgba(110, 90, 70, 0.26);
    z-index: 1;
}

.polaroid-caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    text-align: center;
}

.polaroid-year {
    font-family: 'Georgia', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #5d4e46;
    margin-bottom: 3px;
}

.polaroid-title {
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #3d2c2e;
    margin-bottom: 2px;
}

.polaroid-desc {
    font-size: 0.7rem;
    color: #8a7a6e;
    letter-spacing: 1px;
}

.seal-card {
    height: 290px;
    background: linear-gradient(160deg, #1f2d3d, #141d26);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 24px;
}

.seal-card-wax {
    width: 52px;
    height: 52px;
    border-radius: 43% 57% 41% 59% / 47% 43% 57% 53%;
    background: radial-gradient(
        circle at 35% 30%,
        #d8b257 0%,
        #b28e37 35%,
        #73571e 70%,
        #402f0d 100%
    );
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 235, 180, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(200, 170, 110, 0.35);
}

.seal-card-wax::after {
    content: '鉂?;
    font-size: 16px;
}

.seal-card-text {
    text-align: center;
    margin-top: 4px;
}

.seal-card-text .seal-line1 {
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: rgba(200, 195, 185, 0.5);
    margin-bottom: 6px;
}

.seal-card-text .seal-line2 {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(200, 195, 185, 0.25);
}

.seal-card .click-hint {
    position: absolute;
    bottom: 18px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(200, 195, 185, 0.15);
    animation: seal-hint-pulse 2.5s ease-in-out infinite;
}

@keyframes seal-hint-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.5; }
}

.footprint-bar {
    position: absolute;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 30px;
    z-index: 3;
}

.footprint-step {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.timeline-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(235, 223, 208, 0.52);
    z-index: 3;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .timeline-header {
        top: 22px;
        gap: 12px;
    }

    .header-text {
        font-size: 0.74rem;
        letter-spacing: 4px;
    }

    .polaroid-card,
    .seal-card {
        width: 160px;
    }

    .polaroid-card {
        padding: 8px 8px 34px 8px;
    }

    .seal-card {
        height: 215px;
        padding: 16px;
    }

    .seal-card-wax {
        width: 34px;
        height: 34px;
    }

    .footprint-bar {
        bottom: 46px;
        gap: 9px;
    }

    .timeline-hint {
        bottom: 14px;
        font-size: 0.62rem;
        letter-spacing: 2px;
    }
}

.timeline-story {
      position: absolute;
      z-index: 5;
      pointer-events: none;
      font-family: 'Georgia', 'Noto Serif SC', 'STSong', serif;
      font-size: 1.4rem;
      line-height: 1.5;
      letter-spacing: 0.04em;
      color: rgba(255, 244, 234, 0.86);
      text-shadow:
          0 0 6px  rgba(255, 210, 170, 0.30),
          0 0 16px rgba(255, 190, 140, 0.15),
          0 0 36px rgba(255, 170, 120, 0.07);
      white-space: pre-wrap;
      word-break: break-word;
      width: min(20vw, 320px);
}

.timeline-story-top {
    top: 18%;
    left: 6%;
    text-align: left;
}

.timeline-story-bottom {
    bottom: 18%;
    right: 6%;
    text-align: right;
}

.timeline-story .char {
    display: inline;
}

@media (max-width: 700px) {
    .timeline-story {
        font-size: 0.9rem;
        width: clamp(132px, 36vw, 144px);
        line-height: 1.6;
    }

    .timeline-story-top {
        top: 11%;
        left: 5%;
    }

    .timeline-story-bottom {
        bottom: 13%;
        right: 5%;
    }
}
