/* ================================
   DS发卡平台 - 科幻赛博朋克风格
   ================================ */
:root {
  --primary: #07c160;
  --primary-hover: #06ad56;
  --secondary: #ff6b35;
  --accent: #7c3aed;
  --gradient-main: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-btn: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-btn2: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --bg: #f0faf3;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --card-border: #7a8290;
  --text: #1a1a2e;
  --text-secondary: #666680;
  --border: #7a8290;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --glow-cyan: 0 0 10px rgba(0, 200, 255, 0.12);
  --glow-pink: 0 0 10px rgba(255, 0, 170, 0.12);
  --glow-purple: 0 0 10px rgba(139, 92, 246, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 极简浅色背景 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(7,193,96,0.04) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* 背景图半透明遮罩 */
.bg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 0;
  pointer-events: none;
}
.header, .container, .footer { position: relative; z-index: 1; }

/* 右侧浮动工具栏 */
.float-tools {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.float-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.float-btn:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.float-msg {
  background: var(--card);
  color: var(--primary);
  border-color: var(--primary);
}
.float-qq {
  background: var(--card);
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -1px;
  box-shadow: var(--glow-pink);
  border-color: var(--secondary);
}
.float-qq:hover {
  box-shadow: 0 0 30px rgba(255, 0, 170, 0.5), 0 0 80px rgba(255, 0, 170, 0.2);
}

/* 留言弹窗 */
.msg-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
}
.msg-dialog {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  max-width: 90vw;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--glow-cyan);
  z-index: 10001;
  overflow: hidden;
}
.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.msg-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
}
.msg-close:hover { opacity: 1; }
.msg-body { padding: 20px; }
.msg-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--card);
  color: var(--text);
}
.msg-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.msg-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.msg-error {
  display: none;
  color: #ff4444;
  font-size: 13px;
  margin-bottom: 10px;
}
.msg-submit {
  width: 100%;
  padding: 12px;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.msg-submit:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.msg-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== 头部导航 ===== */
.header {
  background: var(--gradient-main);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
  animation: headerGlow 3s ease-in-out infinite alternate;
}
@keyframes headerGlow {
  0% { opacity: 0.6; filter: blur(0px); }
  100% { opacity: 1; filter: blur(2px); }
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.header h1 a {
  color: #fff;
  text-decoration: none;
}
.header .nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  transition: color 0.3s;
}
.header .nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* 容器 */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* ===== 公告 ===== */
.announcement {
  background: #fff0f8;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--secondary);
  overflow: hidden;
  height: 44px;
  line-height: 44px;
  position: relative;
}
.announcement::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px; bottom: 1px;
  width: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.announcement .marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  animation-delay: 2s;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.announcement:hover .marquee-content {
  animation-play-state: paused;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--card);
  color: var(--text);
}
.search-bar input::placeholder { color: var(--text-secondary); }
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.search-bar .search-submit {
  padding: 10px 24px;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: box-shadow 0.3s, transform 0.2s;
}
.search-bar .search-submit:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* 视图切换按钮 */
.search-bar .view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.search-bar .view-toggle .view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.search-bar .view-toggle .view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.search-bar .view-toggle .view-btn.active {
  background: var(--gradient-btn);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ===== 分类标签 ===== */
.cat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 68px;
  padding: 0 16px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 20px;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.cat-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(0,0,0,0.06);
}
.cat-tag.active {
  background: var(--gradient-btn);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ===== 商品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.product-card:hover::before { opacity: 0.6; }
.product-card .cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}
.product-card .cover-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-size: 40px;
  color: var(--text-secondary);
}
.product-card .cover-wrap {
  position: relative;
}

/* 网盘自动发货标签 */
.cloud-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-btn2);
  border-radius: 6px 0 0 0;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
}
.product-card .info { padding: 14px; }
.product-card .name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-card .price sup { font-size: 12px; }

/* ===== 商品详情页 ===== */
.product-detail {
  display: flex;
  gap: 30px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 30px;
}
.product-detail .cover-wrap { flex: 0 0 400px; }
.product-detail .cover-wrap img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.product-detail .cover-wrap .no-cover {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  font-size: 60px;
  color: var(--text-secondary);
}
.product-detail .detail-info { flex: 1; }
.product-detail h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.product-detail .price-big {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.product-detail .price-big sup { font-size: 16px; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-table td:first-child { color: var(--text-secondary); width: 100px; }

.desc-section {
  margin-top: 24px;
  padding: 30px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-align: center;
}
.desc-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.desc-section .desc-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}
.desc-section .desc-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px auto;
  display: block;
  border: 1px solid var(--border);
}

