@charset "utf-8";
/* ============================================================
   hunyin-jingying.css —— 婚姻经营栏目页专属样式
   设计概念：「关系账户 × 经营仪表盘」——四账户 / 仪表盘 / 年度日历 / 体检表
   主题色：墨绿（--ink #14452f）+ 金（--accent #b8891f）
   ============================================================ */

.cp-page--jingying {
  --ink: #14452f;
  --ink-2: #1d6544;
  --ink-deep: #0a2a1c;
  --accent: #8a6405;      /* 在白色与奶油底上对比度均 ≥4.5，可安全用于正文与链接 */
  --accent-2: #d9ab45;
  --accent-deep: #6f4f06;
  --gold: #e8c56a;
  --bg: #f6f6ef;
  --bg-2: #f1f4e9;
  --edge: #dfe4d4;
  --chip: #f7ecd2;
}
.cp-page--jingying .cp-hero { background: linear-gradient(160deg, #f9f9f3 0%, #f1f4e9 50%, #e7ecdc 100%); }
.cp-page--jingying .cp-hero__grid {
  background-image: linear-gradient(rgba(20, 69, 47, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 69, 47, .05) 1px, transparent 1px);
}

/* 主题修正：金作白色文字底时对比度不足，改用深色端渐变 */
.cp-page--jingying .cp-btn { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.cp-page--jingying .cp-btn--ghost { background: #fff; }

/* ---------- Hero 右侧：账户仪表卡 ---------- */
.cp-board {
  position: relative; width: 100%; max-width: 450px; margin: 0 auto; border-radius: 26px; background: #fff;
  border: 1px solid var(--edge); box-shadow: 0 10px 0 var(--edge), 0 30px 42px -28px rgba(20, 69, 47, .55);
  padding: 22px 22px 24px;
}
.cp-board__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px dashed var(--edge); }
.cp-board__head b { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.cp-board__head span { padding: 4px 12px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.cp-board__row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 42px; align-items: center; gap: 12px; margin-top: 16px; }
.cp-board__row > b { font-size: 13px; font-weight: 700; color: var(--ink); }
.cp-board__bar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.cp-board__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.cp-board__row > span { font-family: Georgia, serif; font-size: 13px; color: var(--muted-2); text-align: right; }
.cp-board__row:nth-child(3) .cp-board__bar i { background: linear-gradient(90deg, var(--ink-2), var(--ink)); }
.cp-board__tip { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--edge); font-size: 13px; line-height: 1.8; color: var(--muted); }

/* ---------- 模块 01：四大账户 ---------- */
.acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.acct__card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 24px;
  background: #fff; border: 1px solid var(--edge); box-shadow: 0 8px 0 var(--edge);
}
.acct__top { display: flex; align-items: center; gap: 14px; }
.acct__icon {
  width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--ink-2), var(--ink)); box-shadow: 0 5px 0 var(--ink-deep);
}
.acct__card:nth-child(even) .acct__icon { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 5px 0 var(--accent-deep); }
.acct__name { font-family: var(--serif); font-size: 21px; font-weight: 900; color: var(--ink); }
.acct__en { font-family: Georgia, serif; font-size: 11px; letter-spacing: .2em; color: var(--muted-2); text-transform: uppercase; }
.acct__desc { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.acct__flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.acct__flow div { padding: 14px 16px; border-radius: 16px; }
.acct__flow b { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; }
.acct__flow ul li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.9; }
.acct__flow ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; }
.acct__in { background: var(--bg); }
.acct__in b { color: var(--ink-2); }
.acct__in ul li::before { background: var(--ink-2); }
.acct__out { background: #fdf6e6; }
.acct__out b { color: var(--accent-deep); }
.acct__out ul li::before { background: var(--accent); }
.acct__link { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--edge); font-size: 13px; font-weight: 700; color: var(--accent); }
.acct__link:hover { color: var(--accent-deep); }

/* ---------- 模块 02：经营仪表盘 ---------- */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.dash__gauge {
  position: relative; width: 200px; height: 200px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--accent) 0 68%, var(--edge) 68% 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .12);
}
.dash__gauge-in {
  width: 152px; height: 152px; border-radius: 50%; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(20, 69, 47, .16);
}
.dash__gauge-in b { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.dash__gauge-in span { margin-top: 6px; font-size: 12px; letter-spacing: .14em; color: var(--muted-2); }
.dash__rows { display: flex; flex-direction: column; gap: 18px; }
.dash__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.dash__row b { font-size: 14px; color: var(--ink); }
.dash__track { height: 12px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.dash__track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ink-2), var(--ink)); }
.dash__row--warn .dash__track i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.dash__note { grid-column: 1 / -1; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* ---------- 模块 03：年度经营日历 ---------- */
.cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cal__cell {
  padding: 18px 16px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge); transition: transform .22s ease, border-color .22s ease;
}
.cal__cell:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.cal__mon { font-family: Georgia, serif; font-size: 13px; letter-spacing: .14em; color: var(--accent); }
.cal__theme { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cal__act { margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.cal__cell--key { background: linear-gradient(to bottom, var(--ink), var(--ink-deep)); border-color: transparent; box-shadow: 0 6px 0 var(--ink-deep); }
.cal__cell--key .cal__mon { color: var(--gold); }
.cal__cell--key .cal__theme { color: #fff; }
.cal__cell--key .cal__act { color: rgba(255, 255, 255, .8); }

/* ---------- 模块 04：关系体检表 ---------- */
.check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check__item {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 18px;
  background: #fff; border: 1px solid var(--edge); cursor: pointer; transition: all .2s ease;
}
.check__item:hover { border-color: var(--accent-2); }
.check__item input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid var(--edge);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.check__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); opacity: 0; margin-top: -2px; }
.check__item input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check__item input:checked + .check__box::after { opacity: 1; }
.check__item input:focus-visible + .check__box { outline: 2px dashed var(--accent); outline-offset: 2px; }
.check__txt { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.check__item:has(input:checked) { background: var(--bg); }
.check__result {
  margin-top: 24px; padding: 24px 26px; border-radius: 24px; background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.check__score { display: flex; align-items: baseline; gap: 10px; }
.check__score b { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ink); }
.check__score span { font-size: 13px; color: var(--muted-2); }
.check__msg { flex: 1 1 320px; font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.check__msg em { font-style: normal; font-weight: 700; color: var(--ink); }
.check__bar { flex: 1 1 100%; height: 10px; border-radius: 999px; background: var(--edge); overflow: hidden; }
.check__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .35s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}@media (max-width: 640px) {
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .check { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .acct__flow { grid-template-columns: minmax(0, 1fr); }
  .dash__gauge { width: 168px; height: 168px; }
  .dash__gauge-in { width: 126px; height: 126px; }
  .dash__gauge-in b { font-size: 32px; }
  .dash__row { grid-template-columns: 78px minmax(0, 1fr); }
  .check__result { padding: 20px; }
}
