/* ==========================================================================
   三亩地 · 首页专属样式
   布局：全屏视差分层 + 田野卷轴日记分段 + 非对称模块
   ========================================================================== */

/* ---------- 核心优势：手账卡片错落网格 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.adv-card {
  position: relative;
  padding: 32px 26px 28px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(236, 223, 200, 0.55);
  box-shadow: var(--shadow-sm);
  transition: all 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
}

.adv-card:nth-child(odd) { transform: translateY(0); }
.adv-card:nth-child(even) { transform: translateY(24px); }

.adv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-soft);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.adv-card:nth-child(even):hover { transform: translateY(16px); }

.adv-no {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--yellow-mist);
  line-height: 1;
  transition: color 0.4s ease;
}

.adv-card:hover .adv-no { color: var(--yellow-soft); }

.adv-ico {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--pink-mist);
  color: var(--pink-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.4s ease;
}

.adv-card:hover .adv-ico {
  background: var(--pink-deep);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.adv-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.8;
}

/* ---------- 八大核心模块：非对称视差图文 ---------- */
.module-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
}

.module-block:last-child { margin-bottom: 0; }

.module-block.flip .module-media { order: 2; }

.module-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}

.module-media img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.module-media:hover img { transform: scale(1.02); }

.module-media .media-tag {
  position: absolute;
  top: 22px;
  left: -14px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-md);
}

.module-media .media-num {
  position: absolute;
  bottom: -20px;
  right: -16px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--pink-ink);
  font-weight: 700;
  box-shadow: var(--shadow-yellow);
  border: 4px solid var(--cream);
}

.module-body .m-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--pink-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.module-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
  line-height: 1.35;
}

.module-body .m-desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 24px;
}

.module-body .m-list { margin-bottom: 28px; }

.module-body .m-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--body);
}

.module-body .m-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--pink-deep);
  border-radius: 2px;
}

/* ---------- 快速入口：四象限色块 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-card {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--r-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--ink);
}

.quick-card.qc-1 { background: linear-gradient(140deg, var(--yellow-mist), var(--yellow-soft)); }
.quick-card.qc-2 { background: linear-gradient(140deg, var(--pink-mist), var(--pink-soft)); }
.quick-card.qc-3 { background: linear-gradient(140deg, var(--cream-2), var(--cream-3)); }
.quick-card.qc-4 { background: linear-gradient(140deg, rgba(168, 193, 138, 0.18), rgba(168, 193, 138, 0.32)); }

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

.quick-card .qc-ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  color: var(--pink-ink);
}

.quick-card h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 6px;
}

.quick-card p {
  font-size: 12.5px;
  color: var(--body);
  margin-bottom: 14px;
}

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

.quick-card:hover .qc-link { gap: 10px; }

/* ---------- 学习路线：蜿蜒丝带 ---------- */
.roadmap-wrap {
  position: relative;
  padding: 20px 0;
}

.road-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.road-track::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--yellow-deep) 50%, transparent 50%);
  background-size: 14px 3px;
  z-index: 0;
}

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

.road-dot {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px dashed var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--pink-ink);
  transition: all 0.4s ease;
  position: relative;
}

.road-step:hover .road-dot {
  background: var(--pink-deep);
  color: #fff;
  border-color: var(--pink-deep);
  transform: scale(1.08);
  border-style: solid;
}

.road-step h5 {
  font-size: 15px;
  margin-bottom: 6px;
}

.road-step p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 数据统计：手账票根 ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.stat-cell {
  position: relative;
  padding: 38px 24px;
  text-align: center;
  border-right: 1px dashed var(--line);
}

.stat-cell:last-child { border-right: none; }

.stat-cell::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px dashed transparent;
  border-radius: var(--r-md);
  transition: border-color 0.4s ease;
}

.stat-cell:hover::before { border-color: var(--pink-soft); }

.stat-cell strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--pink-ink);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-cell span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 作者自述：明信片 ---------- */
.author-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
}

.author-card::before {
  content: "三亩地 · No.001";
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  z-index: 3;
}

.author-media {
  position: relative;
  min-height: 380px;
}

.author-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 103, 96, 0.12), transparent 50%);
}

.author-body {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-body .a-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--pink-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.author-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 18px;
}

.author-body p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.95;
  margin-bottom: 18px;
}

.author-sign {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--pink-ink);
  margin-top: 10px;
  font-style: italic;
}

/* ---------- 首页资讯区 ---------- */
.home-news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.home-news-head .sec-head {
  text-align: left;
  margin: 0;
}

.home-news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-news-list .news-item {
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  margin-bottom: 0;
}

.home-news-list .news-item .n-thumb { aspect-ratio: 4 / 3; }
.home-news-list .news-item .n-body h4 { font-size: 15.5px; }
.home-news-list .news-item .n-excerpt { -webkit-line-clamp: 1; font-size: 12.5px; }
.home-news-list .news-item .n-foot { margin-top: 10px; padding-top: 10px; }

/* ---------- 行动召唤 ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  background: linear-gradient(120deg, var(--pink-mist) 0%, var(--yellow-mist) 100%);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.cta-band::before {
  top: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: var(--pink-soft);
}

.cta-band::after {
  bottom: -80px;
  right: -30px;
  width: 240px;
  height: 240px;
  background: var(--yellow-soft);
}

.cta-band .container { position: relative; z-index: 2; }

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  font-size: 15px;
  color: var(--body);
  max-width: 540px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-card:nth-child(even) { transform: translateY(0); }
  .adv-card:nth-child(even):hover { transform: translateY(-8px); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px dashed var(--line); }
  .road-track { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .road-track::before { display: none; }
  .home-news-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .module-block { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .module-block.flip .module-media { order: 0; }
  .author-card { grid-template-columns: 1fr; }
  .author-media { min-height: 240px; }
  .author-body { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .adv-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; border-bottom: 1px dashed var(--line); }
  .stat-cell:last-child { border-bottom: none; }
  .road-track { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 24px; }
  .module-media .media-num { width: 64px; height: 64px; font-size: 22px; }
}
