/* ============================================================
 * screen-pub.css — 「订单发布」「成交喜报」独立滚动大屏共用样式
 * 供 screen-orders.html / screen-celebrations.html 使用
 * 设计基调与 screen.html 保持一致（深蓝科技风）
 * ============================================================ */

:root {
  --primary: #1a4fa0;
  --primary-light: #2d6ed6;
  --accent: #d4960a;
  --accent-light: #f5c842;
  --text: #e0e8f5;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.32);
  --line: rgba(45, 110, 214, 0.18);
  --success: #27ae60;
  --info: #5b9bf5;
}

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

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #0d1f3c 100%);
  color: var(--text);
}

/* 背景光晕装饰 */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 110, 214, 0.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(212, 150, 10, 0.10), transparent 46%);
}

.ps-app {
  position: relative; z-index: 1;
  width: 100vw; height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ══════════════ 顶部标题 ══════════════ */
.ps-header {
  flex-shrink: 0;
  height: clamp(62px, 7.4vh, 96px);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(90deg, rgba(26,79,160,0.22) 0%, rgba(26,79,160,0.58) 50%, rgba(26,79,160,0.22) 100%);
  border-bottom: 2px solid rgba(45,110,214,0.35);
}
.ps-header::after {
  content: ''; position: absolute; bottom: -1px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-light), var(--primary-light), transparent);
}
.ps-header h1 {
  font-size: clamp(20px, 1.85vw, 38px);
  font-weight: 900; letter-spacing: clamp(3px, 0.45vw, 9px); color: #fff;
  text-shadow: 0 0 22px rgba(45,110,214,0.65), 0 0 46px rgba(26,79,160,0.32);
  white-space: nowrap;
}
.ps-brand {
  position: absolute; left: clamp(14px, 1.4vw, 28px); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
.ps-brand img { height: clamp(30px, 3.4vh, 44px); border-radius: 6px; }
.ps-brand span { font-size: clamp(11px, 0.72vw, 15px); color: rgba(255,255,255,0.68); font-weight: 500; white-space: nowrap; }
.ps-clock {
  position: absolute; right: clamp(14px, 1.4vw, 28px); top: 50%; transform: translateY(-50%);
  font-size: clamp(11px, 0.82vw, 17px); font-weight: 600;
  color: rgba(255,255,255,0.72); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ══════════════ 统计条 ══════════════ */
.ps-stats {
  flex-shrink: 0;
  display: flex; gap: clamp(10px, 1vw, 20px);
  padding: clamp(12px, 1.6vh, 22px) clamp(16px, 1.6vw, 32px) clamp(10px, 1.2vh, 16px);
}
.ps-stat {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: clamp(10px, 0.9vw, 18px);
  padding: clamp(10px, 1.3vh, 20px) clamp(14px, 1.2vw, 24px);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(26,79,160,0.30) 0%, rgba(45,110,214,0.07) 100%);
  border: 1px solid rgba(45,110,214,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.ps-stat .ps-ico { font-size: clamp(20px, 1.8vw, 34px); line-height: 1; flex-shrink: 0; opacity: 0.9; }
.ps-stat .ps-txt { min-width: 0; }
.ps-stat .ps-val {
  font-size: clamp(19px, 2.05vw, 40px); font-weight: 900; color: #fff; line-height: 1.08;
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-stat .ps-val small { font-size: 0.48em; font-weight: 700; opacity: 0.7; margin-left: 2px; }
.ps-stat .ps-lbl {
  font-size: clamp(10px, 0.7vw, 14px); color: var(--text-dim);
  letter-spacing: 1px; margin-top: 2px; white-space: nowrap;
}
.ps-stat.gold {
  background: linear-gradient(120deg, rgba(212,150,10,0.26) 0%, rgba(212,150,10,0.05) 100%);
  border-color: rgba(245,200,66,0.30);
}
.ps-stat.gold .ps-val { color: #ffe9a8; text-shadow: 0 0 18px rgba(245,200,66,0.35); }

/* 多币种金额：允许换行分行展示，避免被截断 */
.ps-stat.multi { flex: 1.6; }
.ps-stat.multi .ps-val {
  display: flex; flex-wrap: wrap; gap: 0 0.5em;
  font-size: clamp(15px, 1.32vw, 26px);
  white-space: normal; overflow: visible; text-overflow: clip;
  line-height: 1.2;
}
.ps-stat.multi .ps-val span { white-space: nowrap; }

/* ══════════════ 滚动舞台 ══════════════ */
.ps-stage {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 0 clamp(16px, 1.6vw, 32px);
}
.ps-viewport {
  position: relative; flex: 1; min-height: 0;
  overflow: hidden;
}
/* 上下渐隐遮罩：滚动时行从表头下方柔和进出，
   高度收窄到只盖住半截行，避免第一行被整行压暗 */
.ps-viewport::before, .ps-viewport::after {
  content: ''; position: absolute; left: 0; right: 0; height: clamp(12px, 1.6vh, 22px);
  z-index: 3; pointer-events: none;
}
.ps-viewport::before { top: 0; background: linear-gradient(180deg, rgba(13,31,60,0.95), rgba(13,31,60,0)); }
.ps-viewport::after { bottom: 0; background: linear-gradient(0deg, rgba(13,31,60,0.92), rgba(13,31,60,0)); }

.ps-track {
  transition: transform 0.09s linear;
  will-change: transform;
}
.ps-track.no-anim { transition: none !important; }

/* ══════════════ 订单：表头 + 表行 ══════════════ */
/* 列：# / 商品图片 / 采购产品名称 / 来源国 / 采购数量 / 联系人 / 我要报价
   列宽按「内容多少」分配：名称最长给最大权重，短列（国家/数量/联系人）收紧并居中，
   固定列（# / 图片）用 clamp 随屏幕缩放；gap、padding 同样走变量，
   保证表头与表行共用同一套尺寸，不会错位。 */
.ps-ord-grid {
  --ord-gap: clamp(8px, 0.85vw, 18px);
  --ord-pad-x: clamp(12px, 1.1vw, 22px);
  --ord-pad-y: clamp(10px, 1.3vh, 18px);
  --ord-idx: clamp(30px, 2.4vw, 48px);
  --ord-img: clamp(88px, 5.6vw, 108px);

  display: grid;
  grid-template-columns:
    var(--ord-idx)            /* # */
    var(--ord-img)            /* 商品图片 */
    minmax(0, 3.6fr)          /* 采购产品名称（最长） */
    minmax(0, 1.15fr)         /* 来源国 */
    minmax(0, 1fr)            /* 采购数量 */
    minmax(0, 1fr)            /* 联系人 */
    minmax(0, 1.25fr);        /* 我要报价 */
  gap: var(--ord-gap);
  align-items: center;
}

/* 名称 / 短信息包裹层：桌面端「透明」掉，子元素直接参与上面的 7 列栅格 */
.ps-ord-main,
.ps-ord-meta { display: contents; }

/* 笔记本 / 中小尺寸屏：略收图片列和间距，给名称让位 */
@media (max-width: 1536px) {
  .ps-ord-grid {
    --ord-img: clamp(84px, 6vw, 96px);
    --ord-gap: clamp(8px, 0.8vw, 14px);
  }
}

/* 平板横屏 / 小笔记本：图片列固定，比例进一步向名称倾斜 */
@media (max-width: 1100px) {
  .ps-ord-grid {
    --ord-img: 84px;
    --ord-gap: 8px;
    grid-template-columns: 28px var(--ord-img) minmax(0, 2.8fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* 手机竖屏：不再是表格，改成「图片 + 名称/信息两行 + 报价」的卡片式排布 */
@media (max-width: 768px) {
  .ps-ord-row.ps-ord-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    --ord-pad-x: 10px;
    --ord-pad-y: 10px;
  }
  .ps-ord-main {
    display: flex; flex-direction: column; gap: 3px;
    flex: 1 1 0; min-width: 0;   /* 占满剩余空间，保证报价按钮留在同一行 */
  }
  .ps-ord-meta {
    display: flex; flex-wrap: wrap; gap: 2px 10px;
    font-size: 0.86em; color: var(--text-dim);
  }
  .ps-idx { flex: 0 0 20px; }
  .ps-ord-img { flex: 0 0 44px; }
  .ps-ord-act { flex: 0 0 auto; margin-left: auto; }
  .ps-ord-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-ord-country, .ps-ord-qty, .ps-ord-contact { text-align: left; }
}
.ps-thead {
  flex-shrink: 0;
  position: relative;
  padding: var(--ord-pad-y, 15px) var(--ord-pad-x, 20px);
  margin-bottom: 0.8em;
  border-radius: 10px;
  /* 深蓝渐变 + 金色左标 + 内高光 + 外发光：让表头从暗色列表里跳出来 */
  background: linear-gradient(90deg, rgba(45,110,214,0.74) 0%, rgba(26,79,160,0.58) 52%, rgba(45,110,214,0.36) 100%);
  border: 1px solid rgba(91,155,245,0.52);
  border-left: 3px solid var(--accent-light, #f5c842);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 4px 18px rgba(45,110,214,0.28);
  /* 字号必须大于数据行（数据行是 clamp(12px,0.95vw,19px)），否则表头看着比内容还弱 */
  font-size: clamp(17px, 1.2vw, 26px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
/* 顶部 + 底部各一道细金线，上下呼应，表头的"标题感"更明确 */
.ps-thead::after {
  content: '';
  position: absolute; left: 12px; right: 12px; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(245,200,66,0) 0%, rgba(245,200,66,0.9) 22%, rgba(245,200,66,0.9) 78%, rgba(245,200,66,0) 100%);
  border-radius: 2px;
}
.ps-thead::before {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(245,200,66,0) 0%, rgba(245,200,66,0.5) 30%, rgba(245,200,66,0.5) 70%, rgba(245,200,66,0) 100%);
  border-radius: 2px;
}
/* 短列表头居中，与数据行的居中显示保持一致 */
.ps-thead > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ps-thead > div:nth-child(3) { text-align: left; }   /* 采购产品名称 */

.ps-ord-row {
  padding: var(--ord-pad-y, 15px) var(--ord-pad-x, 20px);
  margin-bottom: 0.5em;
  border-radius: 10px;
  border-left: 3px solid rgba(245,200,66,0.55);
  background: linear-gradient(100deg, rgba(245,200,66,0.075) 0%, rgba(45,110,214,0.045) 100%);
  font-size: clamp(12px, 0.95vw, 19px);
  transition: background 0.3s;
}
.ps-ord-row:nth-child(even) {
  background: linear-gradient(100deg, rgba(245,200,66,0.11) 0%, rgba(45,110,214,0.075) 100%);
}
.ps-ord-row:hover { background: linear-gradient(100deg, rgba(245,200,66,0.18) 0%, rgba(45,110,214,0.11) 100%); }

.ps-idx {
  font-size: 0.82em; font-weight: 900; color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums; text-align: center;
}
.ps-ord-name {
  font-size: 1.06em; font-weight: 700; color: #f2f6fd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 商品图片（后台上传的第一张，多于一张显示 +N 角标） */
.ps-ord-img {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ps-ord-img img {
  width: clamp(40px, 3.4vw, 68px);
  height: clamp(40px, 3.4vw, 68px);
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(245,200,66,0.45);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  cursor: zoom-in;              /* 点击可放大 */
  transition: transform .18s, border-color .18s;
}
.ps-ord-img img:hover { transform: scale(1.08); border-color: rgba(245,200,66,0.9); }
.ps-ord-img-none { color: rgba(255,255,255,0.22); font-weight: 800; }

/* ══════════════ 商品图片放大（灯箱） ══════════════ */
.ps-lightbox {
  position: fixed; inset: 0; z-index: 10050;
  display: none; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(4,10,22,0.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ps-lightbox.is-open { display: flex; }
.ps-lb-img {
  max-width: 88vw; max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(245,200,66,0.5);
  background: #0a1526;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  cursor: default;
}
.ps-lb-close {
  position: absolute; top: 24px; right: 32px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.ps-lb-close:hover { background: rgba(255,255,255,0.24); }
.ps-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.ps-lb-nav:hover { background: rgba(255,255,255,0.24); }
.ps-lb-prev { left: 3vw; }
.ps-lb-next { right: 3vw; }
.ps-lb-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 15px; letter-spacing: 1px; color: rgba(255,255,255,0.75);
}

/* 手机：灯箱按钮缩小，避免遮挡图片 */
@media (max-width: 768px) {
  .ps-lb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  .ps-lb-nav { width: 40px; height: 40px; font-size: 24px; }
  .ps-lb-prev { left: 6px; }
  .ps-lb-next { right: 6px; }
}

/* 短列统一居中：列宽收紧后居中显示，避免右侧留出大片空白 */
.ps-ord-country { color: #8fe0bc; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ps-ord-country .flag { margin-right: 0.25em; opacity: 0.85; }
/* 采购数量 / 联系人 / 联系电话 */
.ps-ord-qty {
  color: #ffe9a8; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.ps-ord-contact {
  color: #a8c8f5; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.ps-ord-phone {
  color: rgba(255, 255, 255, 0.86); font-weight: 600; letter-spacing: 0.5px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
}
.ps-ord-cat { color: #a8c8f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-ord-proj { color: rgba(255,255,255,0.52); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-ord-amt {
  font-size: 1.1em; font-weight: 900; color: #ffe9a8; text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(245,200,66,0.32);
}
.ps-ord-date {
  font-size: 0.86em; color: rgba(255,255,255,0.42); text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* 状态标签 */
.ps-st {
  display: inline-block;
  font-size: 0.76em; font-weight: 700; line-height: 1.75;
  padding: 0 0.7em; border-radius: 8px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.ps-st.s1 { color: #8fe0bc; background: rgba(39,174,96,0.16); border: 1px solid rgba(39,174,96,0.32); }
.ps-st.s2 { color: #a8c8f5; background: rgba(41,128,185,0.18); border: 1px solid rgba(91,155,245,0.32); }
.ps-st.s3 { color: #d9c4f5; background: rgba(155,89,182,0.18); border: 1px solid rgba(192,132,252,0.32); }
.ps-st.sx { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); }

/* ══════════════ 喜报：卡片 ══════════════ */
.ps-cel-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.1vw, 24px);
  align-items: center;
  padding: clamp(13px, 1.45vh, 24px) clamp(16px, 1.3vw, 28px);
  margin-bottom: clamp(8px, 0.85vh, 14px);
  border-radius: 14px;
  border-left: 4px solid var(--accent-light);
  background: linear-gradient(100deg, rgba(212,150,10,0.14) 0%, rgba(45,110,214,0.055) 55%, rgba(45,110,214,0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
  overflow: hidden;
}
.ps-cel-row:nth-child(even) {
  background: linear-gradient(100deg, rgba(212,150,10,0.20) 0%, rgba(45,110,214,0.075) 55%, rgba(45,110,214,0.03) 100%);
}
.ps-cel-row::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #ffe9a8, #d4960a);
  box-shadow: 0 0 14px rgba(245,200,66,0.55);
}
.ps-cel-fire {
  font-size: clamp(22px, 1.9vw, 38px); line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(245,200,66,0.35));
  animation: ps-bounce 2.8s ease-in-out infinite;
}
@keyframes ps-bounce {
  0%, 86%, 100% { transform: translateY(0) scale(1); }
  91% { transform: translateY(-4px) scale(1.1); }
  96% { transform: translateY(0) scale(1); }
}
.ps-cel-body { min-width: 0; }
.ps-cel-title {
  font-size: clamp(14px, 1.15vw, 24px); font-weight: 800; color: #fff8e4;
  line-height: 1.35; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(245,200,66,0.18);
}
/* 首条加「最新」角标，增强仪式感 */
.ps-cel-row.is-latest { border-left-color: #ffe9a8; }
.ps-cel-row.is-latest .ps-cel-title::before {
  content: '最新'; display: inline-block;
  font-size: clamp(9px, 0.6vw, 13px); line-height: 1.75; font-weight: 700;
  padding: 0 0.6em; border-radius: 5px; margin-right: 0.6em;
  vertical-align: 0.16em; letter-spacing: 1px;
  background: rgba(245,200,66,0.22); color: #ffe9a8;
  border: 1px solid rgba(245,200,66,0.48);
}
.ps-cel-summary {
  font-size: clamp(11px, 0.83vw, 17px); color: rgba(255,255,255,0.63);
  line-height: 1.5; margin-top: 0.35em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-cel-meta {
  display: flex; align-items: center; gap: clamp(8px, 0.9vw, 16px);
  flex-wrap: wrap; margin-top: 0.55em;
  font-size: clamp(10px, 0.72vw, 14px); color: rgba(255,255,255,0.42);
}
.ps-cel-meta b { color: rgba(255,255,255,0.72); font-weight: 600; }
.ps-cel-meta .dot { opacity: 0.3; }
.ps-cel-amt {
  font-size: clamp(18px, 1.85vw, 36px); font-weight: 900; color: #ffe9a8;
  white-space: nowrap; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(245,200,66,0.42);
  letter-spacing: 0.5px;
}

/* ══════════════ 空态 ══════════════ */
.ps-empty {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: rgba(255,255,255,0.26);
  font-size: clamp(13px, 0.95vw, 18px);
}
.ps-empty .ico { font-size: clamp(38px, 4vw, 76px); opacity: 0.32; }

/* ══════════════ 底部 ══════════════ */
.ps-footer {
  flex-shrink: 0;
  height: clamp(28px, 3.4vh, 40px);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  background: rgba(26,79,160,0.14);
  border-top: 1px solid rgba(45,110,214,0.18);
  font-size: clamp(10px, 0.68vw, 13px); color: rgba(255,255,255,0.36);
  white-space: nowrap; overflow: hidden;
}
.ps-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  display: inline-block; animation: ps-pulse 2s ease-in-out infinite;
}
@keyframes ps-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ══════════════ 全屏按钮 ══════════════ */
.ps-fullscreen {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,79,160,0.82); border: 1px solid rgba(45,110,214,0.5);
  color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.ps-fullscreen:hover { background: rgba(45,110,214,1); border-color: var(--accent-light); }

/* ══════════════ 手机竖屏适配 ══════════════ */
@media (max-width: 768px) {
  .ps-brand { display: none; }
  .ps-clock { display: none; }
  .ps-stats { flex-wrap: wrap; gap: 8px; padding: 10px 12px 8px; }
  .ps-stat { flex: 1 1 calc(50% - 8px); }
  .ps-stage { padding: 0 10px; }
  .ps-thead { display: none; }
  .ps-fullscreen { display: none; }
  /* 列宽 / 间距已在 .ps-ord-grid 的手机档统一处理，这里只缩缩略图 */
  .ps-ord-img img { width: 36px; height: 36px; border-radius: 6px; }
}

/* ══════════════════════════════════════════════════════════
 *  我要报价（列表按钮 + 弹窗）
 *  DOM 在 screen-orders.html，逻辑在 screen-quote.js
 * ══════════════════════════════════════════════════════════ */

/* ---------- 列表里的按钮 ---------- */
.ps-ord-act { display: flex; align-items: center; justify-content: center; }

.ps-quote-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: clamp(6px, 0.42vw, 10px) clamp(14px, 1.05vw, 24px);
  font-size: clamp(13px, 0.98vw, 20px);
  font-weight: 800; letter-spacing: 0.5px; white-space: nowrap;
  color: #3a2a00;
  background: linear-gradient(135deg, #ffe08a 0%, #f5c842 55%, #e8b429 100%);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 200, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.ps-quote-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(245, 200, 66, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ps-quote-btn:active { transform: translateY(0); }

/* ---------- 遮罩 ---------- */
.psq-mask {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(3, 12, 30, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.psq-mask.is-open { display: flex; animation: psq-fade 0.18s ease-out; }
@keyframes psq-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 卡片 ---------- */
.psq-card {
  position: relative;
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  padding: 26px 26px 20px;
  background: #fff; color: #1e2a3a;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: psq-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  -webkit-overflow-scrolling: touch;
}
@keyframes psq-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.psq-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: #8a97a8;
  background: #f2f5fa; border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.psq-close:hover { background: #e6ecf5; color: #33445c; }

.psq-head { margin-bottom: 18px; }
.psq-kicker {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #8a6100; background: rgba(245, 200, 66, 0.22);
}
.psq-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #16233a; }
.psq-sub { margin: 0; font-size: 13px; color: #7b8798; line-height: 1.5; }

/* 关联的采购需求 */
.psq-target {
  margin-bottom: 14px; padding: 10px 12px;
  font-size: 13.5px; font-weight: 700; color: #1a4fa0;
  background: rgba(45, 110, 214, 0.08);
  border-left: 3px solid #2d6ed6; border-radius: 6px;
  word-break: break-all;
}

/* ---------- 表单 ---------- */
.psq-field { display: block; margin-bottom: 14px; }
.psq-label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; color: #445065;
}
.psq-label i { color: #e0483c; font-style: normal; margin-left: 2px; }
.psq-label em { font-style: normal; font-weight: 500; font-size: 12px; color: #98a3b3; margin-left: 6px; }

.psq-input {
  width: 100%; height: 44px; padding: 0 13px;
  font-size: 15px; color: #1e2a3a;
  background: #f8fafd; border: 1.5px solid #dbe3ef; border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.psq-input::placeholder { color: #a9b4c4; }
.psq-input:focus {
  outline: none; background: #fff; border-color: #2d6ed6;
  box-shadow: 0 0 0 3px rgba(45, 110, 214, 0.14);
}

.psq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 图片上传 ---------- */
.psq-uploader { display: flex; flex-wrap: wrap; gap: 10px; }

.psq-pick {
  width: 84px; height: 84px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px dashed #c6d2e2; border-radius: 10px;
  background: #f8fafd; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.psq-pick:hover { border-color: #2d6ed6; background: #f0f6ff; }
.psq-pick-ico { font-size: 22px; line-height: 1; color: #7f8ea3; }
.psq-pick-txt { font-size: 10px; color: #94a1b3; }

.psq-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.psq-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.psq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psq-thumb-del {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; color: #fff;
  background: rgba(0, 0, 0, 0.55); border: none; cursor: pointer;
}
.psq-thumb-del:hover { background: rgba(0, 0, 0, 0.8); }

/* ---------- 提示 / 按钮 ---------- */
.psq-msg {
  display: none; margin-bottom: 12px; padding: 9px 12px;
  font-size: 13px; border-radius: 8px; line-height: 1.5;
}
.psq-msg.is-show { display: block; }
.psq-msg.is-error { color: #b3261e; background: rgba(224, 72, 60, 0.1); border: 1px solid rgba(224, 72, 60, 0.25); }
.psq-msg.is-ok { color: #17603c; background: rgba(31, 157, 98, 0.1); border: 1px solid rgba(31, 157, 98, 0.25); }

.psq-acts { display: flex; gap: 10px; margin-top: 6px; }
.psq-btn {
  flex: 1; height: 46px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer;
  transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.psq-btn:active { transform: translateY(1px); }
.psq-btn-ghost { flex: 0 0 96px; color: #5b687d; background: #eef2f8; }
.psq-btn-ghost:hover { background: #e3eaf4; }
.psq-btn-main {
  color: #fff;
  background: linear-gradient(135deg, #3577e0 0%, #1a4fa0 100%);
  box-shadow: 0 8px 20px rgba(26, 79, 160, 0.28);
}
.psq-btn-main:hover { filter: brightness(1.06); }
.psq-btn-main:disabled { opacity: 0.65; cursor: not-allowed; filter: none; }

.psq-note { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: #a3aebe; }

/* ---------- 提交成功 ---------- */
.psq-done { display: none; padding: 30px 10px 34px; text-align: center; }
.psq-done.is-show { display: block; animation: psq-fade 0.2s ease-out; }
.psq-done-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  background: linear-gradient(135deg, #34c07a 0%, #1f9d62 100%);
  box-shadow: 0 10px 26px rgba(31, 157, 98, 0.35);
}
.psq-done-t { font-size: 19px; font-weight: 800; color: #16233a; margin-bottom: 8px; }
.psq-done-s { font-size: 13px; color: #7b8798; line-height: 1.6; }

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  .psq-card { padding: 22px 18px 18px; border-radius: 14px; max-height: 94vh; }
  .psq-title { font-size: 19px; }
  .psq-row { grid-template-columns: 1fr; gap: 0; }
  .psq-input { height: 46px; font-size: 16px; }   /* iOS 输入框 <16px 会自动放大页面 */
  .ps-quote-btn {
    padding: 5px 10px; font-size: 11px; letter-spacing: 0;
  }
}
