/* ==========================================================================
   Portals Enterprise Design System — 正统大型政企与云厂商商业控制台规范
   对标基准：阿里云软件采购选配台 / 华为云云商店 / 字节 Arco Design Pro / 蚂蚁 Ant Design Pro 5
   适用范围：官方软件授权选配与采购中心 (/store) & 政企客户专属交付控制台 (/customer)
   ========================================================================== */

:root {
  /* 1. 政企全局深海蓝顶栏与横幅色 */
  --p-header-bg: #091936;
  --p-header-border: rgba(255, 255, 255, 0.1);
  --p-banner-bg: #0B1F44;

  /* 2. 正统企业科技蓝主色体系 (严禁用死黑做主按钮) */
  --p-primary: #1677FF;
  --p-primary-hover: #4096FF;
  --p-primary-active: #0958D9;
  --p-primary-soft: #E6F4FF;
  --p-primary-tint: #F0F6FF;
  --p-primary-border: #91CAFF;
  --p-focus-ring: 0 0 0 2px rgba(22, 119, 255, 0.16);

  /* 3. 中台画布与容器背景色 */
  --p-canvas: #F0F2F5;
  --p-surface: #FFFFFF;
  --p-th-bg: #F7F8FA;
  --p-subtle: #F7F8FA;
  --p-muted-bg: #FAFBFD;
  --p-well: #F2F3F5;
  --p-row-hover: #F2F7FF;

  /* 4. 硬朗清晰的分割线体系 */
  --p-border: #E5E6EB;
  --p-border-soft: #F2F3F5;
  --p-border-strong: #C9CDD4;

  /* 5. Arco / AntD 标准四级政企文字色 */
  --p-ink-1: #1D2129; /* 一级标题与核心正文 */
  --p-ink-2: #4E5969; /* 二级常规正文与表格内容 */
  --p-ink-3: #86909C; /* 三级表头说明与辅助文字 */
  --p-ink-4: #86909C; /* 辅助弱化注释 */

  /* 6. 标准政企语义色 */
  --p-ok: #00B42A;
  --p-ok-soft: #E8FFEA;
  --p-ok-border: #AFF0B5;

  --p-warn: #FF7D00;
  --p-warn-soft: #FFF7E8;
  --p-warn-border: #FFE4BA;

  --p-danger: #F53F3F;
  --p-danger-soft: #FFECE8;
  --p-danger-border: #FDCDC5;

  /* 7. 克制沉稳的企业级阴影 */
  --p-shadow-card: 0 1px 3px rgba(0, 21, 41, 0.04);
  --p-shadow-hover: 0 3px 10px rgba(0, 21, 41, 0.07);
  --p-shadow-modal: 0 12px 32px rgba(0, 21, 41, 0.18);

  /* 8. 严格圆角规范：控件 4px，面板卡片 6px（严禁大圆角与胶囊） */
  --p-r-ctrl: 4px;
  --p-r-card: 6px;

  /* 9. 企业级字体栈 */
  --p-font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Inter", sans-serif;
  --p-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--p-canvas);
  color: var(--p-ink-2);
  font-family: var(--p-font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全局数字等宽对齐 */
.tnum, .mono, .price-val, .stat-val, table td, .p-nav-count, .sider-badge {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--p-font-mono);
  letter-spacing: -0.01em;
}

a {
  color: var(--p-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--p-primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 线性 SVG 矢量图标对齐 */
.p-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   1. 全局深海蓝政企顶部主导航栏 (#091936，固定高度 52px)
   ========================================================================== */
.p-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--p-canvas);
}

.p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background-color: var(--p-header-bg);
  border-bottom: 1px solid var(--p-header-border);
  box-shadow: 0 1px 4px rgba(0, 12, 28, 0.24);
  color: #FFFFFF;
}

.p-header-inner {
  max-width: 1320px;
  height: 52px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-header.fluid .p-header-inner {
  max-width: none;
  padding: 0 18px;
}

.p-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  min-width: 0;
}

.p-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.p-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--p-r-ctrl);
  background: var(--p-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.p-brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.p-brand-divider {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.p-brand-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--p-r-ctrl);
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(22, 119, 255, 0.22);
  border: 1px solid rgba(145, 202, 255, 0.35);
  color: #BAE0FF;
}

/* 顶栏模块导航项（严禁用胶囊，采用 52px 等高 + 底部 3px solid #1677FF 高亮条） */
.p-top-nav {
  display: flex;
  align-items: stretch;
  height: 52px;
  gap: 4px;
}

.p-top-nav-item {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 16px;
  height: 52px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.p-top-nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.p-top-nav-item.active {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(22, 119, 255, 0.15);
}

.p-top-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--p-primary);
}

.p-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--p-r-ctrl);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.p-top-nav-item.active .p-nav-count {
  background: var(--p-primary);
  color: #FFFFFF;
}

.p-nav-count.alert {
  background: var(--p-warn);
  color: #FFFFFF;
}

.p-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.p-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.76);
}

.p-header-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--p-r-ctrl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p-header-link:hover {
  color: #FFFFFF;
  border-color: rgba(145, 202, 255, 0.55);
  background: rgba(22, 119, 255, 0.22);
}

/* 商城主内容容器 */
.p-main {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* 底部版权栏 */
.p-footer {
  border-top: 1px solid var(--p-border);
  background: var(--p-surface);
  padding: 14px 20px;
  font-size: 12px;
  color: var(--p-ink-3);
}

.p-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. 正统企业级面板、3px×14px 蓝色竖条锚点、按钮、表单与徽章
   ========================================================================== */
.p-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-card);
  box-shadow: var(--p-shadow-card);
}

.p-card-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--p-border-soft);
  background: #FFFFFF;
  border-radius: var(--p-r-card) var(--p-r-card) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 经典政企中台视觉锚点：面板标题左侧统一配 3px × 14px #1677FF 蓝色竖条 */
