/* --- code_zip_tool.php --- */
.tool-ip-page.tool-codezip-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-codezip-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-codezip-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 22px 18px;
    background: #fff;
}
.tool-codezip-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}
.tool-codezip-toolbar .layui-btn { border-radius: 3px; }
.tool-codezip-toolbar .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-codezip-toolbar .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-codezip-meta {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    flex: 1 1 160px;
}
.tool-codezip-err {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #b71c1c;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.tool-codezip-err.tool-codezip-err--show { display: block; }
.tool-codezip-ta-wrap {
    flex: 1 1 auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tool-codezip-ta-wrap textarea.tool-codezip-ta {
    flex: 1 1 auto;
    width: 100%;
    min-height: 260px;
    padding: 12px 14px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
}
.tool-codezip-ta-wrap textarea.tool-codezip-ta:focus {
    outline: none;
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}

/* --- codec_tool.php --- */
.tool-ip-page.tool-codec-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-codec-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-codec-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 22px 18px;
    background: #fff;
}
.tool-codec-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}
.tool-codec-toolbar .layui-btn { border-radius: 3px; }
.tool-codec-toolbar .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-codec-toolbar .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-codec-meta {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    flex: 1 1 160px;
}
.tool-codec-err {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #b71c1c;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.tool-codec-err.tool-codec-err--show { display: block; }
.tool-codec-field {
    margin-bottom: 12px;
}
.tool-codec-field:last-of-type { margin-bottom: 0; }
.tool-codec-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.tool-codec-ta {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
}
.tool-codec-ta:focus {
    outline: none;
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-codec-ta--out { min-height: 120px; background: #f8fafc; }

/* --- flex.php --- */
/* 在线工具详情外壳 / 表单行（与 tool_head 共用） */
.tool-ip-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0px 0 40px;
    box-sizing: border-box;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }

.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-ip-shell-main {
    padding: 18px 22px 22px;
    background: #fff;
}
.tool-ip-shell-alert-wrap { padding: 0 22px 16px; }

.tool-ip-form .layui-form-item { margin-bottom: 0; }
.tool-ip-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.tool-ip-form-row .layui-input {
    flex: 1;
    min-width: 180px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.tool-ip-form-row .layui-input:focus {
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-ip-form-row .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    border-radius: 3px;
    font-size: 14px;
    background: #1989fa;
    border: none;
}
.tool-ip-form-row .layui-btn:hover { filter: brightness(1.05); }

/* 与 time 工具共用 .tool-time-h3 等 */
.tool-time-main .tool-time-h3 {
    margin: 22px 0 12px;
    padding: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e2e8f0;
}
.tool-time-main .tool-time-h3:first-child { margin-top: 0; }
.tool-time-hint { margin: 0 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.55; }
.tool-time-article { margin-top: 16px; }
.tool-time-prose { font-size: 14px; color: #64748b; line-height: 1.85; margin: 0 0 16px; }
.tool-time-prose p { margin: 0 0 12px; }
.tool-time-prose code { font-size: 12px; padding: 1px 4px; background: #f1f5f9; color: #475569; border-radius: 2px; }

/* Flex 布局调试 url=flex */
.tool-flex-main .tool-time-h3 { margin-top: 18px; }
.tool-flex-main .tool-time-h3:first-child { margin-top: 0; }
.tool-flex-inline-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e4976;
    border-left: 4px solid #1989fa;
    padding-left: 10px;
    line-height: 1.35;
}
.tool-flex-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: flex-start;
}
.tool-flex-layout > .tool-flex-controls {
    flex: 1 1 280px;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}
.tool-flex-layout > .tool-flex-preview-col {
    flex: 1 1 480px;
    min-width: 0;
    box-sizing: border-box;
}
.tool-flex-controls { min-width: 0; }
.tool-flex-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}
.tool-flex-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tool-flex-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tool-flex-section-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool-flex-hint { margin: 0 0 12px; }
.tool-flex-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tool-flex-opt {
    padding: 6px 11px;
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tool-flex-opt:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.tool-flex-opt--active {
    background: #e8f4ff;
    border-color: #1989fa;
    color: #1989fa;
    font-weight: 600;
}
.tool-flex-child-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.tool-flex-tab {
    padding: 5px 10px;
    font-size: 12px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}
.tool-flex-tab:hover { border-color: #93c5fd; color: #1989fa; }
.tool-flex-tab--active {
    background: #1989fa;
    border-color: #1989fa;
    color: #fff;
}
.tool-flex-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tool-flex-field-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.tool-flex-input.layui-input {
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    border-radius: 3px;
}
.tool-flex-preview-col { min-width: 0; }
.tool-flex-preview-title { margin-top: 0; }
.tool-flex-preview-wrap {
    border: 1px dashed #cbd5e1;
    border-radius: 3px;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 12px 12px;
    background-color: #f8fafc;
    padding: 12px;
    min-height: 240px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}
.tool-flex-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 200px;
    box-sizing: border-box;
}
/* 固定子项主轴尺寸，留出「剩余空间」，主轴对齐才肉眼可见 */
.tool-flex-item {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 72px;
    min-width: 0;
    min-height: 48px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    line-height: 1.3;
    word-break: break-all;
}
.tool-flex-child-panes {
    min-height: 0;
}
.tool-flex-pane {
    display: none;
}
.tool-flex-pane.tool-flex-pane--active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.tool-flex-pane.tool-flex-pane--active > .tool-flex-field {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}
.tool-flex-css {
    margin: 0;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow-y: auto;
}
.tool-flex-help { margin-top: 20px; }
.tool-flex-prose strong { color: #334155; }
@media (max-width: 960px) {
    .tool-flex-layout > .tool-flex-controls,
    .tool-flex-layout > .tool-flex-preview-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --- index.index.php --- */
/* 在线工具列表 /tool */
.tool-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 0 48px;
    box-sizing: border-box;
}
.tool-page-title { font-size: 18px; margin: 0 0 16px; font-weight: 600; color: #222; }
.tool-page .layui-row {
    display: flex;
    flex-wrap: wrap;
}
.tool-page .layui-row > [class*="layui-col-"] {
    display: flex;
    flex-direction: column;
}
a.tool-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
    padding: 18px 18px 16px;
    border: var(--surface-border);
    border-radius: 3px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--surface-shadow);
    box-sizing: border-box;
}
a.tool-card:hover {
    background: linear-gradient(155deg, #f0f7ff 0%, #ffffff 42%, #e8f3ff 100%);
    border-color: rgba(25, 137, 250, 0.2);
    box-shadow: 0 2px 10px rgba(25, 137, 250, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
    color: inherit;
}
a.tool-card:hover .tool-card-title {
    color: #1989fa;
}
.tool-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.35;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.tool-card-desc {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.6;
    min-height: calc(1.6em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
}
.tool-card-desc--empty {
    color: transparent;
}

/* --- ip.php --- */
/* 在线工具详情外壳 / 表单行（与 tool_head 共用） */
.tool-ip-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0px 0 40px;
    box-sizing: border-box;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }

.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-ip-shell-main {
    padding: 18px 22px 22px;
    background: #fff;
}
.tool-ip-shell-alert-wrap { padding: 0 22px 16px; }

.tool-ip-form .layui-form-item { margin-bottom: 0; }
.tool-ip-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.tool-ip-form-row .layui-input {
    flex: 1;
    min-width: 180px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.tool-ip-form-row .layui-input:focus {
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-ip-form-row .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    border-radius: 3px;
    font-size: 14px;
    background: #1989fa;
    border: none;
}
.tool-ip-form-row .layui-btn:hover { filter: brightness(1.05); }

/* IP 查询工具 url=ip */
.tool-ip-alert {
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #c62828;
    font-size: 13px;
}

.tool-ip-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}
.tool-ip-lead-ip {
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: clamp(18px, 3.5vw, 22px);
    font-weight: 600;
    color: #1e3a5f;
    letter-spacing: 0.02em;
    word-break: break-all;
    line-height: 1.35;
}
.tool-ip-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border: var(--surface-border);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}
.tool-ip-tag--sm {
    padding: 1px 6px;
    font-size: 11px;
}
.tool-ip-tag--spider {
    color: #0d47a1;
    font-weight: 600;
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 55%, #e1f5fe 100%);
    border: 1px solid #64b5f6;
    box-shadow: 0 1px 1px rgba(13, 71, 161, 0.08);
}
.tool-ip-spider-note {
    margin: 0 0 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}
.tool-ip-ptr-wrap {
    margin: 0 0 12px;
}
.tool-ip-ptr-head {
    margin-bottom: 6px;
}
.tool-ip-ptr-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-right: 8px;
}
.tool-ip-ptr-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    line-height: 1.45;
}
.tool-ip-ptr-line {
    margin: 0;
    padding: 8px 10px;
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    word-break: break-all;
    background: #fafafa;
    border-radius: 3px;
    border: var(--surface-border);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.tool-ip-kv {
    margin: 0;
    padding: 0;
    border-top: var(--divider-soft);
}
.tool-ip-kv-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    align-items: flex-start;
}
.tool-ip-kv-row:last-child { border-bottom: none; }
.tool-ip-kv-row dt {
    margin: 0;
    padding-top: 1px;
    color: #999;
    font-weight: 400;
    font-size: 13px;
    flex: 0 0 72px;
    max-width: 72px;
}
.tool-ip-kv-row dd {
    margin: 0;
    color: #475569;
    line-height: 1.5;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}
.tool-ip-kv-row dd strong { color: #334155; font-weight: 600; }
.tool-ip-kv-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}
.tool-ip-kv-asn { font-size: 13px; color: #666; }
.tool-ip-shell .muted { color: #bbb; }

.tool-ip-footnote {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: #999;
    line-height: 1.55;
    text-align: left;
}
.tool-ip-footnote code {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #eee;
}

.tool-ip-shell-recent {
    margin-top: 16px;
    padding: 16px 20px 18px;
}
.tool-ip-shell-recent .tool-ip-recent-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.tool-ip-shell-recent .tool-ip-recent-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}
.tool-ip-recent-empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    background: #fafafa;
    border-radius: 3px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}
.tool-ip-recent-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tool-ip-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.tool-ip-recent-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 6px;
}
.tool-ip-recent-ip {
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.tool-ip-recent-ip:hover { text-decoration: underline; color: #0958d9; }
.tool-ip-recent-summary {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    word-break: break-word;
}
.tool-ip-recent-ptr-wrap {
    margin: 8px 0 0;
}
.tool-ip-recent-ptr-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
}
.tool-ip-recent-ptr {
    margin: 0;
    padding: 6px 8px;
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: 11px;
    color: #555;
    line-height: 1.45;
    word-break: break-all;
    background: #fafafa;
    border-radius: 3px;
    border: var(--surface-border);
}

@media (max-width: 520px) {
    .tool-ip-kv-row { gap: 6px 10px; }
    .tool-ip-kv-row dt { flex-basis: 64px; max-width: 64px; }
    .tool-ip-shell-top, .tool-ip-shell-main, .tool-ip-shell-alert-wrap, .tool-ip-shell-recent {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* --- json.php --- */
/* 在线工具详情外壳（与 tool_head 共用） */
.tool-ip-page.tool-json-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-json-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-json-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0; 
    background: #fff;
}
/* 注入到 jsoneditor-menu 的模式切换（蓝条上白字） */
.tool-json-editor-wrap .jsoneditor-menu .tool-json-menu-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin: 0 6px 0 2px;
    background: rgba(255, 255, 255, 0.35);
    vertical-align: middle;
    flex-shrink: 0;
    align-self: center;
}
.tool-json-editor-wrap .jsoneditor-menu .tool-json-toolbar-modes {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    vertical-align: middle;
    margin-top: 2px;
}
.tool-json-editor-wrap .jsoneditor-menu .tool-json-mode-btn {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.tool-json-editor-wrap .jsoneditor-menu .tool-json-mode-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.75);
}
.tool-json-editor-wrap .jsoneditor-menu .tool-json-mode-btn--active {
    border-color: #fff;
    border-width: 2px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.52);
    color: #0d47a1;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.tool-json-editor-wrap .jsoneditor-menu .tool-json-mode-btn--active:hover {
    background: rgba(255, 255, 255, 0.58);
    color: #0d47a1;
    border-color: #fff;
}
.tool-json-err {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #b71c1c;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.tool-json-err.tool-json-err--show { display: block; }
.tool-json-editor-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 1px solid #e2e8f0;  
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}
.tool-json-editor-wrap .jsoneditor {
    border: none;
    height: 100% !important;
}
/* 勿覆盖浅色底：jsoneditor 默认菜单为蓝底白字；若只改背景不改 color，会出现白字 */
.tool-json-editor-wrap .jsoneditor-menu {
    background-color: #3883fa;
    border-bottom: 1px solid #2d6fd4;
    color: #fff;
    height: auto;
    min-height: 35px;
    overflow: visible;
}
/* 内置图标按钮旁加中文（由 JS 注入 .tool-json-menu-label）
   雪碧图若画在整个 button 上，加宽后会露出相邻图块；改为在固定 24×24 的 ::before 里绘制图标 */
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled {
    width: auto !important;
    min-height: 26px;
    line-height: 26px;
    padding: 0 10px 0 8px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    float: left;
    box-sizing: border-box;
    background-image: none !important;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("/static/tool/jsoneditor/img/jsoneditor-icons.svg");
    background-repeat: no-repeat;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-collapse-all::before {
    background-position: 0 -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-expand-all::before {
    background-position: 0 -120px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-sort::before {
    background-position: -120px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-transform::before {
    background-position: -144px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-undo:not(:disabled)::before {
    background-position: -24px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-undo:disabled::before {
    background-position: -24px -120px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-redo:not(:disabled)::before {
    background-position: -48px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-redo:disabled::before {
    background-position: -48px -120px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-compact::before {
    background-position: -72px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-format::before {
    background-position: -72px -120px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled.jsoneditor-repair::before {
    background-position: -96px -96px;
}
.tool-json-editor-wrap .jsoneditor-menu > button.tool-json-menu-btn--labeled .tool-json-menu-label {
    flex: 0 1 auto;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}
.tool-json-editor-wrap .jsoneditor-menu > button,
.tool-json-editor-wrap .jsoneditor-menu > .jsoneditor-modes > button {
    color: #fff;
}
/* 隐藏内置「模式」下拉，改用注入到 jsoneditor-menu 的四个按钮 */
.tool-json-editor-wrap .jsoneditor-menu > .jsoneditor-modes,
.tool-json-editor-wrap .jsoneditor-anchor {
    display: none !important;
}

/* --- openurl.php --- */
.tool-ip-page.tool-openurl-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-openurl-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-openurl-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 22px 18px;
    background: #fff;
}
.tool-openurl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.tool-openurl-toolbar .layui-btn { border-radius: 3px; }
.tool-openurl-toolbar .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-openurl-toolbar .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-openurl-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    user-select: none;
}
.tool-openurl-opt input { vertical-align: middle; }
.tool-openurl-meta {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    flex: 1 1 200px;
}
.tool-openurl-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    flex-shrink: 0;
}
.tool-openurl-err {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #b71c1c;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.tool-openurl-err.tool-openurl-err--show { display: block; }
.tool-openurl-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    flex-shrink: 0;
}
/* 文本框区域占满主栏剩余高度 */
.tool-openurl-field {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-openurl-ta {
    flex: 1 1 auto;
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
}
.tool-openurl-ta:focus {
    outline: none;
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}

/* --- time.php --- */
/* 在线工具详情外壳 / 表单行（与 tool_head 共用） */
.tool-ip-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0px 0 40px;
    box-sizing: border-box;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }

.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-ip-shell-main {
    padding: 18px 22px 22px;
    background: #fff;
}
.tool-ip-shell-alert-wrap { padding: 0 22px 16px; }

.tool-ip-form .layui-form-item { margin-bottom: 0; }
.tool-ip-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.tool-ip-form-row .layui-input {
    flex: 1;
    min-width: 180px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.tool-ip-form-row .layui-input:focus {
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-ip-form-row .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    border-radius: 3px;
    font-size: 14px;
    background: #1989fa;
    border: none;
}
.tool-ip-form-row .layui-btn:hover { filter: brightness(1.05); }

/* Unix 时间戳工具 url=time */
.tool-time-main .tool-time-h3 {
    margin: 22px 0 12px;
    padding: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e2e8f0;
}
.tool-time-main .tool-time-h3:first-child { margin-top: 0; }
.tool-time-rows {
    border: 1px solid #e8edf3;
    border-radius: 3px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 4px;
}
.tool-time-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 14px;
}
.tool-time-row .tool-time-label {
    flex: 0 0 140px;
    width: 140px;
    max-width: 40%;
}
.tool-time-row > *:not(.tool-time-label) {
    flex: 1 1 auto;
    min-width: 0;
}
.tool-time-row:last-child { border-bottom: none; }
.tool-time-row--btn { background: #fff; }
.tool-time-label { color: #64748b; font-size: 13px; font-weight: 500; }
.tool-time-mono {
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: #334155;
    word-break: break-all;
}
.tool-time-hint { margin: 0 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.55; }
.tool-time-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 16px;
}
.tool-time-form .layui-input {
    flex: 1;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.tool-time-form .layui-btn { height: 36px; line-height: 36px; }
.tool-time-form--dt .layui-input { min-width: 240px; }
.tool-time-result {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
.tool-time-result-line { margin: 0 0 8px; }
.tool-time-result-line:last-child { margin-bottom: 0; }
.tool-time-err { color: #c62828; }
.tool-time-article { margin-top: 16px; }
.tool-time-prose { font-size: 14px; color: #64748b; line-height: 1.85; margin: 0 0 16px; }
.tool-time-prose p { margin: 0 0 12px; }
.tool-time-prose code { font-size: 12px; padding: 1px 4px; background: #f1f5f9; color: #475569; border-radius: 2px; }
.tool-time-table-wrap { overflow-x: auto; margin: 0 -4px; }
.tool-time-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-time-table th,
.tool-time-table td { border: 1px solid #e2e8f0; padding: 9px 11px; text-align: left; vertical-align: top; }
.tool-time-table th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: none;
}
.tool-time-table td { color: #475569; }
.tool-time-table code { font-size: 12px; word-break: break-all; color: #334155; }

@media (max-width: 520px) {
    .tool-time-row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .tool-time-row .tool-time-label {
        flex: none;
        width: auto;
        max-width: none;
    }
    .tool-time-label { font-weight: 600; color: #64748b; }
}

/* --- txtduibi.php --- */
body > .main.page-tool-txtduibi {
    max-width: 100%;
}
.tool-ip-page.tool-txtduibi-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-txtduibi-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-txtduibi-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0; 
    background: #fff;
}
.tool-txtduibi-hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    flex: 1 1 220px;
    min-width: 0;
    text-align: right;
}
.tool-txtduibi-hint code {
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 2px;
    background: #f1f5f9;
    color: #334155;
}
.tool-txtduibi-hint .tool-txtduibi-hint-cred {
    color: #c62828;
    font-weight: 600;
}
.tool-txtduibi-hint .tool-txtduibi-hint-cblue {
    color: #1565c0;
    font-weight: 600;
}
.tool-txtduibi-hint .tool-txtduibi-hint-cborder {
    color: #334155;
    font-weight: 600;
    padding: 0 4px;
    border: 1px solid #64748b;
    border-radius: 2px;
    box-sizing: border-box;
}
.tool-txtduibi-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    flex-shrink: 0;
    padding: 10px 12px;   
    background: #f8fafc;
    box-sizing: border-box;
}
.tool-txtduibi-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}
.tool-txtduibi-toolbar .layui-btn { border-radius: 3px; }
.tool-txtduibi-toolbar .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-txtduibi-toolbar .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-txtduibi-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    user-select: none;
}
.tool-txtduibi-opt input { vertical-align: middle; }
.tool-txtduibi-compare-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
    height: min(68vh, 780px);
    max-height: 900px;
    min-width: 0;
    position: relative; 
    overflow: visible;
    box-sizing: border-box;
    background: #fafbfc;
    padding-bottom:5px;
}
.tool-txtduibi-compare-inner {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #fafbfc;
}
#toolTxtDuibiCompare {
    height: 100%;
    min-height: 280px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .tool-txtduibi-bar {
        align-items: flex-start;
    }
    .tool-txtduibi-hint {
        flex: 1 1 100%;
        text-align: left;
    }
}
.tool-txtduibi-page .mergely-editor .CodeMirror {
    font-family: Consolas, "Courier New", monospace, "Microsoft YaHei", sans-serif;
    font-size: 13px;
}

/* --- txtmake.php --- */
.tool-ip-page.tool-txtmake-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-txtmake-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-txtmake-main {
    padding: 14px 22px 18px;
    background: #fff;
}
.tool-txtmake-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.tool-txtmake-ta {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    font-family: Consolas, "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
}
.tool-txtmake-ta:focus {
    outline: none;
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-txtmake-ta--out { min-height: 180px; background: #f8fafc; }
.tool-txtmake-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}
.tool-txtmake-quick-label {
    font-size: 12px;
    color: #64748b;
    margin-right: 4px;
}
.tool-txtmake-quick .layui-btn-xs {
    padding: 0 8px;
    height: 26px;
    line-height: 24px;
    font-size: 12px;
    border-radius: 3px;
}
.tool-txtmake-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 14px;
}
.tool-txtmake-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
.tool-txtmake-field input[type="number"] {
    width: 88px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    font-size: 13px;
    box-sizing: border-box;
}
.tool-txtmake-field input:focus {
    border-color: #1989fa;
    outline: none;
}
.tool-txtmake-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tool-txtmake-actions .layui-btn { border-radius: 3px; }
.tool-txtmake-actions .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-txtmake-actions .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-txtmake-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.55;
}
.tool-txtmake-err {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 3px;
    background: #fff7f7;
    border: 1px solid #f0c0c0;
    color: #b71c1c;
    font-size: 13px;
}
.tool-txtmake-err--show { display: block; }
.tool-txtmake-section { margin-bottom: 16px; }
.tool-txtmake-section:last-child { margin-bottom: 0; }

/* --- txtquchong.php --- */
.tool-ip-page.tool-txtqc-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}
.tool-txtqc-page .tool-ip-shell.tool-detail-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }
.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-txtqc-main { padding: 14px 22px 18px; background: #fff; }
.tool-txtqc-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.tool-txtqc-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    font-size: 14px;
    color: #334155;
}
.tool-txtqc-stats strong { color: #1989fa; font-weight: 700; }
.tool-txtqc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tool-txtqc-toolbar .layui-btn { border-radius: 3px; }
.tool-txtqc-toolbar .layui-btn-normal {
    background: #1989fa !important;
    border-color: #1989fa !important;
    color: #fff !important;
}
.tool-txtqc-toolbar .layui-btn-primary {
    background: #fff !important;
    border: 1px solid #1989fa !important;
    color: #1989fa !important;
}
.tool-txtqc-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.tool-txtqc-ta {
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    font-family: Consolas, "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical;
    color: #1e293b;
    background: #fafbfc;
}
.tool-txtqc-ta:focus {
    outline: none;
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-txtqc-ta--out { min-height: 160px; background: #f8fafc; }
.tool-txtqc-section { margin-bottom: 16px; }
.tool-txtqc-section:last-child { margin-bottom: 0; }

/* --- ua.php --- */
/* 在线工具详情外壳 / 表单行（与 tool_head 共用） */
.tool-ip-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0px 0 40px;
    box-sizing: border-box;
}
.tool-ip-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.tool-ip-back:hover { color: #1989fa; }
.tool-ip-back .layui-icon { font-size: 14px; }

.tool-ip-shell,
.tool-detail-shell {
    background: #fff;
    border: var(--surface-border);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.tool-ip-shell-top,
.tool-detail-head {
    padding: 20px 22px 18px;
    background: #fff;
    border-bottom: var(--divider-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-ip-shell-head,
.tool-detail-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 24px;
}
.tool-ip-shell-head .tool-ip-page-h1,
.tool-detail-head-row .tool-detail-page-h1 {
    margin: 0;
    padding-left: 14px;
    margin-left: -4px;
    border-left: 4px solid #1989fa;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
    max-width: 100%;
}
.tool-ip-shell-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.tool-ip-shell-head .tool-ip-shell-desc,
.tool-detail-head-row .tool-detail-desc {
    margin: 0;
    flex: 1 1 220px;
    min-width: min(100%, 200px);
    max-width: min(56%, 520px);
    margin-left: auto;
    text-align: right;
}
@media (max-width: 640px) {
    .tool-ip-shell-head .tool-ip-shell-desc,
    .tool-detail-head-row .tool-detail-desc {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}
.tool-ip-shell-main {
    padding: 18px 22px 22px;
    background: #fff;
}
.tool-ip-shell-alert-wrap { padding: 0 22px 16px; }

.tool-ip-form .layui-form-item { margin-bottom: 0; }
.tool-ip-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.tool-ip-form-row .layui-input {
    flex: 1;
    min-width: 180px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.tool-ip-form-row .layui-input:focus {
    border-color: #1989fa;
    box-shadow: 0 0 0 2px rgba(25, 137, 250, 0.12);
}
.tool-ip-form-row .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    border-radius: 3px;
    font-size: 14px;
    background: #1989fa;
    border: none;
}
.tool-ip-form-row .layui-btn:hover { filter: brightness(1.05); }

/* Unix 时间戳工具（表格等，与 time 页共用类名） */
.tool-time-main .tool-time-h3 {
    margin: 22px 0 12px;
    padding: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #e2e8f0;
}
.tool-time-main .tool-time-h3:first-child { margin-top: 0; }
.tool-time-rows {
    border: 1px solid #e8edf3;
    border-radius: 3px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 4px;
}
.tool-time-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 14px;
}
.tool-time-row .tool-time-label {
    flex: 0 0 140px;
    width: 140px;
    max-width: 40%;
}
.tool-time-row > *:not(.tool-time-label) {
    flex: 1 1 auto;
    min-width: 0;
}
.tool-time-row:last-child { border-bottom: none; }
.tool-time-row--btn { background: #fff; }
.tool-time-label { color: #64748b; font-size: 13px; font-weight: 500; }
.tool-time-mono {
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: #334155;
    word-break: break-all;
}
.tool-time-hint { margin: 0 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.55; }
.tool-time-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 16px;
}
.tool-time-form .layui-input {
    flex: 1;
    min-width: 200px;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.tool-time-form .layui-btn { height: 36px; line-height: 36px; }
.tool-time-form--dt .layui-input { min-width: 240px; }
.tool-time-result {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
.tool-time-result-line { margin: 0 0 8px; }
.tool-time-result-line:last-child { margin-bottom: 0; }
.tool-time-err { color: #c62828; }
.tool-time-article { margin-top: 16px; }
.tool-time-prose { font-size: 14px; color: #64748b; line-height: 1.85; margin: 0 0 16px; }
.tool-time-prose p { margin: 0 0 12px; }
.tool-time-prose code { font-size: 12px; padding: 1px 4px; background: #f1f5f9; color: #475569; border-radius: 2px; }
.tool-time-table-wrap { overflow-x: auto; margin: 0 -4px; }
.tool-time-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-time-table th,
.tool-time-table td { border: 1px solid #e2e8f0; padding: 9px 11px; text-align: left; vertical-align: top; }
.tool-time-table th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: none;
}
.tool-time-table td { color: #475569; }
.tool-time-table code { font-size: 12px; word-break: break-all; color: #334155; }

@media (max-width: 520px) {
    .tool-time-row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .tool-time-row .tool-time-label {
        flex: none;
        width: auto;
        max-width: none;
    }
    .tool-time-label { font-weight: 600; color: #64748b; }
}

/* User-Agent 工具 url=ua */
.tool-ua-main .tool-ua-val { min-width: 0; }
.tool-ua-empty { color: #94a3b8; }
.tool-ua-prose { margin-top: 0; }
.tool-ua-ref-table td code {
    display: block;
    max-height: 8.5em;
    overflow: auto;
    padding: 6px 8px;
    margin: 2px 0 0;
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 3px;
    color: #334155;
}
.tool-ua-section { margin: 20px 0 0; }
.tool-ua-section:first-of-type { margin-top: 10px; }
.tool-ua-cat {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e4976;
    padding: 9px 12px 9px 14px;
    background: linear-gradient(90deg, rgba(25, 137, 250, 0.1) 0%, rgba(25, 137, 250, 0.02) 100%);
    border-radius: 3px;
    border-left: 4px solid #1989fa;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(25, 137, 250, 0.08);
}
.tool-ua-section .tool-time-table-wrap { margin-top: 0; }
.tool-ua-ref-table td:nth-child(1) { color: #475569; font-weight: 500; }
.tool-ua-ref-table td:nth-child(2) { color: #94a3b8; font-size: 12px; white-space: nowrap; }
