/**
 * 彩虹云商城 - 小清新UI风格
 * 设计风格：简洁、清新、年轻化
 */

/* ==================== 基础变量 ==================== */
:root {
  --primary: #5eead4;
  --primary-light: #a5f3fc;
  --primary-dark: #2dd4bf;
  --secondary: #7dd3fc;
  --accent: #f9a8d4;
  --accent-light: #fce7f3;
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-end: #f0fdf4;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 全局背景 ==================== */
body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
}

/* 气泡背景动画 */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) {
  width: 40px;
  height: 40px;
  left: 10%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  animation-duration: 12s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 20%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  animation-duration: 18s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 30px;
  height: 30px;
  left: 35%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  animation-duration: 14s;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 50px;
  height: 50px;
  left: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  animation-duration: 16s;
  animation-delay: 1s;
}

.bubble:nth-child(5) {
  width: 35px;
  height: 35px;
  left: 65%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  animation-duration: 13s;
  animation-delay: 3s;
}

.bubble:nth-child(6) {
  width: 45px;
  height: 45px;
  left: 80%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  animation-duration: 17s;
  animation-delay: 5s;
}

.bubble:nth-child(7) {
  width: 25px;
  height: 25px;
  left: 90%;
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  animation-duration: 11s;
  animation-delay: 6s;
}

@keyframes rise {
  0% {
    bottom: -100px;
    transform: translateX(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(20px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    bottom: 100vh;
    transform: translateX(-20px) scale(0.9);
    opacity: 0;
  }
}

/* ==================== 卡片样式 - Glassmorphism 2.0 ==================== */
.fresh-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

.fresh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}

.fresh-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(31, 38, 135, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.fresh-card-header {
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.8), rgba(94, 234, 212, 0.8));
  color: #1e293b;
  padding: 20px 24px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.fresh-card-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.fresh-card-header i {
  margin-right: 10px;
  font-size: 18px;
}

.fresh-card-body {
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* 卡片变体 - 彩色边框 */
.fresh-card-primary {
  border-top: 4px solid linear-gradient(90deg, #667eea, #764ba2);
}

.fresh-card-success {
  border-top: 4px solid #43e97b;
}

.fresh-card-accent {
  border-top: 4px solid #fa709a;
}

/* 悬浮卡片 */
.fresh-card-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ==================== 按钮样式 - 2024现代设计 ==================== */
.fresh-btn {
  border-radius: 16px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

/* 主要按钮 - 动态渐变 */
.fresh-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: gradientShift 3s ease infinite;
}

.fresh-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.5),
    0 0 20px rgba(240, 147, 251, 0.3);
}

.fresh-btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* 次要按钮 - 玻璃拟态 */
.fresh-btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #4c51bf;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.fresh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* 强调按钮 - 珊瑚渐变 */
.fresh-btn-accent {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
  box-shadow: 
    0 4px 15px rgba(250, 112, 154, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.fresh-btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(250, 112, 154, 0.5),
    0 0 30px rgba(254, 225, 64, 0.3);
}

/* 成功按钮 - 薄荷绿 */
.fresh-btn-success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  box-shadow: 
    0 4px 15px rgba(67, 233, 123, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.fresh-btn-success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(67, 233, 123, 0.5),
    0 0 30px rgba(56, 249, 215, 0.3);
}

/* 渐变动画 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 按钮光晕效果 */
.fresh-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.fresh-btn:hover::before {
  left: 100%;
}

/* 按钮波纹效果 - 增强版 */
.fresh-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
}

.fresh-btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* 按钮图标动画 */
.fresh-btn i {
  transition: transform 0.3s ease;
}

.fresh-btn:hover i {
  transform: translateX(3px);
}

/* 按钮组 */
.fresh-btn-group {
  display: inline-flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fresh-btn-group .fresh-btn {
  border-radius: 0;
}

.fresh-btn-group .fresh-btn:first-child {
  border-radius: 16px 0 0 16px;
}

.fresh-btn-group .fresh-btn:last-child {
  border-radius: 0 16px 16px 0;
}

/* ==================== 导航标签 ==================== */
.fresh-nav-tabs {
  border-bottom: 2px solid rgba(94, 234, 212, 0.3);
  margin-bottom: 20px;
}

.fresh-nav-tabs > li > a {
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 12px 20px;
  transition: var(--transition);
}

.fresh-nav-tabs > li > a:hover {
  background: rgba(94, 234, 212, 0.1);
  color: var(--primary-dark);
}

.fresh-nav-tabs > li.active > a {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border: none;
}

/* ==================== 表单样式 - 现代输入框 ==================== */
.fresh-input {
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  color: #1e293b;
}

.fresh-input::placeholder {
  color: #94a3b8;
  transition: all 0.3s ease;
}

.fresh-input:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.1),
    0 4px 20px rgba(102, 126, 234, 0.15);
  outline: none;
  transform: translateY(-2px);
}

