/* =====================================================================
   页面级样式（登录 / 驾驶舱 / 资产总览 / 资产详情）
   ===================================================================== */

/* ---------- P01 登录 ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 60fr 40fr; position: relative; }
.login-brand {
  position: relative; overflow: hidden;
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000, transparent 75%);
}
.login-net { position: absolute; inset: 0; opacity: .85; pointer-events: none; }
.login-net .node-dot { fill: #00E5FF; }
.login-net .node-ring { fill: none; stroke: rgba(0,229,255,.3); stroke-width: .8; }
.login-net .edge { stroke: rgba(0,229,255,.2); stroke-width: .8; fill: none; }
.login-net .pulse { fill: #7B61FF; }

.login-brand-inner { position: relative; z-index: 1; }
.login-brand h1 { font-size: 40px; line-height: 1.34; letter-spacing: .8px; max-width: 15em; margin-bottom: 20px; }
.login-brand h1 em { font-style: normal; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-brand .lede { font-size: 14px; color: var(--text-sub); max-width: 34em; line-height: 1.85; }
.login-caps { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.login-cap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(12,18,29,.7); backdrop-filter: blur(8px);
  font-size: 12.5px; color: var(--text-sub);
}
.login-cap .ic { width: 15px; height: 15px; color: var(--cyan); }
.login-foot { position: relative; z-index: 1; font-size: 11.5px; color: var(--text-weak); font-family: var(--font-mono); display: flex; gap: 20px; }

.login-panel {
  padding: 56px 52px; display: flex; flex-direction: column; justify-content: center;
  background: rgba(9,14,23,.6);
}
.login-card { width: 100%; max-width: 400px; margin: 0 auto; }
.login-card h2 { font-size: 22px; margin-bottom: 6px; }
.login-card .sub { font-size: 12.5px; color: var(--text-sub); margin-bottom: 26px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-row { display: flex; gap: 10px; }
.login-row .field { flex: 1; }
.code-btn { height: 36px; padding: 0 14px; flex: none; }
.tab-switch { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); margin-bottom: 22px; }
.tab-switch button {
  flex: 1; height: 30px; border: none; background: transparent;
  color: var(--text-sub); font-size: 13px; border-radius: var(--r-sm);
  transition: background .16s, color .16s;
}
.tab-switch button.on { background: rgba(0,229,255,.1); color: var(--cyan); }
.login-tip {
  margin-top: 18px; padding: 11px 13px; border-radius: var(--r-md);
  border: 1px dashed var(--border); background: rgba(255,255,255,.015);
  font-size: 11.5px; color: var(--text-weak); line-height: 1.7;
}
.login-tip b { color: var(--text-sub); font-family: var(--font-mono); }

/* 实名核验流程 */
.kyc-wrap { display: none; }
.kyc-wrap.on { display: block; }
.kyc-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.kyc-step { flex: 1; font-size: 11px; color: var(--text-weak); }
.kyc-step i { display: block; height: 3px; border-radius: 2px; background: var(--border); margin-bottom: 7px; }
.kyc-step.done i { background: var(--cyan); }
.kyc-step.on i { background: var(--grad-main); }
.kyc-step.on { color: var(--text); }

.drop-zone {
  border: 1px dashed var(--border); border-radius: var(--r-lg);
  padding: 30px 20px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.012);
  transition: border-color .18s, background .18s;
}
.drop-zone:hover { border-color: var(--border-cyan); background: rgba(0,229,255,.04); }
.drop-zone .ic { width: 30px; height: 30px; color: var(--text-weak); margin-bottom: 10px; }
.drop-zone b { display: block; font-size: 13px; margin-bottom: 4px; }
.drop-zone p { font-size: 11.5px; color: var(--text-weak); }

