/* ======================================================================
   #27 走亲访友日程 · 视觉母题「拜年路线图」
   朱红 × 墨金；印章编号、垂直时间轴节点、赶场冲突红标
   ====================================================================== */
.hvr{
  --ink:#241d1a; --sub:#756a61; --card:#fffdf8; --line:#e8dcc8;
  --pri:#b3232b; --pri-soft:#fbece6; --ok:#2c7a55; --warn:#c08a2c;
  --bad:#c8392f; --bg:#faf5ec;
  color:var(--ink);background:var(--bg);
  font:14.6px/1.8 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  padding:0 0 48px;
}
:root[data-theme="dark"] .hvr{
  --ink:#f3ebe2; --sub:#ada096; --card:#211c1a; --line:#3c332e;
  --pri:#f0787c; --pri-soft:rgba(240,120,124,.13); --ok:#66c79a;
  --warn:#e5b765; --bad:#ff8b7d; --bg:#151211;
}
.hvr *{box-sizing:border-box}
.hvr-wrap{max-width:1140px;margin:0 auto;padding:26px 20px 0}
.hvr b{color:var(--ink)}
.hvr-mono{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-variant-numeric:tabular-nums}

/* ---------- 首屏 ---------- */
.hvr-hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.55fr);gap:26px;padding:28px 30px;background:var(--card);border:1px solid var(--line);border-radius:4px;box-shadow:0 8px 26px rgba(36,29,26,.07);position:relative;overflow:hidden}
.hvr-hero:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--pri) 0 32%,#c99a3f 32% 64%,var(--pri) 64%)}
.hvr-kicker{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.18em;color:var(--pri);border:1px solid var(--pri);border-radius:2px;padding:5px 10px}
.hvr-hero h1{margin:16px 0 10px;font-size:32px;line-height:1.3;font-weight:800;letter-spacing:-.6px}
.hvr-hero h1 em{display:block;margin-top:8px;font-size:15.6px;font-style:normal;font-weight:500;color:var(--pri);line-height:1.7}
.hvr-lead{margin:0;max-width:700px;font-size:14.7px;line-height:1.92;color:var(--sub)}
.hvr-lead b{color:var(--ink);border-bottom:1.5px solid var(--pri-soft)}
.hvr-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.hvr-hero-meta span{font-size:12px;font-weight:600;color:var(--sub);background:var(--bg);border:1px solid var(--line);border-radius:2px;padding:5px 10px}
.hvr-hero-route{border:1px dashed var(--line);border-radius:4px;padding:16px 18px;background:var(--bg);align-self:center}
.hvr-route-title{font-size:11.5px;font-weight:800;letter-spacing:.14em;color:var(--sub);margin-bottom:12px}
.hvr-rnode{display:flex;align-items:center;gap:10px;padding:7px 0;position:relative;font-size:12.8px}
.hvr-rnode:not(:last-of-type):before{content:"";position:absolute;left:6px;top:24px;bottom:-8px;width:2px;background:var(--line)}
.hvr-rnode i{width:14px;height:14px;border-radius:50%;border:2px solid var(--pri);background:var(--card);flex:none;z-index:1}
.hvr-rnode span{font-weight:700}
.hvr-rnode b{margin-left:auto;font:700 11.5px ui-monospace,Consolas,monospace;color:var(--sub)}
.hvr-hero-route p{margin:12px 0 0;font-size:11.5px;color:var(--sub);line-height:1.65}

