/* ============================================
   管理后台手机端样式
   仅在屏幕宽度 ≤ 768px 时生效
   ============================================ */

@media (max-width: 768px) {
  /* ========== 侧边栏详细样式 ========== */
  .mobile-sidebar {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%) !important;
    border-right: 1px solid rgba(212,175,55,0.2) !important;
  }

  /* 侧边栏顶部 Logo 区 */
  .mobile-sidebar > div:first-child {
    padding: 16px !important;
    border-bottom: 1px solid rgba(212,175,55,0.15) !important;
  }

  /* 导航项 */
  .mobile-sidebar nav a,
  .mobile-sidebar nav button {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    margin: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    color: #a0a0a0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: all 0.2s ease !important;
  }
  .mobile-sidebar nav a:hover,
  .mobile-sidebar nav button:hover {
    background: rgba(212,175,55,0.08) !important;
    color: #fff !important;
  }
  .mobile-sidebar nav a[class*="bg-yellow"],
  .mobile-sidebar nav a[class*="bg-amber"],
  .mobile-sidebar nav a[aria-current="page"],
  .mobile-sidebar nav a.active,
  .mobile-sidebar nav button[class*="bg-yellow"],
  .mobile-sidebar nav button[class*="bg-amber"] {
    background: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0.1) 100%) !important;
    color: #f4d03f !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
  }
  .mobile-sidebar nav a svg,
  .mobile-sidebar nav button svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  /* 侧边栏底部 */
  .mobile-sidebar > div:last-child,
  .mobile-sidebar footer {
    padding: 12px 16px !important;
    border-top: 1px solid rgba(212,175,55,0.15) !important;
  }
  .mobile-sidebar > div:last-child button,
  .mobile-sidebar > div:last-child a {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 10px !important;
  }

  /* ========== 顶部栏 ========== */
  .mobile-header {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15,15,26,0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(212,175,55,0.15) !important;
  }

  /* ========== 内容区 ========== */
  .mobile-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px !important;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%) !important;
    min-height: 100vh !important;
  }

  /* 卡片 */
  .mobile-content [class*="rounded-lg"],
  .mobile-content [class*="rounded-xl"],
  .mobile-content [class*="rounded-2xl"] {
    background: rgba(26,26,46,0.6) !important;
    border: 1px solid rgba(212,175,55,0.15) !important;
    border-radius: 12px !important;
    padding: 16px !important;
  }

  /* 页面标题 */
  .mobile-content h1,
  .mobile-content [class*="text-2xl"],
  .mobile-content [class*="text-3xl"] {
    font-size: 1.15rem !important;
    color: #fff !important;
    margin-bottom: 12px !important;
  }

  /* ========== 表格 ========== */
  .mobile-content table {
    font-size: 0.8rem !important;
    min-width: 600px;
  }
  .mobile-content th,
  .mobile-content td {
    padding: 10px 8px !important;
    white-space: nowrap;
  }
  .mobile-content th {
    background: rgba(212,175,55,0.1) !important;
    color: #f4d03f !important;
  }

  /* ========== 表单 ========== */
  .mobile-content input,
  .mobile-content select,
  .mobile-content textarea {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    background: rgba(0,0,0,0.3) !important;
    border: 1.5px solid rgba(212,175,55,0.15) !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }
  .mobile-content input:focus,
  .mobile-content select:focus,
  .mobile-content textarea:focus {
    border-color: #d4af37 !important;
    outline: none !important;
  }
  .mobile-content textarea {
    min-height: 80px !important;
  }
  .mobile-content label {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 4px !important;
    display: block !important;
  }

  /* 主按钮 */
  .mobile-content button[class*="bg-yellow"],
  .mobile-content button[class*="bg-amber"],
  .mobile-content button[type="submit"] {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8860b 100%) !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    min-height: 48px !important;
  }

  /* ========== 网格单列 ========== */
  .mobile-content [class*="grid-cols-2"],
  .mobile-content [class*="grid-cols-3"],
  .mobile-content [class*="grid-cols-4"],
  .mobile-content [class*="grid-cols-6"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ========== 弹窗全屏 ========== */
  [role="dialog"],
  [data-radix-dialog-content] {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    border: 1px solid rgba(212,175,55,0.15) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
  }
}