.buy-section {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.buy-section .email-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.buy-section .email-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.buy-section .buy-btn {
  padding: 12px 36px;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.buy-section .buy-btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: btnShine 3s infinite;
}
@keyframes btnShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}
.buy-section .buy-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.buy-section .buy-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.error-msg { color: #ff4444; font-size: 13px; margin-top: 5px; display: none; }

/* ===== 支付页 ===== */
.pay-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}
.pay-page .order-info {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--glow-purple);
  padding: 30px 40px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.pay-page .order-info h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}
.pay-page .order-info .amount {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}
.pay-page .qr-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--glow-cyan);
  padding: 30px;
  width: 100%;
  max-width: 350px;
  border: 1px solid var(--card-border);
}
.pay-page .qr-wrap #qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 220px;
  height: 220px;
  position: relative;
}
.pay-page .qr-wrap #qrcode canvas {
  display: none !important;
}
.pay-page .qr-wrap #qrcode img {
  display: block !important;
  max-width: 100%;
  max-height: 100%;
}
.pay-page .qr-wrap .qr-loading {
  font-size: 13px;
  color: var(--text-secondary);
}
.pay-page .qr-wrap .hint { font-size: 14px; color: var(--text-secondary); }
.pay-page .qr-wrap .hint strong { color: var(--text); }

.status-polling {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.status-polling .loading-dots::after {
  content: '...';
  animation: dots 1.5s infinite;
}
@keyframes dots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ===== 订单详情页 ===== */
.order-detail {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--glow-cyan);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.order-detail h2 { font-size: 20px; margin-bottom: 20px; color: var(--text); }
.order-detail .field { display: flex; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-detail .field .label { color: var(--text-secondary); width: 100px; }
.order-detail .field .value { flex: 1; color: var(--text); }

.card-box {
  background: var(--card);
  border: 2px dashed var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.card-box .card-content {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
  margin-bottom: 12px;
}
.card-box .copy-btn {
  padding: 8px 24px;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.card-box .copy-btn:hover {
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.btn-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gradient-btn);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  margin: 16px 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-link:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* 退款按钮 */
.btn-refund {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #ff4444, #ff00aa);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-refund:hover {
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.4);
  transform: translateY(-1px);
}
.btn-refund:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* 加载 */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-secondary);
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== 列表视图 ===== */
.product-grid.list-view {
  grid-template-columns: 1fr;
}
.product-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.product-grid.list-view .product-card .cover-wrap {
  flex-shrink: 0;
  width: 120px;
}
.product-grid.list-view .product-card .cover {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
}
.product-grid.list-view .product-card .cover-placeholder {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  font-size: 28px;
}
.product-grid.list-view .product-card .info {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-grid.list-view .product-card .name {
  margin-bottom: 0;
  -webkit-line-clamp: 1;
}
.product-grid.list-view .product-card .price {
  flex-shrink: 0;
  margin-left: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
  .product-detail { flex-direction: column; padding: 16px; }
  .product-detail .cover-wrap { flex: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .buy-section { flex-direction: column; }
  .buy-section .buy-btn { width: 100%; }
  .header-inner { flex-direction: column; gap: 8px; }
  .desc-section { padding: 16px; margin-top: 16px; }
  .desc-section .desc-content { max-width: 100%; }
}

/* ================================
   推荐商品走马灯
   ================================ */
.carousel-wrap {
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 14px;
  position: relative;
  overflow: hidden;
}
.carousel-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.carousel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.carousel-nav {
  display: flex;
  gap: 6px;
}
.carousel-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  user-select: none;
}
.carousel-btn:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.carousel-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-inner {
  display: flex;
  gap: 14px;
  padding: 4px 0;
  transition: transform 0.4s ease;
}
.carousel-card {
  flex: 0 0 160px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--primary);
}
.carousel-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-secondary);
}
.carousel-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--gradient-btn2);
  color: #fff;
  font-weight: 600;
}
.carousel-info {
  padding: 10px 10px 12px;
}
.carousel-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.carousel-price {
  font-size: 17px;
  font-weight: 700;
  background: var(--gradient-btn2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 走马灯响应式 */
@media (max-width: 600px) {
  .carousel-card { flex: 0 0 130px; }
  .carousel-img-wrap { height: 100px; }
}

/* 商品卡片入场动画 */
.product-card {
  animation: cardFadeIn 0.5s ease both;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-hover), var(--accent));
}
