﻿.layui-layer-msg {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.IPTC_Select1 {
    width: 580px;
    height: 46px;
    color: #666;
    padding-left: 20px;
    border: solid #d5d5d5 1px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url(../images/change_select.png) no-repeat scroll 560px center transparent;
    font-size: 16px;
}

.hbapi-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    cursor: pointer;
    width: 130px;
    margin-right: 10px;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

    .hbapi-pill:hover {
        border-color: #3c90ff;
    }

    .hbapi-pill input[type="radio"] {
        display: none;
    }

.hbapi-pill-text {
    /*font-size: 14px;*/
    color: #666;
}

.hbapi-pill input[type="radio"]:checked + .hbapi-pill-text {
    color: #3c90ff;
    font-weight: bold;
}

    .hbapi-pill input[type="radio"]:checked + .hbapi-pill-text::before {
        content: "✓ ";
        color: #3c90ff;
        font-weight: bold;
    }

.hbapi-pill input[type="radio"]:checked ~ .hbapi-pill-text {
    color: #3c90ff;
    font-weight: bold;
}

    .hbapi-pill input[type="radio"]:checked ~ .hbapi-pill-text::before {
        content: "✓ ";
        color: #3c90ff;
        font-weight: bold;
    }

.hbapi-pill:has(input[type="radio"]:checked) {
    border-color: #3c90ff;
    background: #e8f4ff;
}
/* 新增字段样式 */
#ulAuth, #ulSessionType, #ulProxyAddr, #ulProxyPort, #ulProxyUser, #ulProxyPwd, #ulProxyNum, #ulExampleCmd {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.session-time {
    margin-left: 5px;
    color: #999;
}

.session-btn, .proxy-num-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
    margin: 0 5px;
}

.generate-label {
    margin-left: 15px;
    margin-right: 5px;
    color: #666;
}

.copy-cmd-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #3c90ff;
    color: #fff;
    min-width: 100px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    text-align: center; /* 新增：文字居中 */
}


#ulAuth, #ulSessionType, #ulProxyAddr, #ulProxyPort, #ulProxyUser, #ulProxyPwd, #ulProxyNum, #ulExampleCmd {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 0;
}

    #ulAuth .IP_select_bt, #ulSessionType .IP_select_bt, #ulProxyAddr .IP_select_bt,
    #ulProxyPort .IP_select_bt, #ulProxyUser .IP_select_bt, #ulProxyPwd .IP_select_bt,
    #ulProxyNum .IP_select_bt, #ulExampleCmd .IP_select_bt {
        width: 110px;
        text-align: right;
        margin-right: 20px;
        font-weight: bold;
        color: #666;
        font-size: 16px;
    }

.IP_input {
    width: 600px;
    height: 40px;
    border: solid #d5d5d5 1px;
    padding-left: 15px;
    font-size: 14px;
    color: #666;
    border-radius: 4px;
}

.IP_input_small {
    width: 60px;
    height: 40px;
    border: solid #d5d5d5 1px;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-radius: 4px;
}

.IP_input_long {
    flex: 1;
    min-width: 800px;
    height: 40px;
    border: solid #d5d5d5 1px;
    padding-left: 15px;
    font-size: 14px;
    color: #666;
    border-radius: 4px;
}

.session-time {
    margin-left: 8px;
    margin-right: 10px;
    color: #999;
    font-size: 14px;
}

.session-btn, .proxy-num-btn {
    display: inline-block;
    width: 36px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: solid #d5d5d5 1px;
    cursor: pointer;
    background: #fff;
    font-size: 16px;
    color: #666;
    border-radius: 4px;
}

    .session-btn:hover, .proxy-num-btn:hover {
        background: #f5f5f5;
        border-color: #3c90ff;
        color: #3c90ff;
    }

.generate-label {
    margin-left: 20px;
    margin-right: 10px;
    color: #666;
    font-size: 16px;
}

.copy-cmd-btn {
    display: inline-block;
    padding: 2px 25px;
    background-image: linear-gradient(to right,#3c90ff,#54b6ff);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    font-size: 16px;
    border: 0;
}

    .copy-cmd-btn:hover {
        opacity: 0.9;
    }

#ulSessionType label {
    margin-right: 15px;
    cursor: pointer;
}

#ulSessionType input[type="radio"] {
    margin-right: 5px;
}

#ulBtn {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 0;
}

    #ulBtn .IP_select_bt {
        width: 110px;
        text-align: right;
        margin-right: 20px;
        font-weight: bold;
        color: #666;
        font-size: 16px;
    }

    #ulBtn li:last-child {
        display: flex;
        gap: 10px;
    }

    #ulBtn .copy-cmd-btn {
        margin-left: 0;
    }

