/* ==========================================================
   IndexNow 提交中心 - 样式
   ========================================================== */

:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --border: #e4e9f2;
    --border-strong: #d3dbe8;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #6b7a90;
    --primary: #4f46e5;
    --primary-2: #6366f1;
    --primary-soft: #eef2ff;
    --success: #047857;
    --success-soft: #ecfdf5;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --warn: #b45309;
    --warn-soft: #fffbeb;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px -18px rgba(15, 23, 42, .28);
    --radius: 16px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 8% -8%, #e0e7ff 0%, rgba(224, 231, 255, 0) 62%),
        radial-gradient(900px 480px at 96% -4%, #dbeafe 0%, rgba(219, 234, 254, 0) 58%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: var(--mono);
    font-size: .92em;
    background: #f1f5f9;
    border-radius: 5px;
    padding: 1px 5px;
    color: #334155;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

.inline-form { display: inline; }

/* ---------------- 顶栏 ---------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #4f46e5, #6366f1 55%, #3b82f6);
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .85);
    flex: 0 0 auto;
}

.brand-mark svg { width: 20px; height: 20px; fill: #fff; }
.brand-mark.lg { width: 46px; height: 46px; border-radius: 13px; }
.brand-mark.lg svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; }
.brand-text small { color: var(--muted); font-size: 12px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

/* ---------------- 布局 ---------------- */

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.wrap.narrow { max-width: 880px; }

.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

.page-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.install-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 15px 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-value.ok { color: var(--success); }
.stat-value.fail { color: var(--danger); }
.stat-value.warn { color: var(--warn); }
.stat-foot { color: #94a3b8; font-size: 11.5px; }

/* ---------------- 标签页 ---------------- */

.tabs {
    display: flex;
    gap: 4px;
    margin: 4px 0 18px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    appearance: none;
    border: 0;
    background: none;
    padding: 11px 16px;
    color: var(--muted);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease;
}

.tab:hover { color: var(--text-soft); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------------- 卡片 ---------------- */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.card-head h2 {
    font-size: 15.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hint { color: var(--muted); font-size: 12.5px; }

.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.counter { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.step {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.tip { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }

.snippet {
    background: #0b1220;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    overflow-x: auto;
    line-height: 1.75;
}

/* ---------------- 表单 ---------------- */

.submit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.code-area {
    width: 100%;
    min-height: 206px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fbfcfe;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12.75px;
    line-height: 1.75;
    color: var(--text);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.code-area.tall { min-height: 206px; }

.code-area:focus {
    outline: none;
    background: #fff;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.code-area::placeholder { color: #a8b4c6; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 650; color: var(--text-soft); }
.field.grow { flex: 1 1 220px; }
.field-sm { width: 150px; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
select {
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
    min-width: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

select { cursor: pointer; }

.options-card {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.options-spacer { flex: 1 1 40px; }

.switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
    cursor: pointer;
    padding-bottom: 8px;
    user-select: none;
}

.switch input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.switch-sm { padding-bottom: 0; font-size: 12.5px; color: var(--muted); }

.site-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------------- 按钮 ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--text-soft);
    font: inherit;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .95);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(79, 70, 229, .95); }

.btn-ghost { background: #fff; border-color: var(--border); color: var(--text-soft); }
.btn-ghost:hover:not(:disabled) { border-color: #c7d2fe; background: #f8faff; color: var(--primary); }

.btn-danger-ghost { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger-ghost:hover:not(:disabled) { background: #fff5f5; border-color: #fca5a5; }

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 11px 22px; font-size: 14.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-mini { padding: 3px 8px; font-size: 12px; border-radius: 7px; }

.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.icon-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.icon-btn:hover { color: var(--danger); border-color: #fecaca; background: #fff5f5; }

/* ---------------- 进度 ---------------- */

.progress-card { padding: 18px 20px; }

.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-head h2 { font-size: 15.5px; }

.progress-percent {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: #eef2f8;
    overflow: hidden;
    margin: 12px 0 14px;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    transition: width .3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.progress-stats > div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.progress-stats span { color: var(--muted); font-size: 11.5px; }
.progress-stats strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.progress-stats strong.ok { color: var(--success); }
.progress-stats strong.fail { color: var(--danger); }

.progress-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------------- 控制台日志 ---------------- */

.log-card { padding: 18px 20px 20px; }

.console {
    background: #0b1220;
    border-radius: 12px;
    padding: 13px 15px;
    height: 300px;
    overflow: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .12);
}

.console-empty { color: #64748b; }

.console-line { display: flex; gap: 10px; padding: 1px 0; }
.console-line .ts { color: #475569; flex: 0 0 auto; }
.console-line.ok .msg { color: #4ade80; }
.console-line.fail .msg { color: #f87171; }
.console-line.warn .msg { color: #fbbf24; }
.console-line.info .msg { color: #93c5fd; }
.console-line.url .msg { color: #9fb2c9; }

/* ---------------- 表格 ---------------- */

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }

.table .empty { text-align: center; color: var(--muted); padding: 30px 14px; }

.table.compact th, .table.compact td { padding: 7px 10px; font-size: 12px; }
.table.compact .url-cell { max-width: 540px; }
.table.compact .badge, .table.compact .code-pill { font-size: 11px; }

.col-check { width: 42px; }
.col-actions { text-align: right; white-space: nowrap; min-width: 198px; }
.table td.col-actions { text-align: right; }

.url-cell {
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 12.25px;
    color: #1e293b;
}

.url-domain {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.domain-cell { font-weight: 650; white-space: nowrap; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.25px; }

.key-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.key-cell code { background: #f8fafc; border: 1px solid var(--border); font-size: 12px; }
.key-full { font-family: var(--mono); font-size: 11.5px; color: var(--muted); max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.fail { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.pending { background: #f1f5f9; color: #475569; }
.badge.neutral { background: #f1f5f9; color: #475569; }

.code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
}

.code-pill.c2 { background: var(--success-soft); color: var(--success); border-color: #bbf7d0; }
.code-pill.c4 { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.code-pill.c0 { background: #f1f5f9; color: #64748b; }
.code-pill.c3 { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }

.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }

/* ---------------- 工具栏 / 分页 ---------------- */

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.toolbar-spacer { flex: 1 1 20px; }

.search-input { min-width: 220px; flex: 0 1 260px; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12.5px;
}

.pager-actions { display: flex; gap: 6px; align-items: center; }

/* ---------------- 弹窗 / 提示 ---------------- */

.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }

.modal-panel {
    position: relative;
    width: min(900px, 100%);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45);
    overflow: hidden;
    animation: pop .18s ease;
}

@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } }

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
}

.modal-head h3 { font-size: 15.5px; }

.modal-body { padding: 18px; overflow: auto; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.detail-grid > div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-grid span { color: var(--muted); font-size: 11.5px; }
.detail-grid strong { font-size: 13.5px; word-break: break-all; }

.detail-block { margin-top: 14px; }
.detail-block h4 { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }

.detail-block pre {
    margin: 0;
    background: #0b1220;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12.25px;
    line-height: 1.7;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.toasts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 380px;
    padding: 11px 15px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .5);
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: slideIn .2s ease;
}

.toast::before {
    content: "";
    width: 3px;
    align-self: stretch;
    border-radius: 3px;
    background: var(--primary);
    flex: 0 0 auto;
}

.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.warn::before { background: var(--warn); }

@keyframes slideIn { from { transform: translateX(12px); opacity: 0; } }

/* ---------------- 提示条 ---------------- */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #065f46; }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-link { margin-left: auto; font-weight: 700; text-decoration: underline; }

/* ---------------- 登录页 ---------------- */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0b1020;
    overflow: hidden;
}

.auth-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(520px 520px at 20% 18%, rgba(99, 102, 241, .38), transparent 65%),
        radial-gradient(560px 560px at 82% 78%, rgba(59, 130, 246, .28), transparent 65%),
        radial-gradient(400px 400px at 70% 12%, rgba(168, 85, 247, .22), transparent 70%);
    pointer-events: none;
}

.auth-wrap { position: relative; width: min(430px, calc(100% - 32px)); z-index: 1; }

.auth-card {
    background: rgba(255, 255, 255, .98);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .8);
}

.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.auth-brand h1 { font-size: 18px; }
.auth-brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.auth-card .field { margin-bottom: 14px; }
.auth-foot { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------------- 安装页 / 说明 ---------------- */

.diag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.diag-item {
    display: grid;
    grid-template-columns: 26px 170px 1fr 1.3fr;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 12.75px;
}

.diag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: #94a3b8;
}

.diag-item.is-ok .diag-icon { background: var(--success); }
.diag-item.is-bad .diag-icon { background: var(--danger); }
.diag-item.is-bad { background: #fffafa; border-color: #fecaca; }
.diag-name { font-weight: 650; }
.diag-value { font-family: var(--mono); font-size: 12px; color: var(--text-soft); word-break: break-all; }
.diag-hint { color: var(--muted); font-size: 12px; }

.kv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 9px; font-size: 12.75px; }
.kv-list span { color: var(--muted); flex: 0 0 auto; }
.kv-list strong { font-family: var(--mono); font-size: 12px; word-break: break-all; }

.help-card h2 { font-size: 17px; margin-bottom: 10px; }
.help-card h3 { font-size: 14.5px; margin: 22px 0 8px; color: var(--text); }
.help-steps { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 13.5px; }
.help-steps li { margin-bottom: 10px; }
.help-list { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 13.25px; }
.help-list li { margin-bottom: 7px; }
.help-table td { font-size: 12.75px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .submit-grid { grid-template-columns: 1fr; }
    .diag-item { grid-template-columns: 24px 1fr; }
    .diag-value, .diag-hint { grid-column: 2; }
}

@media (max-width: 720px) {
    .wrap { padding: 18px 14px 48px; }
    .topbar-inner { padding: 10px 14px; }
    .brand-text small { display: none; }
    .topbar-actions .pill { display: none; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-value { font-size: 21px; }
    .card { padding: 16px; }
    .options-card { align-items: stretch; }
    .field-sm { width: 100%; }
    .options-spacer { display: none; }
    .options-card .btn { flex: 1 1 130px; }
    .progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toolbar .search-input { flex: 1 1 100%; }
    .toolbar-spacer { flex: 1 1 100%; }
    .kv-list { grid-template-columns: 1fr; }
}
