
/* CSS变量定义 */
:root {
  /* 主色调 */
  --primary-color: #1696d2;
  --primary-dark: #0a4c6a;
  --primary-light: #73bfe2;
  --secondary-color: #fdbf11;
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #1696d2 0%, #0a4c6a 100%);
  --gradient-secondary: linear-gradient(135deg, #73bfe2 0%, #1696d2 100%);
  --gradient-accent: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
  /* 中性色 */
  --dark-color: #2c2c2c;
  --darker-color: #1a1a1a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --gray-light: #e9ecef;
  --white-color: #ffffff;
  
  /* 状态色 */
  --success-color: #0e8345;
  --warning-color: #fdbf11;
  --danger-color: #ec5345;
  --info-color: #1696d2;
  
  /* 字体 */
  --font-primary: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* 边框圆角 */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* 动画时间 */
  --transition-fast: 0.15s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
}

/* 基础样式重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

/* 预加载器 */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all var(--transition-slow) ease-in-out;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.cube1, .cube2 {
  background-color: var(--white-color);
  width: 15px;
  height: 15px;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-cubemove 1.8s infinite ease-in-out;
}

.cube2 {
  animation-delay: -0.9s;
}

@keyframes sk-cubemove {
  25% {
    transform: translateX(42px) rotate(-90deg) scale(0.5);
  }
  50% {
    transform: translateX(42px) translateY(42px) rotate(-180deg);
  }
  75% {
    transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* 导航栏 */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal) ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px; /* 确保导航栏有最小高度 */
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-collapse {
  flex-grow: 1; /* 使用flex-grow而不是width: 100% */
}

/* 桌面版navbar-collapse布局 */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
}

/* 桌面版导航菜单居中 */
@media (min-width: 992px) {
  .navbar-nav.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color) !important;
  text-decoration: none;
  height: auto;
  line-height: 1;
}

.navbar-brand .logo {
  height: 60px;
  margin-right: 0.5rem;
}

.navbar-brand .brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-fast) ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-fast) ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* 导航栏按钮样式 */
.navbar .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal) ease;
  white-space: nowrap;
  margin-left: 0.5rem; /* 添加左边距，确保按钮间有间隔 */
}

.navbar .btn:first-child {
  margin-left: 0; /* 第一个按钮不需要左边距 */
}

.navbar .btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05); /* 添加微妙的背景色 */
}

.navbar .btn-outline-primary:hover {
  background: rgba(102, 126, 234, 0.1); /* 更温和的悬停效果 */
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.navbar .btn-primary {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--white-color);
}

.navbar .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

