/* 关于我们页面样式 */

/* 顶部横幅 */
.about-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.about-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-banner-subtitle {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 企业简介 */
.company-intro {
    background-color: #ffffff;
}

.intro-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-banner-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.intro-banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 80px 6%;
}

.intro-body {
    position: relative;
}

.intro-gallery {
    float: left;
    width: 480px;
    margin-right: 40px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 150px 150px;
    gap: 12px;
}

/* 响应式设计 - 企业简介部分 */
@media (max-width: 992px) {
    .intro-gallery {
        float: none;
        width: 100%;
        max-width: 500px;
        margin-right: 0;
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
    }
    .company-intro{
        margin-bottom: 0px;
    }
}

@media (max-width: 480px) {
    .intro-gallery {
        grid-template-rows: 180px 120px 120px;
        gap: 8px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.gallery-item:nth-child(4) {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
}

.gallery-item:nth-child(5) {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.intro-text-wrapper {
    overflow: visible;
}

.intro-paragraph {
    font-size: 15px;
    color: #555555;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: justify;
}

/* 清除浮动 */
.intro-body::after {
    content: "";
    display: table;
    clear: both;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.consult-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* 企业文化 */
.corporate-culture {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.corporate-culture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.culture-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 6%;
    position: relative;
    z-index: 1;
}

.culture-header {
    text-align: center;
    margin-bottom: 80px;
}

.culture-title {
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.culture-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffffff;
}

.culture-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.culture-cards {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.culture-card {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 50px 35px;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
}

.culture-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.culture-card:hover .card-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    position: static;
}

.card-title::before {
    display: none;
}

.card-content {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: center;
}

/* 发展历程 */
.development-history {
    padding: 80px 0;
    background-color: #ffffff;
}

.history-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 6%;
}

.history-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-title {
    font-size: 30px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.history-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.history-subtitle {
    font-size: 16px;
    color: #666666;
    margin-bottom: 40px;
}

/* 滚动时间轴 */
.timeline-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.timeline-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.timeline {
    display: flex;
    min-width: max-content;
    gap: 40px;
    padding: 20px 0;
}

/* 左右切换按钮 */
.timeline-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 24px;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.timeline-btn-left {
    left: 20px;
}

.timeline-btn-right {
    right: 20px;
}

/* 滚动条样式 */
.timeline-wrapper::-webkit-scrollbar {
    height: 8px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.timeline-item {
    flex: 0 0 300px;
    position: relative;
}

.timeline-year {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

.timeline-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.timeline-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.timeline-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 滚动条样式 */
.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-banner {
        height: 350px;
    }
    
    .about-banner-title {
        font-size: 30px;
    }
    
    .company-intro,
    .corporate-culture,
    .development-history {
        padding: 60px 0;
    }
    
    .intro-body {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .culture-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .culture-card {
        flex: 0 0 100%;
        max-width: 400px;
    }
    
    .timeline-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-banner {
        height: 300px;
    }
    
    .about-banner-title {
        font-size: 24px;
    }
    
    .about-banner-subtitle {
        font-size: 16px;
    }
    
    .company-intro,
    .corporate-culture,
    .development-history {
        padding: 40px 0;
    }
    
    .intro-title,
    .culture-title,
    .history-title {
        font-size: 24px;
    }
    
    .intro-content,
    .culture-content,
    .history-content {
        padding: 0 4%;
    }
    
    .intro-paragraph {
        font-size: 14px;
        text-align: justify;
    }
    
    .consult-btn {
        padding: 10px 25px;
        font-size: 14px;
        margin-top: 30px;
    }
    
    .culture-cards {
        gap: 20px;
    }
    
    .culture-card {
        padding: 30px 20px;
        min-width: 100%;
    }
    
    .timeline-wrapper {
        padding: 0 10px;
    }
    
    .timeline {
        gap: 20px;
    }
    
    .timeline-item {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .about-banner {
        height: 250px;
    }
    
    .about-banner-title {
        font-size: 20px;
    }
    
    .about-banner-subtitle {
        font-size: 14px;
    }
    
    .company-intro,
    .corporate-culture,
    .development-history {
        padding: 30px 0;
    }
    
    .intro-title,
    .culture-title,
    .history-title {
        font-size: 20px;
    }
    
    .intro-content,
    .culture-content,
    .history-content {
        padding: 0 3%;
    }
    
    .intro-paragraph {
        font-size: 13px;
    }
    
    .consult-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .culture-card {
        padding: 20px 15px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-content {
        font-size: 13px;
    }
    
    .timeline {
        gap: 15px;
    }
    
    .timeline-item {
        flex: 0 0 240px;
    }
    
    .timeline-year {
        font-size: 20px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 16px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
    
    .timeline-image img {
        height: 140px;
    }
}