.p-card-title,
.p-sec-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--p-ink-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.p-card-title::before,
.p-sec-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background-color: var(--p-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

.p-card-sub {
  font-size: 12px;
  color: var(--p-ink-3);
  margin-top: 3px;
  padding-left: 11px;
}

.p-card-body {
  padding: 18px;
}

/* 按钮体系（严格 4px 圆角，主按钮正统企业蓝 #1677FF） */
.p-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--p-r-ctrl);
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface);
  color: var(--p-ink-1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p-btn:hover:not(:disabled) {
  color: var(--p-primary);
  border-color: var(--p-primary);
  background: var(--p-surface);
}

.p-btn:active:not(:disabled) {
  color: var(--p-primary-active);
  border-color: var(--p-primary-active);
}

.p-btn:focus-visible {
  outline: none;
  box-shadow: var(--p-focus-ring);
}

.p-btn:disabled,
.p-btn.is-loading {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.p-btn.is-loading {
  cursor: wait;
}

@keyframes pBtnSpin {
  to { transform: rotate(360deg); }
}

.p-btn.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.75px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pBtnSpin 0.65s linear infinite;
  flex-shrink: 0;
}

.p-btn.primary {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(22, 119, 255, 0.18);
}

.p-btn.primary:hover:not(:disabled) {
  background: var(--p-primary-hover);
  border-color: var(--p-primary-hover);
  color: #FFFFFF;
}

.p-btn.primary:active:not(:disabled) {
  background: var(--p-primary-active);
  border-color: var(--p-primary-active);
  color: #FFFFFF;
}

.p-btn.accent {
  background: #0f2957;
  border-color: #0f2957;
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 41, 87, 0.18);
}

.p-btn.accent:hover:not(:disabled) {
  background: #173b7a;
  border-color: #173b7a;
  color: #FFFFFF;
}

.p-btn.danger,
.p-btn.danger-fill {
  background: var(--p-danger);
  border-color: var(--p-danger);
  color: #FFFFFF;
  font-weight: 500;
}

.p-btn.danger:hover:not(:disabled),
.p-btn.danger-fill:hover:not(:disabled) {
  filter: brightness(1.08);
  color: #FFFFFF;
}

/* 浅蓝描边企业操作按钮（表格操作列常用） */
.p-btn.outline-primary {
  background: var(--p-primary-soft);
  border-color: var(--p-primary-border);
  color: var(--p-primary);
}

.p-btn.outline-primary:hover:not(:disabled) {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
}

.p-btn.ok {
  background: var(--p-ok);
  border-color: var(--p-ok);
  color: #FFFFFF;
}

.p-btn.ok:hover:not(:disabled) {
  filter: brightness(1.06);
  color: #FFFFFF;
}

.p-btn.danger-soft {
  background: var(--p-danger-soft);
  border-color: var(--p-danger-border);
  color: var(--p-danger);
}

.p-btn.danger-soft:hover:not(:disabled) {
  background: #ffece8;
  border-color: var(--p-danger);
  color: #cf1322;
}

.p-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--p-ink-2);
}

.p-btn.ghost:hover:not(:disabled) {
  background: var(--p-well);
  border-color: transparent;
  color: var(--p-ink-1);
}

.p-btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--p-r-ctrl);
}

.p-btn.lg {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--p-r-ctrl);
}

.p-btn.block {
  width: 100%;
}

/* 一键复制微交互按钮 */
.p-copy-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--p-r-ctrl);
  border: 1px solid var(--p-border);
  background: var(--p-subtle);
  color: var(--p-ink-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p-copy-btn:hover {
  border-color: var(--p-primary-border);
  background: var(--p-primary-soft);
  color: var(--p-primary);
}

.p-copy-btn.copied,
.p-copy-btn.is-copied,
.copy-btn.is-copied {
  border-color: var(--p-ok-border);
  background: var(--p-ok-soft);
  color: var(--p-ok);
}

/* 语义标签徽章（严格 4px 小圆角） */
.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: var(--p-r-ctrl);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
  border: 1px solid var(--p-border);
  background: var(--p-subtle);
  color: var(--p-ink-2);
}

.p-badge.accent,
.p-badge.primary {
  background: var(--p-primary-soft);
  border-color: var(--p-primary-border);
  color: var(--p-primary);
}

.p-badge.solid-blue {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
}

.p-badge.ok {
  background: var(--p-ok-soft);
  border-color: var(--p-ok-border);
  color: var(--p-ok);
}

.p-badge.warn {
  background: var(--p-warn-soft);
  border-color: var(--p-warn-border);
  color: var(--p-warn);
}

.p-badge.danger {
  background: var(--p-danger-soft);
  border-color: var(--p-danger-border);
  color: var(--p-danger);
}

.p-badge.navy {
  background: #E8EEF7;
  border-color: #B8C7E0;
  color: #091936;
}

/* 表单输入控件（全局基础表单控件圆角描边与焦点环统一规范） */
.p-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.p-field .xw-select,
.p-field .xw-dt {
  width: 100%;
}

.p-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p-ink-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.p-grid-2 > .p-field > .p-label,
.p-grid-3 > .p-field > .p-label,
.p-grid-iq-prod > .p-field > .p-label {
  white-space: nowrap;
  min-height: 20px;
  gap: 6px;
}

