/**
 * Swiper History 风格2 样式
 * 
 * 全屏滑动布局，每个年份占据整个视口
 * 参考设计：深色背景 + 左侧年份 + 中间内容 + 右侧背景图
 * 
 * @package SuopuChild
 * @since 2.0.0
 */

/* ========================================
   风格2 - 容器基础样式
   ======================================== */

.suopu-swiper-history-style2 {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.suopu-swiper-history-style2 .history-swiper {
    width: 100%;
    height: 100vh;
}

/* ========================================
   Slide 基础样式
   ======================================== */

.suopu-swiper-history-style2 .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
}

/* ========================================
   内容区域样式
   根据设计图：左侧年份导航 + 中间大年份 + 右侧标题内容 + 背景图
   ======================================== */

.suopu-swiper-history-style2 .content-text {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    /* 左侧留出空间给 toc-years 年份导航 */
    padding: 15vh 5vw 10vh 200px;
    box-sizing: border-box;
}

/* 隐藏 slide 内部的年份显示（改用外部的 toc-years） */
.suopu-swiper-history-style2 .year-display {
    display: none;
}

.suopu-swiper-history-style2 .year-text {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -2px;
}

/* 正常内容区域 - 向右偏移，为左侧年份导航留出空间 */
.suopu-swiper-history-style2 .normal-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding-top: 0;
    padding-left: 280px;
    margin-left: 40px;
}

/* 年份标题 - 金色大标题 H2 */
.suopu-swiper-history-style2 .year-title {
    font-size: 36px;
    font-weight: 600;
    color: #d4a853;
    margin: 0 0 30px 0;
    padding: 0;
    line-height: 1.3;
}

/* 事件标题 - H3 样式 */
.suopu-swiper-history-style2 .event-title {
    font-size: 36px;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 30px 0;
    padding: 0;
    line-height: 1.4;
}

