  /* ════ 主体区：左侧侧栏 + 右侧网格 ════ */
  .wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 40px) 64px; }
  .layout { display: flex; gap: 22px; align-items: flex-start; }

  /* ── 左侧分类侧栏 ── */
  .sidenav {
    width: 220px; flex-shrink: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px 12px; position: sticky; top: 86px;
    box-shadow: 0 4px 16px -8px rgba(11,11,15,.06);
  }
  .sidenav .stitle {
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink3);
    padding: 4px 12px 12px; text-transform: uppercase;
  }
  .sidenav button {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    border: none; background: transparent; color: var(--ink2); cursor: pointer;
    font-size: 13.5px; font-weight: 500; padding: 11px 12px; border-radius: 10px;
    transition: all .18s; text-align: left; margin-bottom: 2px; letter-spacing: .1px;
  }
  .sidenav button .cnt {
    font-size: 11px; color: var(--ink3); background: #f2f3f5;
    padding: 2px 8px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums;
    min-width: 24px; text-align: center;
  }
  .sidenav button:hover { background: #f7f8f9; color: var(--ink); }
  .sidenav button.on { background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(11,11,15,.25); }
  .sidenav button.on .cnt { background: rgba(255,255,255,.18); color: #fff; }

  /* ── 右侧内容区 ── */
  .main { flex: 1; min-width: 0; }
  .main .mtop {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding: 0 2px;
  }
  .main .mtop .total { font-size: 13px; color: var(--ink3); font-weight: 500; letter-spacing: .1px; }
  .main .mtop .total b { color: var(--ink); font-weight: 700; margin: 0 2px; }

  /* ── 卡片网格：自适应列数 ── */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
  .card {
    background: #fff; border-radius: 16px; padding: 16px 18px 14px;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  }
  .card::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: var(--ink); opacity: 0; transition: opacity .3s;
  }
  .card:hover {
    transform: translateY(-3px); border-color: rgba(11,11,15,.15);
    box-shadow: 0 24px 48px -16px rgba(11,11,15,.12), 0 4px 12px -4px rgba(11,11,15,.04);
  }
  .card:hover::after { opacity: 1; }
  .card .head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
  .card .head .mico {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: .2px;
    box-shadow: inset 0 -8px 14px rgba(0,0,0,.12), 0 4px 10px -4px rgba(11,11,15,.2);
  }
  .card .head .mname { font-size: 16px; font-weight: 700; letter-spacing: -.3px; min-width: 0; word-break: break-word; line-height: 1.3; color: var(--ink); }
  .card .head .msub { font-size: 11.5px; color: var(--ink3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .1px; }

  /* 价格行 */
  .price-zone {
    background: #fafbfc;
    border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 10px;
  }
  .prow { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 12px; }
  .prow:first-child { padding-top: 0; }
  .prow:last-child { padding-bottom: 0; }
  .prow + .prow { border-top: 1px dashed rgba(11,11,15,.07); margin-top: 1px; }
  .prow .plabel { color: var(--ink3); flex-shrink: 0; font-size: 11.5px; letter-spacing: .2px; min-width: 52px; }
  .prow .pval { font-weight: 700; font-size: 16px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; color: var(--ink); }
  .prow .punit { color: var(--ink3); font-size: 11px; letter-spacing: .1px; }
  .c-green, .c-orange { color: var(--ink); }

  /* 描述 */
  .card .desc {
    font-size: 12px; color: var(--ink3); line-height: 1.65; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    letter-spacing: .1px;
  }

  /* 底部标签 + 展开按钮 */
  .card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
  .card .tag {
    font-size: 10.5px; font-weight: 600; color: var(--ink2);
    background: #f2f3f5; border: 1px solid rgba(11,11,15,.05);
    padding: 4px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: .4px;
  }
  .card .toggle {
    border: none; background: none; color: var(--ink); font-size: 12px; font-weight: 600;
    cursor: pointer; padding: 4px 2px; flex-shrink: 0; letter-spacing: .2px;
    opacity: .75; transition: opacity .2s;
  }
  .card .toggle:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

  .empty { text-align: center; padding: 60px 0; color: var(--ink3); font-size: 14px; }
  .state { text-align: center; padding: 80px 0; color: var(--ink3); font-size: 14px; }
  .state.err b { display: block; color: #f53f3f; font-size: 16px; margin-bottom: 8px; }
  .spin { width: 30px; height: 30px; border: 3px solid rgba(11,11,15,.1); border-top-color: var(--ink); border-radius: 50%; margin: 0 auto 14px; animation: r 0.8s linear infinite; }
  @keyframes r { to { transform: rotate(360deg); } }

  /* ════════ 弹窗 ════════ */
  .modal-mask {
    position: fixed; inset: 0; background: rgba(10,12,26,.55); z-index: 100;
    display: none; align-items: center; justify-content: center; padding: 18px;
    backdrop-filter: blur(6px);
  }
  .modal-mask.show { display: flex; }
  .modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 740px;
    max-height: 86vh; overflow: hidden auto; box-shadow: 0 30px 80px -10px rgba(10,12,26,.35);
    animation: pop .24s cubic-bezier(.2,.8,.3,1);
  }
  @keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
  .modal-head {
    position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    padding: 20px 26px 0; display: flex;
    align-items: flex-start; justify-content: space-between; gap: 12px; z-index: 2;
  }
  .modal-head .t { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
  .modal-head .st { font-size: 12px; color: var(--ink3); margin-top: 4px; }
  .modal-close {
    border: none; background: #f2f3f8; color: var(--ink2); width: 30px; height: 30px;
    border-radius: 9px; cursor: pointer; font-size: 14px; line-height: 1; flex-shrink: 0;
    transition: all .15s;
  }
  .modal-close:hover { background: var(--ink); color: #fff; }
  .modal-body { padding: 14px 26px 26px; }
  .modal-body .formula { text-align: center; font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; }
  .modal-body .formula b { color: var(--ink); }
  /* 弹窗内 tab */
  .mtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; justify-content: center; }
  .mtabs button {
    border: none; background: #f2f3f8; color: var(--ink2); cursor: pointer;
    font-size: 12.5px; padding: 6px 16px; border-radius: 999px; transition: all .15s; font-weight: 500;
  }
  .mtabs button.on { background: var(--ink); color: #fff; font-weight: 600; }
  .mtabs button:hover:not(.on) { background: #e7e9f2; }
  /* 弹窗表格 */
  .ptable { width: 100%; border-collapse: collapse; margin-top: 10px; }
  .ptable th, .ptable td { padding: 11px 12px; font-size: 12.5px; text-align: left; border-bottom: 1px solid #f2f3f8; }
  .ptable th { color: var(--ink3); font-weight: 600; font-size: 11px; letter-spacing: .5px; background: #fafbfe; }
  .ptable th.r, .ptable td.r { text-align: right; }
  .ptable td.dim { font-weight: 600; color: var(--ink); white-space: nowrap; }
  .ptable td.price { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
  .ptable td .per { display: block; font-size: 11px; color: var(--ink3); font-weight: 400; margin-top: 2px; }
  .pnote { text-align: center; font-size: 11.5px; color: var(--ink3); margin: 14px 0 0; line-height: 1.7; }
  /* 表格横向滚动容器，窄屏也不挤 */
  .table-scroll { overflow-x: auto; }

