/* =========================================================================
   deepseek.starseas.org — 主站专用样式
   ========================================================================= */

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

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

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

.hero-title .accent {
  color: var(--accent-light);
}

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

/* --- Hierarchy --- */
.hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.h-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.h-row-split {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* --- Cards --- */
.h-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.h-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.h-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.h-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.h-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.h-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.h-tag {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.h-link {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
}

.h-arrow {
  padding: 8px 0;
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  justify-content: center;
}

/* Derived products */
.h-derived {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.h-card-derived {
  max-width: 320px;
  padding: 18px 20px;
  text-align: left;
}

.h-card-derived .h-name {
  font-size: 15px;
}

.h-card-derived .h-desc {
  font-size: 13px;
  margin-bottom: 6px;
}

/* Card variants */
.h-card-theory { border-color: rgba(139, 92, 246, 0.2); }
.h-card-theory:hover { border-color: rgba(139, 92, 246, 0.4); }
.h-card-theory .h-icon { color: var(--purple); }

.h-card-runtime { border-color: rgba(34, 197, 94, 0.2); }
.h-card-runtime:hover { border-color: rgba(34, 197, 94, 0.4); }
.h-card-runtime .h-icon { color: var(--green); }

.h-card-main { border-color: rgba(59, 130, 246, 0.2); }
.h-card-main:hover { border-color: rgba(59, 130, 246, 0.4); }
.h-card-main .h-icon { color: var(--accent-light); }

.h-card-derived { border-color: rgba(245, 158, 11, 0.15); }
.h-card-derived:hover { border-color: rgba(245, 158, 11, 0.3); }

/* --- Why Section --- */
.section-why {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

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

.why-card-accent {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.04);
}

.why-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.why-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.why-card-accent .why-value {
  color: var(--accent-light);
}

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

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

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

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.cta-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.cta-code {
  display: block;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
  text-align: center;
}

.cta-btn:hover {
  background: var(--accent-dim);
}

.cta-btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-dim) !important;
}

.cta-btn-outline:hover {
  border-color: var(--accent);
  color: #fff !important;
  background: transparent;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 100px 0 50px; }
  .hero-subtitle { font-size: 15px; }

  .why-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }

  .h-row-split {
    flex-direction: column;
    gap: 12px;
  }

  .h-card {
    max-width: 100%;
  }

  .h-card-derived {
    max-width: 100%;
  }
}
