/* ========== 生产实力展示样式 - 完整版 ========== */
/* 专门解决主页生产实力三图并排问题 */

/* ========== 生产实力主容器 ========== */
.production-strength {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.production-strength h3 {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.production-strength h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ========== 生产网格布局 ========== */
.production-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========== 生产项目卡片 ========== */
.production-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.production-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.production-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.production-item:hover img {
    transform: scale(1.05);
}

/* ========== 生产遮罩层 ========== */
.production-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
    color: white;
    padding: var(--spacing-lg);
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.production-item:hover .production-overlay {
    transform: translateY(0);
    opacity: 1;
}

.production-overlay h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: white;
}

.production-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin: 0;
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.9);
}

/* ========== 响应式设计 ========== */

/* 平板设备：两列布局 */
@media (max-width: 768px) {
    .production-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .production-item img {
        height: 240px;
    }

    .production-strength h3 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-xl);
    }
}

/* 手机设备：单列布局 */
@media (max-width: 480px) {
    .production-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .production-item img {
        height: 200px;
    }

    .production-overlay h4 {
        font-size: var(--font-size-lg);
    }

    .production-overlay p {
        font-size: var(--font-size-xs);
    }

    .production-strength {
        padding: var(--spacing-xl) 0;
    }

    .production-strength h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }
}

/* ========== 特殊效果增强 ========== */

/* 加载动画 */
.production-item {
    animation: fadeInUp 0.6s ease-out;
}

.production-item:nth-child(1) { animation-delay: 0.1s; }
.production-item:nth-child(2) { animation-delay: 0.2s; }
.production-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 聚焦状态增强 */
.production-item:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.3);
}

/* 图片加载优化 */
.production-item img {
    background: var(--bg-light);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.production-item img[loading="lazy"] {
    opacity: 0;
}

.production-item img.loaded {
    opacity: 1;
}

/* ========== 深色模式适配 ========== */
@media (prefers-color-scheme: dark) {
    .production-strength {
        background: #1a1a1a;
    }

    .production-item {
        background: #2a2a2a;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .production-strength h3 {
        color: #ffffff;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .production-strength {
        break-inside: avoid;
        padding: 20px 0;
    }

    .production-grid {
        display: block;
    }

    .production-item {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .production-overlay {
        position: static;
        background: #f5f5f5;
        color: #333;
        transform: none;
        opacity: 1;
    }
}