/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  min-height: 100vh;
}

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

/* 头部导航 */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: #dc2626;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #dc2626;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #374151;
  transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
  padding: 5rem 1rem;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  display: block;
  color: #dc2626;
}

.hero-badge {
  background: #dc2626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.25rem;
  color: #374151;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #dc2626;
  color: white;
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-outline {
  background: transparent;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.btn-outline:hover {
  background: #fef2f2;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* 特殊群体部分 */
.groups-section {
  padding: 4rem 1rem;
  background: white;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 3rem;
}

.responsibility-banner {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.responsibility-content {
  text-align: center;
}

.responsibility-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.responsibility-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.responsibility-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.group-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #dc2626;
  transition: all 0.3s ease;
}

.group-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.group-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.group-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.75rem;
}

.group-description {
  color: #374151;
  line-height: 1.7;
  text-align: center;
}

.application-info {
  background: #fef2f2;
  border-radius: 0.5rem;
  padding: 2rem;
}

.application-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 1rem;
}

.application-text {
  color: #374151;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
}

.highlight {
  color: #dc2626;
  font-weight: 600;
}

/* 收益来源部分 */
.income-section {
  padding: 4rem 1rem;
  background: #f9fafb;
}

.income-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* 手机端也为3列 */
@media (max-width: 768px) {
  .income-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
  }
}

/* 平板端适应为两列 */
@media (min-width: 481px) and (max-width: 1024px) {
  .income-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
}

.income-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.income-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.income-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.income-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.income-description {
  color: #6b7280;
}

.income-notice {
  text-align: center;
}

.income-notice p {
  font-size: 1.125rem;
  color: #374151;
}

.notice-highlight {
  font-weight: 600;
  color: #dc2626;
}

/* 收益计算器部分 */
.calculator-section {
  padding: 4rem 1rem;
  background: white;
}

.title-icon {
  width: 2rem;
  height: 2rem;
  color: #dc2626;
  margin-right: 0.75rem;
}

.calculator-wrapper {
  max-width: 64rem;
  margin: 0 auto;
}

.calculator-card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.control-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.slider-wrapper {
  position: relative;
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.calculator-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.result-card {
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.result-monthly {
  background: #fef2f2;
}

.result-yearly {
  background: #fff7ed;
}

.result-five-year {
  background: #eff6ff;
}

.result-ten-year {
  background: #f0fdf4;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.result-monthly .result-value {
  color: #dc2626;
}

.result-yearly .result-value {
  color: #ea580c;
}

.result-five-year .result-value {
  color: #2563eb;
}

.result-ten-year .result-value {
  color: #16a34a;
}

.result-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.calculation-info {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.info-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* 郑重承诺部分 */
.commitment-section {
  padding: 3rem 1rem;
  background: #f3f4f6;
}

.commitment-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.commitment-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.commitment-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.commitment-icon {
  width: 3rem;
  height: 3rem;
  color: #dc2626;
  margin: 0 auto 1rem;
}

.commitment-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.commitment-card-text {
  color: #6b7280;
}

/* 联系方式部分 */
.contact-section {
  padding: 4rem 1rem;
  background: #1f2937;
  color: white;
}

.contact-title {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

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

.contact-icon {
  width: 3rem;
  height: 3rem;
  color: #f87171;
  margin: 0 auto 1rem;
}

.contact-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info {
  color: #d1d5db;
}

.qr-code {
  width: 6rem;
  height: 6rem;
  margin: 0.5rem auto 0;
  background: white;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

/* 页脚 */
.footer {
  background: #374151;
  color: #d1d5db;
  padding: 2rem 1rem;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #f87171;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-slogan {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* 移动端导航菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  left: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 100;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.5rem 2rem 1.5rem;
  animation: fadeInUp 0.3s;
}

.mobile-nav .nav-link {
  font-size: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInUp 0.4s;
}

/* 响应式设计 */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }

  .nav {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .responsibility-tags {
    font-size: 0.75rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero {
    padding: 3rem 0.5rem;
  }

  .groups-section,
  .income-section,
  .calculator-section {
    padding: 2rem 0.5rem;
  }
}

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

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

/* 滚动行为 */
html {
  scroll-behavior: smooth;
}

/* 焦点样式 */
button:focus,
input:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}
