/* ========================================
   items.css — 物资库图鉴样式
   ======================================== */

* { -webkit-tap-highlight-color: transparent; }

/* 物资库搜索框 */
.items-search {
  height: 28px; padding: 0 12px; border: 1px solid #3a3a3e; border-radius: 14px;
  background: #1a1a1e; color: #e0e0e0; font-size: 12px; outline: none; font-family: inherit;
  flex: 1; min-width: 140px; max-width: 220px;
}
.items-search::placeholder { color: #666; }
.items-search:focus { border-color: #c4823a; }

.items-body {
  background-color: #0a0a0a;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
  overflow-y: auto;
}

.items-container {
  width: 800px;
  max-width: 95vw;
}

.items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2e;
}

.items-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 3px;
}

.items-back {
  font-size: 13px;
  color: #888888;
  text-decoration: none;
  transition: color 0.15s;
}

.items-back:hover {
  color: #e8a040;
}

/* 品质筛选标签 */
.items-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 28px;
  padding: 0 14px;
  border: 1px solid #3a3a3e;
  border-radius: 14px;
  background: #1a1a1e;
  color: #a0a0a8;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #c4823a;
  color: #e8c080;
  background: linear-gradient(180deg, #3a2518 0%, #2a1a10 100%);
}

/* 物品网格 */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.items-grid .item-card {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #1e1e22 0%, #16161a 100%);
  border: 1px solid #3a3a3e;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.15s;
  position: relative;
}

.items-grid .item-card:hover {
  border-color: #c4823a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.item-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-card-icon img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.item-card-name {
  font-size: 11px;
  color: #c0c0c0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.item-card-quality {
  font-size: 10px;
  font-weight: 500;
}

.quality-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}

.quality-dot.white { background: #aaaaaa; }
.quality-dot.green { background: #58c85a; }
.quality-dot.blue { background: #5a8aff; }
.quality-dot.purple { background: #c060ff; }
.quality-dot.gold { background: #e8c040; }
.quality-dot.red { background: #ff5050; }
