.timeline-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 8rem 0 2rem;
    text-align: center;
    color: var(--light);
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 1px;
}
.breaking-event-container {
    width: 100%;
    max-width: 1500px;
    padding: 2.5rem 2.5rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.visual-wrapper {
    flex: 0 0 50%;
    max-width: 720px;
    position: relative;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tilt-container {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tilt-container:hover {
    transform: rotateY(0deg) rotateX(0deg) !important;
    transition: transform 0.4s !important;
}
.device-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 14px solid #ffffff;
    border-radius: 30px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
}
.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.breaking-content-wrapper {
    flex: 0 0 45%;
    max-width: 600px;
}
.main-heading {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}
.main-heading span {
    color: var(--accent);
    position: relative;
    display: inline-block;
    bottom: 2px;
}
.main-heading span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0.5;
    border-radius: var(--radius-full);
}
.description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation-delay: 0.1s;
}
p {
    margin-bottom: 0.5rem;
}
.hexa {
    border: 0px;
    float: left;
    text-align: center;
    height: 35px;
    width: 60px;
    font-size: 22px;
    background: #f0f0f0;
    color: #3c3c3c;
    position: relative;
    margin-top: 15px;
    }

.hexa:before {
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-bottom: 15px solid #f0f0f0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    top: -15px;
}

.hexa:after {
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 15px solid #f0f0f0;
    bottom: -15px;
}

.timeline {
    position: relative;
    margin: 2rem auto;
    padding: 0;
    width: 100%;
    margin-top: 20px;
    list-style-type: none;
    color: #333;
}

.timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background: rgb(213,213,213);
    background: -moz-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
    background: -webkit-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -o-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -ms-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: linear-gradient(to bottom, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    z-index: 0;
}

.timeline li {
    padding: 2em 0;
}

