.section-anchor {
    scroll-behavior: smooth;
    scroll-margin-top: 40px;
}

/* ========== 企业发展区样式 ========== */
.milestone-container-scroll {
    width: 1200px;
    height: 400px;
    overflow: hidden;
    overflow-x: auto;
    display: flex;
}
/* 滚动条整体 */
.milestone-container-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* 滚动条滑块 */
.milestone-container-scroll::-webkit-scrollbar-thumb {
    background: rgba(147, 147, 147, 0.5);
    border-radius: 3px;
}

/* 悬停状态 */
.milestone-container-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 194, 0.5);
}

/* 滚动条轨道背景 */
.milestone-container-scroll::-webkit-scrollbar-track {
    opacity: 0;
}

.milestone-container {
    max-width: 1200px;
    margin: 20px auto;
}

.milestone-timeline {
    margin: 0 auto;
    padding: 200px 0 50px 0;
}

.milestone-items {
    display: flex;
    justify-content: space-between;
}

.milestone-item {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.milestone-connector {
    position: absolute;
    height: 2px;
    background-color: #bdbdbd;
    top: 50%;
    margin-top: -2px;
    left: 0;
    right: 0;
    z-index: 1;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.milestone-dot {
    position: absolute;
    top: 20%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9d9a9a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    left: 50%;
    margin-left: -5px;
    margin-top: -6px;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 155, 76, 0.85);
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 25px rgba(0, 155, 76, 0.85);
    }
}

.milestone-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: black;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    width: 80px; /* 与圆点同宽 */
}

.milestone-item:nth-child(odd) .milestone-year {
    bottom: calc(50% - 80px); /* 50%位置为连接线中点，40px是圆点半径 */
}

.milestone-item:nth-child(even) .milestone-year {
    top: calc(50% - 80px);
}

.milestone-item.active .milestone-year {
    color: black;
    font-weight: 700;
}

.milestone-content {
    position: absolute;
    left: 10px;
    width: 90%;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    opacity: 0;
    transform: translateY(0);
    transition: all 1s ease;
    border-top: 4px solid #009b4c;
    text-align: center;
    cursor: pointer;
}

/* 奇数项卡片在上方 */
.milestone-item:nth-child(odd) .milestone-content {
    bottom: calc(50% + 70px);
    transform: translateY(30px);
    border-top: none;
    border-bottom: 4px solid #009b4c;
}

/* 偶数项卡片在下方 */
.milestone-item:nth-child(even) .milestone-content {
    top: calc(50% + 70px);
    transform: translateY(30px);
}

.milestone-desc {
    font-size: 14px;
    color: #333;
}

/* 激活状态样式 */
.milestone-item.active .milestone-connector {
    transform: scaleX(1);
}

.milestone-item.active .milestone-dot {
    transform: scale(1);
    background: #009b4c70;
    color: white;
}

.milestone-item.active .milestone-content {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式布局 */
/*@media (max-width: 900px) {
    .milestone-items {
        flex-direction: column;
        align-items: center;
    }

    .milestone-item {
        width: 100%;
        margin-bottom: 120px;
        min-width: auto;
    }

    .milestone-timeline::after {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        margin-left: -2px;
    }

    .milestone-dot {
        top: 0;
        left: 50%;
        margin-left: -40px;
        margin-top: 0;
    }

    .milestone-year {
        top: 80px; !* 放在圆点下方 *!
        width: 100%;
        left: 0;
        transform: none;
        text-align: center;
    }

    .milestone-content {
        top: 100px;
        left: 50%;
        width: 80%;
        margin-left: -40%;
        transform: translateY(30px);
    }

    !* 移动端全部卡片都在下方 *!
    .milestone-item:nth-child(odd) .milestone-content,
    .milestone-item:nth-child(even) .milestone-content {
        top: 100px;
        bottom: auto;
        transform: translateY(30px);
        border-top: 4px solid #009b4c;
        border-bottom: none;
    }

    .milestone-connector {
        width: 4px;
        height: 100%;
        top: 0;
        left: 50%;
        margin-left: -2px;
        transform-origin: top;
        transform: scaleY(0);
    }

    .milestone-item.active .milestone-connector {
        transform: scaleY(1);
    }

    .milestone-item.active .milestone-content {
        transform: translateY(0);
    }
}*/
/* ========== 企业发展区样式 ========== */


/* ========== 企业文化区样式 ========== */
.culture-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

.culture-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.culture-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #165DFF;
    border-radius: 2px;
}

.culture-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.culture-card {
    background: white;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.culture-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.culture-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #009b4c;
}

.culture-card-icon {
    font-size: 42px;
    color: #009b4c;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.culture-card:hover .culture-card-icon {
    transform: rotate(15deg) scale(1.1);
    color: #009b4c;
}

