/* Homepage-only styles.
   Top hero + cards synced to templates/dcs_tools_ui.html. */

.homepage-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  padding: 0 clamp(12px, 2vw, 32px);
}

/* Top hero + cards (dcs_tools_ui.html style) */
.hero-card {
  background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--bg-color-white) 100%);
  border-radius: 12px;
  padding: 32px;
  margin: 10px 0 24px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.hero-card h1 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 28px; /* +2号 */
  line-height: 36px;
}

.hero-subtitle {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 16px; /* +2号 */
  line-height: 24px;
  font-weight: 500;
}

.hero-tagline {
  margin: 0;
  color: var(--text-primary-light);
  font-size: 16px; /* +2号 */
  line-height: 24px;
}
.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat {
  background: var(--bg-color-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-green-dark);
  border: 1px solid var(--border-color);
  text-align: center;
  flex: 1 1 220px;
  max-width: 280px;
}

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

.card {
  background: var(--bg-color-white);
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.card-header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.card-icon { font-size: 22px; color: var(--primary-green); margin-bottom: 0; }
.card-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--text-primary); text-align: center; }
.card-list { list-style: none; margin-top: 12px; padding-left: 0; }
.card-list li { margin-bottom: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--text-primary-light); }
.card-list i { color: var(--primary-green); font-size: 12px; }

/* Shared section spacing (homepage only) */
.stats-section,
.usage-section,
.tools-section,
.requirements-section,
.citation-section,
.install-section {
  margin: 28px 0 40px;
}

/* Section titles (remove inline colors; follow theme) */
.homepage-h2 {
  text-align: center;
  margin: 0 0 18px;
  color: var(--text-primary, #080613);
}

/* Make sections feel like dcs_tools_ui cards */
.stats-section,
.usage-section,
.tools-section,
.requirements-section,
.citation-section {
  background: #ffffff;
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 16px;
}

/* Ensure in-section links look consistent */
.usage-card a,
.tool-card a,
.install-link {
  color: inherit;
}

/* Tabs (match dcs_tools_ui.html feel) */
.tabs-header {
  background: #ffffff;
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #636A74);
  transition: all 0.2s;
  line-height: 22px;
}

.tab-btn:hover {
  background-color: var(--primary-green-light, #EAF9F7);
  border-color: var(--primary-green, #2EC5B1);
  color: var(--primary-green, #2EC5B1);
}

.tab-btn.active {
  background-color: var(--primary-green-light, #EAF9F7);
  border-color: var(--primary-green, #2EC5B1);
  color: var(--primary-green, #2EC5B1);
  font-weight: 500;
}

/* Tab content spacing: add paragraph spacing before/after */
.tab-content > p:first-child,
.tab-content p.tab-intro {
  margin-top: 12px;
  margin-bottom: 16px;
}

/* Tables inside homepage sections */
.table-responsive-wrapper {
  margin-top: 12px;
}

/* Usage cards */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.usage-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.usage-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.usage-card h4 {
  margin: 0 0 10px;
  color: var(--text-primary, #080613);
}

.usage-card p {
  margin: 0;
  color: var(--text-primary-light, #4C586A);
}

/* Tools cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tool-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.tool-card h4 {
  margin: 0 0 10px;
  color: var(--text-primary, #080613);
}

.tool-card p {
  margin: 0;
  color: var(--text-primary-light, #4C586A);
}

/* Requirements */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.requirement-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 16px;
}

.requirement-card h4 {
  margin: 0 0 12px;
  color: var(--text-primary, #080613);
}

.requirement-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-primary-light, #4C586A);
}

.requirement-card li {
  margin: 6px 0;
}

/* Citation list */
.citation-section {
  padding: 20px 24px;
}
.citation-section li {
  list-style: disc;
  margin: 10px 0 10px 20px;
  color: var(--text-primary-light, #4C586A);
  line-height: 1.6;
}

/* CTA */
.install-section {
  background: linear-gradient(135deg, var(--primary-green-light, #EAF9F7) 0%, #ffffff 100%);
  border: 1px solid var(--border-color, #eef0f3);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.install-section h2 {
  margin: 0 0 8px;
  color: var(--text-primary, #080613);
}

.install-section p {
  margin: 0;
  color: var(--text-primary-light, #4C586A);
}

@media (max-width: 1024px) {
  .homepage-container { padding: 0; }
  .hero-card { padding: 20px; }
  .card-grid { grid-template-columns: 1fr; }
}

