/* 一站式定制联合管理模块 */
.one-stop-custom-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.one-stop-custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom-category-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.category-title-pill {
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-name {
    padding: 10px 30px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

.category-subtitle {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
}

/* 医疗美容颜色 */
.medical-theme .category-name {
    background: linear-gradient(to right, #d4a76a, #b08d57);
}
.medical-theme .icon-circle {
    background: linear-gradient(135deg, #e5c08a 0%, #b08d57 100%);
}

/* 生活美容颜色 */
.life-theme .category-name {
    background: linear-gradient(to right, #00d2ff, #00a8cc);
}
.life-theme .icon-circle {
    background: linear-gradient(135deg, #4ce2ff 0%, #00a8cc 100%);
}

/* 私密大健康颜色 */
.intimate-theme .category-name {
    background: linear-gradient(to right, #ff758c, #ff7eb3);
}
.intimate-theme .icon-circle {
    background: linear-gradient(135deg, #ffa4b4 0%, #ff7eb3 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
    justify-items: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

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

.icon-circle {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.icon-circle i, .icon-circle img {
    font-size: 36px;
    color: #fff;
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 将非白色图标强制变为白色（适用于纯色PNG） */
}

.icon-circle-img {
    display: block;
}

.one-stop-custom-container--img-only .icon-circle {
    width: auto;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.one-stop-custom-container--img-only .icon-circle__badge {
    display: none;
}

.one-stop-custom-container--img-only .icon-circle img {
    max-width: none;
    max-height: none;
    filter: none;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.icon-circle__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.icon-circle__badge i {
    font-size: 12px;
    color: #fff;
    filter: none;
    max-width: none;
    max-height: none;
}

/* 针对已经带颜色的JPG或PNG取消反色 */
.icon-circle img[src$=".jpg"], 
.icon-circle img[src$=".jpeg"],
.icon-circle img[src*="flaticon"] {
    filter: none;
}

.item-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-name {
        font-size: 20px;
        padding: 8px 20px;
    }
    .category-subtitle {
        font-size: 16px;
        padding: 8px 15px;
    }
    .icon-circle {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }

    .one-stop-custom-container--img-only .icon-circle img {
        width: 65px;
        height: 65px;
    }
    .item-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-title-pill {
        flex-direction: column;
        border-radius: 15px;
    }
    .category-name, .category-subtitle {
        width: 100%;
        text-align: center;
    }
}