.p-label-opt {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--p-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
select,
textarea,
.p-input,
.p-select,
.p-textarea {
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--p-surface);
  color: var(--p-ink-1);
  font-size: 13px;
  padding: 6px 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.p-input,
.p-select,
.p-textarea {
  width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
select,
.p-input:not(textarea),
.p-select {
  height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
}

select,
.p-select {
  min-height: 36px;
}

textarea,
textarea.p-input,
.p-textarea {
  height: auto;
  min-height: 78px;
  padding: 8px 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-y: auto;
  text-overflow: clip;
  resize: vertical;
  max-width: 100%;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder,
.p-input::placeholder,
.p-textarea::placeholder {
  color: #94a3b8;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled),
.p-input:hover:not(:disabled),
.p-select:hover:not(:disabled),
.p-textarea:hover:not(:disabled) {
  border-color: #94a3b8;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):focus,
select:focus,
textarea:focus,
.p-input:focus,
.p-select:focus,
.p-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.p-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.p-input-wrap .p-ico-prefix {
  position: absolute;
  left: 10px;
  color: var(--p-ink-3);
  pointer-events: none;
}

.p-input-wrap .p-input,
.p-input-wrap > input.p-input:not([type="checkbox"]):not([type="radio"]) {
  padding-left: 34px !important;
}

/* 快捷标签芯片（特惠码 / 席位预设 / 水印变量，严格 4px 圆角） */
.coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.coupon-chip {
  appearance: none;
  border: 1px dashed var(--p-border-strong);
  background: var(--p-subtle);
  color: var(--p-ink-2);
  padding: 3px 9px;
  border-radius: var(--p-r-ctrl);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.coupon-chip:hover {
  border-style: solid;
  border-color: var(--p-primary);
  color: var(--p-primary);
  background: var(--p-primary-soft);
}

.coupon-chip.active {
  border-style: solid;
  border-color: var(--p-primary);
  background: var(--p-primary-soft);
  color: var(--p-primary);
  font-weight: 600;
}

/* ==========================================================================
   3. 高密度政企数据表 (Data Table)
   ========================================================================== */
.p-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.p-table th {
  text-align: left;
  padding: 9px 12px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--p-border);
  color: var(--p-ink-1);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.p-table td {
  padding: 9px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--p-border);
  color: var(--p-ink-2);
  vertical-align: middle;
}

.p-table tbody tr:last-child td {
  border-bottom: none;
}

.p-table tbody tr:hover td {
  background: #F5F8FF;
}

/* 最右侧操作列固定于视口右边缘，防止 1100px–1440px 视口下按钮被裁剪出屏 */
.p-table thead tr th.r:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #FAFBFD;
  white-space: nowrap;
  box-shadow: -4px 0 8px -4px rgba(15, 23, 42, 0.08);
}

.p-table tbody tr td.r:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #FFFFFF;
  white-space: nowrap;
  box-shadow: -4px 0 8px -4px rgba(15, 23, 42, 0.08);
}

.p-table tbody tr:hover td.r:last-child {
  background: #F5F8FF;
}

/* 带纵向边框的参数对照表 */
.p-table.bordered {
  border: 1px solid var(--p-border);
}

.p-table.bordered th,
.p-table.bordered td {
  border: 1px solid var(--p-border);
}

.p-table th.col-highlight {
  background: #EBF3FF;
  color: var(--p-primary);
}

.p-table td.col-highlight {
  background: #F7FAFF;
  color: var(--p-ink-1);
  font-weight: 500;
}

.p-table .r {
  text-align: right;
}

.p-table .c {
  text-align: center;
}

.p-table .nowrap {
  white-space: nowrap;
}

/* 通用网格辅助（同行单行表单控件强制底部基线齐平） */
.p-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.p-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.p-grid-2:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field,
.p-grid-3:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field {
  align-self: stretch;
}

.p-grid-2:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
.p-grid-2:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > .xw-select,
.p-grid-2:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > .xw-dt,
.p-grid-2:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > select:not(.xw-native-sr),
.p-grid-3:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
.p-grid-3:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > .xw-select,
.p-grid-3:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > .xw-dt,
.p-grid-3:not(:has(textarea)):not(:has(.coupon-chips)):not(:has(> .p-field > div:not(.xw-dt):last-child)) > .p-field > select:not(.xw-native-sr) {
  margin-top: auto;
}

/* ==========================================================================
   4. /store 专属：阿里云 / 华为云式软件授权选配与采购中心
   ========================================================================== */

/* 顶部紧凑庄重的深蓝政企横幅条（高约 96px，#0B1F44 科技网格底纹） */
.store-gov-banner {
  background-color: var(--p-banner-bg);
  background-image:
    linear-gradient(90deg, #091936 0%, #0D2654 55%, #0B1F44 100%),
    linear-gradient(to right, rgba(145, 202, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(145, 202, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  background-blend-mode: normal, screen, screen;
  border-bottom: 1px solid #16336B;
  color: #FFFFFF;
}

.store-gov-banner-inner {
  max-width: 1320px;
  min-height: 96px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-banner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-banner-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.store-banner-promises {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.store-promise-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.store-promise-item .p-ico {
  color: #4096FF;
}

.store-banner-right {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(9, 25, 54, 0.58);
  border: 1px solid rgba(145, 202, 255, 0.22);
  border-radius: var(--p-r-card);
  flex-shrink: 0;
}

/* 左 70% 结构化选配面板 + 右 30% 正式配置结算单 */
.configurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

/* 分段式企业选配行（每行左侧 104px 加粗配置项标签） */
.cfg-section-list {
  display: flex;
  flex-direction: column;
}

.cfg-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px;
  border-bottom: 1px solid var(--p-border-soft);
  align-items: start;
}

.cfg-row:last-child {
  border-bottom: none;
}

.cfg-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink-1);
  padding-top: 6px;
  line-height: 1.4;
}

.cfg-label-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--p-ink-3);
  margin-top: 2px;
}

.cfg-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 阿里云 / 华为云经典选配卡（选中态 1.5px solid #1677FF + #F0F6FF 浅蓝底 + 右下角蓝色三角对勾角标） */
.ecs-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.ecs-sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ecs-card {
  position: relative;
  appearance: none;
  text-align: left;
  width: 100%;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
  padding: 14px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ecs-card:hover {
  border-color: var(--p-primary-border);
  box-shadow: var(--p-shadow-hover);
}

.ecs-card.selected {
  border: 1.5px solid var(--p-primary);
  background-color: var(--p-primary-tint);
  padding: 13.5px 15.5px;
}

/* 右下角蓝色直角三角形对勾角标 */
.ecs-corner-check {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, var(--p-primary) 50%);
  color: #FFFFFF;
  pointer-events: none;
}

.ecs-corner-check svg {
  position: absolute;
  right: 2px;
  bottom: 2px;
}

.ecs-card.selected .ecs-corner-check {
  display: block;
}

/* 企业主推蓝底角标 */
.ecs-rec-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--p-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.ecs-sku-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ecs-sku-price .cur {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-primary);
}

.ecs-sku-price .amt {
  font-size: 24px;
  font-weight: 700;
  color: var(--p-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ecs-sku-price .unit {
  font-size: 12px;
  color: var(--p-ink-3);
  margin-left: 3px;
}

.ecs-sku-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--p-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--p-ink-2);
}

.ecs-card.selected .ecs-sku-meta {
  border-top-color: #C6E0FF;
}

/* 政企对公采购引导条 */
.b2b-nudge-bar {
  padding: 12px 16px;
  background: var(--p-subtle);
  border: 1px solid var(--p-border);
  border-left: 3px solid var(--p-primary);
  border-radius: var(--p-r-ctrl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 右侧常驻「采购配置清单与费用结算单」 */
.settlement-panel {
  position: sticky;
  top: 68px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-top: 3px solid var(--p-primary);
  border-radius: var(--p-r-card);
  box-shadow: var(--p-shadow-card);
  overflow: hidden;
}

.settlement-head {
  padding: 12px 18px;
  background: #F4F7FC;
  border-bottom: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settlement-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bill-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--p-border);
}

.bill-kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.bill-kv-row .k {
  color: var(--p-ink-3);
  white-space: nowrap;
}

.bill-kv-row .v {
  color: var(--p-ink-1);
  font-weight: 500;
  text-align: right;
}

.summary-calc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--p-ink-2);
}

.calc-row.discount {
  color: var(--p-ok);
  font-weight: 600;
}

.calc-row.total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--p-border);
  color: var(--p-ink-1);
  font-weight: 600;
  font-size: 13.5px;
}

