/* ==========================================================================
   首页专属样式（尧图建网站 mlqm.cn）
   每个模块独立原创设计，区别于其他页面
   ========================================================================== */

/* ==========================================================================
   Hero · 左右图文渐变融合首屏
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sage-ink) 0%, var(--sage-deep) 55%, #6B8160 100%);
}

/* 全屏实景图作为底层，与深绿底融合 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

/* 米杏 + 浅绿柔光过渡蒙版 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(58, 58, 50, 0.86) 0%, rgba(92, 115, 85, 0.55) 55%, rgba(92, 115, 85, 0.15) 100%),
    linear-gradient(180deg, transparent 60%, var(--cream) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 14%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 228, 208, 0.18) 0%, transparent 70%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(237, 228, 208, 0.14);
  border: 1px solid rgba(237, 228, 208, 0.4);
  color: var(--beige);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  margin-bottom: 28px;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  box-shadow: 0 0 0 4px rgba(196, 155, 125, 0.25);
}

.hero-text h1 {
  font-size: 52px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-text h1 .accent {
  color: var(--terracotta-soft);
  position: relative;
}

.hero-text h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 12px;
  background: rgba(196, 155, 125, 0.28);
  z-index: -1;
  border-radius: 4px;
}

.hero-text .hero-sub {
  font-size: 16px;
  color: rgba(250, 247, 240, 0.82);
  line-height: 1.95;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-actions .btn-ghost {
  color: var(--cream);
  border-color: rgba(250, 247, 240, 0.5);
}

.hero-actions .btn-ghost:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* 首页数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.16);
  backdrop-filter: blur(8px);
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  color: var(--terracotta-soft);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stats .stat span {
  font-size: 12.5px;
  color: rgba(250, 247, 240, 0.7);
}

/* Hero 右侧：实景图卡 + 浮动信息 */
.hero-visual {
  position: relative;
  height: 460px;
}

.hero-visual .hv-main {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual .hv-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .hv-float {
  position: absolute;
  bottom: -22px;
  left: -22px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-visual .hv-float .hv-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
}

.hero-visual .hv-float h5 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.hero-visual .hv-float p {
  font-size: 12px;
  color: var(--muted);
}

.hero-visual .hv-tag {
  position: absolute;
  top: 22px;
  right: -14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 247, 240, 0.7);
  font-size: 10.5px;
  letter-spacing: 3px;
  font-family: var(--font-en);
}

.hero-scroll .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(250, 247, 240, 0.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--terracotta-soft);
  border-radius: 2px;
  animation: scrolldot 1.6s ease-in-out infinite;
}

@keyframes scrolldot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 8px); }
}

/* ==========================================================================
   核心优势 · 双圆环数据卡（首页专属）
   ========================================================================== */
.adv-home {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.adv-home-left h2 {
  font-size: 34px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 18px;
}

.adv-home-left h2 .accent {
  color: var(--sage-deep);
}

.adv-home-left p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.95;
  margin-bottom: 26px;
}

.adv-home-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.adv-home-points li:last-child {
  border-bottom: none;
}

.adv-home-points .ap-no {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--sage-deep);
  flex-shrink: 0;
  width: 32px;
}

.adv-home-points h4 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}

.adv-home-points p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 0;
}

/* 右侧：叠层实景图 + 浮卡 */
.adv-home-right {
  position: relative;
  height: 420px;
}

.adv-home-right .ar-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 86%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.adv-home-right .ar-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adv-home-right .ar-sub {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 50%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--cream);
}

.adv-home-right .ar-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adv-home-right .ar-badge {
  position: absolute;
  top: 18px;
  left: -14px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--terracotta) 0%, #B08568 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.adv-home-right .ar-badge strong {
  display: block;
  font-family: var(--font-en);
  font-size: 26px;
  line-height: 1;
}

.adv-home-right .ar-badge span {
  font-size: 11px;
  letter-spacing: 1px;
}

/* ==========================================================================
   快速入口 · 六宫格（首页专属，区别于服务卡）
   ========================================================================== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quick-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  overflow: hidden;
  display: block;
}

.quick-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--terracotta) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-soft);
}

.quick-card:hover::before {
  transform: scaleX(1);
}

.quick-card .qc-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--sage-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  margin-bottom: 18px;
  transition: all 0.35s ease;
}

.quick-card:hover .qc-ico {
  background: var(--sage-deep);
  color: #fff;
  transform: rotate(-6deg);
}

.quick-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 9px;
}

.quick-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.quick-card .qc-arrow {
  font-size: 13px;
  color: var(--sage-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.quick-card:hover .qc-arrow {
  gap: 11px;
}

/* ==========================================================================
   建站流程时间轴（首页横向）
   ========================================================================== */
.flow-home {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.flow-home::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-soft), var(--sage-deep), var(--sage-soft));
  background-size: 200% 100%;
  z-index: 0;
}

.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.flow-step .fs-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--sage-deep);
  transition: all 0.35s ease;
  position: relative;
}

.flow-step .fs-dot .fs-no {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
}

.flow-step:hover .fs-dot {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
  transform: translateY(-4px);
}

.flow-step h4 {
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 6px;
}

/* ==========================================================================
   首页资讯头条（特色大卡 + 列表）
   ========================================================================== */
.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
  align-items: stretch;
}

.news-feature .nf-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-md);
}

.news-feature .nf-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.9s ease;
}

.news-feature .nf-main:hover img {
  transform: scale(1.05);
}

.news-feature .nf-main .nf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(58, 58, 50, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
}

.news-feature .nf-main .nf-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  align-self: flex-start;
}

.news-feature .nf-main h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-feature .nf-main p {
  color: rgba(250, 247, 240, 0.8);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 首页资讯列表容器 */
.home-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   首页响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-text h1 {
    font-size: 42px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .flow-home {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-home::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    height: 320px;
    max-width: 460px;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .adv-home {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .adv-home-right {
    height: 340px;
    max-width: 520px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }
  .quick-grid,
  .flow-home {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 260px;
  }
}
