/* ==========================================================================
   index.css —— 首页私有样式
   板块：全屏Banner / 数字条 / 错位优势网格 / 12类型卡 / 流程横条 /
        案例横滑 / 文章列表 / CTA横幅
   ========================================================================== */

/* ---------- ① 首屏全屏 Banner ---------- */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -72px;               /* 抵消 sticky 导航，让 banner 顶到最上 */
  padding-top: 72px;
}
.home-hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.home-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-hero-mask {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(35,36,31,.82) 0%, rgba(35,36,31,.55) 45%, rgba(35,36,31,.25) 100%);
}
/* 竹影叠层：右下角淡墨竹枝 */
.home-hero-bamboo {
  position: absolute;
  right: -20px; bottom: -30px;
  width: 340px; height: 460px;
  z-index: -1;
  opacity: .8;
  pointer-events: none;
}
.home-hero-inner { color: #fff; padding-top: 40px; }
.home-hero-eyebrow {
  display: inline-block;
  font-size: .8rem; letter-spacing: .25em;
  color: #cfe0c9;
  border: 1px solid rgba(207,224,201,.45);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.home-hero h1 {
  color: #fff;
  font-size: 3.2rem;
  max-width: 720px;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  animation: heroUp .8s var(--ease) both;
}
.home-hero-sub {
  color: rgba(246,242,233,.88);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 30px;
  animation: heroUp .8s var(--ease) .15s both;
}
.home-hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
  animation: heroUp .8s var(--ease) .3s both;
}
.home-hero-btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.home-hero-btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.home-hero-note {
  font-size: .85rem;
  color: rgba(246,242,233,.6);
  animation: heroUp .8s var(--ease) .45s both;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ② 数字统计条 ---------- */
.home-stats {
  background: var(--bamboo-deep);
  padding: 44px 0;
  margin-top: -1px;
}
.home-stats .stats .stat-num { color: #fff; font-size: 2.4rem; }
.home-stats .stats .stat-num span { font-size: 1.2rem; color: var(--bamboo-light); margin-left: 2px; }
.home-stats .stats .stat-label { color: rgba(246,242,233,.75); }

/* ---------- ③ 核心优势错位网格 ---------- */
.home-advantages { background: var(--rice); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.adv-offset { transform: translateY(36px); }
.adv-card { box-shadow: var(--shadow-md); }
.adv-card h3 { font-size: 1.25rem; }
@media (max-width: 768px) {
  .adv-offset { transform: none; }
  .adv-grid { grid-template-columns: 1fr; }
}

/* ---------- ④ 建站类型 12 卡 ---------- */
.home-types { background: var(--rice-deep); }
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.type-card { padding: 26px 22px; display: block; color: var(--ink); }
.type-card:hover { color: var(--ink); }
.type-card .type-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bamboo-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.type-card .type-icon svg { width: 22px; height: 22px; stroke: var(--bamboo); }
.type-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.type-card p { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 992px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .type-grid { grid-template-columns: 1fr; } }

/* ---------- ⑤ 服务流程横条 ---------- */
.home-flow { background: var(--paper); }
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.flow-step {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow-step:last-child { border-right: 0; }
.flow-step::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--bamboo);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.flow-step:hover::before { transform: scaleX(1); }
.flow-no {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bamboo-mist);
  color: var(--bamboo-deep);
  font-family: var(--font-title);
  align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.flow-step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.flow-step p { font-size: .82rem; }
.home-flow-more { text-align: center; margin-top: 30px; }
@media (max-width: 992px) {
  .flow-row { grid-template-columns: repeat(2, 1fr); }
  .flow-step { border-bottom: 1px solid var(--line); }
  .flow-step:nth-child(2n) { border-right: 0; }
}
@media (max-width: 480px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; }
}

/* ---------- ⑥ 案例横滑 ---------- */
.case-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.case-item {
  position: relative;
  flex: 0 0 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
}
.case-item img { width: 100%; height: 260px; object-fit: cover; }
.case-mask {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 22px 18px;
  background: linear-gradient(transparent, rgba(35,36,31,.85));
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.case-mask strong { font-family: var(--font-title); font-size: 1.05rem; }
.case-mask em { font-style: normal; font-size: .8rem; color: rgba(246,242,233,.75); }
.home-cases-more { text-align: right; margin-top: 10px; font-size: .9rem; }
@media (max-width: 480px) { .case-item { flex: 0 0 85vw; } }

/* ---------- ⑦ 文章列表 ---------- */
.home-news { background: var(--rice); }
.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}
.news-row-main { margin-bottom: 34px; }
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card a { color: var(--ink); }
.post-card a img { width: 100%; height: 180px; object-fit: cover; }
.post-card h3 {
  font-size: 1rem;
  padding: 14px 16px 0;
  line-height: 1.5;
}
.post-card p {
  font-size: .82rem;
  padding: 6px 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card time {
  display: block;
  font-size: .75rem;
  color: var(--ink-soft);
  padding: 10px 16px 14px;
}
@media (max-width: 768px) { .news-row { grid-template-columns: 1fr; } }

/* ---------- ⑧ CTA 横幅 ---------- */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.home-cta-bg {
  position: absolute; inset: 0; z-index: -1;
}
.home-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.home-cta-inner {
  text-align: center;
  max-width: 640px;
}
.home-cta-inner h2 { margin-bottom: 12px; }
.home-cta-inner p { margin-bottom: 22px; }
.home-cta-contact {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 1rem;
}
.home-cta-phone a, .home-cta-mail a { font-weight: 700; }
