/* 稔愫食养管理后台 - 共享样式 */

@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('assets/fonts/Alibaba-PuHuiTi-Light.woff2?v=20260805') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
.admin-live-notice{position:fixed;right:28px;top:28px;z-index:9999;max-width:420px;padding:16px 20px;background:#111;color:#fff;border-radius:10px;box-shadow:0 14px 42px rgba(0,0,0,.22);font-size:14px;line-height:1.6}
.admin-live-notice--error{background:#7a2323}

@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('assets/fonts/Alibaba-PuHuiTi-Regular.woff2?v=20260806') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-card: #ffffff;
  --color-sidebar: #ffffff;
  --color-text: #111111;
  --color-text-light: #111111;
  --color-text-lighter: #111111;
  --color-primary: #111111;
  --color-primary-hover: #333333;
  --color-primary-light: rgba(102, 102, 102, 0.08);
  --color-border: #e7e7e7;
  --color-error: #666666;
  --color-success: #666666;
  --color-warning: #999999;
  --shadow-card: none;
  --radius: 2px;
  --radius-lg: 2px;
}

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

body {
  font-family: 'AlibabaPuHuiTi', 'PingFang SC', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

body.login-page {
  background: linear-gradient(135deg, #f7f7f7 0%, #ededed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 登录页 */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}

.login-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(51, 51, 51, 0.08);
}

.login-card .brand {
  color: var(--color-text-light);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.login-card h1 {
  color: var(--color-text);
  font-family: "AlibabaPuHuiTi", "PingFang SC", sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
}

.login-card .subtitle {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

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

.error-msg {
  color: var(--color-error);
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

.login-hint {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-light);
}

.login-hint ul {
  margin-top: 8px;
  padding-left: 20px;
}

.login-hint li {
  margin-bottom: 4px;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: var(--color-sidebar);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 24px 16px;
  font-family: "AlibabaPuHuiTi", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

/* 权限菜单默认不可见；app.js完成角色裁剪后才整体显示，避免员工首帧短暂看到无权页面。 */
html:not(.admin-nav-ready) .sidebar-nav {
  visibility: hidden;
}

html.admin-nav-ready .sidebar-nav {
  visibility: visible;
}

.nav-item {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

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

.nav-item.active {
  background: var(--color-primary);
  color: #ffffff;
  border-left: 3px solid #ffffff;
  padding-left: 21px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info {
  margin-bottom: 12px;
  padding: 0 8px;
}

.admin-name {
  color: #ffffff;
  font-size: 14px;
}

.admin-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 4px;
}

.admin-greeting {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.logout-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* 主区域 */
.main {
  margin-left: 220px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}

.topbar h1 {
  font-family: "AlibabaPuHuiTi", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 300;
}

.content {
  padding: 24px 32px;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.card h2 {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 12px;
}

.card p, .card li {
  color: var(--color-text-light);
  line-height: 1.8;
}

.card code {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.card ul {
  padding-left: 20px;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.stat-label {
  color: var(--color-text-light);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-value {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 300;
}

/* 工具栏 */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-select, .filter-input {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  font-size: 14px;
  color: var(--color-text);
}

.filter-input {
  min-width: 200px;
}

/* 表格 */
.data-table {
  width: 100%;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-collapse: collapse;
}

.data-table thead {
  background: rgba(102, 102, 102, 0.05);
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--color-text);
  font-weight: 300;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(102, 102, 102, 0.03);
}

.empty-row td {
  text-align: center;
  color: var(--color-text-light);
  padding: 40px;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 300;
}

.status-active { background: rgba(102, 102, 102, 0.15); color: var(--color-success); }
.status-paused { background: rgba(153, 153, 153, 0.15); color: var(--color-warning); }
.status-closed, .status-draft { background: rgba(153, 153, 153, 0.15); color: var(--color-text-light); }

.action-link {
  color: var(--color-primary);
  text-decoration: none;
  margin-right: 12px;
  font-size: 13px;
  cursor: pointer;
}

.action-link:hover {
  text-decoration: underline;
}

.action-link.danger {
  color: var(--color-error);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
}

.pagination button.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 按钮 */
.btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
}

.btn-small {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-danger {
  color: var(--color-error);
  border-color: var(--color-error);
}

.btn-danger:hover {
  background: var(--color-error);
  color: #ffffff;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-content--large {
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 300;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-light);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--color-text);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.form-fieldset legend {
  padding: 0 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 300;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

/* 规格输入行 */
.spec-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 8px;
}

.spec-row input {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
}
/* ====== V3 设计：淘宝风格增强 ====== */

/* 左侧导航分组 + 二级菜单 */
.nav-group { position: relative; margin-top: 4px; }
.nav-group > .nav-item {
  cursor: pointer;
  position: relative;
  font-weight: 300;
}
.nav-group > .nav-item::after {
  content: '⌄';
  position: absolute;
  right: 20px;
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.2s;
  color: rgba(255, 255, 255, 0.4);
}
.nav-group.collapsed > .nav-item::after {
  transform: rotate(-90deg);
}
.nav-sub {
  display: block;
  background: rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  margin: 4px 8px;
  padding: 4px 0;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease,
              padding-top 0.2s ease, padding-bottom 0.2s ease,
              margin-top 0.2s ease, margin-bottom 0.2s ease;
}
.nav-group.collapsed .nav-sub {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}
/* 键盘聚焦可见（无障碍） */
.nav-parent:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.nav-sub-item {
  display: block;
  padding: 6px 12px 6px 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.nav-sub-item:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-sub-item.active {
  color: white;
  background: rgba(102, 102, 102, 0.3);
  border-left-color: var(--color-primary);
}
.nav-sub-item,.nav-group>.nav-parent{display:flex;align-items:center;gap:8px}.nav-group>.nav-parent{padding-right:48px}.nav-pending-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;border-radius:9px;background:#d85b35!important;color:#fff!important;font-size:10px;line-height:18px;box-sizing:border-box;font-weight:600;box-shadow:0 2px 8px rgba(216,91,53,.28);text-decoration:none}.nav-pending-badge--parent{margin-right:0}.order-pending-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#d85b35;box-shadow:0 0 0 3px rgba(216,91,53,.12)}.record-attention-label{display:inline-flex;align-items:center;gap:9px}

/* 侧边栏折叠按钮（移动端） */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
  .sidebar {
    left: -240px;
    transition: left 0.3s;
    z-index: 1000;
  }
  .sidebar.open {
    left: 0;
  }
  .main {
    margin-left: 0 !important;
  }
}

/* 统计卡片变体 */
.stat-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1400px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: white; padding: 16px; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(17, 17, 17,0.05); }
.stat-card .stat-label { font-size: 12px; color: var(--color-text-secondary); }
.stat-card .stat-value { font-size: 28px; font-weight: 300; margin: 8px 0; color: var(--color-text); }
.stat-card .stat-meta { font-size: 11px; color: var(--color-text-secondary); }
.stat-card.warning { border-top: 3px solid #999999; }
.stat-card.primary { border-top: 3px solid var(--color-primary); }
.stat-card.success { border-top: 3px solid #666666; }
.stat-card.warning .stat-value { color: #111111; }
.stat-card.primary .stat-value { color: var(--color-primary); }
.stat-card.success .stat-value { color: #111111; }

/* Tab 栏（订单状态切换） */
.tab-bar {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: var(--radius);
  padding: 4px;
  margin: 16px 0 12px;
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.tab-item:hover { background: rgba(102, 102, 102, 0.08); color: var(--color-primary); }
.tab-item.active {
  background: var(--color-primary);
  color: white;
  font-weight: 300;
}

/* 批量操作栏 */
.batch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
}
.batch-bar .checkbox { font-size: 13px; }

/* 订单列表卡片化 */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
  overflow: hidden;
  transition: all 0.15s;
}
.order-card:hover { box-shadow: 0 4px 12px rgba(17, 17, 17,0.08); }
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(247, 247, 247, 0.5);
  border-bottom: 1px solid var(--color-border);
}
.order-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.order-id { font-family: monospace; color: var(--color-text); font-weight: 300; }
.order-source { color: var(--color-text-secondary); font-size: 12px; }
.order-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
}
.order-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.order-info { flex: 1; }
.order-product { font-size: 14px; color: var(--color-text); margin-bottom: 4px; }
.order-product-more { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 8px; }
.order-sku-list { display: grid; gap: 4px; margin: 6px 0 8px; }
.order-sku-list > div { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--color-text-secondary); font-size: 12px; }
.order-sku-list strong { color: #526158; font-weight: 400; }
.order-buyer { font-size: 12px; color: var(--color-text-secondary); }
.order-time { font-size: 11px; color: var(--color-text-secondary); margin-top: 4px; }
.order-amount { text-align: right; }
.amount-value { font-size: 18px; font-weight: 300; color: #111111; }
.amount-count { font-size: 11px; color: var(--color-text-secondary); }
.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  background: rgba(247, 247, 247, 0.3);
}
.order-address { font-size: 12px; color: var(--color-text-secondary); max-width: 60%; }
.order-address .note { color: #111111; }
.order-actions { display: flex; gap: 8px; align-items: center; }
.checkbox { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 300;
}
.badge-warning { background: rgba(153, 153, 153, 0.15); color: #111111; }
.badge-info { background: rgba(102, 102, 102, 0.15); color: var(--color-primary); }

/* 详情页布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: flex-start;
}
.detail-main { background: white; border-radius: var(--radius); padding: 16px; }
.detail-side .side-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
  margin-bottom: 12px;
}
.detail-side h4 { margin: 0 0 12px; font-size: 14px; }
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: 12px; }
.faq-list a { color: var(--color-text-secondary); text-decoration: none; }
.faq-list a:hover { color: var(--color-primary); }

/* 状态进度条 */
.status-progress {
  background: rgba(102, 102, 102, 0.05);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.status-progress-text { font-size: 14px; font-weight: 300; margin-bottom: 12px; }
.status-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.status-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--color-border);
}
.status-step.done::after { background: var(--color-primary); }
.status-step .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  z-index: 1;
}
.status-step.done .step-dot { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.status-step.active .step-dot { background: white; border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 0 4px rgba(102, 102, 102, 0.2); }
.status-step .step-label { font-size: 11px; color: var(--color-text-secondary); }
.status-step.done .step-label, .status-step.active .step-label { color: var(--color-text); font-weight: 300; }
.status-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.status-hint { font-size: 12px; color: var(--color-text-secondary); margin-top: 8px; }
.status-hint .highlight { color: #111111; font-weight: 300; }

/* 3 列信息卡片 */
.info-cards-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .info-cards-3col { grid-template-columns: 1fr; } }
.info-card { background: rgba(247, 247, 247, 0.4); padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--color-border); }
.info-card-title { font-size: 13px; font-weight: 300; color: var(--color-text); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.info-row { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; }
.info-row span { color: var(--color-text-secondary); }
.btn-mini {
  font-size: 10px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.btn-mini:hover { color: var(--color-primary); border-color: var(--color-primary); }
.admin-logistics-timeline { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--color-border); }
.admin-logistics-source { margin-top: 12px; color: #777; font-size: 12px; }
.admin-logistics-node { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 8px; padding: 7px 0; color: var(--color-text-secondary); }
.admin-logistics-node i { width: 7px; height: 7px; margin-top: 4px; border: 2px solid #aaa; border-radius: 50%; background: #fff; }
.admin-logistics-node:not(:last-child)::after { content: ''; position: absolute; left: 4px; top: 18px; bottom: -4px; width: 1px; background: #ddd; }
.admin-logistics-node.current i { border-color: #111; background: #111; }
.admin-logistics-node strong,.admin-logistics-node span { display: block; font-size: 12px; line-height: 1.55; }
.admin-logistics-node strong { color: #222; font-weight: 500; }
.admin-logistics-node span { color: #888; }
.admin-logistics-empty { margin-top: 10px; padding: 10px 12px; border-top: 1px solid var(--color-border); color: #777; font-size: 12px; }
.order-price-note { display: block; margin-top: 4px; color: #8a5b00; font-size: 10px; line-height: 1.45; }
.order-amount-alert { color: #9a5f00; font-weight: 500; line-height: 1.6; }

/* 商品编辑布局（千牛式） */
.product-edit-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: flex-start;
}

/* 填写助手 */
.fill-helper {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
  position: sticky;
  top: 80px;
}
.fill-helper.collapsed { padding: 8px 16px; }
.fill-helper.collapsed .fill-helper-section { display: none; }
.fill-helper-head {
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.fill-helper-section {
  background: rgba(102, 102, 102, 0.05);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 12px;
}
.fill-helper-title { font-weight: 300; margin-bottom: 6px; }
.fill-helper-note { color: var(--color-text-secondary); margin-bottom: 4px; line-height: 1.6; }
.fill-helper-more { color: var(--color-primary); text-decoration: none; font-size: 11px; }
.fill-helper-toggle {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 6px;
}

/* 商品编辑主体 */
.product-edit-main {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(17, 17, 17,0.05);
}
.step-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: rgba(247, 247, 247, 0.3);
}
.step-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.step-tab:hover { color: var(--color-primary); }
.step-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 300;
  background: white;
}
.step-panel { padding: 24px; }
.step-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* 表单 */
.form-section-title {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
.form-section-title:first-child { margin-top: 0; }
.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.form-label { min-width: 90px; color: var(--color-text-secondary); }
.form-input, .form-select, .form-textarea {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  min-width: 120px;
}
.form-input-wide { min-width: 360px; }
.form-textarea { width: 100%; min-height: 60px; }
.form-hint { font-size: 11px; color: var(--color-text-secondary); }
.required { color: #111111; }
.badge-new {
  background: #666666;
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

/* 属性网格 */
.attr-grid { background: rgba(247, 247, 247, 0.3); padding: 16px; border-radius: var(--radius); }
.attr-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.attr-label { font-size: 12px; color: var(--color-text-secondary); text-align: right; }
.attr-input, .attr-select {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 12px;
}

/* 详情编辑器 */
.detail-editor { border: 1px dashed var(--color-border); padding: 16px; border-radius: var(--radius); }
.detail-hint { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 12px; }
.detail-main-img { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-main-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}
.detail-sub-imgs { display: flex; gap: 8px; align-items: center; }
.upload-grid { display: flex; gap: 8px; }
.upload-cell {
  width: 100px;
  height: 100px;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 11px;
  cursor: pointer;
}
.upload-cell:hover { border-color: var(--color-primary); color: var(--color-primary); }
.upload-grid-hint p { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 8px; }

/* 顶部切换 */
.toggle-advanced, .toggle-required {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-right: 12px;
}
.toggle-advanced label, .toggle-required label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* 图片网格（淘宝风格） */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 100px);
  gap: 12px;
  margin-bottom: 16px;
}
.image-item {
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.image-item .del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(17, 17, 17,0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.image-item:hover .del { opacity: 1; }

.upload-zone {
  text-align: center;
  padding: 24px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.upload-zone .btn + .btn { margin-left: 8px; }
.upload-hint { font-size: 11px; color: var(--color-text-secondary); margin-top: 8px; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.loading { text-align: center; padding: 40px; color: var(--color-text-secondary); }

/* 缩略图 */
.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.section-title { font-size: 14px; font-weight: 300; margin: 24px 0 12px; color: var(--color-text); }
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 300;
}
.status-tag.status-success { background: rgba(102, 102, 102, 0.15); color: #111111; }
.status-tag.status-warning { background: rgba(153, 153, 153, 0.15); color: #111111; }
.status-tag.status-info { background: rgba(102, 102, 102, 0.15); color: #111111; }
.status-tag.status-primary { background: rgba(102, 102, 102, 0.15); color: #111111; }
.status-tag.status-danger { background: rgba(102, 102, 102, 0.15); color: #111111; }
.status-tag.status-muted { background: rgba(153, 153, 153, 0.15); color: #111111; }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}
.pagination button {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
.pagination button.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* 快速导入按钮 */
.btn-warning {
  background: #f7f7f7;
  border-color: #111111;
  color: #111111;
}
.btn-warning:hover {
  background: #c8c8c8;
}

/* ====== 商品列表新样式 ====== */
.filter-bar-stack { padding: 12px 0; }
.filter-bar-stack .filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-input { width: 140px; }
.batch-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.batch-info { display: flex; align-items: center; gap: 8px; }
.batch-text { color: #111111; }

.data-table-list .product-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.data-table-list .product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #ededed;
  flex-shrink: 0;
}
.data-table-list .product-info { flex: 1; min-width: 0; }
.data-table-list .product-name {
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.data-table-list .product-name:hover { text-decoration: underline; }
.data-table-list .product-meta {
  font-size: 12px;
  color: #111111;
  margin-bottom: 2px;
}
.data-table-list .product-share {
  font-size: 12px;
  color: #111111;
}
.data-table-list .product-share a { color: #111111; }

.price-cell { color: #111111; font-weight: 300; }
.price-cell .member-price {
  color: #111111;
  font-size: 11px;
  font-weight: 300;
}

.action-cell { line-height: 1.8; position: relative; }
.action-link {
  color: #111111;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}
.action-link:hover { text-decoration: underline; }
.action-link.danger { color: #111111; }
.action-dropdown { color: #111111; font-weight: 300; }

.action-menu {
  position: absolute;
  right: 16px;
  top: 100%;
  background: white;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.1);
  padding: 8px 0;
  min-width: 140px;
  z-index: 100;
}
.action-menu a {
  display: block;
  padding: 8px 16px;
  color: #111111;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.action-menu a:hover { background: #f7f7f7; color: #111111; }

/* 后台弹窗统一在当前页面中央处理，避免从顶部或表格裁切区域展开。 */
.picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(41, 53, 47, .38);
  backdrop-filter: blur(2px);
}
.picker-modal.show { display: flex; }
.replace-dialog {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  background: #fffdf8;
  border: 1px solid rgba(168, 179, 156, .55);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(41, 53, 47, .24);
}
.replace-dialog h3 { margin: 0 0 8px; color: #29352f; }
.product-more-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.product-more-actions .btn { min-height: 42px; }
.product-more-actions .danger { color: #9f2f24; border-color: rgba(159, 47, 36, .32); }

/* 简化后的分类页样式 */
.category-readonly-note {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #111111;
}

.topbar-search-global {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ededed;
  border-radius: 32px;
  padding: 8px 20px;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}
.topbar-search-global .search-icon {
  font-size: 16px;
  color: #111111;
}
.global-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #111111;
}
.global-search-input::placeholder {
  color: #111111;
}

.status-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c8c8c8;
  margin-bottom: 16px;
}
.status-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: #111111;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.status-tab:hover { color: #111111; }
.status-tab.active {
  color: #111111;
  font-weight: 300;
}
.status-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #666666;
}
.status-tab span {
  color: #111111;
  font-size: 12px;
  margin-left: 2px;
}

.batch-left { display: flex; gap: 8px; align-items: center; }
.batch-right { display: flex; gap: 24px; align-items: center; }

.list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 12px;
}
.list-count { color: #111111; font-size: 13px; }
.list-count strong { color: #111111; font-weight: 300; }
.pagination .page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #c8c8c8;
  background: white;
  margin-left: -1px;
  cursor: pointer;
  font-size: 14px;
}
.pagination .page-btn.active {
  background: #666666;
  color: white;
  border-color: #111111;
}
.pagination .page-btn:hover:not(.active) {
  background: #f7f7f7;
}

.batch-dropdown-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 17, 17, 0.1);
  z-index: 99;
}
.batch-dropdown {
  position: absolute;
  top: 100%;
  background: white;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.1);
  padding: 8px 0;
  min-width: 180px;
  z-index: 100;
}
.batch-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #111111;
  font-size: 14px;
  cursor: pointer;
}
.batch-dropdown a:hover { background: #f7f7f7; color: #111111; }

.nav-group > .nav-item {
  cursor: pointer;
  user-select: none;
}
.nav-group > .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ====== Tab 页签系统 ====== */
.maintabs-bar {
  display: flex;
  background: #ededed;
  border-bottom: 1px solid #c8c8c8;
  overflow-x: auto;
  white-space: nowrap;
  min-height: 40px;
}
.maintab {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid #c8c8c8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #111111;
  background: transparent;
}
.maintab:hover { background: rgba(102, 102, 102, 0.05); }
.maintab.active {
  background: white;
  color: #111111;
  font-weight: 300;
}
.maintab-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #111111;
  padding: 0 4px;
  line-height: 1;
}
.maintab-close:hover { color: #111111; }
.maintab-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.maintab-content.active {
  display: flex;
  flex-direction: column;
}
.maintab-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  flex: 1;
}
#main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* P10-36：稔愫黑白极简视觉基线。页面级样式可组织布局，不再改变品牌色。 */
body,
body.login-page {
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6, strong, b,
.topbar h1,
.login-card h1 {
  font-family: 'AlibabaPuHuiTi', 'PingFang SC', sans-serif;
  font-weight: 300;
}

.sidebar {
  background: #ffffff;
  color: #111111;
  border-right: 1px solid #e7e7e7;
}

.sidebar-brand,
.login-card .brand,
.publish-header .logo {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  color: transparent !important;
  background-color: #ffffff !important;
  background-image: url('assets/brand/rensu-logo.png') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.sidebar-brand {
  height: 96px;
  margin: 0 24px;
  padding: 0;
  border-bottom: 1px solid #e7e7e7;
  background-size: 112px auto !important;
}

.login-card .brand {
  width: 128px;
  height: 70px;
  margin: 0 auto 14px;
}

.publish-header .logo {
  width: 104px;
  height: 56px;
}

.nav-item,
.nav-sub-item,
.admin-name,
.admin-role,
.logout-btn,
.nav-group > .nav-item::after {
  color: #111111;
}

.nav-item,
.nav-sub-item {
  background: transparent !important;
  border: 0 !important;
  font-weight: 300 !important;
  text-decoration: none;
}

.nav-item:hover,
.nav-sub-item:hover {
  background: #f7f7f7 !important;
  color: #111111;
}

.nav-item.active,
.nav-sub-item.active {
  color: #111111 !important;
  background: transparent !important;
  border: 0 !important;
  padding-left: 24px;
  text-decoration-line: underline;
  text-decoration-color: #111111;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  font-weight: 400 !important;
}

.nav-sub {
  background: #ffffff;
  border-left: 1px solid #e7e7e7;
  border-radius: 0;
}

.sidebar-footer {
  border-top-color: #e7e7e7;
}

.sidebar-footer .admin-greeting {
  color: #777777;
}

.logout-btn {
  border-color: #d6d6d6;
}

.maintabs-bar,
.tab-bar {
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
}

.maintab,
.tab-item {
  background: transparent !important;
  color: #111111;
  border-radius: 0;
  font-weight: 300;
}

.maintab.active,
.tab-item.active {
  background: #ffffff !important;
  color: #111111 !important;
  font-weight: 400;
  border-bottom: 1px solid #111111;
}

.card,
.stat-card,
.data-table,
.order-card,
.detail-main,
.detail-side .side-card,
.product-edit-main,
.fill-helper,
.batch-bar,
.login-card {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 2px;
  box-shadow: none;
}

.btn,
button,
input,
select,
textarea {
  font-family: 'AlibabaPuHuiTi', 'PingFang SC', sans-serif;
  font-weight: 300;
}

.btn-primary,
.btn-primary:hover {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.filter-select,
.filter-input,
.form-input,
.form-select,
.form-textarea,
.form-group input,
.form-group select,
.form-group textarea {
  border-color: #d8d8d8;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
}

.status-badge,
.status-tag,
.badge,
.badge-new {
  color: #111111 !important;
  background: #f5f5f5 !important;
  border: 1px solid #dedede;
  border-radius: 2px;
}
.main {
  display: flex;
  flex-direction: column;
  margin-left: 220px;
  height: 100vh;
  overflow: hidden;
}

/* iframe 嵌入的子页面：隐藏自身侧边栏，顶满父容器 */
body.embedded .sidebar { display: none !important; }
html.embedded-document .sidebar { display: none !important; }
body.embedded .main {
  margin-left: 0;
  width: 100%;
  height: 100vh;
}
html.embedded-document .main {
  margin-left: 0;
  width: 100%;
  height: 100vh;
}

/* 商品列表保留固定导航，但列表内容必须在独立滚动区完整可达。 */
.products-list-page .main > .content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 88px;
  overscroll-behavior: contain;
}

/* 周期商品页在固定后台外壳和小高度窗口内使用独立纵向滚动区。 */
.periodic-page .main > .content {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 96px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* 礼品卡与库存页内容较长，固定后台外壳内必须可完整滚动。 */
.gifts-page .main,
.inventory-page .main {
  overflow: auto;
  overscroll-behavior: contain;
}
.gifts-page .gift-shell { width: 100%; padding: 24px 32px 96px; }
.inventory-page .main > .content { padding-bottom: 96px; }
.inventory-kind-tabs { margin-bottom: 16px; }

/* P10-127 订单与售后页面：固定后台外壳内由内容区独立滚动。 */
.orders-page .main > .content,
.after-sales-page .main > .content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 96px;
  overscroll-behavior: contain;
}

/* P10-295 订单详情：固定页签外壳内由详情内容区独立纵向滚动。 */
.orders-detail-page .main > .content {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 96px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.after-sales-notice {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid #d7d7d7;
  background: #f7f7f7;
  color: #222;
  font-size: 13px;
}
.after-sales-notice--success { border-color: #a9c9af; background: #f2faf3; color: #245f2d; }
.after-sales-notice--error { border-color: #dfbcbc; background: #fff5f5; color: #842828; }
.after-sales-empty { padding: 44px !important; text-align: center; color: #777; }
.after-sales-amount { font-size: 16px; font-weight: 500; color: #111; white-space: nowrap; }
.after-sales-modal { align-items: center; justify-content: center; padding: 28px; }
.after-sales-modal .modal-mask { background: rgba(15, 15, 15, .52); backdrop-filter: blur(2px); }
.after-sales-modal .after-sale-dialog {
  width: min(640px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}
.after-sale-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e7e7e7;
}
.after-sale-dialog__header h2 { margin: 4px 0 0; font-size: 22px; font-weight: 500; }
.after-sale-dialog__eyebrow { color: #888; font-size: 12px; letter-spacing: .16em; }
.after-sale-dialog__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.after-sale-dialog__detail { padding: 22px 26px 0; }
.after-sale-dialog__amount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid #ddd;
  background: #fafafa;
}
.after-sale-dialog__amount span { color: #666; font-size: 13px; }
.after-sale-dialog__amount strong { grid-row: span 2; font-size: 30px; font-weight: 500; }
.after-sale-dialog__amount small { color: #999; font-size: 12px; }
.after-sale-dialog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; border-top: 1px solid #e7e7e7; }
.after-sale-dialog__grid > div { padding: 14px 0; border-bottom: 1px solid #e7e7e7; }
.after-sale-dialog__grid > div:nth-child(odd):not(.after-sale-dialog__wide) { padding-right: 16px; }
.after-sale-dialog__grid dt { margin-bottom: 5px; color: #888; font-size: 12px; }
.after-sale-dialog__grid dd { margin: 0; color: #222; font-size: 14px; line-height: 1.6; word-break: break-all; }
.after-sale-dialog__wide { grid-column: 1 / -1; }
.after-sale-dialog__error dd { color: #922f2f; }
.after-sale-dialog__field { margin: 18px 26px 0; }
.after-sale-dialog__field select,
.after-sale-dialog__field textarea { width: 100%; border: 1px solid #d4d4d4; border-radius: 6px; background: #fff; }
.after-sale-dialog__field select { min-height: 44px; padding: 0 12px; }
.after-sale-dialog__field textarea { min-height: 94px; padding: 11px 12px; resize: vertical; }
.after-sale-dialog__actions { margin-top: 22px; padding: 18px 26px 24px; border-top: 1px solid #e7e7e7; }
.after-sale-dialog__actions .btn { min-width: 100px; min-height: 42px; border-radius: 6px; }

@media (max-width: 680px) {
  .after-sales-modal { padding: 0; align-items: stretch; }
  .after-sales-modal .after-sale-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .after-sale-dialog__grid { grid-template-columns: 1fr; }
  .after-sale-dialog__wide { grid-column: auto; }
}

/* 内容管理页不再被全局固定高度截断；列表、设置和弹窗各自保持可滚动。 */
.contents-page .main {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.contents-page .content-shell {
  min-height: 100%;
  padding-bottom: 96px;
}
.contents-page .modal {
  overflow: hidden;
  padding: 16px;
}
.contents-page .modal-content.content-editor {
  min-height: 0;
  overscroll-behavior: contain;
}
@media (max-width: 760px) {
  .contents-page .modal { padding: 0; }
  .contents-page .modal-content.content-editor { max-height: 100vh; }
}

/* P10-119 客户头像与手机号授权状态 */
.member-page .content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 80px;
}
.customer-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.customer-avatar-wrap { position: relative; display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; }
.customer-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f2f2f2; border: 1px solid #ececec; }
.customer-paid-badge { position: absolute; right: -3px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.customer-phone-state { margin-top: 4px; color: #8a8a8a; font-size: 12px; }
.customer-unread-help { margin: 0 0 14px; }
.customer-name-line { display: inline-flex; align-items: center; gap: 8px; }
.customer-unread-dot { position: relative; width: 24px; height: 24px; flex: 0 0 24px; margin: -7px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.customer-unread-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #d85b35; box-shadow: 0 0 0 3px rgba(216,91,53,.13); transform: translate(-50%, -50%); transition: transform .12s ease; }
.customer-unread-dot:hover::before { transform: translate(-50%, -50%) scale(1.12); }
.customer-unread-dot:focus-visible { outline: 2px solid #20382f; outline-offset: 3px; }

/* P10-117 员工管理与账号安全 */
.account-security-link {
  display: block;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  color: #222;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
}
.account-security-link:hover { border-color: #111; }

.employee-page .content,
.account-security-page .content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 80px;
}
.employee-topbar { align-items: center; }
.employee-content { background: #fafafa; }
.employee-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.employee-guide > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #dedede;
  background: #fff;
}
.employee-guide strong { font-size: 15px; font-weight: 500; }
.employee-guide span { color: #777; font-size: 13px; line-height: 1.7; }
.employee-filter { display: grid; grid-template-columns: minmax(280px, 1fr) 190px auto; }
.employee-filter select { min-height: 42px; border: 1px solid #d8d8d8; padding: 0 12px; background: #fff; }
.employee-notice { margin: 12px 0; padding: 12px 15px; border: 1px solid #b7d8bd; background: #f2faf3; color: #225b2b; }
.employee-notice.error { border-color: #e4c0c0; background: #fff5f5; color: #8d2626; }
.employee-table-card { overflow-x: auto; }
.employee-table { min-width: 1050px; }
.employee-table td { vertical-align: middle; }
.employee-table td > small,
.employee-table td > code + small,
.employee-source-tag + small,
.employee-identity small,
.employee-table td > div + small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 12px;
  font-weight: 300;
}
.employee-empty { padding: 44px !important; text-align: center; color: #888; }
.employee-identity { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.employee-identity img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4e4; background: #f2f2f2; }
.employee-identity strong { display: block; font-weight: 500; }
.employee-source-tag { display: inline-block; padding: 3px 7px; border: 1px solid #ddd; font-size: 12px; color: #555; }
.employee-first-login { color: #a86b00 !important; }
.employee-actions { white-space: nowrap; }

body.modal-open { overflow: hidden; }
.admin-modal[hidden] { display: none !important; }
.admin-modal { position: fixed; inset: 0; z-index: 2400; display: flex; align-items: center; justify-content: center; padding: 28px; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 12, .52); backdrop-filter: blur(2px); }
.admin-modal-card { position: relative; width: min(860px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: #fff; border: 1px solid #d7d7d7; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.admin-modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 28px 18px; border-bottom: 1px solid #e5e5e5; background: rgba(255,255,255,.96); }
.admin-modal-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.admin-modal-head p { margin: 0; color: #777; font-size: 13px; }
.admin-modal-close { width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; color: #333; font-size: 24px; line-height: 30px; cursor: pointer; }
.admin-modal-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid #e5e5e5; background: rgba(255,255,255,.97); }
.order-action-card { width: min(620px, 100%); }
.order-action-body { display: grid; gap: 18px; padding: 26px 28px; }
.order-action-body label { display: grid; gap: 8px; color: #333; font-size: 14px; }
.order-action-body input,.order-action-body select,.order-action-body textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d5d5d5; background: #fff; color: #111; font: inherit; }
.order-action-body textarea { min-height: 96px; resize: vertical; }
.order-action-hint { margin: 0; padding: 12px 14px; background: #f7f7f7; color: #666; font-size: 13px; line-height: 1.65; }
.ship-package-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ship-package-toolbar .order-action-hint { flex: 1; }
.ship-package-list { display: grid; gap: 16px; margin-top: 16px; }
.ship-package-card { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(168,179,156,.58); background: #fffdf8; }
.ship-package-card > header { display: flex; align-items: center; justify-content: space-between; }
.ship-package-items { display: grid; gap: 8px; }
.ship-package-item { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(168,179,156,.12); }
.ship-package-item div { display: grid; gap: 4px; min-width: 0; }
.ship-package-item span { color: #667269; font-size: 12px; }
.ship-package-item label { font-size: 12px; }
.ship-package-item input { min-height: 38px; padding: 7px 9px; text-align: center; }

.employee-source-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 22px 28px 0; }
.employee-source-switch button { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px; border: 1px solid #d8d8d8; background: #fff; color: #555; text-align: left; cursor: pointer; }
.employee-source-switch button.active { border-color: #111; background: #f6f6f6; color: #111; }
.employee-source-switch button strong { font-size: 14px; font-weight: 500; }
.employee-source-switch button span { font-size: 12px; color: #888; }
.employee-source-switch.locked button:not(.active) { opacity: .42; cursor: not-allowed; }
.employee-source-panel { margin: 20px 28px 0; padding: 18px; border: 1px solid #e3e3e3; background: #fafafa; }
.employee-source-panel[hidden] { display: none; }
.employee-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.employee-form-grid label,
.employee-source-panel label,
.employee-action-reason,
.security-form label { display: flex; flex-direction: column; gap: 7px; color: #444; font-size: 13px; }
.employee-form-grid input,
.employee-form-grid select,
.employee-source-panel input,
.employee-action-reason textarea,
.security-form input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d6d6d6; background: #fff; color: #111; }
.employee-field-wide { grid-column: 1 / -1; }
.employee-account-fields { padding: 20px 28px 0; }
.candidate-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.candidate-list { display: grid; gap: 8px; margin-top: 12px; max-height: 240px; overflow: auto; }
.candidate-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #ddd; background: #fff; text-align: left; cursor: pointer; }
.candidate-item:hover:not(.disabled) { border-color: #111; }
.candidate-item.disabled { opacity: .55; cursor: not-allowed; }
.candidate-item img,
.selected-candidate img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eee; }
.candidate-item span strong,
.selected-candidate span strong { display: block; font-weight: 500; }
.candidate-item span small,
.selected-candidate span small { display: block; margin-top: 4px; color: #888; }
.candidate-item em { font-style: normal; color: #666; font-size: 12px; }
.selected-candidate { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #111; background: #fff; }
.selected-candidate[hidden] { display: none; }
.employee-password-hint { margin: 12px 28px 0; color: #888; font-size: 12px; }
.employee-modal-card .form-error { min-height: 22px; margin: 12px 28px 0; }
.employee-action-card { width: min(520px, 100%); }
.employee-action-reason { margin: 22px 28px 0; }
.employee-action-reason textarea { resize: vertical; min-height: 90px; }
.employee-action-card .form-error { min-height: 22px; margin: 10px 28px 0; }

.security-content { display: flex; justify-content: center; align-items: flex-start; padding-top: 56px; background: #fafafa; }
.security-card { width: min(600px, 100%); padding: 30px; border: 1px solid #dedede; background: #fff; }
.security-banner { display: flex; flex-direction: column; gap: 6px; margin: -4px -4px 24px; padding: 16px 18px; border: 1px solid #dfc890; background: #fffaf0; color: #6d4c0e; }
.security-banner strong { font-weight: 500; }
.security-banner span { font-size: 13px; line-height: 1.6; }
.security-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #e5e5e5; }
.security-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #111; color: #fff; font-size: 23px; font-weight: 300; }
.security-identity strong { display: block; margin-bottom: 4px; font-weight: 500; }
.security-form { display: grid; gap: 17px; margin-top: 24px; }
.password-rule { display: flex; flex-wrap: wrap; gap: 8px; }
.password-rule span { padding: 4px 8px; border: 1px solid #ddd; color: #888; font-size: 12px; }
.password-rule span.passed { border-color: #8ab691; background: #f2faf3; color: #2d6835; }
.form-success { min-height: 20px; color: #2d6835; font-size: 13px; }
.security-submit { width: 100%; min-height: 46px; }

@media (max-width: 820px) {
  .employee-guide, .employee-form-grid { grid-template-columns: 1fr; }
  .employee-field-wide { grid-column: auto; }
  .employee-filter { grid-template-columns: 1fr; }
  .admin-modal { padding: 0; align-items: stretch; }
  .admin-modal-card { width: 100%; max-height: 100vh; }
  .employee-source-switch { grid-template-columns: 1fr; }
  .security-content { padding: 20px; }
}

/* P10-156 / 2.3：稔愫视觉基因。橙色只保留给极少量必填和警示焦点。 */
:root {
  --color-bg: #f7f3e8;
  --color-bg-card: #fffdf8;
  --color-sidebar: #fffdf8;
  --color-text: #29352f;
  --color-text-light: #526158;
  --color-text-lighter: #718071;
  --color-primary: #29352f;
  --color-primary-hover: #3c4b42;
  --color-primary-light: rgba(168, 179, 156, .18);
  --color-border: rgba(168, 179, 156, .42);
  --color-warning: #c78936;
  --shadow-card: 0 12px 34px rgba(41, 53, 47, .06);
  --radius: 6px;
  --radius-lg: 10px;
}
body,
body.login-page,
.content,
.security-content,
.employee-content { background: #f7f3e8; color: #29352f; }
.sidebar,
.nav-sub,
.topbar,
.maintabs-bar,
.tab-bar,
.card,
.stat-card,
.data-table,
.order-card,
.detail-main,
.detail-side .side-card,
.product-edit-main,
.fill-helper,
.batch-bar,
.login-card,
.admin-modal-card,
.picker-dialog,
.replace-dialog { background: #fffdf8; border-color: rgba(168, 179, 156, .42); }
.sidebar { color: #29352f; border-right-color: rgba(168, 179, 156, .42); }
.sidebar-brand { border-bottom-color: rgba(168, 179, 156, .42); background-color: #fffdf8 !important; }
.sidebar-brand,
.login-card .brand,
.publish-header .logo { background-color: #fffdf8 !important; }
.nav-item,
.nav-sub-item,
.admin-name,
.admin-role,
.logout-btn,
.nav-group > .nav-item::after { color: #526158; }
.nav-item:hover,
.nav-sub-item:hover { background: rgba(168, 179, 156, .12) !important; color: #29352f; }
.nav-item.active,
.nav-sub-item.active { color: #29352f !important; text-decoration-color: #a8b39c; }
.btn-primary,
.btn-primary:hover,
.security-submit { background: #29352f; border-color: #29352f; color: #fffdf8; }
.btn-secondary,
.btn-default { background: #fffdf8; border-color: #a8b39c; color: #29352f; }
.filter-select,
.filter-input,
.form-input,
.form-select,
.form-textarea,
.form-group input,
.form-group select,
.form-group textarea,
.order-action-body input,
.order-action-body select,
.order-action-body textarea { background: #fffdf8; border-color: rgba(168, 179, 156, .56); color: #29352f; }
.status-badge,
.status-tag,
.badge,
.badge-new { background: rgba(168, 179, 156, .15) !important; border-color: rgba(168, 179, 156, .42); color: #29352f !important; }
.admin-modal-backdrop,
.modal-mask { background: rgba(41, 53, 47, .48); }
.admin-modal-head,
.admin-modal-actions { background: rgba(255, 253, 248, .97); border-color: rgba(168, 179, 156, .36); }
.admin-modal-card,
.after-sales-modal .after-sale-dialog { border-radius: 14px; box-shadow: 0 28px 80px rgba(41, 53, 47, .2); }
.required,
.form-required,
[aria-invalid="true"] + .field-hint { color: #fc7604; }
.redemption-cancel-alert{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:18px 20px;border:1px solid #a8b39c;border-left:4px solid #29352f;background:#f7f3e8;color:#29352f}.redemption-cancel-alert[hidden]{display:none}.redemption-cancel-alert strong{display:block;margin-bottom:6px;font-size:16px}.redemption-cancel-alert span{display:block;color:#526158;font-size:13px;line-height:1.7}.redemption-cancelled-copy{color:#29352f;font-weight:600}