.culture-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.culture-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #009b4c;
}

.culture-card-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* 为不同卡片设置不同的动画延迟 */
.culture-card:nth-child(1) { animation-delay: 0.1s; }
.culture-card:nth-child(2) { animation-delay: 0.2s; }
.culture-card:nth-child(3) { animation-delay: 0.3s; }
.culture-card:nth-child(4) { animation-delay: 0.4s; }
.culture-card:nth-child(5) { animation-delay: 0.5s; }
.culture-card:nth-child(6) { animation-delay: 0.6s; }

/* 响应式调整 */
/*@media (max-width: 768px) {
    .culture-title {
        font-size: 28px;
    }

    .culture-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .culture-container {
        padding: 40px 15px;
    }

    .culture-title {
        font-size: 24px;
    }

    .culture-cards {
        gap: 20px;
    }
}*/
/* ========== 企业文化区样式 ========== */


/* ========== 企业照片墙样式 ========== */
:root {
    --photo-height: 200px;
    --photo-gap: 15px;
    --scroll-speed: 60s; /* 减慢滚动速度为60秒 */
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-scroll-section {
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
}

.photo-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.photo-track {
    white-space: nowrap;
    position: relative;
}

.photo-list {
    display: inline-flex;
    gap: var(--photo-gap);
    animation: scroll-left var(--scroll-speed) linear infinite;
    will-change: transform;
}

.photo-item {
    flex: 0 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer; /* 添加指针样式，表示可点击 */
}

.photo-item img {
    display: block;
    height: var(--photo-height);
    width: auto;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 滚动动画 */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 悬停效果 */
.photo-scroll-container:hover .photo-list {
    animation-play-state: paused;
}

.photo-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 加载状态 */
.photo-item img.loading {
    filter: blur(5px);
    opacity: 0.7;
}

/* 响应式调整 */
/*
@media (max-width: 1024px) {
    :root {
        --photo-height: 180px;
        --photo-gap: 12px;
    }
}

@media (max-width: 768px) {
    :root {
        --photo-height: 150px;
        --photo-gap: 10px;
        --scroll-speed: 50s; !* 小屏幕滚动稍快 *!
    }

    .photo-scroll-section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --photo-height: 120px;
        --photo-gap: 8px;
        --scroll-speed: 40s; !* 移动端滚动稍快 *!
        --border-radius: 4px;
    }

    .photo-scroll-section {
        padding: 20px 0;
    }
}
*/

/* 渐变边缘遮罩 */
.scroll-mask {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.mask-left {
    left: 0;
    background: linear-gradient(to right, #f9fafb, transparent);
}

.mask-right {
    right: 0;
    background: linear-gradient(to left, #f9fafb, transparent);
}

/* 图片查看模态框样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 25%);
    cursor: zoom-out;
    transition: background-color 0.3s ease;
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    overflow-y: scroll;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
/* ========== 企业照片墙样式 ========== */

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.timeline-header {
    margin-bottom: 60px;
}

.timeline-header h1 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.header-underline {
    width: 40px;
    height: 3px;
    background-color: #4CAF50;
    margin-bottom: 10px;
}

.timeline-header p {
    font-size: 18px;
    color: #333333;
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
}

/* 时间轴项目样式 */
.timeline-item {
    margin-bottom: 60px;
    position: relative;
    display: flex;
}

/* 左侧项目 */
.timeline-item.left {
    justify-content: flex-start;
}

/* 右侧项目 */
.timeline-item.right {
    justify-content: flex-end;
}

/* 时间点样式 */
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* 内容框样式 */
.timeline-content {
    width: 40%;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #009b4c;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.timeline-item.left .timeline-content {
    margin-right: 30px;
    left: -35px;
    border-right: 10px solid #009b4c;
}

.timeline-item.right .timeline-content {
    margin-left: 30px;
    right: -35px;
    border-left: 10px solid #009b4c;
}

/* 内容框角落装饰 */
.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 25px solid #009b4c;
}

.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 50px solid transparent;
    border-right: 25px solid #009b4c;
}

/* 内容框角落白色三角形，覆盖边框线 */
.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 21px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid white;
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 21px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid white;
}

/* 年份和内容文本样式 */
.timeline-item.right .timeline-content h3 {
    position: absolute;
    font-weight: bold;
    top: -15px;
    left: -100px;
    color: #333333;
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-item.left .timeline-content h3 {
    position: absolute;
    font-weight: bold;
    top: -15px;
    right: -100px;
    color: #333333;
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-content p {
    color: #666666;
    line-height: 1.6;
    font-size: 14px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}