.liveness-frame {
  width: 172px; height: 172px; margin: 6px auto 16px; position: relative;
}
.liveness-frame .ring-outer {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,229,255,.28);
}
.liveness-frame .cam {
  position: absolute; inset: 12px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #16324a 0%, #0a1420 70%);
  border: 1px solid var(--border);
}
.liveness-frame .scanline {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan); top: 14px; border-radius: 2px;
  animation: scanY 2.4s ease-in-out infinite;
}
.liveness-frame svg.progress { position: absolute; inset: -4px; transform: rotate(-90deg); }
.liveness-frame svg.progress circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.liveness-frame svg.progress .bgc { stroke: rgba(255,255,255,.06); }
.liveness-frame svg.progress .fg { stroke: url(#lg); stroke-dasharray: 540; stroke-dashoffset: 540; transition: stroke-dashoffset .4s linear; }
.kyc-hint { text-align: center; font-size: 12.5px; color: var(--text-sub); margin-bottom: 6px; }
.kyc-metrics { display: flex; gap: 8px; margin-top: 16px; }
.kyc-metric { flex: 1; padding: 10px; border: 1px solid var(--border-soft); border-radius: var(--r-md); text-align: center; background: rgba(255,255,255,.014); }
.kyc-metric em { font-style: normal; display: block; font-size: 10.5px; color: var(--text-weak); margin-bottom: 5px; }
.kyc-metric b { font-family: var(--font-mono); font-size: 15px; }

@keyframes scanY { 0%, 100% { top: 16px; opacity: .3; } 50% { top: calc(100% - 20px); opacity: 1; } }

.result-badge {
  width: 68px; height: 68px; margin: 10px auto 18px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: rgba(46,230,168,.1); border: 1px solid rgba(46,230,168,.4);
  color: var(--success);
}
.result-badge .ic { width: 30px; height: 30px; }
.result-badge::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(46,230,168,.4);
  animation: pulseRing 2.4s ease-out 1;
}

/* ---------- 驾驶舱 ---------- */
.mini-trend svg { display: block; width: 100%; height: auto; }

/* 权属状态总览：块内流程节点标签与数字统一纯白 */
#ownershipFlow .flow-node em { color: #fff; }
#ownershipFlow .flow-node b { color: #fff; }

.exp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border-soft);
}
.exp-row:last-child { border-bottom: none; }
.exp-main { flex: 1; min-width: 0; }
.exp-main b { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-main em { font-style: normal; font-size: 11px; color: var(--text-weak); }
.exp-days { font-family: var(--font-mono); font-size: 12px; text-align: right; flex: none; }

.todo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
  cursor: pointer; transition: padding-left .16s, color .16s;
}
.todo-row:last-child { border-bottom: none; }
.todo-row:hover { padding-left: 6px; }
.todo-row .todo-ic {
  width: 30px; height: 30px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.todo-row .todo-ic .ic { width: 15px; height: 15px; }
.todo-row .todo-main { flex: 1; min-width: 0; }
.todo-row .todo-main b { display: block; font-size: 12.5px; font-weight: 500; }
.todo-row .todo-main em { font-style: normal; font-size: 11px; color: var(--text-weak); }
.todo-count { font-family: var(--font-mono); font-size: 16px; font-weight: 600; }

/* ---------- 资产总览 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .select, .filter-bar .input { width: auto; min-width: 132px; height: 34px; font-size: 12.5px; }
.filter-bar .input.search { padding-left: 32px; min-width: 220px; }
.filter-search { position: relative; }
.filter-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-weak); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

.select-bar {
  position: fixed; left: 50%; bottom: calc(var(--statusbar-h) + 18px);
  transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-radius: var(--r-xl);
  background: var(--surface-2); border: 1px solid var(--border-cyan);
  box-shadow: var(--sh-lg), var(--glow);
  z-index: 50; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.select-bar.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.select-bar .sel-count { font-size: 12.5px; color: var(--text-sub); }
.select-bar .sel-count b { color: var(--cyan); font-family: var(--font-mono); }

.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.asset-card { padding: 0; overflow: hidden; cursor: pointer; }
.asset-card .ac-thumb { position: relative; height: 132px; border-bottom: 1px solid var(--border-soft); }
.asset-card .ac-thumb .thumb-svg { width: 100%; height: 100%; display: block; }
.asset-card .ac-status {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 5px;
}
.asset-card .ac-body { padding: 13px 14px 15px; }
.asset-card .ac-body b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card .ac-body .ac-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-weak); }
.asset-card .ac-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); font-size: 11px; color: var(--text-weak); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-sub); }
.pager-btns { display: flex; gap: 5px; }
.pager-btns button {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-sub); font-size: 12px;
  font-family: var(--font-mono);
  transition: all .14s;
}
.pager-btns button:hover:not(:disabled) { border-color: var(--border-cyan); color: var(--cyan); }
.pager-btns button.on { background: rgba(0,229,255,.12); border-color: var(--border-cyan); color: var(--cyan); }
.pager-btns button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- 资产详情 ---------- */
.detail-head { padding: 0; overflow: hidden; margin-bottom: 18px; }
.dh-top { display: grid; grid-template-columns: 260px 1fr auto; gap: 22px; padding: 20px; align-items: center; }
.dh-preview {
  position: relative; height: 158px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: #080d16;
}
.dh-preview .thumb-svg { width: 100%; height: 100%; display: block; }
.dh-preview .dh-badge {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; gap: 6px;
}
.dh-title h1 { font-size: 21px; margin-bottom: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-sub); margin-bottom: 14px; }
.dh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dh-meta .ic { width: 14px; height: 14px; color: var(--text-weak); }
.dh-owner { display: flex; align-items: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.dh-flow { display: flex; align-items: center; gap: 6px; }
.dh-flow .st {
  font-size: 11px; padding: 4px 9px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-weak);
  background: rgba(255,255,255,.015); white-space: nowrap;
}
.dh-flow .st.done { color: var(--text-sub); border-color: #26374f; }
.dh-flow .st.now { color: var(--cyan); border-color: var(--border-cyan); background: rgba(0,229,255,.1); animation: pulseRing 2.4s ease-out infinite; }
.dh-flow .ic { width: 13px; height: 13px; color: var(--text-weak); }
.dh-quick { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-soft); background: rgba(255,255,255,.012); flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 18px; align-items: start; }
.side-card + .side-card { margin-top: 18px; }