/* 事件描述区域 */
.suopu-swiper-history-style2 .event-description {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 事件内容区域 */
.suopu-swiper-history-style2 .swiper-no-swiping {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
}

.suopu-swiper-history-style2 .event-item {
    margin-bottom: 25px;
    padding-left: 0;
}

.suopu-swiper-history-style2 .event-item p {
    margin: 0 0 25px 0;
    color: #fff;
}

.suopu-swiper-history-style2 .event-item a {
    color: #d4a853;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.suopu-swiper-history-style2 .event-item a:hover {
    color: #f0c878;
}

/* ========================================
   导航按钮样式
   ======================================== */

.suopu-swiper-history-style2 .swiper-button-prev,
.suopu-swiper-history-style2 .swiper-button-next {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 50px;
    height: 50px;
}

.suopu-swiper-history-style2 .swiper-button-prev:hover,
.suopu-swiper-history-style2 .swiper-button-next:hover {
    opacity: 1;
}

.suopu-swiper-history-style2 .swiper-button-prev::after,
.suopu-swiper-history-style2 .swiper-button-next::after {
    font-size: 24px;
}

.suopu-swiper-history-style2 .swiper-button-prev {
    left: 30px;
}

.suopu-swiper-history-style2 .swiper-button-next {
    right: 30px;
}

/* ========================================
   左侧年份导航 - 渐变透明度效果
   根据设计图：垂直排列，当前年份放大高亮
   ======================================== */

/* 时间轴容器 - 左侧垂直排列，居中显示 */
.suopu-swiper-history-style2 .toc-years {
    position: absolute;
    left: 60px;
    top: 15%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 20;width: 280px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 年份项 - 非激活状态 */
.suopu-swiper-history-style2 .toc-year {
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.5;
    height: auto;
    min-height: 28px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    padding: 2px 0;
}

/* 激活状态 - 放大高亮，白色粗体 */
.suopu-swiper-history-style2 .toc-year.active {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    height: auto;
    min-height: auto;
    margin: 15px 0;
    padding: 0;
}

/* 悬停效果 - 金色高亮 */
.suopu-swiper-history-style2 .toc-year:hover {
    color: #fff;
}

/* 悬停时激活的年份保持白色 */
.suopu-swiper-history-style2 .toc-year.active:hover {
    color: #ffffff;
}

/* 兼容旧的 timeline 类名 */
.suopu-swiper-history-style2 .history-timeline-nav {
    display: none;
}

/* ========================================
   响应式设计 - 平板端
   ======================================== */

@media screen and (max-width: 1024px) {
    .suopu-swiper-history-style2 .year-display {
        width: 150px;
        padding-right: 30px;
    }

    .suopu-swiper-history-style2 .year-text {
        font-size: 48px;
    }

    .suopu-swiper-history-style2 .year-title {
        font-size: 28px;
    }

    /* 平板端内容区域调整 */
    .suopu-swiper-history-style2 .normal-content {
        max-width: 55%;
        padding-left: 40px;
        margin-left: 20px;
    }

    .suopu-swiper-history-style2 .swiper-no-swiping {
        font-size: 15px;
    }

    /* 平板端年份导航调整 */
    .suopu-swiper-history-style2 .toc-years {
        left: 30px;
    }

    .suopu-swiper-history-style2 .toc-year {
        font-size: 14px;
        min-height: 24px;
    }

    .suopu-swiper-history-style2 .toc-year.active {
        font-size: 48px;
        margin: 10px 0;
    }
}

/* ========================================
   响应式设计 - 移动端
   ======================================== */

@media screen and (max-width: 768px) {
    .suopu-swiper-history-style2 .content-text {
        flex-direction: column;
        /* 移动端移除左侧边距 */
        padding: 80px 20px 120px 20px;
    }

    .suopu-swiper-history-style2 .year-display {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .suopu-swiper-history-style2 .year-text {
        font-size: 42px;
    }

    /* 移动端内容区域全宽显示 */
    .suopu-swiper-history-style2 .normal-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .suopu-swiper-history-style2 .year-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .suopu-swiper-history-style2 .event-title {
        font-size: 16px;
    }

    .suopu-swiper-history-style2 .swiper-no-swiping {
        font-size: 14px;
        line-height: 1.7;
    }

    .suopu-swiper-history-style2 .swiper-button-prev,
    .suopu-swiper-history-style2 .swiper-button-next {
        display: none;
    }

    /* 移动端年份导航 - 底部水平滚动布局 */
    .suopu-swiper-history-style2 .toc-years {
        position: absolute;
        left: 0;
        right: 0;
        top: auto;
        bottom: 30px;
        transform: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .suopu-swiper-history-style2 .toc-year {
        font-size: 14px;
        line-height: normal;
        height: auto;
        min-height: auto;
        flex-shrink: 0;
    }

    .suopu-swiper-history-style2 .toc-year.active {
        font-size: 18px;
        margin: 0;
        color: #d4a853;
    }
}

/* ========================================
   响应式设计 - 小屏移动端
   ======================================== */

@media screen and (max-width: 480px) {
    .suopu-swiper-history-style2 .content-text {
        padding: 60px 15px 80px;
    }

    .suopu-swiper-history-style2 .year-text {
        font-size: 36px;
    }

    .suopu-swiper-history-style2 .year-title {
        font-size: 20px;
    }

    .suopu-swiper-history-style2 .swiper-no-swiping {
        font-size: 13px;
    }

    .suopu-swiper-history-style2 .event-item {
        margin-bottom: 15px;
    }
}

/* ========================================
   无背景图时的默认样式
   ======================================== */

.suopu-swiper-history-style2 .swiper-slide:not(.has-bg) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* ========================================
   动画效果
   ======================================== */

.suopu-swiper-history-style2 .content-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.suopu-swiper-history-style2 .swiper-slide-active .content-text {
    opacity: 1;
    transform: translateX(0);
}

/* 年份标题进入动画 */
.suopu-swiper-history-style2 .year-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.suopu-swiper-history-style2 .swiper-slide-active .year-title {
    opacity: 1;
    transform: translateY(0);
}

/* 事件内容进入动画 */
.suopu-swiper-history-style2 .swiper-no-swiping {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.suopu-swiper-history-style2 .swiper-slide-active .swiper-no-swiping {
    opacity: 1;
    transform: translateY(0);
}

