:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --label: #1d1d1f;
  --secondary: #86868b;
  --tertiary: #aeaeb2;
  --blue: #f68116;
  --blue-press: #d96f0b;
  --blue-soft: rgba(246, 129, 22, 0.12);
  --blue-softer: rgba(246, 129, 22, 0.18);
  --red: #ff3b30;
  --red-ink: #d70015;
  --green: #0f9f6e;
  --green-ink: #0b7a55;
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.18);
  --sep: rgba(60, 60, 67, 0.09);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.09);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--label);
  font-size: 15px;
  line-height: 1.5;
}
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: var(--blue); text-decoration: none; }

/* ---------- 顶部毛玻璃导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 28px;
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 32px; height: 32px; overflow:hidden; border-radius: 9px; display: grid; place-items: center; background:#fff; box-shadow: 0 2px 6px rgba(246, 129, 22, 0.22); }
.brand-logo img { width:100%; height:100%; object-fit:cover; display:block; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-ver { font-size: 10px; font-weight: 600; color: var(--secondary); background: var(--fill); border-radius: 980px; padding: 2px 7px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.userchip { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; margin-right: 6px; border-radius: 980px; background: var(--fill); font-size: 12.5px; font-weight: 500; color: var(--label); white-space: nowrap; }
.userchip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.navbtn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border-radius: 980px; font-size: 13px; font-weight: 500; color: var(--label); transition: background 0.2s var(--ease), transform 0.15s var(--ease); white-space: nowrap; }
.navbtn:hover { background: var(--fill); }
.navbtn:active { transform: scale(0.96); }
.navbtn svg { width: 15px; height: 15px; stroke-width: 1.8; }
.navbtn.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(246, 129, 22, 0.3); }

/* ---------- 布局 ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 34px 28px 90px; }

/* ---------- Hero：Apple 大标题 ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; animation: rise 0.55s var(--ease) both; }
.hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.hero p { margin-top: 7px; max-width: 560px; font-size: 14px; color: var(--secondary); line-height: 1.6; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 40px; padding: 0 20px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(246, 129, 22, 0.32);
  transition: background 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn-primary:hover { background: #ff8f2e; box-shadow: 0 6px 20px rgba(246, 129, 22, 0.4); }
.btn-primary:active { background: var(--blue-press); transform: scale(0.97); }
.btn-primary svg { width: 15px; height: 15px; stroke-width: 2.2; }

/* ---------- KPI 卡 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi {
  position: relative; text-align: left; display: block;
  padding: 18px 20px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: rise 0.55s var(--ease) both;
  cursor: pointer; color: inherit;
}
.kpi:nth-child(1) { animation-delay: 0.04s; } .kpi:nth-child(2) { animation-delay: 0.08s; }
.kpi:nth-child(3) { animation-delay: 0.12s; } .kpi:nth-child(4) { animation-delay: 0.16s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.kpi:active { transform: scale(0.98); }
.kpi-label { font-size: 12.5px; font-weight: 500; color: var(--secondary); }
.kpi-value { margin-top: 6px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--tertiary); }
.kpi-sub .go { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-weight: 600; font-size: 12px; }
.kpi-sub .go svg { width: 12px; height: 12px; stroke-width: 2.4; transition: transform 0.25s var(--spring); }
.kpi:hover .go svg { transform: translateX(3px); }

/* ---------- 工具条：分段控件 + 搜索 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; animation: rise 0.55s var(--ease) 0.1s both; }
.segwrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.seglabel { font-size: 12.5px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.seg {
  display: flex; gap: 2px; padding: 2px; border-radius: 10px;
  background: var(--fill); overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--label); white-space: nowrap;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
}
.seg button:hover { color: var(--blue); }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0.5px 1px rgba(0,0,0,.06); font-weight: 600; }
.search {
  display: flex; align-items: center; gap: 7px; flex: 0 0 290px;
  height: 36px; padding: 0 12px; border-radius: 10px; background: var(--fill);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search:focus-within { background: #fff; box-shadow: 0 0 0 3.5px rgba(246, 129, 22, 0.22); }
.search svg { width: 15px; height: 15px; color: var(--secondary); stroke-width: 2; flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--label); }
.search input::placeholder { color: var(--tertiary); }
.search .clear { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--fill-strong); color: var(--secondary); font-size: 12px; line-height: 18px; text-align: center; }
.search.has .clear { display: block; }

/* ---------- 供应商卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; min-height: 236px;
  padding: 22px 22px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: cardin 0.5s var(--ease) both;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:active { transform: scale(0.985); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.014em; }
.card-head .juris { margin-top: 5px; font-size: 12px; color: var(--secondary); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--blue-press); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3.5px rgba(246, 129, 22, 0.14); }
.status.off { color: var(--secondary); } .status.off i { background: var(--tertiary); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; max-height: 52px; overflow: hidden; }
.tags span { padding: 4px 10px; border-radius: 980px; background: var(--fill); font-size: 11.5px; font-weight: 500; color: #48484a; white-space: nowrap; }
.tags span.muted { color: var(--tertiary); }
.prices { margin-top: auto; padding-top: 12px; }
.prices .prow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; border-top: 0.5px solid var(--sep); }
.prices .prow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #48484a; }
.prices .prow b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.prices .prow .pjuris { margin-left: 6px; font-size: 10.5px; font-weight: 500; color: var(--tertiary); }
.prices .pempty { padding: 8px 0 2px; border-top: 0.5px solid var(--sep); font-size: 12.5px; color: var(--tertiary); }
.btn-tint {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  height: 30px; padding: 0 14px; border-radius: 980px;
  background: var(--blue-soft); color: var(--blue-press);
  font-size: 12.5px; font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-tint:hover { background: var(--blue-softer); }
.btn-tint:active { transform: scale(0.95); }
.btn-tint svg { width: 13px; height: 13px; stroke-width: 2.4; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--sep); font-size: 12px; color: var(--secondary); }
.card-foot b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
.archlink { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font-size: 13px; font-weight: 500; color: var(--blue); }
.archlink svg { width: 13px; height: 13px; stroke-width: 2.4; transition: transform 0.25s var(--spring); }
.card:hover .archlink svg { transform: translateX(3px); }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--tertiary); font-size: 14px; }

/* ---------- 详情 Sheet（Apple 模态） ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.sheet-mask.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; top: 50%; z-index: 95;
  width: min(660px, calc(100vw - 40px)); max-height: min(78vh, 760px);
  transform: translate(-50%, -46%) scale(0.96); opacity: 0; pointer-events: none;
  border-radius: 20px; background: var(--card); box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.38s var(--spring), opacity 0.28s var(--ease);
}
.sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.sheet-head { position: relative; padding: 26px 28px 18px; }
.sheet-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sheet-head .alias { margin-top: 5px; font-size: 12.5px; color: var(--secondary); }
.sheet-close {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill); color: var(--secondary);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.sheet-close:hover { background: var(--fill-strong); }
.sheet-close:active { transform: scale(0.9); }
.sheet-close svg { width: 13px; height: 13px; stroke-width: 2.6; }
.sheet-body { overflow-y: auto; padding: 0 28px 26px; }
.sheet-sec { padding: 16px 0; border-top: 0.5px solid var(--sep); }
.sheet-sec h4 { font-size: 12px; font-weight: 600; color: var(--secondary); letter-spacing: 0.04em; margin-bottom: 10px; }
.sheet-sec .tags { margin: 0; max-height: none; }
.proj { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background 0.2s var(--ease); }
.proj:hover { background: var(--fill); }
.proj .p-main { min-width: 0; }
.proj .p-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .p-sub { margin-top: 2px; font-size: 11.5px; color: var(--secondary); }
.proj .p-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--blue); }
.proj .p-state svg { width: 12px; height: 12px; stroke-width: 2.2; }
.sheet-toast { padding: 14px 16px; border-radius: 12px; background: var(--fill); font-size: 12.5px; color: var(--secondary); text-align: center; }

/* ---------- 报价表单 Sheet（iOS 分组表单） ---------- */
.formbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 0.5px solid var(--sep); }
.formbar h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; text-align: center; flex: 1; }
.formbar .fb-cancel { font-size: 15px; color: var(--blue); font-weight: 500; padding: 4px 6px; }
.formbar .fb-save {
  min-width: 64px; height: 30px; padding: 0 16px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.formbar .fb-save:hover { background: #ff8f2e; }
.formbar .fb-save:active { transform: scale(0.95); }
.formbar .fb-save:disabled { background: var(--fill-strong); color: #fff; cursor: default; transform: none; }
.fb-supplier { padding: 12px 20px 0; font-size: 12.5px; color: var(--secondary); }
.fb-supplier b { color: var(--label); font-weight: 600; }
.pform { padding: 18px 20px 24px; overflow-y: auto; }
.fgroup { border-radius: 14px; background: var(--fill); overflow: hidden; }
.frow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; }
.frow + .frow { border-top: 0.5px solid var(--sep); }
.frow label { flex: 0 0 76px; font-size: 13.5px; font-weight: 500; color: var(--label); }
.frow input, .frow textarea, .frow select { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: none; color: var(--label); }
.frow input::placeholder, .frow textarea::placeholder { color: var(--tertiary); }
.frow.area { align-items: flex-start; }
.frow textarea { resize: none; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 2px 0; }
.chips span { padding: 5px 12px; border-radius: 980px; background: var(--fill); font-size: 12px; font-weight: 500; color: #48484a; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.chips span:hover { background: var(--blue-soft); color: var(--blue-press); }
.curseg { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); }
.curseg button { padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--label); transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.curseg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }
.ferr { display: none; margin-top: 10px; font-size: 12.5px; color: var(--red); }
.ferr.show { display: block; }
.fdone { display: grid; place-items: center; padding: 44px 20px 40px; text-align: center; }
.fdone[hidden] { display: none; }
.fdone .ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(52, 199, 89, 0.14); color: var(--green-ink); display: grid; place-items: center; animation: pop 0.45s var(--spring) both; }
.fdone .ok svg { width: 26px; height: 26px; stroke-width: 2.4; }
.fdone p { margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.fdone small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--secondary); font-weight: 400; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav .navbtn span { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 22px 16px 70px; }
  .topbar { padding: 10px 16px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex: none; }
  .grid { grid-template-columns: 1fr; }
  .userchip { display: none; }
}