.calc-total-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--p-primary);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.summary-sec-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--p-ink-3);
  text-align: center;
  padding-top: 4px;
}

/* 许可证台账与结构化设备表 */
.lookup-bar {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-card);
  padding: 14px 18px;
  box-shadow: var(--p-shadow-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.lookup-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.lookup-main-row .p-sec-title {
  flex-shrink: 0;
  margin-right: 2px;
}

.lookup-main-row .p-input-wrap {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 560px;
}

.lookup-demo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 9px;
  border-top: 1px dashed var(--p-border-soft);
  font-size: 12px;
  color: var(--p-ink-3);
}

@media (max-width: 680px) {
  .lookup-main-row {
    flex-wrap: wrap;
  }
  .lookup-main-row .p-input-wrap {
    flex: 1 1 100%;
    max-width: none;
  }
}

.pending-order-banner {
  background: var(--p-warn-soft);
  border: 1px solid var(--p-warn-border);
  border-left: 4px solid var(--p-warn);
  border-radius: var(--p-r-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lic-ledger-card {
  margin-bottom: 16px;
}

.lic-meta-strip {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--p-th-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
}

.lic-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lic-meta-label {
  font-size: 11.5px;
  color: var(--p-ink-3);
}

.lic-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink-1);
}

.license-key-code {
  font-family: var(--p-font-mono);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--p-ink-1);
  letter-spacing: 0.02em;
}

.quota-track {
  height: 6px;
  background: #E5E6EB;
  border-radius: 2px;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: var(--p-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.quota-fill.accent {
  background: var(--p-primary);
}

.quota-fill.warn {
  background: var(--p-warn);
}

.bind-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--p-muted-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
}

/* 政企批量采购立项双栏 */
.b2b-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* ==========================================================================
   5. /customer 专属：政企双栏认证页 + 标准企业云控制台（左侧 208px 白导航）
   ========================================================================== */

/* 5.1 政企客户双栏登录认证页 */
.cust-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #EBF0F7;
  background-image:
    linear-gradient(to right, rgba(9, 25, 54, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 25, 54, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cust-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.cust-auth-box {
  width: 100%;
  max-width: 1020px;
  background: var(--p-surface);
  border: 1px solid #D5DCE6;
  border-radius: var(--p-r-card);
  box-shadow: 0 8px 28px rgba(9, 25, 54, 0.08);
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  overflow: hidden;
}

.cust-auth-brand-pane {
  background-color: var(--p-header-bg);
  background-image:
    linear-gradient(165deg, #091936 0%, #0E2958 65%, #113572 100%),
    linear-gradient(to right, rgba(145, 202, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(145, 202, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  color: #FFFFFF;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.cust-auth-feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cust-auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.cust-auth-feature-list li .ico-box {
  width: 24px;
  height: 24px;
  border-radius: var(--p-r-ctrl);
  background: rgba(22, 119, 255, 0.25);
  border: 1px solid rgba(145, 202, 255, 0.3);
  color: #69B1FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cust-auth-form-pane {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--p-surface);
}

/* 标准政企底边线选项卡 */
.auth-mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--p-border);
  gap: 24px;
}

.auth-mode-tab {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0 4px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-mode-tab:hover {
  color: var(--p-primary);
}

.auth-mode-tab.active {
  color: var(--p-primary);
  font-weight: 600;
}

.auth-mode-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--p-primary);
}

/* 5.2 登录后主控制台壳层：顶部 #091936 + 左侧 208px 纯白二级导航 + 右侧 #F0F2F5 工作区 */
.console-body {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 52px);
}

.console-sider {
  width: 208px;
  flex-shrink: 0;
  background: var(--p-surface);
  border-right: 1px solid var(--p-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.sider-tenant-box {
  padding: 14px 16px;
  border-bottom: 1px solid var(--p-border-soft);
  background: #FAFBFD;
}

.sider-group-label {
  padding: 12px 16px 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--p-ink-3);
  letter-spacing: 0.02em;
}

.sider-menu {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.sider-item {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 16px 8px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--p-ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sider-item:hover {
  background: var(--p-th-bg);
  color: var(--p-ink-1);
}

/* 选中项严格采用：左侧 3px solid #1677FF 蓝竖条 + #E6F4FF 浅蓝底 + #1677FF 蓝字 */
.sider-item.active {
  background: var(--p-primary-soft);
  color: var(--p-primary);
  font-weight: 600;
}

.sider-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--p-primary);
}

.sider-item-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  background: var(--p-well);
  color: var(--p-ink-2);
}

.sider-item.active .sider-badge {
  background: #BAE0FF;
  color: var(--p-primary-active);
}

.sider-badge.alert {
  background: var(--p-warn);
  color: #FFFFFF;
}

.sider-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--p-border-soft);
  background: #FAFBFD;
  font-size: 11.5px;
  color: var(--p-ink-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--p-canvas);
}

.console-page-bar {
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.console-breadcrumb {
  font-size: 12px;
  color: var(--p-ink-3);
  margin-bottom: 2px;
}

.console-page-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--p-ink-1);
}

