:root {
  --canvas: #f1ece5;
  --surface: #fcfaf6;
  --ink: #272a23;
  --muted: #6b665d;
  --line: #dcd4c6;
  --pine: #244432;
  --copper: #7b5135;
  --olive: #e6e8d7;
  --stone: #f2ede4;
  --white: #fffdf8;
  --serif: "Songti SC", "Noto Serif CJK SC", serif;
}

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

[hidden] {
  display: none !important;
}

html {
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin-top: 0;
}

.app-shell {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 34px auto;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(39, 42, 35, 0.04), 0 2px 6px rgba(39, 42, 35, 0.02);
  overflow: hidden;
}

.app-header {
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  gap: 28px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background-color: var(--stone);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.steps {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 18px;
  gap: 8px;
}

.steps::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 0;
  border-left: 1px solid var(--line);
}

.steps button {
  appearance: none;
  background: transparent;
  border: none;
  height: 68px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.steps button:not(:disabled):hover {
  color: var(--ink);
}

.steps button[aria-current="step"] {
  color: var(--pine);
  font-weight: 650;
}

.steps button[aria-current="step"]::after {
  content: "";
  position: absolute;
  bottom: 11px;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--pine);
}

.app-main {
  padding: 36px;
}

.app-main h1 {
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}

.form-rows {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.form-row > label {
  font-size: 14px;
  color: var(--muted);
  line-height: 44px;
  user-select: none;
}

input:not([type="checkbox"]),
select {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  height: 44px;
  min-height: 44px;
  transition: border-color 0.15s ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

input:not([type="checkbox"]):hover,
select:hover {
  border-color: var(--muted);
}

.module-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.module-fieldset legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.module-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.module-name {
  white-space: nowrap;
  font-weight: 550;
}

.module-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.module-option input[type="checkbox"] {
  appearance: auto;
  accent-color: var(--pine);
  width: 18px;
  height: 18px;
  margin: 0 0 0 auto;
  flex: 0 0 18px;
  cursor: pointer;
}

.module-option:hover {
  border-color: var(--muted);
}

.module-option:has(:checked) {
  background-color: var(--olive);
  border-color: var(--pine);
}

.owner-main #publish-tender {
  width: 220px;
  height: 48px;
  margin-top: 6px;
}

.context-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-image {
  width: 100%;
  aspect-ratio: 1.76 / 1;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border: 1px solid var(--line);
  border-bottom: none;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  display: block;
}

.snapshot-panel {
  background-color: var(--stone);
  border: 1px solid var(--line);
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  padding: 24px;
}

.snapshot-panel h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

#snapshot-content:has(> .snapshot-count) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  flex-wrap: wrap;
}

.snapshot-count,
.snapshot-meta,
.snapshot-items .ref-price {
  font-size: 13px;
  color: var(--muted);
}

.snapshot-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.snapshot-items li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.snapshot-items strong {
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}

#published-summary {
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

#reset-demo {
  padding-inline: 14px;
  white-space: nowrap;
}

.button.primary {
  background-color: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}

.button.primary:not(:disabled):hover {
  opacity: 0.92;
}

.button.secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:not(:disabled):hover {
  border-color: var(--muted);
  background-color: var(--stone);
}

.button.text-button {
  background-color: transparent;
  color: var(--muted);
  border-color: transparent;
  padding: 0 12px;
}

.button.text-button:hover {
  color: var(--ink);
}

.message {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--line);
  background-color: var(--white);
  color: var(--ink);
  margin-bottom: 18px;
}

.message[data-error="true"] {
  background: #fbf0e6;
  color: #703b20;
  border-color: #d9b69b;
}

.field-error {
  color: #8a3c1b;
  font-size: 13px;
  line-height: 1.4;
}

input[aria-invalid="true"] {
  border-color: #a9522f;
}

.single-bid-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

button:disabled,
.button:disabled,
input:disabled,
select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .app-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .app-header {
    height: auto;
    padding: 16px 18px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 0;
  }

  .brand-group {
    order: 1;
    gap: 9px;
  }

  .wordmark {
    font-size: clamp(17px, 5vw, 22px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  #reset-demo {
    order: 2;
    padding-inline: 10px;
    font-size: 13px;
  }

  .steps {
    order: 3;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .steps::before {
    display: none;
  }

  .steps button {
    height: 48px;
    padding: 0;
    font-size: 14px;
    text-align: center;
  }

  .app-main {
    padding: 18px;
  }

  .app-main h1 {
    font-size: 32px;
    margin-bottom: 18px;
  }

  .owner-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .owner-main {
    order: 1;
  }

  .context-rail {
    order: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .form-row > label {
    line-height: 1.2;
    padding-top: 4px;
  }

  .module-option {
    padding-inline: 10px;
  }

  .owner-main #publish-tender {
    width: 100%;
  }

  .snapshot-panel {
    padding: 16px 18px;
  }
}

/* 报价与比价 */
.quote-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.quote-toolbar .form-row {
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 14px;
}

#load-sample,
#preview-quote {
  border-color: var(--pine);
  color: var(--pine);
}

.quote-row-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-row[data-code] {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(0, 2fr);
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-row[data-code]:hover {
  border-color: rgba(60, 47, 39, 0.25);
  background-color: #fffdf9;
}

.quote-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-identity-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quote-identity .code {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--copper);
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
}

.quote-identity .name {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

.quote-identity .ref-price {
  font-size: 0.825rem;
  color: var(--muted);
  font-feature-settings: "tnum";
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(94px, .85fr) auto;
  align-items: center;
  gap: 16px;
}

.line-total,
.extra-code {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-self: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.line-total output,
.extra-code .code {
  color: var(--pine);
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.line-total output[data-status="invalid"] {
  color: #8a3c1b;
}

.extra-code .code {
  color: var(--copper);
}

.quote-fields > label:not(.omit-label),
.extra-fields > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-fields label,
.extra-fields label {
  font-size: 0.75rem;
  color: var(--muted);
}

.quote-fields input:not([type="checkbox"]) {
  font-variant-numeric: tabular-nums;
}

.omit-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.omit-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pine);
}

.quote-row:has([data-omit]:checked) {
  background-color: var(--stone);
}

.extras-editor {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.extra-fields {
  display: grid;
  grid-template-columns: minmax(48px, .65fr) minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(94px, .85fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.extras-summary {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.extras-summary li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  font-feature-settings: "tnum";
}

.price-summary {
  display: flex;
  gap: 4px 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

#price-preview {
  margin-top: 24px;
  padding: 20px 24px;
  background-color: var(--olive);
  border: 1px solid rgba(60, 47, 39, 0.12);
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#price-preview .price-status {
  font-size: 0.85rem;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#price-preview .price-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--pine);
}

#price-preview .price-total {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--pine);
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.rank-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 22px 0;
}

.rank-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--stone);
}

.rank-card:first-child {
  background-color: var(--olive);
  border-color: rgba(60, 47, 39, 0.15);
}

.rank-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background-color: var(--white);
  color: var(--copper);
  border: 1px solid var(--line);
  font-feature-settings: "tnum";
}

