/* ===== 全局动画与特效 ===== */

/* 粒子背景容器 */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero区域 */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1b2a 40%, #0a1628 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/delta_force_scene.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.3) 0%,
    rgba(10, 14, 26, 0.5) 50%,
    rgba(10, 14, 26, 0.95) 100%
  );
  z-index: 1;
}

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

/* 荧光绿发光效果 */
.glow-green {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8), 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3);
}

.glow-green-border {
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4), inset 0 0 10px rgba(0, 255, 136, 0.1);
}

/* 打字机效果 */
.typewriter-text {
  overflow: hidden;
  border-right: 2px solid #00ff88;
  white-space: nowrap;
  animation: typing 3s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #00ff88; }
}

/* 扫描线动画 */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 136, 0.15), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

/* 导航栏 */
.navbar-custom {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  background: rgba(10, 14, 26, 0.97);
  border-bottom-color: rgba(0, 255, 136, 0.3);
}

.nav-logo-text {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #00ff88, #00d4ff);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00ff88;
}

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

/* 登录按钮 */
.btn-login {
  border: 1px solid #00ff88;
  color: #00ff88;
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-login:hover {
  background: rgba(0, 255, 136, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  color: #00ff88;
}

/* 陪玩师卡片 */
.companion-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.9), rgba(20, 28, 48, 0.9));
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  transition: all 0.35s ease;
  overflow: hidden;
  position: relative;
}

.companion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #00ff88, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.companion-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.15), 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

/* 在线状态指示器 */
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: pulse-green 2s infinite;
}

.offline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px #00ff88; }
  50% { box-shadow: 0 0 12px #00ff88, 0 0 20px rgba(0, 255, 136, 0.4); }
}

/* 段位徽章 */
.rank-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rank-king { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }
.rank-master { background: linear-gradient(135deg, #9b59b6, #6c3483); color: #fff; }
.rank-diamond { background: linear-gradient(135deg, #00d4ff, #0066cc); color: #fff; }
.rank-platinum { background: linear-gradient(135deg, #00b4a0, #007a6e); color: #fff; }
.rank-gold { background: linear-gradient(135deg, #f71d5e, #d68910); color: #fff; }


/* 价格卡片 */
.price-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(20, 28, 48, 0.95));
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 16px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.price-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), transparent);
  pointer-events: none;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
}

.price-amount {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 搜索区域 */
.search-section {
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.0) 0%, rgba(10, 14, 26, 1) 100%);
}

.search-input-wrapper {
  background: rgba(20, 28, 48, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 筛选标签 */
.filter-tag {
  background: rgba(20, 28, 48, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-tag:hover,
.filter-tag.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  color: #00ff88;
}

/* 区块标题 */
.section-title {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #00ff88, transparent);
  border-radius: 2px;
}

/* 统计数字 */
.stat-number {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 登录弹窗 */
.modal-box-custom {
  background: linear-gradient(135deg, #0d1b2a, #0f1e35);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.1), 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.modal-tab.active {
  color: #00ff88;
  border-bottom-color: #00ff88;
}

.modal-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 12px 16px;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.modal-input:focus {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* 主按钮 */
.btn-primary-custom {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  width: 100%;
  font-size: 1rem;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #00ff99, #00e07a);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
}

/* 头像框 */
.avatar-frame {
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
}

/* 评分星星 */
.star-rating {
  color: #ffd700;
  font-size: 0.8rem;
}

/* 服务标签 */
.service-tag {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* 页脚 */
.footer-custom {
  background: linear-gradient(180deg, rgba(10, 14, 26, 0) 0%, #060a12 100%);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

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

::-webkit-scrollbar-track {
  background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}

/* 分隔线 */
.divider-glow {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 136, 0.3), transparent);
  margin: 0;
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* 六边形装饰 */
.hex-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(0, 255, 136, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotate-hex 20s linear infinite;
}

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

/* 网格背景 */
.grid-bg {
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 角标 */
.corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.corner-badge.hot {
  background: linear-gradient(135deg, #ff6b35, #f7c59f);
  color: #000;
}

.corner-badge.recommend {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* 特效：数字跳动 */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.count-up {
  animation: countUp 0.5s ease forwards;
}

/* 游戏风格分割线 */
.game-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.game-divider::before,
.game-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 136, 0.3));
}

.game-divider::after {
  background: linear-gradient(to left, transparent, rgba(0, 255, 136, 0.3));
}

/* 陪玩师头像SVG占位 */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
}

/* 价格标签 */
.price-tag {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: #00ff88;
  font-size: 1.1rem;
}

/* 按钮悬停光效 */
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* 模态框背景 */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* 特性图标 */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* 进度条 */
.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #00ff88, #00d4ff);
  border-radius: 2px;
  transition: width 1s ease;
}

/* 通知提示 */
.toast-custom {
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
