/* =========================================================================
   deepcode.starseas.org — 专用样式
   ========================================================================= */

/* --- Hero --- */
.hero {
  padding: 120px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.install-command {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: var(--text);
}

.hero-install .copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.hero-install .copy-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* --- Navigation back button --- */
.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-back:hover {
  color: var(--accent-light);
}

/* --- Problems / Pain Points --- */
.problems {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.problem-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  font-feature-settings: "tnum";
}

.problem-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.problem-pain {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 40px;
  margin-bottom: 16px;
}

.problem-solution {
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  margin-left: 40px;
}

.solution-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.problem-solution p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Compare Table --- */
.section-compare {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.02) 0%, transparent 100%);
}

.compare-table {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-item, .compare-bad, .compare-good {
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.compare-item {
  font-weight: 600;
  color: var(--text);
}

.compare-bad {
  color: var(--text-muted);
}

.compare-good {
  color: var(--accent-light);
  font-weight: 500;
}

/* --- Install Section --- */
.section-install {
  border-top: 1px solid var(--border);
}

.install-steps {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.install-step {
  display: flex;
  gap: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.step-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.step-code code {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text);
}

.step-code .copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.step-code .copy-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 90px 0 48px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }

  .compare-row {
    grid-template-columns: 100px 1fr 1fr;
  }
  .compare-item, .compare-bad, .compare-good {
    padding: 10px 10px;
    font-size: 12px;
  }

  .problem-pain {
    padding-left: 0;
  }
  .problem-solution {
    margin-left: 0;
  }
  .problem-header {
    gap: 8px;
  }
}