.fresh-input:focus::placeholder {
  color: #cbd5e1;
  transform: translateX(10px);
}

/* 输入框组 */
.fresh-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.fresh-input-group .fresh-input {
  padding-left: 50px;
}

.fresh-input-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 18px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.fresh-input-group:focus-within .fresh-input-icon {
  color: #667eea;
  transform: scale(1.1);
}

/* 清除按钮 */
.fresh-input-clear {
  position: absolute;
  right: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px;
}

.fresh-input-group:hover .fresh-input-clear,
.fresh-input-group:focus-within .fresh-input-clear {
  opacity: 1;
}

.fresh-input-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* 浮动标签 */
.fresh-floating-label {
  position: relative;
}

.fresh-floating-label input {
  padding-top: 20px;
  padding-bottom: 8px;
}

.fresh-floating-label label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

.fresh-floating-label input:focus + label,
.fresh-floating-label input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #667eea;
  background: white;
}

/* 选择框样式 */
.fresh-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.fresh-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* ==================== 悬浮按钮 ==================== */
.float-menu {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
}

.float-btn-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(94, 234, 212, 0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-btn-main:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(94, 234, 212, 0.7);
}

.float-menu-items {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.float-menu.active .float-menu-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-menu-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.float-menu-item:hover {
  transform: scale(1.1);
  background: var(--primary-light);
}

/* ==================== 欢迎语样式 ==================== */
.welcome-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ==================== 统计卡片 ==================== */
.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.stat-card-icon.green {
  background: linear-gradient(135deg, #86efac, #22c55e);
  color: white;
}

.stat-card-icon.blue {
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
  color: white;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-card-label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== 公告样式 ==================== */
.notice-card {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(125, 211, 252, 0.1));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  margin-bottom: 20px;
}

/* ==================== 商品卡片 ==================== */
.goods-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.goods-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.goods-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition);
}

.goods-card:hover .goods-card-img {
  transform: scale(1.05);
}

.goods-card-body {
  padding: 15px;
}

.goods-card-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.goods-card-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

/* ==================== 加载动画 ==================== */
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
  .fresh-card {
    margin-bottom: 15px;
  }
  
  .float-menu {
    right: 15px;
    bottom: 80px;
  }
  
  .stat-card {
    margin-bottom: 15px;
  }
}

/* ==================== 气泡按钮磁吸效果 ==================== */
.bubble-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(94, 234, 212, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bubble-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(94, 234, 212, 0.6);
}

.bubble-btn.orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

.bubble-btn.orange:hover {
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.6);
}

.bubble-btn.pink {
  background: linear-gradient(135deg, #f9a8d4, #ec4899);
  box-shadow: 0 4px 15px rgba(249, 168, 212, 0.4);
}

.bubble-btn.pink:hover {
  box-shadow: 0 10px 30px rgba(249, 168, 212, 0.6);
}

/* ==================== 搜索框 - 现代设计 ==================== */
.fresh-search-container {
  position: relative;
  width: 100%;
}

.fresh-search {
  width: 100%;
  padding: 18px 25px 18px 55px;
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: 30px;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  color: #1e293b;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.fresh-search::placeholder {
  color: #94a3b8;
  transition: all 0.3s ease;
}

.fresh-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.fresh-search:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.15),
    0 8px 30px rgba(102, 126, 234, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: scale(1.02);
}

.fresh-search:focus + .fresh-search-icon,
.fresh-search-container:focus-within .fresh-search-icon {
  color: #667eea;
  transform: translateY(-50%) scale(1.1);
}

.fresh-search:focus::placeholder {
  color: #cbd5e1;
}

/* 搜索建议下拉 */
.fresh-search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.fresh-search-container:focus-within .fresh-search-suggestions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fresh-search-suggestion-item {
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
}

.fresh-search-suggestion-item:hover {
  background: rgba(102, 126, 234, 0.08);
  padding-left: 30px;
}

.fresh-search-suggestion-item i {
  color: #94a3b8;
  font-size: 14px;
}

/* ==================== 标签滑动切换 - 现代设计 ==================== */
.fresh-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 6px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  gap: 4px;
}

