/* ========================================
   发展历程模块 - CSS (模块独立变量，避免冲突)
   参考: https://www.bjcmqg.com/about.html#main8
   所有变量以 --hist- 为前缀，作用域限定在 .a3 内
   ======================================== */

/* --- 模块变量（作用域限定在 .a3 内） --- */
.a3 {
    --hist-color-theme: #c9b293;
    --hist-color-text: rgb(52, 44, 44);
    --hist-font-body: "HarmonyOS Sans SC", sans-serif, -apple-system, system-ui;
    --hist-font-year: "Swiss721BT", sans-serif;
    --hist-px: 2.6041666667vw;

    --hist-btn-size: 34px;
    --hist-btn-radius: 3px;
    --hist-btn-color: #312f30;
    --hist-btn-bg: #d2d2d2;
    --hist-btn-border-color: currentColor;
    --hist-btn-hover-color: #fff;
    --hist-btn-hover-bg: var(--hist-color-theme);
    --hist-btn-hover-border-color: transparent;
}

@media screen and (max-width: 768px) {
    .a3 {
        --hist-px: 10px;
    }
}

/* ========================================
   Section 容器
   ======================================== */
.a3 {
    position: relative;
    overflow: hidden;
    padding: 0 calc(var(--hist-px) * 2);
    font-family: var(--hist-font-body);
    color: var(--hist-color-text);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

@media screen and (min-width: 769px) {
    .a3 {
        display: flex;
    }
}

/* ========================================
   左侧面板
   ======================================== */
.a3 .hist-left,
.a3 .hist-right {
    position: relative;
}

.a3 .hist-left {
    padding: clamp(58px, 7.55208vw, 145px) 0 clamp(84px, 10.9375vw, 210px);
    flex: 1 1 0%;
}

@media screen and (max-width: 768px) {
    .a3 .hist-left {
        padding-bottom: 0;
    }
}

/* --- 标题区 --- */
.a3 .hist-heading {
    font-size: clamp(1.75rem, 1.41667rem + 0.694444vw, 2.25rem);
    line-height: 1;
    font-weight: inherit;
    margin: 0;
}

.a3 .hist-subtitle {
    margin-top: 10px;
    font-weight: 300;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ========================================
   年份内容列表
   ======================================== */
.a3 .hist-contents {
    padding-top: clamp(16px, 2.08333vw, 40px);
    margin: 0 auto;
    max-width: max-content;
}

@media screen and (max-width: 768px) {
    .a3 .hist-contents {
        width: 100%;
        margin: 0;
        max-width: unset;
    }
}

/* --- 单个内容项 --- */
.a3 .hist-item {
    display: flex;
}

.a3 .hist-item:not(.on) {
    display: none;
}

@media screen and (max-width: 768px) {
    .a3 .hist-item {
        flex-direction: column-reverse;
    }
}

/* --- 图片区 --- */
.a3 .hist-imgbox {
    z-index: 1;
    position: relative;
    width: clamp(320px, 41.6667vw, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@supports (aspect-ratio: 1.6) {
    .a3 .hist-imgbox {
        aspect-ratio: 1.6 / 1;
    }
}

@supports not (aspect-ratio: 1.6) {
    .a3 .hist-imgbox::before {
        content: "";
        display: block;
        padding-bottom: 62.5%;
    }
}

.a3 .hist-imgbox > img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1s;
}

.a3 .hist-imgbox:hover > img {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .a3 .hist-imgbox {
        width: 100%;
        margin-top: 20px;
    }
}

/* --- 年份数字 --- */
.a3 .hist-year {
    font-size: clamp(64px, 20vw, 120px);
    line-height: 0.8;
    display: flex;
    overflow: hidden;
}
.a3 .hist-year.sm {
    font-size: clamp(10px, 3vw, 120px);
}



@media screen and (min-width: 769px) {
    .a3 .hist-year {
        font-size: clamp(94.4px,9vw, 236px);
    }
}

.a3 .hist-year-digit {
    display: inline-block;
}

@media screen and (min-width: 769px) {
    .a3 .hist-year {
        transform: translate(
                clamp(-130px, -6.77083vw, -52px),
                clamp(-80px, -4.16667vw, -32px)
        );
    }
    .a3 .hist-year.sm {
        transform: translate(
                clamp(-130px, 2.22917vw, -52px),
                clamp(-78px, 2.83333vw, -31px)
        );
    }
}

@media screen and (max-width: 768px) {
    .a3 .hist-year {
        margin-bottom: 20px;
    }
}

/* --- 文字内容 --- */
@media screen and (min-width: 769px) {
    .a3 .hist-con {
        padding-left: clamp(24px, 3.125vw, 60px);
        width: clamp(200px, 26.0417vw, 500px);
        flex: 1 1 0%;
    }
}

.a3 .hist-con h3 {
    font-size: clamp(1.25rem, 0.833333rem + 0.868056vw, 1.875rem);
    font-weight: bold;
    margin: 0 0 clamp(0.625rem, 0.416667rem + 0.434028vw, 0.9375rem);
}

.a3 .hist-con pre {
    font-family: inherit;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ========================================
   右侧面板 - 年份 Swiper
   ======================================== */
.a3 .hist-right {
    margin-left: auto;
    overflow: hidden;
    position: relative;
    padding-top: clamp(84px, 10.9375vw, 210px);
}

@media screen and (max-width: 768px) {
    .a3 .hist-right {
        padding-top: 20px;
        padding-bottom: 60px;
        overflow: visible;
    }
}

/* --- 竖线时间轴 --- */
.a3 .hist-right::before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    position: absolute;
    left: 8px;
    top: 0;
    background: rgb(168, 158, 131);
}

@media screen and (max-width: 768px) {
    .a3 .hist-right::before {
        width: 100%;
        height: 1px;
        left: 0;
        top: 8px;
    }
}

/* --- Swiper 容器 --- */
.a3 .swiper {
    width: 100%;
}

@media screen and (min-width: 769px) {
    .a3 .swiper {
        height: clamp(180px, 23.4375vw, 450px);
    }
}

@media screen and (max-width: 768px) {
    .a3 .swiper {
        height: auto;
    }
}

/* --- 年份 Slide --- */
.a3 .swiper-slide {
    height: max-content;
    position: relative;
    padding-left: clamp(1.25rem, 0.416667rem + 1.73611vw, 2.5rem);
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .a3 .swiper-slide {
        width: max-content;
        height: auto;
        padding-left: 0;
        padding-top: clamp(1.25rem, 3vw, 1.8rem);
    }
}

.a3 .swiper-slide.on {
    font-weight: bold;
}

/* --- 时间线标记点 --- */
.a3 .swiper-slide::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hist-color-theme);
    transition: transform 0.3s ease;
}

.a3 .swiper-slide.on::before {
    transform: translateY(-50%) scale(1);
}

@media screen and (max-width: 768px) {
    .a3 .swiper-slide::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%) scale(0);
    }

    .a3 .swiper-slide.on::before {
        transform: translateX(-50%) scale(1);
    }
}