.rank-card:first-child .rank-num {
  background-color: var(--pine);
  border-color: var(--pine);
  color: var(--white);
}

.rank-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rank-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}

.rank-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.rank-details span {
  white-space: nowrap;
}

.rank-value {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  gap: 0 14px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--line);
  text-align: right;
}

.rank-label {
  font-size: 0.725rem;
  color: var(--muted);
}

.rank-amount {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.rank-card:first-child .rank-amount {
  color: var(--pine);
  font-weight: 700;
}

.rank-diff {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-feature-settings: "tnum";
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.table-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface);
  text-align: left;
  border-top: 1px solid var(--line);
}

.table-scroll th {
  background-color: var(--stone);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-scroll tbody th {
  background-color: var(--surface);
  color: var(--copper);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.table-scroll td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  background-color: var(--surface);
}

.table-scroll thead th:nth-child(n + 3),
.table-scroll .quote-cell {
  text-align: right;
}

.quote-cell .cell-amount {
  display: block;
}

.cell-amount {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "tnum";
  text-align: right;
  white-space: nowrap;
}

.cell-unitprice {
  color: var(--muted);
  font-size: 0.825rem;
  font-feature-settings: "tnum";
  text-align: right;
  white-space: nowrap;
}

.cell-status {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: var(--stone);
  color: var(--copper);
  border: 1px solid rgba(60, 47, 39, 0.2);
}

.status-missing,
.status-unquoted,
.status-arithmetic_mismatch {
  background-color: #f7eee4;
  color: #8a3c1b;
  border-color: rgba(138, 60, 27, 0.3);
}

.empty-comparison,
.notice-ineligible {
  padding: 48px 24px;
  text-align: center;
  background-color: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 3px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .quote-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .quote-toolbar .form-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #load-sample {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
  }

  .quote-row[data-code] {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .quote-identity {
    padding-bottom: 2px;
  }

  .quote-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .omit-label {
    justify-self: end;
    padding-top: 4px;
    margin-top: 2px;
  }

  .extra-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .extra-fields [data-remove-extra] {
    justify-self: end;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions > * {
    width: 100%;
    box-sizing: border-box;
  }

  #price-preview {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }

  #price-preview .price-total {
    font-size: 1.5rem;
    align-self: flex-start;
  }

  .rank-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .rank-num {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .rank-name {
    font-size: 0.875rem;
  }

  .rank-value {
    grid-template-columns: minmax(0, 1fr);
    padding-inline-start: 9px;
  }

  .rank-amount {
    font-size: 1.1rem;
  }

  .table-hint {
    display: block;
  }

  .table-scroll {
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-top: 6px;
  }

  .table-scroll table {
    min-width: 620px;
  }

  .table-scroll th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--surface);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
  }

  .table-scroll thead th:first-child {
    background-color: var(--stone);
  }
}