.tl-file {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--cyan);
  border: 1px solid var(--border-cyan); border-radius: var(--r-sm);
  padding: 2px 8px; background: rgba(0,229,255,.06);
}
.tl-file .ic { width: 13px; height: 13px; }

.dip-card, .prop-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; background: rgba(255,255,255,.015);
}
.dip-card { border-color: rgba(123,97,255,.34); }
.prop-card { border-color: var(--border-cyan); }
.dip-card .dc-head, .prop-card .dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dip-card .dc-head h4, .prop-card .dc-head h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; }

.lic-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 14px; padding: 13px 0; border-bottom: 1px solid var(--border-soft);
}
.lic-row:last-child { border-bottom: none; }
.lic-row .lic-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lic-row .lic-top b { font-size: 13px; font-weight: 500; }
.lic-row .lic-scope { font-size: 11.5px; color: var(--text-weak); }
.lic-row .lic-rev { text-align: right; }
.lic-row .lic-rev b { display: block; font-family: var(--font-mono); font-size: 15px; color: var(--success); }
.lic-row .lic-rev em { font-style: normal; font-size: 10.5px; color: var(--text-weak); }

.case-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.case-row:last-child { border-bottom: none; }

.wave-preview { display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 2px; }

.risk-card { border-color: rgba(255,176,32,.36); background: rgba(255,176,32,.05); }
.risk-card.danger { border-color: rgba(255,77,106,.4); background: rgba(255,77,106,.05); }
.risk-card .rk-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.risk-card .rk-head .ic { width: 17px; height: 17px; color: var(--warn); }
.risk-card.danger .rk-head .ic { color: var(--danger); }
.risk-card p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; margin-bottom: 12px; }

@media (max-width: 1440px) {
  .asset-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .dh-top { grid-template-columns: 200px 1fr; }
  .dh-flow { grid-column: 1 / -1; }
}
@media (max-width: 1200px) {
  .reg-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 1100px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dh-flow { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 720px) {
  .asset-grid { grid-template-columns: 1fr; }
  .dh-top { grid-template-columns: 1fr; }
  .login-panel { padding: 36px 22px; }
}
