/* 版本迭代页（版本1） */

.version-page {
    background: #f5f6f8;
}

/* 头部与 help 共用背景图 */
.version-hero {
    height: 260px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-hero--bg {
    background: url("/static/images/help/top_bg.png") center / cover no-repeat;
}

.version-hero__inner {
    text-align: center;
}

.version-hero__inner h1 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.version-hero__count {
    font-size: 14px;
}

.version-hero__count .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff5a00;
    border-radius: 4px;
    font-weight: 700;
}

.version-wrap {
    padding: 0 0 70px;
}

/* 顶部产品切换条（占位，icon后续补） */
.version-tabs {
    margin-top: -34px;
    background: #fff;
    height: 68px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.version-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

.version-tab__icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    /*background: #f2f2f2;*/
}

.version-tab__icon img{
    width: 100%;
    height: 100%;
}

.version-tab.active {
    background: #FFF6F2;
    color: #ff5a00;
    font-weight: 700;
}

.version-tab.active .version-tab__icon {
    background: rgba(255, 122, 0, 0.18);
}

/* 时间轴（对齐设计稿：左侧日期 + 星标 + 竖线，右侧卡片） */
.version-timeline {
    margin-top: 30px;
    position: relative;
    padding-left: 210px; /* 预留给日期(120) + 间距(20) + 星标(44) + 间距(26) */
}

.version-timeline:before {
    content: "";
    position: absolute;
    left: 184px; /* 星标中心对齐竖线：date(120)+gap(20)+44/2=162；再加一点视觉偏移 */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ededed;
}

.version-item {
    position: relative;
    margin-bottom: 22px;
}

/* 日期：左侧橙色胶囊 */
.version-date {
    position: absolute;
    left: -230px;
    top: 3px;
    width: 160px;
    text-align: right;
}

.version-date .pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    background: #ff5a00;
    color: #fff;
    font-size: 18px;
    position: relative;
}

/* 日期胶囊右侧小三角 */
.version-date .pill:after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #ff5a00;
}

/* 星标（暂时先用圆点占位，后续你补 icon 我再替换成图片） */
.version-dot {
    position: absolute;
    left: -5px; /* 120 + 20 + 22 */
    transform: translateX(-100%);
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: url("/static/images/version/start-icon.png") no-repeat 100%/100%;
    box-shadow: 0 6px 16px rgba(255, 90, 0, 0.28);
}

/* 版本号：在日期右侧（不再压到卡片里） */
.version-ver {
    position: absolute;
    left: 130px; /* 日期右侧一点 */
    top: 10px;
    width: 40px;
    text-align: left;
    font-weight: 700;
    color: #ff5a00;
    font-size: 16px;
}

.version-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 18px 22px;
    position: relative;
}


.version-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.version-card__title {
    color: #ff5a00;
    font-size: 20px;
    font-weight: 700;
}

.version-card__toggle {
    color: #999;
    font-size: 18px;
    line-height: 1;
}
.version-card__toggle img{
    width: 16px;
    height: 16px;
    transition: all .3s;
    transform: rotate(-180deg);
}

.version-card__body {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
.version-card.is-collapsed .version-card__toggle img{
    transform: rotate(0deg);
}
.version-card.is-collapsed .version-card__body {
    display: none;
}

@media (max-width: 1200px) {
    .version-timeline {
        padding-left: 20px;
    }

    .version-timeline:before {
        left: 10px;
    }

    .version-date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 8px;
    }

    .version-dot {
        left: 0;
        top: 52px;
        width: 44px;
        height: 44px;
        box-shadow: none;
    }

    .version-ver {
        position: static;
        width: auto;
        margin: 6px 0 0;
    }
}