@media (max-width: 350px) {
  .rank-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .rank-value {
    grid-column: 2 / -1;
    justify-items: start;
    border: 0;
    padding: 0;
    text-align: left;
    margin-top: 4px;
  }

  .rank-amount {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* ============== 四角色生产级工作台扩展样式 ============== */
.app-shell {
  max-width: 1220px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  height: auto;
  padding: 12px 32px;
  flex-wrap: wrap;
  gap: 16px;
}

#brand-home {
  cursor: pointer;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-wordmark {
  font-size: 12px;
  color: var(--pine);
  font-weight: 550;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-switcher {
  width: auto;
  min-width: 210px;
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.btn-compact {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-back {
  padding-left: 0;
  height: 30px;
  margin-bottom: 6px;
}

.muted-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* 登录门户 */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portal-card,
.card-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.portal-card h1,
.portal-card h2,
.page-head h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.channel-tag,
.role-pill,
.status-pill,
.meta-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  margin-right: 6px;
}

.feishu-tag,
.role-owner,
.role-platform_gc {
  background: #e7efe9;
  color: var(--pine);
}

.sms-tag,
.role-non_platform_gc {
  background: #f4ebe1;
  color: var(--copper);
}

.role-admin {
  background: #eae6dd;
  color: #3f3b34;
}

.status-draft { background: var(--stone); color: var(--muted); }
.status-published { background: var(--olive); color: var(--pine); }
.status-closed { background: #f3e8dc; color: var(--copper); }
.status-awarded { background: var(--pine); color: var(--white); }
.meta-chip { background: var(--stone); color: var(--ink); font-weight: 500; }

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.identity-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
}

.identity-card:hover {
  border-color: var(--pine);
  background: var(--olive);
}

.identity-card small {
  color: var(--muted);
  font-size: 12px;
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.stack-form label,
.field-grid-2 label,
.field-grid-3 label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.inline-input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.inline-hint {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--olive);
  color: var(--pine);
  font-size: 13px;
}

/* 顶部标题栏与卡片列表 */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.head-btns,
.btn-group-wrap,
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card .card-actions {
  margin-top: auto;
  padding-top: 6px;
}

.project-card h3 {
  margin: 0;
  font-size: 18px;
}

.kpi-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--stone);
  border-radius: 6px;
  font-size: 13px;
}

.empty-card {
  padding: 28px;
  text-align: center;
  background: var(--stone);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

/* 业主发标 4 步配置布局 */
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.config-rail {
  position: sticky;
  top: 20px;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.span-2 {
  grid-column: span 2;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mode-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
}

.mode-card.selected,
.mode-card:has(:checked) {
  background: var(--olive);
  border-color: var(--pine);
}

.mode-card small {
  font-size: 12px;
  color: var(--muted);
}

.warn-tip {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #fbf0e6;
  border: 1px solid #dfb999;
  color: #7b421d;
  font-size: 13px;
}

.sub-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sub-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.room-type-row,
.invite-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.invite-row {
  grid-template-columns: auto 1.3fr 1fr auto;
}

.check-banner {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.check-banner.ok { background: #e8f2eb; color: var(--pine); border: 1px solid #bfd6c6; }
.check-banner.err { background: #fbf0e6; color: #823c1a; border: 1px solid #dfb999; }

.fold-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--surface);
}

.fold-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.tag-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.pill-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.pill-check:has(:checked) {
  background: var(--olive);
  border-color: var(--pine);
  color: var(--pine);
  font-weight: 550;
}

.space-block {
  margin-bottom: 16px;
}

.space-block h3 {
  font-size: 14px;
  color: var(--copper);
  margin: 0 0 8px;
}

.statement-pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.compact-scroll {
  max-height: 280px;
  overflow-y: auto;
}

.qr-info-strip {
  padding: 10px 14px;
  background: var(--stone);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* 总包七步向导与建议价偏离徽章 */
.wizard-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wizard-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}

.wizard-tab.active {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
  font-weight: 600;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.quote-fields.with-loss {
  grid-template-columns: minmax(0, 1.1fr) 92px minmax(0, 1fr) minmax(94px, 0.85fr) auto;
}

.dev-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.dev-above { background: #fbece4; color: #8c3d19; }
.dev-below { background: #e6f2ea; color: #1f5c3a; }
.dev-equal { background: var(--stone); color: var(--muted); }

.info-kv-grid,
.kpi-grid,
.invite-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.info-kv-grid > div,
.kpi-box,
.invite-status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-kv-grid span,
.kpi-box span {
  font-size: 12.5px;
  color: var(--muted);
}

.kpi-box strong {
  font-size: 20px;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

/* 比价报告扩展区块 */
.report-block {
  margin-top: 26px;
}

.dual-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.badge-warn { color: #8c3d19; font-weight: 650; }
.badge-ok { color: var(--pine); font-weight: 650; }
.badge-muted { color: var(--muted); }
.base-tag { color: var(--pine); font-weight: 600; }

.info-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--stone);
  border-left: 3px solid var(--copper);
  border-radius: 4px;
  font-size: 13.5px;
}

.narrative-panel,
.checklist-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}

.narrative-list,
.award-checklist {
  margin: 10px 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.disclaimer-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--stone);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.award-action-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.award-action-bar label {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.inline-publish-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

#admin-whitelist-form.inline-publish-form {
  grid-template-columns: 168px minmax(0, 1fr) 168px minmax(0, 1.3fr) auto;
}

.brand-avg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
}

.brand-avg-chip {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
}

.brand-avg-chip strong {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink);
}

/* 消息通知抽屉 */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(39, 42, 35, 0.36);
  display: flex;
  justify-content: flex-end;
  z-index: 50;
}

.drawer-panel {
  width: min(460px, 100vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  margin: 0;
  font-size: 18px;
}

.drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.outbox-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.outbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.text-link {
  color: var(--pine);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-grid,
  .config-layout,
  .dual-tables,
  .field-grid-2,
  .field-grid-3,
  .mode-cards,
  .inline-publish-form,
  #admin-whitelist-form.inline-publish-form,
  .quote-fields.with-loss {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .config-rail {
    position: static;
  }
  .invite-row {
    grid-template-columns: 1fr;
  }
}


/* ============== 生产增强交互组件样式 ============== */
.discount-pill {
  margin-top: 6px;
  display: inline-block;
  padding: 3px 10px;
  background: #e8f2eb;
  border: 1px solid #bfd6c6;
  border-radius: 999px;
  font-size: 12px;
  color: var(--pine);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-bar input[type="search"] {
  flex: 1 1 240px;
  max-width: 360px;
  height: 36px;
  min-height: 36px;
  font-size: 13.5px;
}

.step-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(39, 42, 35, 0.08);
  font-variant-numeric: tabular-nums;
}

.wizard-tab.active .step-badge {
  background: rgba(255, 253, 248, 0.22);
  color: var(--white);
}

.dirty-dot {
  color: var(--copper);
  font-weight: 600;
}

.supplement-row {
  display: grid;
  grid-template-columns: 180px 1.4fr 100px auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.qr-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-badge {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  background: var(--olive);
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--pine);
}

.qr-badge.warn {
  background: #f8ece2;
  color: var(--copper);
  border-color: var(--copper);
}

.inline-publish-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

@media (max-width: 900px) {
  .supplement-row,
  .qr-cards-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar input[type="search"] {
    max-width: 100%;
  }
}


/* ============== 第二轮实测视觉精修样式 ============== */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b665d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: calc(100% - 12px) center !important;
  background-size: 13px 13px !important;
  background-repeat: no-repeat !important;
}

.btn-compact,
.status-pill,
.role-pill,
.meta-chip {
  white-space: nowrap;
}

.supplement-row {
  grid-template-columns: 155px minmax(210px, 1fr) 76px auto;
}

.rank-card[data-rank="1"] {
  background-color: var(--olive);
  border-color: rgba(36, 68, 50, 0.25);
}

.rank-card[data-rank="1"] .rank-num {
  background-color: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}

@media (min-width: 901px) {
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 560px) and (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .supplement-row {
    grid-template-columns: 1fr;
  }
}


/* ============== 第三轮响应式像素级收尾精修 ============== */
.button {
  white-space: nowrap;
}

.supplement-row {
  grid-template-columns: 145px minmax(0, 1fr) 68px auto;
}

.quote-identity .code {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .brand-group {
    order: 0;
  }
  .header-actions {
    order: 1;
  }
}

/* ============== 第四轮产品深度打磨：多维比价、算式回显与百单工作台 ============== */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.btn-danger-text {
  color: #8c3d19 !important;
}

.btn-danger-text:hover {
  background: #fbece4 !important;
}

.fold-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pine);
  list-style-position: inside;
}

/* 四大分部横向构成比例条 */
.cell-pct {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.section-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--line);
}

.section-bar > span {
  display: block;
  height: 100%;
}

.seg-sgx { background-color: #244432; }
.seg-wzx { background-color: #7b5135; }
.seg-sub { background-color: #6b8e78; }
.seg-fbx { background-color: #c99b6d; }

.section-legend {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.section-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

/* 逐行比价筛选栏与客观极值标签 */
.comp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comp-filter-bar input[type="search"] {
  flex: 1 1 200px;
  max-width: 280px;
  height: 36px;
  min-height: 36px;
  font-size: 13.5px;
}

.cell-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
}

.extremum-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.extremum-low {
  background: #e7efe9;
  color: var(--pine);
  border: 1px solid #bfd6c6;
}

.extremum-high {
  background: #f5ede3;
  color: var(--copper);
  border: 1px solid #dfcbb4;
}

/* 总包端算式实时回显与底部多税率汇总吸附栏 */
.quote-row[data-gc-code] {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 1.75fr);
  align-items: start;
  gap: 18px;
  padding: 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-row[data-gc-code]:has([data-q-omit]:checked) {
  background-color: var(--stone);
  opacity: 0.78;
}

.quote-row[data-gc-code] .quote-fields {
  align-items: start;
}

.quote-row[data-gc-code] .line-total {
  align-self: start;
  padding-top: 2px;
}

.quote-row[data-gc-code] .line-total output {
  line-height: 44px;
}

.quote-row[data-gc-code] .omit-label {
  padding-top: 31px;
}

.qty-eval-hint {
  color: var(--pine);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.extra-fields[data-ex-idx] {
  display: grid;
  grid-template-columns: 98px minmax(150px, 1.5fr) 70px minmax(120px, 1.05fr) minmax(105px, 0.95fr) minmax(105px, 0.9fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.extra-fields[data-ex-idx] .extra-code {
  align-self: start;
  padding-top: 2px;
}

.extra-fields[data-ex-idx] .extra-code .code,
.extra-fields[data-ex-idx] .line-total output {
  line-height: 44px;
}

.extra-fields[data-ex-idx] [data-ex-del] {
  margin-top: 22px;
}

.gc-live-bar {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  margin-top: 14px;
  padding: 12px 18px;
  background: var(--olive);
  border: 1px solid rgba(36, 68, 50, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(39, 42, 35, 0.08);
}

.gc-live-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gc-live-metrics strong {
  color: var(--pine);
  font-size: 15px;
}

/* 管理员系统健康条、百单紧凑筛选与单家报价单导出栏 */
.health-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
}

.compact-select {
  width: auto !important;
  min-width: 148px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 13px !important;
}

.per-bidder-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  margin: 10px 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-row {
  grid-template-columns: auto minmax(175px, 1.55fr) 136px auto;
  gap: 8px;
}

.invite-row input:not([type="checkbox"]),
.extra-fields[data-ex-idx] input:not([type="checkbox"]) {
  padding-inline: 10px;
  font-size: 14px;
}

#admin-tenders-tbody td:first-child {
  min-width: 215px;
}

#admin-tenders-tbody td:nth-child(2),
#admin-tenders-tbody td:nth-child(3),
#admin-tenders-tbody td:nth-child(4) {
  white-space: nowrap;
}

#admin-tenders-tbody .btn-group-wrap {
  gap: 6px;
}

#admin-tenders-tbody .btn-compact {
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
}

/* ============== 第五轮竹居人文高定 UI 视觉升级系统 ============== */
body {
  background: radial-gradient(circle at 50% 0%, #f6f2eb 0%, #ede7dd 65%, #e8e1d5 100%);
  min-height: 100vh;
}

.app-shell {
  margin: 26px auto 44px;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(39, 42, 35, 0.065), 0 2px 10px rgba(39, 42, 35, 0.03);
  overflow: clip;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 34px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2d533d 0%, #1d3628 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(36, 68, 50, 0.18);
}

.wordmark-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-edition-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--pine);
  border: 1px solid rgba(36, 68, 50, 0.18);
}

.sub-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.header-role-dot {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}

/* 浮动轻提示状态条 */
.message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #c5d9cb;
  border-left: 4px solid var(--pine);
  background: #f4faf6;
  color: #1c3a29;
  box-shadow: 0 8px 24px rgba(36, 68, 50, 0.08);
  margin-bottom: 20px;
}

.message[data-error="true"] {
  background: #fdf3ed;
  color: #783316;
  border-color: #e6c2ad;
  border-left-color: #b44922;
}

.message-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--pine);
  color: var(--white);
}

.message[data-error="true"] .message-icon {
  background: #b44922;
}

.message-text {
  flex: 1 1 auto;
  font-weight: 500;
}

.message-close {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.message-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* 登录门户导览横幅与角色卡片 */
.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  background: linear-gradient(135deg, #213e2e 0%, #2d523e 62%, #3a5d48 100%);
  color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 14px 32px rgba(33, 62, 46, 0.16);
}

.login-hero-copy {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #c8dec9;
}

.login-hero-copy h1 {
  color: var(--white) !important;
  font-size: clamp(24px, 2.8vw, 32px) !important;
  margin: 0 !important;
  line-height: 1.24;
}

.login-hero-copy p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 253, 248, 0.86);
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-pillars span {
  font-size: 12px;
  font-weight: 550;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.13);
  border: 1px solid rgba(255, 253, 248, 0.22);
  color: #f4f8f4;
}

.login-hero-visual {
  position: relative;
  min-height: 210px;
}

.login-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(33, 62, 46, 0.65) 0%, rgba(33, 62, 46, 0.08) 48%, transparent 100%);
}

.portal-card {
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(39, 42, 35, 0.03);
}

.portal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.portal-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section-caption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 16px;
  font-weight: 550;
}

.identity-card {
  border-radius: 10px;
  padding: 13px 15px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.identity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 68, 50, 0.08);
}

.identity-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.identity-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--pine);
  color: var(--white);
}

.avatar-non_platform_gc { background: var(--copper); }
.avatar-admin { background: #3f3b34; }

.identity-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.16s ease, color 0.16s ease;
}

.identity-card:hover .identity-arrow {
  transform: translateX(3px);
  color: var(--pine);
}

.identity-name {
  font-size: 15px;
  color: var(--ink);
}

.identity-company {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 卡片层级、项目进度条与五阶段招采时间轴 */
.owner-kpi-strip {
  margin-bottom: 18px;
}

.kpi-box {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(39, 42, 35, 0.02);
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(39, 42, 35, 0.028);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: #cfc7b8;
}

.project-card[data-card-status="published"]::before { background: #4d7c5f; }
.project-card[data-card-status="closed"]::before { background: var(--copper); }
.project-card[data-card-status="awarded"]::before { background: var(--pine); }

.project-card:hover {
  transform: translateY(-2px);
  border-color: #c5bcad;
  box-shadow: 0 10px 24px rgba(39, 42, 35, 0.065);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.card-chips .meta-chip {
  margin-right: 0;
}

.project-card-title {
  font-family: var(--serif);
  font-size: 19px !important;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.bid-progress-box,
.draft-hint-box {
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.bid-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bid-progress-label strong {
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.bid-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e3ddd1;
  overflow: hidden;
}

.bid-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c6c4f 0%, var(--pine) 100%);
}

/* 五阶段招采进度轴 */
.lifecycle-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(39, 42, 35, 0.02);
}

.lc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lc-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.lc-done .lc-dot {
  background: #e6f0e9;
  border-color: #9ec0a9;
  color: var(--pine);
}

.lc-active .lc-dot {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(36, 68, 50, 0.14);
}

.lc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lc-text strong {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-upcoming .lc-text strong {
  color: var(--muted);
  font-weight: 500;
}

.lc-text small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 业主配置器快捷章节导航与模式卡片精修 */
.config-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.jump-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jump-pill:hover {
  border-color: var(--pine);
  background: var(--olive);
  color: var(--pine);
}

.jump-pill > span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-section {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(39, 42, 35, 0.025);
  scroll-margin-top: 84px;
}

.card-section > h2,
.report-block > h2 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.mode-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mode-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--pine);
}

.mode-card strong {
  padding-right: 22px;
}

/* 受邀总包状态卡片（彻底消除企业名被标签挤压断行） */
.invite-status-card {
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
}

.invite-status-card[data-bid-state="submitted"] {
  border-color: #bdd3c3;
  background: #f8fbf9;
}

.invite-card-top,
.invite-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.invite-card-top .role-pill {
  margin-right: 0;
}

.bid-state-pill {
  font-size: 12px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--muted);
}

