:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-sub: #162032;
  --bg-sidebar: #090d16;
  --border-color: #334155;
  --border-hover: #475569;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
}

/* 整体布局 */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* 侧边栏 */
.sidebar {
  width: 250px;
  min-width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease;
  object-fit: contain;
}

.brand-logo-img:hover {
  transform: scale(1.06);
}

.brand-info h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-item.active {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
}

.nav-item .icon {
  font-size: 17px;
}

.nav-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-gray { background-color: #64748b; }
.dot-green { background-color: var(--success); box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.dot-red { background-color: var(--danger); }

/* 主区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  overflow-y: auto;
  padding: 24px 28px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.header-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}

.header-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 卡片风格 */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.sub-card {
  background-color: var(--bg-card-sub);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

/* Tab 面板控制 */
.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-secondary {
  background-color: #334155;
  color: #e2e8f0;
}
.btn-secondary:hover {
  background-color: #475569;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-pager {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: #334155;
  color: #cbd5e1;
  border: none;
  cursor: pointer;
}

/* 输入框 */
.input-field, .textarea-field, .select-mini {
  width: 100%;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus, .textarea-field:focus {
  border-color: var(--primary);
}

.highlight-input {
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
}

.input-group {
  display: flex;
  align-items: center;
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.input-group input {
  padding-left: 36px;
}

.input-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.input-mini {
  width: 70px;
  padding: 4px 6px;
  font-size: 12px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
}

/* 标签徽章 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-gold { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.badge-gray { background: #334155; color: #94a3b8; }
.badge-published { background: rgba(100, 116, 139, 0.4); color: #cbd5e1; border: 1px solid #475569; }

/* 警示条 */
.alert-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #fbbf24;
}

/* 爆款搜索工具栏 */
.toolbar-card {
  padding: 14px 18px;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 商品卡片流 */
.results-container {
  margin-top: 10px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.good-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.good-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
}

.good-card.is-published {
  opacity: 0.75;
  border-color: #475569;
}

.good-thumb-box {
  width: 100%;
  height: 190px;
  background-color: #090d16;
  position: relative;
  overflow: hidden;
}

.good-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.good-price-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #f87171;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}

.good-want-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.good-pub-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.good-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.good-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.good-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.good-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* 表格样式 (闲管家映射表) */
.history-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-card-sub);
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-desc-preview {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
  font-size: 11px;
  color: #93c5fd;
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

/* 网格布局通用 */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.preview-box {
  background-color: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.preview-text {
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  color: #93c5fd;
  max-height: 250px;
  overflow-y: auto;
}

/* 标签列表 */
.parsed-item {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-btn {
  background: #334155;
  color: #cbd5e1;
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}
.tag-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* 图片缩略相册 */
.images-preview-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 12px 4px;
  min-height: 145px;
  align-items: center;
}

.thumb-preview-card {
  position: relative;
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: #0f172a;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.thumb-preview-card.is-main {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.thumb-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.thumb-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.thumb-preview-card:hover img {
  transform: scale(1.06);
}

.thumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.thumb-preview-card.is-main .thumb-badge {
  background: var(--primary);
  color: #0f172a;
  font-weight: 700;
}

/* 缩略图操作悬浮层 */
.thumb-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  padding: 6px 4px 4px 4px;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.thumb-preview-card:hover .thumb-actions {
  opacity: 1;
}

.thumb-action-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.thumb-action-btn:hover {
  background: var(--primary);
  color: #0f172a;
}

.thumb-action-btn.btn-del:hover {
  background: var(--accent-red);
  color: #fff;
}

/* 高清大图预览灯箱 Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-content img {
  max-width: 82vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}

.image-modal-close {
  position: absolute;
  top: -42px;
  right: -24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.image-modal-close:hover {
  opacity: 1;
  color: var(--primary);
}

.image-modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #cbd5e1;
  font-size: 13px;
  gap: 16px;
}

/* 底部操作坞 */
.action-dock {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.progress-bar-container {
  width: 220px;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

/* 实时日志抽屉 */
.log-drawer {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 520px;
  height: 300px;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: none;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.log-drawer.open {
  display: flex;
}

.log-drawer-header {
  padding: 10px 14px;
  background: #162032;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.log-drawer-body {
  padding: 10px 14px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.log-entry {
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.log-info { color: #cbd5e1; }
.log-success { color: #34d399; font-weight: 600; }
.log-warning { color: #fbbf24; }
.log-error { color: #f87171; font-weight: 600; }

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.2s ease;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 常用实用类 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-sub { color: var(--text-sub); }
.font-mono { font-family: monospace; }
.font-bold { font-weight: 600; }
.ml-auto { margin-left: auto; }
.code-pill {
  background: #090d16;
  border: 1px solid #334155;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 直连上架引导 Modal */
.guide-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.guide-modal-content {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  width: 90%;
  max-width: 620px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  position: relative;
  animation: slideInModal 0.2s ease-out;
}

@keyframes slideInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.guide-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.guide-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.guide-modal-close:hover {
  color: #fff;
}

.guide-plan-box {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.guide-plan-box.recommended {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.mobile-only {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   📱 移动端 / PWA 出门随时用自适应布局 (<= 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  body {
    overflow: auto;
  }

  .app-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    width: 100%;
  }

  /* 侧边栏变为手机底部 App 导航栏 */
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    min-width: 0;
    height: auto;
    z-index: 950;
    flex-direction: row;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(12px);
  }

  .sidebar-brand,
  .sidebar-footer {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    gap: 2px;
    width: 100%;
    justify-content: space-around;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: 11px;
    min-width: 0;
    position: relative;
  }

  .nav-item .icon {
    font-size: 18px;
    line-height: 1.1;
  }

  .nav-item .text {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .nav-item .nav-tag {
    display: none;
  }

  .main-content {
    padding: 14px 12px 86px 12px;
    overflow-y: visible;
    width: 100%;
  }

  .top-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .header-title h1 {
    font-size: 18px;
  }

  .header-title p {
    font-size: 12px;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card {
    padding: 14px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card-header .flex {
    flex-wrap: wrap;
  }

  .search-box,
  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .input-group .btn,
  .search-box .btn {
    width: 100%;
    justify-content: center;
  }

  .input-field,
  .textarea-field,
  select {
    font-size: 16px;
  }

  .netdisk-grid,
  .settings-grid,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .results-header .pagination {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .goods-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .publish-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .publish-actions .flex {
    flex-direction: column;
    width: 100%;
  }

  .publish-actions .btn {
    width: 100%;
  }

  .image-modal-content,
  .guide-modal-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .log-drawer {
    width: 100%;
    bottom: 62px;
    height: 60vh;
  }
}

/* ══════════ 🔐 独立全屏安全登录入口 ══════════ */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1e293b 0%, #090d16 100%);
  padding: 16px;
  overflow-y: auto;
}

.login-card-container {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.15);
  padding: 36px 30px;
  animation: loginFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.login-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.login-brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.login-form-group {
  margin-bottom: 18px;
}

.login-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 7px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.login-input-wrap .input-field {
  padding-left: 38px;
  padding-right: 38px;
  height: 44px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #fff;
  width: 100%;
  transition: all 0.2s;
}

.login-input-wrap .input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.login-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  z-index: 2;
}

.login-eye-btn:hover {
  color: #fff;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.login-options-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.login-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-error-alert {
  display: none;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
  text-align: center;
  animation: loginShake 0.3s;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-footer-security {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.user-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-hidden {
  display: none !important;
}

