/*
 * procurement-boost.css —— 采购需求页：数据概览条 + 右侧 LIVE 面板
 * 与 zh-purchase-feed.css 配合使用（面板本身复用 .zh-feed 系列样式）。
 */

/* 该页首屏：面板略矮一点，避免标题列下方出现大块留白 */
.procurement .zh-feed__viewport {
  height: min(46vh, 380px);
}

/* 概览条：四个数字卡 */
.zh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1vw, 0.9rem);
  margin-top: clamp(1.35rem, 2.2vw, 2rem);
}

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

.zh-stats__item {
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--clr-text) 12%, transparent);
  border-radius: 0.85rem;
  background: #fff;
}

.zh-stats__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #c2410c;
}

.zh-stats__value {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--ff-title, serif);
  font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.85rem);
  line-height: 1.1;
  color: var(--clr-text);
}

.zh-stats__value small {
  margin-left: 0.15rem;
  font-family: var(--ff-body, sans-serif);
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--clr-text) 50%, transparent);
}

/* 两个入口按钮 */
.zh-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.1rem, 1.8vw, 1.6rem);
}

.zh-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--clr-text) 18%, transparent);
  background: transparent;
  color: var(--clr-text);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zh-cta__btn:hover,
.zh-cta__btn:focus-visible {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.zh-cta__btn--primary {
  border-color: var(--clr-text);
  background: var(--clr-text);
  color: var(--clr-bg);
}

.zh-cta__btn--primary:hover,
.zh-cta__btn--primary:focus-visible {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
}

/* 该页的 header 原本是单栏，收进栅格后限制最小宽度 */
.zh-feed-hero > .archive__header {
  min-width: 0;
}

/* 窄屏时面板不再吸顶，避免遮挡卡片列表 */
@media (max-width: 1080px) {
  .zh-feed {
    position: static;
    margin-top: 1.5rem;
  }
}

/* ---------- 语言门控 ----------
 * 采购公告数据只有中文版，俄语模式下整块隐藏，避免中俄混排；
 * 切到「中文」或使用 ?lang=zh 时显示。 */
html[data-demo-lang="ru"] .zh-stats,
html[data-demo-lang="ru"] .zh-cta,
html[data-demo-lang="ru"] .zh-feed {
  display: none !important;
}

html[data-demo-lang="ru"] .zh-feed-hero {
  display: block;
}

/* ---------- 产业带入口网格 ---------- */
.zh-belts {
  margin-top: clamp(2.75rem, 4.5vw, 4.5rem);
}

.zh-belts__head {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.zh-belts__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.zh-belts__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.zh-belts__intro {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--clr-text) 55%, transparent);
}

.zh-belts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.1rem);
}

@media (max-width: 1180px) {
  .zh-belts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 560px) {
  .zh-belts__grid { grid-template-columns: minmax(0, 1fr); }
}

.zh-belts__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--clr-text) 10%, transparent);
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(18, 17, 11, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.zh-belts__card:hover,
.zh-belts__card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--clr-text) 24%, transparent);
  box-shadow: 0 18px 40px -30px rgba(18, 17, 11, 0.5);
}

.zh-belts__no {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--clr-text) 40%, transparent);
}

.zh-belts__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--clr-text);
}

.zh-belts__ru {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--clr-text) 45%, transparent);
}

.zh-belts__stats {
  display: flex;
  gap: 0.9rem;
  margin: 0.5rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--clr-text) 8%, transparent);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--clr-text) 55%, transparent);
}

