/* ============================================================
   智落 · 服务商工作台（partner.css）
   依赖 base.css 的深色 tokens；页面专属样式统一使用 .pt- 前缀。
   ============================================================ */

/* ---------- 页面基础 ---------- */
.pt-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 82% -12%, rgba(56, 189, 248, 0.09), transparent 62%),
    radial-gradient(900px 640px at 6% 8%, rgba(99, 102, 241, 0.08), transparent 58%),
    var(--zl-bg);
  overflow-x: hidden;
}

.pt-login[hidden],
.pt-app[hidden],
.pt-boot[hidden] { display: none !important; }

.pt-body ::-webkit-scrollbar-thumb { background: rgba(130, 152, 184, 0.24); }

.pt-body.is-locked { overflow: hidden; }

/* ============================================================
   一、登录页
   ============================================================ */
.pt-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  overflow: hidden;
}

.pt-login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.pt-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.pt-orb-a {
  width: 480px; height: 480px; top: -180px; right: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 68%);
}
.pt-orb-b {
  width: 420px; height: 420px; bottom: -190px; left: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 68%);
}
.pt-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 30%, transparent 100%);
}

.pt-login-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 96px);
}

/* ---------- 品牌区 ---------- */
.pt-brand { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.pt-logo { display: flex; align-items: center; gap: 13px; }
.pt-logo-mark {
  flex: none;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 21px; font-weight: 700; color: #eaf6ff;
  background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  letter-spacing: 0.02em;
}
.pt-logo-mark.sm {
  width: 34px; height: 34px; border-radius: 10px;
  font-size: 16px; box-shadow: 0 6px 16px rgba(56, 189, 248, 0.26);
}
.pt-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.pt-logo-text b { font-size: 21px; font-weight: 700; letter-spacing: 0.16em; color: var(--zl-ink); }
.pt-logo-text em {
  font-style: normal; font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--zl-faint); margin-top: 3px; text-transform: uppercase;
}

.pt-brand-copy { display: flex; flex-direction: column; gap: 16px; }
.pt-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  width: fit-content;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  color: #7dd3fc;
}
.pt-eyebrow i {
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--zl-accent));
  display: inline-block;
}
.pt-brand-copy h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--zl-ink);
}
.pt-brand-copy p {
  max-width: 470px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--zl-muted);
}

.pt-value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.pt-value-list li { display: flex; gap: 14px; align-items: flex-start; }
.pt-value-icon {
  flex: none;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
}
.pt-value-icon svg { width: 19px; height: 19px; }
.pt-value-list b { display: block; font-size: 14px; font-weight: 650; color: var(--zl-ink); }
.pt-value-list p { font-size: 12.5px; color: var(--zl-muted); margin-top: 2px; line-height: 1.7; }

.pt-demo {
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px 15px;
  border-radius: 14px;
  border: 1px dashed rgba(96, 165, 250, 0.28);
  background: rgba(10, 24, 47, 0.5);
}
.pt-demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pt-demo-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pt-demo-row code {
  font-family: var(--zl-mono);
  font-size: 12.5px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 7px;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}
.pt-demo-sep { color: var(--zl-faint); font-size: 12px; }
.pt-demo-row .zl-btn { margin-left: 6px; }

/* ---------- 登录表单 ---------- */
.pt-login-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pt-login-card {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  border: 1px solid var(--zl-border-hi);
  background: linear-gradient(160deg, rgba(18, 37, 68, 0.88), rgba(8, 18, 37, 0.94));
  box-shadow: var(--zl-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.pt-card-glow {
  position: absolute; top: -120px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 66%);
  pointer-events: none;
}
.pt-login-card-head { position: relative; }
.pt-step-tag {
  font-family: var(--zl-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--zl-faint);
}
.pt-login-card-head h2 { font-size: 24px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.pt-login-card-head p { font-size: 12.5px; color: var(--zl-muted); margin-top: 6px; line-height: 1.7; }

.pt-login-form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.pt-input-wrap { position: relative; }
.pt-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--zl-faint); pointer-events: none;
  display: inline-flex;
}
.pt-input-icon svg { width: 100%; height: 100%; }
.pt-input { height: 46px; padding-left: 41px; }
.pt-input-wrap:focus-within .pt-input-icon { color: var(--zl-accent); }

