/* 
 * myproduction_ 前缀的CSS样式
 * 生产页面专用样式 - 适配【生产中心区块+设备卡片网格】布局
 * 响应式设计，图片竖向比例
 */

/* ========== 重置和基础样式 ========== */
.myproduction_container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.myproduction_module_indicator {
    margin-top: 80px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.myproduction_header {
    text-align: center;
    padding: 0 20px;
}

.myproduction_title {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.myproduction_subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== 二级分类菜单 ========== */
.myproduction_category_nav {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.myproduction_category_list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    position: relative;
}

.myproduction_category_item {
    margin: 0 10px;
    position: relative;
}

.myproduction_category_link {
    display: block;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.myproduction_category_link:hover {
    color: #e60012;
}

.myproduction_category_item.active .myproduction_category_link {
    color: #e60012;
    font-weight: 700;
}

/* ========== 三级分类悬浮菜单 ========== */
.myproduction_tertiary_menu {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #eee;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.myproduction_tertiary_menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
    padding: 20px 0;
}

.myproduction_tertiary_content {
    padding: 20px 0;
}

.myproduction_tertiary_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.myproduction_tertiary_item {
    margin: 0;
}

.myproduction_tertiary_link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.myproduction_tertiary_link:hover {
    background-color: #e60012;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.2);
}

.myproduction_tertiary_icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #e60012;
    transition: color 0.3s ease;
}

.myproduction_tertiary_link:hover .myproduction_tertiary_icon {
    color: #fff;
}

/* ========== 面包屑导航 ========== */
.myproduction_breadcrumb_area {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.myproduction_breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.myproduction_breadcrumb_link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.myproduction_breadcrumb_link:hover {
    color: #e60012;
    background-color: #f1f3f5;
}

.myproduction_breadcrumb_separator {
    margin: 0 8px;
    color: #adb5bd;
    font-size: 0.9em;
}

.myproduction_breadcrumb_current {
    color: #495057;
    font-weight: 600;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* ========== 主要内容区域 ========== */
.myproduction_content_area {
    width: 100%;
    padding: 40px 0 60px;
    background-color: #f8f9fa;
}

.myproduction_list_container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 生产中心区块 ---- */
.production_center_block {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.production_center_block:last-child {
    margin-bottom: 0;
}

/* 区块标题：居中 */
.production_center_header {
    padding: 25px 30px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #eee;
    text-align: center; /* 居中 */
}

.production_center_title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0; /* 下边距给描述 */
}

.production_center_description {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0 auto;
    max-width: 600px;
}

/* ---- 设备卡片网格（居中容器） ---- */
.equipment_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 30px;
    justify-content: center; /* 居中 */
    align-items: start;
}

.equipment_card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: calc(25% - 25px); /* 4列时每个卡片占据约25%宽度减去gap */
    max-width: 450px;
    min-width: 350px; /* 防止过小 */
    flex: 0 0 auto;
}

.equipment_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 卡片图片轮播区（竖向比例 1:1.2） */
.card_image_area {
    width: 100%;
    aspect-ratio: 1; /* 宽:高 = 1:1.2 */ 
    overflow: hidden;
    position: relative;
    background-color: #000;
    flex-shrink: 0;
    background-color: #f8f8f8;      /* 加浅色背景，缓和留白 */

}

/* 轮播容器 */
.card-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.card-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.card-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* 卡片轮播指示器 */
.card-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    padding: 0 15px;
}

.card-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.card-carousel-indicator.active {
    background-color: #e60012;
    border-color: #e60012;
    transform: scale(1.2);
}

/* 卡片轮播导航按钮 */
.card-carousel-prev,
.card-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.card_image_area:hover .card-carousel-prev,
.card_image_area:hover .card-carousel-next {
    opacity: 0.8;
}

.card-carousel-prev:hover,
.card-carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.card-carousel-prev {
    left: 5px;
}

.card-carousel-next {
    right: 5px;
}

/* 卡片信息区域（参数列表，左对齐） */
.card_info_area {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* 左对齐 */
}

.card_device_name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center; /* 设备名称居中（也可以选择左对齐）可根据喜好调整 */
}

.card_params_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card_params_list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.card_params_list li:last-child {
    border-bottom: none;
}

.card_params_list .param_key {
    color: #7f8c8d;
    font-weight: 500;
}

.card_params_list .param_value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* 空数据样式 */
.myproduction_empty {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* 分页区域 */
.myproduction_pagination_area {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.myproduction_pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.myproduction_pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.myproduction_pagination .page-item {
    margin: 0 5px;
}

.myproduction_pagination .page-link {
    display: block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #e60012;
    text-decoration: none;
    transition: all 0.3s ease;
}

.myproduction_pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #e60012;
}

.myproduction_pagination .page-item.active .page-link {
    background-color: #e60012;
    border-color: #e60012;
    color: white;
}

.myproduction_pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: white;
    border-color: #dee2e6;
}

/* ========== 灯箱（图片弹出大图） ========== */
.myproduction_lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.myproduction_lightbox.active {
    display: flex;
}

.myproduction_lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.myproduction_lightbox_close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.myproduction_lightbox_close:hover {
    color: #e60012;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .equipment_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .equipment_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .production_center_title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .equipment_grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .card_image_area {
        /* 比例不变 */
    }
    
    .production_center_header {
        padding: 20px;
    }
    
    .production_center_title {
        font-size: 1.4rem;
    }
    
    .myproduction_module_indicator {
        padding: 40px 20px 20px;
        margin-top: 60px;
        min-height: 250px;
    }
    
    .myproduction_title {
        font-size: 2rem;
    }
    
    .myproduction_subtitle {
        font-size: 1rem;
    }
    
    .myproduction_category_list {
        flex-wrap: nowrap;                /* 禁止换行 */
        overflow-x: auto;                 /* 水平滚动条 */
        -webkit-overflow-scrolling: touch;/* iOS平滑滚动 */
        white-space: nowrap;              /* 防止文字换行 */
        justify-content: flex-start;      /* 左对齐（如需居中可改为 center） */
        padding: 10px 0;
    }
    .myproduction_category_item {
        flex-shrink: 0;                   /* 不被压缩 */
        margin: 0 5px;                    /* 左右间距 */
        width: auto;                      /* 自适应宽度 */
    }
    .myproduction_category_link {
        white-space: nowrap;              /* 链接文字不换行 */
        padding: 10px 15px;
        font-size: 1rem;                  /* 根据情况调整字号 */
    }
    
}