/* =====================================================
   八艾云 2026 - 优刻得风格设计
   UCloud Style Design System
   ===================================================== */

:root {
  /* UCloud 品牌色 */
  --primary: #2B6DE8;
  --primary-dark: #1E5BC6;
  --primary-light: #4A8AF4;
  --primary-50: #EBF3FF;
  --primary-100: #D6E7FF;
  
  /* 强调色 - 橙色渐变 */
  --accent: #FF6A00;
  --accent-light: #FF8C33;
  --accent-gradient: linear-gradient(135deg, #FF6A00 0%, #FF9500 100%);
  
  /* 主渐变 */
  --gradient-primary: linear-gradient(135deg, #2B6DE8 0%, #5B8DEF 100%);
  --gradient-hero: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
  --gradient-dark: linear-gradient(180deg, #1A1F36 0%, #252B42 100%);
  
  /* 中性色 */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* 功能色 */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* 背景 */
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-dark: #1A1F36;
  
  /* 文字 */
  --text-primary: #1A1F36;
  --text-secondary: #5A6178;
  --text-tertiary: #8C92A4;
  --text-white: #FFFFFF;
  
  /* 边框 */
  --border-light: #E8EBF0;
  --border-medium: #D4D9E3;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 24px rgba(43,109,232,0.25);
  
  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  
  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* 过渡 */
  --transition: all 0.25s ease;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1400px) {
  .container { max-width: 1360px; }
}

/* =====================================================
   Header - Modern Style
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-main {
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 38px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 44px;
  }
}

/* Navigation */
.nav {
  display: none;
}

@media (min-width: 1200px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #6366F1 100%);
  border-radius: 3px;
}

.nav-link svg,
.nav-link .iconify {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-item:hover .nav-link svg,
.nav-item:hover .nav-link .iconify {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 580px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.nav-dropdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-dropdown-item:hover::before {
  opacity: 1;
}

.nav-dropdown-item:hover {
  transform: translateX(4px);
}

.nav-dropdown-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  transform: scale(1.08);
}

.nav-dropdown-icon svg,
.nav-dropdown-icon .iconify {
  width: 22px;
  height: 22px;
  color: #fff;
}

.nav-dropdown-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.nav-dropdown-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.nav-dropdown-item:hover .nav-dropdown-content h4 {
  color: var(--primary);
}

.nav-dropdown-content p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .header-actions {
    display: flex;
  }
}

/* Header Buttons */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.header-btn-login {
  color: var(--primary);
  background: rgba(43, 109, 232, 0.08);
  border: none;
}

.header-btn-login:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 109, 232, 0.3);
}

.header-btn-register {
  color: #fff;
  background: linear-gradient(135deg, #2B6DE8 0%, #6366F1 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(43, 109, 232, 0.25);
}

.header-btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

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

.header-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 109, 232, 0.4);
}

.header-btn-register .iconify {
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

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

/* User Dropdown - 已登录用户 */
.user-dropdown {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--border-light);
  background: #fff;
}