.pt-login-error {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: var(--zl-danger-soft);
  color: #fecaca;
  font-size: 12.5px;
  line-height: 1.6;
  animation: pt-shake 0.32s ease;
}
@keyframes pt-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}

.pt-login-submit { height: 50px; margin-top: 2px; border-radius: 11px; }
.pt-arrow { transition: transform 0.2s ease; font-size: 16px; line-height: 1; }
.pt-login-submit:hover .pt-arrow { transform: translateX(4px); }
.pt-login-submit.is-loading .pt-arrow { animation: pt-spin 0.9s linear infinite; }
@keyframes pt-spin { to { transform: rotate(360deg); } }

.pt-login-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-login-foot a { font-size: 12px; color: var(--zl-muted); }
.pt-login-foot a:hover { color: var(--zl-accent); }

.pt-login-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11px; color: var(--zl-faint); padding: 0 4px; flex-wrap: wrap;
}
.pt-online-dot { display: inline-flex; align-items: center; gap: 6px; }
.pt-online-dot i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--zl-success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
  animation: pt-breathe 2.4s ease-in-out infinite;
}
@keyframes pt-breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.05); }
}

/* ---------- 启动遮罩 ---------- */
.pt-boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--zl-bg);
  color: var(--zl-muted); font-size: 12.5px;
}
.pt-boot-logo {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 24px; font-weight: 700; color: #eaf6ff;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.3);
}
.pt-boot-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.18);
  border-top-color: var(--zl-accent);
  animation: pt-spin 0.8s linear infinite;
}

/* ============================================================
   二、工作台顶部栏
   ============================================================ */
.pt-app { min-height: 100vh; display: flex; flex-direction: column; }

.pt-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 13, 31, 0.84);
  border-bottom: 1px solid var(--zl-border);
  backdrop-filter: blur(18px);
}
.pt-header-inner {
  width: min(1240px, 100%);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.pt-header-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.pt-header-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.pt-header-brand-text b { font-size: 16px; font-weight: 700; letter-spacing: 0.14em; }
.pt-header-brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: 0.08em; color: var(--zl-faint); margin-top: 2px; }
.pt-header-sep { width: 1px; height: 28px; background: var(--zl-border); flex: none; }

.pt-me { min-width: 0; }
.pt-me-name {
  font-size: 14.5px; font-weight: 650; color: var(--zl-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 340px;
}
.pt-me-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.pt-me-sub .zl-mono { font-size: 11.5px; color: var(--zl-muted); }
.pt-me-sub .zl-badge { height: 19px; font-size: 10.5px; padding: 0 7px; }
.pt-me-city { font-size: 11.5px; color: var(--zl-faint); display: inline-flex; align-items: center; gap: 4px; }
.pt-me-city::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--zl-faint); }