.console-content {
  flex: 1;
  padding: 18px 22px 32px;
  max-width: 1360px;
  width: 100%;
}

/* 客户控制台 KPI 指标卡带 */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-tile {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-card);
  padding: 14px 16px;
  box-shadow: var(--p-shadow-card);
  border-top: 2px solid transparent;
}

.kpi-tile.primary-top {
  border-top-color: var(--p-primary);
}

.kpi-tile.warn-top {
  border-top-color: var(--p-warn);
}

.kpi-tile.ok-top {
  border-top-color: var(--p-ok);
}

.kpi-tile-label {
  font-size: 12px;
  color: var(--p-ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-tile-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--p-ink-1);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.kpi-tile-sub {
  font-size: 11.5px;
  color: var(--p-ink-3);
  margin-top: 4px;
}

/* 政企 6 步交付里程碑进度轨道 */
.ms-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
  background: var(--p-th-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
}

.ms-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ms-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--p-r-ctrl);
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface);
  color: var(--p-ink-3);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ms-step.done .ms-dot {
  background: var(--p-ok-soft);
  border-color: var(--p-ok-border);
  color: var(--p-ok);
}

.ms-step.current .ms-dot {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.18);
}

.ms-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-step.done .ms-label {
  color: var(--p-ink-1);
}

.ms-step.current .ms-label {
  color: var(--p-primary);
  font-weight: 600;
}

/* 客户待签署高优先级行动卡（6px 圆角 + 左侧 4px 语义色标） */
.action-card {
  border-radius: var(--p-r-card);
  padding: 16px 18px;
  border: 1px solid var(--p-warn-border);
  border-left: 4px solid var(--p-warn);
  background: #FFFBF2;
}

.action-card.info {
  border-color: var(--p-primary-border);
  border-left: 4px solid var(--p-primary);
  background: #F4F9FF;
}

/* KV 核验列表与 SHA-256 指纹框 */
.kv-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--p-border);
  font-size: 12.5px;
}

.kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kv-key {
  color: var(--p-ink-3);
  white-space: nowrap;
}

.kv-val {
  color: var(--p-ink-1);
  font-weight: 600;
  text-align: right;
  min-width: 0;
}

.sha-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--p-th-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
}

/* 录制水印深海蓝黑实时模拟预览条 */
.wm-preview {
  padding: 12px 14px;
  border-radius: var(--p-r-ctrl);
  background: #091936;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid #1B3566;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

/* 企业主授权密钥展示框 */
.license-key-box {
  background: var(--p-th-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-ctrl);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   6. 模态弹窗、工单时间线、Toast 提示与空状态
   ========================================================================== */
.p-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 25, 54, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.p-modal-mask.open {
  display: flex;
}

.p-sub-modal-mask {
  z-index: 260;
  background: rgba(9, 25, 54, 0.52);
}

.p-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-card);
  box-shadow: var(--p-shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pModalIn 0.14s ease-out;
}

.p-modal-box.wide {
  max-width: 740px;
}

@keyframes pModalIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--p-border);
  background: #FAFBFD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.p-modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--p-ink-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-modal-head h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--p-primary);
  border-radius: 1px;
}

.p-modal-body {
  padding: 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-modal-foot {
  padding: 12px 18px;
  background: var(--p-th-bg);
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 8px;
}

/* 工单对话时间线 */
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-item {
  padding: 10px 14px;
  border-radius: var(--p-r-ctrl);
  border: 1px solid var(--p-border);
  background: var(--p-th-bg);
}

.tl-item.staff {
  background: var(--p-primary-tint);
  border-color: var(--p-primary-border);
}

.tl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--p-ink-3);
  margin-bottom: 4px;
}

.tl-who {
  font-weight: 600;
  color: var(--p-ink-1);
}

/* Toast 轻提示 */
.p-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 420;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--p-r-ctrl);
  background: var(--p-header-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--p-shadow-modal);
  max-width: 420px;
}

.p-toast.err {
  background: var(--p-danger);
  border-color: var(--p-danger);
}

/* 顶层沉浸式看图与文档灯箱 (#lightbox-mask, z-index: 360) */
.lightbox-mask {
  position: fixed;
  inset: 0;
  z-index: 360;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  padding: 28px 24px 80px;
  overflow: auto;
  cursor: zoom-out;
}

.lightbox-mask.open {
  display: flex;
}

.lightbox-close-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 366;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-close-btn:hover {
  background: rgba(245, 63, 63, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.lightbox-stage {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  user-select: none;
}

.lightbox-img.zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-pdf {
  width: min(90vw, 1080px);
  height: 82vh;
  border: none;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-doc-card {
  width: min(90vw, 460px);
  padding: 28px 24px;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--p-ink-1);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 366;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 780px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-size: 12.5px;
  cursor: default;
}

.lightbox-title {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.lightbox-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-pill-btn:hover {
  background: var(--p-primary);
  border-color: var(--p-primary-hover);
  color: #FFFFFF;
}

/* 标准空状态 */
.p-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--p-ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   7. 响应式自适应规范 (820px 分屏窄窗 — 1920px 超宽大屏)
   ========================================================================== */
@media (max-width: 1140px) {
  .hide-md {
    display: none !important;
  }
  .lic-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .configurator-layout {
    grid-template-columns: 1fr;
  }
  .settlement-panel {
    position: static;
  }
  .b2b-grid {
    grid-template-columns: 1fr;
  }
  .cust-auth-box {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }
}

@media (max-width: 1280px) {
  .p-header .hide-md {
    display: none !important;
  }
  .p-top-nav-item {
    padding: 0 11px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .console-body {
    flex-direction: column;
  }
  .console-sider {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--p-border);
  }
  .sider-tenant-box,
  .sider-group-label,
  .sider-foot {
    display: none;
  }
  .sider-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 12px;
  }
  .sider-item {
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
  }
  .sider-item.active::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
  }
  .cfg-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .p-header {
    height: auto;
  }
  .p-header-inner {
    height: auto;
    min-height: 52px;
    padding: 6px 14px;
    flex-wrap: wrap;
  }
  .p-header-left {
    flex-wrap: wrap;
    gap: 10px;
  }
  .p-top-nav {
    height: 40px;
  }
  .p-top-nav-item {
    height: 40px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .p-grid-2,
  .p-grid-3,
  .lic-meta-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. 正式交付验收报告 A4 打印样式 (@media print)
   ========================================================================== */
.print-doc {
  background: #FFFFFF;
  color: #1D2129;
  padding: 28px 32px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-card);
}

.print-doc h2 {
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: #1D2129;
}

.print-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12.5px;
}

.print-doc th,
.print-doc td {
  border: 1px solid #4E5969;
  padding: 8px 10px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.print-doc th {
  background: #F7F8FA;
  font-weight: 600;
}

.print-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
  padding-top: 16px;
}

.print-sign-box {
  border: 1px dashed #86909C;
  border-radius: var(--p-r-card);
  padding: 16px;
  min-height: 120px;
}

#print-mount {
  display: none;
}

