/* 基础样式 */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: 'Rajdhani', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  color: #ffffff;
  line-height: 1.6;
}

/* 科技风格主题色彩 */
:root {
  --primary-color: #00d4ff;
  --secondary-color: #ff6b35;
  --accent-color: #00ff88;
  --dark-bg: #0c0c0c;
  --card-bg: #1a1a1a;
  --border-color: #333;
  --text-light: #b0b0b0;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #cc5529 100%);
  --tech-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

/* 科技风格字体 */
.tech-text {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-text {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航栏样式 */
.tech-navbar {
  background: rgba(12, 12, 12, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1000;
}

.tech-navbar .navbar-brand {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.tech-navbar .navbar-brand:hover {
  transform: scale(1.05);
}

.tech-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.tech-navbar .nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.tech-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tech-navbar .nav-link:hover::after {
  width: 80%;
}

/* 下拉菜单样式 */
.tech-dropdown {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--tech-shadow);
  z-index: 9999 !important;
}

.tech-dropdown .dropdown-item {
  color: #ffffff !important;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 2px 4px;
}

.tech-dropdown .dropdown-item:hover {
  background: var(--gradient-primary) !important;
  color: #000000 !important;
  transform: translateX(5px);
}

.tech-dropdown .dropdown-item.active {
  background: var(--gradient-primary) !important;
  color: #000000 !important;
}

/* 按钮样式 */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #000000;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: var(--tech-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
  background: var(--gradient-primary);
  border: none;
}

.btn-secondary {
  background: var(--gradient-secondary);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: var(--tech-shadow);
}

/* 卡片样式 */
.tech-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--tech-shadow);
  border-color: var(--primary-color);
}

.tech-card:hover::before {
  left: 100%;
}

/* 表单样式 */
.form-control {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(26, 26, 26, 0.9);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
  color: #ffffff;
}

.form-control::placeholder {
  color: var(--text-light);
}

/* 页脚样式 */
.tech-footer {
  background: var(--dark-bg) !important;
  border-top: 1px solid var(--border-color);
}

.tech-footer .social-links a {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.tech-footer .social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

/* 动画效果 */
@keyframes glow {
  0% { box-shadow: 0 0 5px var(--primary-color); }
  50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
  100% { box-shadow: 0 0 5px var(--primary-color); }
}

.glow-effect {
  animation: glow 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tech-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-secondary, .btn-outline-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* 加载动画 */
.loading-spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 焦点样式 */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0099cc;
}

/* 首页特有样式 */
/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.tech-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  margin: 0.5rem;
}

/* 统计数据样式 */
.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 平台卡片样式 */
.platform-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.platform-card .tech-card {
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.platform-card:hover .tech-card {
  transform: translateY(-15px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.platform-card .fab {
  transition: all 0.3s ease;
}

.platform-card:hover .fab {
  transform: scale(1.2) rotate(5deg);
}

/* 功能特色样式 */
.feature-card {
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 2rem;
  color: #000000;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* 价格方案样式 */
.pricing-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.recommended {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.recommended:hover {
  transform: translateY(-10px) scale(1.05);
}

.recommended-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #000000;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 15px 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-header {
  margin-bottom: 2rem;
}

.plan-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.plan-price {
  margin-bottom: 1rem;
}

.plan-price .currency {
  font-size: 1.2rem;
  color: var(--text-light);
}

.plan-price .price {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.plan-price .period {
  font-size: 1rem;
  color: var(--text-light);
}

.plan-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.pricing-footer {
  margin-top: auto;
}

/* 用户评价样式 */
.testimonial-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stars {
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.testimonial-author .text-muted {
  font-size: 0.9rem;
}

/* CTA区域样式 */
.cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0c0c0c 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.cta-buttons {
  position: relative;
  z-index: 2;
}

.cta-buttons .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  margin: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .plan-price .price {
    font-size: 2.5rem;
  }
  
  .pricing-card.recommended {
    transform: none;
  }
  
  .pricing-card.recommended:hover {
    transform: translateY(-10px);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}