/* ---------- 卡片 / 表单 ---------- */
.hvr-card,.hvr-panel{background:var(--card);border:1px solid var(--line);border-radius:4px;box-shadow:0 3px 12px rgba(36,29,26,.05)}
.hvr-card{margin-top:20px;padding:22px 24px}
.hvr-panel{margin-top:16px;padding:18px 20px}
.hvr-card-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.hvr-stamp{width:32px;height:32px;display:grid;place-items:center;background:var(--pri);color:#fff;border-radius:3px;font-size:17px;font-weight:800;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.hvr-card-h h2,.hvr-panel h2{margin:0;font-size:18px;font-weight:800}
.hvr-panel h2{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.hvr-panel h2 span{font-size:12.2px;font-weight:400;color:var(--sub)}
.hvr-tip{margin-left:auto;font-size:12.2px;color:var(--sub)}
.hvr-tip b{color:var(--bad)}
.hvr-quick{display:grid;grid-template-columns:minmax(120px,1.3fr) repeat(2,minmax(96px,.8fr)) repeat(2,minmax(88px,.75fr)) minmax(90px,.8fr) auto;gap:9px;align-items:end;padding:14px;background:var(--bg);border:1px dashed var(--line);border-radius:3px}
.hvr-f{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--sub);min-width:0}
.hvr-f b{color:var(--bad)}
.hvr input,.hvr select,.hvr-ta{width:100%;font:14px/1.55 inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:3px;padding:9px 9px;outline:none;transition:border-color .15s,box-shadow .15s}
.hvr input:focus,.hvr select:focus,.hvr-ta:focus{border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-soft)}
.hvr input[type=time],.hvr input[type=number]{font-family:ui-monospace,Consolas,monospace}
.hvr-btn{font:700 14px/1.4 inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:3px;padding:9px 14px;cursor:pointer;white-space:nowrap;transition:transform .15s,box-shadow .15s,border-color .15s}
.hvr-btn:hover:not(:disabled){transform:translateY(-1px);border-color:var(--pri);box-shadow:0 4px 12px rgba(179,35,43,.16)}
.hvr-btn:disabled{opacity:.45;cursor:not-allowed}
.hvr-btn-main{background:var(--pri);color:#fff;border-color:var(--pri)}
.hvr-btn-ghost{background:transparent;color:var(--sub)}
.hvr-btn-add{background:var(--ink);color:var(--card);border-color:var(--ink);height:38px}
.hvr-stations{display:grid;gap:8px;margin-top:14px}
.hvr-station{display:grid;grid-template-columns:26px minmax(90px,1.2fr) minmax(110px,1fr) minmax(80px,.7fr) minmax(80px,.7fr) minmax(60px,.5fr) 26px 26px 26px;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:3px;background:var(--card);font-size:12.8px}
.hvr-station .ix{font:12px ui-monospace,Consolas,monospace;color:var(--sub);text-align:center}
.hvr-station .nm{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hvr-station .win,.hvr-station .dur,.hvr-station .pri{color:var(--sub);font-family:ui-monospace,Consolas,monospace}
.hvr-mini{border:1px solid var(--line);background:transparent;color:var(--sub);border-radius:3px;width:26px;height:26px;cursor:pointer;line-height:1;font-size:13px}
.hvr-mini:hover{color:var(--pri);border-color:var(--pri)}
.hvr-params{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin-top:16px;padding-top:16px;border-top:1px dashed var(--line)}
.hvr-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.hvr-msg{margin:11px 0 0;font-size:12.6px;line-height:1.7;color:var(--sub)}
.hvr-msg.is-err{color:var(--bad);font-weight:700}
.hvr-msg.is-ok{color:var(--ok);font-weight:700}

/* ---------- 空态 / KPI ---------- */
.hvr-empty{margin-top:20px;border:1px dashed var(--line);border-radius:4px;background:var(--card);padding:32px 18px;text-align:center;display:grid;gap:6px;place-items:center}
.hvr-empty span{font-size:28px}
.hvr-empty b{font-size:16px}
.hvr-empty em{font-style:normal;font-size:13px;color:var(--sub);max-width:540px;line-height:1.8}
.hvr-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:10px}
.hvr-kpi{background:var(--card);border:1px solid var(--line);border-radius:3px;padding:14px 15px;display:grid;gap:2px}
.hvr-kpi>span{font-size:11.8px;font-weight:700;color:var(--sub);letter-spacing:.06em}
.hvr-kpi>b{font-size:26px;line-height:1.3;font-weight:800}
.hvr-kpi>i{font-size:11.5px;font-style:normal;color:var(--sub)}
.hvr-kpi.is-main{background:var(--pri);border-color:var(--pri);color:#fff}
.hvr-kpi.is-main>span,.hvr-kpi.is-main>i{color:rgba(255,255,255,.86)}

/* ---------- 时间轴 ---------- */
.hvr-timeline{position:relative;padding-left:8px}
.hvr-node{display:grid;grid-template-columns:82px 1fr;gap:14px;padding:0 0 16px 0;position:relative}
.hvr-node:before{content:"";position:absolute;left:92px;top:16px;bottom:-4px;width:2px;background:var(--line)}
.hvr-node:last-child:before{display:none}
.hvr-node-time{font:700 14px ui-monospace,Consolas,monospace;color:var(--pri);padding-top:8px;position:relative}
.hvr-node-time:after{content:"";position:absolute;right:-20px;top:13px;width:11px;height:11px;border-radius:50%;background:var(--card);border:3px solid var(--pri);z-index:1}
.hvr-node.is-late .hvr-node-time{color:var(--bad)}
.hvr-node.is-late .hvr-node-time:after{border-color:var(--bad)}
.hvr-node-body{border:1px solid var(--line);border-radius:3px;background:var(--bg);padding:10px 14px;margin-left:8px}
.hvr-node.is-late .hvr-node-body{border-color:var(--bad);background:var(--pri-soft)}
.hvr-node-body b{font-size:14px}
.hvr-node-body em{font-style:normal;font-size:12px;color:var(--sub);margin-left:8px}
.hvr-node-body p{margin:5px 0 0;font-size:12.6px;color:var(--sub);line-height:1.7}
.hvr-chip{display:inline-block;font-size:11px;font-weight:700;border-radius:2px;padding:2px 7px;margin-right:6px}
.hvr-chip.ok{color:var(--ok);background:var(--card);border:1px solid var(--ok)}
.hvr-chip.wait{color:var(--warn);background:var(--card);border:1px solid var(--warn)}
.hvr-chip.bad{color:var(--bad);background:var(--card);border:1px solid var(--bad)}
.hvr-origin{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--sub);padding:0 0 14px 0}

/* ---------- 表格 / 冲突 / 批量 ---------- */
.hvr-tw{overflow:auto;border:1px solid var(--line);border-radius:3px}
.hvr-tb{width:100%;min-width:700px;border-collapse:collapse;font-size:12.8px}
.hvr-tb th{background:var(--bg);text-align:left;font-size:11.5px;font-weight:800;color:var(--sub);padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.hvr-tb td{padding:9px 10px;border-bottom:1px dotted var(--line);line-height:1.6;white-space:nowrap}
.hvr-tb tr:last-child td{border-bottom:0}
.hvr-tb tbody tr:hover{background:var(--bg)}
.hvr-tb .mono{font-family:ui-monospace,Consolas,monospace}
.hvr-conf{border-left:3px solid var(--bad);background:var(--bg);border-radius:2px;padding:10px 13px;margin-bottom:9px;font-size:13px;line-height:1.8}
.hvr-conf b{color:var(--bad)}
.hvr-conf span{display:block;font-size:12.2px;color:var(--sub)}
.hvr-conf-ok{border-left:3px solid var(--ok);background:var(--bg);padding:10px 13px;font-size:13.2px}
.hvr-ta{min-height:104px;resize:vertical;font:12.7px/1.75 ui-monospace,Consolas,monospace}
.hvr-tag{font-size:11px;font-weight:700;border-radius:2px;padding:2px 6px}
.hvr-tag.ok{color:var(--ok);background:var(--pri-soft)}
.hvr-tag.bad{color:var(--bad);background:var(--pri-soft)}
.hvr-final{padding-top:2px}

@media (max-width:960px){
  .hvr-hero{grid-template-columns:1fr}
  .hvr-quick{grid-template-columns:1fr 1fr 1fr}
  .hvr-params,.hvr-kpis{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .hvr-wrap{padding:18px 12px 0}
  .hvr-hero{padding:22px 18px}
  .hvr-hero h1{font-size:25px}
  .hvr-quick,.hvr-params,.hvr-kpis{grid-template-columns:1fr}
  .hvr-station{grid-template-columns:24px 1fr 26px 26px 26px}
  .hvr-station .win,.hvr-station .dur,.hvr-station .pri{display:none}
  .hvr-actions .hvr-btn{flex:1 1 44%}
  .hvr-node{grid-template-columns:66px 1fr}
  .hvr-node:before{left:76px}
  .hvr-node-time:after{right:-18px}
}