.user-trigger:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(43, 109, 232, 0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.user-avatar .avatar-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.user-avatar .avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.user-trigger .trigger-arrow {
  color: var(--text-tertiary);
  transition: transform 0.2s;
  margin-left: 4px;
}

.user-dropdown:hover .user-trigger .trigger-arrow {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

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

/* 用户卡片 */
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #2B6DE8 0%, #6366F1 100%);
  position: relative;
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-card-info {
  flex: 1;
}

.user-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.user-card-id {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.user-verified-badge {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-verified-badge .iconify {
  color: #fbbf24;
}

/* 余额显示 */
.user-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-balance-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-balance-label {
  font-size: 12px;
  color: #92400e;
}

.user-balance-amount {
  font-size: 20px;
  font-weight: 700;
  color: #b45309;
  font-family: 'DIN', 'Roboto', sans-serif;
}

.user-recharge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.user-recharge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.user-recharge-btn .iconify {
  color: #fff;
}

/* 快捷入口网格 */
.user-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px;
  background: var(--gray-50);
}

.user-menu-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.user-menu-quick .iconify {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.user-menu-quick span:last-child {
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.user-menu-quick:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-menu-quick:hover .iconify {
  color: var(--primary);
  transform: scale(1.1);
}

.user-menu-quick:hover span:last-child {
  color: var(--primary);
}

/* 更多链接 */
.user-menu-links {
  padding: 8px;
  border-top: 1px solid var(--border-light);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.user-menu-item:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.user-menu-item .iconify {
  color: var(--text-tertiary);
  transition: all 0.15s ease;
}

.user-menu-item:hover .iconify {
  color: var(--primary);
}

/* 退出按钮 */
.user-menu-footer {
  padding: 12px;
  border-top: 1px solid var(--border-light);
  background: var(--gray-50);
}

.user-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.user-logout-btn:hover {
  color: var(--error);
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

.user-logout-btn .iconify {
  transition: all 0.2s ease;
}

.user-logout-btn:hover .iconify {
  color: var(--error);
}

/* 移动端隐藏用户信息详情 */
@media (max-width: 768px) {
  .user-info {
    display: none;
  }
  
  .user-trigger {
    padding: 4px;
    border: none;
    background: transparent;
  }
  
  .user-trigger .trigger-arrow {
    display: none;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
  }
  
  .user-avatar .avatar-text {
    font-size: 14px;
  }
  
  .user-menu {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-50);
}

.btn-primary {
  color: #fff;
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43,109,232,0.35);
}

.btn-accent {
  color: #fff;
  background: var(--accent-gradient);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  padding: 80px var(--space-4) var(--space-6);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav-link.active::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.mobile-nav-actions .btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
}

/* 移动端用户信息 */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 8px;
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.mobile-user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* =====================================================
   Hero Banner - 现代设计
   ===================================================== */
.hero-banner {
  position: relative;
  margin-top: 70px;
  overflow: hidden;
}

/* 背景层 */
.hero-bg-slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

/* 蓝色主题 - 科技感 */
.hero-bg-slide[data-theme="blue"] {
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 40% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #F0F7FF 0%, #E8F3FF 50%, #DBEAFE 100%);
}

.hero-bg-slide[data-theme="blue"]::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-bg-slide[data-theme="blue"]::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

/* 紫色主题 - 创意感 */
.hero-bg-slide[data-theme="purple"] {
  background: 
    radial-gradient(ellipse 70% 50% at 30% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 50%, #EDE9FE 100%);
}

.hero-bg-slide[data-theme="purple"]::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite;
}

.hero-bg-slide[data-theme="purple"]::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}

/* 青色主题 - 清新感 */
.hero-bg-slide[data-theme="cyan"] {
  background: 
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #F0FDFF 0%, #E0FCFF 50%, #CFFAFE 100%);
}

.hero-bg-slide[data-theme="cyan"]::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -25%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  animation: float 22s ease-in-out infinite;
}

.hero-bg-slide[data-theme="cyan"]::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  animation: float 16s ease-in-out infinite reverse;
}

/* 橙色主题 - 活力感 */
.hero-bg-slide[data-theme="orange"] {
  background: 
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(251, 146, 60, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 60% 80%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFFBF5 0%, #FFF7ED 50%, #FFEDD5 100%);
}

.hero-bg-slide[data-theme="orange"]::before {
  content: '';
  position: absolute;
  top: -35%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
  animation: float 19s ease-in-out infinite;
}

.hero-bg-slide[data-theme="orange"]::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  animation: float 14s ease-in-out infinite reverse;
}

/* 背景浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }
  75% {
    transform: translate(15px, 10px) scale(1.02);
  }
}

/* 装饰网格 */
.hero-bg-slides::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}

/* 装饰点阵 */
.hero-bg-slides::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}

/* 右侧大图 */
.hero-illustration {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 480px;
  height: 360px;
  z-index: 2;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {
  .hero-illustration {
    display: block;
  }
}

@media (min-width: 1280px) {
  .hero-illustration {
    width: 42%;
    max-width: 520px;
    height: 400px;
    right: 8%;
  }
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-img svg {
  width: 100%;
  height: 100%;
}

.hero-img.active {
  opacity: 1;
  visibility: visible;
}

.hero-img.active svg {
  animation: floatSvg 5s ease-in-out infinite;
}

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

/* 内容区 */
.hero-slides {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  padding: 70px 0 90px;
}

.hero-slide.active {
  display: block;
}

.hero-content {
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 480px;
  }
  
  .hero-slide {
    padding: 80px 0 100px;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    max-width: 520px;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #2B6DE8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.3;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-desc {
  font-size: 15px;
  color: #5a6178;
  line-height: 1.8;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 16px;
  }
}

.hero-price {
  margin-bottom: 28px;
}

.hero-price-label {
  font-size: 14px;
  color: #8c92a4;
}

.hero-price-value {
  font-size: 42px;
  font-weight: 800;
  color: #FF6A00;
  line-height: 1;
  margin: 0 4px;
}

@media (min-width: 768px) {
  .hero-price-value {
    font-size: 52px;
  }
}

.hero-price-unit {
  font-size: 14px;
  color: #8c92a4;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2B6DE8 0%, #5B8DEF 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43,109,232,0.3);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43,109,232,0.4);
  color: #fff;
}

/* 指示器 */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  opacity: 0.2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  opacity: 0.4;
  transform: scale(1.2);
}

.hero-dot.active {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  opacity: 1;
  background: var(--gradient-primary);
}

/* 公告栏 */
.announce-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announce-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-label .iconify {
  width: 16px;
  height: 16px;
}

.announce-list-wrapper {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.announce-list {
  display: flex;
  gap: 32px;
  animation: announceScroll 20s linear infinite;
}

.announce-list:hover {
  animation-play-state: paused;
}

@keyframes announceScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announce-list li {
  flex-shrink: 0;
}

.announce-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.announce-list a:hover {
  color: var(--primary);
}

.announce-date {
  color: var(--text-tertiary);
  font-size: 13px;
}

.announce-title {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-more {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-more:hover {
  color: var(--primary-dark);
}

/* 移动端公告栏 */
@media (max-width: 767px) {
  .announce-inner {
    flex-wrap: wrap;
  }
  
  .announce-label {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .announce-list-wrapper {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }
  
  .announce-list {
    gap: 24px;
  }
  
  .announce-title {
    max-width: 200px;
  }
}

/* =====================================================
   Section Common
   ===================================================== */
.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-20) 0; }
}

.section-light {
  background: var(--bg-light);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(43,109,232,0.1) 0%, rgba(139,92,246,0.1) 100%);
  border: 1px solid rgba(43,109,232,0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.section-dark .section-badge {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-dark .section-title {
  color: #fff;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

/* =====================================================
   Products Grid
   ===================================================== */
.products-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(43,109,232,0.15);
  border-color: rgba(43,109,232,0.2);
}

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

.product-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.product-card.featured {
  border-color: var(--primary-100);
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg-white) 100%);
}

.product-card.featured::after {
  content: '热销';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: var(--transition);
}

.product-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.product-card:hover .product-icon {
  transform: scale(1.1);
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.product-features {
  margin-bottom: var(--space-5);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.product-feature svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.product-price-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.product-price-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.product-price-unit {
  font-size: 14px;
  color: var(--text-tertiary);
}

.product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.product-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.product-card:hover .product-btn {
  color: #fff;
  background: var(--gradient-primary);
}

.product-card:hover .product-btn svg {
  transform: translateX(4px);
}

/* =====================================================
   Features
   ===================================================== */
.features-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: var(--primary-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon svg {
  color: #fff;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* =====================================================
   Solutions
   ===================================================== */
.solutions-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

.solution-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.3s ease;
}

.solution-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.solution-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.solution-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-3);
}

.solution-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-light);
}

.solution-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.solution-link:hover svg {
  transform: translateX(6px);
}

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}

