.isp-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.isp-dianxin {
    background-color: #4caf50;
}

/* 电信：绿色 */
.isp-liantong {
    background-color: #ff9800;
}

/* 联通：橙色 */
.isp-yidong {
    background-color: #2196f3;
}

/* 移动：蓝色 */
.isp-haiwai {
    background-color: #9c27b0;
}

/* 海外：紫色 */
.isp-duoxian {
    background-color: #795548;
}

/* 多线：棕色 */
.isp-qita {
    background-color: #9e9e9e;
}

/* 其他：灰色 */
.isp-gangaotai {
    background-color: #9c27b0;
}

/* 港澳台：灰色 */

#historyPanel {
    /* width: 100%; */
    /* width: 83.3%; */
    width: 77.9%;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.search-history-panel {
    position: absolute;
    top: 100%;
    /* left: 120px; */
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 12px 15px;
    /* border-bottom: 1px solid #f0f0f0; */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    height: 30px;
}

.history-item:hover {
    /* background-color: #f8f9fa; */
    background-color: #f0f7ff;
    color: #4192e7;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .text {
    flex-grow: 1;
}

.history-item .remove {
    color: #e74c3c;
    opacity: 0.7;
    padding: 5px;
}

.history-item .remove:hover {
    opacity: 1;
}

.empty-history {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    display: none;
}

.clear-all-container {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-all-btn:hover {
    background-color: #ffeaea;
}

.btn-primary,
.btn-slow,
.btn-advanced {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    margin-right: 10px;
    cursor: pointer;
    line-height: 1;
    position: relative;
    border-radius: 5px;
    gap: 6px;
    vertical-align: middle;
    height: 36px;
    box-sizing: border-box;
}

.btn-primary {
    background: #1b8efc;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: #0a7ae0;
}

.btn-slow {
    color: white;
    background: #ffba57;
    border: 1px solid #dcdfe6;
}

.btn-slow:hover {
    background: #f0a746;
}

.btn-advanced {
    color: #1b8efc;
    background: #fff;
    border: 1px solid #dcdfe6;
    user-select: none;
}

.btn-advanced:hover {
    background: #f5f7fa;
}

.btn-screenshot {
    color: white;
    background: #ffba57;
    font-size: 14px;
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    cursor: pointer;
    line-height: 22px;
    position: relative;
    border-radius: 5px;
    border: 1px solid #dcdfe6;
}

.btn-screenshot:hover {
    background: #f0a746;
}

.instructions {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.instructions ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.instructions li {
    margin-bottom: 8px;
    color: #7f8c8d;
}