/* 
 * 皖新教育综合服务平台 - 样式文件
 * 全球第一梯队科技感设计
 */

/* ==================== 字体引入 ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* ==================== 基础变量 ==================== */
:root {
  /* 主色调 - 科技渐变绿 */
  --md-sys-color-primary: #00d083;
  --md-sys-color-primary-dark: #00a86b;
  --md-sys-color-primary-light: #3df5b6;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: rgba(0, 208, 131, 0.1);
  --md-sys-color-on-primary-container: #003d26;
  
  /* 渐变色系 */
  --gradient-primary: linear-gradient(135deg, #00d083 0%, #00a86b 100%);
  --gradient-secondary: linear-gradient(135deg, #4a90f2 0%, #7c4dff 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff4081 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-mesh: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* 次要色 - 活力蓝 */
  --md-sys-color-secondary: #4a90f2;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d4e4fc;
  --md-sys-color-on-secondary-container: #002859;
  
  /* 强调色 */
  --accent-orange: #ff6b35;
  --accent-yellow: #ffc107;
  --accent-pink: #ff4081;
  --accent-purple: #7c4dff;
  --accent-cyan: #00f5ff;
  
  /* 背景色 - 科技白 */
  --md-sys-color-background: #fafbff;
  --md-sys-color-on-background: #0a0a0f;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-variant: #f5f7ff;
  --md-sys-color-on-surface: #0a0a0f;
  --md-sys-color-on-surface-variant: #5a6a7e;
  
  /* 玻璃态效果 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* 光晕效果 */
  --glow-primary: 0 0 40px rgba(0, 208, 131, 0.4);
  --glow-secondary: 0 0 40px rgba(74, 144, 242, 0.3);
  --glow-accent: 0 0 40px rgba(255, 107, 53, 0.3);
  
  /* 阴影层级 - 科技感 */
  --elevation-1: 0 4px 16px rgba(0, 208, 131, 0.15);
  --elevation-2: 0 8px 32px rgba(0, 208, 131, 0.2);
  --elevation-3: 0 16px 64px rgba(0, 208, 131, 0.25);
  --elevation-4: 0 24px 96px rgba(0, 208, 131, 0.3);
  
  /* 圆角 - 现代感 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 72px;
  
  /* 动画 - 高级缓动 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 字体 */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', 'Noto Sans SC', sans-serif;
}

/* ==================== 重置样式 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss02', 'cv01';
  text-rendering: optimizeLegibility;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--md-sys-color-surface-variant);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-sys-color-primary-dark);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease;
}

/* 选中文本样式 */
::selection {
  background: var(--md-sys-color-primary);
  color: white;
}

::-moz-selection {
  background: var(--md-sys-color-primary);
  color: white;
}

/* ==================== 粒子背景 ==================== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 208, 131, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(74, 144, 242, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(124, 77, 255, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, #fafbff 0%, #f0f4ff 100%);
}

/* 动态网格背景 */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(0, 208, 131, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 208, 131, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 浮动光斑 */
.floating-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 208, 131, 0.3);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(74, 144, 242, 0.3);
  top: 50%;
  right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(124, 77, 255, 0.25);
  bottom: -175px;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(40px, 40px) scale(1.05); }
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 208, 131, 0.1);
  transition: var(--transition-normal);
  box-shadow: 0 4px 24px rgba(0, 208, 131, 0.08);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 208, 131, 0.5), transparent);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 40px rgba(0, 208, 131, 0.15);
  border-bottom-color: rgba(0, 208, 131, 0.2);
}

/* 导航栏 Logo 动画 */
.navbar-brand .logo-icon {
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 208, 131, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 208, 131, 0.5);
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 22px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--md-sys-color-primary), #00a86b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  list-style: none;
}

.navbar-nav a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: 15px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
}

/* 下拉菜单样式 */
.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown-toggle {
  cursor: pointer;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-sm);
  min-width: 160px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 208, 131, 0.1);
}

