* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
  background: #f4f5f7; color: #333; font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
input, textarea, button { font-family: inherit; }

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #2FA7FF 0%, #1890FF 50%, #0C66E4 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-box {
  width: 100%; max-width: 360px; background: #fff;
  border-radius: 14px; padding: 34px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 12px; }
.login-box h2 { font-size: 20px; color: #333; margin-bottom: 6px; }
.login-hint { font-size: 12px; color: #999; margin-bottom: 20px; }
.login-box input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none;
}
.login-box input:focus { border-color: #2FA7FF; }

.phone-frame {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  background: #f4f5f7; position: relative; padding-bottom: 64px;
  overflow-x: hidden;
  width: 100%;
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #fff; border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 10;
}
.nav-bar .back { width: 24px; }
.nav-bar .title { font-size: 17px; font-weight: 500; color: #333; }
.nav-bar .more { width: 36px; text-align: right; color: #999; font-size: 13px; cursor: pointer; }

.tab-bar {
  background: #2FA7FF; padding: 14px 20px; color: #fff;
  font-size: 16px; text-align: center; font-weight: 500;
}

.page { display: none; }
.page.active { display: block; }

.section { background: #fff; margin-bottom: 10px; }
.section-title {
  padding: 14px 16px 6px; color: #999; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}

.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 16px; }
.icon-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 4px; cursor: pointer; transition: opacity 0.15s;
}
.icon-item:active { opacity: 0.6; }
.icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.icon-box svg {
  width: 24px; height: 24px; stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-label { font-size: 12px; color: #333; text-align: center; line-height: 1.3; }

.bg-blue{background:#4A90E2}.bg-lightblue{background:#5DB0F5}
.bg-green{background:#52C41A}.bg-lightgreen{background:#73D13D}
.bg-orange{background:#FA8C16}.bg-red{background:#F5222D}
.bg-yellow{background:#FAAD14}.bg-purple{background:#7B5BFF}
.bg-cyan{background:#13C2C2}.bg-pink{background:#EB2F96}
.bg-teal{background:#36CFC9}.bg-indigo{background:#597EF7}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; margin-bottom: 10px; }
.stat-item {
  padding: 18px 8px; text-align: center;
  border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
}
.stat-item:nth-child(3n) { border-right: none; }
.stat-item .num { font-size: 24px; color: #2FA7FF; font-weight: 500; line-height: 1.2; }
.stat-item .label { font-size: 13px; color: #666; margin-top: 4px; }

.data-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; background: #fff; margin-bottom: 10px; }
.data-card {
  background: linear-gradient(135deg, #2FA7FF, #1890FF);
  border-radius: 10px; padding: 14px; color: #fff;
}
.data-card.green  { background: linear-gradient(135deg, #52C41A, #389E0D); }
.data-card.orange { background: linear-gradient(135deg, #FA8C16, #D4580E); }
.data-card.purple { background: linear-gradient(135deg, #7B5BFF, #5B3FD9); }
.data-card .card-label { font-size: 12px; opacity: 0.9; }
.data-card .card-value { font-size: 22px; font-weight: 600; margin-top: 6px; }
.data-card .card-trend { font-size: 11px; margin-top: 4px; opacity: 0.85; }

.feed-tabs { display: flex; background: #fff; padding: 0 16px; border-bottom: 1px solid #f0f0f0; }
.feed-tab { padding: 12px 14px; font-size: 14px; color: #666; position: relative; cursor: pointer; }
.feed-tab.active { color: #2FA7FF; font-weight: 500; }
.feed-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: #2FA7FF; border-radius: 1px;
}
.activity-item { display: flex; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 12px; }
.activity-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.activity-content { flex: 1; min-width: 0; }
.activity-title { font-size: 14px; color: #333; margin-bottom: 3px; }
.activity-title .highlight { color: #2FA7FF; }
.activity-desc { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { font-size: 11px; color: #bbb; margin-left: 8px; flex-shrink: 0; padding-top: 2px; }

.search-bar { padding: 10px 16px; background: #fff; }
.search-input { display: flex; align-items: center; background: #f2f2f2; border-radius: 20px; padding: 8px 14px; color: #999; font-size: 13px; }
.search-input svg { width: 14px; height: 14px; margin-right: 6px; stroke: #999; fill: none; stroke-width: 2; }
.chat-list { background: #fff; }
.chat-item { display: flex; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; cursor: pointer; }
.chat-avatar { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 12px; color: #fff; font-size: 16px; font-weight: 500; }
.chat-avatar svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-content { flex: 1; min-width: 0; }
.chat-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.chat-name { font-size: 15px; color: #333; font-weight: 500; }
.chat-time { font-size: 11px; color: #bbb; }
.chat-preview { font-size: 13px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-header { background: linear-gradient(135deg, #2FA7FF 0%, #1890FF 50%, #0C66E4 100%); padding: 30px 20px 50px; color: #fff; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.4); flex-shrink: 0; }
.profile-avatar svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-info .name { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.profile-info .role { font-size: 12px; opacity: 0.9; }
.profile-info .role-badge { display: inline-block; background: rgba(255,255,255,0.22); padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-top: 6px; }
.profile-stats { background: #fff; margin: -30px 14px 10px; border-radius: 12px; padding: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.profile-stat { text-align: center; border-right: 1px solid #f0f0f0; cursor: pointer; }
.profile-stat:last-child { border-right: none; }
.profile-stat .stat-num { font-size: 20px; font-weight: 600; color: #333; }
.profile-stat .stat-label { font-size: 12px; color: #999; margin-top: 3px; }

.menu-list { background: #fff; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f9f9f9; }
.menu-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.menu-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-text { flex: 1; font-size: 14px; color: #333; }
.menu-value { font-size: 13px; color: #999; margin-right: 6px; }
.menu-arrow { color: #ccc; font-size: 18px; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto; background: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 12px; border-top: 1px solid #eee; z-index: 100;
}
.bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #999; cursor: pointer; padding: 2px 0; }
.bottom-nav .nav-item svg { width: 22px; height: 22px; }
.bottom-nav .nav-item.active { color: #2FA7FF; }
.bottom-nav .nav-item span { font-size: 11px; }

.sub-page {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  max-width: 430px; margin: 0 auto; background: #f4f5f7;
  z-index: 200; overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%); transition: transform 0.25s ease;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.sub-page.open { transform: translateX(0); }
.sub-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #fff; border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 10;
}
.sub-nav .back-btn { width: 60px; color: #333; font-size: 22px; cursor: pointer; }
.sub-nav .title { font-size: 17px; font-weight: 500; flex: 1; text-align: center; }
.sub-nav .action-btn { width: 60px; text-align: right; color: #2FA7FF; font-size: 14px; cursor: pointer; }

.form-section { background: #fff; margin-bottom: 10px; }
.form-section-title { padding: 14px 16px 8px; color: #999; font-size: 13px; }
.form-item { display: flex; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; min-height: 50px; }
.form-item:last-child { border-bottom: none; }
.form-item.vertical { display: block; padding: 12px 16px; }
.form-label { font-size: 14px; color: #333; min-width: 88px; flex-shrink: 0; }
.form-label.required::before { content: '* '; color: #FF4D4F; }
.form-input {
  flex: 1; border: none; outline: none; font-size: 14px;
  color: #333; text-align: right; background: transparent;
}
.form-input::placeholder { color: #ccc; }
.form-input.left { text-align: left; }
.form-value { font-size: 14px; color: #333; flex: 1; text-align: right; }
.form-value.placeholder { color: #ccc; }
.form-arrow { color: #ccc; font-size: 18px; margin-left: 4px; }
.form-textarea {
  width: 100%; border: 1px solid #eee; border-radius: 6px;
  padding: 10px; font-size: 14px; color: #333;
  min-height: 80px; resize: vertical; margin-top: 6px; outline: none;
}
.form-textarea:focus { border-color: #2FA7FF; }
.form-tip { font-size: 12px; color: #999; padding: 6px 16px 12px; line-height: 1.5; }

.toggle { width: 44px; height: 24px; background: #ddd; border-radius: 12px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle.on { background: #2FA7FF; }
.toggle.on::after { transform: translateX(20px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 14px; }
.chip { padding: 6px 14px; border-radius: 16px; background: #f2f2f2; color: #666; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.chip.active { background: rgba(47, 167, 255, 0.1); color: #2FA7FF; border-color: #2FA7FF; }

.check-item { display: flex; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ddd; margin-right: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.check-item.checked .check-icon { background: #2FA7FF; border-color: #2FA7FF; }
.check-item.checked .check-icon::after { content: ''; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
.check-item-content { flex: 1; }
.check-item-title { font-size: 14px; color: #333; }
.check-item-desc { font-size: 12px; color: #999; margin-top: 3px; }

.btn {
  display: block; width: 100%; padding: 13px 0; text-align: center;
  border-radius: 8px; font-size: 15px; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, #2FA7FF, #1890FF); color: #fff; font-weight: 500; }
.btn-primary:active { opacity: 0.8; }
.btn-outline { background: #fff; color: #2FA7FF; border: 1px solid #2FA7FF; }
.btn-wrap { padding: 16px; }

.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px; }
.upload-cell {
  aspect-ratio: 1; border: 1px dashed #ddd; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa; cursor: pointer; position: relative;
  overflow: hidden;
}
.upload-cell .plus { font-size: 28px; color: #ccc; font-weight: 200; }
.upload-cell img { width: 100%; height: 100%; object-fit: cover; }
.upload-cell .del {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; background: rgba(0,0,0,0.6); color: #fff;
  border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.upload-grid.swiper .upload-cell { aspect-ratio: 16/9; }
.upload-cell.drag-cell {
  cursor: move;
  transition: outline 0.15s;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.upload-cell.drag-cell img {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.upload-cell.drag-cell:active { transform: scale(0.96); }
.upload-cell .img-badge {
  position: absolute; bottom: 2px; left: 2px;
  background: rgba(255,140,0,0.9); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  z-index: 2; pointer-events: none;
}
.upload-cell .img-mv-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.upload-cell .img-mv-l { left: 2px; }
.upload-cell .img-mv-r { right: 2px; }
.upload-cell .img-mv-btn:active { background: rgba(0,0,0,0.85); }

.list-row { background: #fff; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; }
.list-row .row-main { flex: 1; min-width: 0; }
.list-row .row-title { font-size: 14px; color: #333; margin-bottom: 4px; }
.list-row .row-desc { font-size: 12px; color: #999; }
.list-row .row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.list-row .row-btn { font-size: 12px; padding: 4px 10px; border-radius: 14px; background: #f2f2f2; color: #666; cursor: pointer; border: none; }
.list-row .row-btn.primary { background: rgba(47,167,255,0.1); color: #2FA7FF; }
.list-row .row-btn.danger  { background: #FFF1F0; color: #F5222D; }
.list-row .row-btn.success { background: #F6FFED; color: #52C41A; }

.category-panel { display: flex; height: calc(100vh - 56px); background: #fff; }
.category-side { width: 108px; background: #f7f8fa; overflow-y: auto; }
.category-side .cat-item { padding: 14px 10px; font-size: 13px; color: #666; border-left: 3px solid transparent; text-align: center; cursor: pointer; line-height: 1.3; }
.category-side .cat-item.active { background: #fff; color: #2FA7FF; font-weight: 500; border-left-color: #2FA7FF; }
.category-main { flex: 1; overflow-y: auto; padding: 12px; }
.category-main .sub-title { font-size: 13px; color: #999; margin-bottom: 8px; padding: 4px; display: flex; justify-content: space-between; align-items: center; }
.category-main .sub-title .add-link { color: #2FA7FF; cursor: pointer; }
.sub-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sub-cat { padding: 10px; text-align: center; border: 1px solid #f0f0f0; border-radius: 6px; font-size: 13px; color: #333; background: #fafafa; cursor: pointer; position: relative; }
.sub-cat .del-icon { display: inline-block; margin-left: 4px; color: #bbb; font-size: 16px; }
.sub-cat.add-new { color: #2FA7FF; border-style: dashed; }

.order-tabs { display: flex; background: #fff; overflow-x: auto; border-bottom: 1px solid #f0f0f0; -webkit-overflow-scrolling: touch; }
.order-tabs::-webkit-scrollbar { display: none; }
.order-tab { padding: 12px 14px; font-size: 13px; color: #666; white-space: nowrap; position: relative; cursor: pointer; flex-shrink: 0; }
.order-tab.active { color: #2FA7FF; font-weight: 500; }
.order-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: #2FA7FF; border-radius: 1px;
}

.order-card { background: #fff; margin-bottom: 10px; padding: 14px 16px; }
.order-card .order-top { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 10px; }
.order-card .order-status { color: #FA8C16; }
.order-card .order-status.danger  { color: #F5222D; }
.order-card .order-status.success { color: #52C41A; }
.order-card .order-body { display: flex; gap: 10px; margin-bottom: 12px; }
.order-card .order-img { width: 60px; height: 60px; background: linear-gradient(135deg, #e7f5ff, #cce7ff); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #4A90E2; font-size: 12px; overflow: hidden; }
.order-card .order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-card .order-info { flex: 1; min-width: 0; }
.order-card .order-title { font-size: 14px; color: #333; margin-bottom: 4px; }
.order-card .order-spec { font-size: 12px; color: #999; }
.order-card .order-price { font-size: 14px; color: #333; margin-top: 4px; }
.order-card .order-price .amount { color: #F5222D; font-weight: 500; }
.order-card .order-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid #f5f5f5; flex-wrap: wrap; }
.order-card .order-btn { padding: 6px 14px; border-radius: 16px; font-size: 12px; cursor: pointer; border: 1px solid #ddd; background: #fff; color: #666; }
.order-card .order-btn.primary { border-color: #2FA7FF; color: #2FA7FF; }
.order-card .order-btn.danger  { border-color: #F5222D; color: #F5222D; }
.order-card .order-btn.solid   { background: #2FA7FF; color: #fff; border-color: #2FA7FF; }

.ladder-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #f5f5f5; }
.ladder-row .ladder-input { flex: 1; padding: 8px 10px; border: 1px solid #eee; border-radius: 6px; font-size: 13px; outline: none; min-width: 0; }
.ladder-row .ladder-input:focus { border-color: #2FA7FF; }
.ladder-row .del-btn { color: #F5222D; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.add-ladder { padding: 12px 16px; color: #2FA7FF; font-size: 13px; text-align: center; cursor: pointer; border-top: 1px dashed #eee; }

.banner-card { background: #fff; margin-bottom: 10px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.banner-thumb { width: 100px; height: 55px; border-radius: 6px; background: linear-gradient(135deg, #FA8C16, #FF7A00); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; text-align: center; padding: 0 6px; }
.banner-info { flex: 1; min-width: 0; }
.banner-info .title { font-size: 14px; color: #333; margin-bottom: 4px; }
.banner-info .meta { font-size: 12px; color: #999; }
.banner-actions { display: flex; flex-direction: column; gap: 6px; }
.banner-actions .mini-btn { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #f2f2f2; color: #666; cursor: pointer; text-align: center; border: none; }
.banner-actions .mini-btn.danger { background: #FFF1F0; color: #F5222D; }

.marquee-preview { margin: 12px 16px; padding: 10px 14px; background: #fff8e7; border-radius: 6px; overflow: hidden; display: flex; align-items: center; gap: 8px; }
.marquee-preview .speaker { color: #FA8C16; font-size: 14px; }
.marquee-inner { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee-text { display: inline-block; animation: marquee 15s linear infinite; color: #d4580e; font-size: 13px; padding-left: 100%; }
@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

.smart-parse { margin: 10px 16px; background: #fff5e6; border: 1px dashed #FA8C16; border-radius: 8px; padding: 12px; }
.smart-parse .sp-title { font-size: 13px; color: #FA8C16; font-weight: 500; margin-bottom: 6px; }
.smart-parse textarea { width: 100%; min-height: 70px; border: 1px solid #ffd591; border-radius: 6px; padding: 8px; font-size: 13px; outline: none; resize: vertical; font-family: inherit; background: #fff; }
.smart-parse .sp-hint { font-size: 11px; color: #999; margin-top: 6px; line-height: 1.5; }
.smart-parse .sp-btn { margin-top: 8px; padding: 6px 16px; background: #FA8C16; color: #fff; border: none; border-radius: 16px; font-size: 12px; cursor: pointer; }

.empty { padding: 60px 20px; text-align: center; color: #999; font-size: 13px; }
.empty-icon { width: 60px; height: 60px; margin: 0 auto 12px; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 24px; }
.empty-btn { margin-top: 16px; display: inline-block; padding: 8px 20px; background: #2FA7FF; color: #fff; border-radius: 20px; font-size: 13px; cursor: pointer; }

.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78); color: #fff;
  padding: 10px 20px; border-radius: 6px; font-size: 14px;
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

.input-with-prefix { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.input-with-prefix .prefix { color: #999; margin-right: 4px; font-size: 14px; }

.dot-badge { display: inline-block; background: #FF4D4F; color: #fff; font-size: 10px; padding: 0 5px; border-radius: 8px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; margin-left: 6px; }

.pl-panel { display: flex; min-height: calc(100vh - 56px); background: #f4f5f7; }
.pl-side {
  width: 116px; flex-shrink: 0; background: #f7f8fa;
  overflow-y: auto; max-height: calc(100vh - 56px);
  border-right: 1px solid #eaecef;
}
.pl-group-title {
  font-size: 11px; color: #999; padding: 12px 10px 6px;
  letter-spacing: 1px; background: #f0f1f4;
}
.pl-li {
  padding: 12px 10px; font-size: 13px; color: #555;
  border-left: 3px solid transparent; cursor: pointer; line-height: 1.3;
  display: flex; justify-content: space-between; align-items: center;
  background: #f7f8fa;
}
.pl-li:hover { background: #eef0f3; }
.pl-li.on {
  background: #fff; color: #2FA7FF; font-weight: 500;
  border-left-color: #2FA7FF;
}
.pl-cnt {
  font-size: 11px; color: #aaa; background: #fff;
  padding: 1px 6px; border-radius: 8px; flex-shrink: 0;
}
.pl-li.on .pl-cnt { color: #2FA7FF; background: #E6F4FF; }
.pl-empty-tip { padding: 14px 10px; font-size: 12px; color: #bbb; text-align: center; }

.pl-main { flex: 1; min-width: 0; overflow-y: auto; max-height: calc(100vh - 56px); }
.pl-main-head {
  background: #fff; padding: 12px 16px; border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 5;
}
.pl-main-title { font-size: 15px; font-weight: 500; color: #333; }
.pl-main-count { font-size: 12px; color: #999; }
.pl-list { padding: 10px 12px; }

.pl-card {
  background: #fff; border-radius: 10px; margin-bottom: 10px;
  padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pl-card-top { display: flex; gap: 12px; }
.pl-cover {
  width: 80px; height: 80px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: #f5f5f5;
}
.pl-no-cover {
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 12px;
}
.pl-card-body { flex: 1; min-width: 0; }
.pl-card-title {
  font-size: 14px; font-weight: 500; color: #333; line-height: 1.4;
  margin-bottom: 6px; word-break: break-word;
}
.pl-state {
  display: inline-block; font-size: 10px; padding: 1px 6px;
  border-radius: 8px; margin-left: 6px; vertical-align: middle;
  font-weight: normal;
}
.pl-state.onsale   { background: #F6FFED; color: #52C41A; }
.pl-state.offshelf { background: #f5f5f5; color: #999; }
.pl-state.pending  { background: #FFF7E6; color: #FA8C16; }
.pl-state.rejected { background: #FFF1F0; color: #F5222D; }
.pl-hot-tag {
  display: inline-block; background: #F5222D; color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 8px;
  margin-left: 6px; vertical-align: middle;
}
.pl-card-meta {
  font-size: 12px; color: #999; margin-bottom: 6px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline;
}
.pl-price { color: #F5222D; font-size: 15px; font-weight: 600; }
.pl-orig  { color: #bbb; text-decoration: line-through; font-size: 12px; }
.pl-spec  { color: #888; }
.pl-card-stock { font-size: 12px; color: #666; margin-bottom: 6px; }
.pl-card-stock b { color: #FA8C16; font-weight: 600; }
.pl-limit-badge {
  display: inline-block; background: #FFF7E6; color: #FA8C16;
  font-size: 11px; padding: 1px 8px; border-radius: 8px;
  margin-left: 6px; border: 1px solid #FFD591;
}
.pl-card-info {
  background: #fafbfc; border-radius: 6px; padding: 8px 10px;
  font-size: 11px; color: #888; line-height: 1.7;
}
.pl-card-info b { color: #555; font-weight: 500; }
.pl-scene-row {
  margin-top: 6px; font-size: 11px; color: #888;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.pl-scene-tag {
  display: inline-block; font-size: 10px; padding: 1px 6px;
  border-radius: 8px; border: 1px solid; background: #fff;
}
.pl-card-actions {
  display: flex; gap: 6px; padding-top: 10px; margin-top: 10px;
  border-top: 1px dashed #eee; justify-content: flex-end;
}

.stk-panel { display: flex; min-height: calc(100vh - 56px); background: #f4f5f7; }
.stk-side {
  width: 140px; flex-shrink: 0; background: #f7f8fa;
  overflow-y: auto; max-height: calc(100vh - 56px);
  border-right: 1px solid #eaecef;
}
.stk-sup {
  padding: 12px 10px; cursor: pointer; line-height: 1.4;
  border-left: 3px solid transparent; border-bottom: 1px solid #eef0f3;
}
.stk-sup:hover { background: #eef0f3; }
.stk-sup.on {
  background: #fff; border-left-color: #2FA7FF;
}
.stk-sup-name { font-size: 13px; color: #333; font-weight: 500; word-break: break-word; }
.stk-sup.on .stk-sup-name { color: #2FA7FF; }
.stk-sup-id { font-size: 11px; color: #999; margin-top: 3px; }
.stk-sup-meta { font-size: 11px; color: #aaa; margin-top: 3px; }

.stk-main { flex: 1; min-width: 0; overflow-y: auto; max-height: calc(100vh - 56px); }
.stk-main-head {
  background: linear-gradient(135deg, #2FA7FF, #1890FF); color: #fff;
  padding: 16px; position: sticky; top: 0; z-index: 5;
}
.stk-main-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.stk-id-tag {
  display: inline-block; background: rgba(255,255,255,0.25);
  padding: 2px 8px; border-radius: 8px; font-size: 12px;
  font-weight: normal; margin-left: 4px;
}
.stk-main-sub { font-size: 12px; opacity: 0.9; margin-bottom: 6px; }
.stk-main-stat { font-size: 12px; opacity: 0.95; }
.stk-main-stat b { font-weight: 600; }

.stk-list { padding: 10px 12px; }
.stk-row {
  display: flex; gap: 10px; background: #fff; border-radius: 10px;
  padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stk-cover {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: #f5f5f5;
}
.stk-no-cover {
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 11px;
}
.stk-row-body { flex: 1; min-width: 0; }
.stk-row-title { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 4px; }
.stk-row-meta { font-size: 11px; color: #999; margin-bottom: 8px; }
.stk-row-edit {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px dashed #eee;
}
.stk-edit-group {
  display: flex; align-items: center; gap: 4px;
  background: #fafbfc; border-radius: 6px; padding: 4px 6px;
}
.stk-edit-group label { font-size: 11px; color: #888; }
.stk-input {
  width: 60px; border: 1px solid #ddd; border-radius: 4px;
  padding: 4px 6px; font-size: 13px; text-align: center;
  outline: none;
}
.stk-input:focus { border-color: #2FA7FF; }
.stk-unit { font-size: 11px; color: #aaa; }

.agency-card {
  background: linear-gradient(135deg, #FA8C16, #D4580E);
  color: #fff; border-radius: 10px; margin: 0 12px;
  padding: 16px 18px; display: flex; align-items: center;
  box-shadow: 0 4px 12px rgba(250,140,22,0.25);
}
.agency-left { flex: 1; min-width: 0; }
.agency-label { font-size: 12px; opacity: 0.9; }
.agency-value { font-size: 28px; font-weight: 700; margin: 4px 0; line-height: 1.1; }
.agency-tip { font-size: 11px; opacity: 0.85; line-height: 1.4; }
.agency-right {
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 16px; text-align: right; flex-shrink: 0;
}
.agency-sub-label { font-size: 11px; opacity: 0.85; }
.agency-sub-value { font-size: 16px; font-weight: 600; margin-top: 4px; }

.refund-banner {
  display: flex; align-items: center; gap: 10px;
  background: #FFF1F0; border: 1px solid #FFCCC7;
  border-radius: 8px; padding: 10px 12px; margin: 10px 0;
}
.refund-banner-icon {
  width: 28px; height: 28px; border-radius: 14px;
  background: #F5222D; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: bold;
}
.refund-banner-text { flex: 1; min-width: 0; }
.refund-banner-text .rb-title { font-size: 13px; color: #F5222D; font-weight: 600; }
.refund-banner-text .rb-sub   { font-size: 12px; color: #888; margin-top: 2px; }

.refund-done-banner {
  background: #F6FFED; border: 1px solid #B7EB8F;
  border-radius: 8px; padding: 10px 12px; margin: 10px 0;
}
.refund-done-banner .rd-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #389E0D; padding: 2px 0;
}
.refund-done-banner .rd-row.sub {
  font-size: 11px; color: #999; padding-top: 0;
}
.refund-done-banner .rd-amount { font-size: 16px; font-weight: 700; }

.order-btn.solid.danger { background: #F5222D; color: #fff; }
.btn.big-refund {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #F5222D, #CF1322); color: #fff;
  font-size: 16px; font-weight: 600; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245,34,45,0.3);
}

.refund-detail-card {
  background: linear-gradient(135deg, #FFF7E6, #FFF1F0);
  border: 1px solid #FFD591; border-radius: 10px;
  padding: 16px; margin: 10px 14px;
  position: relative;
}
.refund-detail-card .rdc-icon {
  position: absolute; top: 14px; right: 16px;
  font-size: 24px; color: #FA8C16;
}
.refund-detail-card .rdc-title {
  font-size: 15px; font-weight: 600; color: #FA541C;
  margin-bottom: 12px;
}
.refund-detail-card .rdc-line {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 13px; color: #555;
}
.refund-detail-card .rdc-line .lbl { color: #999; }
.refund-detail-card .rdc-line .val { color: #333; font-weight: 500; }
.refund-detail-card .rdc-line .val.highlight { color: #F5222D; font-size: 16px; font-weight: 700; }
.refund-detail-card .rdc-tip {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed #ffd591;
  font-size: 11px; color: #fa8c16;
}

.refund-done-card {
  background: linear-gradient(135deg, #F6FFED, #D9F7BE);
  border: 1px solid #95DE64; border-radius: 10px;
  padding: 16px; margin: 10px 14px;
  text-align: center;
}
.refund-done-card .rdd-head {
  font-size: 15px; color: #389E0D; font-weight: 600;
  margin-bottom: 4px;
}
.refund-done-card .rdd-amount {
  font-size: 32px; font-weight: 700; color: #237804;
  line-height: 1.2; margin-bottom: 12px;
}
.refund-done-card .rdd-line {
  display: flex; justify-content: space-between;
  padding: 5px 0; font-size: 13px; color: #555;
}
.refund-done-card .rdd-line .lbl { color: #888; }
.refund-done-card .rdd-line .val { color: #333; font-weight: 500; max-width: 60%; text-align: right; word-break: break-all; }
.refund-done-card .rdd-tip {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #95DE64;
  font-size: 11px; color: #389E0D;
}

.position-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.position-card.swiper-pos {
  background: linear-gradient(135deg, #E6F4FF, #BAE0FF);
  border-bottom: 1px solid #91CAFF;
}
.position-card.banner-pos {
  background: linear-gradient(135deg, #FFF7E6, #FFE7BA);
  border-bottom: 1px solid #FFD591;
}
.position-icon { font-size: 22px; flex-shrink: 0; }
.position-text { flex: 1; min-width: 0; }
.position-title { font-size: 13px; color: #333; line-height: 1.5; }
.position-title b { color: #1677FF; font-weight: 600; }
.position-card.banner-pos .position-title b { color: #FA8C16; }
.position-sub   { font-size: 11px; color: #888; margin-top: 3px; line-height: 1.5; }

.position-tabs {
  display: flex; background: #fff; padding: 0 12px;
  border-bottom: 1px solid #f0f0f0; overflow-x: auto;
}
.position-tabs::-webkit-scrollbar { display: none; }
.position-tab {
  padding: 12px 14px; font-size: 13px; color: #666;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; gap: 6px;
}
.position-tab .dot {
  width: 8px; height: 8px; border-radius: 4px;
}
.position-tab.active { color: var(--pc); font-weight: 500; }
.position-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--pc); border-radius: 1px;
}
.position-desc {
  background: #fafbfc; padding: 8px 16px;
  font-size: 12px; color: #888;
  border-bottom: 1px solid #f0f0f0;
}

.pr-panel { display: flex; min-height: calc(100vh - 56px); background: #f4f5f7; }

.pr-row {
  display: flex; gap: 10px; background: #fff; border-radius: 10px;
  padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pr-row-body { flex: 1; min-width: 0; }
.pr-row-title { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 4px; }
.pr-row-meta { font-size: 11px; color: #999; margin-bottom: 8px; }
.pr-row-edit {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px dashed #eee;
}
.pr-edit-group {
  display: flex; align-items: center; gap: 4px;
  background: #fafbfc; border-radius: 6px; padding: 4px 8px;
}
.pr-edit-group label { font-size: 11px; color: #888; white-space: nowrap; }

.mm-row {
  background: #fff; border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.mm-row-title {
  font-size: 14px; font-weight: 600; color: #333;
  padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px;
}
.mm-block-title {
  font-size: 12px; color: #888; margin: 12px 0 8px;
  padding-left: 4px;
}
.mm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.mm-cell {
  position: relative; aspect-ratio: 1; background: #f5f5f5;
  border-radius: 6px; overflow: hidden;
  border: 1px solid #eee;
}
.mm-cell.mm-cell-large {
  aspect-ratio: 16 / 9; grid-column: 1 / -1; max-width: 240px;
}
.mm-cell img, .mm-cell video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mm-cover-tag {
  position: absolute; top: 4px; left: 4px;
  background: #FA541C; color: #fff;
  font-size: 9px; padding: 1px 6px; border-radius: 8px;
  z-index: 1;
}
.mm-cell-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 2px; padding: 4px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.mm-cell-actions .mini-btn {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.9); color: #333;
  border: none; cursor: pointer; flex: 1;
}
.mm-cell-actions .mini-btn.danger { background: #fff1f0; color: #f5222d; }
.mm-cell.mm-add {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; cursor: pointer;
  border: 1px dashed #d9d9d9; background: #fafafa;
}
.mm-cell.mm-add:hover { border-color: #2FA7FF; background: #f0f8ff; }
.mm-cell.mm-add .plus { font-size: 28px; color: #ccc; line-height: 1; }
.mm-cell.mm-add .ttl  { font-size: 11px; color: #999; margin-top: 4px; }

.mm-row.mm-row-dirty {
  border: 1px solid #FFD591;
  background: linear-gradient(180deg, #FFF7E6 0%, #fff 30%);
}
.mm-row-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px;
}
.mm-row-head .mm-row-title { padding: 0; border: 0; margin: 0; }
.mm-row-actions { display: flex; gap: 6px; }
.mm-row-actions .row-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.mm-dirty-badge {
  display: inline-block; background: #FA8C16; color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 8px;
  margin-left: 8px; vertical-align: middle; font-weight: normal;
}

.br-card {
  background: #fff; border-radius: 10px;
  padding: 14px 16px; margin: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.br-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px dashed #eee; margin-bottom: 10px;
  font-size: 12px; color: #888;
}
.br-status {
  font-size: 11px; padding: 2px 8px; border-radius: 8px;
  background: #f5f5f5; color: #666;
}
.br-status.pending  { background: #FFF7E6; color: #FA8C16; }
.br-status.success  { background: #F6FFED; color: #52C41A; }
.br-status.danger   { background: #FFF1F0; color: #F5222D; }

.br-body { display: flex; gap: 12px; }
.br-cover {
  width: 80px; height: 80px; border-radius: 8px;
  flex-shrink: 0; object-fit: cover; background: #f5f5f5;
}
.br-no-cover {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #ccc;
}
.br-info { flex: 1; min-width: 0; }
.br-title {
  font-size: 14px; color: #222; font-weight: 500;
  margin-bottom: 6px; line-height: 1.4;
}
.br-prices {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 4px;
}
.br-price-bargain {
  color: #F5222D; font-size: 18px; font-weight: 700;
}
.br-price-orig {
  color: #999; font-size: 12px; text-decoration: line-through;
}
.br-price-times {
  color: #666; font-size: 13px;
}
.br-saved {
  font-size: 12px; color: #666; margin-bottom: 8px;
}
.br-saved b { color: #FA541C; }
.br-meta {
  font-size: 12px; color: #666; line-height: 1.7;
  background: #fafbfc; padding: 8px 10px; border-radius: 6px;
}

.br-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed #eee; margin-top: 10px;
  justify-content: flex-end;
}

.br-final-line {
  margin-top: 8px;
  background: linear-gradient(135deg, #F6FFED, #D9F7BE);
  border: 1px solid #95DE64;
  color: #389E0D;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.br-final-line b { color: #237804; font-size: 14px; }

.pl-li.pl-li-cat {
  font-weight: 600;
  background: #fafbfc;
  font-size: 12px;
}
.pl-li.pl-li-sub {
  padding-left: 18px;
  font-size: 12px;
  position: relative;
}
.pl-li-arrow {
  display: inline-block;
  width: 14px;
  color: #999;
  font-size: 10px;
  text-align: center;
}
.pl-li.pl-li-subsub {
  padding-left: 36px;
  font-size: 11px;
  background: #fafbfc;
  color: #888;
}
.pl-li.pl-li-subsub.on {
  color: #2FA7FF;
  background: #fff;
}

.ui-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #eee;
}
.ui-tip { font-size: 12px; color: #888; }
.ui-toolbar .btn.disabled { opacity: 0.4; pointer-events: none; }

.ui-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 14px;
  background: #f5f5f5;
}
.ui-phone {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ui-phone-title {
  background: linear-gradient(135deg, #2FA7FF, #1890FF);
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 14px; text-align: center;
}
.ui-phone-body { flex: 1; padding: 10px; background: #fafbfc; min-height: 380px; }
.ui-line { padding: 6px 8px; font-size: 12px; color: #555; }
.ui-hero { display: flex; align-items: center; gap: 8px; padding: 10px; background: #fff; border-radius: 6px; margin-bottom: 6px; }
.ui-search { background: #fff; border-radius: 14px; padding: 8px 12px; color: #666; margin-bottom: 8px; font-size: 12px; }
.ui-bold { font-weight: 600; color: #333; }
.ui-sub { color: #999; font-size: 11px; }
.ui-tiny { font-size: 11px; color: #999; }

.ui-edit {
  display: inline-block;
  cursor: pointer;
  border: 1px dashed transparent;
  padding: 1px 4px;
  border-radius: 3px;
  transition: all 0.15s;
}
.ui-edit:hover {
  border-color: #2FA7FF;
  background: #E6F4FF;
  color: #1890FF;
}

.ui-readonly { color: #bbb; font-size: 11px; }

.ui-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: #fff; padding: 8px; border-radius: 6px; margin-bottom: 8px;
}
.ui-cat-cell {
  text-align: center; font-size: 10px; padding: 12px 4px;
  background: #fafbfc; border-radius: 4px;
}

.ui-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 8px;
}
.ui-card-mini {
  background: #fff; padding: 10px; border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.ui-banner-row {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, #FFF7E6, #FFE7BA);
  padding: 10px 12px; border-radius: 6px; margin-bottom: 8px;
}
.ui-pill {
  background: #FA8C16; color: #fff; font-size: 11px;
  padding: 4px 12px; border-radius: 12px; font-weight: 500;
}
.ui-pill-orange { background: #FF6B35; }

.ui-tabs-row {
  display: flex; gap: 12px; padding: 8px;
  background: #fff; border-radius: 6px; justify-content: space-around;
  font-size: 12px;
}
.ui-tab.ui-edit { color: #555; }
.ui-tab:first-child { color: #1890FF; font-weight: 600; }

.ui-tabbar {
  display: flex; justify-content: space-around;
  padding: 10px 0; background: #fff; border-top: 1px solid #f0f0f0;
  font-size: 11px; color: #999;
}
.ui-tabbar .ui-bold { color: #1890FF; }

.ui-cat-2col {
  display: grid; grid-template-columns: 80px 1fr; gap: 0;
  background: #fff; border-radius: 6px; overflow: hidden;
  margin-top: 6px;
}
.ui-cat-left {
  background: #f5f5f5; padding: 4px 0;
}
.ui-cat-row {
  padding: 10px 8px; font-size: 11px; text-align: center;
  border-bottom: 1px solid #fff;
}
.ui-cat-right { padding: 8px; }
.ui-sort-row {
  display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 11px; color: #555; margin-bottom: 6px;
}
.ui-sort-row .ui-active { color: #FA541C; font-weight: 600; }

.ui-cart-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #fff;
  border-radius: 6px; margin-top: 12px; font-size: 12px;
  border-top: 1px solid #f0f0f0;
}

.ui-profile-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: linear-gradient(135deg, #FA541C, #FF6B35);
  color: #fff; border-radius: 6px; margin-bottom: 8px;
}
.ui-profile-head .ui-pill { background: rgba(255,255,255,0.25); }
.ui-orders-row {
  display: flex; justify-content: space-between; padding: 10px;
  background: #fff; border-radius: 6px; margin-bottom: 8px;
}
.ui-menu-list { background: #fff; border-radius: 6px; }
.ui-menu-row {
  padding: 10px 12px; font-size: 12px; color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.ui-menu-row:last-child { border-bottom: none; }

.bg-gray{background:#8C8C8C}

.agency-summary {
  background: #fff;
  margin: 0 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.agency-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: #f0f0f0;
}
.agency-cell {
  background: #fff;
  padding: 16px 14px;
  text-align: center;
}
.agency-cell-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.agency-cell-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.agency-cell-sub {
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}
.agency-total .agency-cell-value { color: #1890FF; }
.agency-settled .agency-cell-value { color: #52C41A; }
.agency-settled .agency-cell-label { color: #52C41A; }
.agency-pending .agency-cell-value { color: #FA541C; }
.agency-pending .agency-cell-label { color: #FA541C; }

.agency-today {
  background: #FFF7E6;
  padding: 10px 14px;
  font-size: 12px;
  color: #874D00;
  text-align: center;
  border-top: 1px dashed #FFE58F;
}
.agency-today b { color: #FA541C; font-size: 14px; }

.agency-day-table {
  background: #fff;
  margin: 0 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.agency-day-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr 1.1fr 0.6fr;
  padding: 10px 14px;
  font-size: 12px;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
}
.agency-day-row:last-of-type { border-bottom: none; }
.agency-day-head {
  background: #fafbfc;
  color: #888;
  font-weight: 600;
  font-size: 11px;
}
.agency-day-row.is-today { background: linear-gradient(90deg, #FFF7E6, #fff); }
.ad-col-date { color: #333; }
.ad-col-pending { color: #FA541C; text-align: right; }
.ad-col-settled { color: #52C41A; text-align: right; }
.ad-col-total { color: #1890FF; text-align: right; font-weight: 600; }
.ad-col-orders { color: #888; text-align: right; }
.ad-today-tag {
  background: #FA541C; color: #fff;
  padding: 0 5px; border-radius: 8px;
  font-size: 9px; margin-left: 4px;
  vertical-align: middle;
}

.agency-day-bar-wrap {
  display: flex; height: 4px;
  background: #f5f5f5;
  margin: 0 14px;
}
.agency-day-bar-pending { background: #FA541C; }
.agency-day-bar-settled { background: #52C41A; }

.agency-day-legend {
  display: flex; gap: 20px; justify-content: center;
  padding: 12px 0; font-size: 12px; color: #888;
}
.agency-day-legend i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.agency-day-legend .lg-pending { background: #FA541C; }
.agency-day-legend .lg-settled { background: #52C41A; }

.sa-toolbar {
  background: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.sa-tabs {
  display: flex;
  gap: 6px;
}
.sa-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  background: #fafbfc;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.sa-tab:hover { background: #f0f5ff; }
.sa-tab.on {
  background: linear-gradient(135deg, #2FA7FF, #1890FF);
  color: #fff;
  font-weight: 600;
}
.sa-custom-row {
  display: flex; gap: 8px; align-items: center;
  margin-top: 10px; font-size: 12px;
}
.sa-custom-row input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #e0e3e8;
  border-radius: 4px;
  font-size: 12px;
}

.sa-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #f0f0f0;
  margin-bottom: 8px;
}
.sa-sum-cell {
  background: #fff;
  padding: 12px 8px;
  text-align: center;
}
.sa-sum-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.sa-sum-val {
  font-size: 16px;
  font-weight: 700;
  color: #1890FF;
}

.sa-chart-wrap {
  background: #fff;
  margin: 10px 12px;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sa-chart-title {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 4px;
}
.sa-legend {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 4px; font-size: 11px; color: #666;
}
.sa-legend i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}

.sa-table {
  background: #fff;
  margin: 10px 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sa-table-head {
  padding: 10px 14px;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.sa-day-row {
  background: #FFF7E6;
  padding: 10px 14px;
  border-bottom: 1px solid #FFE7BA;
}
.sa-day-date {
  font-size: 13px;
  font-weight: 600;
  color: #874D00;
}
.sa-day-meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.sa-day-meta b { color: #FA541C; font-size: 13px; }
.sa-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.sa-order-row:hover { background: #fafbfc; }
.sa-order-row:last-child { border-bottom: none; }
.sa-order-no {
  font-size: 12px; color: #333; font-weight: 600;
}
.sa-order-title {
  font-size: 11px; color: #666; margin-top: 2px;
}
.sa-order-time {
  font-size: 10px; color: #999; margin-top: 2px;
}
.sa-order-amt {
  font-size: 14px; font-weight: 700;
  color: #F5222D;
  margin-left: 12px;
}

.ot-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
}
.ot-row:last-child { border-bottom: none; }
.ot-date { color: #333; font-weight: 600; }
.ot-cell { font-size: 11px; color: #666; }
.ot-total { color: #1890FF; font-weight: 600; }

.ag-day-row {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
}
.ag-day-row:last-child { border-bottom: none; }
.ag-date {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  margin-bottom: 4px;
}
.ag-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
}

.bn-row {
  background: #fff;
  margin: 0 0 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.bn-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
}
.bn-thumb-placeholder {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
}
.bn-info { flex: 1; min-width: 0; }
.bn-title { font-size: 15px; font-weight: 600; color: #1F2329; margin-bottom: 4px; }
.bn-desc { font-size: 12px; color: #999; line-height: 1.5; }
.bn-status { font-size: 12px; margin-top: 4px; }
.bn-status .ok { color: #52C41A; }
.bn-status .empty { color: #bbb; }
.bn-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.btn.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
  min-width: 64px;
  border-radius: 6px;
}
.btn.btn-ghost {
  background: #f5f5f5;
  color: #666;
}
.btn.btn-ghost:hover { background: #ececec; }

.bn-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #fff;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.bn-tab {
  padding: 8px 4px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 6px;
  background: #fafbfc;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bn-tab .dot {
  width: 6px; height: 6px; border-radius: 3px;
  flex-shrink: 0;
}
.bn-tab.active {
  color: var(--pc);
  font-weight: 600;
  background: #fff;
  border-color: var(--pc);
}

.bn-detail {
  background: #fff;
  margin: 0;
  padding: 14px 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.bn-detail-head {
  margin-bottom: 10px;
}
.bn-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2329;
  margin-bottom: 3px;
}
.bn-detail-desc {
  font-size: 12px;
  color: #999;
}

.bn-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 5;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}
.bn-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f5f5;
}

.bn-preview-mask {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0.45) 55%,
    rgba(255,255,255,0.80) 80%,
    rgba(255,255,255,1.0) 100%);
  pointer-events: none;
}

.bn-detail-status {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}
.bn-detail-status .ok { color: #52C41A; font-size: 13px; }
.bn-detail-status .empty { color: #bbb; font-size: 13px; }

.bn-detail-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.bn-detail-actions .btn {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  box-sizing: border-box;
}
