:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #15202b;
  --muted: #5b6b7a;
  --line: #d9e2ec;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

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

.admin-topbar {
  position: relative;
  justify-content: flex-start;
  align-items: flex-start;
}

.admin-topbar > div:not(.admin-menu) {
  min-width: 0;
  flex: 1;
}

.admin-menu {
  position: relative;
  z-index: 100;
  flex: 0 0 auto;
}

.admin-menu__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.admin-menu__toggle:hover,
.admin-menu__toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.admin-menu__icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.admin-menu__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.admin-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(248px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(21, 32, 43, 0.18);
}

.admin-menu__nav {
  display: grid;
  gap: 2px;
}

.admin-menu__link,
.admin-menu__logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.admin-menu__link:hover,
.admin-menu__logout:hover,
.admin-menu__link:focus-visible,
.admin-menu__logout:focus-visible {
  background: #eef3f6;
  outline: none;
}

.admin-menu__link.active {
  background: #e8f7f5;
  color: var(--accent-strong);
}

.admin-menu__divider {
  height: 1px;
  margin: 6px;
  background: var(--line);
}

.admin-menu__logout {
  color: var(--danger);
}

.title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.stack {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: #e7eef3;
  color: var(--text);
}

.button.danger {
  background: var(--danger);
}

.button:disabled {
  opacity: 0.65;
}

.muted {
  color: var(--muted);
}

.message {
  min-height: 20px;
  font-size: 14px;
}

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

.message.ok {
  color: var(--accent-strong);
}

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

@media (min-width: 760px) {
  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.list-item__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-item__title {
  font-size: 16px;
  font-weight: 700;
}

.list-item__meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.icon-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn-copy:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
}

.icon-btn-copy:active {
  transform: scale(0.95);
}

.list-item__balance {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.5px;
}

.list-item__balance.muted {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status.active {
  background: #e8f7f5;
  color: var(--accent-strong);
}

.status.disabled {
  background: #fce8e6;
  color: var(--danger);
}

.button.small {
  padding: 8px 10px;
  font-size: 14px;
}

.section-title {
  margin: 0;
  font-size: 16px;
}

.divider {
  height: 1px;
  background: var(--line);
}

.hidden {
  display: none !important;
}

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

.choice {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.choice.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.choice__meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

/* 话费充值页面 - 2 列充值卡片列表 */
.amount-grid-h5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.amount-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 14px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  gap: 2px;
}

.amount-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.amount-card.selected {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 1.5px #059669;
}

.amount-card.selected::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: #059669;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-top-left-radius: 6px;
  border-bottom-right-radius: 10px;
}

/* 第一行：产品名称 */
.amount-card__name {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 第二行：面值 + 折扣标签 */
.amount-card__face {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
}

.amount-card__currency {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.amount-card__amount {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -1px;
}

.amount-card.selected .amount-card__currency,
.amount-card.selected .amount-card__amount {
  color: #059669;
}

.amount-card__discount {
  display: inline-block;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 4px;
  white-space: nowrap;
}

/* 第三行：售价 */
.amount-card__sell {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  margin-top: 2px;
}

.amount-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-bottom-right-radius: 6px;
  line-height: 1;
}


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

.mobile-input-wrapper input {
  padding-right: 90px;
}

.mobile-isp-tag {
  position: absolute;
  right: 10px;
  padding: 3px 8px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}

.mobile-isp-tag.active {
  display: inline-flex;
}

.mobile-isp-tag.cmcc { background: #dbeafe; color: #1d4ed8; }
.mobile-isp-tag.unicom { background: #ffedd5; color: #c2410c; }
.mobile-isp-tag.telecom { background: #dcfce7; color: #15803d; }

.amount {
  font-weight: 700;
  color: var(--accent-strong);
}

.code-box {
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: #263442;
  font: 12px/1.5 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

.preview-banner {
  padding: 8px 16px;
  background: #fff4cc;
  border-bottom: 1px solid #ead58b;
  color: #694d00;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.qrcode-panel {
  display: grid;
  justify-items: start;
}

.qrcode-image {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  image-rendering: pixelated;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f7f5;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 420px) {
  .page {
    padding: 12px;
  }

  .admin-topbar {
    gap: 10px;
  }

  .admin-topbar .title {
    font-size: 18px;
  }

  .admin-menu__panel {
    width: min(248px, calc(100vw - 24px));
  }
}

.top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tab 分页选项卡 */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.tab-item:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.04);
}

.tab-item.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

.tab-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
}

.tab-item.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 产品网格卡片布局 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  word-break: break-all;
}

.product-card__id {
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
  margin-top: 2px;
}

/* 突出价格展示区 */
.product-card__price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-strong);
}

.product-card__amount-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 2px;
}

.product-card__cost {
  font-size: 13px;
  color: var(--muted);
}

.product-card__cost-num {
  font-weight: 600;
  color: var(--text);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}

.product-card__cate {
  font-size: 12px;
  color: var(--muted);
}

/* 控制台工作台响应式 CSS */
.wb-balance-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.wb-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}

.admin-orders-mobile-list {
  display: none;
}

