/* 深色页面公共件，配合 task/style/common.css（ti-card / ti-btn / ti-thumb）使用 */

.dk-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- 页签 ---------- */
.dk-tabs {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #262626;
}

.dk-tab {
  height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.dk-tab.is-active {
  background: linear-gradient(180deg, #9e6cff, #7d4dff);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(125, 77, 255, 0.35);
}

/* ---------- 钱包条 ---------- */
.dk-wallet {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dk-wallet::-webkit-scrollbar {
  display: none;
}

.dk-coin {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #262626;
  font-size: 13px;
}

.dk-coin img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---------- 数值块 ---------- */
.dk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dk-stat {
  display: grid;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.dk-stat span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  white-space: nowrap;
}

.dk-stat strong {
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

/* ---------- 列表行 ---------- */
.dk-list {
  display: grid;
  gap: 10px;
}

.dk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: #262626;
}

.dk-row.is-locked {
  opacity: 0.5;
}

.dk-row-main {
  flex: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dk-row-title {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dk-row-side {
  flex: none;
}

.dk-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #1e1e1e center / cover no-repeat;
  object-fit: cover;
}

.dk-avatar.is-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
}

/* ---------- 标签 ---------- */
.dk-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dk-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dk-chip.is-gold {
  background: rgba(255, 217, 119, 0.16);
  color: #ffd977;
}

.dk-chip.is-green {
  background: rgba(27, 228, 138, 0.16);
  color: #1be48a;
}

.dk-chip.is-purple {
  background: rgba(158, 108, 255, 0.24);
  color: #d5c2ff;
}

.dk-chip.is-red {
  background: rgba(255, 59, 92, 0.18);
  color: #ff8fa3;
}

/* 稀有度色：SR 金粉 / S 紫 / N 蓝（与手办模块一致） */
.dk-rarity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
}

.dk-rarity-SR {
  background: linear-gradient(135deg, #ffe08a, #ff9ec8 60%, #c08bff);
}

.dk-rarity-S {
  background: linear-gradient(135deg, #c9a6ff, #8a5cff);
}

.dk-rarity-N {
  background: linear-gradient(135deg, #9fd4ff, #5c8dff);
}

.dk-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dk-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.dk-actions > * {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  font-size: 15px;
}
