/* ============================================================
 * 号卡 + 靓号分销平台 —— 毛玻璃主题（Glassmorphism）
 * 规格：
 *   - 卡片圆角 20px / 按钮 12px / 输入框 12px
 *   - 主色 #2563EB  辅助 #06B6D4  强调 #F59E0B
 *   - 背景：渐变光斑 + 动态模糊色块（浅色 / 深色双主题）
 *   - 断点：<=768px 为 H5（底部固定 Tab 导航）
 *   - 触摸目标 >= 44px
 * ============================================================ */

/* ---------- 1. 设计变量：浅色主题（默认） ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, .12);
    --cyan: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --line: rgba(15, 23, 42, .1);

    --bg-1: #e0f2fe;
    --bg-2: #ede9fe;
    --bg-3: #fce7f3;

    --glass-bg: rgba(255, 255, 255, .55);
    --glass-bg-strong: rgba(255, 255, 255, .75);
    --glass-border: rgba(255, 255, 255, .65);
    --glass-blur: blur(20px) saturate(180%);
    --shadow-sm: 0 2px 8px rgba(31, 38, 135, .06);
    --shadow: 0 8px 32px rgba(31, 38, 135, .12);
    --shadow-lg: 0 16px 48px rgba(31, 38, 135, .18);

    --radius-card: 20px;
    --radius-btn: 12px;
    --radius-input: 12px;
    --radius-pill: 999px;

    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --fs-body: 15px;
    --fs-sm: 13px;
    --fs-lg: 17px;
    --fs-h3: 20px;
    --fs-h2: 26px;
    --fs-h1: 32px;

    --header-h: 64px;
}

/* ---------- 2. 深色主题 ---------- */
[data-theme="dark"] {
    --text: #e2e8f0;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, .12);

    --bg-1: #0b1220;
    --bg-2: #131a2e;
    --bg-3: #1e1b3a;

    --glass-bg: rgba(30, 41, 59, .55);
    --glass-bg-strong: rgba(30, 41, 59, .78);
    --glass-border: rgba(255, 255, 255, .14);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow: 0 8px 32px rgba(0, 0, 0, .38);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
}

/* ---------- 3. 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.3; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }

/* ---------- 4. 背景光斑（动态模糊色块） ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    animation: float 18s ease-in-out infinite;
}
.blob.b1 { width: 460px; height: 460px; background: #60a5fa; top: -140px; left: -120px; }
.blob.b2 { width: 400px; height: 400px; background: #22d3ee; bottom: -160px; right: -100px; animation-delay: -6s; }
.blob.b3 { width: 340px; height: 340px; background: #fbbf24; top: 38%; left: 52%; opacity: .32; animation-delay: -12s; }
[data-theme="dark"] .blob { opacity: .28; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 40px) scale(.95); }
}

/* ---------- 5. 毛玻璃基类 ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
}

.card {
    border-radius: var(--radius-card);
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-flat:hover { transform: none; }

/* ---------- 6. 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 99, 235, .36); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #f97316); color: #fff; }
.btn-outline {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
}
.btn-outline:hover { background: var(--glass-bg-strong); }
.btn-ghost { background: transparent; color: var(--muted); min-height: 36px; padding: 0 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 7. 表单 ---------- */
.input, .select, .textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-input);
    border: 1px solid var(--line);
    background: var(--glass-bg-strong);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: all .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.field { margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.field-error { margin-top: 4px; font-size: 12px; color: var(--danger); }

/* 复选框与单选（触摸友好） */
.check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-input);
    background: var(--glass-bg);
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 14px;
}
.check-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.check-item.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* ---------- 8. 顶部导航 ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
}
.logo img { height: 32px; width: auto; }
.logo .grad {
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: all .2s;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* 主题切换按钮 */
.theme-toggle {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--radius-btn);
    border: 1px solid var(--line);
    background: var(--glass-bg);
    cursor: pointer;
    font-size: 18px;
}

/* ---------- 9. 主容器与栅格 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main { padding: 28px 0 60px; min-height: 60vh; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 800; }
.section-more { font-size: 13px; color: var(--muted); }

/* ---------- 10. 首页 Banner ---------- */
.hero {
    position: relative;
    padding: 56px 40px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: linear-gradient(120deg, rgba(37, 99, 235, .85), rgba(6, 182, 212, .8));
    color: #fff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .35), transparent 60%);
    pointer-events: none;
}
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .95; margin-bottom: 24px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: #fff; }

