@charset "utf-8";

/* ======= 通用背景渐变样式 ======= */
.dsk-not-supported, .dsk-supported {
    background: linear-gradient(135deg, #cebe29 0, #9b1f50 33%, #2989d8 71%, #89b4ff 91%);
    background-size: 100% 100%;
}

/* ======= PC端不支持样式 ======= */
.dsk-not-supported {
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);
    padding: 1px 0;
}

.dsk-not-supported .step {
    width: 800px;
    margin: 20px auto;
    background: rgba(0, 0, 0, .2);
    padding: 20px;
    border-radius: 5px;
}

.dsk-not-supported .year {
    background: none;
    padding: 0;
}

.dsk-not-supported .dsk-titlenode {
    width: 100px;
    background: #09C;
    text-align: center;
    font-size: 24px;
    height: 36px;
    line-height: 36px;
    margin-left: -20px;
    border-radius: 5px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
    margin-bottom: 10px;
}

.dsk-not-supported .dsk-info {
    padding-bottom: 20px;
}

.dsk-not-supported .dsk-info h2 {
    display: none;
}

.dsk-not-supported .dsk-link {
    margin-top: 15px;
    text-decoration: none;
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 1px rgba(255, 255, 255, 0.15) inset;
    border: 0;
    padding: 6px 10px;
    border-radius: 3px;
    display: inline-block;
    color: #fff;
    font-size: 14px;
}

.dsk-not-supported .dsk-circle {
    font-size: 36px;
    color: rgba(255, 255, 255, .8);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
}

.dsk-not-supported .dsk-circle-title {
    font-size: 24px;
    margin: 20px 0 15px 0;
}

/* ======= 主时间轴样式 ======= */
.dsk-supported {
    position: relative;
    width: 100%;
    min-width: 100px;
    margin: 0 auto;
    height: 550px;
    overflow: visible;
    perspective: 1000px;
    transform: translateY(0);
    pointer-events: auto; /* 确保整个区域都能响应鼠标事件 */
}

.dsk-supported .dsk-linewrapper {
    height: 5px;
    bottom: 20%;
    width: 100%;
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 1px rgba(255, 255, 255, 0.15) inset;
    position: absolute;
    bottom: 20%;
    color: #fff;
    pointer-events: none; /* 防止线条干扰鼠标事件 */
}

.dsk-supported .dsk-wrapper {
    outline: 0;
    overflow: visible !important;
    pointer-events: auto; /* 确保内容区域能响应鼠标事件 */
}

.dsk-supported .dsk-circle {
    user-select: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 1);
    background: #0056b3;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, .1);
    transition: all 0.5s ease-in;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsk-supported .active .dsk-circle {
    background: #007bff;
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsk-supported .dsk-titlenode {
    font-size: 88px;
    margin-top: -88px;
    cursor: pointer;
    transition: all 1s ease-in 0.5s;
}

.dsk-supported .active .dsk-titlenode {
    margin-top: -140px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .2);
}

.dsk-supported .step {
    width: 600px;
    position: relative;
    margin-bottom: 40px;
}

.dsk-supported .step.active,
.dsk-supported .step.passed {
    opacity: 1;
}

/* ======= 内容展示区域 ======= */
.dsk-supported .dsk-content {
    position: absolute;
    font-size: 16px;
    top: -280px;
    height: 300px;
    width: 800px;
    left: -10px;
    display: none;  
    pointer-events: none; 
}

/* 显示内容时只使用display: block */
.dsk-supported .step.active .dsk-content,
.dsk-supported .step.passed .dsk-content {
    display: block;
}

.dsk-supported .dsk-content > img {
    max-width: 256px;
    max-height: 300px;
    position: absolute;
    right: 0;
    top: 0;
}

/* ======= 内容内部信息 ======= */
.dsk-supported .dsk-info {
    width: 450px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .2);
}

.dsk-supported .dsk-info h2 {
    margin: 0 0 20px 0;
    font-weight: normal;
    font-size: 30px;
}

.dsk-supported .dsk-info p {
    line-height: 1.8em;
    font-size: 15px;
    margin: 0;
}

.dsk-supported .dsk-link {
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 1px rgba(255, 255, 255, 0.15) inset;
    border: 0;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 3px;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-in-out;
}

.dsk-supported .step.active .dsk-link {
    opacity: 1;
    transform: translateY(0);
}

