/* ===== 全站字体统一（2026-10-13）：英文/数字＝老站 Rajdhani；中文＝PingFang / 微软雅黑 ===== */
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/rajdhani-500.ttf') format('truetype')}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/rajdhani-500.ttf') format('truetype')}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/rajdhani-600.ttf') format('truetype')}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/rajdhani-700.ttf') format('truetype')}

/* ============================================================
   FOSO 客户后台 — 样式
   品牌：FOSO 黄 #F2CA6B / 深墨 #231815
   基调：浅底、留白充足、克制的色彩与边框，数据密度适中
   ============================================================ */
:root {
  --p-ink: #231815;
  --p-ink-2: #3a2e1c;
  --p-yellow: #F2CA6B;
  --p-yellow-deep: #F2CA6B;
  --p-yellow-soft: #FBF5E6;
  --p-paper: #FAF7F1;
  --p-paper-2: #F4EFE6;
  --p-white: #fff;
  --p-line: rgba(35, 24, 21, .12);
  --p-line-2: rgba(35, 24, 21, .07);
  --p-muted: #8a8378;
  --p-muted-2: #a9a196;
  --p-red: #B4453C;
  --p-green: #3F7F5C;
  --p-blue: #3A6EA5;
  --p-orange: #C2793A;
  --p-radius: 12px;
  --p-shadow: 0 6px 24px rgba(35, 24, 21, .08);
  --p-shadow-lg: 0 18px 48px rgba(35, 24, 21, .16);
  --p-font: 'Rajdhani', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--p-font);
  color: var(--p-ink);
  background: var(--p-paper);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--p-ink); }
.p-hide { display: none !important; }

/* ---------------- 通用组件 ---------------- */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--p-ink); color: #fff; transition: all .18s ease;
}
.p-btn:hover { background: var(--p-yellow); color: var(--p-ink); }
.p-btn--yellow { background: var(--p-yellow); color: var(--p-ink); }
.p-btn--yellow:hover { background: var(--p-yellow-deep); }
.p-btn--ghost { background: transparent; border-color: var(--p-line); color: var(--p-ink); }
.p-btn--ghost:hover { border-color: var(--p-yellow); background: var(--p-yellow-soft); color: var(--p-ink); }
.p-btn--sm { padding: 7px 14px; font-size: 12.5px; }
.p-btn--block { width: 100%; }
.p-btn:disabled { opacity: .5; cursor: not-allowed; }
.p-btn--danger { background: var(--p-white); border-color: rgba(180,69,60,.35); color: var(--p-red); }
.p-btn--danger:hover { background: var(--p-red); color: #fff; border-color: var(--p-red); }

.p-card {
  background: var(--p-white); border: 1px solid var(--p-line-2);
  border-radius: var(--p-radius); box-shadow: var(--p-shadow);
}
.p-card-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--p-line-2);
}
.p-card-hd h3 { margin: 0; font-size: 15px; font-weight: 700; }
.p-card-bd { padding: 18px 20px; }

