/* 览众量化平台 - 科技感样式 */

/* 基础样式 */
:root {
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --secondary-color: #7c3aed;
  --accent-color: #06ffa5;
  --bg-dark: #0a0e27;
  --bg-darker: #050816;
  --bg-card: rgba(15, 23, 42, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(0, 212, 255, 0.2);
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-bg: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
  color: var(--primary-color);
  animation: rotate 10s linear infinite;
}

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

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

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

.dropdown-content a {
  display: block;
  padding: 8px 20px;
  color: var(--text-secondary);
}

.dropdown-content a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  overflow: hidden;
}

.search-box input {
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: var(--text-primary);
  width: 200px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: var(--gradient-primary);
  border: none;
  padding: 10px 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  opacity: 0.8;
}

.btn-login,
.btn-register {
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

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

.btn-login:hover {
  background: rgba(0, 212, 255, 0.1);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--text-primary);
}

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

/* Hero区域 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-bg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 15s infinite;
  opacity: 0.6;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; top: 40%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; top: 30%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; top: 70%; animation-delay: 12s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-100px) translateX(50px);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.8));
  }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

.hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-icon {
  color: var(--primary-color);
  font-size: 24px;
}

/* 热门策略 */
.strategies-section {
  background: var(--bg-darker);
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s;
}

.strategy-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.strategy-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.strategy-badge {
  background: var(--gradient-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.strategy-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
}

.stat-value.positive {
  color: #ff4757;
}

.stat-value.negative {
  color: #06ffa5;
}

.section-more {
  text-align: center;
}

.more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.more-link:hover {
  gap: 12px;
}

/* 核心功能 */
.features-section {
  background: var(--gradient-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 统计数据 */
.stats-section {
  background: var(--bg-darker);
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 100px;
}

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

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* 页脚 */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
}

/* 按钮 */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary-fill {
  background: var(--gradient-primary);
  color: var(--text-primary);
}

.btn-primary-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* 步骤指示器 */
.steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 10px;
  transition: all 0.3s;
}

.step.active .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
}

.step.completed .step-number {
  background: var(--accent-color);
  border-color: transparent;
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  margin: 0 10px;
}

.step.completed + .step-line {
  background: var(--accent-color);
}

.step-text {
  color: var(--text-secondary);
}

.step.active .step-text {
  color: var(--text-primary);
}

/* 汉堡菜单按钮（默认隐藏，手机端显示） */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s;
}

.hamburger:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* 手机端导航下拉菜单（默认隐藏） */
.mobile-nav {
  display: none;
  width: 100%;
  background: rgba(10, 14, 39, 0.98);
  border-top: 1px solid var(--border-color);
  padding: 10px 20px;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-dropdown-toggle:hover {
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.mobile-dropdown-toggle.open i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
}

.mobile-dropdown-menu.open {
  display: flex;
}

.mobile-dropdown-menu a {
  font-size: 14px;
  padding: 10px 16px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .strategies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 汉堡按钮在平板端也显示 */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  
  /* 汉堡按钮始终显示 */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .strategies-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* 按钮触控优化 */
  .btn,
  .btn-login,
  .btn-register {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-right {
    gap: 10px;
  }
  
  .nav-right .btn-login,
  .nav-right .btn-register {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .search-box {
    display: none;
  }
}

/* 小平板适配（768px ~ 1024px） */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title {
    font-size: 44px;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* 小屏手机适配（480px以下） */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .strategy-card,
  .feature-card {
    padding: 20px;
  }
  
  .strategy-header h3 {
    font-size: 16px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .footer-section h4 {
    font-size: 16px;
  }
  
  /* 登录弹窗小屏优化 */
  .login-prompt-modal {
    padding: 30px 20px;
  }
  
  .login-prompt-modal h3 {
    font-size: 18px;
  }
  
  .prompt-buttons {
    flex-direction: column;
  }
  
  .prompt-buttons .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* 极小屏手机适配（375px以下） */
@media (max-width: 375px) {
  .hero-title {
    font-size: 24px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .strategy-card,
  .feature-card {
    padding: 16px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* 登录提示弹窗 */
.login-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.login-prompt-modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(26, 31, 58, 0.95));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
}

.prompt-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-icon i {
  font-size: 24px;
  color: #fff;
}

.login-prompt-modal h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.login-prompt-modal p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.prompt-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.prompt-buttons .btn {
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
}

.prompt-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s;
}

.prompt-close:hover {
  color: var(--text-primary);
}

/* 日期选择器样式 - 白色背景 */
input[type="date"].form-control {
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border: 1px solid var(--border-color);
  color-scheme: dark;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  padding-right: 40px;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
input[type="date"].form-control:focus {
  background-color: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
