/* ===== 用户中心 / 云服务器管理 美化覆盖（删除本文件引用即可回滚） ===== */
body.inherit {
    --bf-radius: 12px;
    --bf-shadow: 0 1px 2px rgba(15, 35, 95, .04), 0 6px 20px rgba(15, 35, 95, .06);
    --bf-shadow-hover: 0 4px 10px rgba(15, 35, 95, .06), 0 14px 34px rgba(15, 35, 95, .10);
    --bf-line: #edf0f5;
    --bf-soft: #f6f8fc;
}

/* 内容区背景 */
body.inherit .sky-content {
    background: linear-gradient(180deg, #eef3ff 0, #f3f5fa 280px, #f3f5fa 100%);
}

/* 顶部页头 */
body.inherit .sky-container .sky-container-fluid {
    box-shadow: 0 1px 0 var(--bf-line), 0 4px 14px rgba(15, 35, 95, .04);
}
body.inherit .sky-container .sky-container-fluid .breadcrumbsTitle h4 {
    font-size: 17px;
    letter-spacing: .5px;
}

/* ---------- 通用卡片 ---------- */
body.inherit .sky-card {
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(230, 235, 245, .8);
    transition: box-shadow .25s ease, transform .25s ease;
}
body.inherit .sky-card:hover {
    box-shadow: var(--bf-shadow-hover);
}
body.inherit .sky-card .sky-title {
    position: relative;
    padding-left: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
}
body.inherit .sky-card .sky-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #6aa1ff);
}
body.inherit .sky-card.earnCommission .sky-title::before {
    display: none;
}
body.inherit .sky-card.earnCommission .sky-title {
    padding-left: 0;
}

/* ---------- 按钮 / 输入 ---------- */
body.inherit .btn {
    border-radius: 8px;
    transition: all .2s ease;
}
body.inherit .btn-sm {
    border-radius: 6px;
}
body.inherit .btn-outline-primary:hover {
    box-shadow: 0 4px 12px rgba(22, 93, 255, .22);
}
body.inherit .btn-primary {
    box-shadow: 0 4px 12px rgba(22, 93, 255, .22);
}
body.inherit .form-control,
body.inherit .custom-select {
    border-radius: 8px !important;
    transition: border-color .2s, box-shadow .2s;
}
body.inherit .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .12) !important;
}
body.inherit .input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
body.inherit .input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
body.inherit .layui-elem-quote {
    border-radius: 10px;
}
body.inherit .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

/* ---------- 用户中心：用户信息 ---------- */
body.inherit .userInformation {
    background: linear-gradient(120deg, #ffffff 55%, #eef4ff 100%);
}
body.inherit .userInformation .avatar {
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary), #5b9bff) !important;
    box-shadow: 0 8px 20px rgba(22, 93, 255, .28);
    border: 4px solid #fff;
    overflow: hidden;
}
body.inherit .userInformation .avatar img {
    border-radius: 50%;
}
body.inherit .userInformation .binding i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bf-soft);
    transition: all .2s;
}
body.inherit .userInformation .binding i.text-success {
    background: rgba(82, 196, 26, .1);
}
body.inherit .userInformation .binding .agent {
    border-radius: 20px;
    padding: 2px 10px;
}
body.inherit .profile-image-card img {
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(15, 35, 95, .12);
    border: 3px solid #fff;
}

