/* ==================== 首页专用样式 ==================== */

/* Hero 区域 */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  min-height: 80vh;
}

.hero-content {
  animation: slideIn 0.6s ease forwards;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-icon {
  font-size: 64px;
  animation: bounce 1s ease infinite;
}

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

.hero-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: 32px;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Hero 视觉区域 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-mockup {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

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

.mockup-header {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #f5f7fa;
  border-bottom: 1px solid #e8e8e8;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.mockup-dot:nth-child(1) {
  background: #ff5f57;
}

.mockup-dot:nth-child(2) {
  background: #ffbd2e;
}

.mockup-dot:nth-child(3) {
  background: #28c840;
}

.mockup-body {
  padding: 24px;
  position: relative;
  height: 300px;
}

.mockup-chart-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.3), transparent);
  width: 100%;
}

.mockup-chart-line:nth-child(1) {
  top: 30%;
}

.mockup-chart-line:nth-child(2) {
  top: 50%;
}

.mockup-chart-line:nth-child(3) {
  top: 70%;
}

.mockup-candlestick {
  position: absolute;
  width: 20px;
  bottom: 80px;
  border-radius: 2px;
}

.mockup-candlestick::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: currentColor;
}

.mockup-candlestick.up {
  color: #ff4d4f;
  background: #ff4d4f;
}

.mockup-candlestick.down {
  color: #52c41a;
  background: #52c41a;
}

.mockup-candlestick:nth-child(4) {
  left: 10%;
  height: 60px;
}

.mockup-candlestick:nth-child(5) {
  left: 25%;
  height: 80px;
}

.mockup-candlestick:nth-child(6) {
  left: 40%;
  height: 100px;
}

.mockup-candlestick:nth-child(7) {
  left: 55%;
  height: 70px;
}

.mockup-candlestick:nth-child(8) {
  left: 70%;
  height: 90px;
}

/* Section 通用样式 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* 功能特性区域 */
.features-section {
  padding: 80px 0;
}

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

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

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

.feature-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.feature-list li {
  color: var(--text-secondary);
  padding: 6px 0;
  font-size: 14px;
}

/* 训练模式区域 */
.modes-section {
  padding: 80px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mode-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mode-card-normal {
  border: 3px solid #1890ff;
}

.mode-card-limit {
  border: 3px solid #ff4d4f;
}

.mode-card-bull {
  border: 3px solid #faad14;
}

.mode-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.mode-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.mode-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mode-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
}

.mode-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.mode-card .btn {
  width: 100%;
}

/* 使用流程区域 */
.steps-section {
  padding: 80px 0;
}

.steps-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.step-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  z-index: 1;
}

.step-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* CTA 区域 */
.cta-section {
  padding: 80px 0;
}

.cta-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 页脚 */
.footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand-icon {
  font-size: 28px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-column h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