.timeline .hexa {
    width: 16px;
    height: 10px;
    position: absolute;
    background: var(--hexa-color, #00c4f3);
    z-index: 5;
    left: 0;
    right: 0;
    margin-left:auto;
    margin-right:auto;
    top: -30px;
    margin-top: 0;
}

.timeline .hexa:before {
    border-bottom: 4px solid var(--hexa-color, #00c4f3);
    border-left-width: 8px;
    border-right-width: 8px;
    top: -4px;
}

.timeline .hexa:after {
    border-left-width: 8px;
    border-right-width: 8px;
    border-top: 4px solid var(--hexa-color, #00c4f3);
    bottom: -4px;
}

.direction-l, .direction-r {
    float: none;
    width: 100%;
    text-align: center;
}

.flag-wrapper {
    text-align: center;
    position: relative;
}

.flag {
    position: relative;
    display: inline;
    background: rgb(255,255,255);
    font-weight: 600;
    z-index: 15;
    padding: 6px 10px;
    text-align: left;
    border-radius: 5px;
}

.direction-l .flag:after, .direction-r .flag:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255,255,255);
    border-width: 8px;
    pointer-events: none;
}

.direction-l .flag {
    -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.direction-r .flag {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.flag span {
color: var(--accent);
position: relative;
display: inline-block;
bottom: 0;
}

.flag span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0.5;
    border-radius: var(--radius-full);
}

.time {
    background: #00c4f3;
    display: inline-block;
    padding: 8px;
}

.desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(254,254,254);
    -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    -moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    box-shadow: 0 0 1px rgba(0,0,0,0.20);
    z-index: 15;
}

.direction-l .desc, .direction-r .desc {
    position: relative;
    margin: 1em 1em 0;
    padding: 1em;
    z-index: 15;
}

/* ----- 时间线图片相册（立体相框，错位悬浮）----- */
.timeline .direction-l, .timeline .direction-r {
    position: relative;
    padding-top: 90px;  /* 为绝对定位的图片区域预留空间，避免与内容重叠 */
}

/* 图片容器：绝对定位，不占文档流，但通过父级 padding-top 占位 */
.direction-l .timeline-photos {
    justify-content: right;
    padding: 0 1em 0;
    position: absolute;
    top: -1em;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1em;
    z-index: 25;
    pointer-events: none;   /* 容器不拦截事件，但内部 .photo-item 恢复 */
}

.direction-r .timeline-photos {
    justify-content: left;
    padding: 0 1em 0;
    position: absolute;
    top: -1em;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1em;
    z-index: 25;
    pointer-events: none;   /* 容器不拦截事件，但内部 .photo-item 恢复 */
    height: 90px;
}

.timeline-photos .photo-item {
    pointer-events: auto;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 3px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 
        4px 4px 0 rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 0 0 2px #b0b0b0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1), box-shadow 0.25s;
    transform: rotate(0deg);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-item:hover {
    transform: scale(1.08) rotate(0.5deg);
    box-shadow: 
        8px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px #fff,
        inset 0 0 0 2px #888;
    z-index: 30;
}

@media (max-width: 1024px) {
    .timeline-title {
        font-size: 2.2rem;
    }
    .in-view {
        transform: unset !important;
    }
    .direction-l .desc, .direction-r .desc {
        margin: 1em auto 0;
        max-width: 520px
    }
    .breaking-event-container {
        max-width: 768px;
        padding: 2.5rem 2.5rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }
    .device-frame {
        border: 8px solid #ffffff;
        max-width: 520px;
        margin: 0 auto;
    }
    .direction-l .timeline-photos {
        padding: 0;
    }
    .direction-r .timeline-photos {
        padding: 0;
    }
    .breaking-content-wrapper {
        margin: 0 auto;
    }
    .breaking-content-wrapper h2 {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .intro-card {
        margin: 0;
    }
    .intro-text-container {
        display: flex; 
        min-width: unset; 
        justify-content: center;
    }
    .timeline-photos .photo-item {
        width: 70px;
        height: 70px;
        backdrop-filter: blur(0px);
    }
    .timeline .direction-l, .timeline .direction-r {
        padding-top: 110px;
    }
    .timeline-photos {
        justify-content: center !important;
    }
    .direction-l .timeline-photos {
        top: -0.5em;
        gap: 0.5em;
    }
    .direction-r .timeline-photos {
        top: -1.5em;
        gap: 0.5em;
    }
    .breaking-event-container {
        max-width: 768px;
        padding: 1.5rem 1.5rem;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .device-frame {
        border: 5px solid #ffffff;
        border-radius: 15px;
        max-width: 520px;
        margin: 0 auto;
    }
    .breaking-content-wrapper h2 {
        text-align: center;
    }
    .direction-l .desc, .direction-r .desc {
        margin: 1em auto 0;
        max-width: 520px
    }
}

@media (min-width: 768px) {
    .timeline {
        width: 712px;
        margin-top: 20px;
    }

    .timeline li:after {
        content: "";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
    
    .timeline .hexa {
        left: -28px;
        right: auto;
        top: 8px;
    }

    .timeline .direction-l .hexa {
        left: auto;
        right: -28px;
    }

    .direction-l {
        position: relative;
        width: 336px;
        float: left;
        text-align: right;
    }

    .direction-r {
        position: relative;
        width: 336px;
        float: right;
        text-align: left;
    }

    .flag-wrapper {
        display: inline-block;
    }
    
    .flag {
        font-size: 18px;
    }

    .direction-l .flag:after {
        left: auto;
        right: -16px;
        top: 50%;
        margin-top: -8px;
        border: solid transparent;
        border-left-color: rgb(254,254,254);
        border-width: 8px;
    }

    .direction-r .flag:after {
        top: 50%;
        margin-top: -8px;
        border: solid transparent;
        border-right-color: rgb(254,254,254);
        border-width: 8px;
        left: -8px;
    }

    .direction-l .timeline-photos {
        top: 0em;
        gap: 0.5em;
    }

    .direction-r .timeline-photos {
        gap: 0.5em;
    }

    .timeline-photos .photo-item {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .timeline {
        width: 920px;
    }

    .direction-l {
        position: relative;
        width: 440px;
        float: left;
        text-align: right;
    }

    .direction-r {
        position: relative;
        width: 440px;
        float: right;
        text-align: left;
    }

    .direction-l .timeline-photos {
        top: -1em;
        gap: 1em;
    }

    .direction-r .timeline-photos {
        gap: 1em;
    }

    .timeline-photos .photo-item {
        width: 90px;
        height: 90px;
    }
}

.bg-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.falling-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.viewer-open {
    padding-right: unset !important;
}