/* ---------- 用户中心：待办统计 ---------- */
body.inherit .NeedToBeDealtWith .sky-card {
    position: relative;
    overflow: hidden;
}
body.inherit .NeedToBeDealtWith .sky-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 93, 255, .10), rgba(22, 93, 255, 0) 70%);
    pointer-events: none;
}
body.inherit .NeedToBeDealtWith .sky-card.sky-flex-70 > .sky-column + .sky-column {
    border-left: 1px dashed var(--bf-line);
    padding-left: 20px;
}
body.inherit .NeedToBeDealtWith .NeedToBeDealtWith-name {
    color: #6b7489;
    font-size: 13px;
}
body.inherit .NeedToBeDealtWith .number {
    font-weight: 700;
    font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .5px;
}
body.inherit .NeedToBeDealtWith .number .unit {
    font-size: 13px;
    font-weight: 400;
    color: #8a93a4;
    margin-left: 2px;
}
body.inherit .NeedToBeDealtWith-details a {
    color: #5a6478;
    transition: color .2s;
}
body.inherit .NeedToBeDealtWith-details a:hover {
    color: var(--primary);
}

/* ---------- 用户中心：已开通产品 ---------- */
body.inherit .opened-xs1 {
    gap: 12px;
}
body.inherit .user-center_product {
    margin: 0 !important;
    border-radius: 10px;
    border: 1px solid var(--bf-line) !important;
    background: linear-gradient(135deg, #fff, var(--bf-soft)) !important;
    transition: all .2s ease;
}
body.inherit .user-center_product:hover {
    border-color: rgba(22, 93, 255, .35) !important;
    box-shadow: 0 6px 16px rgba(22, 93, 255, .12);
    transform: translateY(-2px);
}
body.inherit .user-center_product > span:last-child {
    min-width: 28px;
    padding: 1px 8px;
    border-radius: 20px;
    background: rgba(22, 93, 255, .08);
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    text-align: center;
}

/* ---------- 用户中心：费用信息 / API / 推介 ---------- */
body.inherit .cost-container .info-container {
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--primary), #4f8dff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 93, 255, .25);
}
body.inherit .cost-container .info-container span,
body.inherit .cost-container .info-container h1 {
    color: #fff !important;
}
body.inherit .cost-container .info-container .btn-primary {
    background: #fff !important;
    color: var(--primary) !important;
    border: none;
    box-shadow: none;
    font-weight: 600;
}
body.inherit .cost-container .actions .action {
    border-radius: 8px;
    transition: background .2s;
}
body.inherit .cost-container .actions .action:hover {
    background: var(--bf-soft);
}
body.inherit .ov-block-item {
    border-radius: 8px;
    transition: all .2s;
}
body.inherit .ov-block-item:hover {
    background: rgba(22, 93, 255, .08) !important;
}
body.inherit .ov-block-item.success {
    background: rgba(82, 196, 26, .08) !important;
}
body.inherit .offer-item {
    border-radius: 10px !important;
    background: linear-gradient(160deg, #f6f9ff, #eef3fb) !important;
    border: 1px solid var(--bf-line);
    transition: all .2s;
}
body.inherit .offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 35, 95, .08);
}
body.inherit .offer-item .label {
    border-radius: 20px;
}
body.inherit .newsInformation-list .list_item {
    border-radius: 6px;
    padding: 0 8px !important;
    transition: background .2s;
}
body.inherit .newsInformation-list .list_item:hover {
    background: var(--bf-soft);
}

/* 第三方登录卡片（内联样式） */
body.inherit .sky-container-right .card.mb-4 {
    border-radius: var(--bf-radius) !important;
    border: 1px solid rgba(230, 235, 245, .8) !important;
    box-shadow: var(--bf-shadow);
}
body.inherit .sky-container-right .card.mb-4 .card-title {
    font-size: 15px;
    font-weight: 700;
}
body.inherit .security-item {
    border-bottom: 1px dashed var(--bf-line);
}
body.inherit .security-item:last-child {
    border-bottom: none;
}