/* 导航栏切换按钮样式 */
.navbar-toggler {
  border: 1px solid var(--dark-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  border-color: var(--primary-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.2em;
  height: 1.2em;
}

@media (max-width: 991.98px) {
  /* 移动端导航栏基础样式 */
  .navbar.navbar-expand-lg {
    padding: 0.75rem 0 !important;
    min-height: 60px !important;
    display: flex !important; /* 确保导航栏在移动端可见 */
    background: rgba(255, 255, 255, 0.95) !important; /* 确保有背景色 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
  }
  
  .navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
    display: flex !important;
    align-items: center !important;
    color: var(--dark-color) !important;
    z-index: 1050; /* 确保在最前面 */
    position: relative;
  }
  
  /* 菜单展开时导航栏采用深色主题，形成强烈对比 */
  body.mobile-menu-open .navbar {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050 !important; /* 比菜单层级更高 */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  /* 菜单展开时品牌Logo和文字都改为白色 */
  body.mobile-menu-open .navbar-brand {
    color: var(--white-color) !important;
  }
  
  body.mobile-menu-open .navbar-brand .brand-text {
    background: var(--white-color) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  
  /* 菜单展开时汉堡图标改为白色（在深色背景上） */
  body.mobile-menu-open .navbar-toggler-icon {
    background: var(--white-color) !important;
  }
  
  body.mobile-menu-open .navbar-toggler-icon::before,
  body.mobile-menu-open .navbar-toggler-icon::after {
    background: var(--white-color) !important;
  }
  
  /* 菜单展开时X图标也保持白色 */
  body.mobile-menu-open .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  body.mobile-menu-open .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    background: var(--white-color) !important;
  }
  
  /* 菜单展开时Logo切换到深色背景专用版本 */
  body.mobile-menu-open .navbar-brand .logo {
    content: url('../img/logo-dark.svg') !important;
  }
  
  .navbar-brand .logo {
    height: 48px;
  }
  
  /* 移动端toggle按钮样式 */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: -0.5rem;
    background: transparent;
    position: relative;
    z-index: 1050;
    display: block !important; /* 确保按钮显示 */
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* 汉堡菜单图标 */
  .navbar-toggler-icon {
    width: 24px;
    height: 18px;
    background: var(--dark-color); /* 中间横线 */
    position: relative;
    transform: rotate(0deg);
    transition: all 0.3s ease;
    height: 2px;
    border-radius: 2px;
    top: 8px; /* 居中定位 */
  }
  
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 2px;
    left: 0;
    transition: all 0.3s ease;
  }
  
  .navbar-toggler-icon::before {
    top: -8px; /* 上面的横线 */
  }
  
  .navbar-toggler-icon::after {
    bottom: -8px; /* 下面的横线 */
  }
  
  /* 菜单打开时的动画 */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent; /* 隐藏中间横线 */
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0; /* 移动到中心 */
    transform: rotate(45deg);
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 0; /* 移动到中心 */
    transform: rotate(-45deg);
  }
  
  /* 移动端全屏菜单 */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1040; /* 比导航栏层级低 */
    display: none; /* 初始隐藏 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* 给导航栏留出空间 */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .navbar-collapse.show {
    display: flex !important; /* 显示时启用flex */
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  
  /* 移动端导航菜单样式 */
  .navbar-nav.mx-auto {
    position: static;
    transform: none;
    width: auto;
    margin: 0 0 2rem 0;
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }
  
  .navbar-collapse.show .navbar-nav .nav-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.3s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.4s; }
  
  .navbar-nav .nav-link {
    color: var(--white-color) !important;
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    padding: 1rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover::before {
    left: 0;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  /* 移动端按钮样式 */
  .navbar .navbar-nav:last-child {
    flex-direction: row !important;
    margin: 0;
    padding: 0;
    border: none;
    gap: 1rem;
  }
  
  .navbar .navbar-nav:last-child .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    border-radius: 50px;
    margin: 0;
    width: auto;
    min-width: 120px;
  }
  
  .navbar-collapse.show .navbar-nav:last-child .btn {
    opacity: 1;
    transform: translateY(0);
  }
  
  .navbar-collapse.show .navbar-nav:last-child .btn:nth-child(1) { transition-delay: 0.5s; }
  .navbar-collapse.show .navbar-nav:last-child .btn:nth-child(2) { transition-delay: 0.6s; }
  
  .navbar .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
  }
  
  .navbar .btn-outline-primary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
  
  .navbar .btn-primary {
    background: var(--white-color);
    border: 2px solid var(--white-color);
    color: var(--primary-color);
  }
  
  .navbar .btn-primary:hover {
    background: transparent;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
}

/* 按钮样式 */
.btn {
  font-weight: var(--font-weight-medium);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal) ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero区域按钮特殊样式 */
.hero-section .btn-outline-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border: 2px solid var(--white-color);
  backdrop-filter: blur(10px);
}

.hero-section .btn-outline-primary:hover {
  background: var(--white-color);
  color: var(--primary-color);
  border-color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* 主横幅区域 */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  color: var(--white-color);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.08);
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 5%;
  background: rgba(255, 255, 255, 0.06);
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 15%;
  background: rgba(255, 255, 255, 0.04);
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 40%;
  right: 20%;
  background: rgba(255, 255, 255, 0.07);
}

/* 动画效果 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  margin-bottom: 3rem;
}

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--white-color);
}

.stat-label {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* 设备展示 */
.hero-image {
  position: relative;
  z-index: 2;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.device.phone {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #2c2c2c 0%, #1a1a1a 100%);
  border-radius: 40px;
  padding: 15px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  margin: 0 auto;
}

.device.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a4c6a 0%, #1696d2 100%);
  border-radius: 30px;
  padding: 20px 18px;
  overflow: hidden;
  position: relative;
}

