:root {
  --theme-primary: #ff6a00;
  --theme-primary-hover: #ff7a1a;
  --theme-primary-active: #e65f00;
  --theme-primary-soft: #fff3e8;
  --theme-primary-soft-hover: #ffe6d1;
  --theme-primary-shadow: rgba(255, 106, 0, 0.14);
  color: #1f2937;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ===== 登录页：工作台入口布局 ===== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.055), transparent 30%),
    linear-gradient(315deg, rgba(31, 41, 55, 0.045), transparent 38%), #f5f7fb;
}

.auth-shell {
  width: min(940px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(420px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 40px;
  color: #f9fafb;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 0, 0.28), transparent 34%),
    linear-gradient(160deg, #211816 0%, #171717 100%);
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--theme-primary), #ffb45a);
}

.auth-brand::after {
  content: '';
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transform: rotate(12deg);
}

.auth-brand-top,
.auth-brand-features,
.auth-brand-footer {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-logo .auth-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.26);
}

.auth-brand-logo strong,
.auth-brand-logo div > span {
  display: block;
}

.auth-brand-logo strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.auth-brand-logo div > span {
  margin-top: 3px;
  color: rgba(249, 250, 251, 0.58);
  font-size: 12px;
  line-height: 1.2;
}

.auth-brand-body {
  max-width: 320px;
  margin-top: 58px;
}

.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(255, 106, 0, 0.36);
  border-radius: 999px;
  color: #ffbd85;
  font-size: 12px;
  font-weight: 700;
}

.auth-brand-body h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
}

.auth-brand-body p {
  margin: 0;
  color: rgba(249, 250, 251, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.auth-brand-features {
  display: grid;
  gap: 12px;
}

.auth-brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-brand-feature .auth-feature-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.16);
  color: #ffb45a;
  font-size: 16px;
}

