/* ===== 复盘工作台 · 布局样式（配合 assets/app.css） ===== */
.rp-shell { display: flex; max-width: var(--gl-content, 1720px); margin: 0 auto; padding: 14px 16px 30px;
            gap: 14px; align-items: flex-start; }

/* ---- 左侧模块导航 ---- */
.rp-side { width: 232px; flex: none; position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow-y: auto;
           background: #fff; border: 1px solid #e3e4e6; border-radius: 10px;
           padding: 13px 11px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.rp-side h1 { font-size: 15.5px; font-weight: 700; padding: 2px 6px 10px; }
.rp-side h1 small { display: block; font-size: 11.5px; font-weight: 400; color: #9aa3b2; margin-top: 3px; }
.rp-date { display: flex; gap: 6px; padding: 0 6px 10px; }
.rp-date select { flex: 1; min-width: 0; border: 1px solid #e3e4e6; border-radius: 6px;
                  padding: 6px 8px; font-size: 12.5px; background: #fff; color: #0a0a0a; }
.rp-date .btn { padding: 6px 10px; font-size: 12.5px; }
.rp-grp { color: #a0a8b8; font-size: 11.5px; padding: 9px 8px 5px; letter-spacing: .5px; }
.rp-mi { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 7px;
         color: #5a6478; font-size: 13.5px; cursor: pointer; border: 1px solid transparent; }
.rp-mi:hover { background: #f4f7fd; color: #27548c; }
.rp-mi.on { background: #eaf0ff; color: #27548c; font-weight: 600; border-color: #d6e2ff; }
.rp-mi .ic { font-size: 15px; width: 18px; text-align: center; flex: none; }
.rp-mi .tag { margin-left: auto; font-size: 10.5px; color: #9aa3b2; font-weight: 400; }
.rp-mi.on .tag { color: #6b8fe0; }
.rp-side .ft { border-top: 1px solid #f0f0f2; margin-top: 9px; padding: 9px 8px 2px;
               color: #9aa3b2; font-size: 11.5px; line-height: 1.75; }

/* ---- 主区 ---- */
.rp-main { flex: 1; min-width: 0; overflow-x: hidden; }
.rp-idx { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(146px, 100%), 1fr)); gap: 9px;
          margin-bottom: 13px; }
.rp-idx .ix { min-width: 0; overflow: hidden; }
.rp-idx .ix { background: #fff; border: 1px solid #e3e4e6; border-radius: 9px; padding: 9px 12px; }
.rp-idx .ix .n { color: #7c8697; font-size: 12px; }
.rp-idx .ix .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
                 display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.rp-idx .ix .v em { font-size: 12.5px; font-style: normal; font-weight: 600; }

/* ---- 卡片 ---- */
.rp-card { background: #fff; border: 1px solid #e3e4e6; border-radius:22px;
           padding: 15px 18px; margin-bottom: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.rp-card > h2 { font-size: 15px; font-weight: 700; margin-bottom: 3px;
                display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-card > .d { color: #8a93a5; font-size: 12.5px; margin-bottom: 12px; line-height: 1.7; }
.rp-card .hd-r { margin-left: auto; display: flex; gap: 7px; align-items: center; }

/* ---- 统计条 ---- */
.rp-stats { display: flex; gap: 9px; flex-wrap: wrap; }
.rp-stats .s { flex: 1; min-width: 96px; background: #f8fafd; border: 1px solid #edf0f6;
               border-radius:14px; padding: 9px 11px; text-align: center; }
.rp-stats .s .k { color: #8a93a5; font-size: 11.5px; margin-bottom: 4px; }
.rp-stats .s .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-stats .s .d { font-size: 11px; color: #a0a8b8; margin-top: 2px; }
.pos { color: #e03131; } .neg { color: #0ca678; } .mut { color: #9aa3b2; }

/* ---- 表格 ---- */
.rp-tbl-wrap { overflow: auto; max-height: 520px; border: 1px solid #f0f0f2; border-radius:10px; }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-tbl th { position: sticky; top: 0; background: #fafafa; color: #5a6478; font-weight: 600;
             text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e4e6;
             white-space: nowrap; z-index: 1; }
.rp-tbl td { padding: 7px 10px; border-bottom: 1px solid #f2f5f9; color: #333c4e;
             font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-tbl tbody tr:hover td { background: #f8fafd; }
.rp-tbl .num { text-align: right; }
.rp-tbl .code { color: #9aa3b2; font-size: 11.5px; }
.rp-tbl tr.hl td { background: #fffaf0; }
.rp-tbl .nm { font-weight: 600; color: #0a0a0a; }
.rp-tbl th.sortable { cursor: pointer; user-select: none; }
.rp-tbl th.sortable:hover { color: #27548c; }
.rp-tbl th .sort-ic { font-style: normal; font-size: 9px; color: #27548c; vertical-align: 1px; }

/* ---- 标签 ---- */
.rp-tag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px;
          border: 1px solid #e3e4e6; background: #fafafa; color: #5a6478; line-height: 1.7; }
.rp-tag.b { background: #eaf0ff; border-color: #d6e2ff; color: #27548c; }
.rp-tag.r { background: #fdeceb; border-color: #f8d7d5; color: #c0392b; }
.rp-tag.g { background: #e9f7f1; border-color: #cdeade; color: #0a7d57; }
.rp-tag.a { background: #fdf4e3; border-color: #f6e3bd; color: #97620a; }
.rp-tag.p { background: #f1eeff; border-color: #ddd6ff; color: #5842c4; }

/* ---- 涨停梯队 ---- */
.rp-ladder { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.rp-ladder .col { flex: none; width: 178px; background: #f8fafd; border: 1px solid #f0f0f2;
                  border-radius: 9px; padding: 9px; }
/* 家数多的层升多列（首板常见 30+ 家）：c2=2 列 / c3=3 列，卡片等宽网格 */
.rp-ladder .col.c2 { width: 366px; }
.rp-ladder .col.c3 { width: 554px; }
.rp-ladder .col .bd { display: flex; flex-direction: column; }
.rp-ladder .col.c2 .bd, .rp-ladder .col.c3 .bd { display: grid; gap: 6px; align-items: start;
                                                grid-template-columns: repeat(2, minmax(0,1fr)); }
.rp-ladder .col.c3 .bd { grid-template-columns: repeat(3, minmax(0,1fr)); }
.rp-ladder .col h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 7px;
                     display: flex; justify-content: space-between; align-items: center; }
.rp-ladder .col h4 span { font-size: 11px; color: #9aa3b2; font-weight: 400; }
.rp-ladder .st { background: #fff; border: 1px solid #e3e4e6; border-radius: 6px;
                 padding: 6px 8px; margin-bottom: 6px; }
.rp-ladder .col .bd .st { margin-bottom: 0; }
.rp-ladder .st .t1 { font-weight: 600; font-size: 12.5px; display: flex;
                     justify-content: space-between; gap: 6px; }
.rp-ladder .st .t1 em { font-style: normal; color: #27548c; font-size: 11px; font-weight: 600; }
.rp-ladder .st .t2 { color: #8a93a5; font-size: 11px; margin-top: 3px; line-height: 1.6;
                     overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
                     -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- 热力矩阵 ---- */
.rp-heat { display: flex; flex-wrap: wrap; gap: 3px; }
.rp-heat .cell { width: 15px; height: 15px; border-radius: 3px; background: #f0f0f2; }
.rp-legend { display: flex; align-items: center; gap: 6px; color: #8a93a5; font-size: 11.5px;
             margin-top: 9px; }
.rp-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }

/* ---- 排行条 ---- */
.rp-rank { display: flex; flex-direction: column; gap: 5px; }
.rp-rank .rw { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.rp-rank .rw .nm { width: 106px; flex: none; overflow: hidden; text-overflow: ellipsis;
                   white-space: nowrap; }
.rp-rank .rw .bg { flex: 1; height: 16px; background: #f2f5f9; border-radius: 4px;
                   position: relative; overflow: hidden; min-width: 40px; }
.rp-rank .rw .bg i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px;
                     background: #4d80f0; }
.rp-rank .rw .bg i.n { background: #0ca678; }
.rp-rank .rw .vl { width: 76px; flex: none; text-align: right;
                   font-variant-numeric: tabular-nums; }

/* ---- 搜索 / 控件 ---- */
.rp-in { border: 1px solid #e3e4e6; border-radius: 6px; padding: 6px 9px; font-size: 12.5px;
         background: #fff; color: #0a0a0a; min-width: 130px; }
.rp-in:focus { outline: none; border-color: #27548c; }
.rp-seg { display: inline-flex; border: 1px solid #e3e4e6; border-radius: 6px; overflow: hidden; }
.rp-seg button { border: 0; background: #fff; padding: 6px 11px; font-size: 12.5px;
                 cursor: pointer; color: #5a6478; border-right: 1px solid #e3e4e6; }
.rp-seg button:last-child { border-right: 0; }
.rp-seg button.on { background: #eaf0ff; color: #27548c; font-weight: 600; }
.rp-empty { color: #a0a8b8; font-size: 13px; padding: 22px; text-align: center; }
.rp-chart { width: 100%; height: 340px; }
.rp-chart.sm { height: 240px; }
.rp-chart.lg { height: 430px; }
/* 轨道必须 minmax(0,1fr)：卡内宽表格（min-content ~500px）会把 1fr(auto) 轨道撑爆，
   卡片被 .rp-main 的 hidden 裁掉右半（390 视口实测卡片 540 vs 容器 358） */
.rp-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 13px; }
.rp-three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
@media (max-width: 1180px) {
  .rp-shell { flex-direction: column; }
  .rp-side { width: 100%; position: static; }
  .rp-main { width: 100%; max-width: 100%; overflow-x: hidden; }
  .rp-two, .rp-three { grid-template-columns: minmax(0,1fr); }
}
.rp-note { background: #f8fafd; border-left: 3px solid #27548c; padding: 9px 13px;
           border-radius: 0 8px 8px 0; color: #5a6478; font-size: 12.5px; line-height: 1.75; }
.rp-note.warn { border-left-color: #ef9f27; }
.rp-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
            background: #0a0a0a; color: #fff; padding: 9px 18px; border-radius: 8px;
            font-size: 13px; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; }
.rp-toast.on { opacity: .93; }

/* ---- 工具条 ---- */
.rp-toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.rp-toolbar .rp-in { flex: 0 1 220px; }

/* ---- 人气/强势股卡片 ---- */
.rp-pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 10px; }
.rp-pcard { position: relative; background: #fff; border: 1px solid #e3e4e6; border-radius:14px;
            padding: 30px 12px 9px; cursor: pointer;
            transition: box-shadow .15s, transform .15s, border-color .15s; }
.rp-pcard:hover { box-shadow: 0 5px 16px rgba(39,84,140,.14); transform: translateY(-2px); border-color: #c9d9ff; }
.rp-pcard .rp-rk { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 700;
                   min-width: 28px; height: 20px; line-height: 20px; text-align: center;
                   border-radius: 5px; background: #f0f0f2; color: #7c8697; padding: 0 5px; }
.rp-pcard .rp-rk.g1 { background: linear-gradient(135deg, #ffd43b, #f59f00); color: #fff; }
.rp-pcard .rp-rk.g2 { background: #ced4da; color: #fff; }
.rp-pcard .rp-rk.g3 { background: #e8b98a; color: #fff; }
.rp-pcard .rp-up { position: absolute; top: 7px; right: 9px; font-size: 11px; font-weight: 600; }
.rp-upd.pos { color: #e03131; } .rp-upd.neg { color: #0ca678; }
.rp-phd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-lgw { flex: none; width: 32px; height: 32px; }
.rp-lgw img.rp-lg, .rp-lgw .rp-av { width: 32px; height: 32px; border-radius: 7px; object-fit: cover;
                                   display: flex; align-items: center; justify-content: center;
                                   color: #fff; font-size: 14px; font-weight: 700; }
.rp-ptt { min-width: 0; }
.rp-ptt b { display: block; font-size: 13.5px; color: #0a0a0a; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; }
.rp-ptt i { font-style: normal; font-size: 11px; color: #9aa3b2; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; display: block; }
.rp-prow { display: flex; align-items: baseline; gap: 8px; margin-top: 8px;
           font-variant-numeric: tabular-nums; }
.rp-prow .pv { font-size: 17px; font-weight: 700; }
.rp-prow .pr { font-size: 12.5px; color: #5a6478; }
.rp-prow .amt { margin-left: auto; font-size: 11px; color: #8a93a5; }
.rp-pmeta { color: #9aa3b2; font-size: 11px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.rp-pwhy { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.rp-pwhy .rp-tag { font-size: 10.5px; padding: 0 6px; line-height: 1.6; max-width: 100%;
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 个股详情弹层 ---- */
.rp-modal { position: fixed; inset: 0; background: rgba(23,28,40,.45); z-index: 90;
            display: flex; align-items: center; justify-content: center; padding: 18px; }
.rp-md { background: #f4f6fa; width: min(1040px, 96vw); max-height: 92vh; border-radius: 12px;
         display: flex; flex-direction: column; overflow: hidden;
         box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.rp-md .md-hd { background: #fff; padding: 11px 16px; display: flex; gap: 11px; align-items: center;
                border-bottom: 1px solid #e3e4e6; flex-wrap: wrap; }
.rp-md .md-hd .tt b { font-size: 16px; }
.rp-md .md-hd .tt i { font-style: normal; color: #9aa3b2; font-size: 12px; margin-left: 7px; }
.rp-md .md-hd .pv { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-md-x { margin-left: auto; border: 1px solid #e0e5ee; background: #fff; color: #5a6478;
           width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.rp-md-x:hover { background: #f4f7fd; color: #27548c; }
.rp-md .md-bd { overflow: auto; padding: 13px 16px 22px; }
.rp-md .sec { background: #fff; border: 1px solid #e3e4e6; border-radius: 10px;
              padding: 13px 16px; margin-bottom: 12px; }
.rp-md .sec h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rp-loading { color: #a0a8b8; font-size: 12.5px; padding: 10px 2px; }
.rp-techread { margin: 0; padding: 0 0 10px; list-style: none; }
.rp-techread li { padding: 5px 0 5px 16px; position: relative; font-size: 13px; color: #333c4e;
                  line-height: 1.65; border-bottom: 1px dashed #f0f3f8; }
.rp-techread li:last-child { border-bottom: 0; }
.rp-techread li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 6px;
                          height: 6px; border-radius: 50%; background: #c3ccdb; }
.rp-techread li.pos::before { background: #e03131; }
.rp-techread li.neg::before { background: #0ca678; }
/* K线弹窗：显示周期切换条（近1月/近3月/近6月/近1年/全部） */
.rp-kbar { display: flex; gap: 6px; padding: 0 0 8px; flex-wrap: wrap; }
.rp-kbar button { border: 1px solid #e3e8f2; background: #fafafa; color: #5a6478;
                  font-size: 11.5px; padding: 2px 11px; border-radius: 10px; cursor: pointer; }
.rp-kbar button:hover { border-color: #b9cdfd; color: #27548c; }
.rp-kbar button.on { background: #27548c; border-color: #27548c; color: #fff; }
.rp-md-kv { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f2f5f9;
            font-size: 12.8px; align-items: baseline; }
.rp-md-kv:last-child { border-bottom: 0; }
.rp-md-kv .k { flex: none; width: 76px; color: #8a93a5; }
.rp-md-kv .t { color: #333c4e; line-height: 1.7; }
.rp-vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 9px; }
.rp-vcell { background: #f8fafd; border: 1px solid #edf0f6; border-radius: 8px; padding: 10px 12px; }
.rp-vcell .k { color: #8a93a5; font-size: 11.5px; }
.rp-vcell .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 3px 0 6px; }
.rp-vcell .b { height: 6px; background: #f0f0f2; border-radius: 3px; overflow: hidden; }
.rp-vcell .b i { display: block; height: 100%; background: #4d80f0; border-radius: 3px; }
.rp-vcell .b i.hot { background: #e8590c; }
.rp-vcell .d { color: #a0a8b8; font-size: 11px; margin-top: 5px; }
.rp-supbox h4 { font-size: 12.8px; margin: 0 0 7px; display: flex; justify-content: space-between;
                align-items: center; gap: 8px; }
.rp-supbox h4 span { color: #9aa3b2; font-size: 11px; font-weight: 400; }
.rp-suptip { margin-bottom: 2px; }
.rp-newscard { border: 1px solid #f0f0f2; border-radius:10px; padding: 10px 12px; margin-bottom: 8px; }
.rp-newscard .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.rp-newscard .t { font-weight: 700; font-size: 13.2px; color: #0a0a0a; line-height: 1.55; }
.rp-newscard .c { color: #7c8697; font-size: 12px; line-height: 1.7; margin-top: 4px; }
.rp-newscard .ft { display: flex; justify-content: space-between; color: #a0a8b8; font-size: 11px;
                   margin-top: 6px; }

/* ===== m11 复盘清单 ===== */
.ck-ul { margin: 0; padding-left: 18px; }
.ck-ul li { font-size: 12.8px; color: #3c465a; line-height: 1.95; }
.ck-ul li b { color: #17202e; }
.ck-go { margin-top: 8px; text-align: right; }
.ck-go a { color: #27548c; font-size: 12px; text-decoration: none; font-weight: 600; }
.ck-go a:hover { text-decoration: underline; }
.ck-tone { font-weight: 700; color: #27548c; font-size: 12px; }
.ck-pt .hd-r { margin-left: auto; }
.rp-card h2 .hd-r { font-weight: 700; }
.ck-ta { width: 100%; min-height: 130px; box-sizing: border-box; border: 1px solid #e3e4e6;
         border-radius: 8px; padding: 10px 12px; font-size: 12.8px; line-height: 1.75;
         font-family: inherit; color: #2a3344; resize: vertical; background: #fcfdff; }
.ck-ta:focus { outline: none; border-color: #27548c; }
.ck-btns { display: flex; gap: 8px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.ck-btns button { border: 1px solid #e3e4e6; background: #fff; border-radius: 6px;
                  padding: 6px 14px; font-size: 12.5px; cursor: pointer; color: #3c465a; }
.ck-btns button:hover { border-color: #27548c; color: #27548c; }
.ck-btns button.pri { background: #27548c; border-color: #27548c; color: #fff; font-weight: 600; }
.ck-btns button.pri:hover { background: #2559e0; color: #fff; }
.ck-st { color: #1e9e5a; font-size: 12px; font-weight: 600; }
