/* 硬币系统统一样式（付费锁卡片 / 硬币钱包 / 签到卡片）
   引入方式：<link rel="stylesheet" href="../../shared/css/coins.css" /> */

/* ---------- 付费锁卡片 ---------- */
.coin-lock {
  background: linear-gradient(135deg, #f6f4ff 0%, #eef1ff 100%);
  border: 1px solid #ded7fb;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  margin: 18px 0;
}
.coin-lock-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #764ba2 0%, #4338a0 100%);
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.35);
}
.coin-lock-title {
  font-size: 18px;
  font-weight: 700;
  color: #4338a0;
  margin-bottom: 6px;
}
.coin-lock-desc {
  font-size: 14px;
  color: #5c5c72;
}
.coin-lock-desc b {
  color: #4338a0;
  font-size: 17px;
}
.coin-wallet {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}
.coin-wallet b {
  color: #d97706;
  font-size: 17px;
}
.coin-short {
  margin: 6px 0 0;
  font-size: 13px;
  color: #c0392b;
}
.coin-lock-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.coin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}
.coin-unlock {
  background: linear-gradient(135deg, #764ba2 0%, #4338a0 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.35);
}
.coin-unlock:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(118, 75, 162, 0.45);
}
.coin-unlock:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.coin-ghost {
  background: #fff;
  color: #4338a0;
  border: 1px solid #cfc6f5;
}
.coin-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.18);
}
.coin-msg {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: #888;
}
.coin-msg.ok {
  color: #2f855a;
  font-weight: 600;
}
.coin-msg.err {
  color: #c0392b;
}

/* ---------- 列表里的付费小徽章 ---------- */
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- 「我的」页硬币资产卡 ---------- */
.coin-card {
  background: linear-gradient(135deg, #764ba2 0%, #4338a0 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(118, 75, 162, 0.28);
}
.coin-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.coin-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffd76a;
}
.coin-card-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.coin-card-label {
  font-size: 13px;
  opacity: 0.85;
}
.coin-card-actions {
  margin-left: auto;
}
.coin-checkin-btn {
  background: #fff;
  color: #4338a0;
  border: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.coin-checkin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.coin-checkin-btn:disabled {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: default;
}
.coin-card-foot {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.7;
}
.coin-card-msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
}
.coin-card-msg.ok {
  color: #b9f6ca;
  font-weight: 600;
}
.coin-card-msg.err {
  color: #ffc9c9;
}

/* ---------- 付费锁卡片里的「加入购物车」按钮 ---------- */
.coin-cart {
  background: #fff;
  color: #4338a0;
  border: 1px solid #cfc6f5;
}
.coin-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.18);
}
.coin-cart:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- 「我的」页购物车分区 ---------- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.cart-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.12);
}
.cart-cover {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-info {
  flex: 1;
  min-width: 0;
}
.cart-name {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-meta {
  font-size: 13px;
  color: #888;
  margin-top: 3px;
}
.cart-link {
  color: #9b8fd6;
  font-size: 17px;
  text-decoration: none;
  flex-shrink: 0;
}
.cart-link:hover {
  color: #4338a0;
}
.cart-remove {
  border: none;
  background: #f3f0fb;
  color: #a08fd0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.cart-remove:hover {
  background: #ffe3e3;
  color: #c0392b;
}
.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f6f4ff, #eef1ff);
  border: 1px solid #ded7fb;
  border-radius: 12px;
}
.cart-total {
  font-size: 16px;
  color: #5c5c72;
}
.cart-total b {
  color: #4338a0;
  font-size: 20px;
}
.cart-checkout {
  background: linear-gradient(135deg, #764ba2 0%, #4338a0 100%);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(118, 75, 162, 0.35);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.cart-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(118, 75, 162, 0.45);
}
.cart-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cart-msg {
  margin: 10px 2px 0;
  font-size: 13px;
  min-height: 18px;
}
.cart-msg.ok {
  color: #2f855a;
  font-weight: 600;
}
.cart-msg.err {
  color: #c0392b;
}