.pt-accepting {
  display: flex; align-items: center; gap: 13px;
  padding: 6px 10px 6px 15px;
  border: 1px solid var(--zl-border);
  border-radius: 999px;
  background: rgba(13, 29, 56, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: none;
}
.pt-accepting.is-paused { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.06); }
.pt-accepting-text { display: flex; flex-direction: column; line-height: 1.25; }
.pt-accepting-text b { font-size: 12.5px; font-weight: 650; color: #6ee7b7; }
.pt-accepting.is-paused .pt-accepting-text b { color: #fcd34d; }
.pt-accepting-text span { margin-top: 1px; font-size: 10px; }

.pt-switch {
  position: relative;
  width: 44px; height: 25px;
  padding: 0; border: 0; border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  transition: background 0.22s ease, box-shadow 0.22s ease;
  flex: none;
}
.pt-switch:hover { background: rgba(148, 163, 184, 0.32); }
.pt-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(2, 8, 23, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
}
.pt-switch[aria-checked="true"] {
  background: linear-gradient(100deg, #10b981, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 4px 14px rgba(16, 185, 129, 0.28);
}
.pt-switch[aria-checked="true"] .pt-switch-thumb { transform: translateX(19px); background: #fff; }

.pt-settings-btn { flex: none; gap: 7px; }
.pt-settings-btn svg { width: 15px; height: 15px; }
.pt-logout { flex: none; color: var(--zl-muted); }
.pt-logout svg { width: 18px; height: 18px; }
.pt-logout:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.1); }

/* ============================================================
   三、主区域：统计 + 订单看板
   ============================================================ */
.pt-main {
  width: min(1240px, 100%);
  margin: 26px auto 0;
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 22px;
  flex: 1;
}

.pt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pt-stat {
  position: relative;
  padding: 17px 19px 16px;
  border-radius: 16px;
  border: 1px solid var(--zl-border);
  background: linear-gradient(158deg, rgba(19, 39, 71, 0.6), rgba(9, 21, 42, 0.68));
  box-shadow: var(--zl-shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pt-stat::before {
  content: '';
  position: absolute; left: 0; top: 15px; bottom: 15px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--stat-color);
  opacity: 0.75;
}
.pt-stat::after {
  content: '';
  position: absolute; top: -52px; right: -44px;
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, var(--stat-soft), transparent 68%);
  pointer-events: none;
}
.pt-stat:hover { transform: translateY(-2px); border-color: var(--zl-border-hi); }
.pt-stat-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--zl-muted); }
.pt-stat-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--stat-color);
  background: var(--stat-soft);
  font-size: 15px;
}
.pt-stat-icon svg { width: 17px; height: 17px; }
.pt-stat-value {
  position: relative;
  margin-top: 11px;
  font-size: 34px; font-weight: 700; line-height: 1.05;
  color: var(--zl-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pt-stat-sub { position: relative; margin-top: 6px; font-size: 11.5px; color: var(--zl-faint); }
.pt-stat-sub b { color: var(--stat-color); font-weight: 600; }

/* ---------- 订单看板 ---------- */
.pt-board {
  border-radius: 18px;
  border: 1px solid var(--zl-border);
  background: var(--zl-panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--zl-shadow-sm);
  overflow: hidden;
}
.pt-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--zl-border);
  background: rgba(8, 20, 41, 0.4);
  flex-wrap: wrap;
}

.pt-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--zl-border);
  background: rgba(4, 12, 26, 0.55);
}
.pt-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--zl-muted);
  font-size: 13px; font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.pt-tab:hover { color: var(--zl-ink-2); background: rgba(148, 163, 184, 0.07); }
