/* =========================================================
   代理 QQ 查询系统 · 全局样式
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f4f6fc;
    --surface: #ffffff;
    --surface-soft: #f7f9fe;
    --border: #e5e9f2;
    --border-strong: #d5dbe9;
    --text: #111827;
    --text-mid: #475467;
    --text-muted: #8994a8;
    --primary: #3a63f3;
    --primary-dark: #2b4cd6;
    --primary-soft: #eef2ff;
    --success: #0d9f6e;
    --success-dark: #077a54;
    --success-soft: #e7f8f1;
    --danger: #e04b4f;
    --danger-soft: #fdecec;
    --warn: #b7791f;
    --warn-soft: #fdf6e7;
    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
    --shadow-md: 0 18px 40px -20px rgba(23, 37, 84, .28);
    --shadow-lg: 0 30px 70px -30px rgba(23, 37, 84, .35);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
}

[hidden] {
    display: none !important;
}

/* ---------- 背景光斑 ---------- */

.aura {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
}

.aura--one {
    width: 520px;
    height: 520px;
    top: -220px;
    left: -140px;
    background: radial-gradient(circle, #c7d6ff 0%, rgba(199, 214, 255, 0) 70%);
}

.aura--two {
    width: 480px;
    height: 480px;
    right: -180px;
    bottom: -220px;
    background: radial-gradient(circle, #d8e3ff 0%, rgba(216, 227, 255, 0) 70%);
}

/* ---------- 通用控件 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease,
        transform .12s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #4a70ff 0%, #3455e8 100%);
    box-shadow: 0 10px 22px -12px rgba(52, 85, 232, .9);
}

.btn--primary:hover:not(:disabled) {
    box-shadow: 0 14px 26px -12px rgba(52, 85, 232, .95);
}

.btn--ghost {
    color: var(--text-mid);
    background: #fff;
    border-color: var(--border);
}

.btn--ghost:hover:not(:disabled) {
    border-color: var(--border-strong);
    background: var(--surface-soft);
}

.btn--danger {
    color: #fff;
    background: linear-gradient(135deg, #f0585c 0%, #d93a3f 100%);
    box-shadow: 0 10px 22px -14px rgba(217, 58, 63, .9);
}

.btn--sm {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 9px;
}

.btn--block {
    width: 100%;
}

.link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
}

.input,
.search__input,
textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.input::placeholder,
textarea::placeholder {
    color: #a8b1c2;
}

.input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(58, 99, 243, .13);
}

.input--sm {
    width: 220px;
    padding: 9px 12px;
    font-size: 14px;
}

textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.7;
}

/* =========================================================
   一、前台查询页
   ========================================================= */

.page--query {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 32px;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, #eef3ff 0%, rgba(244, 246, 252, 0) 60%),
        var(--bg);
}

.query {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

.query__card {
    padding: 38px 38px 34px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.query__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.logo {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(140deg, #5a7cff 0%, #3a55e0 60%, #2f43bd 100%);
    box-shadow: 0 12px 24px -12px rgba(58, 85, 224, .9);
}

.query__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.query__sub {
    margin-top: 2px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.search {
    display: flex;
    gap: 10px;
}

.search__box {
    position: relative;
    flex: 1;
}

.search__box .icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #a3adc0;
    pointer-events: none;
}

.search__input {
    height: 52px;
    padding: 0 16px 0 42px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
    border-radius: 13px;
    background: #fff;
}

.search__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(58, 99, 243, .12);
}

.search__btn {
    height: 52px;
    padding: 0 30px;
    border-radius: 13px;
    font-size: 16px;
}

.search__hint {
    margin-top: 10px;
    padding-left: 2px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.search__hint.is-error {
    color: var(--danger);
}

/* ---------- 查询结果 ---------- */

.result {
    margin-top: 4px;
}

.result__card {
    display: flex;
    gap: 16px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    animation: rise .32s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
}

/* ---------- QQ 头像 ---------- */

.avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    overflow: hidden;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(140deg, #eef2ff 0%, #e2eaff 100%);
    box-shadow: inset 0 0 0 1px rgba(58, 85, 224, .12);
    user-select: none;
}

.avatar--lg {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 20px;
    box-shadow: 0 8px 18px -12px rgba(23, 37, 84, .85), inset 0 0 0 1px rgba(58, 85, 224, .14);
}

.avatar--xs {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 12px;
}

.avatar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #eef2ff;
}

.avatar__fallback {
    position: relative;
    z-index: 0;
}

.result__body {
    min-width: 0;
    flex: 1;
}

.result__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.result__title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.result__qq {
    margin-top: 2px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

/* 查询结果：QQ 号 + 名字 两栏 */.result__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e3ecf7;
}

.result__item {
    min-width: 0;
}

.result__label {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.result__value {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.35;
    color: var(--text);
    word-break: break-all;
}

.result__value--qq {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    color: var(--success-dark);
    white-space: nowrap;
}

.result__value.is-empty {
    font-weight: 500;
    color: var(--text-muted);
}

.result__desc {
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    padding: 6px 11px;
    font-size: 12.5px;
    color: var(--text-mid);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.chip b {
    color: var(--text);
    font-weight: 600;
}

.chip span {
    color: var(--text-muted);
}

/* 状态配色 */
.result__card--found {
    border-color: #bfe9d7;
    background: linear-gradient(180deg, #f4fdf9 0%, #ffffff 70%);
}

.result__card--found .result__icon {
    color: var(--success-dark);
    background: var(--success-soft);
}

.result__card--found .result__tag {
    color: var(--success-dark);
    background: var(--success-soft);
}

.result__card--found .result__qq {
    color: var(--success-dark);
}

.result__card--miss {
    border-color: #f3d3d4;
    background: linear-gradient(180deg, #fef7f7 0%, #ffffff 70%);
}

.result__card--miss .result__icon {
    color: var(--danger);
    background: var(--danger-soft);
}

.result__card--miss .result__tag {
    color: var(--danger);
    background: var(--danger-soft);
}

.result__card--miss .result__qq {
    color: var(--text);
}

.result__card--error {
    border-color: #f0e0c0;
    background: linear-gradient(180deg, #fffbf2 0%, #ffffff 70%);
}

.result__card--error .result__icon {
    color: var(--warn);
    background: var(--warn-soft);
}

.result__card--error .result__tag {
    color: var(--warn);
    background: var(--warn-soft);
}

/* 加载中 */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.query__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

.query__foot b {
    color: var(--text-mid);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.query__foot .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c6cddb;
}

/* =========================================================
   二、后台
   ========================================================= */

.page--admin {
    background:
        radial-gradient(900px 420px at 12% -8%, #eaf0ff 0%, rgba(244, 246, 252, 0) 65%),
        var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1160px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(140deg, #5a7cff 0%, #3a55e0 100%);
    box-shadow: 0 8px 18px -10px rgba(58, 85, 224, .9);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-mid);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ---------- 登录 ---------- */

.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
}

.auth__card {
    width: 100%;
    max-width: 392px;
    padding: 34px 32px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.auth__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-soft);
}

.auth__card h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.auth__card > p {
    margin-top: 6px;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.auth__msg {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--danger);
    text-align: center;
}

.auth__tip {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
}

.auth__tip code {
    padding: 2px 6px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-mid);
}

/* ---------- 管理面板 ---------- */

.dash {
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--warn);
    background: var(--warn-soft);
    border: 1px solid #f0e0c0;
    border-radius: var(--radius-sm);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat > span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat > strong {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}

.stat > strong.is-text {
    font-size: 17px;
    letter-spacing: .2px;
    font-weight: 600;
    color: var(--text-mid);
}

.grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.card__head h2 {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.1px;
}

.card__body {
    padding: 20px 22px 22px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    vertical-align: 2px;
    font-variant-numeric: tabular-nums;
}

.form-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.form-foot .hint {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* 表格 */

.table-wrap {
    padding: 6px 10px 10px;
    max-height: 520px;
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    background: #fff;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 13px 12px;
    border-bottom: 1px solid #f1f4fa;
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr {
    transition: background-color .15s ease;
}

.table tbody tr:hover {
    background: #fafbff;
}

.qq-cell {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

.qq-cell__inner {
    display: flex;
    align-items: center;
    gap: 9px;
}

.muted {
    color: var(--text-muted);
}

.nowrap {
    white-space: nowrap;
}

.ta-r {
    text-align: right;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all .16s ease;
}

.icon-btn:hover {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f6d5d6;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.empty {
    padding: 54px 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}

.empty strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text-mid);
}

/* 安全设置 */

.card--security {
    margin-top: 20px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    padding: 20px 22px 22px;
}

.inline-form .field {
    margin-bottom: 0;
    flex: 1 1 200px;
    min-width: 180px;
}

/* ---------- Toast ---------- */

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 220px;
    max-width: 340px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: 10px;
    box-shadow: 0 18px 38px -20px rgba(17, 24, 39, .4);
    animation: toastIn .26s cubic-bezier(.22, .8, .3, 1) both;
}

.toast--error {
    border-left-color: var(--danger);
}

.toast--info {
    border-left-color: var(--primary);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 弹窗 ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .38);
    backdrop-filter: blur(2px);
    animation: fade .2s ease both;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: rise .24s cubic-bezier(.22, .8, .3, 1) both;
}

.modal__panel h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal__panel p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-mid);
    word-break: break-all;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 940px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        max-height: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .page--query {
        align-items: flex-start;
        padding: 24px 16px 28px;
    }

    .query__card {
        padding: 26px 20px 24px;
        border-radius: 22px;
    }

    .query__title {
        font-size: 19px;
    }

    .query__sub {
        font-size: 12.5px;
    }

    .search {
        flex-direction: column;
    }

    .search__btn {
        width: 100%;
    }

    .result__card {
        padding: 16px;
        gap: 12px;
    }

    .result__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 17px;
    }

    .result__qq {
        font-size: 21px;
    }

    /* 窄屏下 QQ 号与名字改为上下排列，避免长号码折行 */
    .result__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-top: 12px;
        margin-top: 12px;
    }

    .avatar--lg {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 17px;
    }

    .result__value--qq {
        font-size: 22px;
    }

    .topbar__inner {
        padding: 0 16px;
    }

    .dash {
        padding: 20px 16px 48px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat:last-child {
        grid-column: 1 / -1;
    }

    .stat {
        padding: 14px 16px;
    }

    .stat > strong {
        font-size: 22px;
    }

    .card__head {
        padding: 15px 16px;
        flex-wrap: wrap;
    }

    .card__body {
        padding: 16px;
    }

    .inline-form {
        padding: 16px;
    }

    .input--sm {
        width: 100%;
    }

    .toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: none;
    }

    /* 移动端表格改为卡片式 */
    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        position: relative;
        padding: 12px 46px 12px 12px;
        border-bottom: 1px solid #f1f4fa;
    }

    .table td {
        padding: 2px 0;
        border: 0;
    }

    .table td.cell-name::before {
        content: "名字 ";
        color: var(--text-muted);
        font-size: 12px;
    }

    .table td.cell-time {
        font-size: 12.5px;
        color: var(--text-muted);
    }

    .table td.cell-actions {
        position: absolute;
        top: 50%;
        right: 6px;
        width: auto;
        transform: translateY(-50%);
    }

    .table tbody tr:hover {
        background: transparent;
    }
}