/* ---------- 表格（资源列表 / 产品列表） ---------- */
body.inherit .tablelist thead th {
    background: #f5f7fb !important;
    color: #5a6478 !important;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--bf-line) !important;
}
body.inherit .tablelist tbody tr {
    background: #fff !important;
    transition: background .15s ease;
}
body.inherit .tablelist tbody tr:hover {
    background: #f5f8ff !important;
}
body.inherit .tablelist tbody td {
    border-bottom: 1px solid #f1f3f7 !important;
    border-top: none !important;
}
body.inherit .tablelist tbody td strong {
    font-weight: 600;
}
body.inherit .user-center_resources {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bf-line);
}
body.inherit .pagination .page-link {
    border-radius: 6px !important;
    margin: 0 3px;
    min-width: 28px;
    text-align: center;
    color: #5a6478;
}
body.inherit .pagination .active .page-link {
    color: #fff;
    box-shadow: 0 3px 8px rgba(22, 93, 255, .25);
}

/* 产品列表页 */
body.inherit .Product-table .table-container {
    border-radius: var(--bf-radius);
    overflow: hidden;
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(230, 235, 245, .8);
}
body.inherit .Product-table .table-header {
    margin-bottom: 14px;
}
body.inherit .Product-table .server-area {
    background: #fff !important;
    padding: 10px 14px;
    gap: 8px;
    height: auto !important;
    border-bottom: 1px solid var(--bf-line);
}
body.inherit .Product-table .server-area-item {
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 20px;
    background: var(--bf-soft) !important;
    color: #5a6478 !important;
    transition: all .2s;
}
body.inherit .Product-table .server-area-item:hover {
    color: var(--primary) !important;
    background: rgba(22, 93, 255, .08) !important;
}
body.inherit .Product-table .server-area-item.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(22, 93, 255, .25);
}
body.inherit .Product-table .server-area-item.active * {
    color: #fff !important;
}
body.inherit .Product-table .server-area-item::after,
body.inherit .Product-table .server-area-item::before {
    display: none !important;
}
body.inherit .operationButtons .btn {
    border-radius: 8px !important;
}
body.inherit .sky-table-footer {
    background: #fff;
}
body.inherit .numberOfInstances {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 20px;
    background: rgba(22, 93, 255, .08);
    color: var(--primary);
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
}

/* ---------- 云服务器详情 ---------- */
body.inherit .cloudServer-head .machineInformation .Information-content {
    align-items: center;
}
body.inherit .cloudServer-head .machineInformation .Information-content .return i {
    font-size: 22px;
    transition: transform .2s;
}
body.inherit .cloudServer-head .machineInformation .Information-content .return:hover i {
    transform: translateX(-3px);
}
body.inherit .cloudServer-head .machineInformation .Information-content .name {
    font-size: 22px;
    letter-spacing: .3px;
}
body.inherit .cloudServer-head .machineInformation .Information-content .ip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bf-soft);
    border: 1px solid var(--bf-line);
    color: #5a6478;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
}
body.inherit .cloudServer-head .machineInformation .Information-content .ip .btnCopy {
    cursor: pointer;
    color: #9aa3b5;
}
body.inherit .cloudServer-head .machineInformation .Information-content .ip .btnCopy:hover {
    color: var(--primary);
}
body.inherit .cloudServer-head .instanceInformation-itme {
    gap: 8px !important;
    flex-wrap: wrap;
}
body.inherit .cloudServer-head .instanceInformation-itme .itme_button {
    border-radius: 8px !important;
    padding: 5px 14px !important;
    border-color: #dfe4ec !important;
    background: #fff;
    color: #3a4356;
}
body.inherit .cloudServer-head .instanceInformation-itme .itme_button:hover {
    border-color: var(--primary) !important;
    color: var(--primary);
    background: rgba(22, 93, 255, .05);
    box-shadow: 0 3px 10px rgba(22, 93, 255, .12);
}
body.inherit .cloudServer-head .instanceInformation-itme .btn-primary.itme_button {
    color: #fff;
    border-color: transparent !important;
    background: linear-gradient(90deg, var(--primary), #3d8bff);
}
body.inherit .cloudServer-head .machineOptions .nav-tabs-custom {
    gap: 4px;
}
body.inherit .cloudServer-head .machineOptions .nav-tabs-custom .nav-link {
    color: #5a6478 !important;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: color .2s, background .2s;
}
body.inherit .cloudServer-head .machineOptions .nav-tabs-custom .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(22, 93, 255, .05);
}
body.inherit .cloudServer-head .machineOptions .nav-tabs-custom .nav-item .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(22, 93, 255, 0), rgba(22, 93, 255, .06));
}
body.inherit .cloudServer-head .machineOptions .nav-tabs-custom .nav-item .nav-link.active:after {
    height: 3px;
    border-radius: 3px 3px 0 0;
    left: 20%;
    right: 20%;
    width: auto;
}
body.inherit .sky-servicedetail .cloudServer .tab-content > .active {
    border-radius: var(--bf-radius);
}
body.inherit .sky-servicedetail .cloudServer .tab-content > .active.user-outline {
    border-radius: 0;
}

