/* ==================== 关于我们页面专属样式 ==================== */

/* ==================== 公司介绍区块 ==================== */
.company-intro {
    padding: 80px 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==================== 魔方旋转图片展示 ==================== */
.cube-container {
    width: 350px;
    height: 350px;
    perspective: 1000px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 3px solid rgba(107, 45, 139, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
}

.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 魔方六个面的位置 */
.cube-front  { transform: rotateY(0deg) translateZ(175px); }
.cube-back   { transform: rotateY(180deg) translateZ(175px); }
.cube-right  { transform: rotateY(90deg) translateZ(175px); }
.cube-left   { transform: rotateY(-90deg) translateZ(175px); }
.cube-top    { transform: rotateX(90deg) translateZ(175px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(175px); }

/* 魔方旋转动画 */
@keyframes cubeRotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    16.67% { transform: rotateX(-15deg) rotateY(90deg); }
    33.33% { transform: rotateX(-15deg) rotateY(180deg); }
    50% { transform: rotateX(-15deg) rotateY(270deg); }
    66.67% { transform: rotateX(75deg) rotateY(360deg); }
    83.33% { transform: rotateX(-105deg) rotateY(360deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* 鼠标悬停暂停动画 */
.cube-container:hover .cube {
    animation-play-state: paused;
}

/* ==================== 时间线区块 ==================== */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 300px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
}

/* ==================== 企业文化区块 ==================== */
.culture-section {
    padding: 80px 0;
    background: var(--white);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-card {
    text-align: center;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: transform 0.3s;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.culture-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.culture-card p {
    color: var(--text-light);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端魔方尺寸缩小 */
    .cube-container {
        width: 280px;
        height: 280px;
    }
    
    .cube-face {
        width: 280px;
        height: 280px;
    }
    
    .cube-front  { transform: rotateY(0deg) translateZ(140px); }
    .cube-back   { transform: rotateY(180deg) translateZ(140px); }
    .cube-right  { transform: rotateY(90deg) translateZ(140px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(140px); }
    .cube-top    { transform: rotateX(90deg) translateZ(140px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(140px); }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-year {
        left: 30px;
    }
}
