/* detail.css —— 统一物品选中状态栏与详情窗口样式 */

/* ===== 选中高亮（橙黄色框） ===== */
.ii-selected {
  outline: 3px solid #ffb400 !important;
  outline-offset: -3px;
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.6) !important;
  z-index: 5;
}

/* ===== 底部状态栏（屏幕底端，fixed） ===== */
.ii-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(30,30,34,.82) 0%, rgba(21,21,24,.82) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(136,136,136,.35);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}
.ii-statusbar.visible { display: flex; }

.ii-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ii-thumb-img { max-width: 86%; max-height: 86%; object-fit: contain; }

.ii-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ii-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ii-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #d8b64a;
}
.ii-coin { width: 13px; height: 13px; object-fit: contain; }
.ii-price-text { color: #cfcfcf; }

/* 正方形操作按钮 */
.ii-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ii-btn {
  width: 46px;
  height: 46px;
  border: 1px solid #3a3a40;
  border-radius: 8px;
  background: #23232a;
  color: #eee;
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ii-btn:active { background: #35353e; }
.ii-qty { font-size: 12px; font-weight: 600; width: auto; min-width: 46px; padding: 0 10px; color: #ffd479; }
.ii-badge { color: #c0a8ff; }
.ii-badge.ii-badge-active { border-color: #8a5acc; background: #3a2a55; color: #e0ccff; }
.ii-detail { color: #8fd0ff; }
.ii-drop { color: #ffd479; }
.ii-close { color: #ff6b6b; }

/* ===== 详情窗口（可拖动长方形） ===== */
.ii-detailwin {
  position: fixed;
  z-index: 990;
  background: linear-gradient(180deg, rgba(30,30,34,.82) 0%, rgba(21,21,24,.82) 100%);
  border: 1px solid rgba(136,136,136,.35);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ii-dw-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #23232a;
  border-bottom: 1px solid #333338;
  cursor: move;
  touch-action: none;
  flex-shrink: 0;
}
.ii-dw-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
}
.ii-dw-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ii-dw-weight { color: #9a9aa2; font-size: 12px; white-space: nowrap; }
.ii-dw-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: #c0392b;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ii-dw-close:active { background: #e74c3c; }

/* 图片展示区（较大区域） */
.ii-dw-imgwrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #333338;
}
.ii-dw-img { max-width: 82%; max-height: 82%; object-fit: contain; }
.ii-dw-category {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 12px;
  color: #cfcfcf;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
}
.ii-dw-price {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffd479;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 描述（小字） */
.ii-dw-desc {
  flex-shrink: 0;
  max-height: 30%;
  overflow-y: auto;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: #9a9aa2;
  line-height: 1.5;
}
