:root {
    --primary: #103b15;
    --primary-dark: #0a2810;
    --primary-light: #e7efe8;
    --danger: #DC2626;
    --success: #15803D;
    --warning: #B45309;
    --text: #1d0b0d;
    --muted: #57534E;
    --border: #dbe2dc;
    --bg: #fcf9f0;
    --card: #FFFFFF;
    --accent: #f7ea48;
    --radius: 1px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------- 通用组件 ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    background: var(--card);
    color: var(--text);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fcf9f0; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius); }

.input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    width: 100%;
    background: #fff;
    color: var(--text);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 59, 21, .14); }
.input-sm { padding: 6px 10px; font-size: 13px; border-radius: var(--radius); }
.input-select { width: auto; }
.input-date { width: auto; }
.input-file { padding: 8px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}
.badge-draft { background: #F5F5F4; color: var(--muted); }
.badge-pending_review, .badge-pending { background: #FEF3C7; color: var(--warning); }
.badge-approved { background: #DBEAFE; color: #1D4ED8; }
.badge-published { background: #DCFCE7; color: var(--success); }
.badge-closed { background: #F5F5F4; color: var(--muted); }
.badge-cat { background: var(--primary-light); color: var(--primary); }

.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.flash-success { background: #DCFCE7; color: var(--success); }
.flash-error { background: #FEE2E2; color: var(--danger); }

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

/* 轻提示 toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #292524;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, .1);
    opacity: 0;
    transition: all .3s ease;
    z-index: 999;
    max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warn { background: var(--warning); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

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

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}
.login-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border);
    text-align: center;
}
.login-logo { font-size: 44px; }
.login-title { font-size: 22px; margin: 12px 0 4px; font-weight: 600; letter-spacing: .04em; }
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; color: var(--muted); }
.login-back { display: inline-block; margin-top: 16px; font-size: 14px; }

/* ---------------- 前台点餐页 ---------------- */

.order-header {
    background: var(--primary);
    color: #fcf9f0;
    padding: 28px 20px;
    text-align: center;
}
.order-title { font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.order-subtitle { opacity: .85; font-size: 14px; margin-top: 4px; }
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(252, 249, 240, .35);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
}
.countdown-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.order-main { padding: 20px; max-width: 960px; margin: 0 auto; }

.closed-banner {
    background: #FEF3C7;
    color: var(--warning);
    padding: 12px 16px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.category-section { margin-bottom: 24px; }
.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--primary);
    margin-bottom: 12px;
}
.category-emoji { font-size: 20px; }

.dish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.dish-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
}
.dish-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.dish-card.limited { opacity: .45; }
.dish-img-wrap { position: relative; aspect-ratio: 1 / 1; background: #F5F5F4; }
.dish-img { width: 100%; height: 100%; object-fit: cover; }
.dish-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
}
.dish-check {
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}
.dish-card.selected .dish-check { display: flex; }
/* 荤素卡片份数步进器（选中后显示在图片底部） */
.dish-stepper {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 59, 21, .88);
    color: #fff;
}
.dish-card.selected .dish-stepper { display: flex; }
.stepper-btn {
    width: 42px; height: 34px;
    border: none; background: transparent;
    color: #fff; font-size: 20px; font-weight: 700;
    cursor: pointer; line-height: 1;
}
.stepper-btn:active { background: rgba(255, 255, 255, .18); }
.stepper-count {
    min-width: 36px; text-align: center;
    font-size: 16px; font-weight: 700;
}
.dish-name { padding: 10px 12px; font-size: 15px; font-weight: 600; text-align: center; }

/* 我的点餐 */
.order-list-section { margin-top: 32px; }
.order-list-title { font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--primary); margin-bottom: 12px; }
.order-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.order-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.order-item-main { flex: 1; min-width: 0; }
.order-item-name { font-weight: 600; }
.order-item-proxy { font-size: 12px; color: var(--warning); margin-left: 6px; }
.order-item-dishes { font-size: 13px; color: var(--muted); margin-top: 2px; }
.order-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 底部悬浮栏 */
.order-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 20px 16px;
    z-index: 50;
}
.order-bar-summary { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.selected-count { font-weight: 700; color: var(--primary); }
.selected-names { font-size: 13px; color: var(--muted); }
.order-form-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.proxy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text);
}
.order-form .btn { margin-top: 4px; }
.order-form-actions .btn-block { flex: 1 1 auto; width: auto; }

/* 随机按钮提示 */
.random-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.random-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 精简视图：随机后只显示已选菜品，其余隐藏 */
.compact-mode .dish-card:not(.selected) { display: none; }
.compact-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

/* 换菜弹窗 */
.swap-title { font-size: 18px; }
.swap-body { max-height: 60vh; overflow-y: auto; }
.swap-group { margin-bottom: 14px; }
.swap-cat { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.swap-item {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 12px; border-radius: var(--radius);
    cursor: pointer; font-size: 15px;
}
.swap-item:hover { background: var(--bg); }
.swap-item input { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }

/* 随机选中闪烁动画 */
@keyframes flashPick {
    0%   { box-shadow: 0 0 0 3px rgba(16, 59, 21, .18); }
    50%  { box-shadow: 0 0 0 7px rgba(16, 59, 21, .5); }
    100% { box-shadow: 0 0 0 3px rgba(16, 59, 21, .18); }
}
.dish-card.flash-pick { animation: flashPick .55s ease; }

/* 底部留白，防止被悬浮栏遮挡 */
.order-main { padding-bottom: 220px; }

/* ---------------- 供餐方后台 ---------------- */

.caterer-page { max-width: 880px; margin: 0 auto; padding: 20px; }
.caterer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.caterer-title { font-size: 24px; font-weight: 600; letter-spacing: .04em; color: var(--primary); }
.caterer-sub { color: var(--muted); font-size: 14px; }
.caterer-header-actions { display: flex; align-items: center; gap: 10px; }
.caterer-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.input-search { flex: 1; min-width: 200px; }
.caterer-category { margin-bottom: 24px; }
.caterer-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}
.caterer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.caterer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease;
}
.caterer-item:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.caterer-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.caterer-item-name { font-size: 15px; }
.caterer-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 16px 0;
    display: flex;
    gap: 12px;
}

