:root {
  --bg: #f6f8f7;
  --panel: #ffffff;
  --ink: #14221f;
  --muted: #60706b;
  --line: #dce5e1;
  --teal: #0f766e;
  --teal-dark: #0c5f59;
  --mint: #dff5ed;
  --gold: #b7791f;
  --gold-soft: #fff4d8;
  --red: #b42318;
  --green: #16794c;
  --blue: #2663a3;
  --shadow: 0 10px 30px rgba(20, 34, 31, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Inter", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #10211e;
  color: #ecf5f2;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e7f7ef;
  color: var(--teal-dark);
  font-weight: 800;
}

.brand-mark.image-mark {
  background: #ffffff;
  overflow: hidden;
  padding: 2px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #b8cbc5;
  font-size: 13px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #e5f0ec;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.12);
}

.nav svg,
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.fee-note {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  padding: 14px;
  border-radius: var(--radius);
  color: #e9f4ef;
}

.fee-note strong {
  display: block;
  font-size: 22px;
  margin-bottom: 5px;
}

.fee-note span {
  color: #b8cbc5;
  line-height: 1.6;
  font-size: 13px;
}

main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: 68px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar > div {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.top-actions.left {
  justify-content: flex-start;
}

.match-mode-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.match-mode-panel.compact {
  margin-bottom: 18px;
}

.mode-option {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 13px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 10px;
  text-align: left;
  cursor: pointer;
}

.mode-option svg {
  grid-row: 1 / 3;
  width: 21px;
  height: 21px;
  color: var(--teal);
}

.mode-option strong {
  font-size: 15px;
}

.mode-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mode-option.active {
  border-color: var(--teal);
  background: #eefaf6;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.mode-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.btn.primary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.ghost {
  background: transparent;
}

.btn.warning {
  border-color: #f0d391;
  background: var(--gold-soft);
  color: #714d11;
}

.content {
  padding: 26px 28px 42px;
  display: grid;
  gap: 22px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 22px;
}

.band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

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

.band-header h2 {
  margin: 0;
  font-size: 17px;
}

.band-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.band-body {
  padding: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 20px;
  align-items: stretch;
}

.match-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.intro-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.intro-copy {
  color: var(--muted);
  line-height: 1.8;
  max-width: 780px;
  margin: 12px 0 0;
}

.quick-form,
.form-grid {
  display: grid;
  gap: 14px;
}

.quick-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #31443f;
  font-size: 13px;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  min-height: 98px;
  resize: vertical;
  line-height: 1.6;
}

.single-input-form {
  grid-template-columns: minmax(0, 1fr);
}

.achievement-textarea {
  min-height: 300px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.85;
}

.quick-form .achievement-textarea {
  min-height: 190px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdfc;
}

.metric strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.fee-card {
  background: #112b27;
  color: #f4faf8;
  padding: 20px;
  border-radius: var(--radius);
  display: grid;
  align-content: space-between;
  min-height: 100%;
  gap: 18px;
}

.fee-card.compact {
  min-height: auto;
  align-content: start;
}

.fee-card h2 {
  margin: 0;
  font-size: 18px;
}

.fee-number {
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
  margin: 24px 0 8px;
}

.fee-card p {
  color: #bed4ce;
  line-height: 1.7;
  margin: 0;
}

.official-account-card {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 86px;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(20, 34, 31, 0.06);
}

.fee-card .official-account-card {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.official-account-card strong,
.official-account-card span {
  display: block;
}

.official-account-card strong {
  font-size: 15px;
}

.official-account-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.official-avatar {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #ffffff;
}

.official-qr {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.success-contact {
  grid-column: 1 / -1;
}

.progress-contact {
  margin-top: 16px;
  max-width: 620px;
}

.process {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  min-height: 112px;
}

.step .index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 12px;
}

.step strong {
  display: block;
  margin-bottom: 7px;
}

.step span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-state {
  border: 1px dashed #b9c8c3;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  background: #fbfdfc;
}

.result-list {
  display: grid;
  gap: 16px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.result-item.score-excellent,
.score.score-excellent {
  border-color: #0f766e;
}

.result-item.score-high,
.score.score-high {
  border-color: #22a06b;
}

.result-item.score-medium,
.score.score-medium {
  border-color: #d6a21d;
}

.result-item.score-low,
.score.score-low {
  border-color: #d97706;
}

.result-item.score-weak,
.score.score-weak {
  border-color: #a8b4af;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.result-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  background: #f9fbfa;
  color: #40534e;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.tag.soft-tag {
  background: #eef8f5;
  border-color: #d0e7df;
  color: #17614f;
}

.tag.match-tag,
.tag.meta-tag {
  background: #f3fbf8;
  border-color: #c7e4db;
  color: #0f6b58;
}

.result-meta {
  margin-bottom: 16px;
}

.result-meta[hidden] {
  display: none !important;
}

.result-meta-card {
  border: 1px solid var(--line);
  background: #f8fcfb;
  border-radius: var(--radius);
  padding: 16px;
}

.result-meta-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.result-meta-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.result-meta-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.meta-source-tags {
  justify-content: flex-end;
}

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

.capability-profile-grid > div,
.assessment-grid > div {
  border: 1px solid #d8e7e2;
  border-radius: 12px;
  padding: 11px 12px;
  background: #ffffff;
}

.capability-profile-grid span,
.assessment-grid span,
.assessment-list > span {
  display: block;
  margin-bottom: 5px;
  color: #60756e;
  font-size: 12px;
  font-weight: 700;
}

.capability-profile-grid strong,
.assessment-grid strong {
  display: block;
  color: #263d37;
  font-size: 13px;
  line-height: 1.65;
}

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

.tag-group {
  border: 1px dashed #d8e7e2;
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
}

.tag-group-label,
.match-tag-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6e68;
}

.match-tag-row {
  border: 1px dashed #d8e7e2;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fcfefd;
}

.demand-detail-card {
  border: 1px solid #cfe4dd;
  border-radius: 16px;
  padding: 16px;
  background: #f7fcfa;
}

.demand-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.demand-detail-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #12806c;
  font-size: 12px;
  font-weight: 700;
}

.demand-detail-head h3 {
  margin: 0;
  color: #153a32;
  font-size: 17px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5c746d;
  font-size: 12px;
  white-space: nowrap;
}

.privacy-note svg {
  width: 15px;
  height: 15px;
}

.demand-detail-text {
  color: #31443f;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.demand-detail-card.is-collapsed .demand-detail-text {
  max-height: 154px;
  overflow: hidden;
}

.demand-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.demand-detail-toggle svg {
  width: 16px;
  height: 16px;
}

.technical-assessment {
  border: 1px solid #bcdad1;
  border-radius: 16px;
  padding: 16px;
  background: #f5fbf9;
}

.assessment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.assessment-head h3 {
  margin: 0;
  color: #123d34;
  font-size: 18px;
}

.confidence-badge {
  min-width: 82px;
  border: 1px solid #c7dfd7;
  border-radius: 12px;
  padding: 8px 10px;
  background: #ffffff;
  text-align: center;
}

.confidence-badge strong,
.confidence-badge span {
  display: block;
}

.confidence-badge strong {
  color: var(--teal);
  font-size: 20px;
}

.confidence-badge span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

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

.assessment-list {
  border-radius: 12px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #d8e7e2;
}

.assessment-list.unverified {
  border-color: #ead39c;
  background: #fffaf0;
}

.assessment-list.conflict {
  border-color: #efb0a5;
  background: #fff5f3;
}

.assessment-list ul {
  margin: 0;
  padding-left: 18px;
  color: #40534e;
  font-size: 12px;
  line-height: 1.65;
}

.hard-gate-note {
  margin-top: 10px;
  border-left: 3px solid #d97706;
  padding: 8px 10px;
  background: #fff8e8;
  color: #7a4c12;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .result-meta-head {
    flex-direction: column;
  }

  .meta-source-tags {
    justify-content: flex-start;
  }

  .tag-group-grid {
    grid-template-columns: 1fr;
  }

  .capability-profile-grid,
  .assessment-grid,
  .assessment-lists {
    grid-template-columns: 1fr;
  }

  .demand-detail-head {
    flex-direction: column;
    gap: 8px;
  }

  .privacy-note {
    white-space: normal;
  }
}

