* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- 背景容器：100%宽度，背景图铺满 ---- */
.year-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    background: #0a0e1a;
    overflow: visible;
}

/* ---- 背景图：宽度100%，左右铺满 ---- */
.year-slider-bg {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    cursor: pointer;
}

/* ---- 年份条容器：绝对定位覆盖背景，限定1200px居中 ---- */
.year-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    pointer-events: none;
}

.year-slider-track {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    pointer-events: none;
    overflow: visible;
    padding: 0 0px;
}

/* ---- 年份条：默认上下各留5px，活动在1200内 ---- */
.year-bar {
    position: absolute;
    top: 5px;
    width: 86px;
    height: 490px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s ease;
    user-select: none;
    box-sizing: border-box;
}

/* ---- 激活状态：上下各凸出5px ---- */
.year-bar.is-active {
    background: #0040b3;
    height: 510px;
    top: -5px;
    z-index: 10;
}

.year-bar.is-active::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.year-bar-text {
    font-size: 28px;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}

/* ---- 配置占位隐藏 ---- */
.year-config {
    display: none;
}