.pt-tab.is-active {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.13);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.26);
}
.pt-tab-count {
  min-width: 19px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--zl-muted);
  background: rgba(148, 163, 184, 0.14);
}
.pt-tab.is-active .pt-tab-count { color: #bae6fd; background: rgba(56, 189, 248, 0.24); }
.pt-tab-count.is-empty { opacity: 0.55; }

.pt-board-tools { display: flex; align-items: center; gap: 12px; }
.pt-updated { font-size: 11px; color: var(--zl-faint); font-variant-numeric: tabular-nums; }
.pt-refresh-icon { display: inline-block; font-size: 14px; line-height: 1; transition: transform 0.3s ease; }
#refreshBtn:hover .pt-refresh-icon { transform: rotate(180deg); }
#refreshBtn.is-loading .pt-refresh-icon { animation: pt-spin 0.8s linear infinite; }

/* ---------- 订单列表 ---------- */
.pt-order-list {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 20px;
  min-height: 210px;
}

.pt-order {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  padding: 17px 18px 17px 21px;
  border-radius: 14px;
  border: 1px solid var(--zl-border);
  background: linear-gradient(152deg, rgba(18, 37, 68, 0.52), rgba(8, 19, 38, 0.62));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: pt-order-in 0.26s ease both;
}
@keyframes pt-order-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.pt-order:hover { border-color: var(--zl-border-hi); box-shadow: var(--zl-glow); }
.pt-order::before {
  content: '';
  position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--zl-border-hi);
  opacity: 0.7;
}
.pt-order[data-status="dispatched"]::before { background: #fbbf24; }
.pt-order[data-status="in_service"]::before { background: #38bdf8; }
.pt-order[data-status="on_site"]::before { background: #a78bfa; }
.pt-order[data-status="delivered"]::before { background: #f472b6; }
.pt-order[data-status="completed"]::before { background: #34d399; }
.pt-order[data-status="cancelled"]::before { background: #64748b; }

.pt-order-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-order-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-order-no {
  font-family: var(--zl-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--zl-ink);
}
.pt-order-time { font-size: 11px; color: var(--zl-faint); font-variant-numeric: tabular-nums; }
.pt-order-top .zl-status { font-size: 12px; }
.pt-order-demo { height: 19px; font-size: 10px; padding: 0 7px; }

.pt-order-customer {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 15.5px; font-weight: 650; color: var(--zl-ink);
  line-height: 1.35;
}
.pt-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.16);
  white-space: nowrap;
}
.pt-tag.violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.18); }
.pt-tag.neutral { color: var(--zl-ink-2); background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.16); }

.pt-order-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pt-order-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px;
  font-size: 12px; color: var(--zl-muted);
}
.pt-order-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pt-order-meta svg { width: 13px; height: 13px; color: var(--zl-faint); flex: none; }
.pt-order-meta .pt-meta-addr { max-width: 100%; }
.pt-order-meta .pt-meta-addr b { font-weight: 600; color: var(--zl-ink-2); }
.pt-order-contact { color: var(--zl-faint); }

/* 订单右侧：SLA + 操作 */
.pt-order-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  gap: 12px; min-width: 186px;
}
.pt-sla { text-align: right; }
.pt-sla-label { font-size: 10.5px; letter-spacing: 0.08em; color: var(--zl-faint); }
.pt-sla-value {
  font-family: var(--zl-mono);
  font-size: 20px; font-weight: 700; line-height: 1.25;
  color: var(--zl-ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.pt-sla-value.is-urgent {
  color: #fca5a5;
  animation: pt-urgent-pulse 1.5s ease-in-out infinite;
}
@keyframes pt-urgent-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { opacity: 0.66; text-shadow: 0 0 14px rgba(239, 68, 68, 0.55); }
}
.pt-sla-value.is-overdue { color: #ef4444; font-size: 13px; }
.pt-sla-hint { font-size: 10.5px; color: var(--zl-faint); margin-top: 3px; }

.pt-order-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pt-order-actions .zl-btn { height: 34px; padding: 0 15px; font-size: 12.5px; }
.pt-order-actions .zl-btn:disabled { opacity: 0.55; }

.pt-link-btn {
  border: 0; background: transparent;
  color: var(--zl-muted);
  font-size: 12px; font-weight: 600;
  padding: 6px 7px; border-radius: 7px;
  transition: color 0.18s ease, background 0.18s ease;
}
.pt-link-btn:hover { color: var(--zl-accent); background: rgba(56, 189, 248, 0.08); }

.pt-hint-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  color: var(--zl-ink-2);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: right;
}
.pt-hint-chip.pink { color: #f9a8d4; background: rgba(244, 114, 182, 0.1); border-color: rgba(244, 114, 182, 0.2); }
.pt-hint-chip.blue { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); }
.pt-hint-chip.violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.2); }
.pt-hint-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pt-rating { display: inline-flex; align-items: center; gap: 4px; color: #fbbf24; font-size: 12.5px; font-weight: 600; }
.pt-rating .stars { letter-spacing: 1px; font-size: 12px; }
.pt-rating .num { font-family: var(--zl-mono); font-size: 12px; color: #fcd34d; }
.pt-rating .zl-muted { font-size: 11px; }

/* 空态 / 骨架 */
.pt-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 56px 20px 60px;
  text-align: center;
  color: var(--zl-faint);
}
.pt-empty-icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  margin-bottom: 4px;
  color: var(--zl-accent);
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.16);
}
.pt-empty-icon svg { width: 26px; height: 26px; }
.pt-empty h3 { font-size: 14.5px; font-weight: 650; color: var(--zl-ink-2); }
.pt-empty p { font-size: 12.5px; line-height: 1.7; max-width: 380px; }
.pt-empty .zl-btn { margin-top: 8px; }

