/* Custom Styles for About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.company-overview {
    padding: 80px 0 0 0;
    background-color: var(--light-color);
}

.company-overview .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.company-mission {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.company-mission:hover {
    transform: translateY(-10px);
}

.company-mission h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.company-history {
    padding: 60px 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;  /* 减少默认间距 */
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;  /* 减少项目内部间距 */
}

.timeline-content {
    flex: 1;
    padding-bottom: 15px;  /* 减少底部内边距 */
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.company-founder {
    padding: 80px 0;
    background-color: var(--light-color);
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 40px;
}

.founder-profile img {
    width: 200px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-quote {
    font-style: italic;
    color: var(--gray-color);
    margin-top: 20px;
}

.expandable-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    padding-bottom: 0;
}

.expandable-content p {
    margin-bottom: 20px;
}

.load-more-btn {
    display: block;
    padding: 10px 20px;
    margin-bottom: 30px;
    font-size: 1rem;
    width: fit-content;
    background-color: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
}

.load-more-btn:hover {
    background-color: #e0e0e0;
    color: #0078b3;
}

.company-stats {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.company-stats .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--gray-color);
    text-align: center;
}

@media (min-width: 768px) {
    .company-stats .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Company Certifications */
.company-certifications {
    padding: 80px 0;
    background-color: white;
}

/* Company Certifications Carousel */
.certifications-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.certifications-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 5px;
    padding: 10px 0;
    width: max-content;
    touch-action: pan-y;
    margin: 0 -5px; /* Compensate for gap spacing */
}

.certification-item {
    flex: 0 0 200px;
    margin: 0 5px; /* Consistent spacing */
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width */
}

.certification-item img {
    width: 100%;
    max-width: 180px;
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .certification-item {
        flex: 0 0 160px;
    }
}

/* Adding modal box styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #000;
}

.product-cert-notice {
    background: rgba(0, 119, 204, 0.1);
    border-left: 4px solid #0077cc;
    padding: 15px;
    margin: 30px auto 0;
    max-width: 800px;
    display: flex;
    align-items: center;
    border-radius: 0 4px 4px 0;
}
.product-cert-notice i {
    color: #0077cc;
    margin-right: 15px;
    font-size: 1.5rem;
}
.product-cert-notice p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 992px) {
    .company-overview .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .company-mission {
        width: 100%;
        box-sizing: border-box;
    }
    
    .company-stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founder-profile {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .timeline {
        gap: 10px;  /* 进一步减少小屏幕下的间距 */
    }
    
    .timeline-item {
        gap: 5px;
    }
    
    .timeline-content {
        padding-bottom: 10px;
    }
    
    .about-hero {
        padding: 70px 0;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .company-stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .company-history {
        padding: 40px 0;
    }
    
    .timeline {
        gap: 8px;  /* 超小屏幕下更紧凑的间距 */
    }
    
    .timeline-content h4 {
        margin-bottom: 5px;  /* 减少标题与内容间距 */
    }
    
    .about-hero {
        padding: 50px 0;
    }
    
    .company-stats .container {
        grid-template-columns: 1fr;
    }
    
    .certification-item {
        flex: 0 0 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .company-overview {
        padding: 60px 0 0;
    }
}

/* 新增通用样式确保所有内容宽度一致 */
.company-overview {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.company-mission p {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 新增针对500px以下设备的特殊样式 */
@media (max-width: 499px) {
    .company-overview .container {
        padding: 0 10px;
    }
    
    .company-mission {
        padding: 15px 10px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-icon {
        margin-left: 10px;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .certification-item {
        flex: 0 0 120px;
    }
    
    .about-hero {
        padding: 40px 0;
    }
    
    .about-hero h1 {
        font-size: 1.5rem;
    }
    
    .certifications-carousel {
        padding: 0 5px;
    }
    
    .company-stats .stat-item {
        padding: 15px;
    }
    
    .company-stats .stat-number {
        font-size: 2rem;
    }
}

/* 新增针对超小屏幕的优化 */
@media (max-width: 400px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }
    
    .company-mission {
        padding: 20px 15px;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .certification-item {
        flex: 0 0 130px;
    }
}