/* 首页专用样式 */

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 16, 40, .96) 0%, rgba(4, 16, 40, .80) 46%, rgba(4, 16, 40, .38) 100%),
    radial-gradient(80% 120% at 90% 20%, rgba(10, 86, 200, .34) 0%, rgba(10, 86, 200, 0) 60%);
}
.hero-inner { position: relative; z-index: 1; padding: 92px 0 108px; width: 100%; }
.hero-copy { max-width: 660px; color: #fff; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 6px 14px;
  font-size: .8rem; letter-spacing: .14em;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.22; letter-spacing: .01em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: rgba(255, 255, 255, .8); font-size: 1.06rem; max-width: 54ch; margin-bottom: 30px; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.hero .btn-row { margin-bottom: 40px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 40px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { color: #fff; font-size: 1.6rem; line-height: 1.1; }
.hero-facts b i { font-style: normal; font-size: .9rem; color: var(--brand); margin-left: 2px; }
.hero-facts span { font-size: .82rem; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }

/* ---------------- 快捷入口条 ---------------- */
.quickbar { background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.quickbar ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line);
}
.quickbar li { background: var(--paper-warm); }
.quickbar a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 24px;
  transition: background .2s ease, color .2s ease;
}
.quickbar a:hover { background: #fff; color: var(--brand-deep); }
.quickbar strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.quickbar em { font-style: normal; font-size: .8rem; color: var(--muted); }
.quickbar svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }

/* ---------------- 产品矩阵（便当格） ---------------- */
.product-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.matrix-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  grid-column: span 2;
  min-height: 260px; padding: 26px;
  background: linear-gradient(160deg, #0a3a7a 0%, #03245a 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.matrix-card:nth-child(1), .matrix-card:nth-child(2) { grid-column: span 3; min-height: 318px; }
.matrix-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 26px;
  background: #fff;
  transition: transform .5s ease;
}
.matrix-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 40, 0) 34%, rgba(4, 16, 40, .88) 100%);
}
.matrix-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.matrix-card:hover img { transform: scale(1.03); }
.matrix-card>div { position: relative; z-index: 1; }
.matrix-card h3 { color: #fff; font-size: 1.14rem; margin-bottom: 6px; }
.matrix-card p { color: rgba(255, 255, 255, .7); font-size: .86rem; margin: 0 0 12px; }
.matrix-card .card-more { color: var(--brand); padding-top: 0; }

/* ---------------- 关于我们分栏 ---------------- */
.split {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center;
}
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); }
.split-media figcaption {
  margin-top: 12px; font-size: .8rem; color: var(--muted);
}
.split-body h2 { font-size: 1.9rem; margin-bottom: .5em; }
.split-body p { color: var(--ink-3); }
.split-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.split-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .93rem; color: var(--ink-2);
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.split-list svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; margin-top: 4px; }

/* ---------------- 能力/数据条 ---------------- */
.metric-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg); overflow: hidden;
}
.metric-band div { background: var(--dark); padding: 30px 26px; }
.metric-band b { display: block; font-size: 2rem; color: #fff; line-height: 1.15; }
.metric-band b i { font-style: normal; font-size: 1rem; color: var(--brand); margin-left: 3px; }
.metric-band span { display: block; margin-top: 6px; font-size: .86rem; color: rgba(255, 255, 255, .62); }

/* ---------------- 应用领域 ---------------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-warm-2);
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.industry:hover { transform: translateY(-3px); border-color: var(--brand-tint); box-shadow: var(--shadow-sm); }
.industry img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.industry:hover img { transform: scale(1.04); }
.industry span {
  display: block; padding: 14px 18px 16px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  background: #fff;
}

/* ---------------- 首页资讯 ---------------- */
.news-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.news-col h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 1.02rem; padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.news-col h3 a { font-size: .82rem; font-weight: 600; color: var(--brand-strong); }
.news-col ul { list-style: none; margin: 0; padding: 0; }
.news-col li { border-bottom: 1px solid var(--line-soft); }
.news-col li a { display: block; padding: 13px 0; }
.news-col li a strong {
  display: block; font-size: .93rem; font-weight: 600; line-height: 1.55;
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-col li a:hover strong { color: var(--brand-strong); }
.news-col time { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* ---------------- 首页 CTA ---------------- */
.cta-band {
  position: relative;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  padding: 44px 48px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 160% at 6% 10%, rgba(10, 86, 200, .34) 0%, rgba(10, 86, 200, 0) 62%);
}
.cta-band>* { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 1.6rem; margin-bottom: .35em; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .product-matrix { grid-template-columns: repeat(2, 1fr); }
  .matrix-card, .matrix-card:nth-child(1), .matrix-card:nth-child(2) { grid-column: span 1; min-height: 240px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .news-columns { grid-template-columns: 1fr; gap: 26px; }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 60px 0 66px; }
  .hero-facts { gap: 22px 30px; }
  .quickbar ul { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .industry-grid { grid-template-columns: 1fr; }
  .split-list { grid-template-columns: 1fr; }
  .product-matrix { grid-template-columns: 1fr; }
}

/* ---------------- 细节补强 ---------------- */
.industry span small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
}
.matrix-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-col li a strong { -webkit-line-clamp: 2; }