.score {
  width: 96px;
  min-width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 25px;
  text-align: center;
}

.score.score-excellent {
  background: #d9f7ec;
  color: #065f46;
}

.score.score-high {
  background: #e8f8ef;
  color: #16794c;
}

.score.score-medium {
  background: #fff4d8;
  color: #8a5b00;
}

.score.score-low {
  background: #ffedd5;
  color: #9a3412;
}

.score.score-weak {
  background: #eef2f0;
  color: #52645f;
}

.score-text {
  font-weight: 800;
}

.score-text.score-excellent {
  color: #065f46;
}

.score-text.score-high {
  color: #16794c;
}

.score-text.score-medium {
  color: #9a6a00;
}

.score-text.score-low {
  color: #9a3412;
}

.score-text.score-weak {
  color: #65736f;
}

.score small {
  display: block;
  max-width: 78px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  color: #47746c;
  margin-top: 2px;
}

.score-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.score-bar {
  color: #536862;
  font-size: 14px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #dce8e4;
  margin-top: 8px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.reason {
  border: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #31443f;
  line-height: 1.7;
}

.suggestion {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.agreement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.selected-demand,
.agreement-box {
  border: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.selected-demand strong {
  display: block;
  margin-bottom: 8px;
}

.agreement-box strong {
  display: block;
  margin-bottom: 8px;
}

.agreement-box p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.agreement-full {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0 14px;
}

.agreement-full section {
  border-bottom: 1px solid #edf3f1;
  padding: 0 0 10px;
  margin: 0 0 10px;
}

.agreement-full section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.agreement-full h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.agreement-full p {
  margin: 0 0 8px;
  color: #40534e;
  font-size: 13px;
  line-height: 1.75;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.success-panel {
  border: 1px solid #bfe6d7;
  background: #eefaf6;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.success-panel strong,
.query-code-box strong {
  display: block;
  font-size: 20px;
}

.success-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.success-main {
  min-width: 0;
}

.success-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.success-next span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfe6d7;
  background: #ffffff;
  border-radius: 999px;
  color: #23433d;
  font-size: 13px;
  padding: 6px 10px;
}

.success-next svg {
  width: 15px;
  height: 15px;
}

.query-code-box {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  border: 1px solid #bfe6d7;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  min-width: 260px;
}

.query-code-box strong {
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink);
  word-break: break-all;
}

.query-code-box .btn {
  width: 100%;
}

.progress-query-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.progress-result {
  display: grid;
  gap: 14px;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.progress-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted-label {
  color: var(--muted);
  font-size: 12px;
}

.progress-summary {
  border: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: var(--radius);
  padding: 12px;
}

.public-progress,
.progress-editor {
  display: grid;
  gap: 10px;
}

.progress-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #cbd8d4;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.progress-step.done .progress-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.progress-step strong {
  display: block;
  font-size: 14px;
}

.progress-step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 18px;
}

.admin-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-content {
  display: grid;
  gap: 16px;
}

.admin-login {
  max-width: 620px;
}

.login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.admin-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.admin-session span {
  color: var(--muted);
}

.intent-toolbar {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.match-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

.match-table {
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #31443f;
  background: #fbfdfc;
}

.status-pill {
  display: inline-flex;
  border: 1px solid #cde5dc;
  color: var(--green);
  background: #effaf5;
  border-radius: 999px;
  padding: 3px 8px;
}

.table-muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-tags {
  margin-top: 8px;
}

.compact-tags .tag {
  font-size: 12px;
  padding: 4px 8px;
}

.match-summary {
  max-width: 320px;
  color: #31443f;
  line-height: 1.65;
}

.demand-library-shell {
  min-height: calc(100vh - 132px);
}

.library-count {
  color: var(--muted);
  white-space: nowrap;
}

.library-count strong {
  color: var(--green);
  font-size: 22px;
}

.demand-library-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #cde5dc;
  border-radius: var(--radius);
  background: #effaf5;
}

.demand-library-guide > div {
  display: grid;
  gap: 5px;
}

.demand-library-guide span {
  color: var(--muted);
  line-height: 1.6;
}

.public-demand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.public-demand-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.public-demand-head,
.match-candidate-head,
.match-detail-summary,
.followup-save-row,
.public-demand-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-demand-head h2,
.match-candidate-head h3,
.match-detail-summary h3 {
  margin: 5px 0 0;
  line-height: 1.4;
}

.demand-number {
  color: var(--muted);
  font-size: 12px;
}

.price-chip {
  color: #8a5a0a;
  background: #fff8e7;
  border: 1px solid #f3d58d;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.public-demand-card > p,
.private-demand-detail p,
.match-detail-summary p {
  margin: 0;
  color: #465a54;
  line-height: 1.75;
}

.public-demand-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.public-demand-foot > span,
.private-demand-detail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.public-demand-foot svg,
.private-demand-detail a svg {
  width: 15px;
}

.library-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.match-detail {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.match-detail.empty-state {
  display: block;
}

.match-detail-summary {
  align-items: center;
  border: 1px solid var(--line);
  background: #f7fbf9;
  border-radius: var(--radius);
  padding: 14px 16px;
}

.match-candidate-list {
  display: grid;
  gap: 14px;
}

.match-candidate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

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

.private-demand-grid .detail-row {
  margin: 0;
}

.private-demand-detail {
  border: 1px solid #dbe9e4;
  background: #f7fbf9;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.private-demand-detail a {
  color: var(--teal);
  width: fit-content;
}

.match-followup-editor {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.match-followup-editor textarea {
  min-height: 92px;
}

.followup-save-row {
  grid-column: 1 / -1;
  align-items: center;
}

.followup-save-row span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .match-followup-editor,
  .private-demand-grid {
    grid-template-columns: 1fr;
  }

  .public-demand-head,
  .public-demand-foot,
  .match-detail-summary,
  .followup-save-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .demand-library-guide {
    align-items: flex-start;
    flex-direction: column;
  }
}

.mini-match-results {
  display: grid;
  gap: 8px;
}

.mini-match-results div {
  border: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: 8px;
  padding: 8px;
}

.mini-match-results strong {
  display: block;
  margin-bottom: 5px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.progress-edit-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  grid-template-columns: 190px minmax(170px, 1fr) minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
}

.progress-edit-row .check-row {
  margin: 0;
}

.admin-progress-editor {
  gap: 12px;
}

.status-select {
  min-width: 138px;
}

.note-input {
  min-width: 180px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.demand-preview {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

.intent-detail {
  display: grid;
  gap: 14px;
  line-height: 1.65;
}

.intent-detail.empty-state {
  display: block;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 12px;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
}

.detail-row span:first-child {
  color: var(--muted);
}

.detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-item {
  border-left: 3px solid var(--teal);
  padding-left: 9px;
  color: var(--muted);
  font-size: 12px;
}

.demand-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.demand-mini strong {
  display: block;
  line-height: 1.5;
  margin-bottom: 8px;
}

.demand-mini p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 340px;
  background: #12231f;
  color: #f5faf8;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .nav button {
    justify-content: center;
  }

  .nav span {
    display: none;
  }

  .fee-note {
    display: none;
  }

  .hero-grid,
  .agreement,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .process,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .content {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100vw;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .top-actions .btn {
    flex: 1 1 148px;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .band-body {
    padding: 16px;
  }

  .quick-form,
  .form-grid,
  .login-form,
  .match-mode-panel,
  .match-toolbar,
  .progress-query-form,
  .success-panel,
  .official-account-card,
  .progress-edit-row,
  .metric-grid,
  .score-stack,
  .process,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .band-header,
  .result-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .intent-toolbar {
    grid-template-columns: 1fr;
  }

  .intro-title {
    font-size: 25px;
  }

  .score {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 22px;
  }

  .official-qr {
    width: 132px;
    height: 132px;
  }
}

@media (max-width: 430px) {
  .topbar .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar .top-actions .btn {
    width: 100%;
  }

  .nav {
    gap: 8px;
  }

  .nav button {
    padding-left: 0;
    padding-right: 0;
  }
}

:root {
  --bg: #e7efec;
  --panel: rgba(255, 255, 255, 0.95);
  --ink: #10201d;
  --muted: #5f726c;
  --line: #d7e4de;
  --teal: #0f7f75;
  --teal-dark: #082e29;
  --mint: #e5f7ef;
  --gold: #bc7c18;
  --gold-soft: #fff2d8;
  --green: #16794c;
  --blue: #1d6fb8;
  --shadow: 0 18px 44px rgba(16, 32, 29, 0.09);
  --radius: 14px;
}

body {
  background:
    radial-gradient(circle at top right, rgba(29, 111, 184, 0.08), transparent 30%),
    linear-gradient(180deg, #eef4f2 0%, #e7efec 100%);
  color: var(--ink);
}

.app {
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(8, 46, 41, 0.98), rgba(10, 37, 34, 0.98)),
    url("/static/assets/jiangsu_industrial_workshop.jpg");
  background-size: cover;
  background-position: center;
  padding: 24px 18px;
  gap: 24px;
}

.brand {
  padding: 2px 4px 18px;
}

.brand strong {
  font-size: 17px;
}

.brand span {
  font-size: 13px;
  color: #bfd4cd;
}

.brand-mark.image-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 4px;
}

.nav {
  gap: 9px;
}

.nav button {
  min-height: 46px;
  border-radius: 12px;
  color: #eef7f3;
  padding: 10px 14px;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 3px 0 0 #38c6b8;
}

.fee-note {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.fee-note strong {
  font-size: 38px;
  line-height: 1;
}

.fee-note span {
  color: #d0e1dc;
}

.topbar {
  background: rgba(238, 244, 242, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 228, 222, 0.9);
  padding: 18px 30px 16px;
}

.topbar h1 {
  font-size: 28px;
  line-height: 1.2;
}

.topbar p {
  margin-top: 7px;
  font-size: 14px;
}

.content {
  padding: 28px 30px 42px;
  gap: 24px;
}

.band {
  background: var(--panel);
  border: 1px solid rgba(215, 228, 222, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.band-header {
  padding: 20px 22px;
}

.band-header h2 {
  font-size: 22px;
}

.band-header p {
  font-size: 13px;
}

.band-body {
  padding: 22px;
}

.btn {
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 700;
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
}

.btn.ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn.warning {
  border-color: #efcf93;
  background: var(--gold-soft);
}

.hero-rich-grid,
.workbench-grid,
.home-bottom-grid {
  display: grid;
  gap: 18px;
}

.hero-rich-grid {
  grid-template-columns: minmax(0, 1.22fr) 420px;
  align-items: stretch;
}

.workbench-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.home-bottom-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.city-hero {
  min-height: 456px;
  border-radius: 24px;
  overflow: hidden;
  padding: 30px;
  display: grid;
  align-content: space-between;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(8, 46, 41, 0.94) 0%, rgba(8, 46, 41, 0.76) 50%, rgba(8, 46, 41, 0.16) 100%),
    url("/static/assets/jiangsu_nanjing_cbd.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #d6f1ea;
  padding: 7px 12px;
  font-size: 13px;
}

.intro-title {
  margin: 0;
  max-width: 780px;
  font-size: 36px;
  line-height: 1.16;
}

.intro-title span {
  display: block;
}

.intro-copy {
  margin: 14px 0 0;
  max-width: 620px;
  color: #d6e8e2;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-kpis div {
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-kpis strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero-kpis span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #d6e8e2;
}

.insight-column {
  display: grid;
  gap: 14px;
}

.media-card {
  position: relative;
  min-height: 190px;
  border-radius: 20px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  display: grid;
  align-content: end;
  box-shadow: var(--shadow);
}

.lab-card {
  background-image:
    linear-gradient(180deg, rgba(8, 46, 41, 0.08), rgba(8, 46, 41, 0.84)),
    url("/static/assets/suzhou_lab_cleanroom.jpg");
  background-size: cover;
  background-position: center;
}

.factory-card {
  min-height: 100%;
  background-image:
    linear-gradient(180deg, rgba(8, 46, 41, 0.06), rgba(8, 46, 41, 0.84)),
    url("/static/assets/jiangsu_industrial_workshop.jpg");
  background-size: cover;
  background-position: center;
}

.media-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.3;
}

.media-card span {
  display: block;
  margin-top: 8px;
  color: #dcece7;
  font-size: 13px;
  line-height: 1.6;
}

.media-card-copy {
  max-width: 420px;
}

.lead-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lead-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.lead-list svg {
  width: 14px;
  height: 14px;
}

.metric-grid {
  gap: 12px;
}

.metric {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.metric strong {
  font-size: 28px;
}

.quick-match-card .band-body {
  display: grid;
  gap: 16px;
}

.quick-form {
  gap: 12px;
}

.quick-form input,
.quick-form select,
.quick-form textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.intent-toolbar input,
.intent-toolbar select,
.match-toolbar input,
.search-row input,
.login-form input,
.progress-query-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(251, 253, 252, 0.96);
  padding: 12px 13px;
}

.match-mode-panel {
  gap: 12px;
}

.mode-option {
  min-height: 98px;
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.92);
}

.mode-option.active {
  background: #eef9f5;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 127, 117, 0.1);
}

.mode-hint {
  font-size: 13px;
}

.result-preview-list {
  display: grid;
  gap: 14px;
}

.result-preview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}

.result-preview-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.preview-score {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 26px;
}

.home-contact-card {
  box-shadow: var(--shadow);
}

.official-account-card {
  border-radius: 16px;
  padding: 14px;
}

.official-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.official-qr {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.process {
  gap: 12px;
}

.step {
  border-radius: 16px;
  min-height: 126px;
  background: rgba(255, 255, 255, 0.9);
}

.step .index {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}

.agreement,
.admin-layout {
  gap: 20px;
}

.success-panel,
.query-code-box,
.progress-card,
.admin-session,
.kpi,
.detail-section,
.demand-mini {
  border-radius: 16px;
}

.dashboard-grid {
  gap: 14px;
}

.kpi {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.result-item,
.selected-demand,
.agreement-box,
.progress-summary {
  border-radius: 16px;
}

.table-wrap {
  border-radius: 14px;
}

table thead th {
  background: rgba(244, 248, 246, 0.96);
}

@media (max-width: 1280px) {
  .hero-rich-grid {
    grid-template-columns: 1fr;
  }

  .workbench-grid,
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }

  .city-hero {
    min-height: 400px;
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    background-position: center top;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav button {
    justify-content: center;
  }

  .hero-rich-grid,
  .workbench-grid,
  .home-bottom-grid,
  .agreement,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .process,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions .btn,
  .top-actions .btn {
    flex: 1 1 180px;
  }

  .intro-title {
    font-size: 32px;
  }

  .hero-kpis,
  .metric-grid,
  .match-mode-panel,
  .quick-form,
  .form-grid,
  .login-form,
  .intent-toolbar,
  .match-toolbar,
  .progress-query-form,
  .official-account-card,
  .success-panel,
  .dashboard-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .official-account-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .official-qr {
    grid-column: 1 / -1;
    width: 120px;
    height: 120px;
  }

  .band-header,
  .result-top,
  .result-preview-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav span {
    display: none;
  }

  .city-hero {
    padding: 22px;
    min-height: 380px;
  }

  .intro-title {
    font-size: 28px;
  }

  .hero-kpis strong {
    font-size: 26px;
  }
}