/* ======= 时间节点文字 ======= */
.dsk-supported .dsk-circle-title {
    font-size: 12px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);
    width: 100px;
    text-align: center;
    transform: rotate(-45deg);
    position: absolute;
    top: 70px;
    left: -84px;
    line-height: 1.2em;
    transition: all 0.6s ease-in-out 0.5s;
    z-index: 1;
}

.dsk-supported .step.active .dsk-circle-title {
    width: 300px;
    transform: rotate(0deg);
    left: -118px;
    top: 0;
    font-size: 16px;
    font-weight: normal;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

/* ======= 年份标题 ======= */
.dsk-supported .dsk-year-info {
    font-size: 24px;
    padding: 10px;
}

/* ======= 历史节点（已过）样式 ======= */
.dsk-supported .step.passed .dsk-circle {
    background: #0056b3; /* 更改为深蓝色，与普通状态保持一致 */
    transition: all 0.5s ease-in-out;
    display: flex; /* 确保已过状态也使用flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.dsk-supported .step.passed .dsk-circle-title {
    color: #ccc;
    transition: all 0.5s ease-in-out;
}

/* ======= 全屏容器适配 ======= */
.dsk-fullscreen {
    width: 100%;
    height: 100%;
}

/* ======= 小屏适配 ======= */
@media screen and (max-width: 650px) {
    .dsk-supported {
        height: 400px;
        width: 100%;
        overflow-x: hidden; /* 防止水平滚动 */
    }
    
    .dsk-supported .step {
        width: 100%; /* 改为100%宽度 */
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .dsk-supported .dsk-content {
        width: 100%; /* 改为100%宽度 */
        max-width: 100%;
        left: 0;
        top: -200px;
        height: 200px;
    }
    
    .dsk-supported .dsk-info {
        width: 100%; /* 改为100%宽度 */
        max-width: 100%;
        padding: 0 10px;
    }
    
    .dsk-supported .dsk-info h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .dsk-supported .dsk-info p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .dsk-supported .dsk-circle {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 10px;
    }
    
    .dsk-supported .active .dsk-circle {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 12px;
    }
    
    .dsk-supported .dsk-circle-title {
        font-size: 10px;
        width: 80px;
        left: -60px;
        top: 50px;
    }
    
    .dsk-supported .step.active .dsk-circle-title {
        width: 200px;
        left: -90px;
        font-size: 12px;
    }
}

/* ======= 超小屏适配 ======= */
@media screen and (max-width: 480px) {
    .dsk-supported {
        height: 350px;
    }
    
    .dsk-supported .dsk-content {
        top: -150px;
        height: 150px;
    }
    
    .dsk-supported .dsk-info h2 {
        font-size: 16px;
    }
    
    .dsk-supported .dsk-info p {
        font-size: 12px;
    }
    
    .dsk-supported .dsk-circle {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 8px;
    }
    
    .dsk-supported .active .dsk-circle {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 10px;
    }
    
    .dsk-supported .dsk-circle-title {
        font-size: 8px;
        width: 60px;
        left: -45px;
    }
    
    .dsk-supported .step.active .dsk-circle-title {
        width: 150px;
        left: -70px;
        font-size: 10px;
    }
}

/* ======= 页面结构基础 ======= */
html, body {
    margin: 0;
    padding: 0;
}

#dasky {
    font-family: 'Droid Sans', sans-serif;
    position: relative;
    height: 100%;
    pointer-events: auto;
}

/* ======= 导航按钮 ======= */
.dsk-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.dsk-pre, .dsk-next, .dsk-autoplay {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    color: #333;
    transition: all 0.3s ease;
}

.dsk-pre:hover, .dsk-next:hover, .dsk-autoplay:hover {
    background: rgba(255, 255, 255, 1);
    color: #0056b3;
}

.dsk-pre:before {
    content: "\f104";  /* Font Awesome 左箭头 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dsk-next:before {
    content: "\f105";  /* Font Awesome 右箭头 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dsk-autoplay:before {
    content: "\f04b";  /* Font Awesome 播放图标 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.dsk-autoplay.playing:before {
    content: "\f04c";  /* Font Awesome 暂停图标 */
}

/* ======= 滚动条样式 ======= */
.dsk-supported::-webkit-scrollbar {
    width: 8px;
}
.dsk-supported::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
.dsk-supported::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.dsk-supported::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 确保时间轴区域能够正确响应鼠标事件 */
.timeline-section {
    position: relative;
    height: 550px;
    overflow: visible;
    pointer-events: auto;
}
