/* 明暗主题：由 html[data-theme] 控制，默认浅色（见首屏内联脚本） */

html[data-theme="light"] {
    --bg0: #e9eef6;
    --bg1: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.94);
    --surface2: rgba(248, 250, 252, 0.98);
    --text: #132032;
    --muted: #516075;
    --line: rgba(15, 23, 42, 0.11);
    --line-hover: rgba(15, 23, 42, 0.18);
    --accent: #059669;
    --accent-dim: rgba(5, 150, 105, 0.11);
    --violet: #6d28d9;
    --violet-dim: rgba(109, 40, 217, 0.1);
    --input-bg: #ffffff;
    --grad-spot1: rgba(109, 40, 217, 0.09);
    --grad-spot2: rgba(5, 150, 105, 0.08);
    --shadow-panel: 0 20px 56px rgba(15, 23, 42, 0.07);
    --shadow-toggle: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --code-bg: rgba(15, 23, 42, 0.06);
    --badge-fg: #5b21b6;
    --badge-bg: rgba(109, 40, 217, 0.08);
    --badge-border: rgba(109, 40, 217, 0.22);
    --amt-check-border: rgba(5, 150, 105, 0.55);
    --amt-check-bg: rgba(5, 150, 105, 0.12);
    --amt-check-ring: rgba(5, 150, 105, 0.18);
    --pay-opt-border: rgba(109, 40, 217, 0.45);
    --pay-opt-bg: rgba(109, 40, 217, 0.08);
}

html[data-theme="dark"] {
    --bg0: #090c11;
    --bg1: #121824;
    --surface: rgba(26, 35, 50, 0.92);
    --surface2: rgba(18, 26, 38, 0.65);
    --text: #eef3fb;
    --muted: #8b99b0;
    --line: rgba(255, 255, 255, 0.07);
    --line-hover: rgba(255, 255, 255, 0.14);
    --accent: #34d399;
    --accent-dim: rgba(52, 211, 153, 0.14);
    --violet: #a78bfa;
    --violet-dim: rgba(167, 139, 250, 0.1);
    --input-bg: rgba(0, 0, 0, 0.28);
    --grad-spot1: rgba(167, 139, 250, 0.22);
    --grad-spot2: rgba(52, 211, 153, 0.16);
    --shadow-panel: 0 28px 90px rgba(0, 0, 0, 0.42);
    --shadow-toggle: 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --code-bg: rgba(255, 255, 255, 0.06);
    --badge-fg: var(--violet);
    --badge-bg: rgba(167, 139, 250, 0.12);
    --badge-border: rgba(167, 139, 250, 0.28);
    --amt-check-border: rgba(52, 211, 153, 0.55);
    --amt-check-bg: rgba(52, 211, 153, 0.14);
    --amt-check-ring: rgba(52, 211, 153, 0.18);
    --pay-opt-border: rgba(167, 139, 250, 0.5);
    --pay-opt-bg: rgba(167, 139, 250, 0.1);
}

.theme-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-toggle);
    font-family: var(--font);
    backdrop-filter: blur(8px);
}