/* ---------- 11. 产品卡片 ---------- */
.product-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media {
    height: 132px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    position: relative;
}
.product-media .tag-hot {
    position: absolute;
    top: 10px; right: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    background: var(--primary-soft);
    color: var(--primary);
}
.tag-gray { background: rgba(100, 116, 139, .14); color: var(--muted); }
.tag-green { background: rgba(16, 185, 129, .15); color: #047857; }
.tag-orange { background: rgba(245, 158, 11, .16); color: #b45309; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.price { font-size: 22px; font-weight: 800; color: var(--danger); }
.price-unit { font-size: 12px; color: var(--muted); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }

/* ---------- 12. 靓号卡片 ---------- */
.number-card {
    border-radius: var(--radius-card);
    padding: 18px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.number-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.number-value {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    margin-bottom: 8px;
}
.number-value .hl { color: var(--danger); }
.number-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.number-price { font-size: 19px; font-weight: 800; color: var(--danger); margin-bottom: 12px; }

/* ---------- 13. 筛选栏 ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-bottom: 20px;
    align-items: center;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.filter-search { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.filter-search .input { flex: 1; }

/* ---------- 14. 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 28px 0 0;
}
.page-num, .page-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 14px;
    transition: all .2s;
}
.page-num:hover, .page-btn:hover { background: var(--primary-soft); color: var(--primary); }
.page-num.is-active {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    font-weight: 700;
    border-color: transparent;
}
.page-total { font-size: 13px; color: var(--muted); margin-left: 6px; }

/* ---------- 15. 数据展示 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card {
    padding: 18px;
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 16. 表格 ---------- */
.table-wrap {
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow-x: auto;
}
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th, table.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.table th { background: rgba(148, 163, 184, .1); font-weight: 600; color: var(--text-2); }
table.table tbody tr:hover { background: rgba(148, 163, 184, .07); }
table.table td.wrap { white-space: normal; }

/* ---------- 17. 弹窗 / 抽屉 / Toast（毛玻璃） ---------- */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; }
.modal {
    width: 100%;
    max-width: 460px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, .18);
    cursor: pointer;
    font-size: 18px;
    color: var(--muted);
}
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.drawer-mask {
    position: fixed; inset: 0; z-index: 900;
    display: none;
    background: rgba(15, 23, 42, .4);
    backdrop-filter: blur(6px);
}
.drawer-mask.show { display: block; }
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    z-index: 901;
    padding: 22px;
    overflow-y: auto;
    background: var(--glass-bg-strong);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .28s ease;
}
.drawer-mask.show .drawer { transform: translateX(0); }

.toast-wrap {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    font-size: 14px;
    animation: toastIn .25s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 18. 页脚与认证标识 ---------- */
.footer {
    margin-top: 50px;
    padding: 40px 0 28px;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
.footer-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.cert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.cert-item { display: flex; align-items: center; gap: 6px; }
.cert-item img { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 2px; }
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(148, 163, 184, .14);
    font-size: 12px;
}

/* ---------- 19. H5 底部 Tab 导航 ---------- */
.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: none;
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-bg-strong);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.tabbar-inner { display: flex; height: 58px; }
.tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--muted);
    min-height: 50px;
}
.tabbar a .ic { font-size: 20px; line-height: 1; }
.tabbar a.active { color: var(--primary); font-weight: 700; }

/* ---------- 20. 文章 ---------- */
.article-content { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.article-content h2 { font-size: 20px; margin-top: 26px; }
.article-content h3 { font-size: 17px; margin-top: 20px; }
.article-content p { margin-bottom: 14px; }
.article-content img { border-radius: 12px; margin: 14px 0; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 10px 10px 0;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 21. 空状态 ---------- */
.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}
.empty .ic { font-size: 48px; margin-bottom: 12px; opacity: .5; }

/* ---------- 22. 响应式：H5 ---------- */
@media (max-width: 768px) {
    :root { --fs-h1: 24px; --fs-h2: 20px; --fs-h3: 17px; --header-h: 56px; }

    .container { padding: 0 14px; }
    .main { padding: 16px 0 88px; }         /* 留出 Tabbar 高度 */
    .tabbar { display: block; }             /* H5 显示底部导航 */
    .nav { display: none; }                 /* H5 隐藏顶部菜单 */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 32px 20px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }

    .card { padding: 16px; border-radius: 16px; }
    .filter-bar { padding: 12px; }
    .btn { padding: 0 16px; }

    /* H5 产品卡片改为横向紧凑布局 */
    .product-media { height: 108px; font-size: 18px; }
    .modal { max-width: 100%; border-radius: 16px 16px 0 0; margin-top: auto; }
    .modal-mask { align-items: flex-end; padding: 0; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-value { font-size: 20px; }
}

/* ---------- 23. 打印与可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
