* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.dark-page {
  background: linear-gradient(180deg, #091425 0%, #0f1f39 100%);
  color: #ffffff;
  min-height: 100vh;
}

.light-page {
  background: #f5f7fb;
  color: #111827;
  min-height: 100vh;
}

.container {
  width: 92%;
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  padding: 60px 0 80px;
}

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

.hero h1 {
  font-size: 46px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: #39e75f;
  margin-bottom: 30px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 22px auto;
  max-width: 760px;
}

.section-lead {
  font-size: 24px;
  font-weight: 700;
}

.warning-list,
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.warning-list li,
.benefit-list li {
  font-size: 24px;
  margin: 12px 0;
}

.highlight-text {
  color: #ffd84d;
  font-weight: 700;
  font-size: 24px;
}

.hero-card h2 {
  color: #39e75f;
  font-size: 34px;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-card p {
  font-size: 24px;
  margin: 10px 0;
}

.price-box {
  margin-top: 28px;
}

.price-box h3 {
  color: #39e75f;
  font-size: 34px;
  margin-bottom: 8px;
}

.old-price {
  font-size: 28px;
  text-decoration: line-through;
  opacity: 0.8;
  margin: 0;
}

.new-price {
  font-size: 56px;
  color: #39e75f;
  font-weight: 800;
  margin: 10px 0 0;
}

.cta-group {
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

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

.btn-large {
  padding: 16px 36px;
  font-size: 20px;
}

.form-page,
.result-page {
  padding: 28px 0 56px;
}

.top-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}

.back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.form-card,
.result-card {
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.form-card h1,
.result-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 34px;
}

.form-desc {
  color: #6b7280;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  font-size: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 26px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-top: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.field-tip {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

.form-error-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

.field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 13px;
}

.result-section {
  margin-top: 26px;
}

.result-section h2,
.result-section h3 {
  margin-top: 0;
}

.soft-box {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
}

#metabolicTitle {
  font-size: 36px;
}

#metabolicDesc {
  color: #374151;
  font-size: 18px;
}

#problemList {
  margin: 0;
  padding-left: 20px;
}

#problemList li {
  margin-bottom: 8px;
}

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

.macro-item {
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.macro-label {
  display: block;
  color: #6b7280;
  margin-bottom: 8px;
}

.locked-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.locked-list li {
  margin: 8px 0;
}

.cta-box {
  margin-top: 30px;
}

.small-note {
  color: #6b7280;
  font-size: 14px;
  margin-top: 10px;
}

/* 二维码弹窗 */
.qr-modal.hidden {
  display: none !important;
}

.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-img {
  width: 200px;
  max-width: 100%;
  margin: 20px auto;
  display: block;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-card h2,
  .price-box h3 {
    font-size: 26px;
  }

  .hero-card p,
  .warning-list li,
  .benefit-list li,
  .highlight-text {
    font-size: 18px;
  }

  .new-price {
    font-size: 42px;
  }

  .form-grid,
  .macro-grid,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-card,
  .result-card {
    padding: 22px;
  }

  #metabolicTitle {
    font-size: 28px;
  }
}
.btn-link {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}
