    /* ===== 商品管理 ===== */
    #page-product.page.active { height: 100%; }
    .pm-page {
      height: 100%;
      padding: 16px;
      background: #f4f6fa;
      overflow: hidden;
      color: #303844;
    }
    .pm-shell {
      height: 100%;
      min-width: 980px;
      display: grid;
      grid-template-columns: 212px minmax(0, 1fr);
      gap: 12px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 1px 4px rgba(24, 38, 66, .04);
      overflow: hidden;
      border: 1px solid #eef1f5;
    }
    .pm-category-panel {
      border-right: 1px solid #edf0f3;
      display: flex;
      flex-direction: column;
      min-width: 0;
      background: #fff;
    }
    .pm-category-actions {
      height: 80px;
      padding: 18px 12px;
      display: flex;
      gap: 8px;
      align-items: center;
      border-bottom: 1px solid #edf0f3;
    }
    .pm-btn {
      height: 34px;
      border-radius: 17px;
      padding: 0 16px;
      font-size: 13px;
      font-weight: 700;
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
    }
    .pm-btn.primary { background: #62c38f; color: #fff; box-shadow: 0 3px 10px rgba(76,175,130,.16); }
    .pm-btn.outline { background: #fff; color: #8b95a2; border-color: #dfe4ea; }
    .pm-category-list {
      padding: 20px 0;
      overflow: visible;
      flex: 1;
      position: relative;
    }
    .pm-category-title {
      height: 32px;
      display: flex;
      align-items: center;
      padding: 0 24px;
      color: #52b983;
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 12px;
    }
    .pm-cat-item {
      height: 44px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 24px;
      color: #4f5966;
      font-size: 14px;
      cursor: pointer;
    }
    .pm-cat-item:hover { background: #f7faf8; color: #2f9b68; }
    .pm-cat-item.active { background: #f2fbf6; color: #2f9b68; font-weight: 700; }
    .pm-cat-arrow {
      width: 12px;
      color: #56606d;
      font-size: 12px;
      transform: translateY(-1px);
    }
    .pm-cat-group { position: relative; }
    .pm-cat-parent {
      height: 44px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 24px;
      color: #4f5966;
      font-size: 14px;
      cursor: pointer;
    }
    .pm-cat-parent:hover { background: #f7faf8; color: #2f9b68; }
    .pm-cat-parent .pm-cat-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform .15s ease;
    }
    .pm-cat-group.open .pm-cat-parent .pm-cat-arrow { transform: rotate(90deg); }
    .pm-sub-list { display: none; padding: 2px 0 10px; }
    .pm-cat-group.open .pm-sub-list { display: block; }
    .pm-sub-item {
      height: 40px;
      margin: 4px 0;
      padding: 0 30px 0 58px;
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
      color: #1f2937;
      font-size: 14px;
      cursor: pointer;
    }
    .pm-sub-item:hover { background: #f7faf8; }
    .pm-sub-item.active {
      color: #40a873;
      font-weight: 800;
      background: #f2fbf6;
    }
    .pm-sub-drag {
      width: 14px;
      color: #a5adb8;
      font-size: 18px;
      line-height: 1;
      letter-spacing: -4px;
    }
    .pm-sub-spacer { width: 14px; flex-shrink: 0; }
    .pm-sub-name {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pm-sub-more {
      position: absolute;
      right: 0;
      top: 6px;
      width: 24px;
      height: 28px;
      border: none;
      border-radius: 14px 0 0 14px;
      background: #58bd8a;
      color: #fff;
      font-size: 18px;
      line-height: 28px;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0;
      box-shadow: 0 6px 16px rgba(64,168,115,.18);
    }
    .pm-sub-item.active .pm-sub-more,
    .pm-sub-item:hover .pm-sub-more,
    .pm-sub-more.show { display: flex; }
    .pm-cat-menu {
      position: absolute;
      right: -22px;
      top: 39px;
      width: 96px;
      padding: 10px 0;
      border-radius: 4px;
      background: #fff;
      box-shadow: 0 12px 28px rgba(15,23,42,.16);
      border: 1px solid #eef1f5;
      z-index: 20;
      display: none;
    }
    .pm-cat-menu.show { display: block; }
    .pm-cat-menu::before {
      content: '';
      position: absolute;
      right: 34px;
      top: -8px;
      width: 16px;
      height: 16px;
      background: #fff;
      border-left: 1px solid #eef1f5;
      border-top: 1px solid #eef1f5;
      transform: rotate(45deg);
    }
    .pm-cat-menu button {
      width: 100%;
      height: 38px;
      border: none;
      background: transparent;
      color: #4b5563;
      font-size: 14px;
      text-align: center;
    }
    .pm-cat-menu button:hover { color: #40a873; background: #f7faf8; }
    .pm-main {
      min-width: 0;
      display: flex;
      flex-direction: column;
      background: #fff;
      overflow: hidden;
      position: relative;
    }
    .pm-toolbar {
      height: 80px;
      padding: 18px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid #edf0f3;
      flex-shrink: 0;
    }
    .pm-search {
      width: 320px;
      height: 38px;
      border: 1px solid #dfe4ea;
      border-radius: 21px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 15px;
      color: #9aa3af;
      background: #fff;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, .02);
    }
    .pm-search input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      color: #374151;
      font-size: 14px;
      background: transparent;
    }
    .pm-search input::placeholder { color: #9aa3af; }
    .pm-toolbar-spacer { flex: 1; }
    .pm-table-wrap {
      flex: 1;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      position: relative;
      background: #fff;
    }
    .pm-table {
      width: 100%;
      min-width: 0;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 13px;
    }
    .pm-table col.sel { width: 3.5%; }
    .pm-table col.goods { width: 27%; }
    .pm-table col.brand { width: 9%; }
    .pm-table col.cost { width: 9%; }
    .pm-table col.price { width: 7.5%; }
    .pm-table col.member { width: 7.5%; }
    .pm-table col.stock { width: 9%; }
    .pm-table col.sales { width: 6%; }
    .pm-table col.ops { width: 21.5%; }
    .pm-table thead th {
      height: 56px;
      background: #f3f6fa;
      color: #333b47;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      border-bottom: 1px solid #edf0f3;
      white-space: nowrap;
    }
    .pm-table thead th.goods-head { text-align: left; }
    .pm-table tbody tr { height: 104px; border-bottom: 1px solid #eef1f4; }
    .pm-table tbody tr:nth-child(even) { background: #f5f7fa; }
    .pm-table tbody tr:hover { background: #f0faf5; }
    .pm-table td {
      padding: 12px 8px;
      color: #4b5563;
      vertical-align: middle;
      text-align: center;
    }
    .pm-table td.pm-cell-goods { text-align: left; }
    .pm-table td.pm-cell-ops { padding-left: 8px; padding-right: 10px; }
    .pm-checkbox {
      width: 16px;
      height: 16px;
      border: 1px solid #d6dce4;
      border-radius: 2px;
      display: inline-block;
      background: #fff;
      vertical-align: middle;
    }
    .pm-goods {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .pm-thumb {
      width: 54px;
      height: 54px;
      border-radius: 2px;
      border: 1px solid #e5e9ee;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      text-align: center;
      line-height: 1.15;
    }
    .pm-thumb.ai { background: linear-gradient(135deg, #0f7cff, #2ed0a8); }
    .pm-thumb.oil { background: linear-gradient(135deg, #fff7d8, #f6c623); color: #7b5a00; }
    .pm-thumb.feed { background: linear-gradient(135deg, #f8e3a2, #3bb58d); color: #244234; }
    .pm-thumb.cat { background: linear-gradient(135deg, #1e8eea, #f6f0dc); color: #0d4c7d; }
    .pm-thumb.can { background: linear-gradient(135deg, #7427b8, #f4c23a); }
    .pm-thumb.duck { background: linear-gradient(135deg, #e7f5de, #8eb36b); color: #2b4b25; }
    .pm-goods-info { min-width: 0; }
    .pm-goods-title {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #5aa7ff;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    .pm-goods-tag {
      height: 20px;
      padding: 0 6px;
      border-radius: 4px;
      background: #ffe9e9;
      color: #ff6b6b;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 700;
    }
    .pm-goods-meta {
      margin-top: 6px;
      color: #9aa3af;
      font-size: 12px;
      line-height: 1.5;
    }
    .pm-stock-head {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }
    .pm-sort {
      display: inline-flex;
      flex-direction: column;
      gap: 2px;
      color: #b9c0ca;
      font-size: 10px;
      line-height: 8px;
    }
    .pm-op-list {
      display: flex;
      justify-content: center;
      gap: 6px;
      white-space: nowrap;
    }
    .pm-op {
      height: 27px;
      min-width: 44px;
      padding: 0 8px;
      border-radius: 15px;
      border: 1px solid #55bd83;
      color: #40a873;
      background: #fff;
      font-size: 12px;
      font-weight: 700;
    }
    .pm-op:hover { background: #f0faf5; }
    .pm-op.danger {
      border-color: #dfe4ea;
      color: #4f5966;
    }
    .pm-op.danger:hover { background: #f7f8fa; }
    .pm-footer {
      height: 70px;
      border-top: 1px solid #edf0f3;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0 14px;
      flex-shrink: 0;
      background: #fff;
    }
    .pm-footer-left {
      display: flex;
      align-items: center;
      gap: 12px;
      color: #4f5966;
      font-size: 14px;
    }
    .pm-selected { color: #9aa3af; }
    .pm-selected strong { color: #4f5966; font-weight: 700; }
    .pm-batch {
      height: 36px;
      padding: 0 18px;
      border-radius: 18px;
      border: 1px solid #dfe4ea;
      color: #4f5966;
      background: #fff;
      font-size: 14px;
      font-weight: 700;
    }
    .pm-footer-spacer { flex: 1; }
    .pm-total { color: #4f5966; font-size: 14px; }
    .pm-total strong { font-size: 16px; font-weight: 800; }
    .pm-page-btn,
    .pm-page-num,
    .pm-page-size,
    .pm-go-input,
    .pm-go-btn {
      height: 36px;
      border: 1px solid #dfe4ea;
      background: #fff;
      color: #4f5966;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }
    .pm-page-btn,
    .pm-page-num { width: 36px; border-radius: 50%; }
    .pm-page-num.active {
      background: #62c38f;
      color: #fff;
      border-color: #62c38f;
      font-weight: 800;
    }
    .pm-page-size {
      width: 96px;
      border-radius: 18px;
      gap: 5px;
    }
    .pm-go-text { color: #4f5966; font-size: 14px; }
    .pm-go-input {
      width: 70px;
      border-radius: 18px;
      font-weight: 700;
    }
    .pm-go-btn {
      width: 38px;
      border-radius: 19px;
      color: #40a873;
      font-weight: 800;
    }
    .pm-cat-modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, .28);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .pm-cat-modal {
      width: 680px;
      background: #fff;
      border-radius: 2px;
      box-shadow: 0 18px 50px rgba(15,23,42,.2);
      overflow: hidden;
    }
    .pm-cat-modal-head {
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #eef1f5;
      color: #111827;
      font-size: 22px;
      font-weight: 800;
    }
    .pm-cat-modal-body {
      padding: 34px 56px 30px;
    }
    .pm-cat-modal-parent {
      margin-bottom: 26px;
      color: #1f2937;
      font-size: 18px;
      line-height: 24px;
    }
    .pm-cat-field {
      display: grid;
      grid-template-columns: 116px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
    }
    .pm-cat-label {
      color: #1f2937;
      font-size: 18px;
      white-space: nowrap;
    }
    .pm-cat-label .required {
      color: #ff4d4f;
      margin-right: 8px;
    }
    .pm-cat-input-wrap {
      position: relative;
      height: 46px;
      border: 1px solid #66bd8e;
      border-radius: 23px;
      display: flex;
      align-items: center;
      background: #fff;
    }
    .pm-cat-input-wrap input {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      background: transparent;
      padding: 0 44px 0 18px;
      color: #1f2937;
      font-size: 18px;
    }
    .pm-cat-input-wrap input::placeholder { color: #9aa3af; }
    .pm-cat-input-clear {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      border: none;
      border-radius: 50%;
      background: #b8bec5;
      color: #fff;
      font-size: 14px;
      line-height: 18px;
      padding: 0;
    }
    .pm-cat-modal-actions {
      padding: 0 80px 36px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 88px;
    }
    .pm-cat-modal-btn {
      height: 48px;
      border-radius: 24px;
      border: 1px solid #dfe4ea;
      background: #fff;
      color: #1f2937;
      font-size: 20px;
      font-weight: 700;
      box-shadow: 0 4px 10px rgba(15,23,42,.04);
    }
    .pm-cat-modal-btn.primary {
      border-color: #5abc85;
      background: #5abc85;
      color: #fff;
      box-shadow: 0 6px 14px rgba(64,168,115,.18);
    }

    /* ===== 商品列表：勾选与行状态 ===== */
    .pm-checkbox { cursor: pointer; }
    .pm-checkbox.checked {
      position: relative;
      border-color: #4cab78;
      background: #4cab78;
    }
    .pm-checkbox.checked::after {
      content: '';
      position: absolute;
      left: 4px;
      top: 1px;
      width: 5px;
      height: 9px;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(45deg);
    }
    .pm-table tbody tr.is-selected { background: #eefaf3; }
    .pm-table tbody tr.is-selected:hover { background: #e7f7ef; }
    .pm-table tbody tr.pm-row-grouped td:first-child { box-shadow: inset 3px 0 0 #cbe9db; }
    .pm-goods-badge {
      height: 20px;
      padding: 0 7px;
      border-radius: 4px;
      background: #e8f6ee;
      color: #2f9b68;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 700;
    }
