/* =========================================================
   产品数据索引 — macOS 风格本地检索界面
   ========================================================= */
:root{
  --bg-desktop: #dfe3ec;
  --win-bg: #ffffff;
  --side-bg: #f2f2f4;
  --side-line: #e3e3e6;
  --text: #1d1d1f;
  --text-2: #55555c;
  --text-3: #8a8a90;
  --line: #ececee;
  --line-2: #e3e3e6;
  --accent: #0a84ff;
  --accent-soft: #e8f2ff;
  --hover: #f6f8fd;
  --mark: #ffeb99;
  --radius-win: 14px;
  --shadow-win: 0 30px 70px rgba(23,32,56,.28), 0 2px 8px rgba(23,32,56,.12);
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
              "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color:var(--text);
  font-size:13px;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(1200px 700px at 12% -10%, #eef3ff 0%, rgba(238,243,255,0) 60%),
    radial-gradient(1000px 600px at 100% 110%, #f2ecff 0%, rgba(242,236,255,0) 55%),
    linear-gradient(160deg,#e9edf5 0%, #dfe4ee 45%, #d6dbe7 100%);
  overflow:hidden;
}

.desktop{
  height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:26px 26px 42px;
}

/* ---------------- 窗口 ---------------- */
.window{
  width:100%; max-width:1500px; height:100%;
  display:flex; overflow:hidden;
  background:var(--win-bg);
  border-radius:var(--radius-win);
  box-shadow:var(--shadow-win);
  border:.5px solid rgba(0,0,0,.14);
}

/* ---------------- 侧边栏 ---------------- */
.sidebar{
  width:248px; flex:0 0 248px;
  background:var(--side-bg);
  border-right:.5px solid var(--side-line);
  padding:13px 12px 12px;
  display:flex; flex-direction:column; gap:10px;
  -webkit-user-select:none; user-select:none;
}
.traffic{display:flex; gap:8px; padding:2px 2px 6px}
.tl{width:12px;height:12px;border-radius:50%;display:block;position:relative;cursor:default;
    box-shadow:inset 0 0 0 .5px rgba(0,0,0,.12)}
.tl-close{background:#ff5f57}
.tl-min{background:#febc2e}
.tl-max{background:#28c840}
.tl::after{content:"";position:absolute;inset:0;border-radius:50%;opacity:0;transition:opacity .12s;
  background-position:center;background-repeat:no-repeat;background-size:8px 8px}
.traffic:hover .tl::after{opacity:.55}
.tl-close::after{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path d='M2 2l4 4M6 2l-4 4' stroke='%23600' stroke-width='1.2' stroke-linecap='round'/></svg>")}
.tl-min::after{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path d='M1.6 4h4.8' stroke='%23664d00' stroke-width='1.2' stroke-linecap='round'/></svg>")}
.tl-max::after{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path d='M4 1.8v4.4M1.8 4h4.4' stroke='%23044b0c' stroke-width='1.2' stroke-linecap='round'/></svg>")}

.side-head h1{font-size:15px;font-weight:650;margin:0;letter-spacing:-.01em}
.side-head p{margin:2px 0 4px;font-size:11.5px;color:var(--text-3)}

.side-label{
  font-size:10.5px;font-weight:600;color:var(--text-3);
  letter-spacing:.06em;text-transform:uppercase;
  padding:2px 4px 0;
}

/* 分段控件 */
.seg{display:flex;gap:2px;background:#e6e6e9;border-radius:8px;padding:2px}
.seg button{
  flex:1; border:0; background:transparent; color:var(--text-2);
  font:inherit; font-size:12px; font-weight:550;
  padding:5px 8px; border-radius:6px; cursor:pointer;
  transition:background .14s, color .14s, box-shadow .14s;
  white-space:nowrap;
}
.seg button:hover{color:var(--text)}
.seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04)}
.seg-sm{flex:0 0 auto}
.seg-sm button{flex:0 0 auto;font-size:11.5px;padding:4px 9px}

/* 筛选行 */
.filters{display:flex;flex-direction:column;gap:2px}
.frow{
  display:flex;align-items:center;gap:6px;
  width:100%; text-align:left;
  border:0; background:transparent; font:inherit; color:var(--text);
  padding:6px 8px; border-radius:7px; cursor:pointer;
}
.frow:hover{background:#e9e9ec}
.frow.active{background:var(--accent-soft);color:#0a5fc4}
.frow.disabled{opacity:.42;cursor:not-allowed}
.frow .fname{font-size:12.5px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frow .fcount{
  font-size:10.5px;font-weight:600;min-width:16px;text-align:center;
  background:#0a84ff;color:#fff;border-radius:9px;padding:1px 5px;
}
.frow .fchev{width:9px;height:9px;flex:0 0 auto;color:var(--text-3)}
.frow .fchev svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.frow .fempty{font-size:10.5px;color:var(--text-3)}

.clear-all{
  margin-top:2px; border:0; background:transparent; color:var(--accent);
  font:inherit; font-size:12px; padding:5px 8px; text-align:left;
  border-radius:6px; cursor:pointer;
}
.clear-all:hover:not(:disabled){background:#e9e9ec}
.clear-all:disabled{color:#b9b9bf;cursor:default}

.side-foot{
  margin-top:auto; font-size:10.5px; line-height:1.55; color:var(--text-3);
  border-top:.5px solid var(--side-line); padding-top:9px;
}
.side-foot b{color:var(--text-2);font-weight:600}

/* ---------------- 主区 ---------------- */
.main{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--win-bg)}

.toolbar{
  display:flex;align-items:center;gap:12px;
  padding:11px 16px; border-bottom:.5px solid var(--line);
  background:linear-gradient(#fff, #fdfdfe);
}
.search-wrap{
  position:relative; display:flex; align-items:center;
  flex:1 1 420px; max-width:620px; height:32px;
  background:#f1f1f3; border-radius:9px; padding:0 9px;
  border:.5px solid transparent;
  transition:background .15s, border-color .15s, box-shadow .15s;
}
.search-wrap:focus-within{background:#fff;border-color:#0a84ff;box-shadow:0 0 0 3px rgba(10,132,255,.18)}
.i-search{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:#8a8a90;stroke-width:1.7;stroke-linecap:round}
#q{
  flex:1; min-width:0; border:0; outline:0; background:transparent;
  font:inherit; font-size:12.5px; color:var(--text); padding:0 8px;
}
#q::placeholder{color:#9a9aa1}
.q-clear{
  border:0;background:#c7c7cd;color:#fff;width:15px;height:15px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;padding:0;flex:0 0 auto
}
.q-clear svg{width:9px;height:9px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round}
.kbd{
  font:inherit;font-size:10.5px;color:#9a9aa1;background:#fff;
  border:.5px solid #dcdce0;border-radius:4px;padding:1px 4px;margin-left:6px;flex:0 0 auto
}
.search-wrap:focus-within .kbd{display:none}

.count{margin-left:auto;font-size:12px;color:var(--text-3);white-space:nowrap}
.count b{font-size:13.5px;color:var(--text);font-weight:650;font-variant-numeric:tabular-nums;margin-right:4px}

/* 已选条件 chips */
.chips{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  padding:8px 16px; border-bottom:.5px solid var(--line); background:#fcfcfe;
}
.chip{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--accent-soft); color:#0a5fc4; border-radius:6px;
  padding:3px 5px 3px 8px; font-size:11.5px; max-width:280px;
}
.chip b{font-weight:600}
.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip button{
  border:0;background:transparent;color:#5b8fd0;cursor:pointer;padding:0 2px;
  font-size:13px;line-height:1;border-radius:3px
}
.chip button:hover{color:#0a84ff;background:#d9e8fb}

/* ---------------- 表格 ---------------- */
.table-wrap{flex:1;overflow:auto;position:relative;background:#fff}
table{border-collapse:separate;border-spacing:0;table-layout:fixed}
thead th{
  position:sticky;top:0;z-index:5;
  background:rgba(250,250,252,.96);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  font-size:11px;font-weight:650;color:#6e6e76;letter-spacing:.02em;
  text-align:left;padding:8px 10px;border-bottom:.5px solid var(--line-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
thead th.sortable{cursor:pointer}
thead th.sortable:hover{color:var(--text)}
thead th .arrow{opacity:.45;font-size:9px;margin-left:3px}
tbody td{
  padding:9px 10px;vertical-align:top;
  border-bottom:.5px solid #f2f2f4;
  font-size:12.5px;line-height:1.5;color:var(--text);
  word-break:break-word;overflow:hidden;
}
tbody tr{cursor:pointer}
tbody tr:hover td{background:var(--hover)}
tbody tr.sel td{background:var(--accent-soft)}
tbody td.mono{
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  font-size:11.8px;letter-spacing:-.01em;color:#243043;
  font-variant-numeric:tabular-nums;
}
tbody td.clamp3 .txt{
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  color:#3c3c43;
}
tbody td.num{font-variant-numeric:tabular-nums}
.dash{color:#c2c2c8}
mark{background:var(--mark);color:inherit;border-radius:2px;padding:0 1px}
.pdf{
  display:inline-flex;align-items:center;gap:4px;
  text-decoration:none;color:#0a63d0;background:#eef4ff;
  border-radius:5px;padding:2px 7px;font-size:11px;font-weight:600;
  border:.5px solid #d5e5fb;
}
.pdf:hover{background:#dfeaff}
.pdf svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.empty{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;color:var(--text-3);
  background:#fff;text-align:center;padding:24px;
}
.empty-ico{width:44px;height:44px;border-radius:50%;background:#f2f2f5;display:grid;place-items:center;margin-bottom:8px}
.empty-ico svg{width:20px;height:20px;fill:none;stroke:#a8a8b0;stroke-width:1.6;stroke-linecap:round}
.empty h2{font-size:13.5px;font-weight:600;color:var(--text-2);margin:0}
.empty p{font-size:12px;margin:0}

/* ---------------- 状态栏 ---------------- */
.statusbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:0 16px;height:44px;flex:0 0 44px;
  border-top:.5px solid var(--line);background:#fbfbfd;
  font-size:11.5px;color:var(--text-2);
}
.st-left{display:flex;align-items:center;gap:7px;min-width:0}
.st-left .dot{color:#c9c9cf}
.st-left .muted{color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-right{display:flex;align-items:center;gap:8px}
.pager{display:flex;align-items:center;gap:3px}
.pager button{
  min-width:26px;height:24px;border:.5px solid #dedee2;background:#fff;color:var(--text-2);
  border-radius:5px;font:inherit;font-size:11.5px;cursor:pointer;padding:0 7px;
}
.pager button:hover:not(:disabled){background:#f2f2f5;color:var(--text)}
.pager button:disabled{opacity:.4;cursor:default}
.pager button.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.pager .gap{color:#b6b6bd;padding:0 2px}
.sel{
  font:inherit;font-size:11.5px;color:var(--text-2);background:#fff;
  border:.5px solid #dedee2;border-radius:5px;height:24px;padding:0 4px;cursor:pointer;outline:0
}

/* ---------------- 筛选浮层 ---------------- */
.pop{
  position:fixed;z-index:60;width:320px;
  background:#fff;border-radius:11px;
  box-shadow:0 14px 40px rgba(20,26,44,.22), 0 0 0 .5px rgba(0,0,0,.1);
  padding:9px;display:flex;flex-direction:column;gap:7px;
  animation:popIn .12s ease-out;
}
@keyframes popIn{from{opacity:0;transform:translateY(-4px) scale(.99)}to{opacity:1;transform:none}}
.pop-search{
  display:flex;align-items:center;gap:6px;height:28px;background:#f1f1f3;
  border-radius:7px;padding:0 8px
}
.pop-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:12px}
.pop-search svg{width:12px;height:12px;fill:none;stroke:#8a8a90;stroke-width:1.8;stroke-linecap:round}
.pop-list{max-height:286px;overflow:auto;display:flex;flex-direction:column;gap:1px;margin:0 -3px;padding:0 3px}
.opt{
  display:flex;align-items:center;gap:8px;padding:5px 7px;border-radius:6px;
  cursor:pointer;font-size:12.5px;color:var(--text);
}
.opt:hover{background:#f2f5fb}
.opt .box{
  width:15px;height:15px;flex:0 0 auto;border-radius:4px;border:1px solid #c9c9d0;
  display:grid;place-items:center;background:#fff;transition:all .12s
}
.opt.on .box{background:var(--accent);border-color:var(--accent)}
.opt .box svg{width:9px;height:9px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.opt.on .box svg{opacity:1}
.opt .lbl{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opt .n{font-size:10.5px;color:var(--text-3);font-variant-numeric:tabular-nums}
.opt.on .lbl{font-weight:600}
.pop-foot{
  display:flex;align-items:center;justify-content:space-between;
  border-top:.5px solid var(--line);padding-top:7px;font-size:11.5px;color:var(--text-3)
}
.pop-foot a{color:var(--accent);text-decoration:none;cursor:pointer;margin-right:auto}
.pop-foot .done{
  border:0;background:var(--accent);color:#fff;border-radius:6px;
  font:inherit;font-size:11.5px;font-weight:600;padding:4px 12px;cursor:pointer
}
.pop-empty{padding:16px 8px;text-align:center;color:var(--text-3);font-size:12px}

/* ---------------- 详情面板 ---------------- */
.scrim{position:fixed;inset:0;background:rgba(16,20,32,.16);z-index:70;animation:fade .16s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.inspector{
  position:fixed;top:0;right:0;bottom:0;width:430px;max-width:92vw;z-index:80;
  background:#fff;box-shadow:-18px 0 50px rgba(20,26,44,.18);
  display:flex;flex-direction:column;animation:slideIn .2s cubic-bezier(.22,.9,.3,1);
}
@keyframes slideIn{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}
.insp-head{
  display:flex;align-items:flex-start;gap:10px;padding:14px 14px 12px 18px;
  border-bottom:.5px solid var(--line);
}
.insp-kicker{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);font-weight:600}
.insp-title{font-size:14.5px;font-weight:650;margin-top:3px;letter-spacing:-.01em}
.icon-btn{
  margin-left:auto;border:0;background:#f1f1f3;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;flex:0 0 auto
}
.icon-btn:hover{background:#e5e5e9}
.icon-btn svg{width:10px;height:10px;fill:none;stroke:#6e6e76;stroke-width:1.8;stroke-linecap:round}
.insp-body{flex:1;overflow:auto;padding:6px 18px 24px}
.fitem{padding:11px 0;border-bottom:.5px solid #f2f2f4}
.fitem .fk{font-size:10.5px;color:var(--text-3);font-weight:600;letter-spacing:.03em;margin-bottom:3px;display:flex;align-items:center;gap:6px}
.fitem .fv{font-size:12.8px;line-height:1.62;color:var(--text);white-space:pre-wrap;word-break:break-word}
.fitem .fv.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}
.copy{
  border:0;background:transparent;color:#a0a0a8;font:inherit;font-size:10.5px;
  cursor:pointer;padding:0 3px;border-radius:3px;margin-left:auto
}
.copy:hover{color:var(--accent);background:#eef4ff}
.insp-link{display:inline-flex;align-items:center;gap:5px;color:#0a63d0;text-decoration:none;font-size:12.5px;word-break:break-all}

/* ---------------- 加载层 ---------------- */
.loader{
  position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;
  background:rgba(245,247,251,.72);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.spinner{
  width:22px;height:22px;border-radius:50%;
  border:2.5px solid rgba(10,132,255,.18);border-top-color:var(--accent);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loader-txt{font-size:12.5px;color:var(--text-2)}

.hint-bottom{
  position:fixed;bottom:13px;left:0;right:0;text-align:center;
  font-size:11px;color:rgba(40,50,70,.45);pointer-events:none;
}

/* ---------------- 人机验证门禁 ---------------- */
.gate{
  position:fixed;inset:0;z-index:150;
  display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(232,237,246,.55);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
  animation:fade .2s;
}
.gate-card{
  width:370px;max-width:100%;
  background:#fff;border-radius:16px;
  padding:26px 26px 18px;
  box-shadow:0 24px 60px rgba(20,26,44,.22), 0 0 0 .5px rgba(0,0,0,.1);
  text-align:center;
  margin:0;
}
.gate-ico{
  width:46px;height:46px;border-radius:13px;margin:0 auto 14px;
  display:grid;place-items:center;
  background:linear-gradient(160deg,#eef4ff,#e2ecff);
  box-shadow:inset 0 0 0 .5px rgba(10,132,255,.18);
}
.gate-ico svg{width:23px;height:23px;fill:none;stroke:#0a6bd6;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gate-card h2{font-size:16px;font-weight:650;margin:0 0 6px;letter-spacing:-.01em}
.gate-card p{font-size:12.3px;line-height:1.62;color:var(--text-2);margin:0 0 16px}
.gate-code{margin:0 0 12px}
.gate-code input{
  width:100%;height:34px;border-radius:9px;border:1px solid var(--line-2);
  background:#f7f7f9;font:inherit;font-size:13px;text-align:center;
  letter-spacing:.18em;outline:0;padding:0 12px;
}
.gate-code input:focus{background:#fff;border-color:#0a84ff;box-shadow:0 0 0 3px rgba(10,132,255,.16)}
.ts-widget{display:flex;justify-content:center;align-items:center;min-height:66px}
.ts-wait{font-size:11.5px;color:var(--text-3)}
.gate-msg{font-size:11.8px;color:#c0392b;min-height:16px;margin-top:8px;line-height:1.5}
.gate-msg.info{color:var(--text-3)}
.gate-btn{
  width:100%;height:34px;border:0;border-radius:9px;margin-top:6px;
  background:var(--accent);color:#fff;font:inherit;font-size:13px;font-weight:600;
  cursor:pointer;
}
.gate-btn:hover{background:#0071e3}
.gate-btn:disabled{opacity:.5;cursor:default}
.gate-foot{
  margin-top:14px;padding-top:11px;border-top:.5px solid var(--line);
  font-size:10.5px;color:var(--text-3);letter-spacing:.02em;
}

/* 滚动条（mac 细条） */
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.19);border-radius:6px;
  border:3px solid transparent;background-clip:content-box;
}
::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.32);background-clip:content-box}

@media (max-width:1080px){
  .desktop{padding:12px 12px 34px}
  .sidebar{width:212px;flex-basis:212px}
  .seg-sm{display:none}
}
