/* CrossPilot 品牌色 — 与 LOGO 青蓝渐变一致 */
:root {
  --brand-teal: #00B4AD;
  --brand-blue: #0056B3;
  --brand-navy: #0A2540;
  --brand-primary: #00B4AD;
  --brand-primary-dark: #0056B3;
  --brand-primary-hover: #007EA8;
  --brand-primary-light: #e6f8f7;
  --brand-primary-light-2: #eef5ff;
  --brand-primary-muted: rgba(0, 180, 173, 0.14);
  --brand-primary-border: rgba(0, 180, 173, 0.32);
  --brand-focus-ring: rgba(0, 180, 173, 0.22);
  --brand-gradient: linear-gradient(135deg, #00B4AD 0%, #0056B3 100%);
}

html, body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.011em;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 统一数据可信度说明（调研 / 货源 / 物流）— 灰色提示，不占大卡片 */
.data-credibility-note {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: #6d7175;
  box-sizing: border-box;
}
.data-credibility-note__label {
  display: inline;
  margin-right: 0.35rem;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #8a8f93;
}
.data-credibility-note__label::after {
  content: ': ';
}
.data-credibility-note__main,
.data-credibility-note__why {
  margin: 0;
  display: inline;
}
.data-credibility-note__why {
  margin-top: 0;
  margin-left: 0.25rem;
  color: #8a8f93;
}
@media (min-width: 640px) {
  .data-credibility-note {
    padding: 0;
  }
}

/* 统一「下一步」引导（可独立回滚） */
.workflow-next {
  margin-top: 0.75rem;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 180, 173, 0.28);
  background: linear-gradient(135deg, #f0fffe 0%, #fff 60%);
}
.workflow-next__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00B4AD;
}
.workflow-next__title {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #0A2540;
}
.workflow-next__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6d7175;
}
.workflow-next__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #00B4AD;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.workflow-next__cta:hover {
  background: #007EA8;
  color: #fff;
}

/* Project Header + Workflow（可独立回滚） */
.project-context-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 0.35rem;
}
.project-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e6e8eb;
  background: #fff;
  font-size: 12px;
  color: #202223;
  min-width: 0;
}
.project-header__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.project-header__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 600;
  flex-shrink: 0;
  max-width: 100%;
}
.project-header__item--product {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 640px) {
  .project-header__item--product {
    flex: 1 1 200px;
    max-width: min(36vw, 320px);
  }
}
.project-header__product-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-header__k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8f93;
  flex-shrink: 0;
}
.project-header__edit {
  font-size: 11px;
  font-weight: 600;
  color: #0056B3;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.project-header__edit:hover { text-decoration: underline; }

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 6px;
  padding: 6px 4px;
  font-size: 12px;
}
.workflow-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e1e3e5;
  background: #f6f6f7;
  color: #8a8f93;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}
.workflow-steps__item::before {
  content: '○';
  font-size: 10px;
}
.workflow-steps__item.is-active {
  border-color: rgba(0, 86, 179, 0.35);
  background: #eef5ff;
  color: #0056B3;
}
.workflow-steps__item.is-active::before {
  content: '●';
  color: #0056B3;
}
.workflow-steps__item.is-done:not(.is-active) {
  border-color: rgba(0, 128, 96, 0.28);
  background: #eaf8f0;
  color: #008060;
}
.workflow-steps__item.is-done:not(.is-active)::before {
  content: '✓';
  color: #008060;
}
.workflow-steps__item.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.workflow-steps__arrow {
  color: #c9cccf;
  font-size: 11px;
}
.workflow-step-feedback {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3fbfa;
  border: 1px solid #d7ebe9;
  font-size: 12px;
  color: #0A2540;
  line-height: 1.45;
}
.workflow-step-feedback strong {
  color: #008060;
}
.dual-money {
  display: inline-block;
  line-height: 1.35;
}
.calc-project-readonly {
  /* 顶部已有 Project Header，此处只保留修改提示，避免重复占卡 */
  margin-bottom: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.calc-project-readonly #calc-project-summary {
  display: none;
}
.calc-project-readonly__hint {
  margin: 0;
  font-size: 12px;
  color: #6d7175;
}
.calc-project-readonly__hint a {
  color: #0056B3;
  font-weight: 600;
  text-decoration: underline;
}
.project-field-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
