/* 发卡网 前台样式 */
:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --text-dark: #2d3748;
  --text-muted: #718096;
}

body { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }

/* 导航栏 */
.navbar { backdrop-filter: blur(10px); }

/* 横幅 */
.hero-banner {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  overflow: hidden;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,.85) 0%, rgba(118,75,162,.8) 50%, rgba(240,147,251,.6) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  height: 100%; text-align: center;
}
.hero-content h1 {
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
  animation: fadeInUp .6s ease-out;
}

/* 特色服务 */
.feature-item {
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
}
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102,126,234,.15);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f0ff, #e8e7ff);
}

/* 商品卡片 */
.product-card {
  transition: transform .25s, box-shadow .25s;
  border-radius: 16px;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(102,126,234,.22) !important;
}
.product-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg,#f8f9ff,#eef0ff);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-placeholder {
  display: flex; justify-content: center; align-items: center;
  height: 100%;
}
.product-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: .72rem; padding: 3px 8px;
  border-radius: 20px;
}
.card-body { padding: 1rem 1rem 1.1rem; }
.price-tag .fs-5 { font-size: 1.3rem !important; }

/* 购买按钮渐变 */
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 分类标题 */
.category-section .category-title {
  display: flex; align-items: center;
  padding: .5rem 0; margin-bottom: 1rem;
  border-bottom: 3px solid #667eea;
  color: var(--text-dark);
}
.category-section .category-title i { color: #667eea; }

/* 后台通用 */
.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
  background: linear-gradient(180deg,#1a1a2e 0%,#16213e 100%);
  z-index: 100; padding-top: 20px;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.75);
  padding: 12px 24px; border-radius: 0;
  transition: all .2s; font-size: .92rem;
  display: flex; align-items: center; gap: 8px;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: #fff; background: rgba(255,255,255,.1);
}
.admin-sidebar .nav-link.active { border-left: 3px solid #667eea; }
.admin-main { margin-left: 220px; min-height: 100vh; background: #f0f2f5; }

/* 表单卡片 */
.form-card {
  background: #fff; border-radius: 12px; padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.form-card h4 {
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* 表格 */
.table { border-collapse: separate; border-spacing: 0; }
.table thead th {
  background: #f8f9ff; border: none;
  font-weight: 600; font-size: .85rem; color: #555;
  padding: 12px 16px;
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f8f9ff; }
.table td { vertical-align: middle; padding: 12px 16px; border-color: #f0f0f0; }

/* 徽章 */
.badge-fz { background: #667eea; color: #fff; }
.badge-fz2 { background: #e0e7ff; color: #667eea; }

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 768px) {
  .admin-sidebar { width: 100%; position: relative; }
  .admin-main { margin-left: 0; }
  .hero-banner { height: 160px; }
  .hero-content h1 { font-size: 1.5rem !important; }
}
