* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* 禁止选中文字 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow-x: hidden;
    background: #000000;
    position: relative;
    min-height: 100vh;
    width: 1920px;
    min-width: 1920px;
    max-width: 1920px;
}

/* 禁止图片拖拽 */
img {
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* 标题 */
.page-title {
    position: fixed;
    top: 20px;
    left: 40px;
    z-index: 10;
    pointer-events: none;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 600;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'STHeiti', 'Microsoft YaHei', Arial, sans-serif;
    color: #ffffff;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 6px;
    margin: 0;
    line-height: 1.3;
}

/* 时间轴容器 */
.timeline-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    z-index: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}


/* 隐藏滚动条 - Chrome/Safari */
.timeline-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-container {
    position: relative;
    width: 100%;
    min-width: max-content;
    padding: 0;
    overflow: visible;
}

/* 时间轴项目 */
.timeline-items {
    display: flex;
    position: relative;
    padding: 0;
}

.timeline-items::before {
    content: '';
    display: block;
    flex: 0 0 0px;
}

/* 右侧占位空间由 line1-data.js 中的隐藏占位卡片提供 */

/* 时间轴主线 */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0px;  /* 初始宽度为0 */
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%,           /* 左侧完全透明 */
        rgba(255,255,255,0) 15%,          /* 到15%位置仍然透明 */
        rgba(255,255,255,0.8) 20%,        /* 20%渐变出现 */
        rgba(255,255,255,0.8) 100%        /* 25%之后正常显示 */
    );
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    display: block !important;
    will-change: width;
    opacity: 0;  /* 初始完全透明 */
}

/* 时间轴箭头 */
.timeline-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid rgba(255,255,255,0.9);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    will-change: left, opacity;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)) 
            drop-shadow(0 0 15px rgba(74,158,255,0.6));
    animation: arrowBling 1.5s ease-in-out infinite;
}

/* 箭头周围的星星粒子效果 */
.timeline-arrow::before,
.timeline-arrow::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    left: -50px;
    top: -50px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(74,158,255,0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 70%, rgba(255,215,0,0.8) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(circle at 90% 60%, rgba(74,158,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(255,215,0,0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 40%, rgba(255,255,255,0.9) 1px, transparent 1px),
        radial-gradient(circle at 40% 15%, rgba(74,158,255,0.7) 1px, transparent 1px);
    background-size: 100% 100%;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
}

.timeline-arrow::after {
    animation: sparkle 2s ease-in-out infinite 1s;
}

/* 箭头闪烁动画 - 激光点燃效果 */
@keyframes arrowBling {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)) 
                drop-shadow(0 0 15px rgba(74,158,255,0.6))
                drop-shadow(0 0 20px rgba(255,215,0,0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255,255,255,1)) 
                drop-shadow(0 0 30px rgba(74,158,255,1))
                drop-shadow(0 0 40px rgba(255,215,0,0.8));
        transform: translateY(-50%) scale(1.1);
    }
}

/* 星星粒子冒泡动画 */
@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(360deg);
    }
}


.timeline-item {
    flex: 0 0 250px;
    margin: 0 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.timeline-item:first-child {
    margin-left: 835px;
}

/* 时间点 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 4px solid #4a9eff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px rgba(74, 158, 255, 1);
}

/* 年份标签 */
.year-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6), 0 0 15px rgba(255, 215, 0, 0.4);
    font-style: italic;
    white-space: nowrap;
    cursor: pointer;
}

.year-label sub {
    font-size: 20px;
}

.timeline-item.top .year-label {
    bottom: -60px;
}

.timeline-item.bottom .year-label {
    top: -60px;
}

/* 内容卡片 */
.timeline-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item.top .timeline-content {
    top: -230px;
}

.timeline-item.bottom .timeline-content {
    bottom: -230px;
}

.timeline-content:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* 连接线 */
.timeline-connector {
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.5);
    transform: translateX(-50%);
    border-left: 2px dashed rgba(255,255,255,0.6);
}

.timeline-item.top .timeline-connector {
    bottom: -10px;
    height: 70px;
}

.timeline-item.bottom .timeline-connector {
    top: -10px;
    height: 70px;
}

/* 卡片样式 */
.content-card {
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(135, 206, 250, 0.6);
    border-radius: 8px;
    padding: 8px;
    width: 180px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.content-card.highlight {
    border-color: #ffa500;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.5);
}

.content-card img {
    width: 100%;
    height: 101px;
    object-fit: cover;
    border-radius: 4px;
}

/* 描述文字在卡片外部 */
.timeline-item .description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding: 8px 4px;
    width: 180px;
    font-weight: 500;
}

/* 上方卡片的描述在卡片上面 */
.timeline-item.top .description {
    order: -1;
    margin-bottom: 10px;
}

/* 下方卡片的描述在卡片下面 */
.timeline-item.bottom .description {
    margin-top: 10px;
}

.content-card .description {
    display: none;
}

/* 模态框自定义样式 */
.modal-dialog {
    max-width: 598px;  /* 460 * 1.3 = 598px，放大30% */
    max-height: 85vh;
    margin: 1.75rem auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid rgba(135, 206, 250, 0.6);
    color: #ffffff;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* 模态框淡入动画 */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 模态框背景淡入 */
.modal.fade {
    transition: opacity 0.3s ease-out;
}

.modal-backdrop.fade {
    transition: opacity 0.3s ease-out;
}

.modal-backdrop.show {
    opacity: 0.7;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    padding: 10px 16px;
    min-height: auto;
}

.modal-title {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    overflow-y: auto;
    max-height: calc(85vh - 90px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.modal-body img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #000;
}

.modal-body p {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 15px;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 15px;
    position: relative;
}

.carousel-item img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 1;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-image: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(74, 158, 255, 0.8));
}

/* 轮播图指示器 */
.carousel-indicators {
    margin-bottom: 0;
    bottom: 30px;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin: 0 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    background-color: rgba(74, 158, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.8);
}

.carousel-page-indicator {
    display: none;
}

/* 返回按钮 */
.back-button {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
    pointer-events: auto;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button a:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.back-button i {
    font-size: 28px;
}

/* 暂停/播放按钮 */
.autoplay-control {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: auto;
}

.autoplay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(74, 158, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.autoplay-btn:hover {
    background: rgba(74, 158, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.8);
}

.autoplay-btn i {
    font-size: 24px;
}

.autoplay-btn.paused {
    background: rgba(255, 100, 100, 0.8);
}

.autoplay-btn.paused:hover {
    background: rgba(255, 100, 100, 1);
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.8);
}