.navbar-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav .dropdown-menu li {
  margin: 0;
}

.navbar-nav .dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  border-radius: var(--radius-md);
}

.navbar-nav .dropdown-menu a:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
}

/* ==================== 入驻商家下拉菜单 ==================== */
.navbar-nav .dropdown-merchants .dropdown-menu.merchants-dropdown {
  width: 420px;
  padding: 0;
  overflow: hidden;
}

.merchants-header {
  background: var(--gradient-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.merchants-header h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.merchants-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
  font-weight: 500;
}

.merchants-list {
  max-height: 320px;
  overflow-y: auto;
  padding: var(--spacing-sm);
}

body.merchant-page .merchants-list {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.merchant-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.merchant-item:hover {
  background: var(--md-sys-color-primary-container);
  border-color: rgba(0, 208, 131, 0.2);
}

.merchant-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--elevation-1);
}

.merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.merchant-logo .svg-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.merchant-info {
  flex: 1;
  min-width: 0;
}

.merchant-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.merchant-verified {
  width: 16px;
  height: 16px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.merchant-products {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.merchant-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--accent-yellow);
}

.merchant-rating .star {
  font-size: 10px;
}

.merchant-product-count {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-variant);
  padding: 2px 6px;
  border-radius: 10px;
}

.merchants-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--md-sys-color-surface-variant);
  background: var(--md-sys-color-surface-variant);
}

.btn-apply {
  display: block;
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

/* 商家下拉菜单滚动条 */
.merchants-list::-webkit-scrollbar {
  width: 6px;
}

.merchants-list::-webkit-scrollbar-track {
  background: var(--md-sys-color-surface-variant);
  border-radius: 3px;
}

.merchants-list::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-primary);
  border-radius: 3px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* 移动端菜单按钮默认隐藏 */
.mobile-menu-btn {
  display: none !important;
}

/* 平板和手机端显示菜单按钮 */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .navbar-actions .btn {
    padding: 6px 10px;
  }
  
  .navbar-actions .btn-text {
    display: none !important;
  }
}

/* 小手机端隐藏部分按钮 */
@media (max-width: 480px) {
  .navbar-actions > a:nth-child(2) {
    display: none;
  }
}

/* ==================== 搜索框 ==================== */
.search-container {
  position: relative;
  width: 320px;
}

.search-home {
  width: min(420px, 34vw);
}

.search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  padding-left: var(--spacing-md);
  padding-right: 56px;
  background: var(--md-sys-color-surface-variant);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 208, 131, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 16px;
}

.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 208, 131, 0.2);
  transition: var(--transition-fast);
}

.search-submit:hover {
  transform: translateY(-50%) scale(1.05);
}

.search-submit .svg-icon,
.search-submit svg {
  width: 18px;
  height: 18px;
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
  z-index: 1300;
}

.search-panel[hidden] {
  display: none;
}

.search-panel-group-title {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 4px 0 8px;
  padding: 0 8px;
}

.search-panel-list {
  display: grid;
  gap: 6px;
}

.search-panel-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.search-panel-item:hover {
  background: rgba(0, 208, 131, 0.08);
}