/* ==========================================================================
   9. 智能字符联想补全菜单 (SmartSuggest) 与付款证据截图上传卡片
   ========================================================================== */
.smart-suggest-menu {
  position: fixed;
  z-index: 9999;
  background: #FFFFFF;
  border: 1px solid #C9CDD4;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(9, 25, 54, 0.14), 0 2px 6px rgba(9, 25, 54, 0.06);
  max-height: 252px;
  overflow-y: auto;
  padding: 4px;
  display: none;
}

.smart-suggest-menu.open {
  display: block;
}

.ss-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 5px;
  font-size: 11px;
  color: var(--p-ink-3);
  border-bottom: 1px solid var(--p-border-soft);
  margin-bottom: 3px;
}

.ss-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--p-ink-1);
  border-left: 3px solid transparent;
  transition: background 0.08s ease, color 0.08s ease;
}

/* 统一由 JS mouseover 与键盘上下键同步单一 .active 强对比高亮，杜绝双高亮冲突 */
.ss-item.active {
  background: #2563EB;
  color: #FFFFFF;
  border-left-color: #93C5FD;
}

.ss-val {
  font-weight: 600;
  color: var(--p-ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ss-item.active .ss-val {
  color: #FFFFFF;
}

.ss-val.mono {
  font-family: var(--p-font-mono);
  font-size: 12px;
}

.ss-hl {
  background: rgba(22, 119, 255, 0.16);
  color: #0958D9;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.ss-item.active .ss-hl {
  background: #FDE047;
  color: #0F172A;
}

.ss-meta {
  font-size: 11.5px;
  color: var(--p-ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-item.active .ss-meta {
  color: rgba(255, 255, 255, 0.9);
}

.p-voucher-zone {
  border: 1px dashed #C9CDD4;
  border-radius: 6px;
  background: #F7F8FA;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.p-voucher-zone:hover {
  border-color: var(--p-primary);
  background: #F5F9FF;
}

.p-voucher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--p-border);
  border-radius: 4px;
  background: #FFFFFF;
}

.p-voucher-img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--p-border);
  background: #F2F3F5;
  cursor: zoom-in;
  flex-shrink: 0;
}

.p-sop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.p-sop-card {
  border: 1px solid #BFD8FF;
  background: #F5F9FF;
  border-radius: 4px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--p-ink-1);
}