.pt-skeleton {
  padding: 18px 18px 18px 21px;
  border-radius: 14px;
  border: 1px solid var(--zl-border);
  background: rgba(13, 29, 56, 0.35);
  display: flex; flex-direction: column; gap: 10px;
}
.pt-skeleton .sk-line { height: 12px; border-radius: 6px; }
.pt-skeleton .sk-line.w40 { width: 40%; }
.pt-skeleton .sk-line.w60 { width: 60%; }
.pt-skeleton .sk-line.w25 { width: 25%; }

.pt-footer {
  width: min(1240px, 100%);
  margin: 20px auto 0;
  padding: 0 24px 26px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--zl-faint);
  flex-wrap: wrap;
}
.pt-footer-dot { opacity: 0.5; }
.pt-footer-live { display: inline-flex; align-items: center; gap: 6px; }
.pt-footer-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--zl-accent);
  animation: pt-breathe 2.4s ease-in-out infinite;
}

/* ============================================================
   四、弹窗内元素
   ============================================================ */
.pt-modal-wide { width: min(780px, 100%) !important; }
.pt-modal-sm { width: min(430px, 100%) !important; }

.pt-modal-order {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid var(--zl-border);
  background: rgba(6, 16, 34, 0.55);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.pt-modal-order .no { font-family: var(--zl-mono); color: var(--zl-ink); font-weight: 600; }
.pt-modal-order .cust { color: var(--zl-muted); }

.pt-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--zl-border);
  background: transparent;
  color: var(--zl-muted);
  font-size: 12px; font-weight: 500;
  transition: all 0.16s ease;
}
.pt-chip:hover { color: var(--zl-ink); border-color: var(--zl-border-hi); background: rgba(56, 189, 248, 0.06); }
.pt-chip.is-active {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.12);
}
.pt-chip.sm { padding: 3px 9px; font-size: 11px; }
.pt-preset-group { align-items: center; margin-top: 2px; }
.pt-preset-label { font-size: 11px; color: var(--zl-faint); }

.pt-field-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-field-foot .zl-help { font-variant-numeric: tabular-nums; }

.pt-tag-input { display: flex; gap: 8px; }
.pt-tag-input .zl-input { flex: 1; height: 40px; }
.pt-tag-input .zl-btn { height: 40px; flex: none; }

.pt-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.pt-tags:empty { display: none; }
.pt-tag-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px 4px 11px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
  font-size: 12px;
  animation: pt-order-in 0.18s ease both;
}
.pt-tag-chip button {
  border: 0; background: transparent; padding: 0;
  width: 16px; height: 16px; line-height: 1;
  border-radius: 4px;
  color: #7dd3fc; font-size: 14px;
}
.pt-tag-chip button:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.14); }

