.dotstyle {
    --main-color: #616161;
    --selected-color: #a70000;

    margin: 0;
    padding: 0;

    display: block;

    /*由上往下跑*/
    pointer-events: none;

    font-size: 0px;
    line-height: unset !important;
}

.dotstyle::before{
    content: "";
    position: absolute;
    z-index: -1;
    top: 5px;
    bottom: 5px;
    transform: translate(-50%, 0);
    left: 50%;
    width: 1.5px;
    background-color: var(--main-color);
}

.dotstyle .dotList {
    position: relative;

    margin: 0;
    padding: 0;
    list-style: none;
    cursor: default;
    width: 16px;

    font-size: 0px;
    line-height: unset !important;
}

.dotstyle,
.dotstyle .dotList {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*up down button*/

.dotstyle .switchBtn {
    margin: 0;
    --extra-margin: 25.5px;
    pointer-events: auto;
    cursor: pointer;
}

.dotstyle .switchBtn.up {
    margin-bottom: var(--extra-margin);
}

.dotstyle .switchBtn.down {
    margin-top: var(--extra-margin);
}

/*dots*/

.dotstyle .dotList .dot {
    position: relative;
    display: block;
    margin: 13.5px 0;
    width: 8px;
    height: 8px;
    cursor: pointer;

    box-shadow: inset 0 0 0 1px var(--main-color);
    border-radius: 50%;
    background-color: #fff;

    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.dotstyle .dotList .dot.active {
    box-shadow: inset 0 0 0 1px var(--selected-color);
    background-color: var(--selected-color);
    width: 16px;
    height: 16px;
}

.dotstyle .dotList .dot .yearText {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;

    z-index: -1;
    transform: translate(0, -50%);
    right: 100%;
    top: 50%;

    font-size: 1.15rem;
    line-height: unset;
    color: var(--main-color);

    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.dotstyle .dotList .dot .yearText::after {
    content: "";
    height: 3px;
    width: 0px;
    background-color: var(--main-color);
    margin-left: 20px;

    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.dotstyle .dotList .dot.active .yearText {
    font-size: 1.35rem;
    color: var(--selected-color);
}

.dotstyle .dotList .dot.active .yearText::after {
    width: 13px;
    background-color: var(--selected-color);
    margin-left: 7px;
}

.dotstyle .dotList .dot.hide {
    display: none;
}