/* 
 * myservice_ 前缀的CSS样式
 * 服务页面专用样式 - 基于产品分类样式修改
 * 响应式设计：3个断点 (1200px, 768px, 480px)
 */

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

/* 模块指示区域 */
.myservice_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;
}

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

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

.myservice_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);
}

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

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

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

.myservice_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;
}

.myservice_category_link:hover {
    color: #e60012;
}

.myservice_category_item.active .myservice_category_link {
    color: #e60012;
    font-weight: 700;
}

/* 三级分类悬浮菜单 */
.myservice_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;
}

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

.myservice_tertiary_content {
    padding: 20px 0;
}

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

.myservice_tertiary_item {
    margin: 0;
}

.myservice_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;
}

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

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

.myservice_tertiary_link:hover .myservice_tertiary_icon {
    color: #fff;
}

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

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

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

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

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

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

/* 主要内容区域 - 全屏100%宽度 */
.myservice_content_area {
    width: 100%;
    padding-top: 30px;
    background-color: #f8f9fa;
}

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

/* 记录项 */
.myservice_item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    min-height: 600px;
}

.myservice_item:hover {
    transform: translateY(-5px);
}

.myservice_item_content {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* 图片区域 - 改为轮播 */
.item_image_area {
    width: 50%;
    overflow: hidden;
    background-color: #000;
    min-height: 600px;            /* 修改：由 height: 600px 改为 min-height */
    position: relative;
}

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

/* 轮播幻灯片 */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.carousel-indicator {
    width: 12px;
    height: 12px;
    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;
}

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

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

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

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

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.item_image_area:hover .carousel-prev,
.item_image_area:hover .carousel-next {
    opacity: 1;
}

/* 信息区域 */
.item_info_area {
    width: 50%;
    min-height: 600px;            /* 修改：由 height: 600px 改为 min-height */
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item_info_layer {
    width: 100%;
    max-width: 90%;
}

.item_title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    /* 修改开始：允许自动换行，避免挤压 */
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;             /* 适当增大行高，利于多行展示 */
    /* 修改结束 */
}

.item_title.clickable {
    cursor: pointer;
}

.item_title.clickable:hover {
    color: #e60012;
}

.item_description {
    color: #555;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 25px;
    /* 修改开始：允许自动换行 */
    word-break: break-word;
    overflow-wrap: break-word;
    /* 修改结束 */
}

.item_meta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.item_date {
    color: #7f8c8d;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
}

.item_tag {
    background: linear-gradient(135deg, #e60012, #ff6b6b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

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

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

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

.myservice_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;
}

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

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

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

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

/* 响应式设计 - 中等屏幕 (1200px以下) */
@media (max-width: 1200px) {
    .myservice_title {
        font-size: 2.6rem;
    }
    
    .myservice_subtitle {
        font-size: 1.1rem;
    }
    
    .item_image_area,
    .item_info_area {
        min-height: 500px;            /* 修改：由 height: 500px 改为 min-height */
    }
    
    .item_info_area {
        padding: 30px;
    }
    
    .item_title {
        font-size: 1.6rem;
    }
    
    .item_description {
        font-size: 1rem;
    }
    
    .myservice_category_link {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .myservice_tertiary_list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式设计 - 小屏幕/移动端 (768px以下) */
@media (max-width: 768px) {
    .myservice_module_indicator {
        padding: 40px 20px 20px;
        margin-top: 60px;
        height: 350px;
    }
    
    .myservice_title {
        font-size: 2rem;
    }
    
    .myservice_subtitle {
        font-size: 1rem;
        margin-top: 10px;
    }
    
    /* 二级菜单垂直排列 */
    /*.myservice_category_list {*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*    padding: 10px 0;*/
    /*}*/
    
    /*.myservice_category_item {*/
    /*    width: 100%;*/
    /*    max-width: 300px;*/
    /*    margin: 5px 0;*/
    /*}*/
    
    /*.myservice_category_link {*/
    /*    text-align: center;*/
    /*    padding: 12px 15px;*/
    /*}*/
    
    .myservice_category_list {
        flex-direction: row;          /* 恢复为水平排列 */
        flex-wrap: nowrap;            /* 禁止换行 */
        overflow-x: auto;             /* 出现水平滚动条 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
        white-space: nowrap;          /* 防止文字换行 */
        padding: 10px 0;
        justify-content: flex-start;  /* 左对齐，可改为 center 居中 */
    }
    
    .myservice_category_item {
        width: auto;                  /* 自适应宽度 */
        max-width: none;
        margin: 0 5px;                /* 左右间距 */
        flex-shrink: 0;               /* 防止被压缩 */
    }
    
    .myservice_category_link {
        text-align: center;
        padding: 12px 15px;
        white-space: nowrap;          /* 确保链接文字不换行 */
    }
    
    /* 三级分类菜单在移动端变为下拉菜单 */
    .myservice_tertiary_menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 10px;
    }
    
    .myservice_tertiary_menu.active {
        padding: 10px 0;
        max-height: 1000px;
    }
    
    .myservice_tertiary_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .myservice_tertiary_link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* 面包屑调整 */
    .myservice_breadcrumb_area {
        padding: 15px 0;
    }
    
    .myservice_breadcrumb {
        font-size: 0.9rem;
    }
    
    /* 记录项垂直排列 */
    .myservice_item_content {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .item_image_area,
    .item_info_area {
        width: 100% !important;
        height: auto;
    }
    
/*    .item_image_area {
        min-height: 350px;
        height: auto;
        order: 1;
    } */
    
        /* 修复图片区域高度 */
        .item_image_area {
            height: 350px !important;
            min-height: 350px;
        }
        
        /* 确保轮播容器有高度 */
        .carousel-container {
            height: 100% !important;
        }
        
        /* 确保轮播幻灯片有高度 */
        .carousel-slides {
            height: 100% !important;
            position: relative;
        }
        
        /* 确保图片有高度并正确显示 */
        .carousel-slide {
            height: 100% !important;
            position: relative;
        }
        
        .carousel-slide img {
            width: 100% !important;
            height: 100% !important;
            min-height: 350px;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }
    
    
    .item_info_area {
        order: 2;
        padding: 25px;
        height: auto;
        min-height: 300px;
    }
    
    .item_info_layer {
        max-width: 100%;
    }
    
    .item_title {
        font-size: 1.5rem;
    }
    
    .item_description {
        font-size: 0.95rem;
    }
    
    .myservice_content_area {
        padding: 40px 0;
    }
    
    .myservice_item {
        min-height: auto;
    }
    
    /* 移动端显示轮播导航按钮 */
    .carousel-prev,
    .carousel-next {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .myservice_pagination_area {
        padding: 30px 0;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    .myservice_title {
        font-size: 1.8rem;
    }
    
    .myservice_subtitle {
        font-size: 0.95rem;
    }
    
    .item_image_area {
        min-height: 250px;
    }
    
    .item_info_area {
        padding: 20px;
        min-height: 250px;
    }
    
    .item_title {
        font-size: 1.3rem;
    }
    
    .item_description {
        font-size: 0.9rem;
    }
    
    .item_meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .item_date,
    .item_tag {
        width: 100%;
        text-align: center;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .myservice_tertiary_list {
        grid-template-columns: 1fr;
    }
    
    .myservice_tertiary_link {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .myservice_breadcrumb {
        font-size: 0.85rem;
    }
    
    .myservice_breadcrumb_area {
        padding: 12px 0;
    }
    
    .myservice_pagination .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
/* 当三级菜单容器被隐藏时的样式 */
.myservice_tertiary_menu[style*="display: none"] {
    display: none !important;
}
/* 也可以添加一个CSS类来处理 */
.myservice_tertiary_menu.hidden {
    display: none !important;
}