/* 轮播图样式 */
.css-carousel-img {
    max-width: 85%;
    height: auto;
    object-fit: cover;
}

/* 服务部分样式 */
.heading_description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.service-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.service-card {
    transition: all 0.4s ease;
}

/* 服务背景渐变 */
.service-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.service-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
}

.service-bg-3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.service-bg-4 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
}

.service-bg-5 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.1) 0%, rgba(254, 214, 227, 0.1) 100%);
}

.service-bg-6 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* 服务图标样式 */
.service-icon-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.service-icon-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.service-icon-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.service-icon-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.service-icon-5 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

.service-icon-6 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 服务标题样式 */
.service-title {
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #667eea, #764ba2) bottom left / 0% 2px no-repeat;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    background-size: 100% 2px;
}

/* 服务箭头样式 */
.service-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-arrow-1 {
    color: #667eea;
}

.service-arrow-2 {
    color: #11998e;
}

.service-arrow-3 {
    color: #4facfe;
}

.service-arrow-4 {
    color: #fa709a;
}

.service-arrow-5 {
    color: #a8edea;
}

.service-arrow-6 {
    color: #667eea;
}

/* 返回顶部按钮基础样式（可根据需要扩展） */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.back-to-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: #764ba2;
}
/* 分隔导航和公告，避免重合 */
.notice {
    margin-top: 20px; /* 可根据导航实际高度调整，比如30px、40px */
    clear: both; /* 清除浮动，确保间距生效 */
}
/* 全局导航样式修复：提升层级，避免被覆盖，同时添加底部间距 */
.header {
    position: relative !important; /* 建立定位上下文 */
    z-index: 999 !important; /* 提升层级，确保导航在最上层 */
    margin-bottom: 20px !important; /* 导航底部间距，分隔后续内容 */
    padding: 10px 0 !important; /* 增加内边距，让导航更醒目 */
    background: #fff !important; /* 确保导航有背景，避免透明被穿透 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; /* 可选：添加阴影，增强层次感 */
}

/* 公告区域间距修复（兜底） */
.notice {
    margin-top: 20px !important;
    position: relative !important;
    z-index: 1 !important; /* 确保公告在导航下方 */
}
/* 全局内容区域基础间距，避免与导航重合 */
main, 
.main-container, 
section,
.notice,
.category,
.goods {
    position: relative;
    z-index: 1; /* 确保内容区域层级低于导航 */
    margin-top: 10px; /* 基础顶部间距，可根据需要调整 */
}


/* 分类区域与上方内容的间隔 */
.category {
    margin-top: 40px !important;
    clear: both;
    position: relative;
    z-index: 1;
}

/* 服务板块底部间距 */
#services-section {
    margin-bottom: 30px !important;
}

/* 商品分类区域内部间距 */
.category-section {
    margin-top: 20px !important;
}

/* 导航层级与样式 */
.header {
    position: relative !important;
    z-index: 999 !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
    padding: 10px 0 !important;
}

    /* 响应式适配 */
    @media (max-width: 768px) {
        .service-card .service-icon-wrapper {
            width: 60px !important;
            height: 60px !important;
        }
        .service-card .service-icon-wrapper span {
            font-size: 28px !important;
        }
        .service-title {
            font-size: 1.1rem !important;
        }
    }

    /* 消除默认样式冲突 */
    #services-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #services-section .col-lg-4, #services-section .col-md-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* 响应式适配：不同屏幕下保持网格对齐 */
    @media (max-width: 992px) {
        .service-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }
        .service-card {
            height: 420px !important;
        }
        .service-icon-wrapper {
            width: 60px !important;
            height: 60px !important;
        }
        .service-icon-wrapper span {
            font-size: 28px !important;
        }
        .service-title {
            font-size: 1.1rem !important;
        }
    }

    @media (max-width: 576px) {
        .service-grid {
            grid-template-columns: 1fr;
        }
        .service-card {
            height: 400px !important;
        }
    }

     /* 响应式适配：同步降低不同屏幕下的卡片高度 */
    @media (max-width: 992px) {
        .service-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }
        .service-card {
            height: 350px !important; /* 平板下高度 */
        }
        .service-icon-wrapper {
            width: 60px !important;
            height: 60px !important;
        }
        .service-icon-wrapper span {
            font-size: 28px !important;
        }
        .service-title {
            font-size: 1.1rem !important;
        }
    }

    @media (max-width: 576px) {
        .service-grid {
            grid-template-columns: 1fr;
        }
        .service-card {
            height: 330px !important; /* 手机下高度 */
        }
    }

    /* 消除默认样式冲突 */
    #services-section .service-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }