/* ============================================================
   Sketch Plan · 复盘卡样式（周 / 月 / 年 × 5 种风格）
   卡片内部全部用 em，随容器宽度缩放
   ============================================================ */

.rv-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rv-styles { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-style {
  border: 1px solid var(--line); border-radius: var(--r-1); padding: 5px 10px;
  text-align: left; background: transparent; transition: .16s; line-height: 1.3;
}
.rv-style b { display: block; font-size: 11.5px; font-weight: 600; }
.rv-style span { font-size: 9.5px; color: var(--text-3); }
.rv-style:hover { border-color: var(--text-3); }
.rv-style.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }

.rv-stage { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 34px; align-items: start; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 22px; }
.rv-item .rv-cap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; padding-left: 2px; }
.rv-cap b { font-size: 12px; }
.rv-cap span { font-size: 10.5px; color: var(--text-3); }

.rc-wrap { container-type: inline-size; width: 100%; }
.rc {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  font-size: 3.4cqw; line-height: 1.5; border-radius: var(--r-2);
  box-sizing: border-box;
}

/* ---------------- 通用条形 ---------------- */
.rc .bars { display: flex; align-items: flex-end; gap: .45em; height: 4.2em; padding-bottom: 1.5em; }
.rc .rb { position: relative; flex: 1; height: 100%; }
.rc .rb .all { position: absolute; left: 0; right: 0; bottom: 0; border-radius: .22em; }
.rc .rb .fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: .22em; }
.rc .rb span { position: absolute; left: 0; right: 0; bottom: -1.45em; text-align: center; font-size: .6em; opacity: .55; }

/* ============================================================
   S1 · 手账
   ============================================================ */
.rc-s1 {
  background: #FBF7EE; color: #211E19; padding: 2.3em 2em;
  background-image: radial-gradient(rgba(33, 30, 25, .10) 1px, transparent 1px);
  background-size: 1.05em 1.05em;
  border: 1px solid #DCD1BC;
  font-family: var(--font-body);
}
.rc-s1 .tape {
  position: absolute; top: .9em; left: -.7em; width: 5.2em; height: 1.35em;
  background: rgba(223, 165, 60, .5); transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}