.admin-order-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.admin-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.admin-order-card__no {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.admin-order-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.admin-order-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-order-card__account {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.admin-order-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
}

/* 移动端 (<= 640px) 适配 */
@media (max-width: 640px) {
  .admin-orders-desktop-table {
    display: none !important;
  }
  
  .admin-orders-mobile-list {
    display: flex !important;
    flex-direction: column;
  }

  .wb-balance-grid {
    gap: 8px !important;
  }

  .wb-balance-card {
    padding: 12px 8px !important;
  }

  .wb-balance-title {
    font-size: 11px !important;
  }

  .wb-balance-val {
    font-size: 18px !important;
    margin-top: 2px !important;
  }

  .wb-balance-sub {
    font-size: 10px !important;
  }

  .wb-stats-grid {
    gap: 4px !important;
  }

  .wb-stat-card {
    padding: 8px 4px !important;
    text-align: center;
  }

  .wb-stat-title {
    font-size: 10px !important;
  }

  .wb-stat-val {
    font-size: 16px !important;
    margin-top: 2px !important;
  }
}

/* ============================================================
   管理端工作台订单卡片 - 4 行新布局 (aoc-*)
   ============================================================ */

/* 通用行容器 */
.aoc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* 第一行：充值类型 + 账号 + 状态 */
.aoc-row--top {
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.aoc-row--top .aoc-row__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.aoc-row--top .aoc-row__right {
  flex-shrink: 0;
}

.aoc-biz-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.aoc-account {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 第二行：分销商名 + 下单时间 */
.aoc-row--meta {
  margin-bottom: 5px;
}

.aoc-distributor {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.aoc-time {
  font-size: 11px;
  color: #94a3b8;
}

/* 第三行：本地订单号 + 面值 */
.aoc-row--order {
  background: #f8fafc;
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
}

.aoc-order-no {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.aoc-amount {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* 第四行：成本扣款 + 刷新按钮 */
.aoc-row--footer {
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.aoc-cost {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.aoc-cost__label {
  font-size: 11px;
  color: #64748b;
}

.aoc-cost__value {
  font-size: 14px;
  font-weight: 900;
  color: #059669;
}

.aoc-btn-refresh {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

/* 上游备注说明行（如失败原因） */
.aoc-remark {
  margin-top: 7px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
  word-break: break-all;
}

/* 订单二次确认弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: var(--panel);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-details {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.confirm-label {
  color: var(--muted);
  font-size: 13px;
}

.confirm-val {
  font-weight: 600;
  color: var(--text);
}

.confirm-val.highlight {
  color: #059669;
  font-size: 20px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.button--reset {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.button--reset:hover {
  background: #e2e8f0;
}

/* 订单高级查询筛选卡片 */
.filter-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.filter-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-field select,
.filter-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field select:focus,
.filter-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* 折叠筛选面板样式 */
.filter-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

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

.filter-card__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.filter-card__toggle:hover {
  background: rgba(15, 118, 110, 0.08);
}

.filter-card__body {
  display: grid;
  gap: 12px;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-top 0.2s ease;
  overflow: hidden;
}

.filter-card.is-collapsed .filter-card__body {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

/* AOC (Admin/H5 Order Card) 统一全级高颜值订单卡片组件 */
.admin-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.aoc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.aoc-row--top {
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.aoc-row__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.aoc-row__right {
  flex-shrink: 0;
}

.aoc-biz-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
}

.aoc-account {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aoc-row--meta {
  font-size: 13px;
}

.aoc-distributor {
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aoc-time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.aoc-row--order {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

.aoc-order-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.2px;
  word-break: break-all;
}

.aoc-amount {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.aoc-row--footer {
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.aoc-cost {
  font-size: 13px;
  color: #475569;
}

.aoc-cost__label {
  font-size: 13px;
  color: #475569;
}

.aoc-cost__value {
  font-size: 16px;
  font-weight: 800;
  color: #0f766e;
}

.aoc-remark {
  background: #fef9c3;
  border: 1px solid #fef08a;
  border-left: 4px solid #eab308;
  border-radius: 6px;
  padding: 8px 12px;
  color: #854d0e;
  font-size: 12px;
  margin-top: 2px;
}

/* 纯复制图标按钮组件 (参考 distributors.html) */
.icon-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 6px;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.icon-btn-copy:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.icon-btn-copy:active {
  transform: scale(0.92);
}

.icon-btn-copy.copied {
  color: #16a34a !important;
}

/* 订单详情全级公共组件样式 */
.order-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
}

.order-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.order-summary-val {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.order-summary-val.highlight {
  color: #0f766e;
  font-weight: 800;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #f1f5f9;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: #64748b;
  white-space: nowrap;
}

.info-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.code-box-compact {
  max-height: 120px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 6px;
  background: #0f172a;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin: 4px 0 12px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.details-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.details-group summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  user-select: none;
  outline: none;
}

.details-group summary:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .admin-order-card {
    padding: 12px;
  }
}

/* 登录页全级高级通用样式组件 */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 0%, #f0fdf4 0%, #f8fafc 60%, #e2e8f0 100%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.login-brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.login-brand__title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
}

.login-brand__subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.input-group-has-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-prefix {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

.input-group-has-icon input {
  width: 100%;
  padding-left: 40px !important;
  padding-right: 40px !important;
  height: 46px;
  font-size: 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-group-has-icon input:focus {
  background: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.input-icon-suffix {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  user-select: none;
  transition: color 0.15s ease;
}

.input-icon-suffix:hover {
  color: #0f172a;
}

.login-btn-primary {
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn-primary:hover {
  background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

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





