/* ============================================================
   船舶现场数字化管理平台 · 演示版样式
   海事蓝金 · 浅色管理系统风
   ============================================================ */

:root{
  --navy:#0B2C4A;
  --navy-2:#123F66;
  --blue:#15618F;
  --blue-2:#2D8FD5;
  --gold:#C8A45C;
  --gold-2:#E3C98F;
  --bg:#F3F6F9;
  --card:#FFFFFF;
  --border:#E1E8EF;
  --text:#16232F;
  --text-2:#5A6B7C;
  --text-3:#8B99A7;
  --red:#C0392B;
  --amber:#C77C13;
  --green:#1E8E5A;
  --shadow:0 1px 2px rgba(16,40,64,.05), 0 4px 14px rgba(16,40,64,.05);
}

*{ box-sizing:border-box; margin:0; padding:0; }

html,body{ height:100%; }

body{
  font-family:-apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
              "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* ---------- 布局 ---------- */
.app{ display:flex; min-height:100vh; }
/* 展览页模式：不建侧栏，直接把整页铺满 */
.app.lp-app{ display:block; min-height:100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar{
  width:236px; flex:0 0 236px;
  background:linear-gradient(180deg,#0A2743 0%,#0E3557 55%,#0B2C4A 100%);
  color:#DCE7F1;
  display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh;
  border-right:1px solid rgba(255,255,255,.06);
  z-index:20;
}

.brand{
  padding:18px 20px 15px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; gap:11px; align-items:center;
}
.brand-mark{
  width:36px; height:36px; flex:0 0 36px;
  border:1px solid rgba(200,164,92,.55);
  border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(200,164,92,.10);
}
.brand-mark svg{ width:20px; height:20px; }
.brand-txt b{
  display:block; font-size:14.5px; letter-spacing:.5px;
  color:#fff; font-weight:600; line-height:1.35;
}
/* 左上角版本标识已移除 */

.nav{ padding:12px 12px; flex:1; overflow-y:auto; }
.nav-label{
  font-size:10.5px; letter-spacing:1.4px; color:#6E8CA8;
  padding:9px 10px 7px; text-transform:uppercase;
}
/* 第一组「总览」紧跟 Logo，相应上移 */
.nav-group:first-child .nav-label{ padding-top:2px; }
.nav-item{
  display:flex; align-items:center; gap:10px;
  padding:9px 11px; border-radius:7px;
  color:#BFD1E1; font-size:13.5px; cursor:pointer;
  position:relative; margin-bottom:2px;
  transition:background .16s, color .16s;
  user-select:none;
}
.nav-item:hover{ background:rgba(255,255,255,.07); color:#fff; }
.nav-item.active{
  background:rgba(45,143,213,.20);
  color:#fff; font-weight:500;
}
.nav-item.active::before{
  content:''; position:absolute; left:-12px; top:8px; bottom:8px;
  width:3px; background:var(--gold); border-radius:0 2px 2px 0;
}
.nav-item svg{ width:16px; height:16px; flex:0 0 16px; opacity:.85; }
.nav-item.active svg{ opacity:1; }
.nav-item .soon{
  margin-left:auto; font-size:9.5px; color:#7E9CB8;
  border:1px solid rgba(126,156,184,.4); border-radius:3px;
  padding:0 4px; line-height:15px;
}

/* 左下角常驻身份切换：标签与下拉框同一行 */
.sidebar-role{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.sr-lab{
  flex:0 0 auto; font-size:11px; letter-spacing:.5px;
  color:#9FB6CB; margin:0; white-space:nowrap;
}
.role-select{
  flex:1; min-width:0; width:auto; height:30px; border-radius:6px;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07);
  color:#DCE8F2; font-size:12.5px; padding:0 8px; outline:none;
  font-family:inherit; cursor:pointer;
}
.role-select:focus{ border-color:rgba(200,164,92,.65); }
.role-select option{ background:#0F2338; color:#DCE8F2; }

/* ---------- 主区 ---------- */
.main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  height:58px; flex:0 0 58px;
  background:#fff; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:16px;
  padding:0 22px; position:sticky; top:0; z-index:15;
}
.crumb{ font-size:13px; color:var(--text-3); }
.crumb b{ color:var(--text); font-weight:600; }
.topbar-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }

.select{
  height:32px; border:1px solid var(--border); border-radius:6px;
  background:#fff; color:var(--text); font-size:12.5px;
  padding:0 8px; outline:none; cursor:pointer;
  font-family:inherit;
}
.select:focus{ border-color:var(--blue-2); }

.btn{
  height:32px; padding:0 13px; border-radius:6px;
  border:1px solid var(--border); background:#fff;
  color:var(--text-2); font-size:12.5px; cursor:pointer;
  font-family:inherit; display:inline-flex; align-items:center; gap:6px;
  transition:all .15s;
}
.btn:hover{ border-color:var(--blue-2); color:var(--blue); }
.btn-primary{
  background:var(--blue); border-color:var(--blue); color:#fff;
}
.btn-primary:hover{ background:#12547C; border-color:#12547C; color:#fff; }
.btn svg{ width:13px; height:13px; }

.avatar{
  width:30px; height:30px; border-radius:50%;
  background:linear-gradient(135deg,#15618F,#0B2C4A);
  color:#fff; font-size:11.5px; display:flex;
  align-items:center; justify-content:center; font-weight:600;
  border:1px solid rgba(200,164,92,.5);
}

.content{ padding:22px 24px 34px; max-width:1560px; width:100%; }

/* ---------- 页头 ---------- */
.page-head{ margin-bottom:18px; }
.page-head h1{
  font-size:21px; font-weight:600; letter-spacing:.2px;
  color:var(--text); display:flex; align-items:center; gap:9px;
}
.page-head h1 .tag{
  font-size:10.5px; font-weight:500; color:var(--gold);
  border:1px solid rgba(200,164,92,.45); background:rgba(200,164,92,.08);
  border-radius:4px; padding:1px 7px; letter-spacing:.5px;
}
.page-head p{
  font-size:13px; color:var(--text-2); margin-top:5px; max-width:1040px;
  line-height:1.65;
}

/* ---------- 卡片 ---------- */
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:10px; box-shadow:var(--shadow);
}
.card-head{
  padding:13px 18px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:8px;
}
.card-head h3{ font-size:14px; font-weight:600; }
.card-head .sub{ font-size:12px; color:var(--text-3); margin-left:auto; }
.card-body{ padding:16px 18px; }

/* ---------- KPI ---------- */
.kpi-grid{
  display:grid; grid-template-columns:repeat(6,1fr);
  gap:12px; margin-bottom:16px;
}
.kpi{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:14px 15px 13px; box-shadow:var(--shadow);
  position:relative; overflow:hidden;
}
.kpi::after{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2.5px;
  background:var(--blue-2); opacity:.85;
}
.kpi.k-amber::after{ background:var(--amber); }
.kpi.k-red::after{ background:var(--red); }
.kpi.k-green::after{ background:var(--green); }
.kpi.k-gold::after{ background:var(--gold); }
.kpi-label{ font-size:12px; color:var(--text-2); letter-spacing:.2px; }
.kpi-val{
  font-size:29px; font-weight:600; line-height:1.18; margin-top:5px;
  font-variant-numeric:tabular-nums; letter-spacing:-.5px;
}
.kpi-val{ white-space:nowrap; }
.kpi-val small{ font-size:12.5px; font-weight:400; color:var(--text-3); margin-left:3px; }
.kpi-foot{ font-size:11.5px; color:var(--text-3); margin-top:4px; }
.kpi-foot em{ font-style:normal; color:var(--amber); }

/* ---------- 两栏 ---------- */
.grid-2{ display:grid; grid-template-columns:1.55fr 1fr; gap:14px; align-items:stretch; }
.grid-2 > .card{ height:100%; display:flex; flex-direction:column; }
.grid-2 > .card > .fleet,
.grid-2 > .card > .timeline{ flex:1; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }

/* ---------- 船队列表 ---------- */
.fleet{ display:flex; flex-direction:column; }
.fleet-row{
  /* 按「各列内容宽度 + 统一余量」分配，使任意两列之间的视觉间距接近，不出现忽紧忽松 */
  display:grid; grid-template-columns:0.8fr 0.85fr 1.05fr 1.3fr 1.25fr 1.05fr;
  gap:12px; align-items:center;
  padding:11px 18px; border-bottom:1px solid #EEF2F6;
  font-size:13px;
}
.fleet-row:last-child{ border-bottom:none; }
.fleet-row.head{
  font-size:11.5px; color:var(--text-3); letter-spacing:.4px;
  padding-top:9px; padding-bottom:9px; background:#FAFCFD;
}
.vname{ font-weight:600; letter-spacing:.4px; }
.vsub{ font-size:11.5px; color:var(--text-3); }
.veta{ font-size:12px; color:var(--text-2); white-space:nowrap; }

.badge{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; padding:2px 8px; border-radius:20px;
  border:1px solid transparent; white-space:nowrap;
}
.badge .dot{ width:5px; height:5px; border-radius:50%; }
.b-sail{ color:#15618F; background:#EAF3F9; border-color:#D3E6F2; }
.b-sail .dot{ background:#2D8FD5; }
.b-berth{ color:#8A6412; background:#FCF5E6; border-color:#F0E2C2; }
.b-berth .dot{ background:#C77C13; }
.b-dock{ color:#6B7280; background:#F3F5F7; border-color:#E3E8ED; }
.b-dock .dot{ background:#9AA6B2; }
.b-red{ color:var(--red); background:#FCEDEB; border-color:#F5D5D1; }
.b-red .dot{ background:var(--red); }
.b-amber{ color:var(--amber); background:#FCF4E4; border-color:#F2E1BE; }
.b-amber .dot{ background:var(--amber); }
.b-green{ color:var(--green); background:#EAF6F0; border-color:#CFEADE; }
.b-green .dot{ background:var(--green); }
.b-gold{ color:#8A6412; background:rgba(200,164,92,.12); border-color:rgba(200,164,92,.4); }
.b-gold .dot{ background:var(--gold); }

/* ---------- 时间线 ---------- */
.timeline{ padding:6px 18px 8px; }
.tl-item{
  display:flex; gap:11px; padding:10px 0;
  border-bottom:1px dashed #EDF1F5; font-size:12.8px;
}
.tl-item:last-child{ border-bottom:none; }
.tl-mark{
  width:7px; height:7px; border-radius:50%; margin-top:6px; flex:0 0 7px;
  background:var(--blue-2); box-shadow:0 0 0 3px rgba(45,143,213,.12);
}
.tl-mark.red{ background:var(--red); box-shadow:0 0 0 3px rgba(192,57,43,.12); }
.tl-mark.amber{ background:var(--amber); box-shadow:0 0 0 3px rgba(199,124,19,.12); }
.tl-txt{ color:var(--text); line-height:1.55; }
.tl-time{ font-size:11px; color:var(--text-3); margin-top:2px; }
/* 待办整条可点：直达对应业务界面 */
.tl-link{ cursor:pointer; border-radius:6px; padding-left:8px; padding-right:8px; margin-left:-8px; margin-right:-8px; transition:background .15s; }
.tl-link:hover{ background:#F2F8FC; }
.tl-go{ margin-left:auto; align-self:center; color:var(--text-3); font-size:17px; line-height:1; }
.tl-link:hover .tl-go{ color:var(--blue); }

/* ---------- 操作手册（按角色查阅） ---------- */
.mn-head{ display:flex; align-items:flex-start; gap:16px; }
.mn-head > div{ flex:1; min-width:0; }
.mn-head .btn{ flex:0 0 auto; margin-top:2px; }
.mn-role-card{ margin-bottom:14px; }
.mn-roles{ gap:8px; }
.mn-roles .chip{ cursor:pointer; }
.mn-pick{ flex-wrap:wrap; gap:10px; }
.mn-pick h3{ flex:0 0 auto; }
.mn-pick .mn-roles{ margin-left:2px; }
.mn-current{ font-size:11.5px; color:#15618F; background:#EAF3F9; border:1px solid #D3E6F2; border-radius:20px; padding:2px 10px; white-space:nowrap; }
.mn-summary{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.mn-k{ font-size:11px; color:var(--text-3); letter-spacing:.5px; margin-bottom:5px; }
.mn-duty{ font-size:13px; line-height:1.75; }
.mn-hint{ margin-top:8px; font-size:11.5px; color:var(--text-3); line-height:1.6; }
.mn-stat{ min-width:92px; text-align:center; padding:0 14px; border-left:1px solid var(--border); }
.mn-stat b{ display:block; font-size:20px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.mn-stat span{ font-size:11px; color:var(--text-3); }
/* 同一行的两张卡片等高：grid 默认 stretch，卡片内部用 flex 把「进入」链接压到底部 */
.mn-mods{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
.mn-mod{ display:flex; flex-direction:column; }
.mn-mod > .card-head{ flex:0 0 auto; }
.mn-mod > .card-body{ padding:6px 18px 16px; flex:1; display:flex; flex-direction:column; }
.mn-perms{ margin-left:auto; display:flex; gap:5px; }
.mn-perm{ font-size:10.5px; line-height:16px; padding:0 7px; border-radius:20px; border:1px solid var(--border); color:var(--text-3); white-space:nowrap; }
.mn-perm.on{ color:#15618F; background:#EAF3F9; border-color:#D3E6F2; }
.mn-line{ display:flex; gap:12px; padding:9px 0; border-bottom:1px dashed #EDF1F5; font-size:12.5px; line-height:1.7; }
.mn-line > em{ flex:0 0 58px; font-style:normal; color:var(--text-3); font-size:11.5px; padding-top:2px; }
.mn-line > div, .mn-line > ol{ flex:1; min-width:0; }
.mn-line ol{ margin:0; padding-left:18px; }
.mn-line li{ margin-bottom:2px; }
.mn-enter{ display:inline-block; margin-top:auto; padding-top:10px; font-size:12px; color:var(--blue); text-decoration:none; }
.mn-enter:hover{ text-decoration:underline; }
.mn-toast{ position:fixed; right:24px; bottom:24px; z-index:60; max-width:340px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); border-radius:8px; padding:12px 14px; font-size:12.5px; line-height:1.6; color:var(--text); opacity:0; transform:translateY(8px); pointer-events:none; transition:all .2s; }
.mn-toast.on{ opacity:1; transform:translateY(0); }
@media (max-width:1080px){
  .mn-mods{ grid-template-columns:1fr; }
  .mn-head{ flex-wrap:wrap; }
}

/* ---------- 小统计块 ---------- */
.stat-line{ display:flex; gap:10px; }
.stat-box{
  flex:1; background:#FAFCFD; border:1px solid #EDF2F6;
  border-radius:8px; padding:10px 12px;
}
.stat-box .n{ font-size:19px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.stat-box .l{ font-size:11.5px; color:var(--text-3); }

/* ============================================================
   架构页
   ============================================================ */
.arch-wrap{ display:grid; grid-template-columns:1fr 336px; gap:14px; align-items:stretch; }
/* 左列四层平分整行高度，层间只留连接线；L4 底边与右侧「数据复用度」底边对齐 */
.arch-col{ display:flex; flex-direction:column; height:100%; }

.layer{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:14px 16px 16px; margin-bottom:0; box-shadow:var(--shadow);
  position:relative;
  /* 四层等高、平分左列高度：卡片加高、层间距固定且缩小，底边始终与右侧两卡片对齐 */
  flex:1 1 0; min-height:124px; display:flex; flex-direction:column; justify-content:center;
}
.layer-head{
  display:flex; align-items:center; gap:8px; margin-bottom:11px;
}
.layer-idx{
  font-size:10px; letter-spacing:1px; color:#fff; background:var(--navy);
  border-radius:3px; padding:1px 6px; line-height:16px;
}
.layer-name{ font-size:13px; font-weight:600; letter-spacing:.3px; }
.layer-desc{ font-size:11.5px; color:var(--text-3); margin-left:auto; }

.node-row{ display:flex; gap:8px; flex-wrap:wrap; }
.node{
  flex:1 1 0; min-width:104px;
  border:1px solid var(--border); border-radius:7px;
  padding:9px 10px; background:#FBFDFE; cursor:pointer;
  transition:all .16s; position:relative;
}
.node:hover{ border-color:var(--blue-2); background:#F5FAFD; }
.node b{ display:block; font-size:12.5px; font-weight:600; }
.node span{ display:block; font-size:10.5px; color:var(--text-3); margin-top:2px; }
.node.on{
  border-color:var(--gold); background:rgba(200,164,92,.09);
  box-shadow:0 0 0 2px rgba(200,164,92,.16);
}
.node.on b{ color:#7A5A12; }
.node.hit{
  border-color:var(--blue-2); background:#EFF7FC;
  box-shadow:0 0 0 2px rgba(45,143,213,.15);
}
.node.hit::after{
  content:''; position:absolute; top:7px; right:7px;
  width:5px; height:5px; border-radius:50%; background:var(--blue-2);
}

.connector{
  display:flex; align-items:center; justify-content:center;
  flex:0 0 16px; height:16px; margin:-1px 0 0; position:relative;
}
.connector i{
  display:block; width:1px; height:16px;
  background:repeating-linear-gradient(180deg,#A7B8C8 0 4px,transparent 4px 8px);
}
.connector::after{
  content:''; position:absolute; bottom:1px; left:50%; transform:translateX(-50%);
  border-left:3.5px solid transparent; border-right:3.5px solid transparent;
  border-top:4px solid #A7B8C8;
}

/* 右侧说明面板 */
.side-panel{ position:sticky; top:74px; display:flex; flex-direction:column; gap:12px; }
.side-panel > .card:last-child{ margin-top:auto; }
.flow-list{ padding:2px 0; }
.flow-item{
  padding:11px 0; border-bottom:1px dashed #EDF1F5; font-size:12.5px;
}
.flow-item:last-child{ border-bottom:none; }
.flow-item .k{
  font-size:11px; color:var(--text-3); letter-spacing:.5px; margin-bottom:3px;
}
.flow-item .v{ color:var(--text); line-height:1.6; }
.flow-item code{
  font-family:"SF Mono", Menlo, Consolas, monospace;
  font-size:11.5px; background:#F2F6FA; border:1px solid #E4EBF2;
  border-radius:3px; padding:0 4px; color:var(--blue);
}

/* 联动链路 */
.chain{
  display:flex; gap:0; align-items:stretch; flex-wrap:wrap;
  padding:12px 18px;
}
.chain-item{
  flex:1 1 220px; min-width:200px; padding:0 14px;
  border-left:1px solid #EEF2F6;
}
.chain-item:first-child{ border-left:none; padding-left:0; }
.chain-item .cn{
  font-size:11px; color:var(--gold); letter-spacing:.8px; font-weight:600;
}
.chain-item .ct{ font-size:12.8px; font-weight:600; margin:3px 0 4px; }
.chain-item .cd{ font-size:12px; color:var(--text-2); line-height:1.6; }

/* ---------- 页脚 ---------- */
.foot-note{
  margin-top:22px; padding-top:12px; border-top:1px solid var(--border);
  font-size:11px; color:var(--text-3); display:flex; gap:14px; flex-wrap:wrap;
}

/* ---------- 空态 ---------- */
.empty{ padding:26px; text-align:center; color:var(--text-3); font-size:12.5px; }

/* ---------- 响应 ---------- */
@media (max-width:1360px){
  .kpi-grid{ grid-template-columns:repeat(3,1fr); }
  .arch-wrap{ grid-template-columns:1fr; }
  .side-panel{ position:static; }
}
@media (max-width:1080px){
  .sidebar{ width:196px; flex:0 0 196px; }
  .grid-2{ grid-template-columns:1fr; }
  .content{ padding:18px 16px 28px; }
}

/* ============================================================
   配载模块
   ============================================================ */
/* 配载计划卡片头 = 标题「配载计划」+ 工具栏（船舶 / 航次 / 预配汇总 / 生成按钮） */
.plan-hd{
  padding:12px 18px; border-bottom:1px solid var(--border);
  display:flex; align-items:flex-start; gap:16px;
}
/* 标题与第一行（船舶 / 航次）同高居中对齐，工具栏换行时标题不会跑到中间 */
.plan-h{
  font-size:14px; font-weight:600; color:var(--text);
  flex:0 0 auto; white-space:nowrap; padding-right:2px;
  height:32px; display:flex; align-items:center;
}
.plan-hd .stow-hd{ flex:1; min-width:0; }
.stow-hd{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.stow-hd-l{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tb-group{ display:flex; align-items:center; gap:8px; }
.tb-lab{ font-size:11.5px; color:var(--text-3); letter-spacing:.4px; white-space:nowrap; flex:0 0 auto; }
.tb-right{ margin-left:auto; display:flex; gap:8px; align-items:center; }

/* 「已完成」小徽标：生成完成才出现，重新生成时先隐去（占位不跳动） */
.gen-done{
  display:inline-flex; align-items:center; gap:4px;
  height:24px; padding:0 9px; border-radius:12px;
  font-size:11.5px; font-weight:600; white-space:nowrap;
  color:#1B6B45; background:#EAF6EF; border:1px solid #BFE0CD;
}
.gen-done i{ font-style:normal; font-size:10px; line-height:1; }
.gen-done.warn{ color:#7C5A10; background:#FCF5E7; border-color:#EFE0BF; }
.gen-done.hide{ opacity:0; visibility:hidden; }
.gen-done.pop{ animation:donePop .3s cubic-bezier(.2,.8,.3,1); }
@keyframes donePop{
  from{ opacity:0; transform:translateY(3px) scale(.94); }
  to{ opacity:1; transform:none; }
}

/* 分票：一票一行（装港 / 卸港 / 货量 / 货物 + 密度） */
.parcels{
  margin-top:10px; padding-top:8px; border-top:1px dashed #EDF1F5;
}
.pc-row{
  display:grid;
  grid-template-columns:34px 78px 78px 87px 168px 88px 64px 132px 28px 1fr;
  gap:10px; align-items:center; padding:3px 8px;
}
.pc-row.pc-head{
  font-size:12.5px; font-weight:600; color:var(--text-2); letter-spacing:.2px;
  padding:0 8px 6px; border-bottom:1px solid #E6EDF3;
}
/* 表头文字一律居中，与下方输入框对齐 */
.pc-row.pc-head > div{ text-align:center; }
.pc-row.pc-head .pc-no{ font-size:inherit; font-weight:inherit; color:inherit; }
.pc-row.pc-head .pc-act{ text-align:right; }
/* 分票行底色 = 下方配载图里该票舱卡的底色，便于快速对应 */
.pc-row[data-row]{
  margin:0; border-radius:0;
  background:var(--pc-bg,#F7FAFC);
  box-shadow:inset 1px 0 0 var(--pc-bd,#DCE6EE);
}
.pc-row[data-row]:last-child{ border-radius:0 0 6px 6px; }
.pc-row[data-row] .pc-no{ color:var(--pc-fg,#4A5B6B); font-weight:600; }

/* 舱号：生成配载图后列出该票所占舱位，相邻 P/S 合并成 1P/S，最多两行 */
.pc-tanks{
  font-size:12px; line-height:15px; color:var(--pc-fg,#43525F);
  font-variant-numeric:tabular-nums; letter-spacing:0;
  padding:0 1px; white-space:normal; word-break:keep-all;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  max-height:31px; overflow:hidden;
}
.pc-tanks.stale{ color:#9AAAB8; }
.pc-tanks.none{ color:#B3C1CC; }

/* 行内输入框 / 下拉框也用同一底色，整行看起来是一块 */
.pc-row[data-row] .inp,
.pc-row[data-row] .cbx-in{
  background:var(--pc-bg,#F7FAFC);
  border-color:var(--pc-bd,#DCE6EE);
  color:var(--text);
}
.pc-row[data-row] .inp:hover,
.pc-row[data-row] .cbx-in:hover{ background:#fff; }
.pc-row[data-row] .inp:focus,
.pc-row[data-row] .cbx-in:focus{ background:#fff; border-color:var(--blue-2); }
.pc-row[data-row] .pc-dens.mod{
  background:#FDF6F5; border-color:#E4B4AC; color:#B23A2A;
}

/* 可输入 + 可下拉的组合框 */
.cbx{ position:relative; min-width:0; }
.cbx-in{
  width:100%; height:30px; font-size:12px; padding:0 19px 0 7px;
  border:1px solid var(--border); border-radius:6px;
  font-family:inherit; outline:none; text-overflow:ellipsis;
}
/* 组合框里的输入框同时带 .inp，基础样式会盖掉右侧 19px 的箭头留白 */
.cbx .cbx-in{ height:30px; padding:0 19px 0 7px; font-size:12px; }
.cbx-btn{
  position:absolute; right:1px; top:1px; bottom:1px; width:17px;
  border:0; background:none; color:#8FA1B0; font-size:9px; line-height:1;
  cursor:pointer; border-radius:0 5px 5px 0; font-family:inherit;
}
.cbx-btn:hover{ color:var(--blue); }
.cbx-pop{
  position:absolute; z-index:40; top:calc(100% + 4px); left:0;
  min-width:100%; max-width:300px; max-height:214px; overflow:auto;
  background:#fff; border:1px solid var(--border); border-radius:8px;
  box-shadow:0 12px 28px rgba(24,45,66,.16); padding:3px;
}
.cbx-opt{
  padding:5px 8px; font-size:12px; border-radius:5px; cursor:pointer;
  white-space:nowrap; color:var(--text-2);
}
.cbx-opt:hover,.cbx-opt.on{ background:#EAF3F9; color:var(--blue); }
.cbx-in.bad{ animation:cbxBad .32s; }
@keyframes cbxBad{
  0%,100%{ border-color:#E4B4AC; background:#FDF3F1; }
  50%{ border-color:#C0392B; background:#FBE8E4; }
}
.pc-no{
  font-size:11.5px; color:var(--text-3); text-align:center;
  font-variant-numeric:tabular-nums;
}
.pc-sel{ width:100%; height:30px; font-size:12px; padding:0 6px; }
.pc-num{
  min-width:0; min-height:40px;
  display:flex; flex-direction:column; justify-content:center;
}
.pc-num-in{ display:flex; align-items:center; }
.pc-num-in .inp{ width:100%; height:28px; font-size:12.5px; text-align:right; }
.pc-alloc{
  display:block; font-size:10px; color:var(--text-3);
  margin-top:1px; padding-right:16px; text-align:right; min-height:13px;
}
.pc-alloc.done{ color:#166B45; }
.pc-alloc.over{ color:#A8452F; }

/* 未能按输入货量全部装下：显示「输入 / 可配」，整格标红 */
.pc-short{
  display:flex; align-items:center; justify-content:flex-end; gap:3px;
  width:100%; height:28px; padding:0 6px; cursor:text;
  border:1px solid #E4B4AC; border-radius:6px; background:#FDF4F2;
  font-size:12.5px; font-variant-numeric:tabular-nums; color:#A8452F;
}
.pc-short b{ font-weight:600; }
.pc-short i{ font-style:normal; color:#C98C82; }
.pc-short span{ font-weight:600; color:#C0392B; }
.pc-short em{ font-style:normal; font-size:10px; color:#C08A80; margin-left:2px; }
.pc-short:hover{ border-color:#D89A90; background:#FCEFEC; }

/* 密度：默认取货品库，手改后标红 */
.pc-dens-in{ min-width:0; }
.pc-dens{
  width:100%; height:30px; font-size:12px; text-align:right;
  font-variant-numeric:tabular-nums; color:var(--text-2);
  padding:0 7px;
}
.pc-dens.mod{
  color:#B23A2A; font-weight:600; border-color:#E4B4AC; background:#FDF6F5;
}
.pc-act{ text-align:center; }
.pc-row.pc-head .pc-act{ text-align:right; }
.pc-row.pc-head #sw-add-parcel{
  white-space:nowrap; height:28px; padding:0 15px; font-size:12px; font-weight:600;
}
.pc-del{
  border:1px solid transparent; background:none; color:#B5C3CE;
  width:22px; height:22px; border-radius:5px; cursor:pointer;
  font-size:14px; line-height:1; font-family:inherit;
}
.pc-del:hover{ color:#C0392B; background:#FCEDEB; border-color:#F3D3CE; }

/* 分票汇总：放在顶部「航次」右侧 */
.pc-sum{
  font-size:11.5px; color:var(--text-3); white-space:nowrap;
  margin-left:6px; padding-left:12px; border-left:1px solid var(--border);
  font-variant-numeric:tabular-nums;
}
.pc-sum b{ color:var(--text-2); font-weight:600; }

/* 自动配载结果提示 */
.gen-note{
  display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;
  background:#F3F8FC; border:1px solid #DDEAF4; border-left:3px solid var(--blue-2);
  border-radius:8px; padding:8px 14px; font-size:12px; color:var(--text-2);
  margin-bottom:12px;
}
.gen-note b{ color:var(--blue); font-weight:600; font-size:12.5px; }
.gen-note.bad{ background:#FCF5E7; border-color:#EFE0BF; border-left-color:var(--amber); }
.gen-note.bad b{ color:#7C5A10; }
.mf-hint{ font-size:10.5px; color:var(--text-3); flex:0 0 auto; font-variant-numeric:tabular-nums; }
.mf-hint.over{ color:#A8452F; }

/* 港序 */
.stow-line{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  margin-top:10px; padding-top:10px; border-top:1px dashed #EDF1F5;
}
/* 港序：标签与分票表头同款（12.5px 加粗居中），落在同样 34px 的首列上 */
.seq-line .tb-lab{
  font-size:12.5px; font-weight:600; color:var(--text-2); letter-spacing:.2px;
  width:34px; text-align:center; margin-left:8px;
}
.seq-chips{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.seq-chip{
  display:inline-flex; align-items:center; gap:5px;
  background:#F7FAFC; border:1px solid var(--border); border-radius:8px;
  padding:3px 5px 3px 5px;
}
.seq-chip b{ font-weight:600; font-size:12.2px; }
.seq-k{ font-style:normal; font-size:10px; padding:0 5px; border-radius:20px; line-height:15px; }
.seq-k.k-l{ color:#146B4A; background:#EAF6F0; }
.seq-k.k-d{ color:#8A5A16; background:#FBF2E4; }
.seq-k.k-b{ color:#15618F; background:#E6F1F8; }
.seq-mv{ display:inline-flex; flex-direction:column; gap:1px; margin-left:1px; }
.seq-btn{
  border:0; background:none; padding:0 3px; font-size:8px; line-height:9px;
  color:#9FB0BE; cursor:pointer; border-radius:2px;
}
.seq-btn:hover:not([disabled]){ color:var(--blue); background:#EAF3F9; }
.seq-btn[disabled]{ opacity:.22; cursor:default; }
.seq-arrow{ color:#B7C5D1; font-size:12px; }
.seq-tag{
  font-size:10.5px; color:var(--text-3); background:#F4F7FA;
  border:1px solid var(--border); border-radius:20px; padding:1px 7px; white-space:nowrap;
}
.seq-tag.manual{ color:#8A5A16; background:#FBF2E4; border-color:#EFDCC0; }
.btn-xs{ height:24px; padding:0 9px; font-size:11px; }

.inp{
  height:32px; border:1px solid var(--border); border-radius:6px;
  padding:0 9px; font-size:12.5px; font-family:inherit; color:var(--text);
  background:#fff; outline:none; min-width:60px;
}
.inp:focus{ border-color:var(--blue-2); box-shadow:0 0 0 3px rgba(45,143,213,.10); }

.port-chip{
  font-size:11.5px; color:var(--blue); background:#EAF3F9;
  border:1px solid #D3E6F2; border-radius:20px; padding:2px 10px;
}

/* 状态与提醒：宽度各自贴合文字，一行放不下自动换行 */
.stow-flags{
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px;
  margin-bottom:12px;
}
.stow-flags > *{ margin-bottom:0; }
.stow-status{
  width:auto; max-width:100%;
  border-radius:999px; padding:7px 13px; font-size:12.2px; line-height:1.45;
  border:1px solid transparent; display:inline-flex; align-items:center; gap:7px;
}
.stow-status::before{ content:''; width:6px; height:6px; border-radius:50%; flex:0 0 6px; }
.stow-status.fail{ background:#FCEDEB; border-color:#F3D3CE; color:#8E2C21; }
.stow-status.fail::before{ background:var(--red); }
.stow-status.ready{ background:#FCF5E7; border-color:#EFE0BF; color:#7C5A10; }
.stow-status.ready::before{ background:var(--amber); }
.stow-status.ok{ background:#EAF6F0; border-color:#CFEADE; color:#166B45; }
.stow-status.ok::before{ background:var(--green); }

.flag-chip{
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px;
  width:auto; max-width:100%; padding:7px 13px; border-radius:999px;
  font-size:12.2px; line-height:1.45;
  border:1px solid #EFE0BF; background:#FCF5E7; color:#7C5A10;
}
.flag-chip b{ font-weight:600; }
.flag-chip.warn{ border-color:#EFE0BF; background:#FCF5E7; color:#7C5A10; }
.flag-chip.bad{
  border-color:#EBC4BE; background:#FDF3F2; color:#A32B1E;
  font-weight:600;
}
.flag-chip.bad b{ color:#A32B1E; }

.stow-wrap{ display:grid; grid-template-columns:1.62fr 1fr; gap:14px; align-items:start; }


/* 配载图：横置，上排 P（左舷）、下排 S（右舷）
   不再套一层带边框的底框，舱卡直接落在卡片里 */
.plan{
  position:relative;
  padding:2px 20px 2px 0;   /* 右侧留出 2px 间隙 + 15px 船首三角 */
}
.plan-deck{ position:relative; display:flex; flex-direction:column; gap:4px; }
.plan-row{ display:grid; gap:4px; align-items:stretch; }
/* 船首方向：以 1P 右上角 → 1S 右下角 为底、朝右的扁三角，两排共用；
   只描边不填充，描边粗细与舱卡边框一致（1px），底边距舱卡右边框 2px */
/* 注意：早期写的 pointer-events:none 让整个三角吃不到鼠标事件
   （SVG 只描边不填充时，命中区只有 1px 宽的线，实际根本点不到）。
   现在改成 all：整个三角形内部都算命中区，并加宽到 18px。 */
.plan-bow{
  position:absolute; left:100%; top:0; height:100%; margin-left:2px; width:18px;
  overflow:visible; fill:none; pointer-events:all; cursor:pointer;
}

/* 单个舱卡：5 行 3 列
   舱号 | 总舱容 | 100%
   CGO  | 货名缩写 |
        | 实际载货量 |
        | 实际货物舱容 | 占舱容%
   ULL  | 实际 ullage |                                     */
.tk{
  position:relative; min-width:0; overflow:hidden;
  container-type:inline-size;
  padding:0; cursor:pointer;
  border:1px solid #D8E3EC; border-radius:7px; background:#fff;
  font-size:11px;                             /* 舱内所有内容统一 11px */
  transition:border-color .14s, box-shadow .14s, transform .14s;
}
.tk:hover{ border-color:var(--blue-2); box-shadow:0 4px 12px rgba(45,143,213,.14); transform:translateY(-1px); }
.tk.empty{ border-style:dashed; border-color:#CBD9E4; background:#FBFCFD; }
.tk.empty-hold{ border:1px dashed #E8EFF4; border-radius:7px; }
.tk.has-pc{ background:var(--pc-bg); border-color:var(--pc-bd); }
.tk.fail{ border-color:#C9705F; box-shadow:inset 3px 0 0 var(--red); }
.tk.warn{ border-color:#D3A03F; box-shadow:inset 3px 0 0 var(--amber); }

.tk-g{
  display:grid; grid-template-columns:auto auto auto;
  justify-content:space-between;
  padding:6px 4px 7px;
  column-gap:3px; row-gap:2px; align-items:baseline;
}
/* 第一列：左对齐 */
.tk-c1{ font-size:inherit; font-weight:600; color:#6E8193; letter-spacing:0; white-space:nowrap; text-align:left; }
.tk.has-pc .tk-c1{ color:var(--pc-fg); }
/* 第二列：有单位的靠单位对齐（数字右贴单位、单位固定宽），无单位的居中 */
.tk-c2{
  display:flex; align-items:baseline; justify-content:flex-end;
  min-width:0; white-space:nowrap; font-variant-numeric:tabular-nums;
}
.tk-c2 b{ font-size:inherit; font-weight:600; color:#2B4761; flex:0 0 auto; }
/* 单位框定宽：M³ / MT / M 左端（M 的起点）落在同一条竖线上 */
.tk-c2 em{
  font-style:normal; font-weight:600; color:#8394A3; letter-spacing:0;
  flex:0 0 21px; font-size:inherit; text-align:left; padding-left:3px;
  white-space:nowrap;
}
.tk-c2.txt{ justify-content:center; font-size:inherit; font-weight:600; color:#2B4761; letter-spacing:0; }
.tk.has-pc .tk-c2.txt{ color:var(--pc-fg); }
/* 第三列：右对齐 */
.tk-c3{
  font-size:inherit; color:#8394A3; text-align:right;
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
.tk-flag{
  width:13px; height:13px; border-radius:50%; margin-left:3px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:9px; color:#fff; background:var(--red); font-weight:700;
  vertical-align:1px;
}
.tk-flag.w{ background:var(--amber); }
.tk .dim, .tk .dim b, .tk .dim em{ color:#A9B7C3; }

/* 极窄舱卡（16 舱船型 + A4 打印）：只收留白与列间距，字号保持 11px */
@container (max-width: 110px){
  .tk-g{ padding:5px 4px 6px; column-gap:2px; }
  .tk-c2 em{ padding-left:1px; }
  .tk-flag{ width:11px; height:11px; font-size:8px; margin-left:1px; }
}
@container (max-width: 92px){
  .tk-g{ padding:5px 3px 6px; column-gap:1px; }
}
/* 8 列（16 舱）时列距收一档，保证 11px 三列不互相压盖 */
.plan[data-n="8"] .tk-g{ column-gap:1px; }

/* 舱容 / 载货量 / ullage 都是三位小数，中间列比整数时宽了约 26px，
   窄卡放不下 11px 三列 —— 按配载图可用宽度分档等比缩放（字号声明仍是 11px） */
.plan[data-n="8"]{ zoom:.82; }
@media (max-width:1400px){
  .plan[data-n="6"]{ zoom:.90; }
  .plan[data-n="8"]{ zoom:.69; }
}
@media (max-width:1220px){
  .plan[data-n="6"]{ zoom:.86; }
  .plan[data-n="8"]{ zoom:.65; }
}

/* A4 打印：纸宽固定，同样按比例缩到内容放得下 */
@media print{
  .plan .tk-g{ padding:5px 3px 6px; column-gap:2px; }
  .plan[data-n="6"]{ zoom:.73; }
  .plan[data-n="8"]{ zoom:.55; }
}

.stow-util{ margin-top:13px; }
.util-top{ display:flex; align-items:baseline; font-size:12px; color:var(--text-2); }
.util-top b{ margin-left:auto; font-size:16px; color:var(--text); font-weight:600; }
.util-bar{
  height:6px; background:#EDF2F7; border-radius:4px; overflow:hidden; margin:6px 0 5px;
}
.util-bar i{
  display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg,#2D8FD5,#15618F);
}
.util-sub{ font-size:11px; color:var(--text-3); }

/* 规则列表 */
.rule{
  display:flex; gap:9px; padding:8px 4px;
  border-bottom:1px dashed #EEF2F6; align-items:flex-start;
}
.rule:last-child{ border-bottom:none; }
.rule-ic{
  flex:0 0 17px; height:17px; border-radius:50%; margin-top:1px;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; color:#fff; font-weight:700;
}
.rule.ok .rule-ic{ background:#7FB79A; }
.rule.warn .rule-ic{ background:var(--amber); }
.rule.fail .rule-ic{ background:var(--red); }
.rule-name{ font-size:12.2px; font-weight:600; color:var(--text); }
.rule-msg{ font-size:11.5px; color:var(--text-2); line-height:1.62; margin-top:1px; }
.rule.fail .rule-name{ color:#9E2F23; }
.rule.warn .rule-name{ color:#8A6412; }

/* 明细表 */
.stow-table{ padding:0 0 4px; }
.st-row{
  display:grid;
  grid-template-columns:0.6fr 0.55fr 1.02fr 1.5fr 0.82fr 0.78fr 0.82fr 0.68fr 0.74fr 0.58fr;
  gap:8px; padding:9px 18px; font-size:12.2px;
  border-bottom:1px solid #F0F4F8; align-items:center;
}
.st-row.head{
  font-size:11px; color:var(--text-3); background:#FAFCFD;
  letter-spacing:.3px; border-bottom:1px solid var(--border);
}
.st-row:last-child{ border-bottom:none; }
.st-row .dim{ color:var(--text-3); font-size:11px; }
.st-row .st-en{
  color:var(--text-2); font-size:11.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* 分票「分类」列：IBC 污染类别，油类为 ANNEX I */
.pc-poll{
  font-size:12px; color:#4A5B6B; text-align:center;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.pc-poll.oil{ font-size:12px; color:#15618F; letter-spacing:0; }

/* 三列：船舶参数 / 吃水信息 / 规则校验（三张卡片等高） */
.cond-grid{
  display:grid; grid-template-columns:1fr 1fr 1fr;
  gap:14px; margin-top:14px; align-items:stretch;
}
.cond-grid > .card{ display:flex; flex-direction:column; height:100%; min-height:0; }
.cond-grid > .card > .card-head{ flex:0 0 auto; }
.cond-grid > .card > .cv-body{ flex:1 1 auto; }
.cond-grid > .card > .rv-body{ flex:1 1 auto; min-height:0; }
.cond-grid > .card > .rv-foot{ flex:0 0 auto; }
.cv-body{ padding:8px 14px 12px; }
.cv-row{
  display:flex; align-items:center; gap:8px;
  padding:4px 0; border-bottom:1px dashed #EFF3F7;
}
.cv-row:last-child{ border-bottom:none; }
.cv-l{
  flex:1; min-width:0; font-size:10.5px; color:var(--text-3);
  letter-spacing:.4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cv-v{ font-size:12.5px; color:var(--text); font-variant-numeric:tabular-nums; }
.cv-u{ font-style:normal; font-size:10px; color:#9AAAB8; width:16px; }
.cv-i{
  width:74px; height:24px; padding:0 6px; text-align:right;
  border:1px solid var(--border); border-radius:5px; background:#fff;
  font-family:inherit; font-size:12px; color:var(--text);
  font-variant-numeric:tabular-nums; outline:none;
  -moz-appearance:textfield; appearance:textfield;   /* 去掉上下调节箭头，只接受直接输入 */
}
.cv-i::-webkit-outer-spin-button,
.cv-i::-webkit-inner-spin-button{ -webkit-appearance:none; appearance:none; margin:0; }
.cv-i:focus{ border-color:var(--blue-2); background:#fff; }
.cv-row.sum{ border-top:1px solid var(--border); border-bottom:none; margin-top:3px; padding-top:6px; }
.cv-row.sum .cv-l{ color:var(--text-2); font-weight:600; }
.cv-row.sum .cv-v{ font-size:13px; font-weight:600; }
.cv-row.bad .cv-v{ color:var(--red); }
.cv-tag{
  font-style:normal; margin-left:5px; padding:0 5px;
  font-size:9.5px; border-radius:3px; line-height:14px;
  color:#7C5A10; background:#FCF5E7; border:1px solid #EFE0BF;
  white-space:nowrap;
}
.cv-note{ font-size:10px; color:#9AAAB8; line-height:1.55; margin-top:9px; }
.cv-warn{ color:#D98324; }

/* 规则校验列：卡片主体随三列等高，内容超出时内部滚动 */
.rv-body{ padding:4px 14px 10px; overflow:auto; min-height:0; }
.rules-none{ padding:30px 8px; text-align:center; }
.rules-none b{ display:block; font-size:12.5px; color:#166B45; }
.rules-none span{ display:block; font-size:11px; color:#9AAAB8; margin-top:4px; }
.rv-foot{ border-top:1px solid var(--border); padding:10px 14px 12px; }
.rv-hint{ font-size:10.5px; color:var(--text-3); margin-top:6px; line-height:1.55; }

/* 弹层 */
.modal-mask{
  position:fixed; inset:0; background:rgba(11,44,74,.42);
  backdrop-filter:blur(2px); z-index:100;
  display:flex; align-items:center; justify-content:center; padding:24px;
  animation:fadein .16s ease;
}
@keyframes fadein{ from{opacity:0} to{opacity:1} }
.modal{
  background:#fff; border-radius:12px; width:100%; max-width:720px;
  max-height:88vh; display:flex; flex-direction:column;
  box-shadow:0 18px 48px rgba(11,44,74,.28);
  animation:pop .18s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop{ from{ transform:translateY(8px) scale(.99); opacity:.6 } to{ transform:none; opacity:1 } }
.modal-hd{
  padding:16px 20px; border-bottom:1px solid var(--border);
  display:flex; align-items:flex-start; gap:12px;
}
.modal-hd b{ font-size:15px; }
.modal-sub{ display:block; font-size:11.5px; color:var(--text-3); margin-top:2px; }
.modal-x{
  margin-left:auto; border:none; background:none; font-size:21px;
  color:var(--text-3); cursor:pointer; line-height:1; padding:0 2px;
}
.modal-x:hover{ color:var(--text); }
.modal-body{ display:grid; grid-template-columns:1fr 1fr; overflow:hidden; flex:1; min-height:0; }
.chem-list{ overflow:auto; max-height:58vh; padding:8px 6px 8px 10px; border-right:1px solid var(--border); }
.chem-opt{
  padding:7px 10px; border-radius:6px; cursor:pointer; margin-bottom:2px;
  border:1px solid transparent;
}
.chem-opt:hover{ background:#F6FAFD; }
.chem-opt.on{ background:#EFF7FC; border-color:#BFDCF0; }
.chem-opt.off{ opacity:.62; cursor:not-allowed; }
.co-main{ display:flex; align-items:center; gap:7px; }
.co-main b{ font-size:13px; }
.co-en{ font-size:10.5px; color:var(--text-3); }
.co-tags{ display:flex; gap:4px; margin-left:auto; }
.ctag{ font-size:9.5px; border-radius:3px; padding:0 4px; line-height:15px; }
.ctag.hot{ color:#9E2F23; background:#FCEDEB; border:1px solid #F3D3CE; }
.ctag.pre{ color:#7C5A10; background:#FCF5E7; border:1px solid #EFE0BF; }
.ctag.coat{ color:#15618F; background:#EAF3F9; border:1px solid #D3E6F2; }
.co-sub{ font-size:10.8px; color:var(--text-3); margin-top:1px; }
.co-off{ color:#A8452F; opacity:1; }

.modal-form{
  padding:20px 18px 16px; background:#FAFCFD;
  display:flex; flex-direction:column; justify-content:flex-start;
}
.mf-row{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.mf-row label{ font-size:12px; color:var(--text-3); flex:0 0 56px; }
.mf-row .inp{ flex:1; min-width:0; }
.mf-unit{ font-size:11.5px; color:var(--text-3); flex:0 0 22px; }
.mf-note{ font-size:10.5px; color:#9AAAB8; line-height:1.55; margin-top:2px; }

/* 数字框一律不接受滚轮/上下箭头微调，只能直接键入 */
.mf-row .inp,
.modal-form input[type="number"],
.pc-num input[type="number"],
.pc-dens{
  -moz-appearance:textfield; appearance:textfield;
}
.modal-form input[type="number"]::-webkit-outer-spin-button,
.modal-form input[type="number"]::-webkit-inner-spin-button,
.pc-num input[type="number"]::-webkit-outer-spin-button,
.pc-num input[type="number"]::-webkit-inner-spin-button,
.pc-dens::-webkit-outer-spin-button,
.pc-dens::-webkit-inner-spin-button{
  -webkit-appearance:none; appearance:none; margin:0;
}

.modal-ft{
  padding:12px 20px; border-top:1px solid var(--border);
  display:flex; align-items:center; gap:8px;
}

/* 打印 */
@media print{
  .sidebar, .topbar, .page-head p, .foot-note,
  .rv-foot, .stow-util, .pc-del, #sw-add-parcel{ display:none !important; }
  .app{ display:block; }
  .content{ padding:0; max-width:none; }
  body{ background:#fff; }
  /* 卡头只留船名 / 航次 / 预配汇总，按钮与完成标记不上纸 */
  .plan-hd .tb-right{ display:none !important; }
  .plan-hd #sw-vessel, .plan-hd #sw-voyage{
    border-color:transparent; background:transparent !important; appearance:none;
    padding-left:0; text-align:left;
  }
  .card{ box-shadow:none; border-color:#C9D4DE; break-inside:avoid; }
  .stow-status{ border:1px solid #C9D4DE; background:#fff !important; color:#333 !important; }
  .plan{ break-inside:avoid; }
  .tk{ break-inside:avoid; }
  .tk.has-pc{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }   /* 导出方案单保留分票配色 */
  .cond-grid{ grid-template-columns:1fr 1fr 1fr; gap:8px; }
  .pc-row{ grid-template-columns:30px 74px 74px 77px 140px 84px 64px 92px 0 0; gap:6px; }
  .pc-poll{ font-size:12px; }
  /* 方案单按纸质单据出：去掉输入框边框与下拉箭头，看起来是印好的表 */
  .cbx-btn{ display:none !important; }
  .pc-row .inp, .pc-row .cbx-in, .cv-i{
    border-color:transparent; background:transparent !important; padding-left:0;
  }
  .pc-row .cbx-in{ padding-right:0; }
}

.btn[disabled]{ opacity:.42; cursor:not-allowed; }
.btn[disabled]:hover{ border-color:var(--border); color:var(--text-2); }
.btn-primary[disabled]:hover{ background:var(--blue); color:#fff; }

/* ============================================================
   风险模块
   ============================================================ */
.risk-form{ padding:14px 18px 12px; margin-bottom:14px; }
.rf-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:9px; }
.rf-row:last-of-type{ margin-bottom:0; }
.rf-lab{
  flex:0 0 62px; font-size:11.5px; color:var(--text-3); letter-spacing:.4px;
}
.chips{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.chip{
  font-size:12px; padding:4px 11px; border-radius:20px; cursor:pointer;
  border:1px solid var(--border); background:#fff; color:var(--text-2);
  transition:all .14s; display:inline-flex; align-items:center; gap:4px;
}
.chip:hover{ border-color:var(--blue-2); color:var(--blue); }
.chip.on{
  background:var(--blue); border-color:var(--blue); color:#fff;
}
.chip .x{
  font-style:normal; font-size:12px; opacity:.65; margin-left:1px;
  leading-trim:none;
}
.chip .x:hover{ opacity:1; }
.rf-inline{ font-size:11.5px; color:var(--text-3); display:inline-flex; align-items:center; gap:5px; }
.rf-note{
  font-size:11px; color:var(--text-3); margin-top:10px; padding-top:9px;
  border-top:1px dashed #EDF1F5;
}

/* 条目 */
.risk-item{
  border:1px solid var(--border); border-radius:8px; padding:11px 13px 10px;
  margin-bottom:8px; background:#fff; position:relative; overflow:hidden;
  border-left-width:3px;
}
.risk-item.high{ border-left-color:var(--red); }
.risk-item.mid{ border-left-color:var(--amber); }
.risk-item.low{ border-left-color:#D4A72C; }
.risk-item.ok{ border-left-color:#7FB79A; }

.ri-head{ display:flex; align-items:flex-start; gap:8px; }
.ri-lv{
  flex:0 0 auto; font-size:10px; color:#fff; border-radius:3px;
  padding:1px 6px; line-height:16px; margin-top:1px; font-weight:600;
}
.risk-item.high .ri-lv{ background:var(--red); }
.risk-item.mid .ri-lv{ background:var(--amber); }
.risk-item.low .ri-lv{ background:#C9A227; }
.risk-item.ok .ri-lv{ background:#7FB79A; }
.ri-head b{ font-size:12.8px; line-height:1.55; font-weight:600; flex:1; }
.ri-score{
  flex:0 0 auto; font-size:11px; color:var(--text-3);
  font-variant-numeric:tabular-nums; white-space:nowrap; margin-top:2px;
}
.ri-score em{ font-style:normal; font-size:13px; font-weight:600; color:var(--text); }

.ri-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:3px 18px;
  margin:7px 0 6px; padding-left:1px;
}
.ri-grid > div{ font-size:11.5px; color:var(--text-2); line-height:1.6; }
.ri-grid > div span{
  display:inline-block; color:var(--text-3); font-size:10.5px;
  margin-right:5px; letter-spacing:.3px;
}
.ri-foot{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding-top:7px; border-top:1px dashed #EEF2F6;
  font-size:10.8px; color:var(--text-3);
}
.ri-clause{
  color:var(--blue); background:#EFF6FB; border:1px solid #DCEAF4;
  border-radius:3px; padding:1px 6px;
}
.ri-up{ color:#9A6A15; }
.ri-chk{ margin-left:auto; display:inline-flex; align-items:center; gap:4px; cursor:pointer; }

/* 矩阵 */
.mx-axis-y{
  font-size:10.5px; color:var(--text-3); letter-spacing:1px;
  margin-bottom:5px;
}
.mx-axis-x{
  font-size:10.5px; color:var(--text-3); letter-spacing:1px;
  text-align:center; margin-top:5px;
}
.mx{ display:flex; flex-direction:column; gap:3px; }
.mx-row{ display:flex; gap:3px; align-items:center; }
.mx-lab{
  flex:0 0 14px; font-size:10.5px; color:var(--text-3); text-align:center;
}
.mx-xlab{ flex:1; font-size:10.5px; color:var(--text-3); text-align:center; }
.mx-cell{
  flex:1; height:31px; border-radius:4px; display:flex;
  align-items:center; justify-content:center;
  font-size:11.5px; font-weight:600; color:#fff; opacity:.92;
}
.mx-cell.high{ background:#C0392B; }
.mx-cell.mid{ background:#D08A2C; }
.mx-cell.low{ background:#E8C75A; color:#6B5410; }
.mx-cell.ok{ background:#8FBF9F; }

.mx-legend{
  display:flex; gap:9px; flex-wrap:wrap; margin-top:9px;
  padding-top:8px; border-top:1px dashed #EDF1F5;
  font-size:10px; color:var(--text-3);
}
.mx-legend span{ display:inline-flex; align-items:center; gap:3px; }
.mx-legend i{ width:8px; height:8px; border-radius:2px; display:inline-block; }
.mx-legend i.high{ background:#C0392B; }
.mx-legend i.mid{ background:#D08A2C; }
.mx-legend i.low{ background:#E8C75A; }
.mx-legend i.ok{ background:#8FBF9F; }

.ri-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; text-align:center; }
.ri-stats > div{ background:#FAFCFD; border:1px solid #EDF2F6; border-radius:7px; padding:8px 4px; }
.ri-stats b{ display:block; font-size:19px; font-weight:600; line-height:1.25; }
.ri-stats span{ font-size:10.5px; color:var(--text-3); }
.c-high{ color:var(--red); }
.c-mid{ color:var(--amber); }
.c-low{ color:#B08A1E; }

@media print{
  .risk-form, .ri-chk, .btn{ display:none !important; }
  .grid-2{ grid-template-columns:1fr !important; }
}

/* ============================================================
   证书模块
   ============================================================ */
.c-blue{ color:#15618F; }
.mono{ font-variant-numeric:tabular-nums; letter-spacing:.2px; }
.dim{ color:var(--text-3); }

.tabs{ display:flex; gap:2px; margin-bottom:14px; border-bottom:1px solid var(--border); }
.tab{
  padding:9px 16px 10px; font-size:13px; color:var(--text-2); cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px; transition:all .14s;
  display:flex; align-items:center; gap:6px;
}
.tab:hover{ color:var(--blue); }
.tab.on{ color:var(--blue); border-bottom-color:var(--blue); font-weight:600; }
.tab-n{
  font-size:10.5px; background:#EAF3F9; color:var(--blue); border-radius:9px;
  padding:0 6px; line-height:15px; font-weight:500;
}
.tab.on .tab-n{ background:var(--blue); color:#fff; }

/* 台账 */
.cert-tool{
  display:flex; align-items:center; gap:9px; padding:14px 18px 12px; flex-wrap:wrap;
}
.ct-hint{ margin-left:auto; font-size:11.5px; color:var(--text-3); }
.cert-scroll{ max-height:560px; overflow:auto; border-top:1px solid var(--border); }
.cert-row{
  display:grid;
  grid-template-columns:58px 1.55fr 114px 74px 92px 92px 76px 96px;
  gap:10px; padding:9px 18px; font-size:12.2px; align-items:center;
  border-bottom:1px solid #F2F5F8;
}
.cert-row.head{
  position:sticky; top:0; z-index:2; background:#FAFCFD;
  font-size:11px; color:var(--text-3); letter-spacing:.3px;
  border-bottom:1px solid var(--border);
}
.cert-row:not(.head):hover{ background:#F8FBFD; }
.cert-row:last-child{ border-bottom:none; }
.cov-link{
  color:var(--blue); cursor:pointer; border-bottom:1px dashed #9EC6DF;
}
.cov-link:hover{ color:var(--blue-2); }

.rule-note{ display:flex; flex-direction:column; gap:9px; font-size:12.5px; color:var(--text-2); }
.rule-note b{ display:inline-block; min-width:88px; }

/* 申请单布局 */
.req-wrap{ display:grid; grid-template-columns:300px 1fr; gap:14px; align-items:start; }
.req-list{ padding:9px 10px 12px; display:flex; flex-direction:column; gap:7px; }
.req-card{
  border:1px solid var(--border); border-radius:8px; padding:9px 11px 10px;
  cursor:pointer; transition:all .14s; background:#fff;
}
.req-card:hover{ border-color:#BFDCF0; background:#F8FBFD; }
.req-card.on{ border-color:var(--blue); background:#F2F8FC; box-shadow:0 2px 8px rgba(45,143,213,.10); }
.rc-top{ display:flex; align-items:center; gap:6px; font-size:10.8px; }
.rc-top .badge{ margin-left:auto; }
.rc-title{ font-size:12.5px; font-weight:600; margin-top:5px; line-height:1.45; }
.rc-sub{ font-size:11px; color:var(--text-3); margin-top:2px; }

.req-main{ min-height:560px; }
.req-head{ display:flex; align-items:flex-start; gap:12px; }
.req-id{ font-size:12px; color:var(--text-3); }
.req-title{ font-size:17px; font-weight:600; margin-top:3px; }
.req-head-r{ margin-left:auto; }
.req-meta{
  display:flex; gap:26px; flex-wrap:wrap; margin-top:12px; padding:10px 14px;
  background:#FAFCFD; border:1px solid #EDF2F6; border-radius:7px;
  font-size:12.2px; color:var(--text);
}
.req-meta em{ font-style:normal; color:var(--text-3); margin-right:7px; font-size:11.5px; }

.stepper{ display:flex; margin:20px 0 4px; position:relative; }
.stepper::before{
  content:''; position:absolute; top:10px; left:12.5%; right:12.5%;
  height:1px; background:#DFE7EF;
}
.step{ flex:1; text-align:center; position:relative; z-index:1; }
.step i{
  display:block; width:21px; height:21px; line-height:20px; border-radius:50%;
  border:1px solid #DCE4EC; background:#fff; color:var(--text-3);
  font-size:10.5px; font-style:normal; margin:0 auto 6px; position:relative; z-index:1;
}
.step span{ font-size:11px; color:var(--text-3); }
.step.done i{ background:#EAF6F0; border-color:#BFE0D0; color:#166B45; }
.step.done span{ color:#166B45; }
.step.cur i{ background:var(--blue); border-color:var(--blue); color:#fff; font-weight:600; }
.step.cur span{ color:var(--blue); font-weight:600; }
.step.fail i{ background:#FCEDEB; border-color:#F3D3CE; color:var(--red); }
.step.fail span{ color:var(--red); }

.blk{ margin-top:18px; }
.blk-t{
  font-size:11.5px; color:var(--text-3); letter-spacing:.5px;
  padding-bottom:7px; border-bottom:1px solid #F0F4F8; margin-bottom:8px;
}
.req-item{
  display:flex; align-items:center; gap:12px; padding:8px 2px;
  border-bottom:1px dashed #F2F5F8; font-size:12.5px;
}
.req-item:last-child{ border-bottom:none; }
.ri-nm{ flex:1; }
.ri-nm b{ font-weight:600; margin-right:9px; }
.ri-nm .mono{ font-size:11px; }
.ri-ex{ font-size:11.5px; color:var(--text-2); }

/* 申请单按船分组 */
.rq-grp{
  border:1px solid #EDF2F6; border-radius:8px; background:#FCFDFE;
  padding:2px 11px 4px; margin-bottom:8px;
}
.rq-grp:last-child{ margin-bottom:0; }
.rq-ghd{
  display:flex; align-items:center; gap:9px;
  padding:6px 0 5px; border-bottom:1px solid #F0F4F8;
}
.rq-ghd b{ font-size:12.3px; }
.rq-ghd .dim{ font-size:10.8px; }
.rq-ghd em{ margin-left:auto; font-style:normal; font-size:11px; }
.rq-grp .req-item{ border-bottom:1px dashed #F2F5F8; }
.rq-grp .req-item:last-child{ border-bottom:none; }

.req-note{
  margin-top:14px; padding:9px 13px; background:#FCF8EE;
  border:1px solid #F0E4C8; border-radius:7px; font-size:12px; color:#7C5A10;
}

.link-box{
  margin-top:16px; border:1px solid #D3E6F2; background:#F4FAFD;
  border-radius:8px; padding:12px 15px;
}
.lb-hd{ display:flex; align-items:center; gap:10px; font-size:12.5px; }
.lb-hd .badge{ margin-left:auto; }
.lb-url{
  margin-top:8px; font-size:12px; color:#15618F; background:#fff;
  border:1px solid #DCEAF4; border-radius:5px; padding:7px 10px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.lb-meta{ font-size:11px; color:var(--text-3); margin-top:7px; }

.file-row{
  display:flex; align-items:center; gap:9px; padding:7px 10px;
  border:1px solid #EDF2F6; border-radius:6px; margin-bottom:6px; font-size:12px;
}
.file-row svg{ width:15px; height:15px; color:var(--text-3); flex:0 0 15px; }
.file-row em{ margin-left:auto; font-style:normal; font-size:10.5px; color:#166B45; }

.seal-wrap{
  margin-top:16px; display:flex; align-items:center; gap:18px;
  padding:14px 16px; border:1px dashed #E3D6BC; border-radius:8px; background:#FDFBF5;
}
.seal{
  width:92px; height:92px; border:2.5px solid rgba(190,58,46,.72); border-radius:50%;
  display:flex; align-items:center; justify-content:center; text-align:center;
  transform:rotate(-9deg); color:rgba(178,48,38,.85); font-size:10.5px;
  line-height:1.4; font-weight:600; letter-spacing:.5px;
  box-shadow:inset 0 0 0 3px rgba(190,58,46,.10);
}
.seal-meta{ font-size:11.5px; color:var(--text-2); line-height:1.85; }

.req-acts{ display:flex; gap:9px; margin-top:18px; flex-wrap:wrap; }

.log-row{
  display:flex; align-items:center; gap:12px; font-size:11.8px;
  padding:7px 2px; border-bottom:1px dashed #F2F5F8;
}
.log-row:last-child{ border-bottom:none; }
.log-row b{ font-weight:600; }
.log-row em{ margin-left:auto; font-style:normal; font-size:10.5px; }

@media print{
  .sidebar, .topbar, .tabs, .req-side, .req-acts, .foot-note, .kpi-grid{ display:none !important; }
  .app{ display:block; }
  .content{ padding:0; max-width:none; }
  .req-wrap{ grid-template-columns:1fr; }
  .card{ box-shadow:none; border:none; }
  .page-head h1{ font-size:18px; }
}

/* ============================================================
   货品表模块
   ============================================================ */
.chem-tool{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:11px 16px 12px; margin-bottom:14px; box-shadow:var(--shadow);
}
.ct-line{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:3px 0; }
.ct-count{ margin-left:auto; font-size:11.5px; color:var(--text-3); }
.chip.sm{ font-size:11.5px; padding:2px 9px; }

.chem-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(268px,1fr)); gap:12px;
}
.card-body .chem-grid{ padding:0; }
.chem-card{
  background:#fff; border:1px solid var(--border); border-radius:9px;
  padding:12px 14px 11px; cursor:pointer; box-shadow:var(--shadow);
  transition:all .15s; display:flex; flex-direction:column;
}
.chem-card:hover{
  border-color:#BFDCF0; box-shadow:0 5px 16px rgba(28,74,110,.10); transform:translateY(-1px);
}
.cc-hd{ display:flex; align-items:flex-start; gap:8px; }
.cc-hd b{ font-size:15px; font-weight:600; }
.cc-hd em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-top:1px; }
.cc-cat{
  margin-left:auto; font-size:10px; color:var(--text-2); background:#F3F6F9;
  border:1px solid #E8EDF2; border-radius:3px; padding:1px 6px; white-space:nowrap;
}
.cc-cas{ font-size:10.5px; color:var(--text-3); margin-top:5px; }
.cc-num{
  display:grid; grid-template-columns:repeat(4,1fr); gap:4px;
  margin:10px 0 9px; padding:8px 0; border-top:1px dashed #EEF2F6; border-bottom:1px dashed #EEF2F6;
}
.cc-num > div{ text-align:center; }
.cc-num em{ display:block; font-style:normal; font-size:9.5px; color:var(--text-3); margin-bottom:2px; }
.cc-num b{ font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.cc-tags{ display:flex; gap:4px; flex-wrap:wrap; min-height:20px; }
.hz{
  font-size:9.5px; color:#8E2C21; background:#FCEDEB; border:1px solid #F3D3CE;
  border-radius:3px; padding:0 4px; line-height:15px;
}
.ct{ font-size:9.5px; border-radius:3px; padding:0 4px; line-height:15px; }
.ct.pre{ color:#7C5A10; background:#FCF5E7; border:1px solid #EFE0BF; }
.ct.inh{ color:#8A4A12; background:#FDEEE0; border:1px solid #F2D5B8; }
.ct.temp{ color:#15618F; background:#EAF3F9; border:1px solid #D3E6F2; }
.ct.heat{ color:#9E2F23; background:#FCEDEB; border:1px solid #F3D3CE; }
.ct.corr{ color:#5C4B8A; background:#F1EEF9; border:1px solid #DFD8F0; }
.cc-ft{
  display:flex; align-items:center; margin-top:9px; padding-top:8px;
  border-top:1px solid #F2F5F8; font-size:10.8px; color:var(--text-3);
}
.cc-v{ margin-left:auto; }
.cc-v b{ color:var(--text); }

/* 详情弹层 */
.cm-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:9px;
  padding:10px 14px; background:#FAFCFD; border:1px solid #EDF2F6; border-radius:8px;
}
.cm-grid > div{ font-size:12px; }
.cm-grid em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-bottom:3px; }
.cm-grid b{ font-weight:600; }
.cm-sec{ margin-top:16px; }
.cm-haz{ display:flex; gap:5px; flex-wrap:wrap; margin-bottom:9px; }
.cm-note{ font-size:12.3px; color:var(--text-2); line-height:1.75; }
.cm-warn{
  margin-top:9px; padding:8px 12px; background:#FCF8EE; border:1px solid #F0E4C8;
  border-radius:6px; font-size:11.8px; color:#7C5A10; line-height:1.65;
}
.vm-row{ display:flex; gap:7px; flex-wrap:wrap; }
.vm{
  font-size:11.5px; padding:3px 10px; border-radius:20px;
  border:1px solid #E4EAF0; color:var(--text-3); background:#FAFCFD;
}
.vm.ok{ color:#166B45; background:#EAF6F0; border-color:#CFEADE; font-weight:600; }
.mx-exp{
  border:1px solid #EDF2F6; border-radius:7px; padding:9px 12px; margin-bottom:7px;
}
.mxe-hd{ display:flex; align-items:center; gap:9px; font-size:11.5px; }
.mxe-hd b{ font-size:12px; }
.mxe-l{ font-size:11.8px; color:var(--text-2); line-height:1.7; margin-top:4px; }
.mxe-l em{ font-style:normal; color:var(--text-3); margin-right:6px; font-size:10.8px; }

/* 适装矩阵 */
.mxm-wrap{ overflow-x:auto; padding-bottom:4px; }
.mxm{ min-width:940px; }
.mxm-row{
  display:grid; grid-template-columns:80px repeat(var(--n,17),1fr) 66px;
  align-items:center; border-bottom:1px solid #F2F5F8;
}
.mxm-row.head{ border-bottom:1px solid var(--border); }
.mxm-v{ font-size:12px; padding:8px 0 8px 4px; }
.mxm-v b{ display:block; font-size:12.5px; }
.mxm-v span{ font-size:10px; }
.mxm-c{
  text-align:center; font-size:10.5px; color:var(--text-3);
  padding:7px 0; line-height:1.3; word-break:keep-all; white-space:nowrap;
}
.mxm-row.head .mxm-c{
  font-size:9.5px; color:var(--text-3); letter-spacing:-.2px;
  padding:9px 0 8px;
}
.mxm-c.y{ color:#2E8B62; font-size:11px; }
.mxm-c.n{ color:#D3DCE4; }
.mxm-s{ text-align:right; padding-right:4px; font-size:12px; white-space:nowrap; }
.mxm-s span{ font-size:10px; }
/* 转置版：18 行货品 × 6 列船舶，首列放宽到两行显示中英文名 */
.mxm-rev .mxm-row{ grid-template-columns:214px repeat(var(--n,6),1fr) 62px; }
.mxm-rev .mxm-v{ padding:7px 10px 7px 4px; min-width:0; }
.mxm-rev .mxm-v b{ font-size:12.3px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mxm-rev .mxm-v span{
  display:block; font-size:9.8px; color:var(--text-3); line-height:1.3; margin-top:1px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mxm-rev .mxm-c{ padding:9px 0; }
.mxm-vh{ font-size:11.5px; color:var(--text-2); letter-spacing:.5px; }
.mxm-note{
  margin-top:12px; padding:9px 13px; background:#F8FBFD; border:1px solid #E9F0F6;
  border-radius:7px; font-size:11.5px; color:var(--text-2); line-height:1.7;
}

/* 经验条目 */
.exp-row{
  border:1px solid var(--border); border-radius:8px; padding:10px 14px 11px;
  margin-bottom:9px;
}
.ex-hd{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:11.5px; }
.ex-hd .badge{ margin-left:auto; }
.ex-ch{ font-weight:600; font-size:12.5px; }
.ex-b{
  font-size:12px; color:var(--text-2); line-height:1.7; margin-top:6px;
  padding-left:2px;
}
.ex-b em{
  font-style:normal; color:var(--text-3); font-size:10.5px; margin-right:8px;
  display:inline-block; min-width:28px;
}
.ex-act{
  display:flex; align-items:center; gap:11px; margin-top:9px; padding-top:8px;
  border-top:1px dashed #EEF2F6; font-size:11px;
}
.btn-sm{ height:27px; font-size:11.5px; padding:0 11px; }

@media print{
  .chem-tool, .tabs, .ex-act{ display:none !important; }
  .chem-grid{ grid-template-columns:repeat(3,1fr); }
  .chem-card{ break-inside:avoid; box-shadow:none; }
}

/* ============================================================
   政委工作台
   ============================================================ */
.c-green{ color:#166B45; }

.kanban{
  display:grid; grid-template-columns:repeat(5,1fr); gap:10px;
}
.kb-col{ background:#F8FAFC; border:1px solid #EDF2F6; border-radius:8px; padding:9px 8px 10px; }
.kb-hd{
  display:flex; align-items:center; font-size:11.5px; color:var(--text-2);
  letter-spacing:.3px; padding:0 3px 8px;
}
.kb-hd b{
  margin-left:auto; font-size:11px; color:var(--text-3);
  background:#fff; border:1px solid #E6EDF3; border-radius:9px;
  padding:0 6px; line-height:16px; font-weight:500;
}
.kb-body{ display:flex; flex-direction:column; gap:7px; min-height:150px; }
.kb-empty{ text-align:center; color:#C6D2DD; font-size:15px; padding:24px 0; }
.kb-card{
  background:#fff; border:1px solid var(--border); border-radius:7px;
  padding:8px 10px 9px; cursor:pointer; transition:all .14s;
}
.kb-card:hover{
  border-color:#BFDCF0; box-shadow:0 3px 10px rgba(28,74,110,.09); transform:translateY(-1px);
}
.kbc-top{ display:flex; align-items:center; gap:6px; font-size:10px; }
.kbc-title{ font-size:12.2px; font-weight:600; line-height:1.5; margin-top:5px; }
.kbc-from{ font-size:10.5px; color:var(--text-3); margin-top:3px; }
.kbc-gain{
  font-size:10.5px; color:#166B45; margin-top:5px; padding-top:5px;
  border-top:1px dashed #EEF2F6; line-height:1.5;
}
.pri{
  font-size:9.5px; border-radius:3px; padding:0 5px; line-height:15px; font-weight:600;
}
.pri.p-h{ color:#9E2F23; background:#FCEDEB; }
.pri.p-m{ color:#8A6412; background:#FCF5E7; }
.pri.p-l{ color:#6B7280; background:#F2F5F8; }

/* 需求弹层 */
.dm-flow{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  padding:9px 12px; background:#FAFCFD; border:1px solid #EDF2F6; border-radius:7px;
}
.dm-step{
  font-size:11px; color:var(--text-3); padding:2px 8px; border-radius:20px;
  border:1px solid #E6EDF3; background:#fff;
}
.dm-step.done{ color:#166B45; border-color:#CFEADE; background:#EAF6F0; }
.dm-step.cur{ color:#fff; background:var(--blue); border-color:var(--blue); font-weight:600; }
.dm-arrow{ font-style:normal; color:#C6D2DD; font-size:10px; }

.dm-pair{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.dm-box{ border-radius:8px; padding:11px 13px; }
.dm-box.pain{ background:#FBF7F2; border:1px solid #EFE3D2; }
.dm-box.req{ background:#F3FAFD; border:1px solid #D9EAF4; }
.dm-t{
  font-size:10.5px; letter-spacing:.4px; margin-bottom:6px;
}
.dm-box.pain .dm-t{ color:#8A6412; }
.dm-box.req .dm-t{ color:#15618F; }
.dm-c{ font-size:12.3px; line-height:1.75; color:var(--text); }

.dm-meta{
  display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:13px;
  padding:10px 13px; background:#FAFCFD; border:1px solid #EDF2F6; border-radius:7px;
}
.dm-meta em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-bottom:3px; }
.dm-meta b{ font-size:12px; font-weight:600; }

/* 反馈与培训 */
.cm-2col{ display:grid; grid-template-columns:1.25fr 1fr; gap:14px; margin-top:14px; align-items:start; }
.fb-row{ border-bottom:1px dashed #EEF2F6; padding:9px 0 10px; }
.fb-row:last-child{ border-bottom:none; }
.fb-hd{ display:flex; align-items:center; gap:8px; font-size:11px; flex-wrap:wrap; }
.fb-sys{ font-size:11.5px; font-weight:600; color:var(--text); }
.fb-txt{ font-size:12.2px; color:var(--text-2); line-height:1.7; margin-top:6px; }
.fb-act{ display:flex; align-items:center; gap:10px; margin-top:8px; font-size:11px; }

.tr-row{
  display:grid; grid-template-columns:1.35fr 70px 46px;
  gap:8px 10px; align-items:center; padding:10px 0;
  border-bottom:1px dashed #EEF2F6;
}
.tr-row:last-of-type{ border-bottom:none; }
.tr-title{ font-size:12.3px; font-weight:600; }
.tr-sub{ font-size:10.8px; color:var(--text-3); margin-top:2px; }
.tr-bar{ height:5px; background:#EDF2F7; border-radius:3px; overflow:hidden; }
.tr-bar i{ display:block; height:100%; background:linear-gradient(90deg,#2D8FD5,#15618F); border-radius:3px; }
.tr-num{ font-size:11.5px; color:var(--text-2); text-align:right; font-variant-numeric:tabular-nums; }
.tr-note{
  grid-column:1/-1; font-size:10.8px; color:var(--text-3); line-height:1.6;
  margin-top:-2px;
}
.tr-foot{
  margin-top:11px; padding-top:9px; border-top:1px solid #F0F4F8;
  font-size:10.8px; color:var(--text-3); line-height:1.65;
}

@media print{
  .kanban{ grid-template-columns:repeat(5,1fr); }
  .cm-2col{ grid-template-columns:1fr; }
  .fb-act, .kpi-foot{ display:none !important; }
}

/* ============================================================
   货品库（602 项证书货品）
   ============================================================ */
.cg-tool{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:10px 16px 11px; margin-bottom:12px; box-shadow:var(--shadow);
}
.cg-search{ flex:1; max-width:440px; }
.cg-count{ font-size:12px; color:var(--text-3); margin:0 2px 8px; }
.cg-count b{ color:var(--text); }
.cg-scroll{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  overflow:auto; max-height:620px; box-shadow:var(--shadow);
}
.cg-row{
  display:grid;
  grid-template-columns:50px minmax(240px,1fr) 56px 104px 96px 74px 52px 92px 34px;
  gap:10px; padding:8px 16px; align-items:center;
  font-size:12.3px; border-bottom:1px solid #F2F5F8; cursor:pointer;
}
.cg-row.head{
  position:sticky; top:0; z-index:2; background:#FAFCFD; cursor:default;
  font-size:11px; color:var(--text-3); letter-spacing:.3px;
  border-bottom:1px solid var(--border);
}
.cg-row:not(.head):hover{ background:#F8FBFD; }
.cg-row:last-child{ border-bottom:none; }
.cg-row.bk{ grid-template-columns:50px minmax(280px,1fr) 56px 180px minmax(150px,220px); }
.cg-no{ color:var(--text-3); font-size:11.5px; }
.cg-nm b{ font-weight:600; }
.cg-nm em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-top:1px; }
.cg-ct{ color:var(--text-2); font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cg-sn{ font-size:11.5px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cg-n2{ font-size:11.5px; color:var(--text-2); }
.cg-pre{ font-size:11.5px; color:var(--text-3); }
.cg-pre.on{ color:#8A4A12; font-weight:600; }
.cg-heat{ font-size:11.5px; color:var(--text-3); }
.cg-heat.on{ color:#9E2F23; font-weight:600; }
.cg-tk, .cg-cd{ font-size:11.5px; color:var(--text-2); }
.cg-cd{ line-height:1.5; word-break:break-all; }
.cg-go{ text-align:right; color:var(--text-3); font-size:14px; }
.cg-go .lk{
  display:inline-block; width:5px; height:5px; border-radius:50%;
  background:var(--blue); margin-right:5px; vertical-align:2px;
}

.pol{
  display:inline-block; min-width:20px; text-align:center; font-weight:700;
  font-size:11px; border-radius:4px; padding:1px 5px; letter-spacing:.3px;
}
.pol.big{ font-size:12px; padding:2px 8px; }
.pol.pX{ color:#fff; background:#B03A2E; }
.pol.pY{ color:#fff; background:#C77C13; }
.pol.pZ{ color:#fff; background:#2E7D5B; }
.pol.pOS{ color:#fff; background:#2D6E9E; }

.cm-badges{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.pol-note{
  margin-top:8px; font-size:11.8px; color:var(--text-2);
  background:#F7FAFC; border:1px solid #EDF2F6; border-radius:6px; padding:7px 11px;
}
.kv{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.kv-i{
  background:#FAFCFD; border:1px solid #EDF2F6; border-radius:7px;
  padding:7px 10px; min-height:52px;
}
.kv-i em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-bottom:3px; }
.kv-i b{ font-weight:600; font-size:12.2px; line-height:1.5; word-break:break-word; }
.kv-i b .dim{ font-weight:400; font-size:10.5px; }
.cg-nm .tbc{
  font-size:9px; color:#8A6412; background:#FCF5E7; border:1px solid #EFE0BF;
  border-radius:3px; padding:0 3px; margin-left:5px; vertical-align:1px; font-weight:400;
}

/* 搜索命中高亮 */
.hl{
  background:#FFE58A; color:#4A3600; border-radius:2px;
  padding:0 1px; box-decoration-break:clone; -webkit-box-decoration-break:clone;
}
.cg-nm b{ line-height:1.4; word-break:break-word; }
.cg-nm em .hl{ background:#FFF0B8; color:#4A3600; }

/* 船舶筛选 */
.chip.on .dim{ color:rgba(255,255,255,.82); }
.chip.off{ opacity:.62; border-style:dashed; }
.chip.off:hover{ opacity:.85; }

.chip.off{
  opacity:1; background:#FBFCFD; border-color:#E1E8EE; color:#7C8A96;
}
.chip.off .dim{ color:#B0813A; }

/* ============================================================
   证书台账：英文名 / 中文名 两列
   ============================================================ */
.cert-row{
  grid-template-columns:50px 1.45fr 1fr 58px 108px 68px 86px 92px 74px;
  gap:8px; padding:8px 16px; font-size:11.9px; cursor:pointer;
}
.cert-short{
  font-size:11px; color:#33566F; background:#F1F6FA;
  border:1px solid #DFE9F1; border-radius:3px;
  padding:0 4px; text-align:center; white-space:nowrap;
}
.cert-en{ color:var(--text-2); font-size:11.1px; line-height:1.4; word-break:break-word; }
.cert-cn{ font-weight:600; line-height:1.4; }
.ed-tag{
  margin-left:5px; font-size:9px; color:#2E7D5B; background:#EAF6EF;
  border:1px solid #CBE7D8; border-radius:3px; padding:0 3px; vertical-align:1px; font-weight:400;
}

/* ============================================================
   链接管理
   ============================================================ */
.lk-scroll{ max-height:560px; overflow:auto; border-top:1px solid var(--border); }
.lk-row{
  display:grid;
  grid-template-columns:
    minmax(150px,1.62fr) minmax(96px,1fr) minmax(68px,.66fr) minmax(70px,.9fr)
    minmax(170px,1.62fr) minmax(48px,.46fr) minmax(96px,1fr) minmax(64px,.64fr)
    minmax(140px,1.4fr);
  gap:12px; padding:9px 16px; align-items:center; font-size:11.9px;
  border-bottom:1px solid #F2F5F8;
  white-space:nowrap;
}
.lk-row.head{
  position:sticky; top:0; z-index:2; background:#FAFCFD;
  font-size:11px; color:var(--text-3); border-bottom:1px solid var(--border);
}
.lk-row:not(.head):hover{ background:#F8FBFD; }
.lk-row:last-child{ border-bottom:none; }
.lk-type{
  font-size:10.5px; padding:1px 6px; border-radius:3px; white-space:nowrap;
  border:1px solid #DCE6EE; color:#41627A; background:#F7FAFC;
}
.lk-items{ display:flex; align-items:center; gap:5px; min-width:0; overflow:hidden; }
.lk-items.big{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px; overflow:visible; }
.lk-cnt{
  font-style:normal; font-size:10.5px; color:var(--text-3);
  flex:0 0 auto; margin-right:1px;
}
.lk-c.lk-more{ color:var(--text-3); background:#F6F9FB; border-color:#E7EDF3; }
.lk-c{
  font-style:normal; font-size:10px; font-family:ui-monospace,Menlo,monospace;
  background:#F1F6FA; border:1px solid #DFE9F1; color:#33566F;
  border-radius:3px; padding:0 4px; flex:0 0 auto;
}
.lk-by{ font-size:11.2px; color:var(--text-2); min-width:0; }
.lk-by b{ font-weight:400; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lk-acts{ display:flex; gap:4px; justify-content:flex-end; }
.lk-acts .btn-sm{ padding:2px 7px; font-size:11px; white-space:nowrap; }
.lk-copy.lk-copied{ color:#2E7D5B; border-color:#CBE7D8; background:#EAF6EF; }
.lk-danger{ color:#A03A2E; border-color:#EFD3CE; }
.lk-danger:hover{ background:#FDF3F1; border-color:#E3BDB6; }
.lk-mix{ color:#8A6412; background:#FCF5E7; border:1px solid #EFE0BF; border-radius:3px; padding:0 4px; font-size:10.5px; }

/* 编辑下载链接：按船一行 */
.lk-vedit{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 92px 78px 116px;
  gap:10px; align-items:center;
  padding:8px 10px; border:1px solid #EDF2F6; border-radius:8px;
  background:#FCFDFE; margin-bottom:7px; font-size:12px;
}
.lk-vedit.head{
  border:none; background:none; border-radius:0; margin:0;
  padding:0 10px 6px; font-size:11px; color:var(--text-3);
}
.lk-vedit.head div:nth-child(3),
.lk-vedit.head div:nth-child(4){ text-align:left; }
.lk-ve-v{ display:flex; align-items:baseline; gap:6px; }
.lk-ve-v b{ font-size:12.3px; }
.lk-ve-v em{ font-style:normal; font-size:10.5px; }
.lk-ve-c{ display:flex; gap:4px; overflow:hidden; }
.lk-ve-d{ display:flex; align-items:center; gap:4px; }
.lk-ve-d .inp{ width:56px; padding:3px 6px; font-size:11.5px; }
.lk-ve-d .inp:disabled{ background:#F1F5F8; color:#A8B4BE; border-color:#E6EDF3; }
.lk-ve-d .dim{ font-size:11px; }
.lk-forever{ cursor:pointer; user-select:none; }
.lk-ve-p{ font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.cert-act-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.up-box{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.up-btn{ cursor:pointer; }
.up-note{ margin-top:8px; font-size:11.5px; color:var(--text-3); line-height:1.75; }

.lk-ghost{ visibility:hidden; pointer-events:none; }

/* ---------- 批量下载（证书 × 船舶 矩阵） ---------- */
.bd-tool{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:13px 18px 12px; border-bottom:1px solid var(--border);
}
.bd-count{ font-size:12.3px; color:var(--text-2); }
.bd-count b{ color:var(--blue); font-size:14.5px; font-weight:600; }
.bd-count i{ font-style:normal; color:#C3CDD6; margin:0 7px; }
.bd-right{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.bd-lbl{ font-size:11.5px; color:var(--text-3); }
.bd-tool .select{ height:30px; font-size:12px; }
.bd-tool .select:disabled{ background:#F3F6F9; color:#A9B5BF; cursor:not-allowed; }
.bd-forever{ cursor:pointer; user-select:none; }
.bd-tool .btn-sm{ height:30px; }

.bd-result{
  margin:12px 18px 0; border:1px solid #CFE3F2; background:#F5FAFE;
  border-radius:8px; padding:11px 13px 12px;
  display:flex; flex-direction:column; gap:7px;
}
.bd-r-hd{ display:flex; align-items:center; gap:9px; font-size:12.5px; }
.bd-r-hd b{ font-weight:600; }
.bd-r-cnt{ margin-left:auto; font-size:11.5px; }
.bd-r-url{
  font-size:12px; color:#1F4864; background:#fff; border:1px solid #DCEAF6;
  border-radius:5px; padding:6px 9px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bd-r-meta{ font-size:11.5px; color:var(--text-3); line-height:1.6; }
.bd-r-acts{ display:flex; gap:6px; flex-wrap:wrap; }

.bd-scroll{ margin-top:12px; max-height:620px; overflow:auto; border-top:1px solid var(--border); }
.bd-row{
  display:grid;
  grid-template-columns:minmax(196px,1.45fr) repeat(var(--n), minmax(86px,1fr)) 82px;
  border-bottom:1px solid #F1F5F8;
}
.bd-row.head, .bd-row.foot{ background:#FAFCFD; }
.bd-row.head{ position:sticky; top:0; z-index:3; border-bottom:1px solid var(--border); }
.bd-row.foot{ position:sticky; bottom:0; z-index:3; border-top:1px solid var(--border); border-bottom:none; }
.bd-row:not(.head):not(.foot):hover{ background:#F9FCFE; }

.bd-c0{
  padding:7px 14px; display:flex; flex-direction:column; justify-content:center; gap:1px;
  min-width:0;
}
.bd-nm{ display:flex; align-items:baseline; gap:6px; min-width:0; }
.bd-nm b{ font-family:ui-monospace,Menlo,monospace; font-size:11px; color:var(--blue); letter-spacing:.2px; }
.bd-nm span{ font-size:12.2px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-c0 em{
  font-style:normal; font-size:10px; color:var(--text-3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bd-row.head .bd-c0{ font-size:11px; color:var(--text-3); letter-spacing:.3px; }
.bd-row.foot .bd-nm span{ color:var(--text-2); font-size:11.5px; }

.bd-vh{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  padding:7px 4px; border-left:1px solid #F1F5F8; text-align:center;
}
.bd-vh b{ font-size:12.3px; color:var(--text); }
.bd-vh em{ font-style:normal; font-size:10px; color:var(--text-3); }
.bd-all-h, .bd-all{
  display:flex; align-items:center; justify-content:center;
  border-left:1px solid #F1F5F8; font-size:11px; color:var(--text-3);
}
.bd-cell{
  display:flex; align-items:center; justify-content:center;
  padding:8px 4px; border-left:1px solid #F1F5F8;
  cursor:pointer; transition:background .12s; user-select:none;
}
.bd-cell:hover{ background:#F4FAFE; }
.bd-cell.on{ background:#EBF5FC; }
.bd-box{
  width:16px; height:16px; border-radius:4px; border:1px solid #C6D4E0; background:#fff;
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  transition:all .12s;
}
.bd-box:after{
  content:''; width:7px; height:4px; margin-top:-2px;
  border-left:1.7px solid #fff; border-bottom:1.7px solid #fff;
  transform:rotate(-45deg); opacity:0;
}
.bd-cell.on .bd-box{ background:var(--blue); border-color:var(--blue); }
.bd-cell.on .bd-box:after{ opacity:1; }
/* 该船未持有此证书：框内一条短横线，不可勾选 */
.bd-cell.na{ cursor:not-allowed; }
.bd-cell.na:hover{ background:transparent; }
.bd-cell.na .bd-box{ background:#EDF2F6; border-color:#D3DEE7; }
.bd-cell.na .bd-box:after{
  content:''; width:9px; height:2px; margin:0; border:0; border-radius:1px;
  background:#9FB0BE; transform:none; opacity:1;
}

.bd-all-btn{ height:24px; padding:0 9px; font-size:11px; border-radius:5px; }
.bd-all-btn.on{ background:#EDF6FC; border-color:#BFDBEF; color:var(--blue); }
.bd-f{
  display:flex; align-items:center; justify-content:center; gap:3px;
  padding:9px 4px; border-left:1px solid #F1F5F8;
  font-size:11px; color:var(--text-3); font-variant-numeric:tabular-nums;
}
.bd-f b{ font-size:12.5px; color:var(--blue); font-weight:600; }
.bd-f-total{ border-left:1px solid #F1F5F8; }

/* 轻提示 */
.toast{
  position:fixed; left:50%; bottom:34px; transform:translate(-50%,14px);
  background:#153D57; color:#fff; font-size:12.5px; letter-spacing:.2px;
  padding:9px 18px; border-radius:8px; max-width:76vw;
  box-shadow:0 10px 26px rgba(16,42,60,.26);
  opacity:0; pointer-events:none; z-index:99;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition:opacity .2s ease, transform .2s ease;
}
.toast.on{ opacity:1; transform:translate(-50%,0); }
.toast.bad{
  background:#9E372B; pointer-events:auto;
  user-select:all; -webkit-user-select:all; white-space:normal; line-height:1.6;
}

/* ============================================================
   后台维护
   ============================================================ */
.adm-wrap{ display:grid; grid-template-columns:192px minmax(0,1fr); gap:14px; align-items:start; }
.adm-wrap > .card{ min-width:0; }
.adm-side{ position:sticky; top:14px; overflow:hidden; }
.adm-side-hd{ padding:12px 14px 7px; font-size:10.5px; letter-spacing:1.4px; color:var(--text-3); }
.adm-nav{ padding:0 8px 9px; }
.adm-nav-item{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:8px 9px; border-radius:7px; cursor:pointer; transition:background .14s;
}
.adm-nav-item b{ display:block; font-size:12.8px; font-weight:600; }
.adm-nav-item em{ display:block; font-style:normal; font-size:10.5px; color:var(--text-3); margin-top:1px; }
.adm-nav-item:hover{ background:#F7FBFD; }
.adm-nav-item.on{ background:#EFF7FC; }
.adm-nav-item.on b{ color:var(--blue); }
.adm-n{
  font-size:11px; color:var(--text-3); background:#F2F6FA;
  border:1px solid #E6EDF3; border-radius:10px; padding:0 7px; line-height:17px;
}
.adm-side-ft{
  padding:10px 14px 13px; border-top:1px solid #F0F4F7;
  font-size:10.5px; color:var(--text-3); line-height:1.75;
}
.adm-main{ padding:14px 16px 16px; min-width:0; }
.adm-bar{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.adm-search{ flex:1; max-width:430px; }
.adm-vessel-sel{ flex:0 0 132px; width:132px; }
.adm-bar-r{ margin-left:auto; display:flex; gap:8px; }
.adm-scroll{ max-height:562px; overflow:auto; border-top:1px solid var(--border); max-width:100%; }
.adm-tb{ width:100%; border-collapse:collapse; font-size:12.2px; }
.adm-tb th{
  position:sticky; top:0; z-index:2; background:#FAFCFD; text-align:left;
  font-weight:400; color:var(--text-3); font-size:11px; letter-spacing:.3px;
  padding:9px 8px; border-bottom:1px solid var(--border); white-space:nowrap;
}
.adm-tb td{ padding:8px 7px; border-bottom:1px solid #F2F5F8; white-space:nowrap; }
.adm-tb tr:hover td{ background:#F9FCFE; }
.adm-tb .ell{ max-width:190px; overflow:hidden; text-overflow:ellipsis; }
.adm-tb .ell-s{ max-width:110px; overflow:hidden; text-overflow:ellipsis; }
.adm-tb .ta-r{ text-align:right; }
.adm-tb .ta-c{ text-align:center; }
.adm-acts{ display:flex; gap:4px; justify-content:flex-end; }
.adm-acts .btn{ height:24px; padding:0 8px; font-size:11px; }
.adm-del{ color:#A03A2E; border-color:#EFD3CE; }
.adm-del:hover{ background:#FDF3F1; border-color:#E3BDB6; }
.adm-empty{ text-align:center; color:var(--text-3); padding:34px 0 !important; }
.adm-foot{ display:flex; align-items:center; gap:10px; padding-top:10px; font-size:11.5px; flex-wrap:wrap; }
.adm-pager{ margin-left:auto; display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.adm-pager .btn.btn-sm{ padding:0 8px; }
.adm-pn{ min-width:24px; justify-content:center; }
.adm-pn.on{ background:var(--blue); border-color:var(--blue); color:#fff; }
.adm-cat{
  display:inline-block; min-width:22px; text-align:center; font-size:10.5px;
  border-radius:3px; padding:0 4px; line-height:16px; border:1px solid;
}
.c-X{ color:#8E2C21; background:#FCEDEB; border-color:#F0D2CD; }
.c-Y{ color:#8A6412; background:#FCF5E6; border-color:#EFE0BE; }
.c-Z{ color:#15618F; background:#EAF3F9; border-color:#D3E6F2; }
.c-OS{ color:#6B7280; background:#F3F5F7; border-color:#E3E8ED; }

/* 权限矩阵 */
.adm-perm-hd{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:11px; }
.adm-perm-hd b{ font-size:13.5px; margin-right:8px; }
.adm-perm-hd .dim{ font-size:11.5px; }
.adm-ptb th, .adm-ptb td{ padding:9px 12px; }
.adm-pmod{ font-weight:600; }
.adm-pcell{ text-align:center; }
.adm-chk{
  display:inline-flex; align-items:center; justify-content:center;
  width:21px; height:21px; border-radius:5px;
  border:1px solid #D7E2EB; background:#fff; cursor:pointer; transition:all .12s;
}
.adm-chk input{ display:none; }
.adm-chk i{
  width:9px; height:5px; border-left:1.8px solid #fff; border-bottom:1.8px solid #fff;
  transform:rotate(-45deg); opacity:0; margin-top:-2px;
}
.adm-chk.on{ background:var(--blue); border-color:var(--blue); }
.adm-chk.on i{ opacity:1; }
.adm-chk.lock{ background:#E8F1F8; border-color:#C9DDEB; cursor:not-allowed; }
.adm-chk.lock.on{ background:#9FB9CC; border-color:#9FB9CC; }
.adm-ptb tr.off td{ color:#B4C0CB; }
.adm-ptb tr.off .adm-pmod{ color:#C6D0DA; }
.adm-legend{ display:flex; gap:16px; align-items:center; font-size:11px; color:var(--text-3); margin-top:10px; }
.adm-dot{
  width:11px; height:11px; border-radius:3px; border:1px solid #D7E2EB;
  display:inline-block; margin-right:5px; vertical-align:-1px;
}
.adm-dot.on{ background:var(--blue); border-color:var(--blue); }

/* 后台表单 */
.adm-form{ display:grid; grid-template-columns:repeat(3,1fr); gap:11px 14px; }
.adm-f label{ display:block; font-size:11px; color:var(--text-3); margin-bottom:4px; }
.adm-f label i{ color:var(--red); font-style:normal; }
.adm-f .inp{ width:100%; height:32px; }
.adm-f.w2{ grid-column:span 2; }
.adm-f.w3{ grid-column:span 3; }
.adm-ta{ height:64px; padding:7px 9px; resize:vertical; line-height:1.5; }

/* 变更留痕 */
.adm-log-row{
  display:flex; gap:10px; align-items:baseline;
  padding:7px 0; border-bottom:1px dashed #F0F4F7; font-size:12px;
}
.adm-log-row:last-child{ border-bottom:none; }
.adm-log-row b{ font-weight:600; white-space:nowrap; }
.adm-log-row span:last-child{ color:var(--text-2); }

@media (max-width: 1080px){
  .adm-wrap{ grid-template-columns:1fr; }
  .adm-side{ position:static; }
  .adm-form{ grid-template-columns:repeat(2,1fr); }
  .adm-f.w3{ grid-column:span 2; }
}

/* ---------- 作业支持三卡：预洗 / 时序 / 破舱 ---------- */
.op-grid{
  display:grid; grid-template-columns:1fr 1fr 1fr;
  gap:14px; margin-top:14px; align-items:stretch;
}
.op-grid > .card{ display:flex; flex-direction:column; height:100%; min-height:0; }
.op-body{ padding:10px 14px 12px; flex:1 1 auto; }
.op-hero{
  display:flex; align-items:baseline; gap:7px;
  padding:2px 0 8px; border-bottom:1px solid #EFF3F7;
}
.op-hero b{ font-size:23px; font-weight:600; color:var(--navy); font-variant-numeric:tabular-nums; letter-spacing:-.5px; }
.op-hero em{ font-style:normal; font-size:11px; color:var(--text-3); }
.op-hero .op-tag{
  margin-left:auto; font-size:10.5px; padding:2px 7px; border-radius:9px;
  background:#F1F5F9; color:var(--text-2); white-space:nowrap;
}
.op-hero .op-tag.warn{ background:#FDF3E2; color:#8A6412; }
.op-hero .op-tag.fail{ background:#FBEAE7; color:#9E2F23; }
.op-hero .op-tag.ok{ background:#EAF6F0; color:#1B6B45; }

.op-row{
  display:grid; align-items:center; gap:6px;
  padding:5px 0; border-bottom:1px dashed #F2F6FA; font-size:11.4px;
  font-variant-numeric:tabular-nums;
}
.op-row:last-child{ border-bottom:none; }
.op-row.h{
  color:var(--text-3); font-size:10.4px; border-bottom:1px solid var(--border);
  padding-bottom:4px; letter-spacing:.2px;
}
.op-row .op-n{ color:var(--text-2); }
.op-row .op-v{ text-align:right; }
.op-row .op-bad{ color:var(--red); font-weight:600; }
.op-row .op-warn{ color:var(--amber); font-weight:600; }
.op-row .op-dim{ color:var(--text-3); }

.op-bar{
  height:5px; border-radius:3px; background:#EDF2F6;
  overflow:hidden; margin:7px 0 3px;
}
.op-bar i{ display:block; height:100%; background:var(--gold); border-radius:3px; }
.op-bar i.warn{ background:var(--amber); }
.op-bar i.fail{ background:var(--red); }
.op-cap{ font-size:10.4px; color:var(--text-3); display:flex; justify-content:space-between; }
.op-note{
  font-size:10.2px; color:var(--text-3); line-height:1.62;
  margin-top:8px; padding-top:7px; border-top:1px dashed #EDF2F6;
}
.op-note b{ color:var(--text-2); font-weight:600; }
.op-warnbox{
  font-size:10.8px; line-height:1.6; color:#8A6412;
  background:#FDF8EE; border:1px solid #F5E4C3; border-radius:6px;
  padding:6px 9px; margin-top:8px;
}

/* ---------- 配载仪面板：读数条 + 三张曲线 ---------- */
.inst-card{ margin-top:14px; }
.inst-top{
  display:grid; grid-template-columns:repeat(8,1fr);
  border-top:1px solid var(--border);
}
.inst-read{
  padding:9px 10px 8px; border-right:1px solid var(--border);
  display:flex; flex-direction:column; gap:2px; min-width:0;
}
.inst-read:last-child{ border-right:none; }
.inst-read span{ font-size:10.5px; color:var(--text-3); white-space:nowrap; }
.inst-read b{
  font-size:15px; font-weight:600; color:var(--navy);
  font-variant-numeric:tabular-nums; letter-spacing:-.2px; white-space:nowrap;
}
.inst-read b i{ font-style:normal; font-size:10px; font-weight:400; color:var(--text-3); margin-left:3px; }
.inst-read b.warn{ color:#8A6412; }
.inst-read b.bad{ color:#9E2F23; }

.inst-charts{
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
  padding:12px 16px 6px; border-top:1px solid var(--border);
}
.inst-col{ display:flex; flex-direction:column; gap:4px; }
.inst-fig{ min-width:0; }
.inst-fig-h{
  display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  font-size:10.5px; color:var(--text-3); margin-bottom:2px;
}
.inst-fig-h b{ font-size:11.5px; font-weight:600; color:var(--text-2); }
.inst-fig-h span{ white-space:nowrap; }
.inst-fig svg{ display:block; }
.inst-note{
  padding:8px 16px 12px; font-size:10.5px; line-height:1.7; color:var(--text-3);
}

/* ---------- 与真实配载单对照 ---------- */
.case-strip{
  border-top:1px solid var(--border);
  padding:10px 16px 12px;
  background:#FBFCFD;
}
.cs-t{ display:flex; align-items:baseline; gap:10px; margin-bottom:6px; }
.cs-t b{ font-size:11.5px; color:var(--text-2); font-weight:600; }
.cs-t span{ font-size:10.5px; color:var(--text-3); }
.cs-row{
  display:grid; grid-template-columns:56px repeat(4,1fr);
  align-items:center; font-size:11.5px; padding:3px 0;
}
.cs-row i{ font-style:normal; font-size:10.5px; color:var(--text-3); }
.cs-row span{ font-variant-numeric:tabular-nums; color:var(--navy); font-weight:500; }
.cs-row span i{ font-style:normal; font-size:9.5px; color:var(--text-3); margin-left:2px; font-weight:400; }
.cs-hd span{ font-size:10px; color:var(--text-3); font-weight:400; }
.cs-diff{ border-top:1px dashed var(--border); margin-top:3px; padding-top:5px; }
.cs-diff span{ font-weight:600; }
.cs-diff span.bad{ color:#9E2F23; }
.cs-note{ font-size:10px; line-height:1.6; color:var(--text-3); margin-top:6px; }

/* 载入真实航次：下拉限宽，别把工具栏撑开 */
#sw-case{ max-width:252px; }

/* ---------- 压载舱面板（点船头三角展开） ---------- */
.plan-bow:hover polygon{ fill:#EAF2F9; stroke:#7FA8CC; stroke-width:1.6; }
.plan-bow:focus{ outline:none; }
.plan-bow:focus polygon{ stroke:#7FA8CC; stroke-width:1.6; }
.bt-panel{
  margin:0 0 4px; padding:10px 14px 12px;
  border:1px solid var(--border); border-top:none;
  border-radius:0 0 8px 8px; background:#FBFCFD;
}
.bt-head{
  display:flex; align-items:baseline; gap:12px; margin-bottom:8px;
}
.bt-head b{ font-size:12px; color:var(--text-2); }
.bt-head span{ font-size:10.5px; color:var(--text-3); }
.bt-head span b{ font-size:11.5px; color:var(--navy); }
.bt-head .btn{ margin-left:auto; }
.btn-xs{ padding:2px 8px; font-size:10.5px; height:22px; line-height:18px; }
.btn-xs[disabled]{ opacity:.45; cursor:default; }
/* 7 列：APT | WBT5P/S | WBT4P/S | WBT3P/S | WBT2P/S | WBT1P/S | FPT
   与上方配载图同向（右为首），P 在上排、S 在下排；APT/FPT 各占一列、跨两行 */
.bt-grid{
  display:grid; grid-template-columns:repeat(7,minmax(0,1fr));
  grid-template-rows:auto auto; gap:6px 8px;
}
.bt-cell{
  display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0;
  padding:4px 7px; border:1px solid var(--border); border-radius:5px; background:#fff;
}
.bt-cell .bt-line{ display:flex; align-items:center; gap:4px; min-width:0; }
.bt-cell .bt-n{ font-size:10px; color:var(--text-3); white-space:nowrap; }
.bt-cell .bt-i{
  width:100%; min-width:0; border:none; outline:none; background:transparent;
  font-size:11.5px; color:var(--navy); font-variant-numeric:tabular-nums; text-align:right;
  font-weight:600;
}
.bt-cell i{
  font-style:normal; font-size:9px; color:var(--text-3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bt-cell i b{ font-weight:600; color:var(--text-2); }
.bt-note{ margin-top:7px; font-size:10px; line-height:1.6; color:var(--text-3); }

/* ---------- 后台：货种 ↔ 货品库 对应体检 ---------- */
.adm-linkchk{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px;
  margin:10px 0 2px; padding:9px 12px; border:1px solid var(--border); border-radius:6px;
  font-size:11.5px; line-height:1.7; color:var(--text-2);
}
.adm-linkchk b{ color:var(--navy); }
.adm-linkchk .dim{ color:var(--text-3); }

/* 分票：货物候选来源提示 */
.pc-hint{
  font-size:10.5px; line-height:1.7; color:var(--text-3);
  padding:7px 2px 0;
}
.pc-hint b{ color:var(--text-2); font-weight:600; }

/* ============================================================
   展览页（Landing）
   ------------------------------------------------------------
   访客未登录时看到的第一屏。整段用 .lp- 前缀 + --lp-* 局部变量，
   与主系统（.nav / .brand / .btn / --navy）完全隔离，互不污染。
   ============================================================ */
body.lp-on{ background:#04121F; color-scheme:dark; }
body.lp-on::before{ content:none; }        /* 主系统没有全局伪元素，这里只是防御性写法 */

.lp-root{
  --lp-ink:#04121F;
  --lp-navy:#08243C;
  --lp-gold:#C8A45C;
  --lp-gold-2:#E3C98F;
  --lp-txt:#E8EFF6;
  --lp-txt-2:#93A6B8;
  --lp-txt-3:#61809A;
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--lp-txt);
  font-size:15px;
  line-height:1.7;
  background:
    radial-gradient(1200px 700px at 78% 8%, rgba(45,143,213,.16), transparent 62%),
    radial-gradient(900px 600px at 12% 82%, rgba(200,164,92,.09), transparent 60%),
    linear-gradient(180deg,#04121F 0%, #08243C 46%, #061A2B 100%);
  background-attachment:fixed;
}
.lp-root::before{
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 82%);
  mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 82%);
}
.lp-wrap{ max-width:1180px; margin:0 auto; padding:0 32px; position:relative; z-index:1; }

/* ---------- 导航 ---------- */
.lp-nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  background:rgba(4,18,31,.62);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.lp-nav-in{
  max-width:1180px; margin:0 auto; padding:0 32px; height:68px;
  display:flex; align-items:center; gap:36px;
}
.lp-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; cursor:pointer; }
.lp-brand svg{ width:32px; height:32px; flex:0 0 32px; }
.lp-brand b{ display:block; font-size:14.5px; font-weight:600; letter-spacing:.4px; }
.lp-brand span{ display:block; font-size:9.5px; letter-spacing:2.1px; color:var(--lp-txt-3); text-transform:uppercase; }
.lp-nav-links{ display:flex; gap:30px; margin-left:auto; }
.lp-nav-links a{
  color:var(--lp-txt-2); text-decoration:none; font-size:13px; letter-spacing:.3px;
  position:relative; padding:4px 0; transition:color .25s; cursor:pointer;
}
.lp-nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--lp-gold); transition:width .3s ease;
}
.lp-nav-links a:hover{ color:var(--lp-txt); }
.lp-nav-links a:hover::after{ width:100%; }
.lp-btn-login{
  margin-left:8px; padding:8px 20px; border-radius:2px; cursor:pointer;
  border:1px solid rgba(200,164,92,.55); background:transparent;
  color:var(--lp-gold-2); font-size:13px; letter-spacing:1.2px; font-family:inherit;
  transition:background .25s, color .25s, border-color .25s;
}
.lp-btn-login:hover{ background:var(--lp-gold); color:#08243C; border-color:var(--lp-gold); }

/* ---------- Hero ---------- */
.lp-hero{
  display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center;
  /* 只写上下：左右留给 .lp-wrap 的 32px，否则简写会把内边距清零、窄屏贴边 */
  padding-top:96px; padding-bottom:84px; min-height:640px;
}
.lp-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:11px; letter-spacing:2.4px; color:var(--lp-gold);
  text-transform:uppercase; margin-bottom:26px;
}
.lp-eyebrow::before{ content:''; width:34px; height:1px; background:var(--lp-gold); opacity:.7; }
.lp-hero h1{
  font-size:clamp(38px,4.4vw,60px); line-height:1.18; font-weight:600;
  letter-spacing:-.5px; margin-bottom:24px; color:var(--lp-txt);
}
.lp-hero h1 em{ font-style:normal; color:var(--lp-gold-2); position:relative; }
.lp-hero h1 em::after{
  content:''; position:absolute; left:0; right:0; bottom:4px; height:8px;
  background:linear-gradient(90deg, rgba(200,164,92,.26), rgba(200,164,92,0));
}
.lp-lead{
  font-size:15.5px; color:var(--lp-txt-2); max-width:520px; line-height:1.95;
  margin-bottom:36px;
}
.lp-actions{ display:flex; gap:14px; align-items:center; }
.lp-btn-primary{
  padding:12px 28px; border-radius:2px; text-decoration:none; font-size:13.5px;
  background:linear-gradient(135deg,var(--lp-gold),#B8934B); color:#08243C;
  font-weight:600; letter-spacing:.8px; cursor:pointer;
  box-shadow:0 10px 28px rgba(200,164,92,.22);
  transition:transform .25s, box-shadow .25s;
}
.lp-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(200,164,92,.32); }
.lp-btn-text{
  padding:12px 4px; color:var(--lp-txt-2); text-decoration:none; font-size:13.5px;
  border-bottom:1px solid transparent; transition:.25s; cursor:pointer;
}
.lp-btn-text:hover{ color:var(--lp-txt); border-color:rgba(255,255,255,.3); }

/* 雷达 */
.lp-radar{ position:relative; width:100%; max-width:400px; margin-left:auto; aspect-ratio:1; }
.lp-radar svg{ width:100%; height:100%; overflow:visible; }
.lp-sweep{ position:absolute; inset:6%; border-radius:50%; overflow:hidden; pointer-events:none; }
.lp-sweep i{
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(45,143,213,.34), rgba(45,143,213,.05) 42deg, transparent 70deg);
  animation:lp-sweep 7s linear infinite;
}
@keyframes lp-sweep{ to{ transform:rotate(360deg); } }
.lp-ring{ fill:none; stroke:rgba(255,255,255,.10); }
.lp-ring-2{ fill:none; stroke:rgba(200,164,92,.20); stroke-dasharray:2 6; }
.lp-cross{ stroke:rgba(255,255,255,.07); }
.lp-blip{ fill:var(--lp-gold-2); }
.lp-blip-halo{ fill:rgba(200,164,92,.16); animation:lp-pulse 3.4s ease-in-out infinite; }
@keyframes lp-pulse{ 0%,100%{ opacity:.25; r:9; } 50%{ opacity:.7; r:14; } }
.lp-radar-label{
  position:absolute; font-size:9.5px; letter-spacing:1.6px; color:var(--lp-txt-3);
  white-space:nowrap; transform:translateX(-50%);
}

/* ---------- 分区 ---------- */
.lp-sec{ padding:76px 0; border-top:1px solid rgba(255,255,255,.06); }
.lp-sec-head{ display:flex; align-items:flex-end; gap:22px; margin-bottom:44px; }
.lp-sec-no{ font-size:11px; letter-spacing:2px; color:var(--lp-gold); padding-bottom:6px; }
.lp-sec-head h2{ font-size:27px; font-weight:600; letter-spacing:.3px; color:var(--lp-txt); }
.lp-sec-head p{ margin-left:auto; font-size:13px; color:var(--lp-txt-3); max-width:340px; text-align:right; }

/* ---------- 四层 ---------- */
.lp-stack{ display:flex; flex-direction:column; gap:1px; background:rgba(255,255,255,.06); }
.lp-layer{
  display:grid; grid-template-columns:70px 150px 1fr; align-items:center; gap:22px;
  padding:24px 26px; background:#071E33; position:relative;
  transition:background .3s, padding-left .3s;
}
.lp-layer::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:var(--lp-gold); transform:scaleY(0); transform-origin:top; transition:transform .35s ease;
}
.lp-layer:hover{ background:#0A2842; }
.lp-layer:hover::before{ transform:scaleY(1); }
.lp-layer .no{ font-size:11px; letter-spacing:1.6px; color:var(--lp-txt-3); }
.lp-layer b{ font-size:15px; font-weight:600; letter-spacing:.6px; color:var(--lp-txt); }
.lp-layer span{ font-size:12.5px; color:var(--lp-txt-2); letter-spacing:.2px; }

/* ---------- 四个系统 ---------- */
.lp-sys-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.lp-sys{
  position:relative; padding:32px 30px 28px; background:#072034;
  border:1px solid rgba(255,255,255,.07); overflow:hidden;
  transition:transform .4s cubic-bezier(.22,.61,.36,1), border-color .4s, background .4s;
}
.lp-sys::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(420px 220px at var(--mx,50%) var(--my,0%), rgba(45,143,213,.16), transparent 70%);
  opacity:0; transition:opacity .4s; pointer-events:none;
}
.lp-sys:hover{ transform:translateY(-4px); border-color:rgba(200,164,92,.34); background:#082740; }
.lp-sys:hover::after{ opacity:1; }
.lp-sys-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.lp-sys-no{ font-size:11px; letter-spacing:2px; color:var(--lp-gold); }
.lp-sys-ico{ width:26px; height:26px; stroke:var(--lp-gold-2); fill:none; stroke-width:1.2; opacity:.85; }
.lp-sys h3{ font-size:18px; font-weight:600; margin-bottom:10px; letter-spacing:.4px; color:var(--lp-txt); }
.lp-sys p{ font-size:13px; color:var(--lp-txt-2); line-height:1.85; min-height:48px; }
.lp-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.lp-tags li{
  font-size:10.5px; color:var(--lp-txt-3); padding:3px 9px;
  border:1px solid rgba(255,255,255,.09); border-radius:2px; letter-spacing:.4px;
}

/* ---------- 价值 ---------- */
.lp-values{ display:grid; grid-template-columns:repeat(3,1fr); gap:34px; }
.lp-val{ padding-top:22px; border-top:1px solid rgba(255,255,255,.1); }
.lp-val b{ display:block; font-size:15px; margin-bottom:9px; color:var(--lp-gold-2); font-weight:600; }
.lp-val p{ font-size:12.8px; color:var(--lp-txt-2); line-height:1.9; }
.lp-quote{
  margin-top:64px; padding:40px 44px; border-left:2px solid var(--lp-gold);
  background:linear-gradient(90deg, rgba(200,164,92,.07), transparent 70%);
}
.lp-quote p{ font-size:17px; line-height:2; color:var(--lp-txt); max-width:820px; }
.lp-quote span{ display:block; margin-top:16px; font-size:11.5px; letter-spacing:1.6px; color:var(--lp-txt-3); }

/* ---------- 页脚 ---------- */
.lp-foot{
  border-top:1px solid rgba(255,255,255,.07); padding:34px 0 46px;
  display:flex; align-items:center; gap:16px; font-size:11.5px; color:var(--lp-txt-3);
}
.lp-foot .sep{ width:1px; height:12px; background:rgba(255,255,255,.14); }
.lp-foot .right{ margin-left:auto; letter-spacing:1px; }

/* ---------- 登录弹窗 ---------- */
.lp-mask{
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center; padding:24px;
  background:rgba(2,10,18,.72); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.lp-mask.on{ display:flex; animation:lp-fade .25s ease; }
@keyframes lp-fade{ from{ opacity:0; } }
.lp-dlg{
  width:100%; max-width:396px; background:#082032; border:1px solid rgba(200,164,92,.26);
  padding:36px 34px 30px; position:relative; animation:lp-rise .4s cubic-bezier(.22,.61,.36,1);
}
@keyframes lp-rise{ from{ opacity:0; transform:translateY(14px); } }
.lp-dlg h3{ font-size:19px; font-weight:600; margin-bottom:6px; color:var(--lp-txt); }
.lp-dlg .sub{ font-size:12px; color:var(--lp-txt-3); margin-bottom:26px; line-height:1.7; }
.lp-field{ margin-bottom:16px; }
.lp-field label{ display:block; font-size:11px; letter-spacing:1px; color:var(--lp-txt-3); margin-bottom:7px; }
.lp-field input{
  width:100%; padding:11px 13px; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12); color:var(--lp-txt);
  font-size:13.5px; font-family:inherit; outline:none; transition:border-color .25s;
}
.lp-field input:focus{ border-color:rgba(200,164,92,.6); }
.lp-login-go{
  width:100%; margin-top:8px; padding:12px; cursor:pointer; font-family:inherit;
  background:linear-gradient(135deg,var(--lp-gold),#B8934B); color:#08243C;
  border:none; font-size:13.5px; font-weight:600; letter-spacing:1px;
  transition:opacity .25s;
}
.lp-login-go:hover{ opacity:.9; }
.lp-login-go[disabled]{ opacity:.6; cursor:default; }
.lp-dlg .hint{ margin-top:16px; font-size:10.5px; line-height:1.8; color:var(--lp-txt-3); }
.lp-dlg .x{
  position:absolute; right:16px; top:14px; background:none; border:none; cursor:pointer;
  color:var(--lp-txt-3); font-size:20px; line-height:1; font-family:inherit;
}
.lp-dlg .x:hover{ color:var(--lp-txt); }
.lp-dlg .err{ color:#E08A7F; font-size:11.5px; margin-top:10px; display:none; }

/* ---------- 动效 ---------- */
.lp-reveal{
  opacity:0; transform:translateY(20px);
  transition:opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.lp-reveal.in{ opacity:1; transform:none; }
.lp-d1{ transition-delay:.08s; } .lp-d2{ transition-delay:.16s; } .lp-d3{ transition-delay:.24s; }
.lp-root{ transition:opacity .26s ease; }

/* 锚点定位时给 sticky 导航留出高度，否则标题被压在导航下面 */
.lp-sec{ scroll-margin-top:78px; }

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .lp-hero{ grid-template-columns:1fr; padding-top:64px; padding-bottom:56px; min-height:0; }
  .lp-radar{ max-width:300px; margin:16px auto 0; }
  .lp-sys-grid{ grid-template-columns:1fr; }
  .lp-values{ grid-template-columns:1fr; gap:24px; }
  .lp-nav-links{ display:none; }
  .lp-layer{ grid-template-columns:44px 1fr; row-gap:4px; }
  .lp-layer span{ grid-column:2; }
  .lp-sec-head{ flex-wrap:wrap; }
  .lp-sec-head p{ margin-left:0; text-align:left; }
}
@media (max-width:600px){
  .lp-wrap{ padding:0 20px; }
  .lp-nav-in{ padding:0 16px; gap:10px; }
  .lp-brand{ flex:1 1 auto; min-width:0; gap:9px; }
  .lp-brand svg{ width:26px; height:26px; flex:0 0 26px; }
  /* 品牌名在窄屏必须单行省略：换行会顶破 68px 的导航高度 */
  .lp-brand b{ font-size:12.5px; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .lp-brand span{ display:none; }
  .lp-btn-login{ flex:0 0 auto; white-space:nowrap; padding:7px 14px; font-size:12px; letter-spacing:.8px; }
  .lp-quote{ padding:28px 24px; }
  .lp-quote p{ font-size:15px; }
  .lp-sys{ padding:26px 22px 24px; }
  .lp-layer{ padding:18px 18px; gap:12px; }
}


/* ---------- 侧栏底部：登录账号与退出 ---------- */
.sidebar-user{
  padding:10px 14px 13px;
  border-top:1px solid rgba(255,255,255,.07);
  display:flex; align-items:center; gap:8px;
}
.sidebar-user .su-mail{
  flex:1 1 auto; min-width:0;
  font-size:10.5px; color:#8FA6BC; letter-spacing:.2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.sidebar-user .su-out{
  flex:0 0 auto; padding:3px 10px; border-radius:3px; cursor:pointer;
  font-family:inherit; font-size:10.5px; letter-spacing:.6px;
  background:transparent; color:#C7D5E2; border:1px solid rgba(255,255,255,.16);
  transition:background .2s, border-color .2s, color .2s;
}
.sidebar-user .su-out:hover{
  background:rgba(200,164,92,.16); border-color:rgba(200,164,92,.5); color:#E3C98F;
}
