/*
 * ========================================================================
 * 垂直发展历程时间线样式表 - United Petfood 官网专用
 * ========================================================================
 * 
 * 文件说明：
 * - 完全按照用户提供的截图设计实现的垂直时间线样式
 * - 使用蓝色主题色彩（#00bcd4），与截图保持完全一致
 * - 实现左右交替布局，带有三角形箭头指向效果
 * - 所有样式都使用 #development-timeline_block 前缀，不影响页面其他部分
 * - 支持响应式设计，在移动设备上自动调整为单列布局
 * 
 * 作者：AI助手
 * 创建时间：2024年
 * 最后修改：2024年
 * 版本：v2.0 - 按照截图完全重新设计
 *
 * 使用说明：
 * 1. 此样式表仅适用于 #development-timeline_block 容器内的元素
 * 2. 主要类名：.development-timeline, .timeline-item, .timeline-node, .timeline-content
 * 3. 响应式断点：992px（平板）、576px（手机）
 * 4. 主题色彩：#00bcd4（蓝色）
 */

/* 发展历程主容器 - 重命名避免冲突 */
#development-timeline_block .dev-history-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* 垂直时间线主线 - 蓝色 */
#development-timeline_block .dev-history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00bcd4;
    transform: translateX(-50%);
    z-index: 1;
}

/* 时间节点容器 - 重命名避免冲突 */
#development-timeline_block .dev-history-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    min-height: 80px;
}

/* 左侧内容（奇数项） - 内容在左，箭头指向右 */
#development-timeline_block .dev-history-item:nth-child(odd) {
    justify-content: flex-end;
}

/* 右侧内容（偶数项） - 内容在右，箭头指向左 */
#development-timeline_block .dev-history-item:nth-child(even) {
    justify-content: flex-start;
}

/* 时间节点圆圈 - 蓝色，无外边框 - 重命名避免冲突 */
#development-timeline_block .dev-history-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: #00bcd4;
    border: none;               /* 去除外边框 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: none;           /* 去除阴影效果 */
}

/* 年份文字样式 - 缩小一半并完美居中 - 重命名避免冲突 */
#development-timeline_block .dev-history-year {
    color: white;
    font-size: 12px;           /* 文字大小适中：确保可读性 */
    font-weight: bold;
    text-align: center;        /* 水平居中 */
    line-height: 1.2;          /* 适当行高 */
    display: flex;
    align-items: center;       /* 垂直居中 */
    justify-content: center;   /* 水平居中 */
    width: 100%;
    height: 100%;
    margin: 0;                 /* 清除外边距 */
    padding: 0;                /* 清除内边距 */
}

/* 特殊处理"未来"节点 - 同样缩小文字 - 重命名避免冲突 */
#development-timeline_block .dev-history-item.future .dev-history-year {
    font-size: 10px;           /* 未来节点文字稍小但保持可读性 */
    font-weight: bold;
    line-height: 1.1;
}

/* 内容区域样式 - 重命名避免冲突 */
#development-timeline_block .dev-history-content {
    position: relative;         /* 相对定位，为三角形箭头提供参考 */
    max-width: 400px;           /* 最大宽度限制，保证内容不会过宽 */
    padding: 0;                 /* 去除内边距，文字直接显示 */
    background: transparent;    /* 透明背景，去除白色框 */
    border-radius: 0;           /* 去除圆角 */
    box-shadow: none;           /* 去除阴影效果 */
    border: none;               /* 去除边框 */
    display: flex;              /* 弹性布局，用于垂直居中对齐 */
    align-items: center;        /* 垂直居中对齐，与时间节点保持水平 */
    min-height: 70px;           /* 最小高度与时间节点圆圈保持一致 */
}

/* =================================================================
 * 固定箭头样式系统 - 简化逻辑，确保箭头位置绝对稳定
 * ================================================================= */

/* 桌面端：保持原有的奇偶数布局逻辑 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(odd) {
    justify-content: flex-end;
}

#development-timeline_block .dev-history-item:nth-child(even) {
    justify-content: flex-start;
}

/* 奇数项（左侧内容）的样式 - 调整边距与箭头对齐 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(odd) .dev-history-content {
    margin-right: 35px;  /* 减少边距，使内容更接近箭头 */
    text-align: right;
    padding-right: 10px; /* 添加内边距，与箭头保持适当距离 */
}

/* 偶数项（右侧内容）的样式 - 调整边距与箭头对齐 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(even) .dev-history-content {
    margin-left: 35px;   /* 减少边距，使内容更接近箭头 */
    text-align: left;
    padding-left: 10px;  /* 添加内边距，与箭头保持适当距离 */
}

/* 桌面端固定箭头：奇数项（左侧内容）箭头在右侧指向左侧内容 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(odd) .dev-history-node::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: -20px !important;  /* 箭头在时间节点右侧 */
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 15px solid #00bcd4 !important;  /* 指向左侧（内容方向） */
    border-top: 15px solid transparent !important;
    border-bottom: 15px solid transparent !important;
    border-right: none !important;
    z-index: 10 !important;
    display: block !important;
}

