/*
 * 文件名称：ip-tool.css
 * 作者：wangkai
 * 创作时间：2026-11-26
 * 文件说明：IP 地址查询页面样式（前缀 ipt-），与站点整体 Bootstrap 风格保持一致
 */

.ipt-page {
    max-width: 900px;
    margin: 24px auto 48px;
    color: #24303f;
}

.ipt-head {
    text-align: center;
    margin-bottom: 22px;
}

.ipt-head h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1b2733;
}

.ipt-head p {
    margin: 0;
    font-size: 14px;
    color: #6b7785;
}

/* 卡片 */
.ipt-card {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(31, 45, 61, .04);
}

.ipt-card-primary {
    border-left: 4px solid #2f7cf6;
}

.ipt-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2b3a4b;
    margin-bottom: 14px;
}

.ipt-tag {
    font-size: 12px;
    font-weight: 400;
    color: #2f7cf6;
    background: #eaf2ff;
    border-radius: 999px;
    padding: 2px 10px;
}

/* IP 展示行 */
.ipt-ip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.ipt-ip {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #1f6feb;
    font-family: Menlo, Consolas, "SFMono-Regular", monospace;
    word-break: break-all;
}

.ipt-ip-sm {
    font-size: 20px;
}

/* 获取失败状态 */
.ipt-ip-error {
    font-size: 22px;
    color: #b0322c;
}

.ipt-btn {
    border: 1px solid #2f7cf6;
    background: #2f7cf6;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.ipt-btn:hover {
    background: #1f6fe0;
    border-color: #1f6fe0;
}

.ipt-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ipt-btn-ghost {
    background: #fff;
    color: #2f7cf6;
}

.ipt-btn-ghost:hover {
    background: #eaf2ff;
    color: #1f6fe0;
}

/* 徽标 */
.ipt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.ipt-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f4f8;
    color: #5b6979;
    border: 1px solid #e3e9f0;
}

.ipt-badge-info {
    background: #eaf2ff;
    color: #2f7cf6;
    border-color: #cfe0ff;
}

.ipt-badge-warn {
    background: #fff4e5;
    color: #b25f00;
    border-color: #ffe0b3;
}

/* 信息网格 */
.ipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin-top: 12px;
}

.ipt-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f7;
}

.ipt-k {
    font-size: 12px;
    color: #8a95a3;
}

.ipt-v {
    font-size: 14px;
    color: #24303f;
    word-break: break-all;
}

/* 提示条 */
.ipt-note {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7785;
    background: #f7f9fc;
    border-radius: 6px;
    padding: 10px 12px;
}

.ipt-note-warn {
    background: #fff8ec;
    color: #9a5b00;
    border: 1px solid #ffe3b8;
}

.ipt-note-error {
    background: #fdf1f1;
    color: #b0322c;
    border: 1px solid #f7d4d3;
}

/* 浏览器 UA */
.ipt-ua {
    background: #f7f9fc;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    padding: 12px;
    word-break: break-all;
    font-size: 12px;
    color: #5b6979;
}

/* 说明文本 */
.ipt-doc p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #5b6979;
}

.ipt-doc p:last-child {
    margin-bottom: 0;
}

/* 移动端 */
@media (max-width: 640px) {
    .ipt-page {
        margin: 16px auto 32px;
    }

    .ipt-card {
        padding: 16px;
    }

    .ipt-ip {
        font-size: 22px;
    }

    .ipt-ip-sm {
        font-size: 16px;
    }

    .ipt-grid {
        grid-template-columns: 1fr;
    }
}