/* ========================================
   导航按钮
   ======================================== */
.a3 .hist-nav {
    display: flex;
    
    gap: 8px;
    flex-direction: column;
    align-items: self-start;
    padding-left: 33px;
    margin-top: clamp(0.625rem, 0.208333rem + 0.868056vw, 1.25rem);
}

@media screen and (max-width: 768px) {
    .a3 .hist-nav {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* --- 按钮 --- */
.a3 .hist-btn {
    transition: 0.4s;
    line-height: var(--hist-btn-size);
    color: var(--hist-btn-color);
    border: 1px solid var(--hist-btn-border-color);
    font-size: max(1em, calc(var(--hist-btn-size) / 2.6));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hist-btn-radius);
    min-width: var(--hist-btn-size);
    min-height: var(--hist-btn-size);
    background: var(--hist-btn-bg);
    cursor: pointer;
    user-select: none;
}

.a3 .hist-btn.swiper-button-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.a3 .hist-btn:hover:not(.swiper-button-disabled) {
    background: var(--hist-btn-hover-bg);
    color: var(--hist-btn-hover-color);
    border-color: var(--hist-btn-hover-border-color);
}

/* --- 箭头 --- */
.a3 .hist-arrow-up,
.a3 .hist-arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.a3 .hist-arrow-up {
    border-bottom: 8px solid currentColor;
}

.a3 .hist-arrow-down {
    border-top: 8px solid currentColor;
}

/* 移动端箭头旋转为左右方向 */
@media screen and (max-width: 768px) {
    .a3 .hist-arrow-up {
        transform: rotate(-90deg);
    }

    .a3 .hist-arrow-down {
        transform: rotate(-90deg);
    }
}
/* 关键帧：背景位置从左移到右 */
@keyframes moveBg {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}