.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 480px) {
  .cta-buttons { flex-direction: row; }
}

.cta-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.cta-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.cta-btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* =====================================================
   News
   ===================================================== */
.news-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  transform: translateY(-6px);
  border-color: rgba(43,109,232,0.2);
}

.news-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-light);
}

.news-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.news-category {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.news-list {
  padding: var(--space-4) var(--space-5);
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-item:last-child { border-bottom: none; }

.news-item:hover {
  padding-left: var(--space-2);
}

.news-date {
  flex-shrink: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.news-title {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
}

.news-item:hover .news-title {
  color: var(--primary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: var(--space-12); }
}

.footer-brand {
  max-width: 300px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-brand { grid-column: span 2; max-width: 100%; }
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-5);
}

.footer-logo-img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.7);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-social a:hover svg {
  color: #fff;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-5);
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: var(--space-2) 0;
  transition: var(--transition);
}

.footer-column a:hover {
  color: #fff;
  padding-left: var(--space-2);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

.footer-qrcode {
  margin-top: var(--space-5);
}

.footer-qrcode img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 4px;
}

.footer-qrcode p {
  font-size: 12px;
  margin-top: var(--space-2);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright a {
  color: rgba(255,255,255,0.6);
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
  color: #fff;
}

/* =====================================================
   Floating Sidebar
   ===================================================== */
.floating-sidebar {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 1px solid #E8EBF0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  position: relative;
}

.sidebar-btn .iconify {
  width: 26px;
  height: 26px;
  color: #5A6178;
}

.sidebar-btn span:not(.iconify) {
  font-size: 11px;
  font-weight: 500;
  color: #5A6178;
}

.sidebar-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(43,109,232,0.4);
}

.sidebar-btn:hover .iconify,
.sidebar-btn:hover span {
  color: #fff;
}

/* 弹窗通用样式 */
.sidebar-popup {
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #fff;
  border: 1px solid #E8EBF0;
  border-radius: 12px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.sidebar-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #E8EBF0;
  border-top: 1px solid #E8EBF0;
}

.sidebar-btn:hover .sidebar-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* QQ弹窗 */
.qq-popup {
  min-width: 160px;
  text-align: center;
}

.qq-popup .qq-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1F36;
  margin-bottom: 10px;
}