/* 桌面端固定箭头：偶数项（右侧内容）箭头在左侧指向右侧内容 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(even) .dev-history-node::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: -20px !important;   /* 箭头在时间节点左侧 */
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-right: 15px solid #00bcd4 !important; /* 指向右侧（内容方向） */
    border-top: 15px solid transparent !important;
    border-bottom: 15px solid transparent !important;
    border-left: none !important;
    z-index: 10 !important;
    display: block !important;
}

/* 清除可能的冲突样式 - 确保每个项目只显示一个箭头 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:nth-child(odd) .dev-history-node::before {
    display: none !important;  /* 奇数项隐藏before伪元素 */
}

#development-timeline_block .dev-history-item:nth-child(even) .dev-history-node::after {
    display: none !important;  /* 偶数项隐藏after伪元素 */
}

/* 内容文字样式 - 重命名避免冲突 */
#development-timeline_block .dev-history-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* 公司名称高亮 - 重命名避免冲突 */
#development-timeline_block .dev-history-content .company-name {
    color: #00bcd4;
    font-weight: 600;
}

/* 最后一个节点的向下箭头 - 重命名避免冲突 */
#development-timeline_block .dev-history-item:last-child::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #00bcd4;
    z-index: 2;
}

/* 响应式设计 - 平板设备 - 重命名避免冲突 */
@media (max-width: 992px) {
    #development-timeline_block .dev-history-timeline {
        padding: 40px 20px;
    }
    
    /* 改为单列布局 */
    #development-timeline_block .dev-history-timeline::before {
        left: 50px;
    }
    
    #development-timeline_block .dev-history-item {
        justify-content: flex-start !important;
        margin-bottom: 50px;
    }
    
    #development-timeline_block .dev-history-node {
        left: 50px;
        width: 60px;
        height: 60px;
    }
    
    #development-timeline_block .dev-history-year {
        font-size: 18px;
    }
    
    #development-timeline_block .dev-history-item.future .dev-history-year {
        font-size: 14px;
    }
    
    /* 所有内容都在右侧，箭头都指向左边 */
    #development-timeline_block .dev-history-item .dev-history-content {
        margin-left: 25px !important;  /* 减少边距，使内容更接近箭头 */
        text-align: left;
        padding-left: 8px !important;  /* 添加内边距，与箭头保持适当距离 */
    }
    
    /* 平板端：隐藏桌面端的所有箭头 */
    #development-timeline_block .dev-history-item:nth-child(odd) .dev-history-node::after,
    #development-timeline_block .dev-history-item:nth-child(even) .dev-history-node::before {
        display: none !important;
    }
    
    /* 平板端：所有项目统一显示指向右的箭头（在时间节点左侧，与内容同侧） */
    #development-timeline_block .dev-history-item .dev-history-node::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: -15px !important;  /* 箭头在左侧，与内容同侧 */
        transform: translateY(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-right: 12px solid #00bcd4 !important;  /* 指向右侧内容 */
        border-top: 12px solid transparent !important;
        border-bottom: 12px solid transparent !important;
        border-left: none !important;
        z-index: 10 !important;
        display: block !important;
    }
}

/* 响应式设计 - 手机设备 - 重命名避免冲突 */
@media (max-width: 576px) {
    #development-timeline_block .dev-history-timeline {
        padding: 30px 15px;
    }
    
    #development-timeline_block .dev-history-timeline::before {
        left: 35px;
    }
    
    #development-timeline_block .dev-history-node {
        width: 50px;
        height: 50px;
        left: 35px;
    }
    
    #development-timeline_block .dev-history-year {
        font-size: 16px;
    }
    
    #development-timeline_block .dev-history-item.future .dev-history-year {
        font-size: 12px;
    }
    
    #development-timeline_block .dev-history-item .dev-history-content {
        margin-left: 20px !important;  /* 减少边距，使内容更接近箭头 */
        padding-left: 6px !important;  /* 添加内边距，与箭头保持适当距离 */
    }
    
    /* 手机端：隐藏平板端的箭头 */
    #development-timeline_block .dev-history-item .dev-history-node::after {
        display: none !important;
    }
    
    /* 手机端：所有项目统一显示指向右的箭头（在时间节点左侧，与内容同侧） */
    #development-timeline_block .dev-history-item .dev-history-node::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: -12px !important;  /* 箭头在左侧，与内容同侧 */
        transform: translateY(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-right: 10px solid #00bcd4 !important;  /* 指向右侧内容 */
        border-top: 10px solid transparent !important;
        border-bottom: 10px solid transparent !important;
        border-left: none !important;
        z-index: 10 !important;
        display: block !important;
    }
}

/* 悬停效果 */
#development-timeline_block .timeline-node {
    transition: all 0.3s ease;
}

#development-timeline_block .timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

#development-timeline_block .timeline-content {
    transition: all 0.3s ease;
}

#development-timeline_block .timeline-item:hover .timeline-content {
    /* 移除阴影效果，保持简洁的视觉效果 */
    box-shadow: none;
    transform: none;
}