/* ---------- chips 多选态 ---------- */
.chips span.on { background: var(--blue); color: #fff; }
.chips span.on:hover { background: #ff8f2e; color: #fff; }

/* ---------- 通用清单 Sheet ---------- */
.listrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; transition: background 0.2s var(--ease); }
.listrow:hover { background: var(--fill); }
.listrow .lr-main { min-width: 0; }
.listrow .lr-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listrow .lr-sub { margin-top: 2px; font-size: 11.5px; color: var(--secondary); }
.listrow .lr-right { flex: 0 0 auto; text-align: right; }
.listrow .lr-amount { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.listrow .lr-state { margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--blue); }
.listrow .lr-state svg { width: 11px; height: 11px; stroke-width: 2.2; }
.listgroup + .listgroup { margin-top: 18px; }
.listgroup h4 { font-size: 12px; font-weight: 600; color: var(--secondary); letter-spacing: 0.04em; margin: 0 2px 8px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 980px; font-size: 11px; font-weight: 600; }
.badge.green { background: rgba(52, 199, 89, 0.14); color: var(--green-ink); }
.badge.gray { background: var(--fill); color: var(--secondary); }

/* ---------- 对外报价页 ---------- */
.quote-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; animation: rise 0.55s var(--ease) both; }
.quote-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.quote-hero p { margin-top: 7px; max-width: 620px; font-size: 14px; color: var(--secondary); line-height: 1.6; }
.backlink { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; height: 34px; padding: 0 15px; border-radius: 980px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--label); transition: background 0.2s var(--ease), transform 0.15s var(--ease); }
.backlink:hover { background: var(--fill-strong); }
.backlink:active { transform: scale(0.96); }
.backlink svg { width: 13px; height: 13px; stroke-width: 2.4; }
.quote-nav { position: sticky; top: 53px; z-index: 40; display: flex; justify-content: center; margin: 0 -28px 26px; padding: 10px 28px; background: rgba(245, 245, 247, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid var(--sep); animation: rise 0.55s var(--ease) 0.06s both; }
.proposal-launch { position:absolute; right:28px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:980px; background:var(--blue); color:#fff; font-size:12.5px; font-weight:650; box-shadow:0 3px 10px rgba(246,129,22,.24); }.proposal-launch:hover { background:var(--blue-press); }.proposal-launch[hidden] { display:none; }
.qsec { margin-bottom: 34px; animation: rise 0.55s var(--ease) both; }
.qsec > h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 2px 4px; }
.qsec > .qscope { margin: 0 2px 14px; font-size: 12.5px; color: var(--secondary); }
.qjuris { margin-bottom: 20px; }
.qjuris > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0 2px 9px; }
.qjuris > h3 .flag { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: linear-gradient(135deg, #ff9f45, #f68116); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 1px 4px rgba(246, 129, 22, 0.3); }
.qgroup { border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.qrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 18px; }
.qrow + .qrow { border-top: 0.5px solid var(--sep); }
.qrow .q-main { min-width: 0; }
.qrow .q-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.qrow .q-details { margin-top: 5px; font-size: 12px; color: var(--secondary); line-height: 1.65; }
.qrow .q-right { flex: 0 0 auto; text-align: right; }
.qrow .q-amount { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qrow .q-amount small { margin-left: 3px; font-size: 11px; font-weight: 600; color: var(--secondary); }
.qrow .q-delivery { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 980px; background: var(--fill); font-size: 11px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.qrow .q-delivery svg { width: 11px; height: 11px; stroke-width: 2.2; }
.qrow.related { background: rgba(120, 120, 128, 0.045); }
.qrow.related .q-name { font-weight: 500; font-size: 13.5px; }
.qsrc { margin-top: 10px; display: flex; justify-content: flex-end; }
.qsrc a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--blue); }
.qsrc a svg { width: 12px; height: 12px; stroke-width: 2.2; }
.quote-foot { margin-top: 8px; padding: 18px 2px 0; border-top: 0.5px solid var(--sep); font-size: 12px; color: var(--tertiary); line-height: 1.7; }
@media (max-width: 720px) {
  .quote-hero { flex-direction: column; align-items: flex-start; }
  .quote-hero h1 { font-size: 28px; }
  .quote-nav { top: 51px; margin: 0 -16px 20px; padding: 8px 16px; justify-content: flex-start; }.proposal-launch { right:16px; padding:0 10px; font-size:11.5px; }
  .qrow { flex-direction: column; gap: 8px; }
  .qrow .q-right { text-align: left; }
}

/* ---------- 报价页三列：服务名称 / 服务内容 / 对外报价 ---------- */
.qhead { display: grid; grid-template-columns: 200px 1fr 190px; gap: 16px; padding: 10px 18px; background: var(--blue-soft); font-size: 11.5px; font-weight: 600; color: var(--blue-press); letter-spacing: 0.04em; }
.qhead span:last-child { text-align: right; }
.qgroup .qrow { display: grid; grid-template-columns: 200px 1fr 190px; gap: 16px; align-items: start; }
.qgroup .qrow .q-details { margin-top: 0; padding-top: 2px; }
.qgroup .qrow .q-right { text-align: right; }
@media (max-width: 720px) {
  .qhead { display: none; }
  .qgroup .qrow { display: flex; flex-direction: column; gap: 8px; }
  .qgroup .qrow .q-right { text-align: left; }
  .inline-addline { width:100%; }.panel-head:has(.inline-addline) { align-items:flex-start; flex-direction:column; }.inline-addline input { flex:1; width:auto; }
}

/* ---------- 行内小按钮（建档 / 删除） ---------- */
.rowbtn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 11px; border-radius: 980px; background: var(--blue-soft); color: var(--blue-press); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background 0.2s var(--ease), transform 0.15s var(--ease); }
.rowbtn:hover { background: var(--blue-softer); }
.rowbtn:active { transform: scale(0.94); }
.rowbtn.danger { background: rgba(255, 59, 48, 0.1); color: var(--red-ink); }
.rowbtn.danger:hover { background: rgba(255, 59, 48, 0.17); }
.rowbtn svg { width: 12px; height: 12px; stroke-width: 2.2; }
.rowbtns { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }

/* ---------- 供应商详情页 ---------- */
.shero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; animation: rise 0.55s var(--ease) both; }
.shero h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.2; }
.shero .smeta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--secondary); }
.shero .smeta .status { margin-top: 0; }
.shero .sactions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.btn-danger { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border-radius: 980px; background: rgba(255, 59, 48, 0.1); color: var(--red-ink); font-size: 12.5px; font-weight: 600; transition: background 0.2s var(--ease), transform 0.15s var(--ease); }
.btn-danger:hover { background: rgba(255, 59, 48, 0.17); }
.btn-danger:active { transform: scale(0.95); }
.btn-danger svg { width: 13px; height: 13px; stroke-width: 2.2; }
.panel { border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); padding: 20px 22px; margin-bottom: 16px; animation: rise 0.55s var(--ease) both; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .cnt { font-size: 12px; font-weight: 500; color: var(--tertiary); margin-left: 6px; }
.panel .tags { margin: 0; max-height: none; }
.panel-head > div { min-width: 0; }
.panel-hint { margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--secondary); }
.jurisdiction-picker-panel { padding-bottom: 18px; border: 1px solid rgba(21, 112, 239, 0.16); background: linear-gradient(120deg, rgba(242,248,255,.96), #fff 56%); }
.jurisdiction-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.jurisdiction-option { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #e1e8f2; background: #fff; color: var(--label); font-size: 12.5px; font-weight: 600; transition: all .2s var(--ease); }
.jurisdiction-option:hover { border-color: #a8c8ff; color: var(--blue); }
.jurisdiction-option.active { border-color: #2f7df6; background: #edf5ff; color: #1765d5; box-shadow: 0 1px 4px rgba(47,125,246,.12); }
.jurisdiction-checklist { display:flex; flex-wrap:wrap; gap:8px; padding:3px 0; }
.jurisdiction-check { position:relative; display:inline-flex; align-items:center; min-height:34px; cursor:pointer; }
.jurisdiction-check input { position:absolute; opacity:0; pointer-events:none; }
.jurisdiction-check span { display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border:1px solid #e1e8f2; border-radius:10px; background:#fff; font-size:12.5px; font-weight:600; transition:all .2s var(--ease); }
.jurisdiction-check input:checked + span { border-color:#2f7df6; background:#edf5ff; color:#1765d5; box-shadow:0 1px 4px rgba(47,125,246,.12); }
.jurisdiction-add { display:flex; gap:8px; width:100%; }.jurisdiction-add input { flex:1; min-width:0; height:34px; padding:0 12px; border:0; border-radius:10px; outline:0; background:var(--fill); font:inherit; font-size:13px; }
.form-tip { margin-top: 12px; color: var(--secondary); font-size: 12px; line-height: 1.65; }
.attachment-panel { border: 1px solid rgba(246,129,22,.18); background: linear-gradient(120deg, rgba(255,249,244,.96), #fff 56%); }
.attachment-list { display: grid; gap: 8px; margin-top: 12px; }
.attachment-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 1px solid var(--sep); border-radius: 12px; background: #fff; text-align: left; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.attachment-view { display:flex; flex:1; min-width:0; align-items:center; gap:12px; padding:6px 7px; text-align:left; }
.attachment-row:hover { border-color: rgba(246,129,22,.42); box-shadow: 0 4px 14px rgba(0,0,0,.05); transform: translateY(-1px); }
.attachment-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-press); font-size: 20px; font-weight: 700; }
.attachment-main { display: grid; min-width: 0; gap: 2px; flex: 1; }.attachment-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.attachment-main small { color: var(--secondary); font-size: 11.5px; }.attachment-open { display:inline-flex; align-items:center; gap:4px; color:var(--blue); font-size:12px; font-weight:600; white-space:nowrap; }.attachment-open svg { width:13px; height:13px; }
.attachment-delete { width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; color:var(--tertiary); }.attachment-delete:hover { color:var(--red-ink); background:rgba(255,59,48,.1); }.attachment-delete svg { width:14px; height:14px; }
.attachment-status { display: inline-flex; padding: 4px 9px; border-radius: 980px; background: var(--blue-soft); color: var(--blue-press); font-size: 12px; font-weight: 650; }.attachment-status.applied { color: var(--green-ink); background: rgba(15,159,110,.12); }.attachment-status.awaiting_ai,.attachment-status.failed { color:#98620a; background:#fff3da; }
.attachment-detail { display:grid; gap:14px; }.attachment-detail .sheet-sec { padding: 12px 0; border-top: .5px solid var(--sep); }.attachment-detail .sheet-sec h4 { margin-bottom:7px; font-size:13px; }.attachment-detail .sheet-sec p { color:var(--secondary); font-size:12.5px; white-space:pre-wrap; }.draft-table { border:1px solid var(--sep); border-radius:10px; overflow:hidden; }.draft-table>div { display:grid; grid-template-columns:minmax(100px,1fr) auto; gap:3px 14px; padding:10px 12px; border-top:.5px solid var(--sep); font-size:12.5px; }.draft-table>div:first-child{border-top:0}.draft-table b{font-size:13px}.draft-table span{font-weight:650; font-variant-numeric:tabular-nums}.draft-table small{grid-column:1/-1;color:var(--secondary)}.attachment-actions { display:flex; justify-content:flex-end; gap:8px; align-items:center; }
.plist .price-group-title { margin-top: 4px; padding: 10px 12px; border-radius: 10px 10px 0 0; background: #f4f8fd; color: #496581; }
.payment-total { display:flex; align-items:baseline; gap:9px; margin:-2px 0 12px; padding:11px 13px; border:1px solid #e3ebf7; border-radius:12px; background:#fbfdff; }.payment-total strong { font-size:15px; font-variant-numeric:tabular-nums; }.payment-total span { font-size:12px; color:var(--secondary); }
.payment-ledger { overflow-x:auto; border:1px solid var(--sep); border-radius:12px; background:#fff; }.payment-ledger-head,.payment-ledger-row { min-width:820px; display:grid; grid-template-columns:minmax(190px,1.25fr) 105px minmax(160px,1fr) minmax(170px,1fr) 64px; gap:12px; align-items:center; padding:11px 13px; }.payment-ledger-head { background:var(--fill); color:var(--secondary); font-size:11px; font-weight:600; }.payment-ledger-row { border-top:.5px solid var(--sep); font-size:12px; }.payment-ledger-row b { display:block; font-size:12.5px; font-weight:600; }.payment-ledger-row small,.payment-ledger-row span { display:block; margin-top:3px; color:var(--secondary); font-size:11px; line-height:1.45; }.payment-ledger-row > strong { font-size:12.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }.payment-ledger-row .p-act { justify-self:end; margin:0; }.payment-ledger-row .p-act i { display:grid; width:24px; height:24px; place-items:center; color:var(--tertiary); font-style:normal; }
.amount-state { color: #dd4d46 !important; }
.tags span .tx { margin-left: 6px; color: var(--tertiary); font-weight: 600; cursor: pointer; }
.tags span .tx:hover { color: var(--red-ink); }
.addline { display: flex; gap: 8px; margin-top: 12px; }
.inline-addline { display:flex; align-items:center; gap:8px; }.inline-addline input { width:220px; height:32px; padding:0 11px; border:0; outline:0; border-radius:10px; background:var(--fill); font:inherit; font-size:12.5px; color:var(--label); }.inline-addline input:focus { background:#fff; box-shadow:0 0 0 3px rgba(246,129,22,.2); }
.addline input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 0; outline: 0; border-radius: 10px; background: var(--fill); font: inherit; font-size: 13px; color: var(--label); transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.addline input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(246, 129, 22, 0.2); }
.addline input::placeholder { color: var(--tertiary); }
.plist { border-radius: 12px; overflow: hidden; }
.plist .prow2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #fff; }
.plist .prow2 + .prow2 { border-top: 0.5px solid var(--sep); }
.plist .p2-main { min-width: 0; }
.plist .p2-name { font-size: 13.5px; font-weight: 600; }
.plist .p2-note { margin-top: 2px; font-size: 11.5px; color: var(--secondary); }
.plist .p2-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.plist .p2-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plist .p2-amount small { margin-left: 2px; font-size: 10.5px; font-weight: 600; color: var(--secondary); }
.plist .p2-del { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--tertiary); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.plist .p2-del:hover { background: rgba(255, 59, 48, 0.1); color: var(--red-ink); }
.plist .p2-del svg { width: 12px; height: 12px; stroke-width: 2.4; }
.plist .p2-edit { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--tertiary); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.plist .p2-edit:hover { background: var(--blue-soft); color: var(--blue-press); }
.plist .p2-edit svg { width: 12px; height: 12px; stroke-width: 2; }
.plist .pgroup { display: flex; align-items: center; gap: 6px; padding: 12px 14px 6px; background: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--tertiary); }
.plist .pgroup svg { width: 11px; height: 11px; stroke-width: 2.2; }
.plist .pgroup .cnt { font-weight: 500; color: var(--quaternary, var(--tertiary)); }
.proj .p-act { flex: 0 0 auto; display: inline-flex; gap: 4px; }
.proj .p-act button, .proj .p-act a { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--tertiary); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.proj .p-act button:hover { background: var(--blue-soft); color: var(--blue-press); }
.proj .p-act a:hover { background: var(--blue-soft); color: var(--blue-press); }
.proj .p-act button.del:hover { background: rgba(255, 59, 48, 0.1); color: var(--red-ink); }
.proj .p-act svg { width: 12px; height: 12px; stroke-width: 2; }
.payment-search-list { display:grid; gap:8px; margin-top:14px; max-height:360px; overflow:auto; }
.payment-candidate { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; padding:11px 12px; border:1px solid var(--sep); border-radius:12px; background:#fff; }
.payment-candidate b { display:block; font-size:13px; }.payment-candidate p { margin-top:3px; color:var(--secondary); font-size:11.5px; line-height:1.45; }.payment-candidate>span { font-variant-numeric:tabular-nums; color:var(--red-ink); font-weight:650; font-size:12.5px; white-space:nowrap; }.payment-candidate em { padding:4px 7px; border-radius:980px; background:var(--fill); color:var(--secondary); font-style:normal; font-size:11px; white-space:nowrap; }
.pempty2 { padding: 18px; text-align: center; font-size: 12.5px; color: var(--tertiary); background: #fff; border-radius: 12px; }
.confirm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 59, 48, 0.08); font-size: 12.5px; color: var(--red-ink); font-weight: 500; }
.confirm-bar .cb-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.confirm-bar button { height: 28px; padding: 0 14px; border-radius: 980px; font-size: 12px; font-weight: 600; }
.confirm-bar .cb-yes { background: var(--red); color: #fff; }
.confirm-bar .cb-no { background: #fff; color: var(--label); }
.confirm-bar[hidden] { display: none; }

/* ---- 对外报价维护：行内编辑 / 添加 / 弹窗 ---- */
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 900px) { .qgrid { grid-template-columns: 1fr; } }
.qrow .q-right { position: relative; }
.qedit { margin-top: 8px; height: 26px; padding: 0 12px; border-radius: 980px; border: none; background: rgba(246, 129, 22, .12); color: #f68116; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: background .15s ease; }
.qedit svg { width: 12px; height: 12px; }
.qedit:hover { background: rgba(246, 129, 22, .22); }
.qadd { margin-top: 14px; width: 100%; height: 40px; border: 1.5px dashed #d8d8de; border-radius: 12px; background: transparent; color: #f68116; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.qadd svg { width: 14px; height: 14px; }
.qadd:hover { border-color: #f68116; background: rgba(246, 129, 22, .06); }
.qmask { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.qmask[hidden] { display: none; }
.qsheet { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 64px rgba(0, 0, 0, .18); animation: qsheet-in .22s cubic-bezier(.32, .72, .35, 1); }
.qproposal { max-width:660px; }.qproposal-sub { margin:-5px 0 14px; color:var(--secondary); font-size:12.5px; line-height:1.6; }.qproposal-list { max-height:min(54vh,520px); overflow:auto; border:1px solid var(--sep); border-radius:12px; }.qproposal-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 12px; border-bottom:1px solid var(--sep); cursor:pointer; }.qproposal-item:last-child { border-bottom:0; }.qproposal-item:hover { background:#fffaf5; }.qproposal-item input { width:16px; height:16px; accent-color:var(--blue); }.qproposal-item b,.qproposal-item small { display:block; }.qproposal-item b { font-size:13px; color:var(--label); }.qproposal-item small { margin-top:2px; color:var(--secondary); font-size:11px; }.qproposal-item em { font-style:normal; color:var(--blue-press); font-size:12px; font-weight:650; white-space:nowrap; }.qproposal-empty { padding:24px; color:var(--secondary); text-align:center; font-size:12.5px; }.qproposal-result { margin:12px 0 2px; padding:10px 12px; border-radius:10px; background:#effaf4; color:var(--green-ink); font-size:12.5px; }.qproposal-result b { display:block; }.qproposal-result a { display:inline-block; margin-top:3px; font-weight:650; }
@keyframes qsheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.qsheet h3 { margin: 0 0 16px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.qfield { margin-bottom: 12px; }
.qfield label { display: block; font-size: 12px; font-weight: 600; color: var(--tertiary, #8e8e93); margin-bottom: 5px; }
.qfield input, .qfield select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #e3e3e8; border-radius: 10px; font-size: 14px; background: #fff; color: var(--label, #1d1d1f); outline: none; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease; }
.qfield input:focus, .qfield select:focus { border-color: #f68116; box-shadow: 0 0 0 3px rgba(246, 129, 22, .14); }
.qfield input[readonly] { background: #f7f7f9; color: var(--tertiary, #8e8e93); }
.qsheet-msg { min-height: 18px; font-size: 12px; color: #d92d20; margin: 2px 0 8px; }
.qsheet-actions { display: flex; justify-content: flex-end; gap: 10px; }
.qbtn { height: 36px; padding: 0 18px; border-radius: 980px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: opacity .15s ease, background .15s ease; }
.qbtn.ghost { background: #f2f2f7; color: var(--label, #1d1d1f); }
.qbtn.ghost:hover { background: #e9e9ee; }
.qbtn.primary { background: #f68116; color: #fff; }
.qbtn.primary:hover { background: #e0730d; }
.qbtn:disabled { opacity: .55; cursor: default; }
.qtoast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(12px); background: rgba(29, 29, 31, .92); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 980px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 99; }
.qtoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