/* 服务设置 */
.pt-settings-load {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--zl-border);
  background: rgba(6, 16, 34, 0.5);
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.pt-settings-bar { height: 5px; }
.pt-settings-bar > i { background: linear-gradient(90deg, #0ea5e9, #34d399); }

.pt-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.55), rgba(99, 102, 241, 0.35));
  outline: none;
  cursor: pointer;
}
.pt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border: 3px solid #0b1a33;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.55);
}
.pt-range::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #0b1a33;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.55);
}
.pt-range-val { float: right; font-family: var(--zl-mono); font-size: 12px; color: var(--zl-accent); font-weight: 600; }
.pt-range-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--zl-faint); margin-top: 2px; }

.pt-readonly-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pt-readonly-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.07);
  color: var(--zl-ink-2);
  font-size: 11.5px;
}
.pt-readonly-tag::before { content: '🔒'; font-size: 9px; opacity: 0.6; }
.pt-readonly-tag.scene { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.24); background: rgba(56, 189, 248, 0.06); }
.pt-readonly-tag.industry { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.22); background: rgba(167, 139, 250, 0.06); }
.pt-cap-group + .pt-cap-group { margin-top: 10px; }
.pt-cap-label { font-size: 10.5px; letter-spacing: 0.06em; color: var(--zl-faint); margin-bottom: 6px; }

.pt-confirm-msg { font-size: 13px; line-height: 1.8; color: var(--zl-ink-2); }

/* ---------- 订单详情 ---------- */
.pt-detail-section { margin-bottom: 22px; }
.pt-detail-section:last-child { margin-bottom: 0; }
.pt-detail-section h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em;
  color: var(--zl-ink-2);
  margin-bottom: 12px;
}
.pt-detail-section h4::before {
  content: '';
  width: 3px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, var(--zl-accent), var(--zl-accent-2));
}
.pt-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; }
.pt-detail-grid .span-2 { grid-column: span 2; }
.pt-detail-item { min-width: 0; }
.pt-detail-item dt { font-size: 11px; color: var(--zl-faint); margin-bottom: 3px; }
.pt-detail-item dd { margin: 0; font-size: 13px; color: var(--zl-ink-2); line-height: 1.6; word-break: break-word; }
.pt-detail-item dd.strong { color: var(--zl-ink); font-weight: 600; }
.pt-detail-desc {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--zl-border);
  background: rgba(6, 16, 34, 0.45);
  font-size: 12.5px; line-height: 1.85;
  color: var(--zl-ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.pt-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-detail-tl { max-height: 320px; overflow: auto; padding-right: 8px; }
.pt-detail-loading { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 10px; }
.pt-detail-loading .sk-line { height: 12px; border-radius: 6px; }
.pt-detail-note {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--zl-muted);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.pt-detail-rating { display: flex; align-items: center; gap: 8px; color: #fbbf24; font-size: 14px; }
.pt-detail-rating .stars { letter-spacing: 2px; }
.pt-detail-rating .comment { color: var(--zl-ink-2); font-size: 12.5px; }

/* ============================================================
   五、响应式
   ============================================================ */
@media (max-width: 1120px) {
  .pt-me-name { max-width: 220px; }
  .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .pt-login { padding: 34px 22px; }
  .pt-login-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; width: min(560px, 100%); }
  .pt-brand-copy h1 { font-size: 32px; }
  .pt-brand-copy p { max-width: none; }
  .pt-brand { gap: 22px; }
  .pt-value-list { gap: 12px; }
  .pt-demo { width: 100%; }
}

@media (max-width: 820px) {
  .pt-header-inner { height: auto; min-height: 62px; padding: 10px 16px; flex-wrap: wrap; gap: 10px 12px; }
  .pt-header-sep { display: none; }
  .pt-header-brand-text em { display: none; }
  .pt-header-brand-text b { font-size: 15px; }
  .pt-me { flex: 1; min-width: 0; }
  .pt-me-name { max-width: none; font-size: 13.5px; }
  .pt-me-sub { gap: 6px; }
  .pt-me-city { display: none; }
  .pt-accepting { order: 4; }
  .pt-settings-btn { order: 5; }
  .pt-logout { order: 6; }
  .pt-header-brand { order: 1; }
  .pt-me { order: 2; }
  .pt-header-inner .zl-spacer { order: 3; flex-basis: 100%; height: 0; }
  .pt-main { margin-top: 18px; padding: 0 16px; gap: 16px; }
  .pt-stat { padding: 15px 16px 14px; }
  .pt-stat-value { font-size: 30px; }
  .pt-board-head { padding: 11px 14px; }
  .pt-order-list { padding: 13px 14px 16px; }
  .pt-order { grid-template-columns: minmax(0, 1fr); padding: 15px 15px 15px 18px; }
  .pt-order-side { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; border-top: 1px dashed rgba(96, 165, 250, 0.12); padding-top: 12px; }
  .pt-sla { text-align: left; }
  .pt-order-actions { justify-content: flex-end; }
  .pt-footer { padding: 0 16px 22px; }
}

@media (max-width: 620px) {
  .pt-login { padding: 24px 16px 30px; align-items: flex-start; }
  .pt-login-inner { gap: 26px; }
  .pt-brand-copy h1 { font-size: 27px; }
  .pt-brand-copy p { font-size: 12.5px; }
  .pt-value-list p { display: none; }
  .pt-value-icon { width: 32px; height: 32px; border-radius: 9px; }
  .pt-value-icon svg { width: 16px; height: 16px; }
  .pt-value-list b { font-size: 13px; }
  .pt-login-card { padding: 22px 18px; border-radius: 18px; }
  .pt-login-card-head h2 { font-size: 21px; }
  .pt-stats { gap: 10px; }
  .pt-stat { border-radius: 13px; }
  .pt-stat-label { font-size: 11px; }
  .pt-stat-icon { width: 26px; height: 26px; }
  .pt-stat-value { font-size: 26px; }
  .pt-stat-sub { font-size: 10.5px; }
  .pt-board-head { gap: 10px; }
  .pt-tabs { width: 100%; }
  .pt-tab { flex: 1; justify-content: center; padding: 7px 8px; font-size: 12.5px; }
  .pt-board-tools { width: 100%; justify-content: space-between; }
  .pt-order-customer { font-size: 14.5px; }
  .pt-order-top { gap: 8px; }
  .pt-order-meta { font-size: 11.5px; gap: 5px 12px; }
  .pt-order-side { flex-wrap: wrap; gap: 10px; }
  .pt-order-actions { margin-left: auto; }
  .pt-sla-value { font-size: 18px; }
  .pt-modal-wide, .pt-modal-sm { width: 100% !important; }
  .pt-detail-grid { grid-template-columns: 1fr; }
  .pt-detail-grid .span-2 { grid-column: span 1; }
  .pt-settings-btn { font-size: 0; gap: 0; padding: 0 11px; }
  .pt-settings-btn svg { width: 16px; height: 16px; }
  .pt-accepting { padding: 5px 8px 5px 11px; gap: 9px; }
  .pt-accepting-text span { display: none; }
}

@media (max-width: 420px) {
  .pt-login-meta { display: none; }
  .pt-demo-head .zl-small { display: none; }
  .pt-footer span:nth-child(2), .pt-footer span:nth-child(3) { display: none; }
  .pt-footer-live { margin-left: auto; }
  .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-stat { padding: 13px 13px 12px; }
  .pt-stat-value { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-order, .pt-tag-chip, .pt-login-error { animation: none !important; }
}

/* ---------- 服务商通知中心 ---------- */
.pt-bell { position: relative; margin-right: 4px; }
.pt-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--zl-bg);
}
.pt-notify-panel {
  position: fixed;
  top: 64px;
  right: max(18px, calc((100vw - 1200px) / 2));
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #0b1a33;
  border: 1px solid var(--zl-border-hi);
  border-radius: 14px;
  box-shadow: var(--zl-shadow);
  overflow: hidden;
}
.pt-notify-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--zl-border); }
.pt-notify-head b { font-size: 13.5px; }
.pt-notify-head button { border: 0; background: transparent; color: var(--zl-accent); font-size: 11.5px; cursor: pointer; }
.pt-notify-list { overflow: auto; padding: 6px 0; }
.pt-notify-item { padding: 11px 16px; border-bottom: 1px solid rgba(96,165,250,.08); cursor: pointer; transition: background .15s ease; }
.pt-notify-item:last-child { border-bottom: 0; }
.pt-notify-item:hover { background: rgba(56,189,248,.06); }
.pt-notify-item.is-unread { background: rgba(56,189,248,.05); }
.pt-notify-item-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pt-notify-title { font-size: 12.5px; font-weight: 650; color: var(--zl-ink); }
.pt-notify-dot { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; flex: 0 0 6px; }
.pt-notify-content { margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--zl-muted); }
.pt-notify-time { margin-top: 3px; font-size: 10.5px; color: var(--zl-faint); font-family: var(--zl-mono); }
.pt-notify-empty { padding: 28px 16px; text-align: center; color: var(--zl-faint); font-size: 12px; }