.qq-popup .qq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #12B7F5 0%, #0099E5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.qq-popup .qq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18,183,245,0.4);
}

/* 电话弹窗 */
.phone-popup {
  min-width: 180px;
}

.phone-popup .phone-title {
  font-size: 12px;
  color: #8C92A4;
  margin-bottom: 6px;
}

.phone-popup .phone-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.phone-popup .phone-time {
  font-size: 12px;
  color: #8C92A4;
}

/* 微信弹窗 */
.wechat-popup {
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.wechat-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #E8EBF0;
  border-top: 1px solid #E8EBF0;
}

.wechat-popup img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}

.wechat-popup p {
  font-size: 12px;
  color: #8C92A4;
  margin-top: 10px;
}

.sidebar-btn.wechat-btn:hover .wechat-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.sidebar-btn.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.sidebar-btn.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================================
   Mobile Footer Styles
   ===================================================== */
@media (max-width: 767px) {
  /* Footer 移动端样式 */
  .footer {
    padding-top: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
    grid-column: span 1;
  }
  
  .footer-brand .footer-logo {
    display: flex;
    justify-content: center;
  }
  
  .footer-desc {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column h4 {
    font-size: 16px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
  }
  
  .footer-column h4::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
  }
  
  .footer-column.open h4::after {
    content: '−';
  }
  
  .footer-column a {
    display: none;
    padding: 8px 0;
  }
  
  .footer-column.open a {
    display: block;
  }
  
  .footer-contact-item {
    justify-content: center;
    display: none;
  }
  
  .footer-column.open .footer-contact-item {
    display: flex;
  }
  
  .footer-qrcode {
    display: none;
  }
  
  .footer-column.open .footer-qrcode {
    display: block;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px 0;
    font-size: 12px;
  }
  
  .footer-copyright {
    line-height: 1.8;
  }
  
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  /* Floating Sidebar 移动端样式 */
  .floating-sidebar {
    right: 10px;
    bottom: 80px;
    gap: 8px;
  }
  
  .sidebar-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  
  .sidebar-btn .iconify {
    width: 22px;
    height: 22px;
  }
  
  .sidebar-btn span:not(.iconify) {
    font-size: 10px;
  }
  
  /* 移动端隐藏弹窗，使用点击跳转 */
  .sidebar-popup {
    display: none !important;
  }
  
  /* 移动端悬停效果调整 */
  .sidebar-btn:hover {
    transform: none;
  }
  
  .sidebar-btn:active {
    background: var(--primary);
    border-color: var(--primary);
  }
  
  .sidebar-btn:active .iconify,
  .sidebar-btn:active span {
    color: #fff;
  }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
  .floating-sidebar {
    right: 8px;
    bottom: 70px;
    gap: 6px;
  }
  
  .sidebar-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  
  .sidebar-btn .iconify {
    width: 20px;
    height: 20px;
  }
  
  .sidebar-btn span:not(.iconify) {
    font-size: 9px;
  }
  
  .footer {
    padding-top: 30px;
  }
  
  .footer-grid {
    gap: 20px;
    padding-bottom: 20px;
  }
  
  .footer-logo-img {
    height: 40px;
  }
  
  .footer-desc {
    font-size: 13px;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
  }
  
  .footer-social a svg {
    width: 18px;
    height: 18px;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* =====================================================
   Icon Colors
   ===================================================== */
.icon-blue { background: linear-gradient(135deg, #2B6DE8 0%, #5B8DEF 100%); }
.icon-purple { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); }
.icon-green { background: linear-gradient(135deg, #10B981 0%, #34D399 100%); }
.icon-orange { background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%); }
.icon-pink { background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); }
.icon-cyan { background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%); }
.icon-red { background: linear-gradient(135deg, #EF4444 0%, #F87171 100%); }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
