/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 3px;
}

/* 公司简介样式 */
.company-intro {
    background-color: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    min-height: 300px;
}

.intro-image img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 拼图游戏区域 */
.puzzle-game-area {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    padding: 20px;
}

/* 目标区域（虚线框） */
.puzzle-target-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.target-slot {
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.target-slot.drag-over {
    border-color: #00ccff;
    background: rgba(0, 204, 255, 0.1);
}

.target-slot.filled {
    border: none;
    background: transparent;
}

/* 散落的拼图块 - 自由拖动 */
.puzzle-piece-scattered {
    position: absolute;
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    z-index: 10;
}

.puzzle-piece-scattered:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.puzzle-piece-scattered.dragging {
    opacity: 0.8;
    transform: scale(1.1);
    cursor: grabbing;
    z-index: 100;
}

.puzzle-piece-scattered.placed {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: default;
}

.puzzle-piece-scattered img {
    position: absolute;
    width: 200%;
    height: 200%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

/* 拼图图片位置 */
.puzzle-img-0 { top: 0; left: 0; }
.puzzle-img-1 { top: 0; right: 0; }
.puzzle-img-2 { bottom: 0; left: 0; }
.puzzle-img-3 { bottom: 0; right: 0; }

/* 拼图完成提示 */
.puzzle-complete {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 204, 255, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.puzzle-complete.show {
    opacity: 1;
}

/* 企业文化样式 */
.company-culture {
    background-color: var(--gray-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.culture-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.culture-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.culture-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.culture-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 发展历程样式 */
.company-history {
    background-color: var(--white);
}

.history-timeline {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
}

.history-timeline::-webkit-scrollbar {
    height: 8px;
}

.history-timeline::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.history-timeline::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.history-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 0;
    width: 100%;
    min-width: 2000px;
}

.timeline-item {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-year {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    margin: 0 auto 20px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
}
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 核心团队样式 */
.core-team {
    background-color: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

.team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00A1D6, #00B5E5);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 15px;
}

.team-social:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 161, 214, 0.4);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .history-timeline {
        flex-direction: column;
    }
    
    .timeline-item {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .intro-text h2 {
        font-size: 24px;
    }
    
    .culture-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .history-timeline::before {
        left: 0;
        right: 0;
        top: 50px;
        height: 3px;
        width: auto;
    }
    
    .timeline-year {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }
    
    .team-info {
        padding: 20px;
    }
    
    .team-info h3 {
        font-size: 18px;
    }
    
    .team-info p {
        font-size: 13px;
    }
    
    .team-social {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .puzzle-game-area {
        min-height: 360px;
    }

    .puzzle-target-container {
        width: 220px;
        height: 220px;
    }

    .puzzle-piece-scattered {
        width: 104px;
        height: 104px;
    }

    .puzzle-complete {
        padding: 12px 20px;
        font-size: 16px;
    }
}
