/* ============================================
   home.css — 首页专属样式
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.hero-glow--1 {
  width: 420px;
  height: 420px;
  background: rgba(47, 125, 242, 0.55);
  top: -120px;
  right: -80px;
}

.hero-glow--2 {
  width: 360px;
  height: 360px;
  background: rgba(255, 122, 0, 0.28);
  bottom: -140px;
  left: 10%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #ffd9a8;
  background: rgba(255, 122, 0, 0.16);
  border: 1px solid rgba(255, 154, 61, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.25;
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero 右侧示意 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-unit {
  width: min(360px, 100%);
  position: relative;
  animation: floatY 5s ease-in-out infinite;
}

.hero-unit svg,
.hero-unit img {
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(2, 20, 60, 0.45));
}

.hero-unit-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 浮动数据卡 */
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}

.hero-float-card strong {
  font-size: var(--fs-lg);
  font-family: var(--font-en);
  color: #ffd9a8;
}

.hero-float-card span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
}

.hero-float-card--1 { top: 8%; left: 0; animation-delay: 0.4s; }
.hero-float-card--2 { top: 30%; right: 0; animation-delay: 1.1s; }
.hero-float-card--3 { bottom: 6%; left: 6%; animation-delay: 1.8s; }

/* 统计条 */
.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 24, 62, 0.35);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.hero-stat {
  text-align: center;
  padding: var(--space-2);
}

.hero-stat strong {
  display: block;
  font-size: var(--fs-2xl);
  font-family: var(--font-en);
  color: var(--c-white);
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- 公司简介摘要 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}

.intro-content .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  background: var(--c-accent-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.intro-content h2 {
  font-size: var(--fs-2xl);
  color: var(--c-primary-deep);
  margin-bottom: var(--space-5);
}

.intro-content h2 .accent {
  color: var(--c-accent);
}

.intro-content .lead {
  margin-bottom: var(--space-4);
}

.intro-content p:not(.lead) {
  color: var(--c-text-2);
  margin-bottom: var(--space-4);
}

.intro-points {
  margin: var(--space-5) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-base);
  color: var(--c-text);
}

.intro-points svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-accent);
  flex-shrink: 0;
}

.intro-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---------- 查看更多按钮居中 ---------- */
.section-more {
  text-align: center;
  margin-top: var(--space-8);
}

/* ---------- 新闻卡片 ---------- */
.news-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-date {
  flex-shrink: 0;
  width: 68px;
  height: 76px;
  border-radius: var(--radius-md);
  background: var(--grad-blue);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-date strong {
  font-size: var(--fs-lg);
  font-family: var(--font-en);
}

.news-date span {
  font-size: var(--fs-xs);
  opacity: 0.85;
}

.news-body h3 {
  font-size: var(--fs-base);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.news-body h3 a {
  color: var(--c-primary-deep);
  transition: color var(--t-fast);
}

.news-body h3 a:hover {
  color: var(--c-accent);
}

.news-body p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--c-primary);
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.cta-text h2 {
  font-size: var(--fs-xl);
  color: var(--c-white);
  margin-bottom: var(--space-2);
}

.cta-text p {
  color: rgba(255, 255, 255, 0.75);
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023.98px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: var(--space-8);
  }

  .hero-visual {
    min-height: 280px;
    margin-top: var(--space-2);
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .hero-stat strong {
    font-size: var(--fs-xl);
  }

  .hero-float-card--2 {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }
}
