/* 本地便民平台 - 移动端样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: var(--skin-bg, #f5f5f5);
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 60px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 顶部栏 */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--skin-main, #ff6b35), var(--skin-main2, #ff8c42));
  padding: 10px 12px;
}
.top-bar-inner { display: flex; align-items: center; gap: 10px; }
.area-switcher {
  display: flex; align-items: center; gap: 4px;
  color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.area-switcher .arrow { font-size: 10px; opacity: 0.8; }
.search-box {
  flex: 1; background: rgba(255,255,255,0.9);
  border-radius: 20px; padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #999;
}

/* 主内容 */
.main-content { padding: 12px; }

/* 分类宫格 */
.category-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px; background: #fff;
  border-radius: 12px; padding: 16px 10px;
  margin-bottom: 12px;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: #333;
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #fff5f0;
}

/* 首页分区标题（功能板块 / 信息分类 / 找商家） */
.l1-sec .category-grid { margin-bottom: 0; }
.l1-sec-ttl { font-size: 14px; font-weight: 700; color: #1A1B1C; padding: 0 4px 10px; display: flex; align-items: center; gap: 6px; }
.l1-sec-ttl::after { content: ''; flex: 1; height: 1px; background: #f0f1f3; }
/* 资讯条 */
.news-bar {
  background: #fff; border-radius: 10px; padding: 10px 14px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.news-bar .label {
  background: var(--skin-main, #ff6b35); color: #fff; padding: 2px 8px;
  border-radius: 4px; font-size: 11px; flex-shrink: 0;
}
.news-bar .text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 区块标题 */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 4px 10px;
}
.section-title h3 { font-size: 16px; font-weight: 600; }
.section-title .more { font-size: 12px; color: #999; }

/* 商家卡片 */
.merchant-card {
  background: #fff; border-radius: 12px; padding: 12px;
  margin-bottom: 10px; display: flex; gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.merchant-cover {
  width: 90px; height: 90px; border-radius: 8px;
  background: linear-gradient(135deg, #ffd8c4, #ffb894);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.merchant-info { flex: 1; min-width: 0; }
.merchant-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.merchant-meta { font-size: 12px; color: #999; margin-bottom: 4px; }
.merchant-rating { color: var(--skin-star, #ff9500); font-size: 12px; }
.merchant-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: #f0f0f0; color: #666;
}
.tag.hot { background: #fff0e8; color: var(--skin-main, #ff6b35); }

/* 内容卡片 */
.content-card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.content-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.content-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #eee; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.content-author { font-size: 13px; font-weight: 500; }
.content-time { font-size: 11px; color: #999; }
.content-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.content-text { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.content-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
.content-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.content-footer { display: flex; gap: 16px; font-size: 12px; color: #999; }
.video-card {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 16/9; background: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-bottom: 8px;
}
.video-card .play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: flex;
  align-items: center; justify-content: center; font-size: 20px;
}
.video-card .platform-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 10px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; display: flex; border-top: 1px solid #eee;
  z-index: 100; padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 6px 0; gap: 2px;
  font-size: 10px; color: #999;
}
.nav-item.active { color: var(--skin-main, #ff6b35); }
.nav-icon { font-size: 20px; }
.nav-publish { position: relative; }
.publish-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--skin-main, #ff6b35), var(--skin-main2, #ff8c42));
  color: #fff; font-size: 24px; display: flex;
  align-items: center; justify-content: center;
  margin-top: -18px; box-shadow: 0 2px 8px rgba(var(--skin-main-rgb),0.4);
}

/* 弹窗 */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
}
.modal-content {
  background: #fff; width: 100%; max-height: 85vh;
  border-radius: 16px 16px 0 0; overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
  font-size: 15px; font-weight: 600;
}
.close-btn { cursor: pointer; color: #999; font-size: 16px; }
.area-list { padding: 8px 0; max-height: 60vh; overflow-y: auto; }
.area-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #f5f5f5;
}
.area-item.active { color: var(--skin-main, #ff6b35); }
.area-item .check { color: var(--skin-main, #ff6b35); font-weight: 600; }

/* 视频弹窗 */
.video-sheet { max-height: 80vh; }
.video-container {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
}
.video-container iframe { width: 100%; height: 100%; border: none; }
.video-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
}
.platform-tag { font-size: 12px; color: #666; background: #f0f0f0; padding: 4px 10px; border-radius: 4px; }
.origin-link { font-size: 13px; color: var(--skin-main, #ff6b35); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: #333; margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0;
  border-radius: 8px; font-size: 14px; background: #fff;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--skin-main, #ff6b35); }
.form-textarea { min-height: 100px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-size: 15px;
  font-weight: 500; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: linear-gradient(135deg, var(--skin-main, #ff6b35), var(--skin-main2, #ff8c42)); color: #fff; width: 100%; }
.btn-outline { background: #fff; color: var(--skin-main, #ff6b35); border: 1px solid var(--skin-main, #ff6b35); }
.btn-block { width: 100%; }

/* 登录注册 */
.auth-page {
  min-height: 100vh; background: linear-gradient(135deg, var(--skin-main, #ff6b35), var(--skin-main2, #ff8c42));
  display: flex; flex-direction: column; justify-content: center; padding: 24px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.auth-logo p { color: rgba(255,255,255,0.8); font-size: 14px; }
.auth-card { background: #fff; border-radius: 16px; padding: 24px; }
.auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px; font-size: 15px;
  color: #999; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: var(--skin-main, #ff6b35); border-bottom-color: var(--skin-main, #ff6b35); font-weight: 600; }
.auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.auth-link a { color: var(--skin-main, #ff6b35); }
@media (max-width: 768px) {
  .auth-page { padding: 20px 16px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .auth-logo { margin-bottom: 20px; }
  .auth-logo h1 { font-size: 24px; }
  .auth-card { padding: 22px 18px; border-radius: 14px; }
  .auth-card .form-input { min-height: 46px; font-size: 16px; }
  .auth-card .btn-primary { min-height: 48px; font-size: 16px; }
}

/* 我的页面 */
.profile-header {
  background: linear-gradient(135deg, var(--skin-main, #ff6b35), var(--skin-main2, #ff8c42));
  padding: 24px 16px; border-radius: 0 0 16px 16px;
  display: flex; align-items: center; gap: 14px; margin: -12px -12px 12px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.3); display: flex;
  align-items: center; justify-content: center; font-size: 28px;
}
.profile-info { flex: 1; color: #fff; }
.profile-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.profile-desc { font-size: 12px; opacity: 0.8; }
.menu-list { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.menu-item {
  display: flex; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5; font-size: 14px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .icon { margin-right: 12px; font-size: 18px; }
.menu-item .arrow { margin-left: auto; color: #ccc; }

/* 商家详情 */
.detail-cover {
  height: 180px; background: linear-gradient(135deg, #ffd8c4, #ffb894);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; margin: -12px -12px 0;
}
.detail-info { background: #fff; padding: 16px; margin: 0 -12px 12px; }
.detail-name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.detail-meta { font-size: 13px; color: #666; line-height: 1.8; }
.detail-section { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.detail-section h4 { font-size: 15px; margin-bottom: 10px; }
.product-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.product-item:last-child { border-bottom: none; }
.product-name { font-size: 14px; }
.product-price { color: var(--skin-main, #ff6b35); font-weight: 600; }
.product-price .original { color: #999; text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 400; }

/* 筛选栏 */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto;
  padding-bottom: 4px;
}
.filter-item {
  flex-shrink: 0; padding: 6px 14px; background: #fff;
  border-radius: 16px; font-size: 13px; color: #666;
  border: 1px solid #e0e0e0;
}
.filter-item.active { background: var(--skin-main, #ff6b35); color: #fff; border-color: var(--skin-main, #ff6b35); }

/* 空状态 */
.empty-state { text-align: center; padding: 48px 24px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* 管理后台 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 200px; background: #2c3e50; color: #fff; padding: 16px 0;
  flex-shrink: 0;
}
.admin-logo { padding: 0 20px 20px; font-size: 16px; font-weight: 600; border-bottom: 1px solid #34495e; }
.admin-menu { padding: 12px 0; }
.admin-menu a {
  display: block; padding: 10px 20px; color: #bdc3c7;
  font-size: 14px; border-left: 3px solid transparent;
}
.admin-menu .menu-group-title {
  padding: 14px 20px 6px; color: #ffb46b; font-size: 12.5px;
  letter-spacing: 1px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px; text-transform: none; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.admin-menu .menu-group-title:first-of-type { border-top: none; margin-top: 0; }
.admin-menu a:hover, .admin-menu a.active {
  background: #34495e; color: #fff; border-left-color: var(--skin-main, #ff6b35);
}
.admin-main { flex: 1; padding: 20px; background: #f0f2f5; overflow-x: auto; min-width: 0; }
.admin-main .content > h2, .admin-main > .admin-header h2 { font-size: 18px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.admin-header h2 { font-size: 20px; }
.admin-card {
  background: #fff; border-radius: 8px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.status-badge { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-badge.active { background: #e8f5e9; color: #2e7d32; }
.status-badge.pending { background: #fff3e0; color: #e65100; }
.status-badge.disabled { background: #ffebee; color: #c62828; }
.switch {
  position: relative; display: inline-block; width: 44px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ccc; border-radius: 24px; transition: 0.3s;
}
.switch-slider:before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .switch-slider { background: var(--skin-main, #ff6b35); }
.switch input:checked + .switch-slider:before { transform: translateX(20px); }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px; }
.stat-value { font-size: 24px; font-weight: 600; color: var(--skin-main, #ff6b35); }
.stat-label { font-size: 12px; color: #999; margin-top: 4px; }

/* 响应式 */
@media (max-width: 768px) {
  body.admin-body { overflow-x: hidden; }
  .admin-sidebar { display: none; }
  .admin-mobile-nav {
    display: block !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
  .admin-main { padding: 12px; padding-top: 112px; }
  .admin-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .admin-header h2 { font-size: 18px; margin: 0; }
  .admin-header > div { display: flex; flex-wrap: wrap; gap: 8px; }
  .admin-header .btn, .admin-header a.btn { width: auto; min-height: 40px; padding: 10px 18px; }
  .admin-card { padding: 14px; border-radius: 12px; }
  .admin-card h3 { font-size: 14px !important; }
  .admin-table { font-size: 12px; min-width: 620px; }
  .admin-table th, .admin-table td { padding: 9px 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px; border-radius: 12px; }
  .stat-value { font-size: 20px; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; border-radius: 10px; background: #fff; }
  .admin-layout > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 表单控件触控友好 */
  .form-input, .form-select, .form-textarea { min-height: 42px; font-size: 15px; border-radius: 10px; }
  .form-textarea { min-height: 90px; }
  .btn { min-height: 42px; font-size: 15px; border-radius: 10px; }
  .btn-primary { width: 100%; }
  /* 审核总览卡片 */
  .admin-card .admin-card + div[style*="grid-template-columns:repeat(auto-fill"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* 弹窗适配 */
  div[style*="position:fixed"][style*="z-index"] { padding: 12px !important; }
  div[style*="max-width:500px"] { max-width: 100% !important; }
  /* 内嵌表格/卡片通用网格 */
  .admin-main div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .admin-main div[style*="grid-template-columns:repeat(auto-fill,minmax(150px"] { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
}

/* 移动端顶部导航增强 */
.admin-mobile-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid #34495e;
}
.amt-left { font-size: 15px; }
.amt-logout {
  color: #ffb3a0; text-decoration: none; font-size: 13px;
  padding: 6px 14px; border: 1px solid #5d6d7e; border-radius: 16px;
}
.amt-logout:active { background: #34495e; }
.admin-mobile-menu {
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px; gap: 4px; scrollbar-width: none;
}
.admin-mobile-menu a {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 8px 13px; color: #bdc3c7; text-decoration: none;
  font-size: 11px; min-width: 60px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.admin-mobile-menu a:active { background: #34495e; }
.admin-mobile-menu a.active {
  background: var(--skin-main, #ff6b35); color: #fff; font-weight: 600;
}
@media (min-width: 768px) {
  body {
  overflow-x: hidden; max-width: 480px; margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  /* 管理后台不受480px限制（用类名判断，兼容不支持:has()的老浏览器/微信内核） */
  body.admin-body { max-width: none; margin: 0; box-shadow: none; }
}
/* 移动端顶部导航 */
.admin-mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #2c3e50; color: #fff;
}
.admin-mobile-title {
  padding: 10px 16px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid #34495e;
}
.admin-mobile-menu {
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0; gap: 4px;
}
.admin-mobile-menu::-webkit-scrollbar { display: none; }
.admin-mobile-menu a {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px; color: #bdc3c7; text-decoration: none;
  font-size: 11px; min-width: 56px; border-radius: 6px;
}
.admin-mobile-menu a span { margin-top: 2px; }
.admin-mobile-menu a.active {
  background: #34495e; color: #fff;
}

/* 搜索框输入框 */
.search-box .search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #333;
  width: 100%;
}
.search-box .search-input::placeholder {
  color: #999;
}

/* ============================================
   后台移动端重构：顶栏 + 左侧抽屉导航（v2.11.x）
   桌面端完全不受影响；<=900px 启用
   ============================================ */
.admin-topbar { display: none; }
.admin-drawer-mask { display: none; }
.admin-mobile-nav { display: none !important; } /* 旧横向导航彻底停用 */

@media (max-width: 900px) {
  body.admin-body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; }
  /* 顶栏 */
  .admin-topbar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 150;
    background: #2c3e50; color: #fff; padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2); box-sizing: border-box;
  }
  .atb-burger {
    background: none; border: 1px solid #5d6d7e; color: #fff;
    font-size: 20px; line-height: 1; padding: 6px 12px; border-radius: 8px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .atb-burger:active { background: #34495e; }
  .atb-title { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .atb-home { color: #bdc3c7; text-decoration: none; font-size: 18px; padding: 4px 6px; }
  .atb-logout { color: #ffb3a0; text-decoration: none; font-size: 13px; padding: 6px 12px; border: 1px solid #5d6d7e; border-radius: 16px; }
  .atb-logout:active { background: #34495e; }
  /* 侧栏 → 抽屉 */
  .admin-layout { display: block; }
  .admin-sidebar {
    display: block !important;
    position: fixed; top: 0; bottom: 0; left: -292px; z-index: 200;
    width: 280px; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    transition: left .25s ease;
    box-shadow: 2px 0 16px rgba(0,0,0,.18);
    box-sizing: border-box;
  }
  body.admin-drawer-open .admin-sidebar { left: 0; }
  .admin-drawer-mask {
    position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.45);
    display: none;
  }
  body.admin-drawer-open .admin-drawer-mask { display: block; }
  /* 内容区 */
  .admin-main { padding: 64px 12px 14px; width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
  .admin-main > div, .admin-main .admin-card, .admin-main .stats-grid { width: 100%; max-width: 100%; box-sizing: border-box; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  /* 折叠标题加大触控 */
  .admin-menu .menu-group-title { padding: 14px 20px; font-size: 12px; }
  .admin-menu a { padding: 13px 20px; font-size: 14px; }
}

/* ============================================
   后台表格移动端卡片化（v2.11.x）：表头隐藏、每行变卡片
   ============================================ */
@media (max-width: 900px) {
  .admin-main .table-wrapper { overflow: visible; border: none; background: transparent; }
  .admin-main table { min-width: 0 !important; }
  .admin-main table,
  .admin-main table tbody,
  .admin-main table tr,
  .admin-main table td {
    display: block; width: 100%; box-sizing: border-box;
  }
  .admin-main table thead { display: none; }
  .admin-main table tr {
    margin-bottom: 10px; border: 1px solid #eee; border-radius: 10px;
    padding: 2px 10px; background: #fff;
  }
  .admin-main table td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap; text-align: right;
    padding: 8px 0; border: none; border-bottom: 1px solid #f7f7f7;
  }
  .admin-main table td:last-child { border-bottom: none; }
  .admin-main table td::before {
    content: attr(data-label);
    font-weight: 600; color: #888; font-size: 12px;
    margin-right: 12px; flex-shrink: 0;
  }
  .admin-main table td[style*="max-width"] { max-width: none !important; white-space: normal !important; }
  /* 操作列按钮组横向排列不换行挤压 */
  .admin-main table td form,
  .admin-main table td a,
  .admin-main table td button { display: inline-flex; align-items: center; margin: 2px 0; }
  /* 仪表盘更新日志不截断 */
  .admin-main div[style*="max-height:52px"] { max-height: none !important; }
  /* 内联样式表格同样卡片化 */
  .admin-main table tr.table-head-row { display: none; }
  .admin-main table tr[style*="background:#fafafa"] { display: none; }
}
