/* K线交易指南 - 专业白色调设计 */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

/* 头部导航 */
.header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-800);
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

/* Hero区域 */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 邮件表单 */
.email-form-container {
  margin-bottom: 48px;
}

.email-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 280px;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.submit-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

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

.agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
  justify-content: center;
}

.agreement input[type="checkbox"] {
  margin-right: 4px;
}

.agreement a {
  color: var(--primary);
  text-decoration: none;
}

.agreement a:hover {
  text-decoration: underline;
}

/* 价值主张 */
.value-props {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.prop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: var(--shadow);
}

.prop-item .icon {
  font-size: 20px;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.indicator {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}

/* 学习模块 */
.learning-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

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

.learning-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.module-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-icon {
  margin-bottom: 24px;
}

.module-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.module-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.module-features {
  list-style: none;
}

.module-features li {
  padding: 8px 0;
  color: var(--gray-700);
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.module-features li:before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  margin-right: 8px;
}

/* 预览区域 */
.preview-section {
  padding: 80px 0;
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.guide-preview {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.guide-preview h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.preview-chart {
  height: 240px;
  border-radius: var(--radius);
  background: 
    linear-gradient(0deg, rgba(14, 165, 233, 0.05), rgba(34, 197, 94, 0.05)),
    repeating-linear-gradient(90deg, var(--gray-200) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, var(--gray-200) 0 1px, transparent 1px 30px);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.chart-note {
  font-size: 12px;
  color: var(--gray-500);
}

.guide-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.detail-card ul {
  list-style: none;
  margin: 0;
}

.detail-card li {
  padding: 6px 0;
  color: var(--gray-700);
  font-size: 14px;
}

.why-free {
  background: var(--gray-50);
}

.disclaimer {
  background: #fffbeb;
  border-color: #fde68a;
}

/* 学员反馈 */
.testimonials-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
}

.author-info span {
  font-size: 14px;
  color: var(--gray-500);
}

/* FAQ区域 */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item details {
  background: none;
  border: none;
  padding: 0;
}

.faq-item summary {
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* 页脚 */
.footer {
  padding: 48px 0 32px;
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 32px;
  gap: 32px;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--gray-400);
  font-size: 14px;
}

.footer-right {
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}

/* K线图装饰 */
.candle {
  position: absolute;
  width: 8px;
  border-radius: 2px;
}

.candle.up {
  background: var(--secondary);
}

.candle.down {
  background: var(--danger);
}

.candle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
}

.candle.up::after {
  background: var(--secondary);
}

.candle.down::after {
  background: var(--danger);
}

/* 响应式设计和移动端优化 */
@media (max-width: 768px) {
  /* 基础布局优化 */
  .hero {
    padding: 60px 0 80px;
    background: 
      linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%),
      radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.15) 0%, transparent 70%),
      radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
  }
  
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
  }
  
  /* 表单优化和动画 */
  .form-group {
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
  }
  
  .email-input {
    min-width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
  }
  
  .email-input:focus {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2), 0 0 0 3px rgba(14, 165, 233, 0.1);
  }
  
  .submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }
  
  .submit-btn:hover::before,
  .submit-btn:focus::before {
    left: 100%;
  }
  
  .submit-btn:active {
    transform: scale(0.98);
  }
  
  /* 价值主张动画 */
  .value-props {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
  }
  
  .prop-item {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
  }
  
  .prop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
  }
  
  .prop-item .icon {
    font-size: 24px;
    animation: bounce 2s infinite;
  }
  
  /* 信任指标动画 */
  .trust-indicators {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
  }
  
  .indicator {
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
  }
  
  .indicator:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: scale(1.05);
  }
  
  /* 学习模块卡片动画 */
  .learning-modules {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .module-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    border: 1px solid var(--gray-100);
  }
  
  .module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
  }
  
  .module-icon {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
  }
  
  .module-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    transition: color 0.3s ease;
  }
  
  .module-card:hover h3 {
    color: var(--primary);
  }
  
  /* 预览区域优化 */
  .preview-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .guide-preview {
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    transition: all 0.3s ease;
  }
  
  .guide-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }
  
  .detail-card {
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
  }
  
  .detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  /* 证言卡片动画 */
  .testimonial-card {
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .testimonial-card:hover::before {
    transform: scaleX(1);
  }
  
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  /* FAQ优化 */
  .faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
  }
  
  .faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
  }
  
  .faq-item summary {
    padding: 20px;
    background: var(--white);
    transition: all 0.3s ease;
  }
  
  .faq-item[open] summary {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .faq-answer {
    padding: 0 20px 20px;
    animation: slideDown 0.3s ease-out;
  }
  
  /* 页脚优化 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 20px;
  }
  
  .footer-links a {
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
  }
  
  /* 导航优化 */
  .nav {
    padding: 12px 0;
    position: relative;
  }
  
  .nav nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav a {
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
  }
  
  .nav a:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* 章节标题动画 */
  .section-header h2 {
    font-size: 28px;
    position: relative;
    overflow: hidden;
  }
  
  .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.5s ease;
  }
  
  .section-header:hover h2::after {
    transform: translateX(-50%) scaleX(1);
  }
}

/* 高级动画关键帧 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-8px);
  }
  70% {
    transform: translateY(-4px);
  }
  90% {
    transform: translateY(-2px);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
  }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
  .module-card:hover,
  .testimonial-card:hover,
  .detail-card:hover {
    transform: none;
  }
  
  .module-card:active,
  .testimonial-card:active,
  .detail-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .submit-btn:active {
    transform: scale(0.95);
  }
  
  .prop-item:active {
    transform: scale(0.95);
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .preview-chart {
    background-size: 30px 30px;
  }
}

/* 滚动动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 加载动画 */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* 按钮特效 */
.btn-gradient-animated {
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    var(--primary),
    var(--secondary)
  );
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 成功动画 */
.success-animation {
  animation: successPulse 0.6s ease-out;
}

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

/* 粒子效果 */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat 3s linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(80px) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(-80px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0);
  }
}

/* 移动端小屏幕优化 */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .email-input {
    padding: 16px 18px;
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 16px 24px;
    font-size: 15px;
  }
  
  .module-card {
    padding: 20px;
  }
  
  .module-card h3 {
    font-size: 20px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .learning-section {
    padding: 60px 0;
  }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 60px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(300px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .hero {
    background: 
      linear-gradient(135deg, #1e293b 0%, #0f172a 100%),
      radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  }
}
