/* ===========================
   绿健商城 - 主样式表
   主色调: 健康绿 #2ecc71 / #27ae60
=========================== */

:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #a8e6cf;
  --primary-bg: #f0faf4;
  --accent: #1a8c4e;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #d5f0e0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(46,204,113,0.1);
  --shadow-hover: 0 8px 30px rgba(46,204,113,0.2);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--primary-bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(46,204,113,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  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-dark);
}
.logo i { color: var(--primary); font-size: 26px; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
  transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary-bg);
  color: var(--primary-dark);
}
.nav-menu .btn-login {
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
}
.nav-menu .btn-login:hover { background: var(--primary-dark); }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--primary-dark); cursor: pointer; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 10px 20px;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 1001;
  max-height: calc(100vh - 60px - 70px);
  overflow-y: auto;
}
/* 桌面端保持 static 定位 */
@media (min-width: 769px) {
  .mobile-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    max-height: none;
    overflow-y: visible;
  }
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== MAIN ===== */
.main-content { min-height: calc(100vh - 64px - 200px); padding-bottom: 40px; }

/* ===== BANNER ===== */
.banner-section { margin-bottom: 40px; }
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 360px; object-fit: cover; }
.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  padding: 30px 40px 20px;
  font-size: 24px;
  font-weight: 700;
}
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all .3s;
}
.banner-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ===== 统计条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
  color: var(--primary-dark);
}
.stat-card .number { font-size: 26px; font-weight: 700; color: var(--primary-dark); }
.stat-card .label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== 分类导航 ===== */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title a { font-size: 14px; color: var(--text-light); font-weight: 400; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.cat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}
.cat-item:hover, .cat-item.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.cat-item i { font-size: 26px; display: block; margin-bottom: 8px; color: var(--primary-dark); }
.cat-item:hover i, .cat-item.active i { color: var(--white); }
.cat-item span { font-size: 13px; font-weight: 600; }

/* ===== 商品卡片 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all .25s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}
.product-card .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.product-card .badge.hot { background: #e74c3c; }

.product-card .info { padding: 14px 16px; }
.product-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  height: 42px;
}
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.product-card .points-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}
.product-card .points-price span { font-size: 13px; }
.product-card .original-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card .btn-buy {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 9px;
  border-radius: var(--radius-sm);
  margin: 12px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.product-card .btn-buy:hover { background: var(--primary-dark); color: #fff; }

/* ===== 表单 ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 480px;
  margin: 40px auto;
}
.form-card h2 {
  text-align: center;
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.form-card .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 14px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--primary-bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
  background: var(--white);
}
.form-group .hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ===== 消息提示 ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ===== 个人中心 ===== */
.profile-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  object-fit: cover;
}
.profile-info h2 { font-size: 22px; margin-bottom: 4px; }
.profile-info p { font-size: 14px; opacity: 0.85; }
.profile-badges { display: flex; gap: 8px; margin-top: 8px; }
.profile-badge {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.sidebar-menu {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: fit-content;
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding-left: 26px;
}
.sidebar-menu a i { width: 20px; color: var(--primary); }

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.content-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  color: var(--primary-dark);
}