.p-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--p-paper-2); color: var(--p-ink); white-space: nowrap;
}
.p-tag--yellow { background: var(--p-yellow-soft); color: #8a6a10; }
.p-tag--green { background: rgba(63,127,92,.1); color: var(--p-green); }
.p-tag--blue { background: rgba(58,110,165,.1); color: var(--p-blue); }
.p-tag--red { background: rgba(180,69,60,.1); color: var(--p-red); }
.p-tag--orange { background: rgba(194,121,58,.12); color: var(--p-orange); }
.p-tag--grey { background: rgba(35,24,21,.06); color: var(--p-muted); }

.p-muted { color: var(--p-muted); }
.p-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.p-num { font-variant-numeric: tabular-nums; }
.p-empty { padding: 48px 20px; text-align: center; color: var(--p-muted); }
.p-empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 10px; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--p-paper);
}
.login-left {
  background: var(--p-ink); color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 56px;
}
.login-left::after {
  content: ""; position: absolute; right: -180px; bottom: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,202,107,.18), transparent 68%);
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-logo { display: block; width: auto; }
.login-brand .brand-logo { height: 56px; }
/* 左上角 logo 可点击，回到企业官网首页 */
.brand-home { display: block; line-height: 0; text-decoration: none; border-radius: 6px; transition: opacity .15s; }
.brand-home:hover { opacity: .82; }
.login-hero { position: relative; z-index: 1; margin: 40px 0; }
.login-hero h1 { font-size: 36px; line-height: 1.28; margin: 0 0 16px; font-weight: 700; letter-spacing: -.01em; }
.login-hero h1 em { font-style: normal; color: var(--p-yellow); }
.login-hero p { font-size: 15px; line-height: 1.85; opacity: .72; margin: 0; max-width: 430px; }
.login-feats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.login-feats li { list-style: none; font-size: 13px; opacity: .8; display: flex; align-items: center; gap: 8px; }
.login-feats ul { margin: 0; padding: 0; display: contents; }
.login-feats li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p-yellow); flex-shrink: 0;
}
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.login-box { width: 100%; max-width: 372px; }
.login-box h2 { font-size: 23px; margin: 0 0 6px; font-weight: 700; }
.login-box > p.sub { margin: 0 0 26px; color: var(--p-muted); font-size: 13.5px; }
.p-field { margin-bottom: 16px; }
.p-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: #4a4137; }
.p-field input, .p-field select, .p-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--p-line); border-radius: 9px;
  background: var(--p-white); outline: none; transition: border-color .15s, box-shadow .15s;
}
.p-field input:focus, .p-field select:focus, .p-field textarea:focus {
  border-color: var(--p-yellow); box-shadow: 0 0 0 3px rgba(242,202,107,.22);
}
.p-field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }
.p-field .hint { font-size: 11.5px; color: var(--p-muted-2); margin-top: 6px; }
/* 密码框 + 显示/隐藏按钮 */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; border-radius: 7px; color: #a89d8f;
}
.pw-eye:hover { background: rgba(0,0,0,.045); color: #6b6157; }
.pw-eye.is-on { color: var(--p-ink); }
.pw-eye svg { width: 18px; height: 18px; }
.login-alert {
  padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 18px;
  background: rgba(180,69,60,.08); border: 1px solid rgba(180,69,60,.24); color: #8f3229; line-height: 1.65;
}
.login-alert--ok { background: rgba(63,127,92,.08); border-color: rgba(63,127,92,.24); color: #2f6047; }
.login-alert--warn { background: rgba(194,121,58,.09); border-color: rgba(194,121,58,.26); color: #8d5520; }
.login-geo {
  margin-top: 22px; padding: 13px 15px; border-radius: 10px; font-size: 12.5px;
  background: var(--p-paper-2); color: #5c5347; line-height: 1.7;
}
.login-geo b { color: var(--p-ink); }
.login-note { margin-top: 20px; font-size: 12px; color: var(--p-muted-2); line-height: 1.75; }
.login-note strong { color: #6b6257; }
.login-dev {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  border: 1px dashed rgba(194,121,58,.45); background: rgba(194,121,58,.05);
}
.login-dev label { font-size: 11.5px; font-weight: 700; color: #8d5520; display: block; margin-bottom: 6px; }
.login-dev select { width: 100%; padding: 8px 11px; border: 1px solid rgba(194,121,58,.35); border-radius: 8px; background: #fff; }
.login-dev .hint { font-size: 11px; color: #a1785a; margin-top: 6px; line-height: 1.6; }
.login-foot { margin-top: 26px; font-size: 11.5px; color: var(--p-muted-2); text-align: center; }

/* ---------------- 应用外壳 ---------------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 226px; flex-shrink: 0; background: var(--p-ink); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { padding: 20px 18px 16px; display: flex; flex-direction: column; align-items: flex-start; }
.side-brand .brand-logo { height: 36px; max-width: 100%; }
.side-brand-tag { font-size: 9px; letter-spacing: .22em; opacity: .55; }
.side-cust {
  margin: 0 14px 14px; padding: 11px 13px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.side-cust b { font-size: 12.5px; display: block; line-height: 1.4; }
.side-cust span { font-size: 10.5px; opacity: .6; display: block; margin-top: 3px; }
.side-nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 10px 16px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9.5px 12px; border-radius: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.72); margin-bottom: 2px; transition: all .15s;
}
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.on { background: var(--p-yellow); color: var(--p-ink); font-weight: 600; }
.side-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.side-nav .grp {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.34); padding: 16px 12px 7px; font-weight: 700;
}
.side-nav .badge {
  margin-left: auto; background: var(--p-red); color: #fff; font-size: 10.5px;
  min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
}
.side-nav a.on .badge { background: var(--p-ink); color: var(--p-yellow); }
.side-foot { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .geo { font-size: 10.5px; opacity: .5; line-height: 1.6; margin-bottom: 9px; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; flex-shrink: 0; background: rgba(250,247,241,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p-line-2); display: flex; align-items: center;
  padding: 0 26px; gap: 14px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; }
.topbar .crumb { font-size: 12px; color: var(--p-muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  padding: 6px 12px; border-radius: 999px; background: var(--p-white); border: 1px solid var(--p-line-2);
  color: var(--p-muted);
}
.tb-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--p-green); }
.tb-icon {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--p-line-2);
  background: var(--p-white); display: grid; place-items: center; position: relative; color: var(--p-ink);
}
.tb-icon:hover { border-color: var(--p-yellow); background: var(--p-yellow-soft); }
.tb-icon svg { width: 17px; height: 17px; }
.tb-icon .dot2 {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-red); border: 2px solid var(--p-white);
}
.tb-user { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--p-line-2); }
.tb-ava {
  width: 34px; height: 34px; border-radius: 10px; background: var(--p-yellow); color: var(--p-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.tb-user b { font-size: 13px; display: block; line-height: 1.2; }
.tb-user span { font-size: 11px; color: var(--p-muted); display: block; }
.content { flex: 1 1 auto; padding: 24px 26px 56px; max-width: 1560px; width: 100%; }
.content-in { animation: pfade .22s ease; }
@keyframes pfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------- 概览 ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--p-white); border: 1px solid var(--p-line-2); border-radius: var(--p-radius); padding: 17px 19px; }
.kpi .lab { font-size: 12px; color: var(--p-muted); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 27px; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; line-height: 1.15; }
.kpi .val small { font-size: 13px; font-weight: 600; color: var(--p-muted); margin-left: 3px; }
.kpi .foot { font-size: 11.5px; color: var(--p-muted-2); margin-top: 5px; }
.kpi--accent { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.kpi--accent .lab, .kpi--accent .foot { color: rgba(255,255,255,.6); }
.kpi--accent .val { color: var(--p-yellow); }
.grid-2 { display: grid; grid-template-columns: 1.42fr 1fr; gap: 16px; align-items: start; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ---------------- 列表 / 表格 ---------------- */
.filters {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 18px; background: var(--p-white);
  border: 1px solid var(--p-line-2); border-radius: var(--p-radius); margin-bottom: 14px;
}
.filters select, .filters input[type=search] {
  padding: 8px 12px; border: 1px solid var(--p-line); border-radius: 8px; background: var(--p-white);
  outline: none; font-size: 13px;
}
.filters select:focus, .filters input:focus { border-color: var(--p-yellow); }
.filters .sp { margin-left: auto; font-size: 12px; color: var(--p-muted); }
.filters .seg { display: flex; gap: 4px; background: var(--p-paper-2); padding: 3px; border-radius: 9px; }
.filters .seg button {
  border: none; background: transparent; padding: 6px 13px; border-radius: 7px;
  font-size: 12.5px; color: #5c5347; font-weight: 600;
}
.filters .seg button.on { background: var(--p-white); color: var(--p-ink); box-shadow: 0 1px 3px rgba(35,24,21,.1); }

.p-table-wrap { background: var(--p-white); border: 1px solid var(--p-line-2); border-radius: var(--p-radius); overflow: hidden; }
table.p-table { width: 100%; border-collapse: collapse; }
table.p-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--p-muted); font-weight: 700; padding: 12px 16px;
  background: var(--p-paper); border-bottom: 1px solid var(--p-line-2); white-space: nowrap;
}
table.p-table td { padding: 13px 16px; border-bottom: 1px solid var(--p-line-2); font-size: 13px; vertical-align: middle; }
table.p-table tbody tr:last-child td { border-bottom: none; }
table.p-table tbody tr:hover { background: var(--p-yellow-soft); }
table.p-table tr.clickable { cursor: pointer; }
table.p-table .no { font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
table.p-table .right { text-align: right; }
table.p-table tfoot td { background: var(--p-paper); font-weight: 700; border-top: 1px solid var(--p-line); }

/* ---------------- 详情 ---------------- */
.detail-hd { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-hd h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.detail-hd .meta { font-size: 12.5px; color: var(--p-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.detail-actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; align-items: baseline; }
.dl dt { font-size: 12.5px; color: var(--p-muted); white-space: nowrap; }
.dl dd { margin: 0; font-size: 13.5px; font-weight: 500; }
.dl--2 { grid-template-columns: max-content 1fr max-content 1fr; }

/* 进度时间轴 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 7px; bottom: 7px; width: 2px; background: var(--p-line);
}
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  position: absolute; left: -26px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--p-white); border: 2px solid var(--p-line);
}
.tl-item.done .dot { background: var(--p-yellow); border-color: var(--p-yellow); }
.tl-item.cur .dot { background: var(--p-ink); border-color: var(--p-ink); box-shadow: 0 0 0 4px rgba(242,202,107,.35); }
.tl-item b { font-size: 13.5px; display: block; }
.tl-item.done b { color: var(--p-ink); }
.tl-item:not(.done) b { color: var(--p-muted-2); }
.tl-item .at { font-size: 11.5px; color: var(--p-muted-2); margin-top: 2px; }
.tl-item .note { font-size: 12.5px; color: var(--p-muted); margin-top: 4px; }

/* 进度条（横向步骤） */
.steps { display: flex; gap: 0; margin: 4px 0 22px; }
.steps .st { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: var(--p-muted-2); }
.steps .st::before {
  content: ""; display: block; height: 3px; background: var(--p-line); margin-bottom: 9px;
}
.steps .st.done::before { background: var(--p-yellow); }
.steps .st.cur::before { background: var(--p-ink); }
.steps .st.done, .steps .st.cur { color: var(--p-ink); font-weight: 600; }

/* 文件行 */
.file-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  border-bottom: 1px solid var(--p-line-2);
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: var(--p-yellow-soft); }
.file-ico {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--p-paper-2); color: #6b6257;
}
.file-ico.t-PI, .file-ico.t-CI { background: rgba(242,202,107,.28); color: #8a6a10; }
.file-ico.t-BL, .file-ico.t-PL { background: rgba(58,110,165,.12); color: var(--p-blue); }
.file-ico.t-CERT, .file-ico.t-CO { background: rgba(63,127,92,.12); color: var(--p-green); }
.file-ico.t-PHOTO { background: rgba(194,121,58,.14); color: var(--p-orange); }
.file-row .nm { flex: 1 1 auto; min-width: 0; }
.file-row .nm b { font-size: 13.5px; font-weight: 600; display: block; }
.file-row .nm span { font-size: 11.5px; color: var(--p-muted-2); }

/* 通知 */
.note-item { display: flex; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--p-line-2); }
.note-item:last-child { border-bottom: none; }
.note-item.unread { background: rgba(242,202,107,.07); }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-line); margin-top: 7px; flex-shrink: 0; }
.note-item.unread .note-dot { background: var(--p-red); }
.note-item b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.note-item .body { font-size: 12.5px; color: var(--p-muted); line-height: 1.7; }
.note-item .at { font-size: 11px; color: var(--p-muted-2); margin-top: 5px; }

/* 公告 */
.ann { padding: 14px 18px; border-bottom: 1px solid var(--p-line-2); }
.ann:last-child { border-bottom: none; }
.ann b { font-size: 13.5px; }
.ann p { font-size: 12.5px; color: var(--p-muted); margin: 5px 0 0; line-height: 1.75; }
.ann .lv { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; background: var(--p-yellow-soft); color: #8a6a10; font-weight: 600; }
.ann .lv.holiday { background: rgba(180,69,60,.1); color: var(--p-red); }
.ann .lv.warning { background: rgba(194,121,58,.13); color: var(--p-orange); }

/* 工单对话 */
.thread { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.msg .who { font-size: 11px; color: var(--p-muted-2); margin-bottom: 4px; }
.msg--customer { align-self: flex-end; background: var(--p-yellow); color: var(--p-ink); border-top-right-radius: 4px; }
.msg--customer .who { color: rgba(35,24,21,.5); }
.msg--foso { align-self: flex-start; background: var(--p-white); border: 1px solid var(--p-line-2); border-top-left-radius: 4px; }

/* 表单（询价/工单） */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Toast */
#p-toast { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; }
.p-toast {
  padding: 12px 17px; border-radius: 10px; font-size: 13px; box-shadow: var(--p-shadow-lg);
  background: var(--p-ink); color: #fff; max-width: 380px; line-height: 1.6;
  animation: pslide .22s ease;
}
.p-toast--ok { background: #2f6047; }
.p-toast--err { background: #8f3229; }
@keyframes pslide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* 模态 */
.p-modal-bg {
  position: fixed; inset: 0; background: rgba(35,24,21,.42); z-index: 9000;
  display: grid; place-items: center; padding: 24px; animation: pfade .16s ease;
}
.p-modal {
  background: var(--p-white); border-radius: 14px; box-shadow: var(--p-shadow-lg);
  width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
}
.p-modal-hd { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--p-line-2); }
.p-modal-hd h3 { margin: 0; font-size: 16px; font-weight: 700; }
.p-modal-hd button { margin-left: auto; background: none; border: none; font-size: 22px; color: var(--p-muted); line-height: 1; }
.p-modal-bd { padding: 20px 22px; }
.p-modal-ft { padding: 15px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* 加载 */
.p-loading { display: grid; place-items: center; padding: 60px 0; color: var(--p-muted); }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--p-line);
  border-top-color: var(--p-yellow-deep); border-radius: 50%; animation: pspin .7s linear infinite;
}
@keyframes pspin { to { transform: rotate(360deg); } }

/* ---------------- 管理台 ---------------- */
.admin-bar { background: var(--p-ink); color: #fff; padding: 11px 26px; font-size: 12px; letter-spacing: .04em; }
.admin-bar b { color: var(--p-yellow); }
.awarn {
  padding: 12px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  background: rgba(194,121,58,.08); border: 1px solid rgba(194,121,58,.28); color: #8d5520; margin-bottom: 16px;
}
.cc { display: flex; gap: 5px; flex-wrap: wrap; }
.cc span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--p-paper-2); color: #5c5347;
  font-weight: 600;
}
.cc span.danger { background: rgba(180,69,60,.1); color: var(--p-red); }
.cc span.ok { background: rgba(63,127,92,.11); color: var(--p-green); }
.pillbox { display: flex; flex-wrap: wrap; gap: 6px; }
.pillbox button {
  border: 1px solid var(--p-line); background: var(--p-white); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: #5c5347;
}
.pillbox button.on { background: var(--p-yellow); border-color: var(--p-yellow); color: var(--p-ink); font-weight: 600; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2b { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .side { width: 62px; }
  .side-brand .brand-logo { height: 26px; max-width: 62px; object-fit: contain; object-position: left; }
  .side-brand-tag, .side-cust, .side-nav .grp, .side-nav a span.txt, .side-foot .geo { display: none; }
  .side-nav a { justify-content: center; padding: 11px 0; }
  .side-nav a .badge { position: absolute; margin: 0; transform: translate(14px, -12px); }
  .content { padding: 18px 14px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .dl--2 { grid-template-columns: max-content 1fr; }
}
@media (max-width: 620px) {
  .kpis { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .topbar h1 { font-size: 15px; }
  .tb-user div { display: none; }
  table.p-table th:nth-child(n+4), table.p-table td:nth-child(n+4) { display: none; }
}
