/* ==========================================================================
   factory-tour.css - 工厂参观页面样式
   ========================================================================== */

/* 主要内容区域 */
.factory-tour-content {
    padding: 60px 0;
    background-color: var(--background-primary);
}

/* 顶部标题和简介 */
.tour-header {
    margin-bottom: 40px;
}

.main-section-title {
    text-align: center;
}

.main-section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 介绍卡片 */
.intro-card-container {
    margin-bottom: 60px;
    width: 100%;
}

.intro-card {
    background-color: white;
    border-radius: 0; /* 无圆角 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 加深阴影 */
    padding: 30px;
    width: 100%;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: left;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* 照片展示区 */
.factory-photos-section {
    margin-bottom: 60px;
}

.photo-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 35px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.category-title:after {
    display: none; /* 隐藏下划线 */
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 工厂照片卡片 */
.factory-photo-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.factory-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* 加深悬停时的阴影 */
}

.photo-wrapper {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.photo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.factory-photo-card:hover .photo-wrapper img {
    transform: scale(1.03);
}

.photo-description {
    padding: 15px;
    text-align: center;
}

.photo-description h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.photo-description p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

/* 工厂数据统计 */
.factory-stats-section {
    background-color: var(--background-secondary);
    padding: 60px 0;
    margin-bottom: 60px;
    border-radius: 0; /* 修改为直角 */
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 20px;
    width: 200px;
    margin: 10px;
    background: white;
    border-radius: 0; /* 修改为直角 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 加深阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* 加深悬停时的阴影 */
}

.stat-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-title {
    font-size: 16px;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .factory-tour-content {
        padding: 40px 15px;
    }

    .tour-header {
        margin-bottom: 30px;
    }

    .main-section-title h2 {
        font-size: 30px;
    }

    .intro-card-container {
        margin-bottom: 40px;
    }

    .intro-card {
        padding: 25px;
    }
    
    .intro-text p {
        font-size: 15px;
        line-height: 1.65;
    }

    .factory-photos-section {
        margin-bottom: 40px;
    }

    .photo-category {
        margin-bottom: 30px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .photo-wrapper {
        height: 200px;
    }

    .photo-description h4 {
        font-size: 17px;
    }
    
    .photo-description p {
        font-size: 13px;
    }

    .factory-stats-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        padding: 15px;
    }
    .stat-number {
        font-size: 26px;
    }
    .stat-title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 80%;
        max-width: 350px;
        margin-bottom: 20px;
        padding: 20px;
    }

    .factory-tour-content {
        padding: 30px 15px;
    }

    .tour-header {
        margin-bottom: 25px;
    }
    
    .main-section-title h2 {
        font-size: 28px;
    }

    .intro-card {
        padding: 20px;
    }

    .intro-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .category-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .photos-grid {
        gap: 15px;
    }

    .photo-description h4 {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    .stat-title {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-wrapper {
        height: 200px;
    }

    .factory-tour-content {
        padding: 25px 10px;
    }

    .tour-header {
        margin-bottom: 20px;
    }

    .main-section-title h2 {
        font-size: 24px;
    }

    .intro-card-container {
        margin-bottom: 30px;
    }
    
    .intro-card {
        padding: 15px;
    }

    .intro-text p {
        font-size: 14px;
        line-height: 1.55;
    }

    .factory-photos-section {
        margin-bottom: 30px;
    }

    .photo-category {
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .photo-description h4 {
        font-size: 15px;
    }
    .photo-description p {
        font-size: 12px;
    }

    .factory-stats-section {
        padding: 25px 10px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .stat-card {
        width: 90%;
        max-width: none;
        padding: 15px;
    }
    .stat-number {
        font-size: 22px;
    }
    .stat-title {
        font-size: 13px;
    }
}
