/* ========== 极音派对商城 - 全局样式 ========== */
:root {
  --primary: #6C3BD4;
  --primary-dark: #5A2FB5;
  --primary-light: #8B5CF6;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --bg: #F5F3FF;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1025;
  --text: #1F1A2E;
  --text-secondary: #6B6478;
  --text-light: #9C95A8;
  --border: #E3DFEC;
  --border-light: #F0EDF5;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --shadow: 0 1px 3px rgba(26,16,37,0.08);
  --shadow-md: 0 4px 12px rgba(26,16,37,0.1);
  --shadow-lg: 0 8px 30px rgba(26,16,37,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font-family: inherit; outline: none; }
button { cursor: pointer; border: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部导航栏 ========== */
.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; margin-left: 16px; transition: color 0.2s; }
.top-bar a:hover { color: #fff; }
.top-bar .top-left span { margin-right: 16px; }

/* ========== 主导航 ========== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.search-box {
  display: flex;
  flex: 1;
  max-width: 480px;
  margin: 0 40px;
}
.search-box input {
  flex: 1;
  height: 40px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px;
  font-size: 14px;
}
.search-box button {
  height: 40px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  transition: background 0.2s;
}
.search-box button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav-action:hover { color: var(--primary); }
.nav-action .icon { font-size: 22px; margin-bottom: 2px; }
.nav-action .badge {
  position: absolute;
  top: -4px;
  right: 8px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 分类导航 ========== */
.nav-cats {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.nav-cats .container { display: flex; gap: 0; }
.nav-cats a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-cats a:hover, .nav-cats a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  margin-top: 60px;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: #999;
  line-height: 2.2;
  display: block;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #666;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 12px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  transition: border-color 0.2s;
  background: var(--bg-white);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,59,212,0.1); }
.form-input.error { border-color: var(--error); }
textarea.form-input { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.form-check a { color: var(--primary); }

/* ========== 卡片 ========== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ========== 页面标题区 ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), #4C1D95);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { font-size: 15px; opacity: 0.85; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.tag-primary { background: rgba(108,59,212,0.1); color: var(--primary); }
.tag-accent { background: rgba(245,158,11,0.1); color: var(--accent-dark); }
.tag-success { background: rgba(16,185,129,0.1); color: var(--success); }
.tag-error { background: rgba(239,68,68,0.1); color: var(--error); }

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
}
.modal h3 { font-size: 20px; margin-bottom: 12px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  font-size: 20px;
  color: var(--text-light);
}

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

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s;
}
.pagination a { background: var(--bg-white); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 通知提示 ========== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  z-index: 99999;
  animation: slideDown 0.3s;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); }

@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ========== 精选/推荐商品网格 ========== */
.section { padding: 40px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.section-more { font-size: 14px; color: var(--text-light); }
.section-more:hover { color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  position: relative;
  aspect-ratio: 1;
  background: #f0edf5;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-img .img-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  position: absolute;
  top: 0;
  left: 0;
}
.product-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.product-info { padding: 14px; }
.product-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.product-price { display: flex; align-items: baseline; gap: 6px; }
.price-current { font-size: 20px; font-weight: 700; color: var(--error); }
.price-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.product-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ========== Banner轮播 ========== */
.hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 24px 0;
  height: 360px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
  transition: opacity 0.6s;
  opacity: 0;
}
.hero-slide.active { opacity: 1; }
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #6C3BD4, #8B5CF6); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #1A1025, #4C1D95); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #F59E0B, #D97706); }
.hero-text { color: #fff; max-width: 460px; }
.hero-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.hero-text p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* ========== 分类图标区 ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.cat-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.cat-item:hover { box-shadow: var(--shadow-md); color: var(--primary); }
.cat-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.cat-name { font-size: 14px; font-weight: 500; }

/* ========== 页面通用内容区 ========== */
.page-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* ========== 标签页 ========== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
th { font-weight: 600; background: #faf9fc; color: var(--text-secondary); font-size: 13px; }
tr:hover td { background: #faf9fc; }

/* ========== 步骤条 ========== */
.steps {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}
.step + .step { margin-left: 40px; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.step.active .step-num { background: var(--primary); }
.step.active { color: var(--text); font-weight: 500; }
.step.done .step-num { background: var(--success); }

/* ========== 充值金额选择 ========== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.amount-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-white);
}
.amount-card:hover { border-color: var(--primary-light); }
.amount-card.selected { border-color: var(--primary); background: rgba(108,59,212,0.05); }
.amount-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.amount-price { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.amount-bonus { font-size: 12px; color: var(--accent-dark); margin-top: 2px; }

/* ========== 支付方式 ========== */
.pay-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.pay-method:hover { border-color: var(--primary-light); }
.pay-method.selected { border-color: var(--primary); }
.pay-method .pay-icon { font-size: 24px; }

/* ========== VIP会员卡片 ========== */
.vip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.vip-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.vip-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
  transform: scale(1.05);
}
.vip-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--accent);
  color: #fff;
  padding: 2px 36px;
  font-size: 11px;
  transform: rotate(45deg);
}
.vip-level { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.vip-price { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.vip-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.vip-features { text-align: left; margin: 20px 0; }
.vip-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.vip-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ========== 审核状态 ========== */
.audit-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.audit-pending { background: #fef3c7; color: #92400e; }
.audit-passed { background: #d1fae5; color: #065f46; }
.audit-rejected { background: #fee2e2; color: #991b1b; }

/* ========== 回到顶部 ========== */
#backToTop {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 20px; font-weight: 700; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(108,59,212,0.35); transition: all 0.3s;
}
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========== 浮动客服/快捷栏 ========== */
#floatService {
  position: fixed; right: 6px; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 6px;
}
.fs-item {
  width: 52px; height: 52px; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s; font-size: 18px; gap: 2px;
}
.fs-item span { font-size: 10px; }
.fs-item:hover { color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ========== 限时秒杀 ========== */
.flash-sale {
  background: #fff; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow); margin: 32px 0;
}
.flash-header {
  background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff;
  padding: 14px 24px; display: flex; align-items: center; gap: 16px;
}
.flash-header .flash-title { font-size: 20px; font-weight: 700; }
.flash-header .flash-timer { display: flex; gap: 4px; align-items: center; }
.flash-header .flash-timer span {
  background: #000; color: #fff; padding: 2px 6px; border-radius: 4px;
  font-size: 15px; font-weight: 700; font-family: monospace;
}
.flash-header .flash-timer .sep { background: none; padding: 0; font-size: 14px; }
.flash-body { display: flex; padding: 16px; gap: 12px; overflow-x: auto; }
.flash-item {
  flex: 1; min-width: 180px; text-align: center; cursor: pointer; transition: transform 0.2s;
}
.flash-item:hover { transform: translateY(-4px); }
.flash-item .fi-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: #f5f3ff;
  overflow: hidden; margin-bottom: 8px;
}
.flash-item .fi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flash-item .fi-name { font-size: 13px; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flash-item .fi-price { font-size: 18px; font-weight: 700; color: #EF4444; }
.flash-item .fi-original { font-size: 12px; color: #9C95A8; text-decoration: line-through; margin-left: 6px; }
.flash-item .fi-progress { height: 6px; background: #FEE2E2; border-radius: 3px; margin: 8px 0; overflow: hidden; }
.flash-item .fi-progress-bar { height: 100%; background: #EF4444; border-radius: 3px; }
.flash-item .fi-sold { font-size: 11px; color: #EF4444; }

/* ========== 品牌展示区 ========== */
.brand-section {
  background: #fff; border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow); margin: 32px 0;
}
.brand-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.brand-item {
  text-align: center; padding: 20px; border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; border: 1px solid var(--border-light);
}
.brand-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.brand-item .bi-logo {
  width: 64px; height: 64px; border-radius: 12px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.brand-item .bi-name { font-size: 14px; font-weight: 500; }

/* ========== 收藏按钮激活态 ========== */
.fav-btn.faved { color: #EF4444; border-color: #EF4444; background: rgba(239,68,68,0.05); }

/* ========== ICP备案信息 ========== */
.icp-info { text-align: center; padding: 8px 0; font-size: 11px; color: #555; }
.icp-info a { color: #555; }

/* ========== 响应式 ========== */

/* 通知栏跑马灯 */
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .vip-cards { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .search-box { order: 3; max-width: 100%; margin: 12px 0 0; flex-basis: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { height: 240px; }
  .hero-slide { padding: 0 24px; }
  .hero-text h2 { font-size: 24px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-cats { overflow-x: auto; }
  .nav-cats .container { width: max-content; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; }
  .tabs { overflow-x: auto; }
}

/* ========== 浮动发布按钮 ========== */
#fabPublish {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9998;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: #fff;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(239,68,68,0.4);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  animation: fabPulse 2s infinite;
}
#fabPublish:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(239,68,68,0.5);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 8px 36px rgba(239,68,68,0.7); }
}

/* ========== 付费发布弹窗 ========== */
.publish-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.publish-modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
  position: relative;
}
.publish-modal .pm-header {
  background: linear-gradient(135deg, #1A1025, #4C1D95);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.publish-modal .pm-header h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.publish-modal .pm-header .pm-price {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}
.publish-modal .pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.publish-modal .pm-close:hover { background: rgba(255,255,255,0.35); }
.publish-modal .pm-body { padding: 28px; }
.publish-modal .pm-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.publish-modal .pm-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.publish-modal .pm-step-dot.active { background: var(--primary); }
.publish-modal .pm-step-dot.done { background: var(--success); }
.publish-modal .pm-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
}
.publish-modal .pm-step-line.done { background: var(--success); }
.publish-modal .pm-step-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

/* 支付确认区 */
.pay-confirm {
  text-align: center;
  padding: 20px 0;
}
.pay-confirm .pc-order {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.pay-confirm .pc-order .pc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.pay-confirm .pc-order .pc-row.total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--error);
}
.pay-confirm .qr-box {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.pay-confirm .qr-box .qr-img {
  width: 180px;
  height: 180px;
  background: #f0edf5;
  margin: 0 auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
}
.pay-confirm .qr-box .qr-img::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 4px;
}
.pay-confirm .qr-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.pay-confirm .qr-tip strong { color: var(--error); }
.pay-confirm .pc-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.pay-confirm .pc-pay-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pay-confirm .pc-pay-btn.active {
  border-color: var(--success);
  background: rgba(16,185,129,0.05);
  color: var(--success);
}

/* ========== 首页电音节活动专区 ========== */
.home-festival {
  margin: 28px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #0D0A1A 0%, #1A1025 30%, #2D1A4A 60%, #1A1025 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.home-festival::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(108,59,212,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(236,72,153,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.home-festival .hf-inner {
  padding: 36px 32px 28px;
  position: relative;
  z-index: 1;
}
.home-festival .hf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-festival .hf-header .hf-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-festival .hf-header .hf-title .hf-icon {
  font-size: 28px;
}
.home-festival .hf-header .hf-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.home-festival .hf-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hf-btn-all {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.hf-btn-all:hover { background: rgba(255,255,255,0.2); }
.hf-btn-publish {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: #fff;
  border: none;
  animation: hfPulse 2.5s infinite;
}
.hf-btn-publish:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.5); animation: none; }
@keyframes hfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
.home-festival .hf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.home-festival .hf-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
}
.home-festival .hf-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.home-festival .hf-card .hfc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hfc-badge.hot { background: rgba(239,68,68,0.3); color: #FCA5A5; }
.hfc-badge.new { background: rgba(16,185,129,0.3); color: #6EE7B7; }
.hfc-badge.big { background: rgba(245,158,11,0.3); color: #FCD34D; }
.home-festival .hf-card .hfc-date {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-festival .hf-card .hfc-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-festival .hf-card .hfc-location {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-festival .hf-card .hfc-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.home-festival .hf-card .hfc-artist {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(108,59,212,0.3);
  color: #C4B5FD;
}

/* 首页活动区底部统计栏 */
.home-festival .hf-footer-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-festival .hf-stats {
  display: flex;
  gap: 28px;
}
.home-festival .hf-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.home-festival .hf-stat strong {
  font-size: 18px;
  color: #F59E0B;
}

/* ========== 电音节信息发布栏 ========== */
.festival-hero {
  background: linear-gradient(135deg, #1A1025 0%, #4C1D95 50%, #8B5CF6 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.festival-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.festival-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; position: relative; }
.festival-hero p { font-size: 15px; opacity: 0.85; position: relative; }
.festival-hero .fh-stats { display: flex; justify-content: center; gap: 40px; margin-top: 24px; position: relative; }
.festival-hero .fh-stat { text-align: center; }
.festival-hero .fh-stat .num { font-size: 28px; font-weight: 700; }
.festival-hero .fh-stat .lbl { font-size: 12px; opacity: 0.7; margin-top: 4px; }

/* 筛选栏 */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.filter-bar .filter-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.filter-bar .filter-options { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-bar .filter-opt {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  transition: all 0.2s; border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
}
.filter-bar .filter-opt:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar .filter-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar .filter-search {
  margin-left: auto; display: flex; gap: 0;
}
.filter-bar .filter-search input {
  height: 36px; padding: 0 12px; border: 1px solid var(--border); border-right: none;
  border-radius: 20px 0 0 20px; font-size: 13px; width: 200px;
}
.filter-bar .filter-search input:focus { border-color: var(--primary); }
.filter-bar .filter-search button {
  height: 36px; padding: 0 16px; background: var(--primary); color: #fff; border-radius: 0 20px 20px 0;
  font-size: 13px; cursor: pointer;
}

/* 活动网格 */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.festival-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}
.festival-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.festival-card .fc-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.festival-card .fc-cover .fc-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.festival-card .fc-cover .fc-date-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.festival-card .fc-cover .fc-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.fc-status.upcoming { background: var(--primary); }
.fc-status.ongoing { background: var(--error); animation: pulse 1.5s infinite; }
.fc-status.ended { background: #6B6478; }
.festival-card .fc-body { padding: 16px; }
.festival-card .fc-title {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.festival-card .fc-info { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.festival-card .fc-info .fc-row { display: flex; align-items: center; gap: 6px; }
.festival-card .fc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.festival-card .fc-tags .fc-tag {
  padding: 2px 10px; border-radius: 12px; font-size: 11px;
  background: rgba(108,59,212,0.08); color: var(--primary);
}
.festival-card .fc-footer {
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 活动详情弹窗 */
.festival-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.festival-detail {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
  position: relative;
}
.festival-detail .fd-cover {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
}
.festival-detail .fd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
}
.festival-detail .fd-close:hover { background: rgba(0,0,0,0.7); }
.festival-detail .fd-body { padding: 28px; }
.festival-detail .fd-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.festival-detail .fd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.festival-detail .fd-meta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--bg); border-radius: var(--radius);
}
.festival-detail .fd-meta-item .fd-icon { font-size: 24px; }
.festival-detail .fd-meta-item .fd-label { font-size: 11px; color: var(--text-light); }
.festival-detail .fd-meta-item .fd-value { font-size: 14px; font-weight: 600; }
.festival-detail .fd-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.festival-detail .fd-lineup { margin-bottom: 20px; }
.festival-detail .fd-lineup h4 { font-size: 16px; margin-bottom: 10px; }
.festival-detail .fd-artists { display: flex; flex-wrap: wrap; gap: 8px; }
.festival-detail .fd-artist {
  padding: 6px 14px; background: rgba(108,59,212,0.08); border-radius: 20px;
  font-size: 13px; color: var(--primary);
}
.festival-detail .fd-actions { display: flex; gap: 10px; margin-top: 20px; }

/* 发布表单区 */
.publish-section {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.publish-section h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.publish-section .ps-toggle {
  margin-left: auto; font-size: 13px; color: var(--primary); cursor: pointer;
  font-weight: 400;
}
.publish-section .ps-form { display: none; }
.publish-section .ps-form.open { display: block; }

/* 我发布的活动 */
.my-festivals { margin: 24px 0; }
.my-festivals h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.my-fest-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.my-fest-item .mfi-info .mfi-title { font-size: 14px; font-weight: 600; }
.my-fest-item .mfi-info .mfi-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 置顶推荐活动 */
.festival-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.festival-featured-card {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  height: 240px; cursor: pointer; display: flex; align-items: flex-end;
  padding: 24px; color: #fff; transition: all 0.3s;
}
.festival-featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.festival-featured-card .ffc-content { position: relative; z-index: 2; }
.festival-featured-card .ffc-content .ffc-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; margin-bottom: 8px;
  background: var(--accent); color: #fff;
}
.festival-featured-card .ffc-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.festival-featured-card .ffc-content p { font-size: 13px; opacity: 0.9; }
.festival-featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

/* 响应式 */
@media (max-width: 1024px) {
  .festival-grid { grid-template-columns: repeat(2, 1fr); }
  .festival-featured { grid-template-columns: 1fr; }
  .home-festival .hf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .festival-grid { grid-template-columns: 1fr; }
  .home-festival .hf-grid { grid-template-columns: 1fr; }
  .home-festival .hf-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .home-festival .hf-inner { padding: 24px 16px 20px; }
  .home-festival .hf-footer-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-bar .filter-search { margin-left: 0; width: 100%; }
  .filter-bar .filter-search input { flex: 1; }
  .festival-detail .fd-meta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .section-title { font-size: 18px; }
}
