/* ============================================
   会员系统 - 易捷加油风格优化版（红色系）
   ============================================ */

:root {
  /* 主色调 - 易捷红 */
  --primary: #E60012;
  --primary-dark: #C4000F;
  --primary-light: #FF3344;
  
  /* 辅助色 - 橙色渐变 */
  --accent: #FF6B35;
  --accent-light: #FF8F66;
  
  /* 背景色 */
  --bg-primary: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, #E60012 0%, #FF3344 60%, #FF6B35 100%);
  --bg-gradient-soft: linear-gradient(135deg, #FFF5F5 0%, #FFFAF8 100%);
  
  /* 文字色 */
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-light: #AEAEB2;
  --text-white: #FFFFFF;
  
  /* 边框 */
  --border: #E5E5EA;
  --border-light: #F2F2F7;
  
  /* 阴影 - iOS风格 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
}

/* ===== 顶部导航 - 毛玻璃效果 ===== */
.header {
  background: var(--bg-gradient);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(230, 0, 18, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(10px);
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

/* ===== 轮播图 ===== */
.banner-slider {
  position: relative;
  height: 150px;
  background: var(--bg-gradient);
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.banner-slide.active {
  opacity: 1;
}

.banner-content {
  text-align: center;
  color: var(--text-white);
}

.banner-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-subtitle {
  font-size: 15px;
  opacity: 0.95;
  font-weight: 500;
}

/* ===== 主内容区 ===== */
.main-content {
  padding: 16px;
  padding-bottom: 80px;
}

/* ===== 会员卡片 - 易捷加油风格 ===== */
.member-card {
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: 28px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.2);
}

.member-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -25%;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.member-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.member-avatar {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

/* 会员统计 */
.member-stats {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 1;
}

.stat-box {
  flex: 1;
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:last-child {
  border-right: none;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== 卡片组件 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

/* ===== 快捷入口 ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 18px 10px;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.quick-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.quick-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-gradient-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all 0.25s ease;
}

.quick-item:hover .quick-icon {
  background: var(--bg-gradient);
  transform: scale(1.08);
}

.quick-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(230, 0, 18, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(230, 0, 18, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

/* ===== 输入框 ===== */
.form-input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
}

/* ===== 提示框 ===== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(29, 29, 31, 0.95);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 底部导航 - iOS风格 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 env(safe-area-inset-bottom, 10px);
  box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 6px 16px;
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 26px;
  transition: transform 0.2s ease;
}

.nav-item:active .nav-icon {
  transform: scale(0.9);
}

.nav-text {
  font-size: 11px;
  font-weight: 600;
}

/* ===== 间距工具 ===== */
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .quick-item {
    padding: 14px 6px;
  }
  
  .quick-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  
  .quick-text {
    font-size: 11px;
  }
  
  .stat-num {
    font-size: 20px;
  }
}
