/* 通用样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background-color: #6f42c1;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.site-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.site-header p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.factory-stats {
    font-size: 0.95rem;
    opacity: 0.9;
}

.factory-stats i {
    margin-right: 5px;
}

/* 工厂环境和定制流程样式 */
.factory-environment, .custom-process {
    margin-bottom: 40px;
}

.factory-environment h2, .custom-process h2, .products-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #6f42c1;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #6f42c1;
    display: inline-block;
}

.image-container {
    text-align: center;
}

.factory-environment img, .custom-process img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.factory-environment img:hover, .custom-process img:hover {
    transform: scale(1.02);
}

/* 产品展示区域 */
.products-section {
    margin-bottom: 40px;
}

.no-products {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

/* PC端产品表格 */
.pc-products {
    display: block;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-table th, .product-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-table th {
    background-color: #6f42c1;
    color: white;
    font-weight: bold;
}

.product-table tr:hover {
    background-color: #f8f9fa;
}

.product-table img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-table img:hover {
    transform: scale(1.1);
}

/* 手机端产品卡片 */
.mobile-products {
    display: none;
}

/* 页脚样式 */
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 全屏图片模态框 */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏PC端内容，显示手机端内容 */
    .pc-products {
        display: none;
    }
    
    .mobile-products {
        display: block;
    }
    
    .site-header {
        padding: 20px 0;
    }
    
    .site-header h1 {
        font-size: 1.8rem;
    }
    
    .site-header p {
        font-size: 1rem;
    }
    
    .factory-stats {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .factory-stats span {
        display: block;
        margin-bottom: 5px;
    }
    
    .factory-stats span:not(:last-child) {
        margin-right: 0;
    }
    
    .factory-stats span::after {
        content: none;
    }
    
    /* 手机端产品卡片样式 */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .product-img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        cursor: pointer;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-price {
        font-weight: bold;
        color: #6f42c1;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .product-component {
        font-size: 0.8rem;
        color: #666;
        line-height: 1.4;
    }
}