/* hidden 属性优先于 display:flex，避免关闭后仍拦截点击 */
.pt-notify-panel[hidden] { display: none !important; }


/* ---------- PDE 在线学内嵌 ---------- */
.pt-learn-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(2,8,23,.55); padding: 24px; display: flex; }
.pt-learn-overlay[hidden] { display: none; }
.pt-learn-shell { width: 100%; max-width: 1320px; margin: 0 auto; background:#f4f7fc; border-radius:18px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 30px 80px -30px rgba(2,8,23,.6); }
.pt-learn-bar { height:58px; display:flex; align-items:center; gap:10px; padding:0 18px; background:#fff; border-bottom:1px solid #e3e9f2; flex:none; }
.pt-learn-bar b { font-size:15px; }
.pt-learn-sub { font-size:11px; color:#64748b; }
.pt-learn-spacer { flex:1; }
.pt-learn-shell iframe { width:100%; height:100%; border:0; background:#f4f7fc; flex:1; }
@media (max-width: 780px) { .pt-learn-overlay { padding:0; } .pt-learn-shell { border-radius:0; } }

/* ---------- 订单详情内嵌 AI ---------- */
.pt-ai { border:1px solid #dbeafe; background:#f8fbff; border-radius:12px; padding:12px; margin-top:10px; }
.pt-ai-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.pt-ai-head select { height:32px; border:1px solid #dbe4f0; border-radius:8px; background:#fff; font-size:12px; padding:0 8px; }
.pt-ai-quota { margin-left:auto; font-size:11px; color:#64748b; }
.pt-ai-body { max-height:220px; overflow:auto; display:flex; flex-direction:column; gap:8px; padding:4px 2px; }
.pt-ai-empty { color:#94a3b8; font-size:12px; padding:8px 2px; line-height:1.7; }
.pt-ai-msg { max-width:90%; padding:8px 11px; border-radius:10px; font-size:12px; line-height:1.7; white-space:pre-wrap; }
.pt-ai-msg.user { align-self:flex-end; background:#0b1b33; color:#fff; }
.pt-ai-msg.assistant { align-self:flex-start; background:#fff; border:1px solid #dbe4f0; }
.pt-ai-input { display:flex; gap:8px; margin-top:8px; }
.pt-ai-input textarea { flex:1; min-height:38px; max-height:90px; border:1px solid #dbe4f0; border-radius:8px; padding:8px 10px; font:inherit; font-size:12px; resize:vertical; }
.pt-ai-input .zl-btn { flex:none; }

.pt-learn-bar, .pt-learn-bar b { color: #0b1b33; }
.pt-learn-bar .zl-btn { color: #0b1b33; background: #f1f5f9; }