/* ===== 积分卡 ===== */
.points-card {
  background: linear-gradient(135deg, #1a8c4e, var(--primary));
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}
.points-card .big-num { font-size: 56px; font-weight: 700; line-height: 1; }
.points-card .label { font-size: 16px; opacity: 0.85; margin-top: 6px; }
.points-card .sub { font-size: 13px; opacity: 0.7; margin-top: 4px; }

.points-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.points-action-btn {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--primary-dark);
  font-weight: 600;
}
.points-action-btn:hover { background: var(--primary); color: #fff; }
.points-action-btn i { font-size: 24px; display: block; margin-bottom: 6px; }

/* ===== 积分日志 ===== */
.log-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.log-item:last-child { border-bottom: none; }
.log-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  color: var(--primary-dark);
}
.log-content { flex: 1; }
.log-content .title { font-size: 14px; font-weight: 600; }
.log-content .time { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.log-points { font-size: 18px; font-weight: 700; }
.log-points.positive { color: var(--primary-dark); }
.log-points.negative { color: #e74c3c; }

/* ===== 订单 ===== */
.order-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}
.order-header {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.order-status { font-weight: 600; }
.status-0 { color: #e67e22; }
.status-1 { color: #3498db; }
.status-2 { color: var(--primary-dark); }
.status-3 { color: var(--text-light); }

.order-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.order-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-right: 14px; }
.order-item .item-name { font-size: 14px; font-weight: 600; }
.order-item .item-price { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.order-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.order-total { font-weight: 700; color: var(--primary-dark); }

/* ===== 推荐 ===== */
.invite-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}
.invite-card h2 { font-size: 26px; margin-bottom: 8px; }
.invite-card p { opacity: 0.85; margin-bottom: 24px; }
.invite-code-box {
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.invite-code-box button {
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.invite-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.invite-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.invite-step .num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.invite-step h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 4px; }
.invite-step p { font-size: 13px; color: var(--text-light); }

/* ===== 提现 ===== */
.exchange-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.exchange-rate {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--primary-dark);
}
.exchange-rate strong { font-size: 22px; }

/* ===== 商品详情 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.product-gallery { position: relative; }
.product-gallery .gallery-main {
  width: 100%;
  position: relative;
  padding-bottom: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.product-gallery .gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-info h1 { font-size: 26px; color: var(--text); margin-bottom: 12px; }
.product-info .price-block {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}
.product-info .big-points {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-dark);
}
.product-info .big-points small { font-size: 18px; }
.product-info .orig-price { font-size: 14px; color: var(--text-light); text-decoration: line-through; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.qty-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: none;
  font-size: 18px;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-input {
  width: 60px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 16px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
}
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.tag-green { background: #d4edda; color: #155724; }
.tag-orange { background: #fff3cd; color: #856404; }
.tag-red { background: #f8d7da; color: #721c24; }
.tag-blue { background: #d1ecf1; color: #0c5460; }
.tag-purple { background: #e2d9f3; color: #6f42c1; }

/* ===== 后台 ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: #1a2e22;
  color: #fff;
  flex-shrink: 0;
}
.admin-sidebar .logo {
  padding: 22px 20px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--primary);
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all .2s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(46,204,113,0.15);
  color: var(--primary);
  padding-left: 26px;
}
.admin-nav a i { width: 18px; }
.admin-nav .nav-group {
  padding: 12px 20px 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-main { flex: 1; background: #f5f7fa; }
.admin-topbar {
  background: #fff;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-content { padding: 24px; }
.admin-page-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stats-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stats-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.icon-green { background: #d4edda; color: var(--primary-dark); }
.icon-blue { background: #d1ecf1; color: #0c5460; }
.icon-orange { background: #fff3cd; color: #856404; }
.icon-red { background: #f8d7da; color: #721c24; }
.stats-card .info .num { font-size: 26px; font-weight: 700; color: var(--text); }
.stats-card .info .lbl { font-size: 13px; color: var(--text-light); }

/* ===== 表格 ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--primary-bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--primary-bg); }
.data-table .actions { display: flex; gap: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: #1a2e22;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.footer p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p { margin-bottom: 6px; }
.footer-col p i { margin-right: 6px; color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state i { font-size: 56px; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 16px; }

/* ===== 轮播图样式 ===== */
.banner-slider { position:relative; border-radius:12px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.1); }
.banner-slide { display:none; position:relative; }
.banner-slide.active { display:block; }
.banner-slide img { width:100%; height:300px; object-fit:cover; }
.banner-caption { position:absolute; bottom:0; left:0; right:0; padding:20px; background:linear-gradient(transparent,rgba(0,0,0,0.6)); color:#fff; font-size:18px; font-weight:500; }
.banner-dots { position:absolute; bottom:15px; left:0; right:0; display:flex; justify-content:center; gap:8px; }
.banner-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.5); cursor:pointer; transition:all .3s; }
.banner-dot.active { background:#fff; width:24px; border-radius:5px; }

/* ===== 底部浮动导航栏 ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 999;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  color: #999;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 10px;
  min-width: 0;
}
.bottom-nav-item i {
  font-size: 18px;
  margin-bottom: 2px;
}
.bottom-nav-item span {
  font-size: 10px;
}
.bottom-nav-item.active {
  color: var(--primary-dark);
}
.bottom-nav-item.active i {
  transform: scale(1.1);
}
.bottom-nav-item:hover {
  color: var(--primary-dark);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .invite-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-slide img { height: 180px; }
  .form-card { padding: 24px; margin: 20px; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .points-actions { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  /* 显示底部导航 */
  .bottom-nav {
    display: flex;
  }
  /* 增加底部间距避免内容被遮挡 */
  .main-content {
    padding-bottom: 70px;
  }
  /* 手机端隐藏footer */
  .footer {
    display: none;
  }
  /* 手机端个人中心侧边栏改为按钮网格 - 只显示3个 */
  .profile-grid .sidebar-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  /* 隐藏其他菜单项，只保留个人信息、修改密码、收货地址 */
  .profile-grid .sidebar-menu a[href*="orders.php"],
  .profile-grid .sidebar-menu a[href*="my_points.php"],
  .profile-grid .sidebar-menu a[href*="invite.php"],
  .profile-grid .sidebar-menu a[href*="exchange.php"],
  .profile-grid .sidebar-menu a[href*="withdrawals.php"],
  .profile-grid .sidebar-menu a[href*="logout.php"] {
    display: none;
  }
  /* 手机端隐藏profile-header板块 */
  .profile-header {
    display: none;
  }
  /* 手机端收货地址页面适配 */
  .content-card h3 {
    font-size: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  /* 地址列表卡片 */
  .content-card > div[style*="border:1.5px solid"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .content-card > div[style*="border:1.5px solid"] > div:first-child {
    width: 100%;
    margin-bottom: 12px;
  }
  .content-card > div[style*="border:1.5px solid"] strong {
    font-size: 15px;
  }
  .content-card > div[style*="border:1.5px solid"] > div:first-child > div {
    font-size: 13px !important;
    line-height: 1.5;
    margin-top: 8px !important;
  }
  .content-card > div[style*="border:1.5px solid"] a[href*="del_addr"] {
    align-self: flex-end;
    padding: 6px 12px;
    background: #fdf2f2;
    border-radius: 6px;
    font-size: 12px !important;
  }
  /* 添加地址表单 */
  .content-card form > div[style*="display:grid;grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
  }
  .content-card form .form-group {
    margin-bottom: 0;
  }
  .content-card form .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .content-card form input[type="text"],
  .content-card form input[type="tel"] {
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
  }
  /* 省市县选择器 */
  .content-card form select {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }
  .content-card form > div[style*="display:grid;grid-template-columns:1fr 1fr"] > .form-group:nth-child(3) {
    grid-column: 1 / -1;
  }
  .content-card form > div[style*="display:grid;grid-template-columns:1fr 1fr"] > .form-group:nth-child(3) > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px !important;
  }
  /* 设为默认地址复选框 */
  .content-card form input[type="checkbox"][name="is_default"] {
    width: 18px;
    height: 18px;
  }
  /* 添加地址按钮 */
  .content-card form button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
  }
  /* 添加新地址标题 */
  .content-card h4 {
    font-size: 14px !important;
    margin-bottom: 16px !important;
  }
  /* 手机端积分兑换页面适配 */
  .points-card {
    padding: 24px 20px !important;
    margin-bottom: 16px !important;
  }
  .points-card .big-num {
    font-size: 36px !important;
    margin: 8px 0 !important;
  }
  .points-card .label {
    font-size: 12px !important;
  }
  /* 兑换卡片 */
  .exchange-card {
    padding: 20px 16px !important;
  }
  .exchange-rate {
    font-size: 13px !important;
    padding: 12px !important;
    text-align: center;
    line-height: 1.6;
  }
  .exchange-rate strong {
    font-size: 15px;
  }
  /* 积分输入 */
  .exchange-card input[type="number"] {
    padding: 14px !important;
    font-size: 16px !important;
  }
  .exchange-card .hint {
    font-size: 12px !important;
  }
  /* 预计到账金额 */
  .exchange-card > div[style*="background:var(--primary-bg)"] {
    padding: 20px !important;
    margin: 16px 0 20px !important;
  }
  .exchange-card > div[style*="background:var(--primary-bg)"] strong {
    font-size: 32px !important;
  }
  /* 收款方式选择 */
  .exchange-card .form-group label[style*="flex:1"] {
    flex: 1 !important;
  }
  .exchange-card .form-group label[style*="flex:1"] span {
    padding: 14px 8px !important;
    font-size: 14px !important;
    flex-direction: column;
    gap: 4px !important;
  }
  .exchange-card .form-group label[style*="flex:1"] span i {
    font-size: 24px !important;
  }
  .exchange-card input[type="radio"] {
    display: none;
  }
  .exchange-card input[type="radio"]:checked + span {
    border-color: var(--primary) !important;
    background: var(--primary-bg);
  }
  /* 支付宝/银行卡输入框 */
  #alipayFields .form-group,
  #bankFields .form-group {
    margin-bottom: 14px;
  }
  #alipayFields input,
  #bankFields input {
    padding: 14px !important;
    font-size: 15px !important;
  }
  /* 申请兑换按钮 */
  .exchange-card button[type="submit"] {
    padding: 16px !important;
    font-size: 16px !important;
    margin-top: 20px !important;
  }
  /* 查看兑换记录按钮 */
  .container > div:last-child .btn-block {
    padding: 14px !important;
    font-size: 15px !important;
  }
  /* 手机端提现记录页面适配 */
  .container > div[style*="display:flex;justify-content:space-between"] {
    flex-direction: row !important;
    padding: 0 4px;
    margin-bottom: 16px !important;
  }
  .container > div[style*="display:flex;justify-content:space-between"] .section-title {
    font-size: 16px !important;
  }
  .container > div[style*="display:flex;justify-content:space-between"] .section-title span {
    padding-left: 0 !important;
  }
  .container > div[style*="display:flex;justify-content:space-between"] .section-title span::before {
    display: none;
  }
  .container > div[style*="display:flex;justify-content:space-between"] .btn-sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  /* 提现记录表格改为卡片布局 */
  .content-card .data-table {
    display: none;
  }
  .content-card .data-table + div, 
  .content-card table + .withdrawal-cards,
  .content-card .withdrawal-list {
    display: block !important;
  }
  /* 提现记录卡片 */
  .withdrawal-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .withdrawal-card:last-child {
    margin-bottom: 0;
  }
  .withdrawal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
  }
  .withdrawal-card-time {
    font-size: 13px;
    color: var(--text-light);
  }
  .withdrawal-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .withdrawal-card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .withdrawal-card-label {
    font-size: 12px;
    color: var(--text-light);
  }
  .withdrawal-card-value {
    font-size: 15px;
    font-weight: 600;
  }
  .withdrawal-card-value.amount {
    color: var(--primary-dark);
    font-size: 18px;
  }
  .withdrawal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .withdrawal-card-method {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
  }
  .withdrawal-card-remark {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
  }
  /* 手机端显示卡片，隐藏表格 */
  .table-responsive {
    display: none;
  }
  .withdrawal-list-mobile {
    display: block !important;
  }
  /* 手机端首页适配 */
  /* 轮播图 */
  .banner-section {
    padding-top: 12px !important;
  }
  .banner-slide img {
    height: 160px !important;
    object-fit: cover;
  }
  .banner-dots {
    bottom: 8px !important;
  }
  .banner-dot {
    width: 6px !important;
    height: 6px !important;
    margin: 0 3px !important;
  }
  /* 用户积分快捷入口 */
  section[style*="padding:20px 0 0"] > .container > div {
    padding: 16px 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:first-child {
    width: 100%;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:first-child > div:first-child {
    font-size: 12px !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:first-child > div:nth-child(2) {
    font-size: 28px !important;
    margin: 4px 0 !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:first-child > div:nth-child(2) small {
    font-size: 14px !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:first-child > div:last-child {
    font-size: 12px !important;
    margin-top: 0 !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:last-child {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  section[style*="padding:20px 0 0"] > .container > div > div:last-child a {
    padding: 10px 8px !important;
    font-size: 12px !important;
    text-align: center;
    white-space: nowrap;
  }
  /* 如何参与流程 */
  section[style*="padding:10px 0 36px"] {
    padding: 0 0 24px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div {
    padding: 20px 16px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > .section-title {
    margin-bottom: 16px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > div:last-child {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > div:last-child > div {
    padding: 12px 8px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > div:last-child > div > div:first-child {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > div:last-child > div h4 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }
  section[style*="padding:10px 0 36px"] > .container > div > div:last-child > div p {
    font-size: 11px !important;
    line-height: 1.4;
  }
  /* 商品分类 */
  section[style*="padding:0 0 36px"] {
    padding: 0 0 12px !important;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .cat-item {
    padding: 12px 4px !important;
  }
  .cat-item i {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }
  .cat-item span {
    font-size: 11px !important;
  }
  /* 推荐商品 */
  section[style*="padding:0 0 40px"] {
    padding: 0 0 24px !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-card .img-wrap {
    height: 140px !important;
  }
  .product-card .info {
    padding: 10px !important;
  }
  .product-card .info .name {
    font-size: 13px !important;
    height: 36px !important;
    line-height: 1.4 !important;
  }
  .product-card .price-row {
    margin-top: 6px !important;
  }
  .product-card .points-price {
    font-size: 14px !important;
  }
  .product-card .points-price span {
    font-size: 11px !important;
  }
  .product-card .original-price {
    font-size: 11px !important;
  }
  .product-card .btn-buy {
    padding: 8px !important;
    font-size: 12px !important;
  }
  /* 推荐赚积分banner */
  section[style*="padding:0 0 40px"]:last-of-type > .container > div {
    padding: 28px 20px !important;
  }
  section[style*="padding:0 0 40px"]:last-of-type > .container > div h2 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  section[style*="padding:0 0 40px"]:last-of-type > .container > div p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  section[style*="padding:0 0 40px"]:last-of-type > .container > div .btn-lg {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .profile-grid .sidebar-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #555;
    font-size: 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
  }
  .profile-grid .sidebar-menu a i {
    font-size: 22px;
    margin-bottom: 6px;
    margin-right: 0;
    color: var(--primary);
  }
  .profile-grid .sidebar-menu a.active {
    background: var(--primary);
    color: #fff;
  }
  .profile-grid .sidebar-menu a.active i {
    color: #fff;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  /* 手机端个人中心内容卡片优化 */
  .profile-grid .content-card {
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
  }
  .profile-grid .content-card:last-child {
    margin-bottom: 0;
  }
  /* 退出登录按钮特殊样式 */
  .profile-grid .sidebar-menu a[href*="logout"] {
    background: #fff5f5;
    color: #e74c3c;
  }
  .profile-grid .sidebar-menu a[href*="logout"] i {
    color: #e74c3c;
  }
  /* 手机端订单页面适配 */
  .order-card {
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .order-header {
    padding: 10px 14px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .order-header span:first-child {
    width: 100%;
    margin-bottom: 4px;
  }
  .order-item {
    padding: 12px 14px;
  }
  .order-item img {
    width: 70px;
    height: 70px;
    margin-right: 12px;
  }
  .order-item .item-name {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .order-item .item-price {
    font-size: 13px;
  }
  .order-footer {
    padding: 12px 14px;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px;
  }
  .order-footer > div:first-child {
    display: none;
  }
  .order-footer > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    justify-content: flex-end !important;
  }
  .order-footer .order-total {
    font-size: 14px;
    white-space: nowrap;
    padding: 0;
    border: none;
  }
  .order-footer .btn {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  /* 手机端订单状态筛选 */
  .container > div[style*="display:flex;gap:10px"] {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .container > div[style*="display:flex;gap:10px"] a {
    padding: 6px 10px !important;
    font-size: 12px !important;
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
  }
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
