﻿/* ===== 首页专属样式（公共样式见 styles.css，本文件须在 styles.css 之后加载）===== */

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,11,20,0.95) 0%, rgba(5,11,20,0.3) 50%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 164, 76, 0.12);
  border: 1px solid rgba(201, 164, 76, 0.4);
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 .gold { color: var(--gold); }
.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-200);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Stats（首页 hero 内的半透明覆盖版）===== */
.stats {
  position: relative;
  z-index: 2;
  background: rgba(5, 11, 20, 0.6);
  margin-top: 64px;
}
.stat { text-align: left; }

/* ===== Core Business ===== */
.core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.core-card {
  background: var(--white);
  border: 1px solid #e6ebf2;
  padding: 40px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.core-card:hover {
  box-shadow: 0 12px 40px rgba(15, 76, 147, 0.08);
  transform: translateY(-2px);
}
.core-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-dark), var(--primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  border-radius: 2px;
}
.core-card h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.core-card .subtitle {
  color: var(--ink-400);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.core-card .desc {
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ===== Workflow ===== */
.workflow {
  background: var(--ink-950);
  color: var(--white);
}
.workflow .section-title { color: var(--white); }
.workflow .section-sub { color: var(--ink-200); }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  position: relative;
  padding-top: 32px;
}
.step-num {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.step h4 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-200);
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(201,164,76,0.1));
}

/* ===== Projects grid（容器；卡片样式见 styles.css 的 .project-card）===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== Why Zhongyu ===== */
.why {
  background: var(--bg-light);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.why-card {
  background: var(--white);
  border: 1px solid #e6ebf2;
  padding: 32px;
  border-left: 3px solid var(--gold);
}
.why-card h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.why-card p {
  color: var(--ink-400);
  font-size: 15px;
  line-height: 1.75;
}
.why-cert-title {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid #e6ebf2;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert-item {
  background: var(--white);
  border: 1px solid #e6ebf2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-item .cert-name {
  font-weight: 500;
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.4;
}
.cert-item .cert-desc {
  color: var(--ink-400);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Insights ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  border: 1px solid #e6ebf2;
  padding: 28px;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: 0 12px 40px rgba(15, 76, 147, 0.08);
  transform: translateY(-2px);
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.article-meta .tag {
  color: var(--gold);
  font-weight: 500;
}
.article-card h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.5;
}

/* ===== 首页响应式（公共断点见 styles.css）===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .core-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .cta h2 { font-size: 28px; }
  .topbar-left { font-size: 12px; }
}