.auth-brand-feature-text strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.auth-brand-feature-text span {
  color: rgba(249, 250, 251, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.auth-brand-footer {
  color: rgba(249, 250, 251, 0.42);
  font-size: 12px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
  background: #fff;
}

.auth-form-card {
  width: min(410px, 100%);
}

.auth-form-header {
  margin: 22px 0 22px;
}

.auth-form-header h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 25px;
  font-weight: 700;
}

.auth-form-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.auth-form-card .ant-tabs {
  margin-bottom: 2px;
}

.auth-form-card .ant-tabs-nav {
  margin-bottom: 0;
}

.auth-form-card .ant-tabs-tab {
  padding: 8px 0;
  font-size: 16px;
}

.auth-form-card .ant-form-item {
  margin-bottom: 17px;
}

.auth-form-card .ant-form-item-label {
  padding-bottom: 7px;
}

.auth-form-card .ant-input-affix-wrapper {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.auth-form-card .ant-input-affix-wrapper .ant-input {
  height: auto;
  min-height: 0;
  padding: 0;
  line-height: 22px;
}

.auth-form-card .ant-input-affix-wrapper .ant-input-prefix,
.auth-form-card .ant-input-affix-wrapper .ant-input-suffix {
  display: inline-flex;
  align-items: center;
}

.auth-form-card .ant-input {
  height: 46px;
  padding: 0 14px;
  line-height: 22px;
}

.auth-form-card .ant-btn-lg,
.auth-form-card .ant-space-compact .ant-btn {
  height: 46px;
}

.auth-form-card .ant-btn-lg {
  font-size: 15px;
  font-weight: 600;
}

.auth-form-footer {
  margin-top: 24px;
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-mobile-brand .auth-logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 18px;
}

.auth-mobile-brand strong {
  color: #111827;
  font-size: 18px;
}

@media (max-width: 860px) {
  .auth-shell {
    width: 100%;
    min-height: 0;
    display: block;
    border-radius: 14px;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-side {
    padding: 32px 24px;
  }

  .auth-mobile-brand {
    display: flex;
  }
}

.admin-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.admin-sider {
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid #edf0f5;
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.04);
  z-index: 2;
}

.admin-main-shell {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.admin-sider .ant-layout-sider-children {
  height: 100%;
}

.admin-sider-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-brand {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid #edf0f5;
}

.admin-brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.admin-brand strong {
  color: #111827;
  font-size: 18px;
}

.admin-brand span {
  color: #6b7280;
  font-size: 12px;
}

.admin-collapse-button {
  flex: 0 0 auto;
  border-color: #e5e7eb;
}

.admin-sidebar-profile {
  margin: 12px 14px 8px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.admin-sidebar-profile .ant-typography {
  margin: 0;
  font-size: 12px;
}

.admin-menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-inline-end: 0 !important;
  padding: 6px 8px 10px;
}

.admin-menu .ant-menu-item,
.admin-menu .ant-menu-submenu-title {
  border-radius: 6px;
  margin-inline: 0;
  width: 100%;
}

.admin-menu .ant-menu-item-selected {
  font-weight: 700;
}

.admin-menu .ant-menu-item-group-title {
  padding: 12px 10px 6px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.admin-sider-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid #edf0f5;
}

.admin-sider.ant-layout-sider-collapsed .admin-brand {
  padding: 12px 8px;
  flex-direction: column;
}

.admin-sider.ant-layout-sider-collapsed .admin-brand-copy {
  justify-items: center;
}

.admin-sider.ant-layout-sider-collapsed .admin-menu {
  padding-inline: 6px;
}

.admin-sider.ant-layout-sider-collapsed .admin-menu .ant-menu-item-group-title {
  padding: 8px 0;
  height: 8px;
  overflow: hidden;
}

.admin-sider.ant-layout-sider-collapsed .admin-sider-footer {
  padding-inline: 8px;
}

.admin-topbar {
  flex: 0 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f5;
}

.admin-user {
  margin-left: auto;
}

.admin-user-copy {
  display: grid;
  justify-items: end;
  line-height: 1.3;
}

.admin-content {
  height: calc(100vh - 64px);
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.page-stack {
  display: grid;
  gap: 16px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0 !important;
}

.page-description {
  margin: 6px 0 0;
  color: #6b7280;
}

.filter-form {
  row-gap: 12px;
}

.users-action-card .ant-card-body {
  padding: 18px 24px;
}

.users-action-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.users-action-section {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.users-action-title {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.4;
}

.users-action-form {
  row-gap: 10px;
}

.users-action-form .ant-form-item {
  margin-inline-end: 8px;
  margin-bottom: 0;
}

.users-input-md {
  width: 200px;
}

.users-input-lg {
  width: 220px;
}

.users-select-sm {
  width: 140px;
}

.cell-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kuaishou-voucher-code-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.kuaishou-voucher-meta {
  font-size: 12px;
  line-height: 1.4;
}

.muted {
  color: #6b7280;
}

.json-preview {
  max-height: 460px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.6;
}

.kuaishou-industry-split {
  display: grid;
  /* 本地券码优先占宽，减少表格横向滚动 */
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.55fr);
  gap: 16px;
  align-items: start;
}

.kuaishou-industry-voucher-card {
  min-width: 0;
}

.kuaishou-industry-voucher-card .ant-table {
  font-size: 13px;
}

.kuaishou-industry-voucher-card .ant-table-cell {
  vertical-align: top;
}

.kuaishou-industry-row-selected > td {
  background: var(--theme-primary-soft) !important;
}

.kuaishou-industry-row-selected:hover > td {
  background: var(--theme-primary-soft-hover) !important;
}

.kuaishou-industry-tool-card .ant-card-body {
  padding: 16px;
}

.kuaishou-industry-tool-section + .kuaishou-industry-tool-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.kuaishou-industry-tool-section-title {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.kuaishou-industry-selected-voucher {
  min-width: 0;
}

.kuaishou-industry-selected-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.kuaishou-industry-selected-code {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.kuaishou-industry-selected-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}

.kuaishou-industry-selected-meta > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kuaishou-industry-selected-meta span,
.kuaishou-industry-selected-meta small {
  color: #6b7280;
  font-size: 12px;
}

.kuaishou-industry-selected-meta strong,
.kuaishou-industry-selected-meta .ant-typography {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.kuaishou-industry-selected-empty {
  display: grid;
  gap: 4px;
  padding: 4px 0;
  color: #6b7280;
  font-size: 13px;
}

.kuaishou-industry-selected-empty strong {
  color: #374151;
}

.kuaishou-industry-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kuaishou-industry-tool-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.kuaishou-industry-tool-field > span {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.3;
}

.kuaishou-industry-tool-field-wide {
  grid-column: 1 / -1;
}

.kuaishou-industry-tool-field .ant-select {
  width: 100%;
}

.kuaishou-industry-manual-target {
  margin-top: 14px;
  border-top: 1px solid #edf0f5;
}

.kuaishou-industry-manual-target .ant-collapse-header {
  padding: 12px 0 8px;
  color: #6b7280;
  font-size: 12px;
}

.kuaishou-industry-manual-target .ant-collapse-content-box {
  padding: 4px 0 0;
}

.kuaishou-industry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.kuaishou-industry-actions .ant-btn {
  width: 100%;
  min-width: 0;
}

.kuaishou-industry-actions > :last-child {
  grid-column: 1 / -1;
}

.kuaishou-industry-action-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}

.kuaishou-industry-action-result .json-preview {
  max-height: 280px;
}

.task-action-hint {
  display: block;
  margin-top: 10px;
}

.task-action-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.task-action-group {
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
  align-content: start;
}

.task-action-group > .ant-typography {
  font-size: 13px;
  font-weight: 700;
}

.task-list-blocker-detail {
  max-width: 220px;
  display: block;
}

.task-list-blocker-tag,
.task-list-executor-tag {
  width: fit-content;
  max-width: 100%;
  margin-inline-end: 0 !important;
  justify-self: start;
  line-height: 18px;
  font-size: 12px;
}

.task-list-status-main {
  display: inline-flex;
  cursor: help;
}

.task-list-status-tooltip {
  display: grid;
  gap: 6px;
}

.task-list-status-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-list-status-tooltip-row > span:first-child {
  min-width: 2em;
  color: rgba(255, 255, 255, 0.75);
}

.task-list-row-error > td {
  background: #fff7f7 !important;
}

.task-list-row-error:hover > td {
  background: #ffefef !important;
}

.fulfillment-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fulfillment-step-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #ffffff;
  display: grid;
  gap: 8px;
  align-content: start;
}

.fulfillment-step-card .ant-typography {
  min-width: 0;
}

.manual-dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.manual-dispatch-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.kuaishou-cloud-stack {
  display: grid;
  gap: 12px;
}

.task-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-flow-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}

.task-screenshot-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f8fafc;
}

.task-screenshot-preview .ant-image,
.task-screenshot-preview img {
  max-width: 100%;
}

.empty-page {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.route-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.full-width {
  width: 100%;
}

.feedback-prompt p {
  margin-top: 0;
}

.modal-form {
  margin-top: 14px;
}

.payload-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  color: #4b5563;
  word-break: break-all;
}

.claim-page {
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.claim-header-card,
.claim-content-card {
  width: min(680px, 100%);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.claim-header-card {
  position: relative;
}

.claim-header-card .ant-card-body,
.claim-content-card .ant-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.claim-header-copy {
  min-width: 0;
  padding-right: 220px;
}

.claim-header-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.claim-header-copy p,
.claim-muted {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.claim-step-indicator {
  position: absolute;
  top: 24px;
  right: 24px;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.claim-step-dots {
  display: flex;
  gap: 8px;
}

.claim-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.claim-step-dot.active {
  background: var(--theme-primary);
  color: #ffffff;
}

.claim-step-progress-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.claim-content-card .ant-typography {
  margin: 0;
}

.claim-state-card .ant-card-body {
  min-height: 240px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.claim-large-icon {
  font-size: 44px;
}

.claim-icon-success {
  color: #16a34a;
}

.claim-icon-warning {
  color: #d97706;
}

.claim-icon-info {
  color: var(--theme-primary);
}

.claim-icon-error {
  color: #dc2626;
}

.claim-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.claim-qr-guide-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 280px) 42px;
  grid-template-areas:
    'left code right'
    '. hint .';
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 410px;
  min-width: 0;
}

.claim-scan-label {
  align-self: stretch;
  min-height: 150px;
  padding: 10px 6px;
  color: #e11d48;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
}

.claim-scan-label-left {
  grid-area: left;
}

.claim-scan-label-right {
  grid-area: right;
}

.claim-qr-code {
  grid-area: code;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dbeafe;
}

.claim-save-hint {
  grid-area: hint;
  margin: 0;
  justify-self: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.claim-role-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.claim-role-panel.pending {
  opacity: 0.82;
}

.claim-role-panel-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.claim-role-panel-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.claim-role-panel-item strong {
  min-width: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.claim-action-row {
  width: 100%;
}

.claim-action-tooltip-wrap {
  display: inline-flex;
}

.claim-meta-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.claim-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.claim-info-grid-compact {
  gap: 8px;
  margin-bottom: 10px;
}

.claim-info-grid-compact .claim-info-item {
  padding: 8px 10px;
  gap: 2px;
  border-radius: 6px;
}

.claim-info-grid-compact .claim-info-item span {
  font-size: 11px;
  line-height: 1.3;
}

.claim-info-grid-compact .claim-info-item strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.claim-uid-step .ant-card-body {
  gap: 10px;
}

.claim-uid-step-title.ant-typography {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
}

.claim-uid-step-desc {
  font-size: 13px;
  line-height: 1.45;
}

.claim-uid-guide {
  margin: 4px 0 0;
  padding: 6px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.claim-uid-guide-image {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 160px;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
}

.claim-uid-guide-caption {
  margin: 6px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.claim-uid-warning {
  margin: 2px 0 0;
  color: #ff4d4f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .claim-page {
    padding: 12px;
    gap: 10px;
  }

  .claim-header-card .ant-card-body,
  .claim-content-card .ant-card-body {
    gap: 12px;
  }

  .claim-header-copy {
    /* 为右上角步骤条预留空间 */
    padding-right: 112px;
  }

  .claim-header-copy h1 {
    font-size: 22px;
  }

  .claim-step-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    max-width: 100px;
    align-items: flex-end;
  }

  .claim-step-dot {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .claim-step-dots {
    gap: 5px;
  }

  .claim-step-progress-text {
    text-align: right;
    font-size: 12px;
  }

  .claim-uid-step-title.ant-typography {
    font-size: 18px !important;
  }

  .claim-uid-guide-image {
    max-height: 140px;
  }
}

.claim-info-item {
  min-width: 0;
  padding: 16px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-info-item span {
  color: #64748b;
  font-size: 13px;
}

.claim-info-item strong {
  color: #0f172a;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.claim-result-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.claim-feifei-main {
  display: grid;
  gap: 8px;
}

.claim-feifei-main p {
  margin: 0;
  color: var(--theme-primary);
  font-weight: 700;
}

.claim-feifei-label {
  color: #64748b;
  font-size: 13px;
}

.claim-product-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.claim-product-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.claim-product-items-header strong {
  color: var(--theme-primary);
  font-weight: 700;
}

.claim-product-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-product-item-row {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.claim-product-item-row span {
  min-width: 0;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.claim-product-item-row strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 15px;
}

.claim-product-items.compact {
  margin-top: 10px;
  gap: 8px;
}

.claim-product-items.compact .claim-product-items-list {
  gap: 6px;
}

.claim-product-items.compact .claim-product-item-row {
  min-height: 36px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.72);
}

.platform-tabs {
  min-width: 0;
}

.platform-tabs > .ant-tabs-nav {
  margin-bottom: 14px;
}

.platform-panel-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.worker-order-detail-stack {
  display: grid;
  gap: 16px;
}

.worker-order-detail-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.worker-order-detail-json-tabs > .ant-tabs-nav {
  margin-bottom: 12px;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card .ant-card-body,
.metric-card {
  min-width: 0;
}

.metric-card .ant-card-body {
  display: grid;
  gap: 5px;
}

.metric-card span,
.metric-card small {
  color: #6b7280;
}

.metric-card strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}

.platform-section-gap {
  margin-top: 14px;
}

.platform-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.platform-routing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-routing-priority-row,
.platform-route-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-route-rule {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}

.platform-route-rule-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px minmax(160px, 0.7fr) 110px;
  gap: 10px;
  align-items: center;
}

.field-switch {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-switch span {
  color: #4b5563;
  font-weight: 600;
}

.platform-inline-row,
.platform-shop-row,
.platform-rule-head,
.platform-delivery-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.platform-inline-row {
  grid-template-columns: auto minmax(120px, 0.8fr) minmax(180px, 1.2fr) auto;
}

.platform-shop-row {
  grid-template-columns:
    auto auto minmax(120px, 0.9fr) minmax(140px, 1fr)
    minmax(220px, 1.5fr) auto auto;
}

.platform-rule-head {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr);
}

.platform-delivery-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) 110px auto;
}

.platform-split-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.platform-side-card {
  position: sticky;
  top: 82px;
}

.platform-select-card {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.platform-select-card.active,
.platform-source-card.active {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px var(--theme-primary-shadow);
}

.platform-select-card span {
  display: grid;
  gap: 4px;
}

.platform-select-card small {
  color: #6b7280;
}

.total-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  font-weight: 700;
}

.cloud-records-filter {
  display: grid;
  grid-template-columns:
    minmax(180px, 0.28fr) minmax(220px, 0.36fr) minmax(360px, 1fr)
    auto;
  gap: 12px;
  align-items: center;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.table-toolbar span {
  color: #6b7280;
  font-size: 13px;
}

.status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.record-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #edf0f5;
  border-radius: 6px;
}

.record-preview .ant-image,
.record-preview img {
  max-width: 100%;
}

.record-preview img {
  height: auto;
  border: 1px solid #edf0f5;
  background: #ffffff;
}

@media (max-width: 900px) {
  .admin-sider {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
  }

  .admin-content {
    padding: 14px;
  }

  .admin-user-copy {
    display: none;
  }

  .page-header {
    display: grid;
  }

  .users-action-row {
    grid-template-columns: 1fr;
  }

  .kuaishou-industry-split {
    grid-template-columns: 1fr;
  }

  .manual-dispatch-grid,
  .fulfillment-overview-grid,
  .task-flow-grid {
    grid-template-columns: 1fr;
  }

  .users-action-form .ant-form-item {
    margin-bottom: 0;
  }

  .metric-grid.three,
  .metric-grid.four,
  .metric-grid.five,
  .platform-form-grid,
  .platform-routing-grid,
  .platform-route-rule-grid,
  .platform-split-layout {
    grid-template-columns: 1fr;
  }

  .platform-routing-priority-row,
  .platform-route-rule-head {
    display: grid;
  }

  .platform-side-card {
    position: static;
  }

  .platform-inline-row,
  .platform-shop-row,
  .platform-rule-head,
  .platform-delivery-row {
    grid-template-columns: 1fr;
  }

  .cloud-records-filter {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    display: grid;
  }

  .worker-hall-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .worker-hall-search {
    width: 100%;
  }

  .worker-hall-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worker-hall-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .users-action-card .ant-card-body {
    padding: 14px;
  }

  .users-action-form,
  .users-action-form .ant-form-item,
  .users-action-form .ant-input-affix-wrapper,
  .users-action-form .ant-input,
  .users-action-form .ant-select,
  .users-action-form .ant-space,
  .users-action-form .ant-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .claim-page {
    padding: 14px;
  }

  .claim-header-card .ant-card-body,
  .claim-content-card .ant-card-body {
    gap: 14px;
  }

  .claim-header-copy {
    padding-right: 150px;
  }

  .claim-header-copy h1 {
    font-size: 24px;
    line-height: 1.22;
  }

  .claim-header-copy p {
    font-size: 14px;
    line-height: 1.4;
  }

  .claim-step-indicator {
    top: 16px;
    right: 16px;
    max-width: 140px;
  }

  .claim-step-dots {
    gap: 5px;
  }

  .claim-step-dot {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .claim-step-progress-text {
    font-size: 12px;
  }

  .claim-info-grid {
    grid-template-columns: 1fr;
  }

  .claim-qr-block {
    padding: 12px;
  }

  .claim-qr-guide-panel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    max-width: 100%;
  }

  .claim-scan-label {
    min-height: 128px;
    padding: 8px 4px;
    font-size: 14px;
  }

  .claim-qr-code {
    max-width: 232px;
    padding: 8px;
  }

  .claim-save-hint {
    font-size: 13px;
  }

  .claim-role-panel-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .claim-role-panel-item span {
    font-size: 12px;
  }

  .claim-role-panel-item strong {
    font-size: 16px;
  }

  .claim-action-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .claim-action-row .ant-space-item,
  .claim-action-row .ant-btn,
  .claim-action-tooltip-wrap {
    width: 100%;
  }

  .claim-meta-footer {
    justify-content: flex-start;
  }

  .claim-result-header {
    display: grid;
  }
}

@media (max-width: 520px) {
  .kuaishou-industry-selected-meta,
  .kuaishou-industry-tool-grid,
  .kuaishou-industry-actions {
    grid-template-columns: 1fr;
  }

  .kuaishou-industry-tool-field-wide,
  .kuaishou-industry-actions > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .claim-header-copy {
    padding-right: 124px;
  }

  .claim-header-copy h1 {
    font-size: 22px;
  }

  .claim-header-copy p {
    padding-right: 0;
  }

  .claim-step-indicator {
    max-width: 116px;
  }
}

.dev-mock-pre {
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  max-height: 360px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
}

.worker-auth-page,
.collect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #f5f7fb;
}

.collect-card {
  width: min(520px, 100%);
}

.worker-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.worker-page-head h3 {
  margin: 0;
}

.worker-order-summary-card {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.worker-order-summary-card.active {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 1px var(--theme-primary) inset;
}

.worker-order-summary-card .ant-statistic-title {
  font-size: 12px;
}

.worker-order-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #f0f0f0;
  color: #595959;
  font-size: 12px;
  line-height: 18px;
}

.worker-order-tabs .ant-tabs-nav {
  margin-bottom: 12px;
}

.worker-profile-wallet-card .ant-card-body {
  padding: 0;
}

.worker-profile-wallet-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.worker-profile-wallet-item {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.worker-profile-wallet-item + .worker-profile-wallet-item {
  border-left: 1px solid #f0f0f0;
}

.worker-profile-wallet-label {
  color: #64748b;
  font-size: 12px;
}

.worker-profile-wallet-value {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
}

.worker-profile-wallet-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .worker-profile-wallet-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .worker-profile-wallet-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #f0f0f0;
  }
  .worker-profile-wallet-item:nth-child(4) {
    border-top: 1px solid #f0f0f0;
  }
}

.worker-hall-head-copy {
  display: grid;
  gap: 4px;
}

.worker-hall-head-copy .ant-typography {
  margin: 0;
}

.worker-hall-toolbar {
  justify-content: flex-end;
}

.worker-hall-search {
  width: min(460px, 100%);
}

.worker-hall-board-card .ant-card-body {
  display: grid;
  gap: 16px;
}

.worker-hall-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.worker-hall-summary-item {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.worker-hall-summary-item + .worker-hall-summary-item {
  border-left: 1px solid #e5e7eb;
}

.worker-hall-summary-label {
  color: #64748b;
  font-size: 12px;
}

.worker-hall-summary-value {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}

.worker-hall-summary-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.worker-hall-warning {
  margin-bottom: 0;
}

.worker-hall-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.worker-hall-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.worker-hall-card {
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 12px;
}

.worker-hall-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.worker-hall-card-title .ant-typography {
  margin: 0;
}

.worker-hall-card-link {
  display: block;
  max-width: 100%;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-hall-card-amount-row {
  display: grid;
  gap: 6px;
}

.worker-hall-card-amount {
  color: #f97316;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.worker-hall-card-deposit,
.worker-hall-card-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.worker-hall-card-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.worker-hall-card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.worker-hall-card-actions-row .ant-btn {
  padding-inline: 8px;
}

.worker-hall-card-grab-row {
  display: flex;
  gap: 8px;
}

.worker-hall-card-grab-row .ant-btn {
  flex: 1;
  min-width: 0;
}

.worker-hall-sharing-button {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28) !important;
}

.worker-hall-sharing-button:not(:disabled):hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: #6d28d9 !important;
}

.worker-hall-detail-stack {
  display: grid;
  gap: 16px;
}

.worker-amount-positive {
  color: #047857;
}

.worker-amount-negative {
  color: #dc2626;
}

.worker-profile-help-text {
  margin: 0;
  color: #64748b;
}

.collect-order-input {
  flex: 1;
  margin-bottom: 0;
}

.image-upload-trigger {
  width: 100%;
  height: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
}

.image-upload-trigger span {
  font-size: 12px;
}

.image-upload-droppable {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.image-upload-hint {
  font-size: 12px;
  line-height: 1.5;
}

.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.image-preview-item {
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.worker-rule-form {
  width: 100%;
}

.worker-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 14px;
}

@media (max-width: 720px) {
  .worker-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-hall-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-hall-search {
    width: 100%;
  }

  .worker-hall-card-grid {
    grid-template-columns: 1fr;
  }

  .worker-hall-card {
    padding: 16px;
  }

  .worker-hall-card-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-hall-card-grab-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .worker-hall-summary-strip {
    grid-template-columns: 1fr;
  }

  .worker-hall-summary-item + .worker-hall-summary-item {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }
}