.search-panel-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 208, 131, 0.12);
  color: var(--md-sys-color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-panel-item-icon svg {
  width: 20px;
  height: 20px;
}

.search-panel-item-text {
  min-width: 0;
  flex: 1;
}

.search-panel-item-title {
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-panel-item-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-panel-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chip {
  border: none;
  background: rgba(0, 208, 131, 0.08);
  color: var(--md-sys-color-primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-chip:hover {
  background: rgba(0, 208, 131, 0.16);
}

.search-results-section {
  scroll-margin-top: 120px;
}

.search-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-results-meta {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.search-result-card {
  background: var(--md-sys-color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.search-result-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.search-result-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(0, 208, 131, 0.12);
  color: var(--md-sys-color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-card-icon svg {
  width: 24px;
  height: 24px;
}

.search-result-card-title {
  color: var(--md-sys-color-on-surface);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-result-card-subtitle,
.search-result-card-desc {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  line-height: 1.6;
}

.search-result-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.search-result-empty {
  grid-column: 1 / -1;
  padding: 32px 24px;
  border-radius: 24px;
  text-align: center;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  min-height: 48px;
}

.btn svg,
.btn span[class*="icon-"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: var(--transition-normal);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--md-sys-color-primary);
  color: white;
  box-shadow:
    0 4px 16px rgba(0, 208, 131, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}

.btn-primary::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: var(--transition-slow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 32px rgba(0, 208, 131, 0.4),
    0 0 40px rgba(0, 208, 131, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

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

/* 图标颜色优化 - 确保可见 */
.btn svg,
.card svg,
.navbar svg {
  color: inherit !important;
  fill: currentColor !important;
}

/* 按钮内的图标强制白色 */
.btn-primary svg,
.btn-primary span[class*="icon-"] svg {
  color: white !important;
  fill: white !important;
}

/* 白色背景上的图标强制绿色 */
.card:not(.card-glass) svg,
.brand-card svg {
  color: var(--md-sys-color-primary) !important;
  fill: var(--md-sys-color-primary) !important;
}

/* 特定图标颜色 */
.icon-wechat svg {
  color: #07c160 !important;
  fill: #07c160 !important;
}

.icon-alipay svg {
  color: #1677ff !important;
  fill: #1677ff !important;
}

.icon-phone svg,
.icon-phone-login svg {
  color: var(--md-sys-color-primary) !important;
  fill: var(--md-sys-color-primary) !important;
}

.btn-secondary {
  background: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
  background: #e8ecf5;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(0, 208, 131, 0.3);
  color: var(--md-sys-color-primary);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

.btn-outline:hover {
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 208, 131, 0.3);
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-glow {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 
    0 4px 20px rgba(0, 208, 131, 0.4),
    0 0 60px rgba(0, 208, 131, 0.2);
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 208, 131, 0.4), 0 0 60px rgba(0, 208, 131, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(0, 208, 131, 0.5), 0 0 80px rgba(0, 208, 131, 0.3); }
}

.btn-fab {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(0, 208, 131, 0.4),
    0 0 40px rgba(0, 208, 131, 0.2);
  transition: var(--transition-normal);
  z-index: 999;
}

.btn-fab:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 
    0 8px 40px rgba(0, 208, 131, 0.5),
    0 0 60px rgba(0, 208, 131, 0.3);
}

/* 涟漪效果 */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.3s;
}

.btn:active::after {
  transform: scale(2);
  opacity: 1;
  transition: transform 0s;
}

/* ==================== 卡片 ==================== */
.card {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--elevation-1);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 208, 131, 0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: var(--transition-normal);
  filter: blur(20px);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 
    var(--elevation-3),
    0 0 60px rgba(0, 208, 131, 0.15);
  border-color: rgba(0, 208, 131, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 0.1;
}

/* 玻璃态卡片 */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--md-sys-color-on-surface);
}

.card-subtitle {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: var(--spacing-md);
}

.card-content {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==================== 栅格布局 ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-lg);
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/* ==================== 主内容区 ==================== */
.main-content {
  padding-top: 100px;
  min-height: calc(100vh - 200px);
}

/* ==================== Hero 区域 ==================== */
.hero {
  text-align: center;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 208, 131, 0.1) 0%, transparent 70%);
  z-index: -1;
  filter: blur(60px);
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #0a0a0f 0%, #5a6a7e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.hero p {
  font-size: 20px;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  font-weight: 400;
  line-height: 1.7;
}

/* Hero CTA 按钮组 */
.hero .btn {
  position: relative;
  overflow: hidden;
}

.hero .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: var(--transition-slow);
}

.hero .btn:hover::before {
  left: 100%;
}

/* ==================== 业务模块 ==================== */
.business-section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--md-sys-color-on-surface);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.business-card {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 208, 131, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(0, 208, 131, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.business-card:hover::before {
  opacity: 1;
}

.business-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, 
    transparent 0deg, 
    rgba(0, 208, 131, 0.03) 60deg, 
    transparent 120deg,
    transparent 360deg);
  animation: rotateGlow 6s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.business-card:hover::after {
  opacity: 1;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.business-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 208, 131, 0.2),
    0 0 80px rgba(0, 208, 131, 0.1),
    inset 0 0 60px rgba(0, 208, 131, 0.02);
  border-color: rgba(0, 208, 131, 0.3);
}

.business-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 
    0 8px 32px rgba(0, 208, 131, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.business-icon svg {
  width: 44px;
  height: 44px;
  color: white !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.business-card:hover .business-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 
    0 16px 48px rgba(0, 208, 131, 0.5),
    0 0 60px rgba(0, 208, 131, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.business-icon svg {
  transform: scale(1.1);
}

.business-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--md-sys-color-on-surface);
}

.business-desc {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

/* ==================== 商品列表 ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 208, 131, 0.08);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 208, 131, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
  pointer-events: none;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 208, 131, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 0;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 208, 131, 0.2),
    0 0 80px rgba(0, 208, 131, 0.1);
  border-color: rgba(0, 208, 131, 0.3);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--md-sys-color-surface-variant);
  transition: var(--transition-slow);
  position: relative;
  z-index: 2;
}

.product-card:hover .product-image {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.product-info {
  padding: 16px;
  position: relative;
  z-index: 2;
  background: var(--md-sys-color-surface);
}

.product-info > * {
  margin-bottom: 8px;
}

.product-info > *:last-child {
  margin-bottom: 0;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--md-sys-color-on-surface);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 40px;
  letter-spacing: -0.01em;
  word-break: break-word;
}

@media (max-width: 480px) {
  .product-name {
    font-size: 14px;
    min-height: 42px;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .product-image {
    height: 180px;
  }
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--google-red);
  margin-bottom: var(--spacing-sm);
}

.product-old-price {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: line-through;
  margin-left: var(--spacing-sm);
}

/* ==================== 表单 ==================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--md-sys-color-on-surface);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--md-sys-color-surface);
  border: 2px solid #e8ecf1;
  border-radius: var(--radius-lg);
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 4px rgba(0, 208, 131, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: 12px;
  color: var(--google-red);
  margin-top: var(--spacing-xs);
}

/* ==================== 登录注册切换标签 ==================== */
.auth-tabs {
  display: flex;
  position: relative;
  margin-bottom: 28px;
  background: rgba(0, 208, 131, 0.15);
  border-radius: var(--radius-xl);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent !important;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-xl) - 2px);
}

.auth-tab.active {
  color: #fff;
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gradient-primary);
  border-radius: calc(var(--radius-xl) - 2px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 208, 131, 0.3);
}

/* ==================== 复选框 ==================== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--md-sys-color-primary);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.checkbox-group a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

/* ==================== 页脚 ==================== */
.footer {
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  border-top: 1px solid #e8ecf1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--md-sys-color-on-surface);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--md-sys-color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

/* ==================== 徽章 ==================== */
.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.badge-primary {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.badge-success {
  background: rgba(52, 168, 83, 0.2);
  color: var(--google-green);
}

.badge-warning {
  background: rgba(251, 188, 5, 0.2);
  color: var(--google-yellow);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动画类 */
.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* 延迟类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 骨架屏加载 */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--md-sys-color-surface-variant) 0%,
    var(--md-sys-color-surface) 50%,
    var(--md-sys-color-surface-variant) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--md-sys-color-surface-variant);
  border-top-color: var(--md-sys-color-primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* 页面过渡 */
.page-transition {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 滚动触发动画 */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 骨架屏 ==================== */
.skeleton {
  background: linear-gradient(90deg, 
    var(--md-sys-color-surface-variant) 25%, 
    var(--md-sys-color-surface) 50%, 
    var(--md-sys-color-surface-variant) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================== 轮播 ==================== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-indicators {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicator.active {
  background: var(--md-sys-color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ==================== 评价卡片 ==================== */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.review-card {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.review-header-info {
  min-width: 0;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.review-rating {
  color: var(--google-yellow);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.review-rating .svg-icon {
  width: 14px;
  height: 14px;
}

.review-content {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  word-break: break-word;
}

.product-rating-stars {
  color: var(--google-yellow);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.product-rating-stars .svg-icon {
  width: 16px;
  height: 16px;
}

.product-review-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-review-header-info {
  min-width: 0;
}

.product-review-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  flex-wrap: wrap;
}

/* ==================== 流程步骤 ==================== */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: var(--spacing-xl) 0;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--md-sys-color-surface-variant);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.process-step-icon {
  width: clamp(48px, 5vw, 64px) !important;
  height: clamp(48px, 5vw, 64px) !important;
  margin: 0 auto var(--spacing-sm);
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--md-sys-color-on-primary);
}

.process-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

/* ==================== 通知 ==================== */
.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--md-sys-color-surface);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-4);
  z-index: 2000;
  transition: var(--transition-normal);
  opacity: 0;
}

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

.toast-success {
  border-left: 4px solid var(--google-green);
}

.toast-error {
  border-left: 4px solid var(--google-red);
}

.toast-warning {
  border-left: 4px solid var(--google-yellow);
}

/* ==================== 模态框 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 90%;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--md-sys-color-on-surface);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 24px;
  cursor: pointer;
}

/* ==================== 购物车图标 ==================== */
.cart-icon-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--google-red);
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

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

/* 平板端 (1024px 及以下) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .row {
    gap: var(--spacing-md);
  }
  
  .col-8, .col-6, .col-4, .col-3 {
    grid-column: span 6;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机端横屏/小平板 (768px 及以下) */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
  }
  
  .navbar {
    padding: 0 var(--spacing-sm);
    height: 56px;
  }
  
  .navbar-brand {
    font-size: 18px;
  }
  
  .navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .search-container {
    width: 160px;
  }

  .search-home {
    width: 220px;
  }

  .search-input {
    font-size: 13px;
    padding: 6px 12px;
    padding-left: 12px;
    padding-right: 44px;
  }

  .search-submit {
    width: 30px;
    height: 30px;
    right: 6px;
  }

  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .navbar-actions {
    gap: 8px;
  }
  
  .navbar-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  /* 移动端菜单按钮 */
  .mobile-menu-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
  }
  
  .hero {
    padding: 24px 0;
  }
  
  .hero h1 {
    font-size: 26px;
  }
  
  .hero p {
    font-size: 14px;
    max-width: 100%;
  }
  
  .hero .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .business-card {
    padding: 16px;
  }
  
  .business-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .business-title {
    font-size: 15px;
  }
  
  .business-desc {
    font-size: 12px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-image {
    height: 160px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-name {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  
  .row {
    gap: 12px;
  }
  
  .col-8, .col-6, .col-4, .col-3 {
    grid-column: span 12;
  }
  
  .process-steps {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .process-steps::before {
    display: none;
  }
  
  .process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  
  .process-step-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-section h4 {
    font-size: 14px;
  }
  
  .footer-section a {
    font-size: 13px;
  }
  
  .btn-fab {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  
  /* 表单优化 */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 15px; /* 防止 iOS 自动缩放 */
  }
  
  /* 模态框优化 */
  .modal {
    width: 95%;
    padding: 20px;
  }
  
  /* 轮播优化 */
  .carousel-indicators {
    bottom: 8px;
  }
  
  /* 评价卡片 */
  .reviews-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card {
    padding: 16px;
  }
  
  /* 购物车 */
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item img {
    width: 100%;
    height: 150px;
  }
}

/* 小手机 (480px 及以下) */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 28px;
  }
  
  .navbar {
    padding: 0 8px;
  }
  
  .navbar-brand span {
    display: none;
  }
  
  .search-container {
    display: none;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .navbar-actions .btn span {
    display: none;
  }
  
  .hero h1 {
    font-size: 22px;
  }
  
  .hero p {
    font-size: 13px;
  }
  
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .business-card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .business-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .business-title {
    font-size: 13px;
  }
  
  .business-desc {
    font-size: 11px;
    display: none;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .card {
    padding: 12px;
    border-radius: 12px;
  }
  
  /* 筛选栏优化 */
  .card:first-of-type .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  /* 页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    font-size: 11px;
  }
  
  .footer-bottom a {
    display: block;
    margin: 4px 0;
  }
  
  /* 按钮 */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* 浮动按钮 */
  .btn-fab {
    width: 44px;
    height: 44px;
    bottom: 12px;
    right: 12px;
  }
  
  /* Toast 提示 */
  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    width: auto;
  }
  
  .toast.show {
    transform: translateX(0) translateY(0);
  }
  
  /* 模态框 */
  .modal-overlay {
    padding: 16px;
  }
  
  .modal {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
  }
  
  /* 表单 */
  .form-group {
    margin-bottom: 12px;
  }
  
  .form-label {
    font-size: 13px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  /* 流程步骤 */
  .process-step {
    padding: 12px;
    background: var(--md-sys-color-surface-variant);
    border-radius: 12px;
  }
  
  /* 评价 */
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  /* 购物车 */
  .cart-items .cart-item {
    padding: 12px;
  }
  
  /* 个人中心 */
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  /* 订单卡片 */
  .orders-list .card {
    padding: 12px;
  }
  
  /* 商品详情 */
  .product-detail-images {
    grid-template-columns: 1fr;
  }
  
  /* 结算页面 */
  .checkout-summary {
    order: -1;
    margin-bottom: 16px;
  }
  
  /* 隐藏次要元素 */
  .product-old-price {
    display: none;
  }
}

/* 超小屏幕 (360px 及以下) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 20px;
  }
  
  .business-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: 16px;
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar {
    height: 48px;
  }
  
  .hero {
    padding: 16px 0;
  }
  
  .main-content {
    padding-top: 72px;
  }
  
  .business-section {
    padding: 16px 0;
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .btn-fab,
  .footer,
  .toast,
  .modal-overlay {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  /* 如果将来需要深色模式，可以在这里定义 */
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== 移动端导航菜单 ==================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-sys-color-surface);
  z-index: 999;
  padding: var(--spacing-lg);
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.mobile-menu.show {
  display: block;
}

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

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.mobile-menu-overlay.show {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8ecf1;
  margin-bottom: 16px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--md-sys-color-surface-variant);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-on-surface);
}

/* 品牌 Logo 墙优化 */
.brand-logo,
.brand-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.merchant-case-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.merchant-case-meta {
  min-height: 20px;
}

.merchant-case-icon {
  width: 16px;
  height: 16px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.merchant-case-icon svg,
.merchant-stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.merchant-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
}

:is(.icon-users-merch, .icon-commission-merch, .icon-support-merch, .icon-data-merch, #payment-pending-icon, #payment-success-icon, #payment-failed-icon, #profile-user-icon) {
  width: clamp(56px, 8vw, 80px) !important;
  height: clamp(56px, 8vw, 80px) !important;
}

:is(#icon-safe, #icon-guide, #icon-photo, #icon-certificate, #icon-bulk, #icon-invoice, #icon-service, #about-icp-icon, #about-edi-icon, #about-pub-icon, #about-police-icon, #upload-icon, .learning-guarantee-icon) {
  width: clamp(48px, 6vw, 64px) !important;
  height: clamp(48px, 6vw, 64px) !important;
}

:is(.icon-users-merch, .icon-commission-merch, .icon-support-merch, .icon-data-merch, #payment-pending-icon, #payment-success-icon, #payment-failed-icon, #profile-user-icon, #icon-safe, #icon-guide, #icon-photo, #icon-certificate, #icon-bulk, #icon-invoice, #icon-service, #about-icp-icon, #about-edi-icon, #about-pub-icon, #about-police-icon, #upload-icon, .learning-guarantee-icon) svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 208, 131, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.brand-card:hover::before {
  opacity: 1;
}

/* 品牌 Logo 响应式 */
@media (max-width: 768px) {
  .reviews-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-review-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-card {
    padding: 20px !important;
  }
  
  .brand-card > div:first-child {
    width: 100px !important;
    height: 50px !important;
    font-size: 18px !important;
  }
  
  .brand-card > div:nth-child(2) {
    font-size: 13px !important;
  }
  
  .brand-card > div:nth-child(3) {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .product-rating-stars .svg-icon {
    width: 14px;
    height: 14px;
  }

  .product-review-actions {
    gap: 10px 14px;
  }

  .brand-card {
    padding: 16px !important;
  }
  
  .brand-card > div:first-child {
    width: 90px !important;
    height: 45px !important;
    font-size: 16px !important;
  }
  
  .brand-card > div:nth-child(2) {
    font-size: 12px !important;
  }
  
  .brand-card > div:nth-child(3) {
    font-size: 10px !important;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .brand-logo {
    padding: 16px !important;
  }
  
  .merchant-case-card {
    min-height: 144px;
  }

  .merchant-case-icon {
    width: 15px;
    height: 15px;
  }

  .merchant-stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .brand-logo > div:first-child {
    width: 100px !important;
    height: 50px !important;
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    padding: 12px !important;
  }
  
  .merchant-case-card {
    min-height: auto;
  }

  .merchant-case-meta {
    font-size: 11px !important;
  }

  .merchant-case-icon {
    width: 14px;
    height: 14px;
  }

  .merchant-stat-icon {
    width: 36px;
    height: 36px;
  }

  .brand-logo > div:first-child {
    width: 80px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .brand-logo > div:nth-child(2) {
    font-size: 12px !important;
  }
  
  .brand-logo > div:nth-child(3) {
    font-size: 11px !important;
  }
}

/* 移动端底部导航 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--md-sys-color-surface);
  border-top: 1px solid #e8ecf1;
  z-index: 997;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-nav.show {
  display: flex;
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 11px;
  gap: 6px;
  transition: var(--transition-fast);
  padding: 8px 4px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--md-sys-color-primary);
}

.mobile-bottom-nav a svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.mobile-bottom-nav a span:last-child {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 显示移动端导航的媒体查询 */
@media (max-width: 768px) {
  .mobile-bottom-nav.show {
    display: flex;
  }
}

@media (max-width: 480px) {
  .mobile-bottom-nav.show {
    display: flex;
  }
  
  .main-content {
    padding-bottom: 70px; /* 为底部导航留空间 */
  }
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-primary { color: var(--md-sys-color-primary); }
.text-success { color: var(--google-green); }
.text-warning { color: var(--google-yellow); }
.text-danger { color: var(--google-red); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* 触摸优化 */
.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* 防止长按选中 */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 防止 iOS 缩放 */
input,
select,
textarea {
  font-size: 16px;
}

@media (max-width: 768px) {
  input,

/* ==================== 入驻商家页面 ==================== */
.merchants-page {
  padding-top: 72px;
  min-height: 100vh;
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, rgba(0, 208, 131, 0.1) 0%, rgba(74, 144, 242, 0.1) 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 208, 131, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.title-icon {
  font-size: 32px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: var(--spacing-xl);
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 208, 131, 0.2);
  min-width: 100px;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 2px;
}

.btn-apply-merchant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--elevation-1);
  transition: var(--transition-normal);
}

.btn-apply-merchant:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

.btn-icon {
  font-size: 20px;
  font-weight: 300;
}

/* 搜索筛选区 */
.search-filter-section {
  padding: var(--spacing-md) 0;
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-surface-variant);
}

.search-filter-box {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 600px;
  position: relative;
}

.search-input-merchant {
  width: 100%;
  padding: 10px 48px 10px var(--spacing-md);
  background: var(--md-sys-color-surface-variant);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 14px;
  transition: var(--transition-fast);
}

.search-input-merchant:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 208, 131, 0.15);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

.filter-tabs {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 6px 12px;
  background: var(--md-sys-color-surface-variant);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
}

.filter-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--md-sys-color-primary);
}

/* 商家列表 */
.merchants-list-section {
  padding: var(--spacing-xl) 0;
}

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.merchant-card {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-1);
  transition: var(--transition-normal);
  border: 1px solid var(--md-sys-color-surface-variant);
}

.merchant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-2);
  border-color: rgba(0, 208, 131, 0.3);
}

.merchant-card-header {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(0, 208, 131, 0.1) 0%, rgba(74, 144, 242, 0.1) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.merchant-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.merchant-card-logo svg {
  width: 24px;
  height: 24px;
  color: white;
}

.merchant-card-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: rgba(0, 208, 131, 0.15);
  border-radius: 12px;
  font-size: 11px;
  color: var(--md-sys-color-primary);
  font-weight: 500;
}

.merchant-verified-badge {
  width: 14px;
  height: 14px;
}

.merchant-card-body {
  padding: var(--spacing-md);
}

.merchant-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 6px;
}

.merchant-card-desc {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchant-card-category {
  display: inline-block;
  padding: 3px 8px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}

.merchant-card-stats {
  display: flex;
  gap: var(--spacing-md);
  padding-top: 8px;
  border-top: 1px solid var(--md-sys-color-surface-variant);
}

.merchant-card-stats .stat {
  text-align: center;
}

.merchant-card-stats .stat-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.merchant-card-stats .stat-value.rating {
  color: var(--accent-yellow);
  font-size: 12px;
  letter-spacing: 1px;
}

.merchant-card-stats .stat-label {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
}

.merchant-year {
  font-size: 11px;
  color: var(--md-sys-color-primary);
  background: rgba(0, 208, 131, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 500;
}

.merchant-card-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--md-sys-color-surface-variant);
  border-top: 1px solid var(--md-sys-color-surface-variant);
}

.btn-view-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 6px var(--spacing-sm);
  background: white;
  border: 1px solid var(--md-sys-color-primary);
  color: var(--md-sys-color-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-view-store:hover {
  background: var(--gradient-primary);
  border-color: var(--md-sys-color-primary);
  color: white;
}

.btn-view-store svg {
  width: 14px;
  height: 14px;
}

.load-more-container {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: white;
  border: 1px solid var(--md-sys-color-primary);
  color: var(--md-sys-color-primary);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-load-more:hover {
  background: var(--gradient-primary);
  border-color: var(--md-sys-color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-load-more svg {
  width: 16px;
  height: 16px;
}

/* 入驻优势 */
.benefits-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--md-sys-color-background) 0%, var(--md-sys-color-surface-variant) 100%);
}

.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: var(--spacing-xl);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
}

.benefit-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--elevation-1);
  transition: var(--transition-normal);
}

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

.benefit-icon {
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

/* 合作案例 */
.process-section {
  padding: var(--spacing-xl) 0;
  background: var(--md-sys-color-surface);
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.case-study {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--md-sys-color-surface-variant);
  transition: var(--transition-normal);
}

.case-study:hover {
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--elevation-2);
  transform: translateY(-4px);
}

.case-logo {
  font-size: 40px;
  margin-bottom: var(--spacing-sm);
}

.case-study h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: var(--spacing-sm);
}

.case-desc {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.case-tags .tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  border-radius: 10px;
  font-weight: 500;
}

.process-cta {
  text-align: center;
}

.btn-large {
  padding: 10px 28px;
  font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }
  
  .title-icon {
    font-size: 36px;
  }
  
  .header-stats {
    gap: var(--spacing-md);
  }
  
  .stat-item {
    min-width: 80px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .stat-number {
    font-size: 22px;
  }
  
  .merchants-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
}
  select,
  textarea {
    font-size: 15px;
  }
}
