/* LiteCart 版式主题（替代 vault.css） */
:root {
  --bg: #f9fafc;
  --bg-warm: #f3f4f6; /* 兼容旧模板引用 */
  --card: #ffffff;
  --foreground: #111827;
  --muted-foreground: #6b7280;
  --secondary: #f3f4f6;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --border: #e5e7eb;
  --hairline-strong: #d1d5db;

  --success: #16a34a;
  --danger: #dc2626;

  /* 徽章配色（沿用旧值） */
  --red: #ef4444;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --teal-strong: #0f766e;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --gold-strong: #b45309;
  --plum: #8b5cf6;
  --ink: #1e293b;

  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 10px 20px -5px rgba(17, 24, 39, 0.12), 0 4px 8px -4px rgba(17, 24, 39, 0.08);
  --gap-block: 4rem;
}

.dark {
  --bg: #0b1020;
  --bg-warm: #111827;
  --card: #131b2e;
  --foreground: #f3f4f6;
  --muted-foreground: #9ca3af;
  --secondary: #1b2438;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --border: #243049;
  --hairline-strong: #334155;

  --teal-soft: #134e4a;
  --teal-strong: #5eead4;
  --gold-soft: #78350f;
  --gold-strong: #fcd34d;
}

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 商品卡片 Hover 特效 */
.product-card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card-hover:hover,
.product-card-hover:focus-within {
  box-shadow: var(--shadow-lg);
}
@media (hover: hover) {
  .product-card-hover:hover {
    transform: translateY(-4px);
  }
}

a:focus-visible,
button:focus-visible,
.product-card-hover a:focus-visible,
.product-card-hover button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  min-width: min(260px, calc(100vw - 3rem));
  max-width: min(380px, calc(100vw - 3rem));
  padding: 0.8rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-success { background: var(--primary); }
.toast-error { background: var(--danger); }
.toast-info { background: #1f2937; }
@keyframes toastSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 卡密全选与复制 */
.secret-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  user-select: all;
  word-break: break-all;
  line-height: 1.7;
  letter-spacing: .01em;
}

/* 隐藏滚动条 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 520px) {
  #toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    align-items: flex-end;
  }
  .toast-item {
    font-size: 13px;
    padding: 0.6rem 1rem;
  }
}
