/* ===== 右侧属性面板 ===== */
.attr-panel {
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 12px;
  width: 340px;
  z-index: var(--z-attr);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-normal) ease, width var(--t-slow) var(--ease);
}
.attr-panel.open { transform: translateX(0); opacity: 1; }
/* 全量属性表模式：面板加宽 */
.attr-panel.table-mode { width: min(760px, 92vw); }
/* 双视图切换 */
.attr-view {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  animation: attr-view-in var(--t-slow) var(--ease);
}
.attr-panel:not(.table-mode) #attrSingleView { display: flex; }
.attr-panel.table-mode #attrTableView { display: flex; }
/* 视图切换进入动画 */
@keyframes attr-view-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.attr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
}
.attr-head .t { font-weight: 700; font-size: 14px; color: #fff; }
.attr-head .bid { font-size: 12px; color: var(--accent2); }
.attr-head .close {
  cursor: pointer;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  font-size: 18px;
  line-height: 1;
  transition: all var(--t-fast) ease;
}
.attr-head .close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
.attr-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; -ms-overflow-style: none; }
/* 滚动条藏起来，滚轮和触控照样能滚，也不占那 8px 的宽 */
.attr-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.attr-group { margin-bottom: 14px; }
.attr-group .gtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.kv {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px dashed rgba(36, 52, 79, .6);
}
.kv .key { color: #b9c7e2; }
.kv .val { color: #fff; font-weight: 500; text-align: right; max-width: 60%; word-break: break-all; }
.raw-toggle { width: 100%; margin-top: 8px; }
.raw {
  display: none;
  margin-top: 8px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: 10px;
  font: 11px/1.5 monospace;
  white-space: pre-wrap;
  word-break: break-all;
  color: #9fb3d1;
}
.raw.show { display: block; }
