/* ============================================
   页面基础布局
   ============================================ */

/* 发展历程页面主容器 */
.history-w {
    width: 100%;
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* 页面标题区域 */
.history-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.history-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-header-subtitle {
    font-size: 16px;
    color: #666666;
    letter-spacing: 1px;
}

/* 装饰线 */
.history-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fa6c24, #dd582e);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ============================================
   Swiper 轮播容器样式 #fa6c24
   ============================================ */

/* Swiper 主容器 */
.history-w .swiper-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    position: relative;
    overflow: visible;
}

/* Swiper 滑动区域 */
.history-w .swiper-wrapper {
    align-items: flex-start;
    padding: 40px 0 20px;
}

/* 单个时间轴卡片 */
.history-w .swiper-slide {
    width: 240px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.5s ease;
    opacity: 0.4;
    transform: scale(0.85);
    filter: grayscale(30%);
}

/* 激活状态的卡片 */
.history-w .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
    z-index: 10;
}

/* 相邻卡片样式 */
.history-w .swiper-slide-prev,
.history-w .swiper-slide-next {
    opacity: 0.6;
    transform: scale(0.9);
    filter: grayscale(20%);
    z-index: 5;
}

/* ============================================
   时间轴项目内容样式
   ============================================ */

/* 时间轴项目容器 */
.history-item-content {
    width: 100%;
    max-width: 240px;
    min-height: 230px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 40px;
}

/* 激活状态卡片内容 */
.history-w .swiper-slide-active .history-item-content {
    box-shadow: 0 8px 40px rgba(250, 108, 36, 0.2);
    border-color: #fa6c24;
}

/* 时间轴节点圆点 - 空心圆环 */
.history-item-content .history-node {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    /* border: 3px solid #fa6c24; */
    border: 3px solid #999;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(250, 108, 36, 0.2);
    transition: all 0.3s ease;
}

/* 激活状态的节点 - 填充颜色 */
.history-w .swiper-slide-active .history-node {
    background: #dd582e;
    border-color: #dd582e;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(221, 88, 46, 0.4);
}

/* 相邻卡片节点 */
.history-w .swiper-slide-prev .history-node,
.history-w .swiper-slide-next .history-node {
    border-color: #999999;
    background: #ffffff;
}

/* 连接线 */
.history-item-content .history-line {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(250, 108, 36, 0.3));
    z-index: 1;
}

/* 相邻卡片连接线 */
.history-w .swiper-slide-prev .history-line,
.history-w .swiper-slide-next .history-line {
    background: linear-gradient(180deg, transparent, rgba(153, 153, 153, 0.3));
}