.device-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(115, 191, 226, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(115, 191, 226, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.app-interface {
  color: var(--white-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* 顶部状态栏 */
.app-header {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.status-badge {
  background: rgba(14, 131, 69, 0.2);
  border: 1.5px solid var(--success-color);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  animation: pulse-badge 2s ease-in-out infinite;
}

.status-badge i {
  color: var(--success-color);
  font-size: 0.9rem;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(14, 131, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(14, 131, 69, 0);
  }
}

/* 连接按钮 */
.connection-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.connection-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}

.connection-ring::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(253, 191, 17, 0.3),
    rgba(115, 191, 226, 0.3),
    rgba(253, 191, 17, 0.3)
  );
  animation: rotate-ring 3s linear infinite;
}

@keyframes rotate-ring {
  to { transform: rotate(360deg); }
}

.connection-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.connection-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.connection-button i {
  font-size: 2rem;
  color: var(--primary-color);
}

.connection-status {
  text-align: center;
}

.status-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.status-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* 当前节点信息 */
.current-server {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.server-flag {
  font-size: 1.8rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.server-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.server-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-location {
  font-size: 0.7rem;
  opacity: 0.75;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-ping {
  text-align: right;
  flex-shrink: 0;
}

.ping-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 5px 10px;
  background: rgba(253, 191, 17, 0.15);
  border-radius: 8px;
  white-space: nowrap;
}

/* 流量统计 */
.traffic-stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

.traffic-stats .stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.traffic-stats .stat-item i {
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white-color);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.stat-label {
  font-size: 0.7rem;
  opacity: 0.7;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--white-color);
  color: var(--dark-color);
  padding: 15px 20px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  margin-right: 8px;
  color: var(--primary-color);
}

.card-1 {
  top: -20px;
  right: -40px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 100px;
  left: -60px;
  animation-delay: 1s;
}

.card-3 {
  top: 150px;
  right: -80px;
  animation-delay: 2s;
}

/* 功能特色区域 */
.features-section {
  padding: 100px 0;
  background: var(--light-color);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease;
  height: 100%;
  text-align: center;
  border: 1px solid var(--gray-light);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-normal) ease;
}

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

.feature-icon i {
  font-size: 2rem;
  color: var(--white-color);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.benefit-item {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* 价格套餐区域 */
.pricing-section {
  padding: 100px 0;
  background: var(--white-color);
}

.pricing-card {
  background: var(--white-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal) ease;
  position: relative;
  height: 100%;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  z-index: 2;
}

.pricing-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.price {
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  color: var(--gray-color);
  vertical-align: top;
}

.amount {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
}

.period {
  font-size: 1.125rem;
  color: var(--gray-color);
}

.plan-desc {
  color: var(--gray-color);
  font-size: 1rem;
}

.pricing-features {
  padding: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  margin-right: 0.75rem;
  width: 16px;
  font-size: 0.875rem;
}

.feature-list li i.fa-check {
  color: var(--success-color);
}

.feature-list li i.fa-times {
  color: var(--gray-color);
}

.feature-list li.disabled {
  color: var(--gray-color);
  opacity: 0.6;
}

.pricing-footer {
  padding: 2rem;
  border-top: 1px solid var(--gray-light);
}

.pricing-note {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* 技术支持区域 */
.support-section {
  padding: 100px 0;
}

.support-content h3 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.support-content > p {
  font-size: 1.125rem;
  color: var(--gray-color);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.support-methods {
  space: 2rem;
}

.method-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.method-icon i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.method-info h5 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.method-info p {
  color: var(--gray-color);
  line-height: 1.5;
}

.support-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal) ease;
}

.stat-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
}

.stat-icon i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.stat-content h4 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.stat-content p {
  color: var(--gray-color);
  font-size: 1rem;
}

/* 页脚 */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer-widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.widget-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-decoration: none;
  transition: all var(--transition-normal) ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

.widget-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-links li {
  margin-bottom: 0.75rem;
}

.widget-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

.widget-links a:hover {
  color: var(--white-color);
  padding-left: 0.5rem;
}

.widget-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-contacts li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.widget-contacts li i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  width: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--white-color);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .method-item {
    flex-direction: column;
    text-align: center;
  }
  
  .method-icon {
    margin: 0 auto 1rem;
  }
  
  .footer-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .device.phone {
    width: 240px;
    height: 480px;
    padding: 12px;
  }

  .device-screen {
    padding: 18px 15px;
  }

  .app-header {
    margin-bottom: 20px;
  }

  .status-badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  .connection-ring {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }

  .connection-button {
    width: 82px;
    height: 82px;
  }

  .connection-button i {
    font-size: 1.8rem;
  }

  .status-title {
    font-size: 0.85rem;
  }

  .status-subtitle {
    font-size: 0.7rem;
  }

  .current-server {
    padding: 10px;
    gap: 8px;
    margin-bottom: 14px;
  }

  .server-flag {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
  }

  .server-name {
    font-size: 0.8rem;
  }

  .server-location {
    font-size: 0.65rem;
  }

  .ping-value {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .traffic-stats {
    padding: 12px 10px;
    gap: 10px;
  }

  .traffic-stats .stat-item {
    gap: 6px;
  }

  .traffic-stats .stat-item i {
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 0.75rem;
  }

  .stat-divider {
    height: 30px;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .pricing-header {
    padding: 2rem 1.5rem 1rem;
  }

  .pricing-features {
    padding: 1.5rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    margin: 0 0 1rem 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 缺失的Bootstrap工具类 */
.bg-light {
  background-color: var(--light-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--gray-color) !important;
}

.bg-success {
  background-color: var(--success-color) !important;
}

.bg-info {
  background-color: var(--info-color) !important;
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
}

.bg-dark {
  background-color: var(--dark-color) !important;
}

.bg-white {
  background-color: var(--white-color) !important;
}

/* py-5 padding类 */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}