.zh-belts__stats b {
  margin-right: 0.15rem;
  color: var(--clr-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.zh-belts__stats { margin-top: auto; }

.zh-belts__more {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--clr-primary);
}

.zh-belts__card--add {
  border-style: dashed;
  background: transparent;
  color: color-mix(in srgb, var(--clr-text) 72%, transparent);
}

.zh-belts__card--add .zh-belts__no {
  font-size: 1.25rem;
  color: var(--clr-text);
}

.is-hint { color: #b3aea6; }

.zh-detail {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.zh-detail[hidden] { display: none; }

.zh-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 11, 0.28);
}

.zh-detail__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(40rem, 100%);
  max-height: min(78vh, 760px);
  overflow: hidden;
  padding: 1.15rem 1.2rem 1rem;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 17, 11, 0.18);
}

.zh-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.zh-detail__head h2 { margin: 0.15rem 0 0; font-size: 1.35rem; }

.zh-detail__kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #c2410c;
}

.zh-detail__head button,
.zh-detail__bar button,
.zh-line button {
  border: 1px solid color-mix(in srgb, var(--clr-text) 16%, transparent);
  background: #fff;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.zh-detail__list { overflow: auto; }
.zh-detail__bar { display: flex; gap: 0.5rem; margin-top: 0.8rem; position: sticky; bottom: 0; background: #fff; padding-top: 0.4rem; }
.zh-detail__bar .is-primary { background: #1a1814; color: #f7f3ee; border-color: #1a1814; }

.zh-line {
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--clr-text) 8%, transparent);
}

.zh-line h3 { margin: 0.2rem 0; font-size: 1rem; line-height: 1.45; }
.zh-line p { margin: 0.15rem 0; }
.zh-line__no, .zh-line__meta { font-size: 0.75rem; color: color-mix(in srgb, var(--clr-text) 55%, transparent); }

.zh-line textarea,
.zh-line input {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--clr-text) 14%, transparent);
  border-radius: 0.7rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.zh-line textarea { min-height: 4.2rem; resize: vertical; }
.zh-line textarea::placeholder,
.zh-line input::placeholder { color: #b3aea6; }
.zh-line label { display: block; margin-top: 0.35rem; font-size: 0.75rem; }
.zh-line label input { width: 6rem; }

/* ---------- 数据快照 ---------- */
.zh-snapshot {
  margin-top: clamp(2.75rem, 4.5vw, 4.5rem);
  padding-top: clamp(1.5rem, 2.4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--clr-text) 12%, transparent);
}

.zh-snapshot__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.zh-snapshot__title {
  margin: 0.6rem 0 0;
  font-family: var(--ff-title, serif);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.zh-snapshot__text {
  max-width: 56ch;
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--clr-text) 60%, transparent);
}

/* 俄语模式隐藏这三块中文内容 */
html[data-demo-lang="ru"] .zh-belts,
html[data-demo-lang="ru"] .zh-list,
html[data-demo-lang="ru"] .zh-snapshot {
  display: none;
}

.zh-sheet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
}

.zh-sheet a,
.zh-sheet button,
.zh-sheet label {
  border: 1px solid color-mix(in srgb, var(--clr-text) 16%, transparent);
  background: #fff;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.zh-sheet input { display: none; }
.zh-sheet p { margin: 0; font-size: 0.8125rem; color: #8a8178; }

.zh-mask { position: relative; margin-top: 0.25rem; }
.zh-mask__body {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 16rem;
  overflow: hidden;
}
.zh-mask__actions {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.zh-mask__unlock,
.zh-mask__code {
  border: 0;
  background: transparent;
  color: #d23b4a;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.zh-mask__code {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #5c2a24;
  background: #fff;
  border: 1px solid rgba(156, 47, 36, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
}

.zh-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.zh-invite[hidden] { display: none; }
.zh-invite p { margin: 0; width: 100%; }
.zh-invite input {
  flex: 1;
  min-width: 8rem;
  border: 1px solid color-mix(in srgb, var(--clr-text) 16%, transparent);
  border-radius: 0.5rem;
  height: 36px;
  padding: 0 0.7rem;
  font: inherit;
}
.zh-invite [data-err] { color: #9c2f24; }

.zh-veil {
  display: inline-block;
  max-width: 100%;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}