/* ---------------- 管理员后台 ---------------- */

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--primary);
    color: #dbe2dc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-brand {
    padding: 22px 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fcf9f0;
}
.admin-nav { display: flex; flex-direction: column; padding: 0 12px; flex: 1; }
.admin-nav-link {
    color: #dbe2dc;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-size: 15px;
    transition: all .15s ease;
}
.admin-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fcf9f0; }
.admin-nav-link.active { background: #fcf9f0; color: var(--primary); }
.admin-sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-sidebar-foot .admin-nav-link { margin-bottom: 0; }

.admin-main { flex: 1; padding: 28px; min-width: 0; }
.admin-page-title { font-size: 24px; font-weight: 600; letter-spacing: .04em; color: var(--primary); margin-bottom: 20px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-value { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.admin-card-title { font-size: 17px; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dish-form .input { flex: 1; min-width: 140px; }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}
.filter-tab.active { background: var(--primary); color: #fcf9f0; border-color: var(--primary); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-thumb { width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; }
.table-thumb-empty {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius); background: #F5F5F4; color: var(--muted);
}

.menu-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.menu-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.menu-item-date { font-size: 17px; font-weight: 700; margin-right: 10px; }
.menu-item-actions { display: flex; gap: 8px; align-items: center; }
.menu-item-body { margin-top: 10px; }
.menu-item-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.reject-text { color: var(--danger); }
.reject-reason { width: 160px; }
.menu-dish-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 13px;
}

.orders-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.orders-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.print-files { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.print-file { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.print-preview { max-width: 320px; border: 1px solid var(--border); border-radius: var(--radius); }
.print-word-row { margin: 4px 0 12px; }

/* 行内操作按钮 */
.row-actions { display: flex; align-items: center; gap: 8px; }

/* 拖拽上传区 */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
    margin-top: 12px;
}
.dropzone:hover { border-color: var(--primary); }
.dropzone.dragover { border-color: var(--primary); background: var(--primary-light); }
.dropzone-inner { pointer-events: none; }
.dropzone-icon { font-size: 28px; }
.dropzone-text { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dropzone .link { color: var(--primary); font-weight: 600; }
.dropzone-preview { max-height: 120px; margin: 10px auto 0; border-radius: var(--radius); }

/* 编辑弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 420px;
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-close {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal .field span { font-size: 14px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* 点餐成功确认弹窗 */
.success-modal { text-align: center; }
.success-icon { margin-bottom: 10px; }
.success-icon svg { width: 64px; height: 64px; display: inline-block; }
.check-circle {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: drawCircle .5s ease-out forwards;
}
.check-mark {
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck .3s ease-out .45s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* 点餐额度弹窗（荤素超过 3 个） */
.limit-modal { text-align: center; }
.limit-title { font-size: 18px; }
.limit-text { font-size: 15px; color: var(--muted); margin: 4px 0 18px; }
.limit-actions { display: flex; gap: 10px; justify-content: center; }
.limit-btn { flex: 1; }
.limit-ok { margin-top: 6px; }
.fighting { animation: limitShake .5s ease; }
@keyframes limitShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-2deg); }
    40% { transform: translateX(8px) rotate(2deg); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}
.success-title { font-size: 19px; font-weight: 600; letter-spacing: .02em; margin-bottom: 16px; }
.success-body {
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.success-line { font-size: 14px; margin: 6px 0; }
.success-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* 彩带礼花 */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 300;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 1px;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    to { transform: translateY(110vh) rotate(720deg); }
}

/* 首次进入操作引导 */
.onboarding {
    position: fixed;
    inset: 0;
    z-index: 400;          /* 透明整屏层：拦截下层点击，聚焦引导 */
}
.onboarding-spotlight {
    position: fixed;
    z-index: 401;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 0 0 9999px rgba(29, 11, 13, .62);
    pointer-events: none;
    transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.onboarding-bubble {
    position: fixed;
    z-index: 402;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-sizing: border-box;
    transition: top .25s ease, left .25s ease;
}
.onboarding-step {
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}
.onboarding-text { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0 0 16px; }
.onboarding-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 点餐情况（点名） */
.attendance-group { margin-top: 14px; }
.attendance-group-name { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.attendance-row { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}
.person-ordered { background: #DCFCE7; color: var(--success); }
.person-pending { background: #F5F5F4; color: var(--muted); }

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

@media (min-width: 640px) {
    .dish-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
    .dish-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 8px 12px;
    }
    .admin-brand { padding: 12px; font-size: 16px; }
    .admin-nav { flex-direction: row; padding: 0; overflow-x: auto; }
    .admin-nav-link { white-space: nowrap; margin-bottom: 0; margin-right: 4px; }
    .admin-sidebar-foot { border-top: none; padding: 0; }
    .admin-main { padding: 16px; }
    .dish-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dish-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 可访问性 ---------------- */

/* 键盘焦点：可交互元素提供清晰焦点环 */
a:focus-visible,
.btn:focus-visible,
.filter-tab:focus-visible,
.admin-nav-link:focus-visible,
.modal-close:focus-visible,
.dropzone:focus-visible,
.dish-card:focus-visible,
.caterer-item:focus-visible,
.swap-item:focus-visible,
.input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 减少动态：尊重系统"减少动态"偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .countdown-dot { animation: none; }
}