.theme-toggle__icons {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.theme-toggle__svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

html[data-theme="light"] .theme-toggle__svg--sun {
    opacity: 0;
}

html[data-theme="light"] .theme-toggle__svg--moon {
    opacity: 1;
}

html[data-theme="dark"] .theme-toggle__svg--sun {
    opacity: 1;
}

html[data-theme="dark"] .theme-toggle__svg--moon {
    opacity: 0;
}

.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px clamp(16px, 4vw, 28px);
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.site-topbar .theme-toggle {
    position: static;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .site-topbar {
        background: var(--surface);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    }

    html[data-theme="dark"] .site-topbar {
        box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
    }

    .site-nav {
        padding: 5px 8px;
        margin: -2px 0;
        border-radius: 14px;
        background: var(--surface2);
        border: 1px solid var(--line);
    }
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.site-nav__link {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted, #516075);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.site-nav__link:hover {
    color: var(--text, #132032);
    background: var(--surface2, rgba(0, 0, 0, 0.04));
}

.site-nav__link.is-active {
    color: var(--accent, #059669);
    background: var(--accent-dim, rgba(5, 150, 105, 0.12));
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 首页主按钮颜色随主题 */
html[data-theme="light"] .submit {
    color: #fff;
    background: linear-gradient(135deg, #059669, #0d9488);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.22);
}

html[data-theme="dark"] .submit {
    color: #04251f;
    background: linear-gradient(135deg, #34d399, #2dd4bf);
    box-shadow: 0 14px 36px rgba(52, 211, 153, 0.28);
}

/* 页面背景（首页 / 名单 / 返回页共用） */
body.tip-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--text);
    padding: 60px clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
    background:
        radial-gradient(ellipse 900px 420px at 15% -8%, var(--grad-spot1), transparent 55%),
        radial-gradient(ellipse 700px 380px at 92% 8%, var(--grad-spot2), transparent 50%),
        linear-gradient(165deg, var(--bg0), var(--bg1));
}

.site-root {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

.site-wrap {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.simple-card {
    border-radius: 14px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    color: var(--text);
}

.simple-card h1 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.simple-card p {
    line-height: 1.55;
    color: var(--text);
}

html[data-theme="light"] .simple-card a {
    color: #047857;
}

html[data-theme="dark"] .simple-card a {
    color: var(--accent);
}

html[data-theme="light"] .simple-ok {
    color: #047857;
}

html[data-theme="dark"] .simple-ok {
    color: var(--accent);
}

html[data-theme="light"] .simple-warn {
    color: #b45309;
}

html[data-theme="dark"] .simple-warn {
    color: #fbbf24;
}

.simple-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.simple-card code {
    font-size: 0.88rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--code-bg);
    color: var(--text);
}

/* 打赏名单页 */
.wall-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.wall-wrap h1 {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: var(--text);
}

.wall-wrap .lead {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.wall-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.wall-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wall-panel li {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.wall-panel li:last-child {
    border-bottom: none;
}

.wall-panel .name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.wall-panel .amt {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}

.wall-panel .time {
    font-size: 0.78rem;
    color: var(--muted);
    width: 100%;
    margin-top: 4px;
}

.wall-panel .row-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.wall-panel .empty {
    padding: 28px 18px;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

a.wall-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

a.wall-back:hover {
    text-decoration: underline;
}

.wall-msg {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 打赏榜单头像（首页近期打赏 + wall） */
.wall li.donation-row,
.wall-panel li.donation-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wall-avatar-slot {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface2);
}

.wall-avatar-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wall-avatar-slot .wall-avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

.wall-row-main {
    flex: 1;
    min-width: 0;
}

.site-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px clamp(16px, 4vw, 28px) 18px;
    border-top: 1px solid var(--line, rgba(15, 23, 42, 0.1));
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--muted, #64748b);
    background: transparent;
}

.site-footer p {
    margin: 0;
}

/* 管理员卡片：admin_nickname、admin_bio、admin_qq（仅用于头像，不显示号码） */
.admin-host {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: 14px;
    padding: 12px 14px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface2);
    box-sizing: border-box;
}

.admin-host__left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.admin-host__side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-left: 4px;
}

/* 移动端不展示功德区 */
@media (max-width: 768px) {
    .admin-host__side {
        display: none;
    }
}

.admin-host__avatar-wrap {
    flex-shrink: 0;
}

.admin-host__avatar {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--input-bg);
}

.admin-host__avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-host__meta {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.admin-host__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.35;
}

.admin-host__bio {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
    white-space: pre-wrap;
    word-break: break-word;
}

/* 功德 +1（管理员卡片右侧） */
.merit-btn {
    position: relative;
    overflow: visible;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--amt-check-border);
    background: var(--amt-check-bg);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

html[data-theme="dark"] .merit-btn {
    color: #6ee7b7;
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.12);
}

.merit-btn:hover {
    filter: brightness(1.05);
}

.merit-btn:active {
    transform: scale(0.96);
}

.merit-btn.is-pulse {
    animation: merit-pulse 0.45s ease;
}

@keyframes merit-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.merit-float {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
}

.merit-btn.show-float .merit-float {
    animation: merit-float-up 0.75s ease-out forwards;
}

@keyframes merit-float-up {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-36px); }
}

.merit-total {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    max-width: 8.5em;
    line-height: 1.35;
}

.merit-total strong {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ----- 顶栏：时间线按钮与弹层（原 space-shell.css） ----- */

.space-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.space-topbar-unified-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    min-width: 0;
    flex: 1;
}

.space-tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-toggle);
    transition: border-color 0.15s, color 0.15s;
}

