/* 东大门韩国服饰团购平台 - 全局样式（含完整移动端适配） */
:root {
    --pink: #e8607f;
    --pink-dark: #c9455f;
    --pink-light: #fff0f4;
    --sand: #f7f3ee;
    --ink: #22201f;
    --ink-2: #5b5552;
    --ink-3: #97908c;
    --line: #e9e2da;
    --white: #fff;
    --green: #2fa36b;
    --red: #e5484d;
    --amber: #e8a33d;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(34, 32, 31, .06);
    --shadow-hover: 0 12px 32px rgba(34, 32, 31, .12);
    --nav-h: 60px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* ---------- 导航 ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; height: var(--nav-h); gap: 24px; }
.logo { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--pink-dark); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); transition: .18s; white-space: nowrap; }
.nav-links a:hover { background: var(--pink-light); color: var(--pink-dark); }
.nav-links a.active { background: var(--pink); color: #fff; font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user .who { font-size: 13px; color: var(--ink-2); }
.nav-user .who b { color: var(--ink); }

/* 汉堡按钮：仅手机显示 */
.nav-toggle {
    display: none;
    width: 40px; height: 40px; border: none; background: transparent;
    cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    position: relative; transition: .2s;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after { content: ''; position: absolute; top: 6px; }

/* 手机端顶部抽屉菜单 */
.nav-drawer {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    background: rgba(34, 32, 31, .4); display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer .sheet {
    background: #fff; padding: 14px 18px 20px;
    border-bottom: 1px solid var(--line);
    display: grid; gap: 4px;
    animation: sheetDown .2s ease;
}
.nav-drawer .sheet a {
    padding: 13px 14px; border-radius: 12px; font-size: 15px; font-weight: 500;
}
.nav-drawer .sheet a:active { background: var(--pink-light); }
.nav-drawer .sheet a.active { background: var(--pink); color: #fff; }
@keyframes sheetDown { from { transform: translateY(-10px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- 底部 Tab（手机专属） ---------- */
.tabbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b);
}
.tabbar .inner { display: flex; }
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 7px 0 8px; color: var(--ink-3); font-size: 11px; min-height: 52px;
}
.tabbar a .ic { font-size: 21px; line-height: 1; }
.tabbar a.active { color: var(--pink-dark); font-weight: 700; }
.tabbar a.center .ic {
    width: 46px; height: 46px; margin-top: -18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #f7936f); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 6px 16px rgba(232, 96, 127, .4);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink); cursor: pointer; transition: .18s;
    font-weight: 500; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--pink); color: var(--pink-dark); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { color: var(--red); border-color: #f3c6c7; }
.btn-danger:hover { background: #fff2f2; color: var(--red); border-color: var(--red); }

/* ---------- 卡片 / 通用 ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 16px; gap: 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title span { color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-3); }
.price { color: var(--pink-dark); font-weight: 800; }
.price small { font-size: 12px; }
.old-price { color: var(--ink-3); text-decoration: line-through; font-size: 12px; margin-left: 6px; }

.tag {
    display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px;
    background: var(--pink-light); color: var(--pink-dark);
}
.tag-gray { background: #f2efec; color: var(--ink-3); }
.tag-green { background: #e7f6ee; color: var(--green); }
.tag-red { background: #fdeced; color: var(--red); }
.tag-amber { background: #fdf3e3; color: var(--amber); }

.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty .emo { font-size: 42px; display: block; margin-bottom: 10px; }

/* ---------- 首页头图 ---------- */
.hero {
    background: linear-gradient(115deg, #ffe9ef 0%, #fff5ec 45%, #f6f0ff 100%);
    border-radius: 20px; padding: 38px 40px; margin-top: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: .5px; }
.hero p { margin: 0 0 18px; color: var(--ink-2); max-width: 520px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-art { font-size: 78px; }

/* ---------- 筛选条 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 24px 0 14px; }
.filter-input {
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; outline: none; min-width: 220px;
}
.filter-input:focus { border-color: var(--pink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    cursor: pointer; color: var(--ink-2); -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--pink); color: var(--pink-dark); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 手机端分类/状态 chips 横向滑动 */
.chips.scroll-x {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: none;
}
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chips.scroll-x .chip { flex: 0 0 auto; }

/* ---------- 团购卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gb-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow); transition: .2s; border: 1px solid transparent;
}
.gb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #f6dce3; }
.gb-card .thumb { position: relative; aspect-ratio: 1/1; background: #f3efe9; }
.gb-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gb-card .thumb .placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 46px;
}
.gb-card .badge {
    position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff;
    padding: 3px 10px; border-radius: 999px; font-size: 12px;
}
.gb-card .body { padding: 14px; }
.gb-card .title {
    font-weight: 600; margin-bottom: 8px; line-height: 1.45; height: 40px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.progress { height: 7px; border-radius: 999px; background: #f1ece7; overflow: hidden; margin: 10px 0 6px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--pink), #f7936f); border-radius: 999px; transition: width .4s; }
.progress-bar.done { background: linear-gradient(90deg, var(--green), #58c78d); }
.gb-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-3); gap: 8px; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-item .hint { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.input, .select, .textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; outline: none; transition: .15s; color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232,96,127,.1); }
.textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* 图片上传器 */
.uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.uploader .cell {
    position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
    background: #f3efe9; border: 1px solid var(--line);
}
.uploader .cell img { width: 100%; height: 100%; object-fit: cover; }
.uploader .cell .del {
    position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: none;
    border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
    font-size: 13px; line-height: 24px; padding: 0; text-align: center;
}
.uploader .add {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; border: 1.5px dashed #d8cfc4; border-radius: 12px; cursor: pointer;
    color: var(--ink-3); background: #fff; aspect-ratio: 1/1; -webkit-tap-highlight-color: transparent;
}
.uploader .add .plus { font-size: 26px; line-height: 1; }
.uploader .add span { font-size: 11px; }

/* 商品详情弹窗内两栏布局（手机端自动单列） */
.detail-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- 详情页布局 ---------- */
.detail { display: grid; grid-template-columns: 420px 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #f3efe9; aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; }
.gallery-thumbs img.active { border-color: var(--pink); }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.kv { display: grid; grid-template-columns: 90px 1fr; row-gap: 10px; font-size: 13.5px; }
.kv .k { color: var(--ink-3); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
    padding: 6px 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff;
    -webkit-tap-highlight-color: transparent;
}
.opt.active { border-color: var(--pink); background: var(--pink-light); color: var(--pink-dark); font-weight: 600; }
.opt.disabled { opacity: .4; cursor: not-allowed; }

.cart-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 30px; height: 30px; border: none; background: #fff; cursor: pointer; }
.stepper span { width: 40px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 30px; line-height: 30px; }

.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: none; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--pink-light); color: var(--pink-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}

.count-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.count-line .num { font-size: 34px; font-weight: 800; color: var(--pink-dark); line-height: 1; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-3); font-weight: 600; background: #fbf8f5; }
tbody tr:hover { background: #fdfaf8; }

/* ---------- 后台 ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card .label { color: var(--ink-3); font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 4px; }
.stat-card .sub { font-size: 12px; color: var(--ink-3); }

/* ---------- 支付页 ---------- */
.pay-box { max-width: 460px; margin: 40px auto; background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); text-align: center; }
.pay-box .amount { font-size: 38px; font-weight: 800; color: var(--pink-dark); margin: 12px 0 4px; }
.pay-methods { display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line);
    border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pay-method.active { border-color: var(--pink); background: var(--pink-light); }
.pay-method .ic { font-size: 22px; }
.pay-note { background: #fff8e6; border: 1px dashed #f0cf8a; color: #8a6a1f; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 999; display: grid; gap: 8px; width: max-content; max-width: 90vw; }
.toast {
    padding: 11px 22px; border-radius: 999px; background: rgba(34,32,31,.92); color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: pop .25s ease; font-size: 13.5px;
}
.toast.success { background: #2fa36b; }
.toast.error { background: #e5484d; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.modal-mask {
    position: fixed; inset: 0; background: rgba(34,32,31,.45); display: flex;
    align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal { background: #fff; border-radius: 16px; padding: 24px; width: min(560px, 100%); max-height: 86vh; overflow: auto; }
.modal h3 { margin: 0 0 16px; font-size: 17px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.pager { display: flex; justify-content: center; gap: 8px; align-items: center; margin: 26px 0 40px; flex-wrap: wrap; }
.pager button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }
.pager button.active { background: var(--pink); color: #fff; border-color: var(--pink); }

.footer { text-align: center; color: var(--ink-3); padding: 40px 20px 30px; font-size: 12.5px; }

/* 隐藏类：桌面隐藏、手机显示的助手类 */
.only-mobile { display: none !important; }

/* =========================================================
   平板 / 小屏
   ========================================================= */
@media (max-width: 860px) {
    .detail { grid-template-columns: 1fr; gap: 18px; }
    .hero { padding: 26px 22px; }
    .hero-art { display: none; }
    .hero h1 { font-size: 23px; }
    .navbar .container { gap: 12px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* =========================================================
   手机端（重点美化）
   ========================================================= */
@media (max-width: 768px) {
    :root { --nav-h: 54px; }

    body { font-size: 15px; padding-bottom: calc(62px + var(--safe-b)); }
    .container { width: calc(100% - 24px); }

    /* ---- 顶部导航：只留 logo + 用户区 + 汉堡 ---- */
    .navbar .container { gap: 8px; }
    .navbar .nav-links { display: none; }
    .logo { font-size: 17px; flex: 1; }
    .logo small { display: none; }
    .nav-toggle { display: flex; }
    .nav-user .who { display: none; }
    .nav-user .btn { padding: 6px 12px; font-size: 12.5px; }

    /* ---- 底部 Tab ---- */
    .tabbar { display: block; }
    .only-mobile { display: block !important; }

    /* ---- 头图 ---- */
    .hero {
        margin-top: 14px; padding: 22px 18px; border-radius: 18px;
        flex-direction: column; align-items: flex-start; gap: 0;
    }
    .hero h1 { font-size: 21px; line-height: 1.35; }
    .hero p { font-size: 13.5px; margin-bottom: 14px; }
    .hero-tags .tag { font-size: 11.5px; }
    .hero .btn { flex: 1; min-width: 130px; }

    /* ---- 标题 / 筛选 ---- */
    .section-title { margin: 22px 0 12px; }
    .section-title h2 { font-size: 18px; }
    .filters { margin: 16px 0 12px; gap: 8px; }
    .filter-input { min-width: 0; flex: 1 1 140px; padding: 10px 14px; font-size: 16px; }
    .filters .btn { flex: 0 0 auto; }
    .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chips .chip { flex: 0 0 auto; padding: 7px 14px; font-size: 13px; }

    /* ---- 卡片网格：两列 ---- */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px !important; }
    .gb-card { border-radius: 12px; }
    .gb-card .body { padding: 10px; }
    .gb-card .title { font-size: 13.5px; height: 38px; margin-bottom: 6px; }
    .gb-card .badge { font-size: 11px; padding: 2px 8px; left: 6px; top: 6px; }
    .gb-meta { font-size: 11.5px; }

    /* ---- 表单 ---- */
    .row { flex-direction: column; gap: 0; }
    .form-item label { font-size: 13.5px; }
    .input, .select, .textarea { font-size: 16px; padding: 12px 14px; border-radius: 12px; }
    .btn { padding: 12px 20px; font-size: 15px; }
    .btn-sm { padding: 8px 14px; font-size: 13px; }
    .opt { padding: 8px 14px; font-size: 14px; }

    /* ---- 详情页 ---- */
    .detail-modal { grid-template-columns: 1fr; gap: 12px; }
    .detail { gap: 14px; margin-top: 14px; }
    .gallery-main { border-radius: 12px; }
    .gallery-thumbs img { width: 56px; height: 56px; }
    .panel { padding: 16px; border-radius: 12px; margin-bottom: 12px; }
    .panel h3 { font-size: 15px; }
    .kv { grid-template-columns: 76px 1fr; font-size: 14px; }
    .count-line .num { font-size: 28px; }
    .stepper button { width: 36px; height: 36px; font-size: 17px; }
    .stepper span { height: 36px; line-height: 36px; width: 44px; }

    /* ---- 订单卡片：竖排 ---- */
    .order-card { padding: 14px !important; }
    .order-card .oc-main { flex-direction: column; gap: 10px; }
    .order-card .oc-thumb { width: 100% !important; height: 0; padding-bottom: 62%; position: relative; }
    .order-card .oc-thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; }
    .order-card .oc-side { text-align: left !important; min-width: 0 !important; display: flex; align-items: baseline; gap: 10px; }
    .order-card .oc-actions { justify-content: stretch !important; }
    .order-card .oc-actions .btn { flex: 1; }

    /* ---- 支付页 ---- */
    .pay-box { margin: 16px auto; padding: 22px 18px; border-radius: 16px; max-width: 100%; }
    .pay-box .amount { font-size: 32px; }
    .pay-method { padding: 15px 14px; }

    /* ---- 弹窗：底部抽屉 ---- */
    .modal-mask { align-items: flex-end; padding: 0; }
    .modal {
        width: 100%; max-width: 100%; border-radius: 20px 20px 0 0;
        max-height: 88vh; padding: 20px 18px calc(20px + var(--safe-b));
        animation: sheetUp .24s ease;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .modal h3 { font-size: 16px; margin-bottom: 14px; }
    .modal-foot { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; }
    .modal-foot .btn { flex: 1; padding: 13px; font-size: 15px; }
    @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

    /* ---- 提示 ---- */
    .toast-wrap { top: 64px; }
    .toast { padding: 10px 18px; font-size: 13px; }

    /* ---- 后台：宽表格转「卡片列表」，不再横向滚动 ---- */
    .table-wrap { overflow: visible; }
    table { display: block; font-size: 13px; }
    thead { display: none; }
    tbody, tr, td { display: block; width: auto; }
    tr {
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 2px 12px;
        margin-bottom: 10px;
        background: #fff;
    }
    tbody tr:last-child { margin-bottom: 0; }
    td {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 1px dashed var(--line);
        white-space: normal;
        text-align: right;
        overflow-wrap: anywhere;
    }
    tr td:last-child { border-bottom: 0; }
    td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto;
        margin-right: auto;
        text-align: left;
        color: var(--ink-3);
        font-size: 12.5px;
        font-weight: 600;
    }
    td[colspan] { justify-content: center; color: var(--ink-3); }
    td > div { min-width: 0; }
    /* 操作列按钮换行排布，避免挤成一条 */
    tr td:last-child { flex-wrap: wrap; gap: 6px; }
    tr td:last-child > * { flex: 0 0 auto; }

    .admin-tabs { margin: 16px 0 14px; }
    .card { padding: 14px; }
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 22px; }

    /* ---- 分页 ---- */
    .pager { margin: 18px 0 24px; gap: 6px; }
    .pager button { padding: 7px 12px; font-size: 13px; }

    .footer { padding: 24px 20px calc(24px + var(--safe-b)); font-size: 12px; }
}

/* 超窄屏：单列商品 */
@media (max-width: 400px) {
    .grid { grid-template-columns: 1fr; }
}