/* 年份/标题 */
.history-item-title {
    font-size: 35px;
    font-weight: 700;
    /* color: #fa6c24; */
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* 相邻卡片标题 */
.history-w .swiper-slide-prev .history-item-title,
.history-w .swiper-slide-next .history-item-title {
    color: #666666;
}

/* 激活状态标题 */
.history-w .swiper-slide-active .history-item-title {
    color: #dd582e;
}

/* 发展历程内容 */
.history-item-licheng {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    text-align: left;
}

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

/* 导航按钮基础样式 */
.history-w .swiper-button-prev,
.history-w .swiper-button-next {
    width: 30px;
    height: 30px;
    background: #ffffff;
    border: 2px solid #fa6c24;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(221, 88, 46, 0.2);
    transition: all 0.3s ease;
    top: 91%;
    margin-top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航按钮图标 - 使用Font Awesome箭头 */
.history-w .swiper-button-prev::after,
.history-w .swiper-button-next::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #dd582e;
    transition: all 0.3s ease;
    position: static;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左箭头图标 */
.history-w .swiper-button-prev::after {
    content: '\f060';
}

/* 右箭头图标 */
.history-w .swiper-button-next::after {
    content: '\f061';
}

/* 左按钮位置 */
.history-w .swiper-button-prev {
    left: 30%;
}

/* 右按钮位置 */
.history-w .swiper-button-next {
    right: 30%;
}

/* 导航按钮悬停效果 */
.history-w .swiper-button-prev:hover,
.history-w .swiper-button-next:hover {
    background: #dd582e;
    border-color: #dd582e;
    box-shadow: 0 6px 20px rgba(221, 88, 46, 0.4);
    transform: scale(1.1);
}

.history-w .swiper-button-prev:hover::after,
.history-w .swiper-button-next:hover::after {
    color: #ffffff;
}

/* 导航按钮禁用状态 */
.history-w .swiper-button-prev.swiper-button-disabled,
.history-w .swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #cccccc;
}

.history-w .swiper-button-prev.swiper-button-disabled::after,
.history-w .swiper-button-next.swiper-button-disabled::after {
    color: #cccccc;
}

/* ============================================
   Swiper 滚动条样式
   ============================================ */

/* 滚动条容器 */
.history-w .swiper-scrollbar {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 12px;
    background: #e8e8e8;
    border-radius: 10px;
}

/* 滚动条拖动块 */
.history-w .swiper-scrollbar-drag {
    background: linear-gradient(90deg, #fa6c24, #dd582e);
    border-radius: 10px;
    cursor: grab;
    transition: background 0.3s ease;
}

.history-w .swiper-scrollbar-drag:hover {
    background: linear-gradient(90deg, #0046b0, #c44a26);
}

.history-w .swiper-scrollbar-drag:active {
    cursor: grabbing;
}

/* ============================================
   时间轴背景装饰
   ============================================ */

/* 主时间轴线 */
.history-w::before {
    content: '';
    position: absolute;
    top: 165px;
    left: 0;
    right: 0;
    height: 0px;
    /* background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 87, 218, 0.15) 10%,
            rgba(0, 87, 218, 0.15) 90%,
            transparent 100%); */
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(250, 108, 36, 0.15) 10%,
            rgba(250, 108, 36, 0.15) 90%,
            transparent 100%);

    z-index: 0;
}

.history-m {
    display: none;
}

/* ============================================
   响应式设计 - 平板端 (768px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .history-w {
        padding: 40px 0 60px;
    }

    .history-header {
        margin-bottom: 60px;
    }

    .history-header-title {
        font-size: 30px;
    }

    .history-header-subtitle {
        font-size: 14px;
    }

    .history-w .swiper-container {
        padding: 50px 15px 60px;
    }

    .history-w .swiper-slide {
        width: 200px;
    }

    .history-item-content {
        max-width: 200px;
        min-height: 160px;
        padding: 25px 15px;
        margin-top: 35px;
    }

    .history-item-content .history-node {
        top: -45px;
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .history-item-content .history-line {
        top: -35px;
        height: 35px;
    }

    .history-item-title {
        font-size: 20px;
    }

    .history-item-licheng {
        font-size: 13px;
    }

    /* 调整导航按钮 */
    .history-w .swiper-button-prev,
    .history-w .swiper-button-next {
        width: 44px;
        height: 44px;
        margin-top: -5px;
    }

    .history-w .swiper-button-prev::after,
    .history-w .swiper-button-next::after {
        font-size: 16px;
    }

    .history-w .swiper-button-prev {
        left: 25%;
    }

    .history-w .swiper-button-next {
        right: 25%;
    }

    /* 调整时间轴线位置 */
    .history-w::before {
        top: 195px;
    }
}

/* ============================================
   响应式设计 - 移动端 (< 768px)
   ============================================ */
@media (max-width: 767px) {

    .history-w {
        display: none;
    }

    .history-m {
        display: block;
    }


    .history-w {
        padding: 30px 0 50px;
    }

    .history-w .swiper-wrapper {
        align-items: flex-start;
        padding: 15px 0 20px;
    }

    .history-header {
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .history-header-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .history-header-subtitle {
        font-size: 13px;
    }

    .history-header::after {
        width: 40px;
        height: 2px;
        margin-top: 15px;
    }

    .history-w .swiper-container {
        padding: 40px 10px 50px;
    }

    .history-w .swiper-slide {
        width: 260px;
        opacity: 0.5;
        transform: scale(0.9);
    }

    .history-w .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .history-item-content {
        max-width: 260px;
        min-height: 150px;
        padding: 25px 20px;
        margin: 0 auto;
        margin-top: 30px;
    }

    .history-item-content .history-node {
        top: -40px;
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .history-item-content .history-line {
        top: -30px;
        height: 30px;
    }

    .history-item-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .history-item-licheng {
        font-size: 14px;
        line-height: 1.7;
    }

    /* 移动端导航按钮 */
    .history-w .swiper-button-prev,
    .history-w .swiper-button-next {
        width: 36px;
        height: 36px;
        margin-top: 0;
    }

    .history-w .swiper-button-prev::after,
    .history-w .swiper-button-next::after {
        font-size: 14px;
    }

    .history-w .swiper-button-prev {
        left: 5px;
    }

    .history-w .swiper-button-next {
        right: 5px;
    }

    /* 移动端滚动条 */
    .history-w .swiper-scrollbar {
        width: 50%;
        height: 4px;
        bottom: 15px;
    }

    /* 调整时间轴线位置 */
    .history-w::before {
        top: 175px;
        height: 0px;
    }
}

/* ============================================
   响应式设计 - 小屏移动端 (< 480px)
   ============================================ */
@media (max-width: 479px) {
    .history-header-title {
        font-size: 20px;
    }

    .history-header-subtitle {
        font-size: 12px;
    }

    .history-w .swiper-slide {
        width: 240px;
        opacity: 0.6;
    }

    .history-item-content {
        max-width: 240px;
        min-height: 140px;
        padding: 20px 15px;
        margin-top: 25px;
    }

    .history-item-content .history-node {
        top: -35px;
        width: 14px;
        height: 14px;
    }

    .history-item-content .history-line {
        top: -25px;
        height: 25px;
    }

    .history-item-title {
        font-size: 30px;
    }

    .history-item-licheng {
        font-size: 13px;
    }

    /* 更小屏幕隐藏导航按钮 */
    .history-w .swiper-button-prev,
    .history-w .swiper-button-next {
        display: none;
    }

    .history-w .swiper-container {
        /* padding: 35px 15px 45px; */
        padding: 0px;
        padding-bottom: 20px;
    }

    /* 调整时间轴线位置 */
    .history-w::before {
        top: 165px;
    }
}

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

/* 卡片进入动画 */
@keyframes historyCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.history-w .swiper-slide-active .history-item-content {
    animation: historyCardFadeIn 0.5s ease forwards;
}

/* 节点脉冲动画 */
@keyframes nodePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(221, 88, 46, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(221, 88, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(221, 88, 46, 0);
    }
}

.history-w .swiper-slide-active .history-node {
    animation: nodePulse 2s infinite;
}

/* ============================================
   辅助类
   ============================================ */

/* 隐藏元素 */
.history-hide {
    display: none !important;
}

/* 文字截断 */
.history-text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 多行文字截断 */
.history-text-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}