/* trade-global.css — 「全球贸易五维情报」样式
   独立文件,不改 style.css。配色沿用项目暗色玻璃拟态基调(amber/azure)。 */

.gt-fab{
  position:fixed;
  top:calc(env(safe-area-inset-top,0px) + 14px + 34px + 8px + 34px + 8px + 34px + 8px);
  right:14px;
  z-index:26;
  width:34px;height:34px;border-radius:50%;
  background:rgba(15,22,38,0.9);
  border:1px solid rgba(255,255,255,0.18);
  color:#5DA0D8;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,0.4);
}
body.all-ui-hidden .gt-fab{opacity:0 !important;pointer-events:none !important;}

.gt-modal{
  display:none;position:fixed;inset:0;z-index:61;
  background:rgba(15,22,38,0.9);
  -webkit-backdrop-filter:blur(12px) saturate(140%);
  backdrop-filter:blur(12px) saturate(140%);
  padding:calc(env(safe-area-inset-top,0px) + 16px) 16px 20px;
  overflow-y:auto;
  color:#F6F1E4;
  font-family:'IBM Plex Mono',monospace;
}
.gt-modal.show{display:block;}

.gt-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px;gap:8px;}
.gt-title{font-family:'Fraunces',serif;font-weight:700;font-size:19px;color:#F6F1E4;}
.gt-sub{margin-top:4px;font-size:10.5px;color:rgba(246,241,228,0.55);}
.gt-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.16);color:#F6F1E4;font-size:14px;cursor:pointer;flex:0 0 auto;}

.gt-country-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed rgba(255,255,255,0.14);}
.gt-country-chip{font-family:'IBM Plex Mono',monospace;font-size:11px;padding:5px 10px;border-radius:14px;border:1px solid rgba(255,255,255,0.16);background:none;color:rgba(246,241,228,0.65);cursor:pointer;}
.gt-country-chip.active{border-color:#5DA0D8;background:rgba(93,160,216,0.16);color:#8FD3EE;font-weight:600;}

.gt-search-row{display:flex;gap:8px;margin-bottom:14px;}
.gt-search-input{flex:1;font-family:'IBM Plex Mono',monospace;font-size:12px;padding:8px 11px;border-radius:9px;border:1px solid rgba(255,255,255,0.16);background:rgba(255,255,255,0.06);color:#F6F1E4;}
.gt-search-input::placeholder{color:rgba(246,241,228,0.4);}
.gt-search-btn{flex:0 0 auto;font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:600;color:#0F1626;background:#E8A33D;border:none;border-radius:9px;padding:0 14px;cursor:pointer;}

.gt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px;padding-bottom:20px;}
.gt-loading,.gt-empty{grid-column:1 / -1;font-size:11.5px;color:rgba(246,241,228,0.5);text-align:center;padding:34px 0;line-height:1.7;}
.gt-retry-btn{margin-top:8px;font-family:'IBM Plex Mono',monospace;font-size:10.5px;color:#F6F1E4;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);border-radius:14px;padding:5px 14px;cursor:pointer;}

.gt-card{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:10px;cursor:pointer;transition:border-color 140ms ease,background 140ms ease;}
.gt-card:hover{border-color:rgba(93,160,216,0.5);background:rgba(93,160,216,0.06);}
.gt-card-thumb{width:100%;height:110px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;margin-bottom:8px;}
.gt-card-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.gt-card-noimg{font-size:26px;opacity:0.5;}
.gt-card-title{font-family:'Inter',sans-serif;font-size:12.5px;font-weight:600;color:#F6F1E4;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.gt-card-brand{font-size:10px;color:rgba(246,241,228,0.5);margin-top:3px;}
.gt-card-price{font-family:'IBM Plex Mono',monospace;font-size:14px;font-weight:700;color:#E8A33D;margin-top:5px;}
.gt-card-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;}
.gt-badge{font-size:9.5px;padding:2px 7px;border-radius:6px;white-space:nowrap;}
.gt-badge-bs{background:rgba(232,163,61,0.2);color:#E8A33D;font-weight:700;}
.gt-badge-rating{background:rgba(255,255,255,0.08);color:rgba(246,241,228,0.75);}
.gt-card-signals{display:flex;gap:6px;margin-top:7px;}
.gt-dot{font-size:12px;opacity:0.28;filter:grayscale(1);}
.gt-dot.on{opacity:1;filter:none;}

/* 五维深度情报抽屉:移动端从底部滑出的全宽面板 */
.gt-drawer{
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  max-height:82vh;
  background:linear-gradient(175deg,rgba(20,27,41,0.96) 0%,rgba(12,17,28,0.98) 100%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  backdrop-filter:blur(20px) saturate(150%);
  border:1px solid rgba(255,255,255,0.14);border-bottom:none;
  border-radius:20px 20px 0 0;
  box-shadow:0 -16px 44px rgba(0,0,0,0.5);
  transform:translateY(105%);
  transition:transform .28s ease;
  color:#F6F1E4;
  font-family:'Inter',sans-serif;
  display:flex;flex-direction:column;
}
.gt-drawer.show{transform:translateY(0);}
.gt-drawer-handle{width:36px;height:4px;background:rgba(255,255,255,0.2);border-radius:2px;margin:10px auto 0;flex:0 0 auto;}
.gt-drawer-head{display:flex;justify-content:flex-end;padding:8px 14px 0;flex:0 0 auto;}
.gt-drawer-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.16);color:#F6F1E4;font-size:14px;cursor:pointer;}
.gt-drawer-body{flex:1;overflow-y:auto;padding:6px 18px calc(18px + env(safe-area-inset-bottom,0px));}

.gt-drawer-title-row{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;padding-bottom:14px;border-bottom:1px dashed rgba(255,255,255,0.14);}
.gt-drawer-thumb{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:0 0 auto;background:rgba(255,255,255,0.06);}
.gt-drawer-title{font-family:'Fraunces',serif;font-weight:700;font-size:15.5px;line-height:1.4;}
.gt-drawer-brand{font-size:11px;color:rgba(246,241,228,0.55);margin-top:4px;}
.gt-drawer-price{font-family:'IBM Plex Mono',monospace;font-size:16px;font-weight:700;color:#E8A33D;margin-top:5px;}

.gt-sec{margin-bottom:16px;}
.gt-sec-title{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.03em;color:#8FD3EE;margin-bottom:7px;font-weight:700;}
.gt-sec p{font-size:12.5px;line-height:1.7;color:rgba(246,241,228,0.9);margin:0 0 4px;}
.gt-sec b{color:#F6F1E4;}
.gt-empty-hint{font-size:11.5px;color:rgba(246,241,228,0.5);line-height:1.6;padding:6px 0;}
.gt-bol-row{font-size:12px;line-height:1.7;color:rgba(246,241,228,0.9);padding:6px 0;border-top:1px dashed rgba(255,255,255,0.1);}
.gt-bol-row:first-child{border-top:none;}
.gt-note{font-size:10.5px;color:rgba(246,241,228,0.5);margin-top:4px;line-height:1.6;}

.gt-map-marker{width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:16px;filter:drop-shadow(0 2px 5px rgba(0,0,0,0.5));cursor:pointer;}

@media (min-width:700px){
  .gt-drawer{left:auto;width:min(420px,92vw);border-radius:16px 0 0 16px;max-height:100vh;top:0;bottom:0;transform:translateX(105%);}
  .gt-drawer.show{transform:translateX(0);}
  .gt-head,.gt-country-row,.gt-search-row,.gt-list{max-width:960px;margin-left:auto;margin-right:auto;}
}
