/* ============================================
   九紫数智官网 — 首页专属样式 v1.0
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 96px 0 var(--s10);
  background-color: var(--deep);
  background-image: url(../images/logo5.png);
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
}

.hero__slogan {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--s3);
}

.hero__slogan em {
  font-style: normal;
  color: var(--magenta);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,.75);
  margin-bottom: var(--s2);
  font-weight: 500;
}

.hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: var(--s5);
}

.hero__cta {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 业务线卡片 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.service-card {
  text-align: center;
  padding: var(--s6) var(--s4);
}

.service-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s3);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  background: var(--magenta-l);
  color: var(--magenta);
}

.service-card__icon svg {
  width: 32px; height: 32px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s1);
}

.service-card p {
  color: var(--ink-3);
  font-size: .95rem;
  margin-bottom: var(--s3);
}

.service-card__link {
  font-size: .9rem; font-weight: 600;
  color: var(--magenta);
  transition: color var(--fast);
}

.service-card__link:hover {
  color: var(--magenta-d);
}

/* ---------- 数据仪表盘 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.stat-card {
  text-align: center;
  padding: var(--s5) var(--s3);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--normal) var(--ease);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--magenta);
  line-height: 1.2;
}

.stat-card__label {
  font-size: .9rem;
  color: var(--ink-3);
  margin-top: var(--s1);
}

/* ---------- 案例 ---------- */
.case {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--s8);
  align-items: center;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case__content {
  padding: var(--s8);
}

.case__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: .8rem; font-weight: 600;
  color: var(--magenta);
  background: var(--magenta-l);
  border-radius: var(--r-sm);
  margin-bottom: var(--s3);
}

.case h3 { font-size: 1.6rem; margin-bottom: var(--s2); }

.case__score {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s4) 0;
}

.case__score-item {
  text-align: center;
}

.case__score-num {
  font-size: 3rem; font-weight: 800;
  color: var(--magenta);
  line-height: 1;
}

.case__score-label {
  font-size: .85rem; color: var(--ink-3);
  margin-top: 4px;
}

.case__score-arrow {
  font-size: 1.5rem;
  color: var(--magenta);
  animation: pulse 2s ease-in-out infinite;
}

.case__desc {
  color: var(--ink-2);
  margin-bottom: var(--s4);
  font-size: .95rem;
  line-height: 1.8;
}

.case__visual {
  position: relative;
  height: 100%; min-height: 360px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.case__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.case__visual-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: var(--s2);
  color: var(--ink-3);
}

.case__visual-placeholder svg {
  width: 80px; height: 80px;
  opacity: .3;
}

/* ---------- 品牌墙 ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
}

.brand-item {
  height: 84px;
  background: var(--white);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s2);
  transition: all var(--normal) var(--ease);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink-2);
  font-size: .9rem;
}

.brand-item:hover {
  box-shadow: var(--shadow-md);
  color: var(--magenta);
  transform: translateY(-1px);
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--deep) 0%, #1a0a14 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: var(--s8);
  align-items: center;
}

.cta-qr {
  text-align: center;
}

.cta-qr img {
  width: 200px; height: 200px;
  border-radius: var(--r-lg);
  border: 3px solid rgba(255,255,255,.15);
  margin: 0 auto var(--s3);
}

.cta-qr p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

.cta-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s6);
}

.cta-form h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s4);
}

.cta-form .form-group label {
  color: var(--ink-2);
}

.form-feedback {
  text-align: center;
  margin-top: var(--s2);
  font-size: .9rem;
  min-height: 24px;
}

.is-error {
  border-color: var(--red) !important;
  background: rgba(224,46,44,.03) !important;
}

/* ---------- 响应式 — 首页 ---------- */
@media (max-width: 1023px) {
  .hero__slogan { font-size: 2.2rem; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case__content { padding: var(--s5); }
  .case__visual { min-height: 240px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; padding: 100px 0 var(--s8); }
  .hero__slogan { font-size: 1.75rem; }
  .hero__subtitle { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card__number { font-size: 2rem; }
}
