:root {
  --bg: #f5f5f5;
  --panel: #fff;
  --card: #fff;
  --primary: #ff5000;
  --primary-dark: #e04800;
  --gold: #ff5000;
  --gold-soft: #ff7433;
  --text: #333;
  --muted: #888;
  --ink: #222;
  --line: #eee;
  --shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --header: #fff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select { font-family: inherit; }

.mall-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #f0f0f0; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.mall-header-inner { width: min(1180px, calc(100% - 24px)); margin: 0 auto; min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.mall-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mall-logo-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #ff7433, #ff5000); color: #fff; display: grid; place-items: center; font-weight: 900; }
.mall-logo strong { display: block; font-size: 16px; color: #111; }
.mall-logo em { display: block; margin-top: 2px; color: #999; font-size: 12px; font-style: normal; }
.mall-header-search { display: flex; height: 42px; border: 2px solid var(--primary); border-radius: 999px; overflow: hidden; background: #fff; }
.mall-header-search input { flex: 1; border: 0; outline: none; padding: 0 16px; font-size: 14px; background: transparent; }
.mall-header-search button { border: 0; min-width: 84px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.mall-header-links { display: flex; gap: 8px; align-items: center; }
.mall-header-links a { padding: 8px 12px; border-radius: 999px; color: #555; font-size: 13px; font-weight: 700; }
.mall-header-links a.is-primary { background: var(--primary); color: #fff; }
.mall-header-links a.is-danger { color: #d4380d; }

.bg-page { min-height: calc(100vh - 64px); padding: 12px 12px 88px; overflow-x: hidden; }
.bg-shell { width: min(1180px, 100%); margin: 0 auto; }
.bg-nav, .bg-brand, .bg-logo, .bg-title, .bg-sub { display: none; }
.bg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bg-btn { border: 0; border-radius: 8px; padding: 10px 16px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.bg-btn.dark { background: #fff; color: #333; border: 1px solid #ddd; }
.bg-btn.black { background: #222; color: #fff; }
.bg-btn.danger { background: #ff4d4f; color: #fff; }
.bg-btn.success { background: #52c41a; color: #fff; }
.bg-btn.mint { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }
.bg-btn:disabled { opacity: .55; cursor: not-allowed; }
.mall-hero, .bg-panel { background: linear-gradient(135deg, #fff 0%, #fff4ee 100%); border: 1px solid #ffe7dc; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.mall-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mall-kicker, .shop-kicker { display: none; }
.mall-hero h1 { margin: 0; font-size: 22px; line-height: 1.2; color: #111; }
.bg-panel h1 { margin: 0; font-size: 22px; line-height: 1.2; color: #111; }
.mall-hero p, .bg-panel p { color: #666; line-height: 1.8; }
.bg-stats { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); gap: 8px; margin-top: 14px; }
.mall-hero .bg-stats { margin-top: 0; flex: 1; max-width: 460px; min-width: 0; }
.bg-stat { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #f0f0f0; }
.bg-stat b { display: block; font-size: 16px; color: var(--primary); }
.bg-stat span { color: #888; font-size: 11px; }
.mall-toolbar, .shop-toolbar { position: relative; top: auto; z-index: 2; margin-top: 12px; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 12px 14px; overflow: hidden; touch-action: pan-y; overscroll-behavior: none; }
.shop-toolbar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shop-title-block { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.shop-title-block h2 { align-self: flex-start; margin: 0; font-size: 18px; color: #111; }
.shop-toolbar-head h2, .bg-card h2, .section-head h2 { margin: 0 0 6px; font-size: 18px; color: #111; }
.shop-toolbar-head p, .bg-card p { margin: 0; color: #888; line-height: 1.6; font-size: 13px; }
.shop-toolbar-head span { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; background: #fff1e8; color: var(--primary); font-size: 12px; font-weight: 800; }
.front-product-launch { border: 0; border-radius: 999px; padding: 6px 12px; background: linear-gradient(135deg, #ff7433, #ff5000); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(255,80,0,.22); }
.front-product-launch:hover { filter: brightness(1.05); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; overflow: hidden; }
.category-tab { border-radius: 999px; padding: 8px 12px; background: #f7f7f7; color: #555; border: 1px solid #eee; font-weight: 700; cursor: pointer; }
.category-tab em { margin-left: 6px; font-style: normal; color: #999; }
.category-tab.active, .category-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.category-tab.active em, .category-tab:hover em { color: #fff; }
.mall-grid, .bg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; overflow: hidden; }
.product { background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; box-shadow: 0 4px 14px rgba(0,0,0,.04); display: flex; align-items: stretch; min-width: 0; }
.selectable-product { cursor: pointer; }
.selectable-product:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.selectable-product.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.product img { width: 100%; height: 100%; object-fit: cover; background: #f6f6f6; display: block; }
.product-cover { position: relative; flex: 0 0 112px; width: 112px; min-height: 112px; overflow: hidden; }
.product-cover span { display: none; }
.product-body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; }
.product-name { font-size: 14px; font-weight: 800; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.product-tags span { border-radius: 999px; padding: 2px 7px; background: #f7f7f7; color: #666; font-size: 11px; font-weight: 700; }
.product-shop { color: #999; font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { margin-top: 4px; color: #888; font-size: 12px; line-height: 1.45; max-height: 34px; overflow: hidden; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 8px; }
.price { font-weight: 900; font-size: 20px; color: var(--primary); }
.price small { font-size: 12px; margin-right: 2px; }
.qty-stepper { display: inline-flex; align-items: center; height: 28px; border-radius: 999px; background: #fff; border: 1px solid #eee; overflow: hidden; }
.qty-btn { width: 28px; height: 28px; border: 0; background: transparent; color: #555; font-size: 16px; font-weight: 900; cursor: pointer; }
.qty-btn.plus { background: var(--primary); color: #fff; }
.qty-btn:disabled { color: #ccc; background: #f5f5f5; cursor: not-allowed; }
.qty-value { min-width: 24px; text-align: center; font-size: 13px; font-weight: 800; }
.product-empty { margin-top: 18px; border-radius: 12px; padding: 28px; background: #fff; color: #888; text-align: center; }
.mall-more { display: flex; justify-content: center; margin-top: 18px; }
.bg-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin-top: 16px; }
.console-flash { margin: 0 0 14px; border-radius: 10px; padding: 12px 14px; font-weight: 700; line-height: 1.6; }
.console-flash.ok { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.console-flash.error { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; }
.section-title, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block-title { margin: 24px 0 0; }
.selected-summary { min-height: 90px; border: 1px dashed #ffd8bf; border-radius: 12px; padding: 12px; background: #fffaf7; }
.selected-empty { height: 70px; display: grid; place-items: center; color: #bbb; }
.selected-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.selected-item:last-child { border-bottom: 0; }
.front-product-card h2 { margin-top: 0; }
.front-product-form { grid-template-columns: 1fr; align-items: end; }
.front-product-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; }
.front-product-sheet { width: min(420px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.2); padding: 16px; }
.front-product-sheet-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.front-product-sheet-hd strong { font-size: 16px; }
.front-product-sheet-hd button { width: 32px; height: 32px; border: 0; border-radius: 999px; background: #f5f5f5; color: #666; font-size: 20px; cursor: pointer; }
.mall-cart-bar { position: fixed; right: 16px; bottom: 16px; left: auto; transform: none; z-index: 40; width: min(340px, calc(100% - 24px)); }
.cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #111; border: 0; border-radius: 16px; padding: 8px 8px 8px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22); color: #fff; }
.cart-toggle { border: 0; background: transparent; color: #fff; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cart-toggle b { min-width: 22px; height: 22px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; }
.cart-total { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #ddd; }
.cart-total strong { color: #fff; font-size: 16px; }
.cart-checkout { padding: 8px 14px; border-radius: 12px; white-space: nowrap; }
.cart-panel { margin-bottom: 10px; max-height: 55vh; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 16px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart-head button { border: 0; background: #f5f5f5; color: #666; width: 32px; height: 32px; border-radius: 999px; font-size: 20px; cursor: pointer; }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bg-form { display: grid; gap: 12px; }
.bg-input { width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 8px; padding: 0 12px; outline: none; font-size: 14px; background: #fff; }
.bg-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,80,0,.12); }
.search-bar { display: flex; gap: 8px; margin: 14px 0; }
.product-create-form { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; margin-bottom: 16px; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; color: #333; }
.data-table th, .data-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; vertical-align: middle; }
.data-table th { color: #888; font-weight: 700; background: #fafafa; }
.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #f5f5f5; }
.product-edit-table .bg-input { height: 36px; min-width: 72px; font-size: 13px; }
.product-edit-thumb { display: grid; gap: 6px; justify-items: start; }
.product-edit-thumb .bg-input { max-width: 148px; padding: 0 8px; }
.product-row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.product-row-actions form { margin: 0; }
.share-receiver-box { display: grid; gap: 10px; padding: 14px; border: 1px solid #f0f0f0; border-radius: 12px; background: #fafafa; }
.share-receiver-box strong { font-size: 14px; }
.share-receiver-box p { margin: 0; color: #888; font-size: 13px; line-height: 1.6; }
.share-receiver-row { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) 110px minmax(0, 1fr); gap: 8px; }
.share-openid-qr { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.share-openid-qr img { width: 140px; height: 140px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 10px; flex: 0 0 140px; }
.share-openid-qr b { display: block; font-size: 14px; margin-bottom: 6px; }
.share-openid-qr span { display: block; color: #888; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.data-table a { color: var(--primary); font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 16px; color: #888; }
.inline-form { display: inline-flex; gap: 6px; }
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card, .order-card, .dashboard-todo, .order-stat-card { border: 1px solid #f0f0f0; border-radius: 14px; background: #fff; padding: 16px; }
.admin-user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f5f5f5; flex: 0 0 auto; }
.admin-user-head, .order-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.admin-user-head strong, .order-card-head strong { display: block; font-size: 16px; color: #111; }
.admin-user-head span, .order-card-head span { display: block; color: #888; font-size: 13px; margin-top: 4px; }
.admin-user-tags, .order-status-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-user-tags span, .order-status-tags span { border-radius: 999px; padding: 4px 8px; background: #f5f5f5; color: #666; font-weight: 800; font-size: 12px; }
.admin-user-tags .ok, .order-status-tags .ok { background: #f6ffed; color: #389e0d; }
.admin-user-tags .wait, .order-status-tags .wait { background: #fff7e6; color: #d46b08; }
.admin-user-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-user-summary div, .order-amount, .order-income div { border-radius: 10px; background: #fafafa; padding: 10px; min-width: 0; }
.admin-user-summary b, .order-amount span, .order-income span { display: block; color: #888; font-size: 12px; margin-bottom: 5px; }
.admin-user-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.account-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); align-items: end; }
.account-form label { color: #666; font-size: 12px; font-weight: 700; }
.admin-user-form { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.admin-user-form label, .profile-form label { color: #666; font-size: 12px; font-weight: 700; }
.profile-card { margin-top: 18px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-head img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: #f5f5f5; }
.profile-head h2 { margin: 0 0 6px; }
.profile-form { grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; }
.dashboard-todos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.dashboard-todo span { display: block; color: #888; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.dashboard-todo strong { display: block; color: #111; font-size: 22px; }
.withdraw-amount-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.money-log-list { display: grid; gap: 10px; margin-top: 14px; }
.money-log-item { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #f0f0f0; border-radius: 12px; background: #fff; padding: 12px; }
.money-log-item strong { display: block; color: #111; font-size: 14px; }
.money-log-item span, .money-log-item em, .money-log-item small { display: block; color: #888; font-size: 12px; margin-top: 4px; }
.money-log-item em { font-style: normal; }
.money-log-item .plus { color: #389e0d; font-weight: 900; }
.money-log-item .minus { color: #cf1322; font-weight: 900; }
.money-log-empty { border-radius: 12px; background: #fafafa; color: #888; padding: 18px; text-align: center; }
.order-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 16px; }
.order-stat-card span { display: block; color: #888; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.order-stat-card strong { display: block; color: #111; font-size: 20px; }
.order-list { display: grid; gap: 12px; }
.order-main { display: grid; grid-template-columns: 220px 1fr; gap: 10px; margin-bottom: 12px; }
.order-amount strong { display: block; color: var(--primary); font-size: 28px; margin-bottom: 8px; }
.order-amount em { display: block; color: #888; font-size: 12px; font-style: normal; line-height: 1.7; }
.order-income { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.order-income b { color: #111; font-size: 18px; }
.order-items { display: grid; gap: 8px; margin: 12px 0; }
.order-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; border: 1px solid #f0f0f0; border-radius: 12px; padding: 8px; }
.order-item img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: #f5f5f5; }
.order-item strong { display: block; color: #111; font-size: 14px; }
.order-item span { display: block; color: #888; font-size: 12px; margin-top: 3px; }
.order-item b { color: var(--primary); white-space: nowrap; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.withdraw-form { grid-template-columns: repeat(5, minmax(140px, 1fr)); align-items: end; }
.invite-card { margin-top: 18px; display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center; }
.invite-card img { width: 180px; height: 180px; border-radius: 16px; background: #fff; padding: 10px; border: 1px solid #f0f0f0; }
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.channel { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #f0f0f0; }
.channel-mark { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; background: #fff1e8; color: var(--primary); display: grid; place-items: center; font-weight: 900; }
.channel-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.channel-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f5f5f5; }
.channel-name { font-weight: 800; }
.channel-sub { color: #888; font-size: 12px; margin-top: 4px; }
.share-card { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; background: #fff; }
.share-thumb { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border-radius: 8px; background: #f7f7f7; overflow: hidden; }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-top { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.poster-wrap { display: grid; place-items: center; gap: 14px; }
.poster-save-tip { width: min(420px, 100%); border: 1px solid #f0f0f0; border-radius: 12px; padding: 12px 14px; background: #fff; color: #666; text-align: center; }
.poster-save-image { width: min(420px, 100%); border-radius: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.poster-card { width: min(420px, 100%); min-height: 680px; border-radius: 24px; padding: 26px; color: #fff; background: linear-gradient(160deg, #ff7433, #c43c00 62%, #7a2200); display: flex; flex-direction: column; justify-content: space-between; }
.poster-brand { display: flex; align-items: center; gap: 12px; }
.poster-brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 16px; background: rgba(255,255,255,.12); }
.poster-amount { font-size: 54px; font-weight: 900; }
.poster-title { margin-top: 12px; font-size: 20px; font-weight: 900; }
.poster-products { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.poster-products div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.poster-qr { background: #fff; color: #111; border-radius: 20px; padding: 18px; text-align: center; }
.poster-qr img { width: 210px; height: 210px; display: block; margin: 0 auto; }
.notice { border: 1px solid #ffe7ba; background: #fffbe6; border-radius: 12px; padding: 14px; color: #874d00; line-height: 1.8; font-size: 13px; margin-bottom: 14px; }

body.is-admin { background: #f0f2f5; }
body.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-wrap { width: min(420px, calc(100% - 32px)); }
.admin-login-wrap .bg-form { grid-template-columns: 1fr; }
.admin-frame { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.admin-side { background: #001529; color: #fff; padding: 18px 12px; display: flex; flex-direction: column; }
.admin-brand { display: block; padding: 8px 10px 18px; }
.admin-brand strong { display: block; font-size: 16px; }
.admin-brand span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 12px; }
.admin-side nav { display: grid; gap: 6px; }
.admin-side nav a { display: block; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.75); }
.admin-side nav a.active, .admin-side nav a:hover { background: var(--primary); color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 18px; }
.admin-side-foot a { color: rgba(255,255,255,.55); font-size: 13px; padding: 8px 12px; }
.admin-body { min-width: 0; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 20px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.admin-top h1 { margin: 0; font-size: 20px; }
.admin-top p { margin: 4px 0 0; color: #888; font-size: 13px; }
.admin-main { padding: 18px; }
.admin-main .bg-card { margin-top: 0; }
.admin-main .bg-nav, .admin-main .mall-header { display: none; }

@media (max-width: 1100px) {
  .mall-grid, .bg-grid { grid-template-columns: 1fr; }
  .channel-grid, .dashboard-todos, .order-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-create-form { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .mall-header-inner { grid-template-columns: 1fr auto; padding: 8px 0; }
  .mall-header-search { grid-column: 1 / -1; }
  .mall-logo em, .mall-header-links a:not(.is-primary):not(.is-danger) { display: none; }
  .mall-hero { flex-wrap: wrap; align-items: center; }
  .mall-hero h1 { font-size: 16px; white-space: normal; }
  .mall-toolbar { top: auto; }
  .product-cover { flex-basis: 96px; width: 96px; min-height: 96px; }
  .bg-stats, .admin-user-summary, .admin-user-form, .account-form, .profile-form, .dashboard-todos, .order-stat-grid, .order-main, .order-income, .withdraw-form, .invite-card, .product-create-form, .cart-actions { grid-template-columns: 1fr; }
  .admin-frame { grid-template-columns: 1fr; }
  .admin-side { padding: 12px; }
  .admin-side nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-side nav a { text-align: center; font-size: 13px; padding: 8px 4px; }
  .admin-side-foot { display: none; }
  .pager, .order-card-head, .admin-top { flex-direction: column; align-items: flex-start; }
  .share-receiver-row { grid-template-columns: 1fr; }
  .share-openid-qr { flex-direction: column; align-items: flex-start; }
}
