@charset "utf-8";
/* ============================================================
   hunyin-zhishi.css —— 婚姻知识栏目页专属样式
   设计概念：「婚姻知识档案室」——索引卡 / 档案号 / 分类抽屉
   主题色：深蓝墨（--ink #1f2a44）+ 砖红（--accent #b8331f）
   ============================================================ */

.cp-page--zhishi {
  --ink: #1f2a44;
  --ink-2: #34436a;
  --ink-deep: #0c1222;
  --accent: #b8331f;
  --accent-2: #e8604c;
  --accent-deep: #7a2012;
  --gold: #f3c64f;
  --bg: #f7f4ec;
  --bg-2: #faf3e3;
  --edge: #e6dfcd;
  --chip: #fde7e3;
}
.cp-page--zhishi .cp-hero { background: linear-gradient(160deg, #fbf8f1 0%, #f7f4ec 55%, #f1e7d8 100%); }

/* ---------- Hero 右侧：档案索引卡堆 ---------- */
.cp-file { position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 0; }
.cp-file__card {
  position: relative; border-radius: 18px; background: #fff; padding: 20px 22px;
  border: 1px solid var(--edge); box-shadow: 0 8px 0 var(--edge), 0 22px 30px -20px rgba(31, 42, 68, .5);
  transition: transform .3s ease;
}
.cp-file__card + .cp-file__card { margin-top: -10px; }
.cp-file__card:nth-child(1) { transform: rotate(-1.6deg) translateX(-10px); z-index: 3; }
.cp-file__card:nth-child(2) { transform: rotate(1.2deg) translateX(10px); z-index: 2; }
.cp-file__card:nth-child(3) { transform: rotate(-0.8deg) translateX(-4px); z-index: 1; }
/* 后两张只露出"档案标签"，避免被上层卡片遮住标题 */
.cp-file__card:nth-child(2), .cp-file__card:nth-child(3) { padding: 24px 22px 18px; overflow: hidden; }
.cp-file__card:nth-child(2) small, .cp-file__card:nth-child(3) small,
.cp-file__card:nth-child(2) ul, .cp-file__card:nth-child(3) ul { display: none; }
.cp-file__card:nth-child(2) b, .cp-file__card:nth-child(3) b {
  display: flex; align-items: center; gap: 10px; font-size: 17px;
}
.cp-file__card:nth-child(2) b::before, .cp-file__card:nth-child(3) b::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-2); flex: 0 0 auto;
}
.cp-file__card:hover { transform: rotate(0) translateY(-6px) translateX(0); z-index: 6; }
.cp-file__card b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.cp-file__card small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .14em; color: var(--muted-2); }
.cp-file__card ul { margin-top: 12px; }
.cp-file__card li {
  position: relative; padding-left: 16px; font-size: 13px; line-height: 2; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp-file__card li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.cp-file__tag {
  position: absolute; right: -14px; top: -14px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: 0 4px 0 var(--accent-deep);
}
.cp-file__count {
  display: block; margin-top: 22px; padding-left: 4px; font-size: 12.5px; letter-spacing: .06em;
  color: var(--muted-2);
}

/* ---------- 模块 01：知识地图（六大领域） ---------- */
.cp-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cp-map__card {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px;
  border-radius: 24px; background: #fff; border: 1px solid var(--edge);
  box-shadow: 0 8px 0 var(--edge), 0 22px 30px -24px rgba(31, 42, 68, .5);
  transition: transform .25s ease, border-color .25s ease;
}
.cp-map__card:hover { transform: translateY(-6px); border-color: var(--accent-2); }
.cp-map__card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 5px; border-radius: 0 6px 6px 0;
  background: linear-gradient(to bottom, var(--accent-2), var(--accent));
}
.cp-map__no {
  font-family: Georgia, serif; font-size: 13px; letter-spacing: .2em; color: var(--muted-2);
}
.cp-map__name { margin-top: 8px; font-family: var(--serif); font-size: 21px; font-weight: 900; color: var(--ink); }
.cp-map__desc { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.cp-map__links { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--edge); }
.cp-map__links a {
  position: relative; display: block; padding: 7px 0 7px 16px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
  transition: color .2s ease, padding-left .2s ease;
}
.cp-map__links a::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2);
  transition: background .2s ease;
}
.cp-map__links a:hover { color: var(--accent); padding-left: 20px; }
.cp-map__links a:hover::before { background: var(--accent); }

/* ---------- 模块 02：婚姻阶段课题时间轴 ---------- */
.cp-stage { position: relative; padding-top: 8px; perspective: 1400px; }
.cp-stage__rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative;
}
.cp-stage__rail::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--edge) 0 10px, transparent 10px 20px);
}
.cp-stage__item { position: relative; padding-top: 0; text-align: center; }
.cp-stage__dot {
  position: relative; z-index: 2; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--ink-2), var(--ink)); box-shadow: 0 6px 0 var(--ink-deep);
}
.cp-stage__item--hot .cp-stage__dot { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 0 var(--accent-deep); }
.cp-stage__card {
  margin-top: 18px; padding: 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--edge);
  box-shadow: 0 7px 0 var(--edge); text-align: left; height: 100%;
}
.cp-stage__item--hot .cp-stage__card { background: linear-gradient(to bottom, var(--ink), var(--ink-deep)); border-color: transparent; box-shadow: 0 7px 0 var(--ink-deep); }
.cp-stage__name { font-family: var(--serif); font-size: 17px; font-weight: 900; color: var(--ink); }
.cp-stage__item--hot .cp-stage__name { color: #fff; }
.cp-stage__year { margin-top: 4px; font-size: 12px; color: var(--muted-2); }
.cp-stage__item--hot .cp-stage__year { color: rgba(255, 255, 255, .6); }
.cp-stage__desc { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); min-height: 70px; }
.cp-stage__item--hot .cp-stage__desc { color: rgba(255, 255, 255, .82); }
.cp-stage__link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.cp-stage__item--hot .cp-stage__link { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .cp-file { max-width: 520px; }
  .cp-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-stage__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .cp-stage__rail::before { display: none; }
}
@media (max-width: 768px) {
  .cp-file__card + .cp-file__card { margin-top: -8px; }
  .cp-file__card { padding: 16px 18px; }
  .cp-file__card b { font-size: 16px; }
  .cp-file__card li { font-size: 12px; }
  .cp-map { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cp-stage__rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cp-stage__item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; text-align: left; padding-bottom: 18px; position: relative; }
  .cp-stage__item::before {
    content: ""; position: absolute; left: 26px; top: 56px; bottom: -4px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--edge) 0 8px, transparent 8px 16px);
  }
  .cp-stage__item:last-child::before { display: none; }
  .cp-stage__card { margin-top: 0; }
  .cp-stage__desc { min-height: 0; }
}