.p-sop-num {
  display: inline-block;
  font-family: var(--p-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #0958D9;
  background: #E6F4FF;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* 云端在线租户按需展开的隔离网段离线代签折叠面板（v10.3 高对比度实线左强调条 + 胶囊徽标） */
.p-airgap-details {
  background: var(--p-surface);
  border: 1px solid var(--p-primary-border);
  border-left: 4px solid var(--p-primary);
  border-radius: var(--p-r-card);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.p-airgap-details:hover {
  border-color: var(--p-primary);
  box-shadow: 0 2px 10px rgba(22, 119, 255, 0.08);
}

.p-airgap-details > summary {
  padding: 12px 18px;
  background: #F5F9FF;
  color: var(--p-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color .15s ease;
}

.p-airgap-details > summary:hover,
.p-airgap-details > summary:focus-visible {
  background: #E8F3FF;
  outline: none;
}

.p-airgap-details > summary::-webkit-details-marker {
  display: none;
}

.p-airgap-details > summary::after {
  content: "展开离线签发面板 ▾";
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  background: #1677FF;
  border: 1px solid #1677FF;
  padding: 3px 11px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.p-airgap-details[open] > summary {
  border-bottom: 1px solid var(--p-border);
}

.p-airgap-details[open] > summary::after {
  content: "收起面板 ▴";
  background: #FFFFFF;
  color: var(--p-ink-2);
  border: 1px solid var(--p-border-strong, #C9CDD4);
}

.p-airgap-details-body {
  padding: 16px;
  background: var(--p-canvas);
}

@media (max-width: 1080px) {
  .p-sop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 行内语义化文字跳转按钮（替代伪协议空链接） */
.p-link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--p-primary);
  cursor: pointer;
  text-align: left;
  display: inline;
}
.p-link-btn:hover {
  text-decoration: underline;
}

/* ==================== v11.0 统一告警样式、步进器、错误码速查与 Markdown 富文本阅读器 ==================== */
.p-stepper-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--p-border);
  border-radius: 5px;
  background: #FFFFFF;
  color: var(--p-ink-1);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.p-stepper-btn:hover:not(:disabled) {
  border-color: var(--p-primary);
  color: var(--p-primary);
  background: var(--p-primary-soft);
}

.p-alert-danger {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #FFF2F0;
  border: 1px solid #FFCCC7;
  color: #CF1322;
  font-size: 12.5px;
  line-height: 1.55;
}

.pending-order-banner.is-rejected {
  background: var(--p-danger-soft);
  border-color: var(--p-danger-border);
  border-left: 4px solid var(--p-danger);
}

.p-grid-iq-prod {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(130px, 0.85fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .p-grid-iq-prod {
    grid-template-columns: 1fr;
  }
}

.p-code-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #91caff;
  background: #e6f4ff;
  color: #0958d9;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
  transition: all 0.14s ease;
}
.p-code-pill:hover {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
  text-decoration: none;
}

.client-native-banner {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #bae0ff;
  background: linear-gradient(95deg, #f0f7ff 0%, #f7fbff 60%, #eefaf4 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.err-mod-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.err-mod-chip {
  appearance: none;
  border: 1px solid var(--p-border);
  background: #FFFFFF;
  color: var(--p-ink-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}
.err-mod-chip:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
}
.err-mod-chip.active {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.err-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}
.err-card {
  background: #FFFFFF;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.err-card .p-btn {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.err-card .p-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.err-card:hover {
  border-color: var(--p-primary-border);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.p-md-body {
  font-size: 13.5px;
  line-height: 1.76;
  color: var(--p-ink-1);
  word-break: break-word;
}
.p-md-body h1,
.p-md-body h2,
.p-md-body h3,
.p-md-body h4 {
  color: var(--p-ink-1);
  font-weight: 700;
  line-height: 1.4;
}
.p-md-body h1 { font-size: 18px; margin: 16px 0 8px; }
.p-md-body h2 {
  font-size: 15.5px;
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--p-border-soft);
}
.p-md-body h3 { font-size: 14px; margin: 14px 0 6px; }
.p-md-body p { margin: 0 0 10px; }
.p-md-body ul,
.p-md-body ol { margin: 0 0 11px; padding-left: 20px; }
.p-md-body li { margin-bottom: 4px; }
.p-md-body code.p-inline-code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f4f7;
  border: 1px solid #e4e7ed;
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #c41d7f;
}
.p-code-block {
  margin: 10px 0 12px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  overflow: hidden;
}
.p-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: #eaeef2;
  border-bottom: 1px solid #d0d7de;
  font-size: 11px;
  color: var(--p-ink-3);
  font-family: Consolas, monospace;
}
.p-code-block pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.58;
  color: #1f2328;
}
.p-callout {
  margin: 10px 0 12px;
  padding: 9px 13px;
  border-radius: 6px;
  border-left: 4px solid var(--p-primary);
  background: #f0f7ff;
}
.p-callout-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}
.p-callout.tip { border-left-color: #00b42a; background: #f0fff4; }
.p-callout.tip .p-callout-title { color: #067a28; }
.p-callout.important { border-left-color: #722ed1; background: #f9f0ff; }
.p-callout.important .p-callout-title { color: #531dab; }
.p-callout.warning,
.p-callout.caution { border-left-color: #fa8c16; background: #fff7e6; }
.p-callout.warning .p-callout-title,
.p-callout.caution .p-callout-title { color: #d46b08; }
.p-md-table-wrap {
  margin: 10px 0 12px;
  overflow-x: auto;
  border: 1px solid var(--p-border);
  border-radius: 6px;
}
.p-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.p-md-table th {
  background: #f7f8fa;
  font-weight: 600;
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--p-border);
}
.p-md-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--p-border-soft);
}
.p-md-table tr:last-child td { border-bottom: none; }
.p-md-fig {
  margin: 12px 0;
  text-align: center;
}
.p-md-fig img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 6px;
  border: 1px solid var(--p-border);
  cursor: zoom-in;
}
.p-md-fig figcaption {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--p-ink-3);
}
.p-md-hr {
  border: 0;
  border-top: 1px solid var(--p-border);
  margin: 14px 0;
}
.p-md-todo-list {
  list-style: none !important;
  padding-left: 4px !important;
  margin: 0 0 12px;
}
.p-md-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}
.p-md-todo-item input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--p-primary);
}
.p-md-todo-item.is-done span {
  color: var(--p-ink-3);
  text-decoration: line-through;
}