.fresh-tab {
  flex: 1;
  padding: 14px 24px;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  border: none;
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fresh-tab i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.fresh-tab:hover {
  color: #475569;
  background: rgba(255, 255, 255, 0.5);
}

.fresh-tab:hover i {
  transform: scale(1.1);
}

.fresh-tab.active {
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.fresh-tab.active i {
  transform: scale(1.1);
}

/* 滑动指示器 */
.fresh-tabs-indicator {
  position: absolute;
  bottom: 6px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.fresh-tab.active ~ .fresh-tabs-indicator {
  opacity: 1;
}

/* 标签内容动画 */
.tab-content-fade {
  animation: fadeInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* 标签徽章 */
.fresh-tab-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(250, 112, 154, 0.4);
}

/* ==================== 玻璃拟态面板 ==================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==================== 3D翻转统计卡片 ==================== */
.stat-card-3d {
  perspective: 1000px;
  height: 150px;
}

.stat-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.stat-card-3d:hover .stat-card-inner {
  transform: rotateY(180deg);
}

.stat-card-front, .stat-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stat-card-front {
  background: white;
  box-shadow: var(--shadow-soft);
}

.stat-card-back {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: rotateY(180deg);
  color: white;
}

/* ==================== 底部Dock气泡栏 - 2.0升级版 ==================== */
.dock-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 12px 20px;
  border-radius: 28px;
  box-shadow: 
    0 10px 40px rgba(31, 38, 135, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 -2px 10px rgba(255, 255, 255, 0.5) inset;
  z-index: 99999;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: dockAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dockAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
  min-width: 65px;
  padding: 8px 12px;
  border-radius: 20px;
}

.dock-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.dock-item:hover::before {
  opacity: 1;
}

.dock-item i {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 6px;
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.3) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.dock-item i::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.dock-item:hover i {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.4) inset,
    0 0 20px rgba(255,255,255,0.3);
  border-radius: 20px;
}

.dock-item:hover i::after {
  left: 100%;
}

.dock-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.dock-item:hover .dock-label {
  color: #667eea;
  transform: translateY(-2px);
}

.dock-item.active .dock-label {
  color: #667eea;
  font-weight: 700;
}

/* Dock栏图标渐变 - 现代配色 */
.dock-item.home i {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.dock-item.cart i {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

.dock-item.user i {
  background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
}

.dock-item.service i {
  background: linear-gradient(135deg, #54a0ff 0%, #5f27cd 100%);
}

/* 购物车徽章 */
.dock-item .badge {
  position: absolute;
  top: 5px;
  right: 8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,107,107,0.4);
  z-index: 10;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 活跃指示点 */
.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: #667eea;
  border-radius: 50%;
  animation: dotAppear 0.3s ease;
}

@keyframes dotAppear {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* 点击波纹效果 */
.dock-item:active i {
  transform: translateY(-2px) scale(0.95);
}

/* ==================== 数值跳动动画 ==================== */
.number-pop {
  animation: numberPop 0.3s ease;
}

@keyframes numberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==================== 磁贴式入口 ==================== */
.magnet-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.magnet-tile:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(94, 234, 212, 0.3);
}

.magnet-tile i {
  font-size: 18px;
}

/* ==================== 底部抽屉触发器 ==================== */
.drawer-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
}

.drawer-trigger:hover {
  box-shadow: var(--shadow-hover);
}

.drawer-trigger i {
  transition: transform 0.3s ease;
}

.drawer-trigger.active i {
  transform: rotate(180deg);
}

/* ==================== 旋转3D徽章 ==================== */
.badge-3d {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  box-shadow: 0 10px 30px rgba(94, 234, 212, 0.4);
  animation: rotate3d 10s linear infinite;
  margin: 0 auto 20px;
}

@keyframes rotate3d {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(94, 234, 212, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/**
 * ========================================
 * 2025现代CSS特性
 * ========================================
 */

/* CSS层叠层 - 更好的样式管理 */
@layer base, components, utilities;

@layer base {
  /* 基础样式 */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    padding: 0;
  }
}

@layer components {
  /* 组件样式 */
  .glass-card {
    container-type: inline-size;
  }
  
  /* 容器查询 - 基于组件尺寸的响应式 */
  @container (max-width: 300px) {
    .glass-card {
      padding: 12px;
    }
    
    .glass-card h3 {
      font-size: 16px;
    }
  }
  
  @container (min-width: 500px) {
    .glass-card {
      padding: 32px;
    }
    
    .glass-card h3 {
      font-size: 24px;
    }
  }
}

@layer utilities {
  /* 工具类 */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* prefers-reduced-motion - 尊重用户动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .bubble,
  .bubbles-container {
    display: none;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
  
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --primary: #00ff00;
    --primary-dark: #00cc00;
  }
  
  .glass-card {
    border: 2px solid currentColor;
  }
}
