/* 帕沃发电机组报价系统 H5 —— 风格/布局对齐后台 /admin/quick（pavo 皮肤）
 * 主色 #DC7146 / 深色 #3D3A3A / 深色辅助 #B25C39；桌面双栏、移动单栏。
 * 含会员登录页（对齐后台登录页皮肤）。
 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #F0F2F5; color: #3D3A3A; font-size: 14px;
}

/* ================= 会员登录页（H5 移动优先） ================= */
.lg-page {
  min-height: 100vh; min-height: 100dvh; background: #F0F2F5;
  flex-direction: column;
}
.lg-hero {
  background: linear-gradient(150deg, #2b2828 0%, #3D3A3A 42%, #B25C39 82%, #DC7146 100%);
  color: #fff; text-align: center; padding: 46px 24px 64px;
  border-radius: 0 0 26px 26px;
}
.lg-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 18px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.lg-logo img { height: 46px; display: block; }
.lg-title { margin-top: 16px; font-size: 23px; font-weight: 800; letter-spacing: 2px; }
.lg-sub { margin-top: 8px; font-size: 10px; letter-spacing: 2.5px; color: rgba(255,255,255,0.62); }
.lg-card {
  position: relative; z-index: 1; margin: -36px 16px 0; background: #fff;
  border-radius: 16px; padding: 26px 20px 22px; box-shadow: 0 12px 36px rgba(44,36,27,0.14);
}
.lg-card h2 { margin: 0; font-size: 20px; font-weight: 700; color: #3D3A3A; }
.lg-tip { margin: 8px 0 22px; font-size: 12.5px; color: #9aa0a6; }
.lg-field { position: relative; margin-bottom: 14px; }
.lg-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: #c0c4cc; pointer-events: none; transition: fill .15s; }
.lg-field:focus-within .ico { fill: #DC7146; }
.lg-field input {
  width: 100%; height: 50px; border: 1px solid #E4E7ED; border-radius: 10px;
  padding: 0 15px 0 42px; font-size: 16px; /* 16px 防 iOS 聚焦自动放大 */
  color: #3D3A3A; outline: none; transition: all .15s; background: #fff;
}
.lg-field input:focus { border-color: #DC7146; box-shadow: 0 0 0 3px rgba(220,113,70,0.15); }
.login-err { min-height: 18px; margin: -4px 0 8px; font-size: 12.5px; color: #F56C6C; }
.btn-login {
  width: 100%; height: 50px; border: none; border-radius: 10px;
  background: linear-gradient(120deg, #DC7146, #B25C39); color: #fff; font-size: 16px; font-weight: 600;
  letter-spacing: 4px; cursor: pointer; transition: all .15s; box-shadow: 0 8px 20px rgba(220,113,70,0.30);
}
.btn-login:active { transform: translateY(1px); filter: brightness(1.05); }
.btn-login:disabled { opacity: .6; }
.lg-copy { margin-top: auto; padding: 22px 0 18px; text-align: center; font-size: 11px; color: #B6BABF; }
/* 桌面/平板: 卡片居中限宽 */
@media (min-width: 768px) {
  .lg-hero { padding: 60px 24px 80px; }
  .lg-card { width: 420px; max-width: calc(100vw - 32px); margin: -44px auto 0; }
}

/* ================= 品牌头 + 用户角标 ================= */
.pq-brand {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(150deg, #2b2828 0%, #3D3A3A 42%, #B25C39 82%, #DC7146 100%);
  color: #fff;
}
.pq-brand-logo { background: #fff; border-radius: 8px; padding: 5px 10px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.pq-brand-logo img { height: 30px; display: block; }
.pq-brand-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; }
.pq-brand-name small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 1.5px; color: rgba(255,255,255,.62); }
.pq-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pq-user-name { background: rgba(255,255,255,.14); border-radius: 12px; padding: 3px 12px; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-user-quota { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; }
.pq-user a { color: rgba(255,255,255,.85); text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 2px 12px; }
.pq-user a:active { background: rgba(255,255,255,.15); color: #fff; }

/* ================= 布局（对齐快捷面板：左配置 / 右计算与结果） ================= */
.pq-wrap { max-width: 1200px; margin: 0 auto; padding: 16px 12px 24px; }
.pq-layout { display: flex; gap: 16px; align-items: flex-start; }
.pq-left { flex: 1 1 58%; min-width: 0; }
.pq-right { flex: 1 1 42%; min-width: 0; }
@media (max-width: 992px) {
  .pq-layout { flex-direction: column; }
  .pq-left, .pq-right { flex: 1 1 100%; width: 100%; }
}

/* ---- 卡片 ---- */
.pq-card { background: #fff; border: 1px solid #E4E7ED; border-radius: 10px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(61,58,58,.04); }
.pq-card-head { padding: 11px 14px; border-bottom: 1px solid #F0F2F5; font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.pq-head-badge { margin-left: auto; font-weight: 400; font-size: 11.5px; color: #8C8C8C; background: #F5F7FA; border-radius: 10px; padding: 2px 10px; }
.pq-ic { font-style: normal; font-weight: 700; }
.pq-ic-primary { color: #DC7146; }
.pq-ic-green { color: #52C41A; }
.pq-card-body { padding: 13px 14px; }

/* ---- 表单字段 ---- */
.pq-req-grid { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.pq-field { padding: 0 5px; margin-bottom: 10px; }
.pq-w4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.pq-w6 { flex: 0 0 50%; max-width: 50%; }
.pq-w12 { flex: 0 0 100%; max-width: 100%; }
.pq-field label { display: block; font-size: 12px; color: #8C8C8C; margin-bottom: 4px; font-weight: 400; }
.pq-field select, .pq-field input {
  width: 100%; height: 40px; border: 1px solid #E4E7ED; border-radius: 6px; padding: 0 10px;
  font-size: 14px; color: #3D3A3A; background: #fff; outline: none; appearance: auto;
}
.pq-field select:focus, .pq-field input:focus { border-color: #DC7146; box-shadow: 0 0 0 2px rgba(220,113,70,.12); }
.pq-required .pq-field label::before { content: "*"; color: #F56C6C; margin-right: 3px; font-weight: 700; }
.pq-required .pq-field.pq-optional label::before { content: none; }
@media (max-width: 992px) { .pq-w4 { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 640px) { .pq-w4, .pq-w6 { flex: 0 0 100%; max-width: 100%; } }

/* 发动机型号: 模糊搜索下拉(原 select 隐藏作数据源) */
.pq-combo { position: relative; }
.pq-combo-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60; margin-top: 4px;
  background: #fff; border: 1px solid #E4E7ED; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,.14); max-height: 260px; overflow: auto; -webkit-overflow-scrolling: touch;
}
.pq-combo-item { padding: 10px; font-size: 14px; color: #3D3A3A; cursor: pointer; }
.pq-combo-item:hover, .pq-combo-item.active { background: #FFF1E8; }
.pq-combo-item b { color: #DC7146; }
.pq-combo-none { padding: 12px 10px; font-size: 12px; color: #98a2b3; }

/* ---- 可选配置 ---- */
.pq-opt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pq-opt-cat { border: 1px solid #F0F2F5; border-radius: 8px; padding: 8px 10px; background: #FDFCFB; }
.pq-opt-cat-name { font-size: 13px; font-weight: 600; color: #3D3A3A; margin-bottom: 7px; }
.pq-opt-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.pq-opt-chip {
  position: relative; border: 1px solid #E4E7ED; background: #fff; color: #595555;
  border-radius: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.pq-opt-chip em { font-style: normal; color: #B3B0AD; margin-left: 4px; font-size: 12px; }
.pq-opt-chip:active { border-color: #DC7146; color: #DC7146; }
.pq-opt-chip.on { border-color: #DC7146; background: #DC7146; color: #fff; }
.pq-opt-chip.on em { color: rgba(255,255,255,.85); }
.pq-opt-chip.on::after {
  content: "✓"; position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; border-radius: 50%;
  background: #52C41A; color: #fff; font-size: 11px; line-height: 16px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.pq-opt-sel {
  width: 100%; height: 38px; border: 1px solid #E4E7ED; border-radius: 6px; padding: 0 8px;
  font-size: 13px; color: #3D3A3A; background: #fff; outline: none; cursor: pointer;
}
.pq-opt-sel:focus { border-color: #DC7146; box-shadow: 0 0 0 2px rgba(220,113,70,.12); }
/* 已选中规格的下拉框与 chip 一样给选中态(橙底白字) */
.pq-opt-sel.on { border-color: #DC7146; background: #DC7146; color: #fff; font-weight: 600; }
.pq-opt-sel.on:focus { box-shadow: 0 0 0 2px rgba(220,113,70,.25); }
.pq-noopt { color: #8C8C8C; font-size: 12.5px; padding: 2px 0; }
@media (min-width: 768px) { .pq-opt-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }

/* ---- 按钮 ---- */
.pq-btn { display: block; width: 100%; border: none; border-radius: 8px; padding: 10px 0; font-size: 15px; cursor: pointer; margin-bottom: 8px; }
.pq-btn:last-child { margin-bottom: 0; }
.pq-btn-primary { background: #DC7146; color: #fff; font-weight: 600; }
.pq-btn-primary:active { background: #B25C39; }
.pq-btn-ghost { background: #fff; color: #595555; border: 1px solid #E4E7ED; }
.pq-btn-ghost:active { border-color: #DC7146; color: #DC7146; }
.pq-btn-quote { background: #3D3A3A; color: #fff; font-weight: 600; margin-bottom: 4px; }
.pq-btn-quote:active { background: #B25C39; }
.pq-btn-quote:disabled { background: #E4E7ED; color: #B6BABF; cursor: not-allowed; }

/* ---- 报价结果 ---- */
.pq-empty { text-align: center; color: #B6BABF; padding: 30px 0; }
.pq-empty-ic { font-size: 26px; display: block; margin-bottom: 8px; }
.pq-empty p { font-size: 13px; margin: 0; }
.pq-result-name { margin-left: auto; font-weight: 400; font-size: 12px; color: #8C8C8C; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-tags { margin-bottom: 10px; }
.pq-tag { display: inline-block; background: #FDF0EC; color: #B25C39; border-radius: 6px; padding: 3px 10px; font-size: 12px; margin: 0 4px 5px 0; }
.pq-sec { font-size: 12px; color: #8C8C8C; font-weight: 600; margin: 8px 0 4px; }
.pq-bd-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #F0F2F5; }
.pq-bd-item small { color: #8C8C8C; }
.pq-bd-v { font-weight: 500; white-space: nowrap; margin-left: 12px; }
.pq-bd-v.pq-price { color: #DC7146; font-weight: 600; font-variant-numeric: tabular-nums; }
.pq-hr { border: none; border-top: 1px solid #F0F2F5; margin: 8px 0; }
.pq-total-row { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 4px; }
.pq-total-label { font-size: 12px; color: #8C8C8C; }
.pq-total { font-size: 30px; font-weight: 800; color: #DC7146; line-height: 1.2; }

.pq-footer { text-align: center; color: #B6BABF; font-size: 11px; padding: 10px 0 4px; }

/* ---- 轻提示 ---- */
.pq-toast {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999;
  background: #52C41A; color: #fff; border-radius: 8px; padding: 10px 18px; font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .25s;
  max-width: 86vw; text-align: center;
}
.pq-toast.show { opacity: 1; }

/* ---- 报价单弹窗（H5 全屏） ---- */
.pq-sheet-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #F0F2F5; z-index: 2000; }
.pq-sheet-modal { position: relative; height: 100%; display: flex; flex-direction: column; }
.pq-sheet-close {
  position: absolute; top: 10px; right: 12px; border: none; background: #fff; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: #8C8C8C; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pq-sheet-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px 12px 28px; }
.pq-sheet-body > .pq-ps, .pq-sheet-body > div { max-width: 860px; margin: 0 auto; }

/* 报价单可编辑表单 */
.pq-ps { background: #fff; border: 1px solid #E4E7ED; border-radius: 10px; padding: 16px 14px 18px; }
.pq-ps h2 { font-size: 15px; font-weight: 600; color: #3D3A3A; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #F0F2F5; display: flex; align-items: center; gap: 6px; }
.pq-ps h2::before { content: "▤"; color: #DC7146; font-weight: 400; }
.pq-ps-field { display: flex; align-items: flex-start; margin-bottom: 10px; }
.pq-ps-label { flex: 0 0 84px; text-align: right; padding-right: 10px; color: #8C8C8C; font-size: 12px; line-height: 38px; white-space: nowrap; }
.pq-ps-input {
  flex: 1; width: 100%; border: 1px solid #E4E7ED; border-radius: 6px; height: 38px; padding: 0 10px;
  font-size: 14px; color: #3D3A3A; outline: none; background: #fff;
}
textarea.pq-ps-input { height: auto; min-height: 66px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.pq-ps-input:focus { border-color: #DC7146; box-shadow: 0 0 0 2px rgba(220,113,70,.12); }
.pq-ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pq-ps-grid .pq-ps-label { flex-basis: 46px; }
.pq-ps-group { color: #8C8C8C; font-size: 12px; font-weight: 600; margin: 8px 0 6px; }
.pq-ps-static { flex: 1; line-height: 38px; font-size: 13px; }
.pq-ps-total { color: #DC7146; font-weight: 800; font-size: 17px; }
.pq-ps-price-row { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pq-ps-price-row .pq-ps-input { min-width: 0; }
@media (max-width: 640px) {
  /* 窄屏: 单价输入独占一行, 步进器与下浮按钮下一行 */
  .pq-ps-price-row { flex-wrap: wrap; }
  .pq-ps-price-row .pq-ps-input { flex: 1 1 100%; margin-bottom: 8px; }
  .pq-ps-bottom { flex: 1; }
}
.pq-ps-stepper { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #595555; }
.pq-ps-stepper button { width: 38px; height: 38px; border: 1px solid #E4E7ED; border-radius: 6px; background: #fff; color: #DC7146; font-size: 17px; cursor: pointer; }
.pq-ps-stepper button:active { border-color: #DC7146; background: #FDF0EC; }
.pq-ps-bottom { height: 38px; padding: 0 12px; border: none; border-radius: 6px; background: #3D3A3A; color: #fff; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pq-ps-bottom:active { background: #DC7146; }
.pq-ps-gen { width: 100%; margin-top: 14px; height: 44px; border: none; border-radius: 8px; background: #DC7146; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px; cursor: pointer; }
.pq-ps-gen:active { background: #B25C39; }
.pq-ps-ens { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 13px; color: #595555; flex-wrap: wrap; }
.pq-ps-ens label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.pq-ps-ens input[type=checkbox] { accent-color: #DC7146; width: 16px; height: 16px; }

/* 报价模版选择（3 套定制模版） */
.pq-ps-tpls { flex: 1; display: flex; gap: 14px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.pq-ps-tpl { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #3D3A3A; cursor: pointer; }
.pq-ps-tpl input[type=radio] { accent-color: #DC7146; margin: 0; width: 16px; height: 16px; }
.pq-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #D9DCE1; }

/* ---- 报价单成品（可导出 Word） ---- */
.pq-wd-toolbar { display: flex; justify-content: space-between; margin-bottom: 12px; padding-right: 42px; /* 避开右上角全屏弹层关闭钮 */ }
.pq-wd-btn { border: 1px solid #E4E7ED; background: #fff; border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: #595555; }
.pq-wd-btn:active { border-color: #DC7146; color: #DC7146; }
.pq-wd-fit { position: relative; width: 100%; }
.pq-wd-doc {
  background: #fff; border: 1px solid #F0F2F5; border-radius: 6px; padding: 18px 14px;
  font-family: SimSun, "Songti SC", serif; color: #222; overflow-x: auto;
}
.pq-wd-brand { display: flex; align-items: stretch; gap: 12px; margin-bottom: 14px; min-width: 560px; }
.pq-wd-brand > img { height: 48px; align-self: center; }
.pq-wd-brand-name { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-radius: 4px; }
.pq-wd-brand-name b { font-size: 15px; letter-spacing: 2px; }
.pq-wd-brand-name span { font-size: 9px; letter-spacing: 1px; margin-top: 4px; opacity: .85; }
.pq-wd-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 10px; margin-bottom: 14px; min-width: 560px; }
.pq-wd-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 12.5px; margin-bottom: 12px; min-width: 560px; }
.pq-wd-u { display: inline-block; min-width: 120px; border-bottom: 1px solid #999; }
.pq-wd-sl { display: inline-block; min-width: 9em; }
table.pq-wd-table { width: 100%; border-collapse: collapse; border: 2px solid #444; font-size: 12px; margin-bottom: 8px; min-width: 560px; }
.pq-wd-table th, .pq-wd-table td { border: 1px solid #888; padding: 6px 8px; text-align: center; }
.pq-wd-table th { background: #f2f2f2; font-weight: 700; }
.pq-wd-table td.l, .pq-wd-table th.l { text-align: left; }
.pq-wd-money { color: #000; font-weight: 700; }
.pq-wd-sec { font-weight: 700; margin: 14px 0 6px; font-size: 14px; min-width: 560px; }
.pq-wd-terms { min-width: 560px; }
.pq-wd-terms p { font-size: 12.5px; margin: 4px 0; line-height: 1.8; }
.pq-wd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; font-size: 12.5px; line-height: 2.2; min-width: 560px; }

/* 报价单 3 套定制模版（预览样式，与导出 docx 一致；logo 为白底图，色带仅承载公司名） */
/* T1 经典简约：白抬头 + FDEFE3 表头 + DC7146 点缀 */
.pq-tpl-1 .pq-wd-brand-name { color: #3D3A3A; border-bottom: 2px solid #DC7146; border-radius: 0; padding-left: 2px; }
.pq-tpl-1 .pq-wd-title { color: #DC7146; }
.pq-tpl-1 .pq-wd-table th { background: #FDEFE3; }
.pq-tpl-1 .pq-wd-sec { color: #DC7146; border-left: 3px solid #DC7146; padding-left: 8px; }
/* T2 品牌橙：DC7146 色带抬头白字 + 橙表头白字 */
.pq-tpl-2 .pq-wd-brand-name { background: #DC7146; color: #fff; }
.pq-tpl-2 .pq-wd-title { color: #DC7146; }
.pq-tpl-2 .pq-wd-table th { background: #DC7146; color: #fff; border-color: #DC7146; }
.pq-tpl-2 .pq-wd-sec { color: #DC7146; border-left: 3px solid #DC7146; padding-left: 8px; }
/* T3 深灰商务：3D3A3A 色带抬头 + 深灰表头白字 + B25C39 点缀 */
.pq-tpl-3 .pq-wd-brand-name { background: #3D3A3A; color: #fff; }
.pq-tpl-3 .pq-wd-title { color: #3D3A3A; }
.pq-tpl-3 .pq-wd-table th { background: #3D3A3A; color: #fff; border-color: #3D3A3A; }
.pq-tpl-3 .pq-wd-sec { color: #B25C39; border-left: 3px solid #B25C39; padding-left: 8px; }