/* 零 CDN 代码语法高亮色盘（门户知识库与交付说明文档共用） */
.hl-cmt { color: #6e7781; }
.hl-str { color: #0a3069; }
.hl-kw { color: #cf222e; }
.hl-attr { color: #0550ae; }
.hl-num { color: #953800; }
.hl-var { color: #8250df; }
.hl-fn { color: #116329; }
.hl-err { color: #d1242f; background: rgba(255, 129, 130, 0.16); border-radius: 2px; }

/* 客户门户独立星枢富文档排障知识库与错误码三栏阅读器 */
.p-kb-wiki-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 216px;
  gap: 14px;
  align-items: start;
}
.p-kb-side {
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 12px;
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
}
.p-kb-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--p-ink-3);
  padding: 8px 6px 4px;
  display: flex;
  justify-content: space-between;
}
.p-kb-item {
  width: 100%;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin-bottom: 2px;
}
.p-kb-item:hover { background: var(--p-well); }
.p-kb-item.active {
  background: var(--p-primary-soft);
  border-color: var(--p-primary-border);
}
.p-kb-item-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p-ink-1);
  line-height: 1.42;
}
.p-kb-item.active .p-kb-item-title {
  color: var(--p-primary);
  font-weight: 600;
}
.p-kb-doc {
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 24px 28px 32px;
  min-width: 0;
}
.p-kb-toc {
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 12px 14px;
  position: sticky;
  top: 66px;
}

/* ==================== 门户自定义浮层 <select> & <input type="datetime-local|date"> 与分页筛选栏 ==================== */
.xw-native-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.xw-select,
.xw-dt {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  min-width: 112px;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--p-ink-1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.xw-select:hover:not(.is-disabled),
.xw-dt:hover:not(.is-disabled) {
  border-color: #94a3b8;
}

.xw-select.is-open,
.xw-dt.is-open,
.xw-select:focus-visible,
.xw-dt:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.xw-select.is-disabled,
.xw-dt.is-disabled {
  background: #f8fafc;
  color: var(--p-ink-3);
  cursor: not-allowed;
  opacity: 0.65;
}

.xw-select.is-placeholder .xw-select-label,
.xw-dt.is-placeholder .xw-dt-label {
  color: var(--p-ink-3);
}

.xw-select-label,
.xw-dt-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xw-chevron,
.xw-cal-ico {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.16s ease, color 0.14s ease;
}

.xw-select.is-open .xw-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.xw-select.is-compact {
  height: 28px;
  min-height: 28px;
  min-width: 84px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}

.xw-popover {
  position: fixed;
  z-index: 9995;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  font-size: 13px;
  color: #0f172a;
}

.xw-pop-search-wrap {
  padding: 7px 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.xw-pop-search {
  width: 100%;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  font-size: 12px !important;
  color: #0f172a !important;
}

.xw-pop-search:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.xw-opt-list,
.xw-pop-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

/* 双门户浮层列表、知识库目录、弹窗与表格滚动面板统一纤细滚动条 */
.xw-popover,
.xw-opt-list,
.xw-pop-list,
.kb-side-tree,
.p-kb-side,
.p-kb-toc,
.modal-body,
.p-modal-body,
.console-sider,
.p-table-wrap,
.kb-md-table-wrap,
.kb-code-block pre {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.xw-popover::-webkit-scrollbar,
.xw-opt-list::-webkit-scrollbar,
.xw-pop-list::-webkit-scrollbar,
.kb-side-tree::-webkit-scrollbar,
.p-kb-side::-webkit-scrollbar,
.p-kb-toc::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.p-modal-body::-webkit-scrollbar,
.console-sider::-webkit-scrollbar,
.p-table-wrap::-webkit-scrollbar,
.kb-md-table-wrap::-webkit-scrollbar,
.kb-code-block pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.xw-popover::-webkit-scrollbar-thumb,
.xw-opt-list::-webkit-scrollbar-thumb,
.xw-pop-list::-webkit-scrollbar-thumb,
.kb-side-tree::-webkit-scrollbar-thumb,
.p-kb-side::-webkit-scrollbar-thumb,
.p-kb-toc::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.p-modal-body::-webkit-scrollbar-thumb,
.console-sider::-webkit-scrollbar-thumb,
.p-table-wrap::-webkit-scrollbar-thumb,
.kb-md-table-wrap::-webkit-scrollbar-thumb,
.kb-code-block pre::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.xw-popover::-webkit-scrollbar-track,
.xw-opt-list::-webkit-scrollbar-track,
.xw-pop-list::-webkit-scrollbar-track,
.kb-side-tree::-webkit-scrollbar-track,
.p-kb-side::-webkit-scrollbar-track,
.p-kb-toc::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.p-modal-body::-webkit-scrollbar-track,
.console-sider::-webkit-scrollbar-track,
.p-table-wrap::-webkit-scrollbar-track,
.kb-md-table-wrap::-webkit-scrollbar-track,
.kb-code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

.xw-opt-item {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
}

.xw-opt-item:hover:not(.is-disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.xw-opt-item.is-active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.xw-opt-item.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.xw-opt-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xw-opt-mark {
  flex-shrink: 0;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
}

.xw-opt-empty {
  padding: 12px 10px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.xw-dt-popover { width: 288px; padding: 10px 12px; }
.xw-dt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.xw-dt-nav-grp { display: inline-flex; gap: 2px; }
.xw-dt-nav {
  appearance: none; width: 26px; height: 26px; border: 1px solid #e2e8f0; border-radius: 6px;
  background: #ffffff; color: #475569; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.xw-dt-nav:hover { border-color: #94a3b8; background: #f8fafc; }
.xw-dt-ym { font-size: 13px; font-weight: 600; color: #0f172a; }
.xw-dt-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.xw-dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.xw-dt-day {
  appearance: none; height: 30px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: #1e293b; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.xw-dt-day:hover { background: #f1f5f9; }
.xw-dt-day.is-outside { color: #cbd5e1; }
.xw-dt-day.is-today { border-color: #93c5fd; color: #2563eb; font-weight: 600; }
.xw-dt-day.is-selected { background: #2563eb !important; border-color: #2563eb !important; color: #ffffff !important; font-weight: 600; }
.xw-dt-time-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.xw-dt-time-lbl { font-size: 12px; color: #475569; font-weight: 500; }
.xw-dt-time-ctrls { display: inline-flex; align-items: center; gap: 4px; }
.xw-dt-time-sel { height: 28px !important; min-height: 28px !important; padding: 0 6px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; background: #f8fafc !important; font-size: 12px !important; }
.xw-dt-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.xw-dt-chip { appearance: none; padding: 2px 8px; height: 23px; border-radius: 5px; border: 1px solid #dbeafe; background: #eff6ff; color: #2563eb; font-size: 11.5px; font-weight: 500; cursor: pointer; }
.xw-dt-chip:hover { background: #dbeafe; }
.xw-dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.xw-dt-preview { font-family: var(--p-font-mono); font-size: 11.5px; color: #475569; }
.xw-dt-foot-btns { display: inline-flex; gap: 6px; }
.xw-dt-btn { appearance: none; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; }
.xw-dt-btn.primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }

.p-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--p-border-soft);
}

.p-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

/* 客户门户与商城筛选栏（含卡片头内联筛选组）控件统一 32px 等高对齐 */
.p-filter-bar input.p-input:not(textarea),
.p-filter-bar select,
.p-filter-bar .xw-select,
.p-filter-bar .p-btn,
.p-filter-bar .p-btn.sm,
.p-card-head input.p-input:not(textarea),
.p-card-head select,
.p-card-head .xw-select,
.p-card-head .p-btn.sm {
  height: 32px !important;
  min-height: 32px !important;
}

.p-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #fafbfd;
  border-top: 1px solid var(--p-border);
  font-size: 12px;
  color: var(--p-ink-3);
}

.p-pg-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-pg-meta .xw-select {
  height: 28px;
  min-height: 28px;
  min-width: 86px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}

.p-pg-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.p-pg-btn {
  appearance: none;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--p-ink-2);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p-pg-btn:hover:not(:disabled):not(.on) {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.p-pg-btn.on {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.p-pg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

@media (max-width: 1380px) {
  .p-kb-wiki-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .p-kb-toc { display: none; }
}
@media (max-width: 820px) {
  .p-kb-wiki-layout {
    grid-template-columns: 1fr;
  }
  .p-kb-side {
    position: static;
    max-height: 260px;
  }
  .p-modal-body .p-grid-3,
  .p-modal-body .p-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media print {
  #app-root,
  #cust-root,
  #store-root,
  .modal-mask,
  .p-modal-mask,
  .xw-popover,
  #lightbox-mask,
  #toast {
    display: none !important;
  }
  #print-mount,
  #print-mount * {
    visibility: visible !important;
  }
  #print-mount {
    display: block !important;
    position: static !important;
    width: 100%;
    background: #FFFFFF;
  }
  .print-doc {
    border: none;
    padding: 0;
  }
  .print-sign-grid,
  .print-doc tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
