/* ============================================================
   zz-zd.com · 首页专属样式 home.css
   全屏 Banner + 文字动效 + 斜切渐变 + 快速入口 + 首页资讯
   ============================================================ */

/* ---------- 全屏首屏 ---------- */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 150px 0 130px;
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
}
body.has-topbar .home-hero { min-height: calc(92vh - 38px); }
/* 背景图与蒙层 */
.hh-media { position: absolute; inset: 0; z-index: 0; }
.hh-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: .32;
  filter: saturate(.82);
}
.hh-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,24,48,.92) 0%, rgba(20,33,60,.72) 46%, rgba(30,48,90,.42) 100%),
    linear-gradient(180deg, rgba(14,24,48,.35) 0%, rgba(14,24,48,.15) 60%, rgba(14,24,48,.55) 100%);
}
/* 网格纹理 */
.hh-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 90%);
}
/* 斜切下缘 */
.hh-slant {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0;
}
.hh-slant svg { display: block; width: 100%; height: 74px; }
/* 右侧斜切色块装饰 */
.hh-deco {
  position: absolute; right: -140px; top: 8%; z-index: 1;
  width: 460px; height: 460px; transform: rotate(14deg);
  background: linear-gradient(135deg, rgba(111,143,217,.16), rgba(111,143,217,.03));
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 40px;
}
.hh-deco2 {
  position: absolute; right: 6%; bottom: 16%; z-index: 1;
  width: 210px; height: 210px; transform: rotate(-10deg);
  border: 1.5px dashed rgba(255,255,255,.16); border-radius: 30px;
}
.hh-deco2::after {
  content: ""; position: absolute; inset: 18px;
  border-radius: 18px;
  background: rgba(111,143,217,.08);
}
.hh-inner { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hh-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .3em; color: var(--blue-300);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 18px; border-radius: 30px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hh-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue-300); border-radius: 50%; box-shadow: 0 0 0 4px rgba(111,143,217,.25); }
.hh-title { font-size: 58px; font-weight: 800; color: #fff; line-height: 1.22; letter-spacing: .01em; margin-bottom: 22px; }
.hh-title .line { display: block; overflow: hidden; }
.hh-title .line > span { display: block; transform: translateY(110%); animation: lineUp .9s cubic-bezier(.22,.9,.32,1) forwards; }
.hh-title .line:nth-child(2) > span { animation-delay: .14s; }
.hh-title .line:nth-child(3) > span { animation-delay: .28s; }
.hh-title em {
  font-style: normal; color: #fff;
  background: linear-gradient(120deg, rgba(111,143,217,.0) 0%, rgba(111,143,217,.35) 42%, rgba(111,143,217,0) 60%);
  padding: 0 6px;
}
@keyframes lineUp { to { transform: translateY(0); } }
.hh-desc {
  max-width: 560px; font-size: 17px; line-height: 1.9;
  color: rgba(255,255,255,.72); margin-bottom: 34px;
  opacity: 0; transform: translateY(20px); animation: fadeUp .8s ease .42s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hh-cta { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; transform: translateY(20px); animation: fadeUp .8s ease .55s forwards; }
.hh-trust {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px;
  opacity: 0; animation: fadeUp .8s ease .7s forwards;
}
.hh-trust li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(255,255,255,.78); }
.hh-trust svg { width: 17px; height: 17px; color: var(--blue-300); }
/* 首屏侧边数据 */
.hh-stats {
  position: absolute; right: 4%; bottom: 22%; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 300px;
  opacity: 0; transform: translateX(30px); animation: fadeUp .8s ease .75s forwards;
}
.hh-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 20px 18px; backdrop-filter: blur(8px);
}
.hh-stat b { display: block; font-size: 28px; color: #fff; line-height: 1.2; }
.hh-stat b i { font-style: normal; font-size: 16px; color: var(--blue-300); }
.hh-stat span { font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: .06em; }

/* ---------- 滚动字幕条 ---------- */
.marquee-band {
  background: var(--grad-blue);
  overflow: hidden; padding: 16px 0; position: relative; z-index: 4;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9);
  padding: 0 26px; white-space: nowrap; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 26px;
}
.marquee-track span::after { content: ""; width: 9px; height: 9px; background: rgba(255,255,255,.5); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 首页快速入口 ---------- */
.quick-entry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -56px; position: relative; z-index: 5; }
.qe-item {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-2); display: block;
  border-bottom: 3px solid transparent;
  transition: all .32s ease; position: relative; overflow: hidden;
}
.qe-item::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--grad-soft); transition: all .35s ease;
}
.qe-item:hover { transform: translateY(-7px); border-bottom-color: var(--blue-500); }
.qe-item:hover::after { transform: scale(1.5); }
.qe-ic {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  background: var(--grad-navy); color: #fff; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.qe-ic svg { width: 24px; height: 24px; }
.qe-item:hover .qe-ic { background: var(--grad-blue); transform: rotate(-6deg) scale(1.05); }
.qe-item h3 { font-size: 17px; margin-bottom: 6px; position: relative; z-index: 1; }
.qe-item p { font-size: 13.5px; color: var(--gray-500); margin: 0; position: relative; z-index: 1; }
.qe-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--blue-500); position: relative; z-index: 1;
}
.qe-more svg { width: 14px; height: 14px; transition: transform .25s ease; }
.qe-item:hover .qe-more svg { transform: translateX(4px); }

/* ---------- 首页资讯区 ---------- */
.home-news {
  position: relative;
  background:
    radial-gradient(900px 340px at 88% -40px, rgba(58,93,176,.10), transparent 62%),
    var(--gray-100);
}
.hn-main .news-card { margin-bottom: 0; }
/* 首页文章列表四数据源横向滚动区 */
.hn-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hn-rail .rail-card {
  display: block; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-1); transition: all .3s ease;
}
.hn-rail .rail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.hn-rail .rail-img { aspect-ratio: 16 / 10; overflow: hidden; }
.hn-rail .rail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hn-rail .rail-card:hover .rail-img img { transform: scale(1.06); }
.hn-rail .rail-body { padding: 15px 16px 17px; }
.hn-rail h4 { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-rail .rail-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-400); }
.hn-rail .rail-meta svg { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }

/* ---------- 首页优势条目 ---------- */
.adv-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px dashed var(--gray-300); }
.adv-item:last-child { border-bottom: 0; }
.adv-item .ad-num {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: var(--grad-navy); color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transform: skewX(-8deg); position: relative; z-index: 0;
}
.adv-item .ad-num::after {
  content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(255,255,255,.5);
  border-radius: 9px; z-index: -1;
}
.adv-item h3 { font-size: 17.5px; margin-bottom: 6px; }
.adv-item p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .hh-stats { display: none; }
  .quick-entry { grid-template-columns: repeat(2, 1fr); }
  .hn-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .home-hero { padding: 130px 0 110px; }
  .hh-title { font-size: 40px; }
  .hh-deco, .hh-deco2 { display: none; }
}
@media (max-width: 640px) {
  .home-hero { padding: 118px 0 100px; }
  .hh-title { font-size: 30px; }
  .hh-desc { font-size: 15px; }
  .quick-entry { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: -44px; }
  .qe-item { padding: 22px 18px; }
  .hh-cta .btn { width: 100%; }
  .hn-rail { grid-template-columns: 1fr; }
}