.space-tl-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.space-tl-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.space-tl-btn__icon {
    display: block;
}

.space-dialog {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    max-width: min(440px, calc(100vw - 32px));
    width: 100%;
    background: transparent;
    color: inherit;
}

.space-dialog:not([open]) {
    display: none !important;
    pointer-events: none !important;
}

.space-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .space-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.space-dialog__inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

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

.space-dialog__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.space-dialog__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--surface2);
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.space-dialog__close:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.space-dialog__body {
    padding: 8px 18px 18px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
    border-bottom: none;
}

.timeline time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--violet);
    display: block;
    margin-bottom: 4px;
}

.timeline strong {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.timeline p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ----- 首页 .page / hero / 链接卡（原 space.css） ----- */

* {
    box-sizing: border-box;
}

.page {
    max-width: 640px;
    margin: 0 auto;
}

.hero {
    margin-bottom: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--badge-fg);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    margin-bottom: 12px;
}

.hero-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.space-id {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 0 24px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface2);
}

.space-id__av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.space-id__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.space-id__name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.space-id__bio {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-panel);
}

/* 首页：资料卡（管理员 / space-id）与「链接」面板之间留白 */
.page > .admin-host + section.panel,
.page > .space-id + section.panel {
    margin-top: clamp(22px, 4vw, 36px);
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface2);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.link-card:hover {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .link-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.link-card:active {
    transform: scale(0.98);
}

.link-card__icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    flex-shrink: 0;
}

.link-card__svg {
    display: block;
}

.link-card__emo {
    font-size: 1.45rem;
    line-height: 1;
}

.link-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.link-card__label {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    word-break: break-word;
}

.link-card__hint {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--muted);
    word-break: break-word;
}

/* ----- 移动端自适应 ----- */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.tip-page {
    overflow-x: clip;
}

.site-root,
.site-wrap {
    min-width: 0;
    overflow-x: clip;
}

@media (max-width: 768px) {
    body.tip-page {
        padding-top: max(72px, calc(58px + env(safe-area-inset-top, 0px)));
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    }

    .site-topbar {
        padding-top: max(8px, env(safe-area-inset-top, 0px));
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }

    .space-topbar-unified-left {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
        gap: 0;
    }

    .space-topbar-right {
        flex-shrink: 0;
    }

    .site-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav {
        gap: 6px;
    }

    .site-nav__link {
        padding: 8px 12px;
        font-size: 0.84rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .panel {
        padding: 16px 14px;
    }

    .simple-card {
        padding: 18px 16px;
    }

    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .link-card {
        padding: 14px 8px;
    }

    .wall-panel li {
        padding: 12px 14px;
    }

    .admin-host {
        padding: 12px;
    }

    .hero h1 {
        font-size: clamp(1.28rem, 6vw, 1.65rem);
    }

    .hero-lead {
        font-size: 0.9rem;
    }

    .site-footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        font-size: 0.74rem;
    }
}

@media (max-width: 480px) {
    .site-nav__link {
        padding: 7px 11px;
        font-size: 0.8rem;
    }

    .space-tl-btn,
    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .space-id {
        padding: 12px;
        gap: 12px;
    }

    .board-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 管理员打赏记录表：横向滚动 */
.list-admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}

.list-admin table {
    min-width: 860px;
}