.s1-head { padding-left: .2em; }
.s1-head .k { font-size: .6em; letter-spacing: .16em; color: #8A8172; margin-bottom: 1.2em; }
.s1-head h2 { font-family: var(--font-display); font-size: 2.1em; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.s1-head .sub { font-size: .7em; color: #8A8172; margin-top: .5em; font-variant-numeric: tabular-nums; }
.s1-ring { position: absolute; right: 1.8em; top: 4.4em; width: 5.2em; text-align: center; }
.s1-ring .hand { font-family: var(--font-hand); font-size: .66em; color: #8A8172; }
.s1-ring .ring { width: 100%; height: auto; }
.ring .track { fill: none; stroke: rgba(33, 30, 25, .12); stroke-width: 7; }
.ring .val { fill: none; stroke: #D9503A; stroke-width: 7; stroke-linecap: round; }
.ring text { font-family: var(--font-display); font-size: 23px; fill: #211E19; }

.s1-nums { display: flex; gap: 1.9em; margin: 1.5em 0 .4em; }
.s1-nums b { font-family: var(--font-display); font-size: 1.75em; display: block; line-height: 1.05; }
.s1-nums span { font-size: .64em; color: #8A8172; letter-spacing: .04em; }
.s1-bars { margin: 1.6em 0 1.2em; }
.bars-hand .all { background: rgba(33, 30, 25, .13); }
.bars-hand .fill { background: #211E19; }
.s1-note { font-family: var(--font-hand); font-size: .98em; line-height: 1.65; color: #4A443A; margin: .2em 0 .9em; }
.s1-cats { display: flex; flex-wrap: wrap; gap: .45em; }
.rc-s1 .cd {
  position: relative; font-size: .62em; padding: .3em .7em .3em 1.5em;
  border: 1px solid rgba(33, 30, 25, .18); border-radius: 99px; color: #5C5548;
}
.rc-s1 .cd::before {
  content: ""; position: absolute; left: .6em; top: 50%; transform: translateY(-50%);
  width: .45em; height: .45em; border-radius: 50%; background: var(--c);
}
.s1-foot {
  position: absolute; left: 2em; right: 2em; bottom: 1.5em;
  display: flex; justify-content: space-between; font-size: .6em; color: #8A8172;
  border-top: 1px dashed rgba(33, 30, 25, .16); padding-top: .7em; letter-spacing: .04em;
}
.stamp {
  position: absolute; right: 1.9em; bottom: 3.5em; width: 3.2em; height: 3.2em;
  border: 2px solid rgba(217, 80, 58, .5); border-radius: 50%;
  color: rgba(217, 80, 58, .65); font-family: var(--font-display); font-size: .56em;
  display: grid; place-items: center; text-align: center; line-height: 1.15;
  transform: rotate(-13deg);
}

/* ============================================================
   S2 · 柔彩
   ============================================================ */
.rc-s2 {
  background: #FFFFFF; color: #15151B; padding: 2.1em 1.9em 1.7em;
  border: 1px solid #ECECF2; border-radius: 1.3em;
}
.s2-top { display: flex; align-items: center; justify-content: space-between; }
.s2-top .pill {
  background: #EEF0FF; color: #5B6CFF; font-size: .62em; font-weight: 600;
  padding: .4em .95em; border-radius: 99px;
}
.s2-top .mini { font-size: .55em; letter-spacing: .14em; color: #A2A2B0; }
.rc-s2 h2 { font-size: 1.95em; letter-spacing: -.035em; margin: .45em 0 .55em; font-weight: 700; }
.s2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.s2-tiles .tile { border-radius: .85em; padding: .8em .9em .7em; }
.s2-tiles .a { background: #EEF0FF; }
.s2-tiles .b { background: #FFF0F3; }
.s2-tiles .c { background: #ECF8F1; }
.s2-tiles b { display: block; font-size: 1.55em; line-height: 1.15; letter-spacing: -.03em; }
.s2-tiles span { font-size: .58em; color: #6B6B79; }
.s2-mid { display: grid; grid-template-columns: 6em 1fr; gap: 1.1em; align-items: center; margin: 1.3em 0 .6em; }
.s2-donut {
  width: 6em; height: 6em; border-radius: 50%; position: relative;
  background: conic-gradient(#5B6CFF calc(var(--p) * 1%), #EFF0F7 0);
  display: grid; place-items: center;
}
.s2-donut::after { content: ""; position: absolute; inset: .62em; background: #fff; border-radius: 50%; }
.s2-donut b { position: relative; z-index: 1; font-size: 1.05em; letter-spacing: -.02em; }
.s2-cats .row { display: flex; align-items: center; gap: .5em; font-size: .62em; margin-bottom: .5em; color: #5A5A68; }
.s2-cats .row > i { width: .5em; height: .5em; border-radius: 50%; background: var(--c); flex: none; }
.s2-cats .row > span { width: 4.2em; }
.s2-cats .track { flex: 1; height: .45em; background: #F1F1F6; border-radius: 99px; overflow: hidden; }
.s2-cats .track b { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.s2-cats em { font-style: normal; width: 2.6em; text-align: right; color: #8B8B99; }
.bars-soft { margin-top: .8em; }
.bars-soft .all { background: #F1F1F6; }
.bars-soft .fill { background: #C9D0FF; }
.s2-advice { margin-top: 1.1em; padding: .85em 1em; background: #FAFAFD; border-radius: .8em; }
.s2-advice b { font-size: .62em; letter-spacing: .08em; color: #8B8B99; font-weight: 600; }
.s2-advice p { margin: .3em 0 0; font-size: .74em; line-height: 1.55; color: #3A3A46; }
.s2-foot { display: flex; justify-content: space-between; font-size: .55em; color: #B4B4C0; letter-spacing: .1em; margin-top: 1em; }

/* ============================================================
   S3 · 夜航
   ============================================================ */
.rc-s3 {
  background: linear-gradient(165deg, #151826 0%, #0A0B0F 55%, #170F28 100%);
  color: #ECEEF6; padding: 2.1em 1.9em;
  border: 1px solid rgba(255, 255, 255, .09);
}
.rc-s3 .glow {
  position: absolute; top: -22%; right: -18%; width: 65%; height: 55%;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 68%);
  filter: blur(18px); pointer-events: none;
}
.s3-head { display: flex; justify-content: space-between; align-items: center; font-size: .55em; letter-spacing: .14em; color: #8A90A6; }
.s3-head .who { display: flex; align-items: center; gap: .5em; }
.s3-head .who i { width: .5em; height: .5em; border-radius: 50%; background: linear-gradient(120deg, #8B5CF6, #22D3EE); box-shadow: 0 0 8px #8B5CF6; }
.rc-s3 h2 { font-size: 1.9em; letter-spacing: -.03em; margin: .55em 0 .8em; font-weight: 600; }
.s3-kpi { display: flex; gap: 1.4em; padding-bottom: 1.1em; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.s3-kpi b { display: block; font-family: var(--font-num); font-size: 1.55em; line-height: 1.1; letter-spacing: -.03em; }
.s3-kpi b em { font-style: normal; font-size: .5em; color: #8A90A6; margin-left: .12em; }
.s3-kpi span { font-size: .56em; color: #7E859C; letter-spacing: .06em; }
.bars-dark { margin: 1.1em 0 .4em; }
.bars-dark .all { background: rgba(255, 255, 255, .07); }
.bars-dark .fill { background: linear-gradient(180deg, #8B5CF6, #22D3EE); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
.bars-dark span { color: #6E7590; }
.s3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em 1.3em; margin: .9em 0 1em; }
.s3-grid .cell span { font-size: .58em; color: #7E859C; }
.s3-grid .cell b { font-family: var(--font-num); font-size: .95em; margin-left: .4em; }
.s3-grid .ln { height: .3em; background: rgba(255, 255, 255, .07); border-radius: 99px; margin-top: .35em; overflow: hidden; }
.s3-grid .ln i { display: block; height: 100%; border-radius: 99px; }
.s3-note { font-size: .72em; line-height: 1.6; color: #C2C7D8; }
.s3-note span { color: #7E859C; }
.s3-foot { position: absolute; left: 1.9em; right: 1.9em; bottom: 1.3em; display: flex; justify-content: space-between; font-size: .55em; letter-spacing: .12em; color: #6E7590; }

/* ============================================================
   S4 · 杂志
   ============================================================ */
.rc-s4 { background: #F7F5F0; color: #111; padding: 1.9em 1.9em 1.6em; border: 1px solid #E2DED4; }
.s4-top { display: flex; justify-content: space-between; font-size: .52em; letter-spacing: .16em; border-bottom: 1.5px solid #111; padding-bottom: .7em; }
.s4-hero { display: flex; align-items: flex-end; gap: .35em; margin: .5em 0 .2em; }
.s4-hero .big {
  font-family: var(--font-display); font-size: 5.6em; line-height: .78;
  letter-spacing: -.05em; font-weight: 600;
}
.s4-hero .hero-t h2 { font-family: var(--font-display); font-size: 1.75em; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .3em; }
.s4-hero .hero-t p { font-size: .58em; letter-spacing: .12em; color: #6B675F; margin: 0; }
.rc-s4 .rule { height: 1.5px; background: #111; margin: .8em 0 .7em; }
.rc-s4 .rule.thin { height: 1px; background: #C9C3B6; margin: .8em 0; }
.s4-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.s4-cols .col h6 { font-size: .5em; letter-spacing: .14em; font-weight: 500; color: #6B675F; margin: 0 0 .15em; }
.s4-cols .col b { font-family: var(--font-display); font-size: 1.7em; line-height: 1; letter-spacing: -.02em; }
.s4-cols .col span { font-size: .55em; color: #6B675F; margin-left: .3em; }
.s4-body .lead { font-family: var(--font-display); font-size: .92em; line-height: 1.55; margin: 0 0 .5em; }
.s4-body .small { font-size: .64em; line-height: 1.6; color: #4A463F; margin: 0; }
.bars-editorial { margin: 1em 0 .2em; height: 4em; }
.bars-editorial .all { background: #DFDACE; }
.bars-editorial .fill { background: #111; }
.bars-editorial span { color: #8B8578; }
.s4-foot { position: absolute; left: 1.9em; right: 1.9em; bottom: 1.4em; display: flex; justify-content: space-between; font-size: .52em; letter-spacing: .1em; color: #6B675F; border-top: 1px solid #C9C3B6; padding-top: .6em; }

/* ============================================================
   S5 · 票根
   ============================================================ */
.rc-s5 { background: #E8DDC7; padding: 1.1em; }
.rc-s5 .ticket {
  position: relative; height: 100%; background: #FCF8ED; padding: 1.8em 1.7em 1.6em;
  border: 1px solid #D3C3A6; display: flex; flex-direction: column;
}
.rc-s5 .ticket::before, .rc-s5 .ticket::after {
  content: ""; position: absolute; left: -.55em; width: 1.1em; height: 1.1em;
  border-radius: 50%; background: #E8DDC7; border: 1px solid #D3C3A6;
}
.rc-s5 .ticket::before { top: 28%; }
.rc-s5 .ticket::after { bottom: 18%; }
.tk-head { display: flex; justify-content: space-between; font-size: .55em; letter-spacing: .16em; color: #8A7A5E; }
.tk-brand { font-weight: 600; }
.rc-s5 h2 { font-family: var(--font-display); font-size: 1.85em; letter-spacing: -.02em; margin: .6em 0 .2em; }
.tk-range { font-family: var(--font-num); font-size: .56em; letter-spacing: .1em; color: #8A7A5E; }
.perf { height: 0; border-top: 1.5px dashed #C4B395; margin: 1.1em -1.7em 1em; position: relative; }
.perf.dash { margin: .9em -1.7em .9em; border-top-style: dotted; }
.tk-body { flex: 1; }
.tk-row { display: flex; align-items: baseline; justify-content: space-between; padding: .38em 0; border-bottom: 1px dotted #DDCFB6; }
.tk-row span { font-size: .68em; color: #6E6147; letter-spacing: .04em; }
.tk-row b { font-family: var(--font-num); font-size: 1.15em; letter-spacing: -.02em; }
.tk-row b em { font-style: normal; font-size: .55em; color: #8A7A5E; margin-left: .1em; }
.tk-note { font-size: .66em; line-height: 1.6; color: #4C4230; margin: .7em 0 .6em; }
.tk-cats { display: flex; gap: .4em; flex-wrap: wrap; }
.tk-cats span {
  font-size: .55em; padding: .28em .7em; border-radius: 99px;
  border: 1px solid var(--c); color: var(--c);
}
.barcode { display: flex; gap: .12em; height: 2.1em; align-items: stretch; margin: .9em 0 .5em; }
.barcode i { flex: 1; background: #2A2419; }
.barcode i:nth-child(3n) { flex: .45; }
.barcode i:nth-child(4n) { flex: 1.6; opacity: .75; }
.barcode i:nth-child(5n) { flex: .25; }
.tk-foot { display: flex; justify-content: space-between; font-size: .52em; letter-spacing: .14em; color: #8A7A5E; }

/* ---------------- 右侧说明 ---------------- */
.rv-side { padding-top: 6px; }
.rv-side h4 { font-size: 10.5px; letter-spacing: .12em; color: var(--text-3); font-weight: 500; margin: 0 0 8px; }
.rv-side p { margin: 0 0 20px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.rv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.rv-facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.rv-facts b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.rv-facts span { font-size: 10px; color: var(--text-3); }
.rv-tip {
  font-size: 11.5px; line-height: 1.7; color: var(--text-3);
  border-left: 2px solid var(--line); padding-left: 10px; margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .rv-stage { grid-template-columns: minmax(0, 1fr); }
  .rv-side { max-width: 520px; }
}
@media (max-width: 768px) {
  .rv-bar { gap: 10px; }
  .rv-style { padding: 4px 8px; }
  .rv-style span { display: none; }
  .rv-grid { grid-template-columns: 1fr; }
}

/* 竖向留白分布：让内容自然铺满 4:5 版面 */
.rc-s1, .rc-s2, .rc-s3, .rc-s4 { display: flex; flex-direction: column; }
.rc-s1 .s1-bars, .rc-s2 .bars-soft, .rc-s4 .bars-editorial { margin-top: auto; }
.rc-s1 .s1-cats { margin-bottom: .4em; }
.rc-s2 .s2-advice { margin-top: auto; }
.rc-s2 .bars-soft { margin-bottom: .6em; }
.rc-s4 .s4-body { margin-top: .2em; }
.rc-s3 .s3-note { margin-top: auto; }
.rc-s3 .s3-foot { position: absolute; }

@media (max-width: 768px) {
  .rv-stage { padding-bottom: 16px; }
  .rv-grid { padding-bottom: 16px; }
  .rv-tip { margin-bottom: 10px; }
}

/* ============================================================
   复盘四象限（KISS / GRAI / 年度四问）
   ============================================================ */
.rc .meth { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin: .75em 0 .1em; }
.rc .mi {
  position: relative; border-radius: .4em; padding: .4em .55em;
  background: color-mix(in srgb, var(--mc) 10%, transparent);
  border-left: 2px solid var(--mc); min-height: 3.6em; overflow: hidden;
}
.rc .mi-h { display: flex; align-items: baseline; gap: .3em; margin-bottom: .2em; }
.rc .mi-h b { font-size: .6em; font-weight: 700; letter-spacing: .03em; color: var(--mc); }
.rc .mi-h span { font-size: .56em; opacity: .72; }
.rc .mi-h .sug {
  margin-left: auto; font-style: normal; font-size: .46em; opacity: .5;
  border: 1px solid currentColor; border-radius: 99px; padding: 0 .35em; line-height: 1.5;
}
.rc .mi p {
  margin: 0; font-size: .56em; line-height: 1.5; opacity: .9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 手账：便签感 */
.rc-s1 .mi { background: color-mix(in srgb, var(--mc) 14%, #FBF7EE); border-left-width: 3px; border-radius: .3em .45em .3em .45em; }
.rc-s1 .mi p { font-family: var(--font-body); }

/* 柔彩：无边框色块 */
.rc-s2 .mi { border-left: none; border-radius: .8em; background: color-mix(in srgb, var(--mc) 12%, #fff); }
.rc-s2 .mi-h b { color: color-mix(in srgb, var(--mc) 80%, #15151B); }

/* 夜航：描边 + 微光 */
.rc-s3 .mi {
  background: color-mix(in srgb, var(--mc) 16%, #12141B);
  border: 1px solid color-mix(in srgb, var(--mc) 34%, transparent);
  border-left-width: 2px;
}
.rc-s3 .mi-h b { color: color-mix(in srgb, var(--mc) 60%, #fff); }
.rc-s3 .mi p { color: #C9CEDC; opacity: 1; }

/* 杂志：黑白 + 彩色顶线 */
.rc-s4 .mi { background: transparent; border: 1px solid #DCD7CA; border-top: 2px solid var(--mc); border-left: 1px solid #DCD7CA; border-radius: 0; }
.rc-s4 .mi-h b { font-family: var(--font-display); font-size: .7em; letter-spacing: .02em; }
.rc-s4 .mi p { color: #3A362F; }

/* 票根：虚线 */
.rc-s5 .mi {
  background: transparent; border: none; border-top: 1px dashed #CBBB9E;
  border-radius: 0; padding: .35em 0 .15em;
}
.rc-s5 .mi-h b { font-family: var(--font-num); }

/* ============================================================
   复盘的填写区
   ============================================================ */
.rv-side { padding-top: 4px; }
.rv-method-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rv-method-head b { font-family: var(--font-display); font-size: 15px; letter-spacing: -.01em; }
.rv-method-head span { font-size: 10.5px; color: var(--text-3); }
.rv-score { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.rv-score > span { font-size: 10.5px; color: var(--text-3); margin-right: 4px; }
.star { font-size: 17px; line-height: 1; color: var(--line); transition: transform .12s, color .12s; }
.star:hover { transform: scale(1.12); }
.star.on { color: #D8A23B; }
.rv-fields { display: flex; flex-direction: column; gap: 9px; }
.rv-field { display: flex; flex-direction: column; gap: 4px; }
.rv-field > span { font-size: 9.5px; letter-spacing: .08em; color: var(--mc); font-weight: 500; }
.rv-field textarea {
  border: 1px solid var(--line); border-left: 3px solid var(--mc);
  border-radius: var(--r-1); background: var(--surface); padding: 6px 9px;
  font-size: 12px; line-height: 1.65; resize: vertical; outline: none;
  font-family: inherit; color: var(--text); min-height: 52px;
}
.rv-field textarea:focus { border-color: var(--mc); }
.rv-field textarea::placeholder { color: var(--text-3); }
.rv-actions { display: flex; gap: 8px; margin: 12px 0 6px; }
.rv-saved { font-size: 10.5px; color: var(--text-3); margin-bottom: 14px; }
.rv-annual { border-top: 1px solid var(--line-2); padding-top: 10px; margin-bottom: 12px; }
.rv-annual summary { cursor: pointer; font-size: 11px; color: var(--text-3); }
.rv-annual summary:hover { color: var(--text); }
.rv-annual ol { margin: 8px 0 0; padding-left: 18px; font-size: 11.5px; line-height: 1.9; color: var(--text-2); }
.rv-tip { font-size: 11px; line-height: 1.7; color: var(--text-3); border-left: 2px solid var(--line); padding-left: 10px; }

/* 票根内部结构微调 */
.rc-s5 .tk-rows .tk-row { padding: .3em 0; }

/* 票根：内容更密，保证条码与页脚始终可见 */
.rc-s5 .ticket { padding: 1.5em 1.5em 1.2em; }
.rc-s5 h2 { font-size: 1.6em; margin: .45em 0 .15em; }
.rc-s5 .perf { margin: .8em -1.5em .7em; }
.rc-s5 .tk-rows .tk-row { padding: .2em 0; }
.rc-s5 .meth { gap: .2em; margin: .55em 0 0; }
.rc-s5 .mi { min-height: 0; padding: .28em 0 .1em; }
.rc-s5 .mi p { font-size: .52em; -webkit-line-clamp: 2; }
.rc-s5 .mi-h { margin-bottom: .1em; }
.rc-s5 .barcode { margin: .6em 0 .4em; }
.rc-s5 .tk-foot { font-size: .46em; }
.rc-s5 .barcode { margin-top: auto; }
