.tool-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}
.tool-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #222;
}
.tool-desc {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 15px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 28px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    margin-top: 20px;
}
.form-group {
    margin-bottom: 22px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}
.form-control {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
}
.tip {
    font-size: 12px;
    color: #909399;
    margin-top: 6px;
}
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.btn {
    flex: 1;
    height: 46px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-primary {
    background: #409eff;
    color: #fff;
}
.btn-primary:hover {
    background: #338eef;
}
.btn-primary:disabled {
    background: #a0cfff;
    cursor: not-allowed;
}
.btn-default {
    background: #f5f7fa;
    color: #666;
    border: 1px solid #e4e7ed;
}
.btn-default:hover {
    background: #e9edf2;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.result-title {
    font-size: 18px;
    font-weight: 500;
}
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: normal;
}
.badge-default {
    background: #f5f7fa;
    color: #909399;
}
.badge-primary {
    background: #ecf5ff;
    color: #409eff;
}
.badge-success {
    background: #f0f9ff;
    color: #00b42a;
}
/* 单个IP结果容器 */
.ip-result-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.ip-result-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}
.ip-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.port-list {
    max-height: 260px;
    overflow-y: auto;
}
.result-item {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    background: #fff;
    border: 1px solid #f0f2f5;
}
.item-open {
    border-left: 3px solid #00b42a;
}
.item-close {
    border-left: 3px solid #f53f3f;
}
.tag {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.tag-open {
    background: #e6ffed;
    color: #00b42a;
}
.tag-close {
    background: #fee7e6;
    color: #f53f3f;
}
.empty {
    text-align: center;
    padding: 50px 0;
    color: #999;
}
.empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}
.port-list::-webkit-scrollbar {
    width: 5px;
}
.port-list::-webkit-scrollbar-thumb {
    background: #dcdfe6;
    border-radius: 3px;
}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width: 768px) {
    .btn-group {flex-direction: column;}
    .card {padding: 20px;}
    .ip-result-wrap {grid-template-columns: 1fr;}
}