/* 实例信息列表 */
body.inherit .instanceInformation .instanceInformation-row .instanceInformation-itme {
    padding: 10px 0;
    border-bottom: 1px dashed var(--bf-line);
    height: auto !important;
    align-items: center;
}
body.inherit .instanceInformation .instanceInformation-row .instanceInformation-itme:last-child {
    border-bottom: none;
}
body.inherit .instanceInformation .instance-itme-name {
    color: #8a93a4;
}
body.inherit .instanceInformation .instance-itme-desc {
    color: #1f2a44;
    font-weight: 500;
}
body.inherit .instanceInformation .instance-itme-desc img {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
    margin-right: 4px;
}

/* 用量信息 */
body.inherit .usageInformation .progress {
    height: 10px;
    border-radius: 10px;
    background: #eef1f6;
    overflow: hidden;
}
body.inherit .usageInformation .progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #36cfc9, var(--primary)) !important;
    font-size: 9px;
    line-height: 10px;
}
body.inherit .usageInformation .ll-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    body.inherit .sky-card {
        border-radius: 12px;
    }
    body.inherit .sky-card:hover {
        box-shadow: var(--bf-shadow);
    }
    body.inherit .NeedToBeDealtWith .sky-card.sky-flex-70 > .sky-column + .sky-column {
        border-left: none;
        padding-left: 0;
    }
    body.inherit .user-center_product:hover,
    body.inherit .offer-item:hover {
        transform: none;
    }
    body.inherit .user-center_resources,
    body.inherit .Product-table .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.inherit .Product-table .table-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    body.inherit .Product-table .table-header .table-filter {
        max-width: 100%;
        flex-wrap: wrap;
    }
    body.inherit .Product-table .operationButtons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.inherit .Product-table .operationButtons .btn {
        margin: 0 !important;
    }
    body.inherit .Product-table .server-area {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.inherit .Product-table .server-area::-webkit-scrollbar {
        display: none;
    }
    body.inherit .Product-table .server-area-item {
        flex-shrink: 0;
    }
    body.inherit .Product-table .card-body.padding0,
    body.inherit .Product-table .server-area {
        max-width: 100% !important;
        width: 100% !important;
    }
    body.inherit .cloudServer-head .machineInformation {
        flex-wrap: wrap;
        gap: 12px;
    }
    body.inherit .cloudServer-head .machineInformation .Information-content {
        width: 100%;
    }
    body.inherit .cloudServer-head .machineInformation > .instanceInformation-itme {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.inherit .cloudServer-head .machineInformation > .instanceInformation-itme .itme_button {
        width: auto !important;
        margin: 0 !important;
        padding: 0 12px;
    }
    body.inherit .cloudServer-head .machineInformation .Information-content {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    body.inherit .cloudServer-head .machineInformation .Information-content .name {
        font-size: 18px;
    }
    body.inherit .cloudServer-head .machineOptions .nav-tabs-custom {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    body.inherit .cloudServer-head .machineOptions .nav-tabs-custom .nav-link {
        white-space: nowrap;
    }
}