.bid-state-pill.state-submitted {
  background: #e5f1e8;
  color: var(--pine);
}

.bid-state-pill.state-draft {
  background: #f6ede2;
  color: var(--copper);
}

.invite-company-title {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

/* 比价报告全模块统一卡片化与表格圆角精致边框 */
.report-block {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 2px 8px rgba(39, 42, 35, 0.025);
}

.rank-grid {
  margin: 14px 0 4px;
  gap: 10px;
}

.rank-card {
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.table-scroll {
  margin: 14px 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  background: var(--white);
}

.table-scroll table {
  border-top: none;
}

.table-scroll tbody tr:last-child td,
.table-scroll tbody tr:last-child th {
  border-bottom: none;
}

.table-scroll tbody tr:hover td,
.table-scroll tbody tr:hover th {
  background-color: #f8f4ec;
}

/* 总包七步串联进度条与行状态色标 */
.wizard-tabs {
  gap: 8px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(39, 42, 35, 0.02);
}

.wizard-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  font-weight: 550;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wizard-tab:hover:not(.active) {
  background: var(--stone);
  color: var(--ink);
}

.wiz-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--stone);
  color: var(--muted);
  border: 1px solid var(--line);
}

.wizard-tab.done:not(.active) .wiz-num {
  background: #e5f1e8;
  border-color: #9dc1a8;
  color: var(--pine);
}

.wizard-tab.active .wiz-num {
  background: rgba(255, 253, 248, 0.22);
  border-color: rgba(255, 253, 248, 0.4);
  color: var(--white);
}