#ulResult .IP_select_bt {
    width: 110px;
    text-align: right;
    margin-right: 20px;
    font-weight: bold;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 200px;
}

#ulResult .API_Keywords {
    width: 1045px;
    min-width: 500px;
    height: 200px;
    line-height: 25px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hbapi-card-body {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 5px 20px;
    margin-bottom: 20px;
}

.hbapi-doc h5 {
    background: linear-gradient(to right, #3c90ff, #54b6ff);
    color: #fff;
    padding: 10px 15px;
    margin: 0 -20px 15px -20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.hbapi-doc-line {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 24px;
}

.hbapi-doc-url {
    color: #3c90ff;
    font-family: monospace;
    font-weight: bold;
}

.badge-get {
    background: #5cb85c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.hbapi-doc-caption {
    font-size: 13px;
    color: #666;
    line-height: 20px;
}

.hbapi-doc-paramtbl,
.hbapi-doc-fieldtbl,
.hbapi-doc-codetbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

    .hbapi-doc-paramtbl th,
    .hbapi-doc-fieldtbl th,
    .hbapi-doc-codetbl th {
        background: #f5f5f5;
        padding: 10px 12px;
        text-align: left;
        font-weight: bold;
        border: 1px solid #ddd;
        font-size: 14px;
    }

    .hbapi-doc-paramtbl td,
    .hbapi-doc-fieldtbl td,
    .hbapi-doc-codetbl td {
        padding: 10px 12px;
        border: 1px solid #ddd;
        font-size: 14px;
        line-height: 20px;
    }

    .hbapi-doc-paramtbl tr:nth-child(even),
    .hbapi-doc-fieldtbl tr:nth-child(even),
    .hbapi-doc-codetbl tr:nth-child(even) {
        background: #f9f9f9;
    }

.hbapi-doc-pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.hbapi-doc-pre--classic {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}

.hbapi-ex-json-block,
.hbapi-ex-txt-block {
    margin-bottom: 20px;
}

.hbapi-doc-errtitle {
    background: linear-gradient(to right, #f0ad4e, #f5c878) !important;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 15px;
}

#dvApiPara {
    margin-bottom: 30px;
    clear: both;
    overflow: hidden;
}

.hbapi-card-body {
    clear: both;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.hbapi-doc h5 {
    background: none;
    color: #333;
    padding: 0 0 10px 0;
    margin: 20px 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    /*        border-bottom: 2px solid #3c90ff;*/
    border-radius: 0;
}

    .hbapi-doc h5:first-child {
        margin-top: 0;
    }

.hbapi-doc-line {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 28px;
    color: #444;
}

.hbapi-doc-url {
    color: #007bff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

.badge-get {
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    font-family: monospace;
}

.hbapi-doc-caption {
    font-size: 15px;
    color: #555;
    line-height: 26px;
    margin-bottom: 10px;
}

.hbapi-doc-paramtbl,
.hbapi-doc-fieldtbl,
.hbapi-doc-codetbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 15px;
}

    .hbapi-doc-paramtbl th,
    .hbapi-doc-fieldtbl th,
    .hbapi-doc-codetbl th {
        background: #e9ecef;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        border: 1px solid #dee2e6;
        color: #333;
    }

    .hbapi-doc-paramtbl td,
    .hbapi-doc-fieldtbl td,
    .hbapi-doc-codetbl td {
        padding: 12px 15px;
        border: 1px solid #dee2e6;
        line-height: 22px;
        color: #444;
    }

    .hbapi-doc-paramtbl tr:nth-child(even),
    .hbapi-doc-fieldtbl tr:nth-child(even),
    .hbapi-doc-codetbl tr:nth-child(even) {
        background: #fff;
    }

    .hbapi-doc-paramtbl tr:nth-child(odd),
    .hbapi-doc-fieldtbl tr:nth-child(odd),
    .hbapi-doc-codetbl tr:nth-child(odd) {
        background: #f8f9fa;
    }

.hbapi-doc-pre {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 16px;
    margin: 12px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #d4d4d4;
}

.hbapi-doc-pre--classic {
    background: #1e1e1e;
    color: #d4d4d4;
    border-color: #333;
}

.hbapi-ex-json-block,
.hbapi-ex-txt-block {
    margin-bottom: 25px;
}

.hbapi-doc-errtitle {
    border-bottom-color: #f0ad4e !important;
}