.quote-row[data-gc-code] {
  border-left: 3.5px solid var(--line);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-row[data-gc-code][data-line-state="quoted"] {
  border-left-color: #3d7052;
  background-color: #fdfcf9;
}

.quote-row[data-gc-code][data-line-state="invalid"] {
  border-left-color: #b44922;
  background-color: #fdf6f2;
}

.quote-row[data-gc-code]:hover {
  box-shadow: 0 4px 14px rgba(39, 42, 35, 0.04);
}

.quote-row[data-gc-code] .line-total output,
.extra-fields[data-ex-idx] .line-total output {
  display: flex;
  align-items: center;
  padding: 0 11px;
  height: 44px;
  line-height: 1;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* 总部管理员分栏切换导航 */
.admin-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(39, 42, 35, 0.02);
}

.admin-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-tab:hover:not(.active) {
  background: var(--stone);
  color: var(--ink);
}

.admin-tab.active {
  background: var(--pine);
  color: var(--white);
}

.admin-tab.active .step-badge {
  background: rgba(255, 253, 248, 0.22);
  color: var(--white);
}

@media (max-width: 960px) {
  .login-hero {
    grid-template-columns: 1fr;
  }
  .login-hero-visual {
    display: none;
  }
  .lifecycle-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .lifecycle-stepper {
    grid-template-columns: 1fr;
  }
}

/* ============== 第六轮 Apple Keynote 级中文排版与 1px 严谨栅格对齐系统 ============== */
:root {
  --font-display: "PingFang SC", "SF Pro Display", "Hiragino Sans GB", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", sans-serif;
  --font-sans: "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", sans-serif;
  --font-num: "DIN Alternate", "SF Pro Display", "Bahnschrift", "Inter", "Helvetica Neue", -apple-system, "PingFang SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --serif: var(--font-display);

  /* 亚朵竹居 · 温润石灰岩白 × 深林松翠 × 拉丝香槟铜金色彩系统 */
  --canvas: #F3EFE7;
  --shell-bg: #FAF8F4;
  --surface: #F5F2EB;
  --white: #FFFFFF;
  --stone: #EDE8DE;
  --olive: #E7F1EB;
  --ink: #161F1B;
  --ink-soft: #39433E;
  --muted: #656E69;
  --line: #E3DDD1;
  --line-strong: #CFC7B8;
  --pine: #194230;
  --pine-deep: #102C20;
  --copper: #996A2F;
  --brass: #BE8C46;
  --brass-soft: #FCF6E8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html,
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(ellipse 120% 65% at 50% -8%, #FBF9F4 0%, #F3EFE7 56%, #EAE4D8 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

/* 双层级标题字体与金融等宽数字字阶解耦 */
h1,
h2,
h3,
.wordmark,
.project-card-title {
  font-family: var(--font-display) !important;
}

.kpi-box strong,
.rank-num,
.rank-amount,
.rank-diff,
.cell-amount,
.cell-num,
.kpi-strip strong,
.bid-progress-label strong,
.gc-live-metrics strong,
.line-total output,
.brand-avg-chip strong {
  font-family: var(--font-num) !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1;
}

code,
.code,
.extra-code .code,
.quote-identity .code,
.table-scroll tbody th.code {
  font-family: var(--font-mono) !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 1. 外壳与顶栏/主内容区严格共享 36px 左右基准轴线 */
.app-shell {
  width: calc(100% - 48px);
  max-width: 1220px;
  margin: 24px auto 48px;
  background: var(--shell-bg);
  border: 1px solid rgba(24, 34, 28, 0.085);
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(22, 31, 27, 0.065), 0 2px 8px rgba(22, 31, 27, 0.03);
}

.app-header {
  min-height: 70px;
  padding: 13px 36px;
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(24, 34, 28, 0.075);
}

.app-main {
  padding: 28px 36px 40px;
}

.wordmark {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #24533e 0%, #163728 100%);
  box-shadow: 0 2px 6px rgba(27, 67, 50, 0.22);
}

.header-actions {
  gap: 8px;
  align-items: center;
}

.role-switcher,
.header-actions .btn-compact {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* 2. 面包屑独立置顶 + 页面主标题与右侧按钮严格水平居中对齐 */
.breadcrumb-row {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
}

.btn-back {
  height: 28px;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.btn-back:hover {
  color: var(--pine);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.page-head h1,
.portal-card h1 {
  font-size: 28px !important;
  font-weight: 650 !important;
  letter-spacing: -0.024em !important;
  line-height: 1.22 !important;
  margin: 0 0 6px !important;
  color: var(--ink);
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-meta-row .status-pill {
  margin-right: 0;
}

.card-section > h2,
.report-block > h2,
.portal-card > h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.016em !important;
  line-height: 1.32 !important;
  margin: 0 0 16px !important;
  color: var(--ink);
}

.sub-box-head > h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.016em !important;
  margin: 0 !important;
}

/* 3. 全局栅格间距统一 16px：4列 KPI 与 2列卡片中轴线 100% 像素级重合 */
.portal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kpi-grid {
  gap: 16px;
}

.owner-kpi-strip {
  margin-bottom: 16px;
}

.kpi-box {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  justify-content: space-between;
}

.kpi-box strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  gap: 12px;
}

.project-card-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
}

/* 4. 五阶段流程轴：左右两端完全贴齐卡片内边距 + 阶段间细线串联 */
.lifecycle-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.lc-step {
  flex: 0 0 auto;
  gap: 10px;
}

.lc-line {
  flex: 1 1 20px;
  height: 1px;
  background: var(--line);
  min-width: 12px;
}

.lc-line-done {
  background: #a9cbb5;
}

/* 5. 折叠快照面板：去除浏览器原生三角，改为左右对齐精致折叠条 */
.fold-card {
  padding: 16px 24px;
  margin-bottom: 16px;
}

.fold-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.fold-card > summary::-webkit-details-marker {
  display: none;
}

.fold-toggle-pill {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fold-card:hover .fold-toggle-pill {
  background: var(--olive);
  color: var(--pine);
}

.fold-card[open] > summary {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* 6. 受邀总包卡片：桌面端严格锁定 3 等分网格，底栏对齐 */
.invite-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.invite-status-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.invite-company-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.invite-card-foot {
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(29, 29, 31, 0.06);
}

/* 7. 卡片容器统一 24px 内边距与 16px 纵向节奏 */
.card-section,
.report-block,
.portal-card {
  padding: 24px;
  margin-bottom: 16px;
  margin-top: 0;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.022);
}

.report-block + .report-block {
  margin-top: 16px;
}

/* 8. 排名卡片：固定右侧金额列宽度 236px，使所有名次的竖向分割线 100% 直线贯通 */
.rank-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 236px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.rank-card[data-rank="1"] {
  background: linear-gradient(90deg, #eff6f1 0%, #f6faf7 100%);
  border-color: #bcd5c5;
}

.rank-num {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 650;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.rank-details {
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid rgba(29, 29, 31, 0.09);
  text-align: right;
}

.rank-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.rank-amount {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
}

.rank-diff {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 9. 表单标签单行对齐：彻底消除带基准小字导致的输入框高低错位 */
.lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  line-height: 1.35;
}

.lbl-row small,
.field-grid-2 label,
.field-grid-3 label,
.stack-form label,
.quote-fields label,
.extra-fields label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background-color: var(--white);
  font-size: 14px;
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}

.quote-row[data-gc-code] .quote-fields.with-loss {
  grid-template-columns: minmax(0, 1.05fr) 124px minmax(0, 1fr) minmax(108px, 0.9fr) auto;
}

.quote-row[data-gc-code] .lbl-row,
.quote-row[data-gc-code] .lbl-row > span,
.quote-row[data-gc-code] .lbl-row > small,
.quote-row[data-gc-code] .line-total > span,
.extra-fields[data-ex-idx] .line-total > span,
.extra-fields[data-ex-idx] .extra-code > span {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.quote-row[data-gc-code] .line-total,
.extra-fields[data-ex-idx] .line-total,
.extra-fields[data-ex-idx] .extra-code {
  padding-top: 0 !important;
  gap: 4px !important;
}

.quote-row[data-gc-code] .line-total output,
.extra-fields[data-ex-idx] .line-total output {
  height: 40px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.quote-row[data-gc-code] .omit-label {
  padding-top: 28px;
}

.button {
  height: 40px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.008em;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.btn-compact {
  height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 13px;
}

/* 10. 筛选工具栏与表格排版精细化 */
.filter-bar,
.comp-filter-bar {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  gap: 10px;
}

.filter-bar input[type="search"],
.comp-filter-bar input[type="search"] {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 8px;
}

.table-scroll {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.table-scroll th {
  background: #F4F0E8;
  color: #555E59;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.01em;
  padding: 11px 14px;
}

.table-scroll td,
.table-scroll tbody th {
  padding: 13px 14px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.cell-amount {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* 11. 登录页 Hero 更克制纯粹的深色苹果风质感 */
.login-hero {
  background: linear-gradient(135deg, #132a1f 0%, #1d3f2f 58%, #264e3b 100%);
  border-radius: 16px;
  margin-bottom: 16px;
}

.login-hero-copy h1 {
  font-size: 30px !important;
  font-weight: 650 !important;
  letter-spacing: -0.025em !important;
}

@media (max-width: 960px) {
  .quote-row[data-gc-code] .quote-fields.with-loss {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-cards,
  .portal-grid,
  .invite-progress-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lc-line {
    display: none;
  }
  .rank-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .rank-value {
    grid-column: 2 / -1;
    align-items: flex-start;
    padding-inline-start: 0;
    border-inline-start: none;
    margin-top: 6px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  .app-header,
  .app-main {
    padding-inline: 18px;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lifecycle-stepper {
    grid-template-columns: 1fr;
  }
}

/* ============== 第七轮 控件内部文字光学垂直居中与 Apple 自定义下拉组件 ============== */

/* 1. 隐藏原生 select（彻底消除浏览器/WebView 注入的黑色三角与文字贴顶缺陷），交由 .ui-select 渲染 */
.ui-select-native-hidden {
  display: none !important;
}

.ui-select {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.ui-select.is-role-switcher {
  width: auto;
  min-width: 214px;
}

.ui-select.is-compact {
  width: auto;
  min-width: 148px;
}

.ui-select-trigger {
  appearance: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ui-select.is-role-switcher .ui-select-trigger,
.ui-select.is-compact .ui-select-trigger {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
  border-radius: 8px;
}

.ui-select-trigger:hover:not(:disabled) {
  border-color: #a8a8b0;
  background-color: #fcfcfd;
}

.ui-select.open .ui-select-trigger,
.ui-select-trigger:focus-visible {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}

.ui-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
}

.ui-select.is-placeholder .ui-select-label {
  color: #424245;
}

.ui-select-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.15s ease;
}

.ui-select.open .ui-select-chevron {
  transform: rotate(180deg);
  color: var(--pine);
}

.ui-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 360px;
  max-height: 290px;
  overflow-y: auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 90;
}

.ui-select.is-role-switcher .ui-select-menu {
  left: auto;
  right: 0;
  min-width: 288px;
}

.ui-select.drop-up .ui-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.app-shell {
  overflow: visible;
}

.app-header {
  border-radius: 20px 20px 0 0;
}

.ui-select.open .ui-select-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-select-option {
  appearance: none;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ui-select-option:hover {
  background: #eef5f0;
  color: var(--pine);
}

.ui-select-option.is-selected {
  background: #e7f1ea;
  color: var(--pine);
  font-weight: 600;
}

.ui-opt-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-opt-check {
  flex: 0 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--pine);
}

/* 2. 全站按钮、胶囊徽章、步骤圆点、复选框与输入框 100% 严格光学居中 */
.button,
.btn-compact,
.wizard-tab,
.admin-tab,
.jump-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.channel-tag,
.role-pill,
.status-pill,
.meta-chip,
.bid-state-pill,
.fold-toggle-pill,
.discount-pill,
.hero-pillars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  line-height: 1;
  vertical-align: middle;
}

.header-role-dot,
.brand-edition-tag,
.dev-tag,
.extremum-tag,
.cell-status,
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  line-height: 1;
  vertical-align: middle;
}

.rank-num,
.lc-dot,
.wiz-num,
.jump-pill > span,
.identity-avatar,
.message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

input:not([type="checkbox"]):not([type="radio"]) {
  line-height: normal;
  vertical-align: middle;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* 修复报价行右侧「漏报」复选框与 40px 输入/合价框水平中心严格对齐 */
.quote-row[data-gc-code] .omit-label {
  padding-top: 0 !important;
  margin-top: 21.5px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.omit-label input[type="checkbox"],
.pill-check input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.pill-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  line-height: 1;
}

.gc-live-metrics > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.table-scroll th,
.table-scroll td {
  vertical-align: middle;
}

@media (max-width: 900px) {
  .quote-row[data-gc-code] {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .extra-fields[data-ex-idx] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .extra-fields[data-ex-idx] [data-ex-del] {
    margin-top: 0;
  }
  .comp-filter-bar input[type="search"] {
    max-width: 100%;
  }
}

/* ============== 第八轮 百条级长清单深度交互、毛玻璃确认弹窗与打印增强 ============== */

/* 1. 790 项比价矩阵：视口滚动容器 + 毛玻璃吸顶表头 + 首列编码吸左 */
.comp-matrix-scroll {
  max-height: min(74vh, 760px);
  overflow: auto;
  position: relative;
}

.comp-matrix-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(244, 240, 232, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.comp-matrix-scroll thead th:first-child {
  left: 0;
  z-index: 6;
}

.comp-matrix-scroll tbody th.code {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--white);
  box-shadow: 1px 0 0 var(--line);
  white-space: nowrap;
}

/* TOP10 拆解点击编码直达按钮与目标行脉冲高亮 */
.code-jump-btn {
  appearance: none;
  border: 1px solid rgba(27, 67, 50, 0.2);
  background: #f2f7f4;
  color: var(--pine);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.code-jump-btn:hover {
  background: #e2efe7;
  border-color: var(--pine);
}

@keyframes rowFlashPulse {
  0% { background-color: #d7efe0; }
  70% { background-color: #eaf6ee; }
  100% { background-color: transparent; }
}

tr.row-flash-highlight > td,
tr.row-flash-highlight > th.code {
  animation: rowFlashPulse 2.6s ease forwards;
}

/* 2. 步骤 6 官方 28 项非标三组归类卡片与已添加状态 */
.fbx-preset-groups {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.fbx-group-box {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.fbx-group-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.fbx-preset-pill {
  height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid var(--line) !important;
  background: var(--white) !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
}

.fbx-preset-pill:hover:not(:disabled) {
  border-color: var(--pine) !important;
  background: var(--olive) !important;
  color: var(--pine) !important;
}

.fbx-preset-pill.is-added {
  background: #eaf3ed !important;
  border-color: #c2dbc9 !important;
  color: var(--pine) !important;
  opacity: 0.85;
  cursor: default;
}

.check-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* 3. Apple 毛玻璃二次确认弹窗 */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(29, 29, 31, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-backdrop[hidden] {
  display: none !important;
}

.confirm-dialog {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.confirm-title {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  color: var(--ink);
}

.confirm-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.confirm-detail {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--stone);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}

.confirm-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button.is-danger-btn {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #ffffff !important;
}

.button.is-danger-btn:hover {
  background: #912018 !important;
  border-color: #912018 !important;
}

/* 管理员选中项目行高亮与子面板聚焦边框（统一松翠色系） */
tr.is-active-row > td {
  background: rgba(25, 66, 48, 0.055) !important;
}

tr.is-active-row > td:first-child {
  box-shadow: inset 3px 0 0 var(--pine);
}

.admin-subpanel-box {
  border-color: rgba(25, 66, 48, 0.28) !important;
  box-shadow: 0 12px 30px rgba(22, 48, 36, 0.06);
}

/* 中位值 TOP10 双栏表紧凑对齐：杜绝右侧金额尾数裁切 */
.dual-tables > div {
  min-width: 0;
}

.top10-dual-tables .table-scroll th,
.top10-dual-tables .table-scroll td {
  padding: 9px 8px !important;
  font-size: 12.5px !important;
}

.top10-dual-tables .cell-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.top10-dual-tables td.code {
  white-space: nowrap;
}

/* 定制品牌徽标（筑拱·同尺）与顶栏品牌组合升级 */
.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  transition: opacity 0.16s ease;
}

.brand-group:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 48, 35, 0.24), 0 2px 5px rgba(184, 140, 70, 0.18) !important;
}

.brand-mark {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  padding: 0 !important;
  border-radius: 11.5px !important;
  background: transparent !important;
  box-shadow: 0 5px 14px rgba(18, 48, 35, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}

.brand-mark svg {
  width: 42px !important;
  height: 42px !important;
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.wordmark-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark {
  font-size: 18.5px !important;
  font-weight: 680 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.15 !important;
  color: #16211b !important;
}

.brand-edition-tag {
  height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em !important;
  background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd4 100%) !important;
  color: #7c561d !important;
  border: 1px solid rgba(190, 145, 72, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.1;
  color: #7a807c;
  text-transform: uppercase;
}

.header-brand-cluster > .sub-wordmark:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid rgba(24, 34, 28, 0.11);
  min-height: 28px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============== 第九轮 亚朵东方建筑人文审美 · 全站组件精雕升级 ============== */

/* 1. 章节主标题建筑导引竖标（松翠渐变至香槟铜金） */
.card-section > h2,
.report-block > h2,
.card-section > .sub-box-head > h2,
.card-section > .sub-box-head > div > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-section > h2::before,
.report-block > h2::before,
.card-section > .sub-box-head > h2::before,
.card-section > .sub-box-head > div > h2::before {
  content: "";
  width: 3.5px;
  height: 16px;
  flex: 0 0 3.5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #194230 0%, #C69347 100%);
}

/* 2. 按钮、输入框与下拉框温润触感升级 */
.button.primary {
  background: linear-gradient(180deg, #21523C 0%, #153828 100%);
  border-color: #143526;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 10px rgba(21, 56, 40, 0.16);
}

.button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #265E45 0%, #194230 100%);
  border-color: #194230;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(21, 56, 40, 0.22);
}

.button.secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9F7F2 100%);
  border: 1px solid #D8D1C4;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 31, 27, 0.03);
}

.button.secondary:hover:not(:disabled) {
  background: #F3EFE6;
  border-color: #C2B9A8;
  color: #111915;
}

input:not([type="checkbox"]):not([type="radio"]),
.ui-select-trigger {
  border-color: #D9D2C5;
  background-color: #FFFFFF;
}

input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
.ui-select-trigger:hover:not(:disabled) {
  border-color: #BEB5A4;
  background-color: #FFFEFC;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
.ui-select.open .ui-select-trigger,
.ui-select-trigger:focus-visible {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(25, 66, 48, 0.12);
}

.ui-select-menu {
  background: rgba(253, 252, 249, 0.97);
  border: 1px solid rgba(24, 34, 28, 0.11);
  box-shadow: 0 16px 40px rgba(22, 31, 27, 0.13), 0 2px 6px rgba(22, 31, 27, 0.05);
}

/* 3. 登录门户深林竹居光影横幅与身份卡片 */
.login-hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(235, 198, 132, 0.2) 0%, transparent 50%),
    linear-gradient(132deg, #0E231A 0%, #183B2B 54%, #244E3B 100%) !important;
  border: 1px solid rgba(228, 191, 125, 0.22);
  box-shadow: 0 18px 42px rgba(15, 36, 26, 0.16);
}

.hero-eyebrow {
  color: #ECD098 !important;
  letter-spacing: 0.15em;
}

.hero-pillars span {
  background: rgba(255, 252, 245, 0.11);
  border: 1px solid rgba(236, 208, 152, 0.28);
  color: #F8F5EE;
}

.identity-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFBF8 100%);
  border: 1px solid #E3DDD1;
}

.identity-card:hover {
  border-color: rgba(25, 66, 48, 0.42);
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(22, 42, 32, 0.08);
}

/* 4. KPI 指标卡、项目大盘卡与状态徽章精修 */
.kpi-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFBF8 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 8px rgba(22, 31, 27, 0.026);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.kpi-box:hover {
  border-color: #D5CEBF;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px rgba(22, 31, 27, 0.045);
}

.kpi-box strong {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #15231C;
}

.project-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFCF9 100%);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(22, 31, 27, 0.032);
}

.project-card::before {
  height: 3.5px;
  background: linear-gradient(90deg, #C9C0B0 0%, #DFD8C8 100%);
}

.project-card[data-card-status="published"]::before {
  background: linear-gradient(90deg, #194230 0%, #2F6B4E 65%, #C89A51 100%);
}

.project-card[data-card-status="awarded"]::before {
  background: linear-gradient(90deg, #9E6E30 0%, #D8AB61 52%, #194230 100%);
}

.project-card[data-card-status="closed"]::before {
  background: linear-gradient(90deg, #6E6A61 0%, #9E988C 100%);
}

.project-card:hover {
  border-color: #CBC2B2;
  box-shadow: 0 14px 32px rgba(22, 31, 27, 0.07);
}

.status-pill.status-published {
  background: #E6F2EB;
  color: #184D35;
  border: 1px solid #C2DEC9;
}

.status-pill.status-draft {
  background: #F8F1E3;
  color: #7D5520;
  border: 1px solid #E6D3B0;
}

.status-pill.status-awarded {
  background: linear-gradient(180deg, #FCF6E8 0%, #F5E8CE 100%);
  color: #6E4916;
  border: 1px solid #DFC28B;
}

.meta-chip {
  background: #F3EFE7;
  color: #545D58;
  border: 1px solid #E4DED2;
}

.bid-progress-box,
.draft-hint-box {
  background: #F8F6F1;
  border: 1px solid #E7E1D6;
}

.bid-progress-track {
  background: #E5DFD3;
}

.bid-progress-track > span {
  background: linear-gradient(90deg, #194230 0%, #347857 100%);
}

.kpi-strip {
  background: #F5F1E9;
  border: 1px solid #E6DFD2;
  border-radius: 9px;
}

.kpi-strip strong {
  font-size: 15px;
  font-weight: 700;
  color: #16241D;
}

/* 5. 比价报告榜首金标卡与总包实时汇总底栏质感提升 */
.rank-card {
  background: #F9F7F2;
  border: 1px solid #E4DED2;
}

.rank-card[data-rank="1"] {
  background: linear-gradient(95deg, #EBF4EE 0%, #FBF8F0 100%);
  border-color: #B6D3C1;
  box-shadow: 0 4px 16px rgba(25, 66, 48, 0.06);
}

.rank-card[data-rank="1"] .rank-num {
  background: linear-gradient(145deg, #21523C 0%, #143526 100%);
  color: #F7E3B5;
  box-shadow: 0 2px 6px rgba(21, 56, 40, 0.22);
}

.rank-amount {
  font-size: 25px;
  font-weight: 700;
  color: #14221B;
}

.gc-live-bar {
  background: linear-gradient(90deg, rgba(18, 43, 31, 0.96) 0%, rgba(28, 62, 46, 0.96) 100%) !important;
  border: 1px solid rgba(229, 192, 126, 0.3) !important;
  color: #F5F2EB !important;
  box-shadow: 0 14px 32px rgba(16, 38, 28, 0.22) !important;
}

.gc-live-bar .gc-live-metrics > span {
  color: rgba(245, 242, 235, 0.82) !important;
}

.gc-live-bar .gc-live-metrics strong {
  color: #F8E2B0 !important;
  font-size: 16px !important;
}

/* 6. 文件上传选择器按钮定制化与管理员项目列防孤字折行 */
input[type="file"] {
  padding: 5px 10px !important;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  appearance: none;
  margin-right: 10px;
  padding: 0 12px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #D5CEBF;
  background: linear-gradient(180deg, #FAF8F4 0%, #EFEBE2 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #EAE4D8;
  border-color: #BEB5A4;
}

#admin-tenders-tbody td:first-child {
  min-width: 256px;
}

/* 4. 定标汇报阅读版打印样式（严守无源文件外泄前提下的洁净纸面排版） */
@media print {
  body,
  .app-shell {
    background: #ffffff !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .app-header,
  .breadcrumb-row,
  .head-btns,
  .comp-filter-bar,
  .award-action-bar,
  .invite-card-foot button,
  #message,
  #outbox-drawer,
  #confirm-modal {
    display: none !important;
  }
  .comp-matrix-scroll,
  .table-scroll {
    max-height: none !important;
    overflow: visible !important;
  }
  .card-section,
  .report-block {
    break-inside: avoid-page;
    box-shadow: none !important;
  }
}
