/*
 * Homepage authority layer.
 * This file intentionally inherits the site's Microsoft YaHei / PingFang stack.
 * It only styles the retained dual notice board and the new dense index modules.
 */

.procurement-section {
  padding-top: 74px;
  padding-bottom: 74px;
  background: #edf4f7;
}

.industry-section,
.region-section,
.soe-section,
.service-section,
.policy-section {
  padding-top: 74px;
  padding-bottom: 74px;
}

.section-heading {
  margin-bottom: 30px;
}

.compact-heading {
  margin-bottom: 24px;
}

.procurement-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.procurement-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 31px;
  line-height: 1.35;
  letter-spacing: .4px;
}

.procurement-heading p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.procurement-link,
.notice-board > header a,
.briefing-rail > header a,
.soe-board > header a {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.procurement-link:hover,
.notice-board > header a:hover,
.briefing-rail > header a:hover,
.soe-board > header a:hover {
  color: var(--navy-900);
}

.procurement-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 18px;
}

.notice-board,
.briefing-rail {
  border: 1px solid #cbd8e0;
  background: #fff;
  box-shadow: 0 7px 22px rgba(8, 34, 58, .045);
}

.notice-board > header,
.briefing-rail > header,
.soe-board > header,
.active-buyer-panel > header,
.official-source-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notice-board > header {
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #cbd8e0;
}

.notice-board > header > div,
.soe-board > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-board h3,
.briefing-rail h3,
.soe-board h3,
.active-buyer-panel h3,
.official-source-panel h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 16px;
}

.board-marker,
.soe-marker {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green-700);
  font-weight: 800;
}

.board-marker {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.notice-board-secondary .board-marker,
.soe-board-award .soe-marker {
  color: var(--navy-900);
  background: #e5edf2;
}

.board-list {
  padding: 0 18px;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 44px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid #d7e1e7;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row > div {
  min-width: 0;
}

.board-row > div > a {
  display: block;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-row > div > a:hover,
.briefing-rail article a:hover,
.briefing-rail .index-link:hover,
.soe-row a:hover {
  color: var(--green-700);
}

.board-row > span,
.board-row > time {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.briefing-rails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.briefing-rail {
  padding: 18px 20px 10px;
}

.briefing-rail > header {
  min-height: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-900);
}

.briefing-rail h3 {
  font-size: 16px;
}

.briefing-rail article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #d7e1e7;
}

.briefing-rail article a {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.briefing-rail article time {
  color: var(--ink-500);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.briefing-rail .index-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #d7e1e7;
  color: var(--ink-900);
  font-size: 12px;
}

.briefing-rail .index-link::after {
  margin-left: auto;
  color: var(--green-700);
  content: "检索 →";
  font-size: 10px;
}

.soe-section {
  background: #f5f8fa;
}

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

.soe-board {
  min-width: 0;
  border: 1px solid #d5dde3;
  background: #fff;
  box-shadow: 0 5px 18px rgba(8, 34, 58, .035);
}

.soe-board > header {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #d5dde3;
  background: #fbfcfd;
}

.soe-marker {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--green-700);
  background: #e7f4ef;
  font-size: 0;
}

.soe-marker svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soe-list {
  padding: 10px 16px 12px;
}

.soe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 35px;
}

.soe-row > a {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soe-row time {
  color: #89949f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.portal-index-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid #e2e8ed;
  background: #fff;
}

.portal-index-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
}

.active-buyer-panel,
.official-source-panel {
  border: 1px solid #dce4e9;
  background: #fff;
}

.active-buyer-panel > header,
.official-source-panel > header {
  min-height: 59px;
  padding: 0 20px;
  border-bottom: 1px solid #dce4e9;
  background: #f7f9fb;
}

.active-buyer-panel > header span,
.official-source-panel > header span {
  color: var(--ink-500);
  font-size: 10px;
}

.buyer-links,
.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 20px 16px;
}

.buyer-links a,
.source-links a {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 11px 20px 9px 14px;
  border-bottom: 1px solid #edf1f4;
  color: var(--ink-700);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-links a::before,
.source-links a::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-600);
  content: "";
}

.buyer-links a::after,
.source-links a::after {
  position: absolute;
  right: 4px;
  color: #a5b0ba;
  content: "→";
}

.buyer-links a:hover,
.source-links a:hover {
  color: var(--green-700);
}

.region-shell {
  grid-template-columns: 340px 1fr;
  gap: 58px;
}

.region-intro {
  min-height: 320px;
}

.region-grid {
  gap: 11px;
}

.region-card {
  min-height: 86px;
}

.region-card span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  white-space: nowrap;
}

.region-card span b {
  color: #73d9b7;
  font: 700 14px/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.region-card.all span {
  display: block;
}

.service-card {
  min-height: 210px;
}

.service-cta {
  margin-top: 22px;
}

.policy-topic {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 79px;
  border-bottom: 1px solid #edf0f2;
}

.policy-topic:last-child {
  border-bottom: 0;
}

.policy-topic span {
  color: var(--green-700);
  font-size: 11px;
}

.policy-topic strong {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-topic em {
  color: #97a4ae;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.policy-topic:hover strong,
.policy-topic:hover em {
  color: var(--green-700);
}

.policy-guide {
  min-height: 330px;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
  border: 1px solid #e1e7ec;
  background: #fff;
}

.policy-guide h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--navy-900);
  color: var(--navy-900);
  font-size: 17px;
}

.policy-guide > a:not(.policy-source-link) {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid #dce5ea;
  color: var(--navy-900);
  background: #f8fbfc;
  transition: border-color .2s, background .2s, transform .2s;
}

.policy-guide > a:not(.policy-source-link):hover {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  border-color: #8dcfbb;
  background: #f0f8f5;
}

.policy-guide a strong {
  font-size: 14px;
}

.policy-guide a span {
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.55;
}

.policy-guide .policy-source-link {
  grid-column: 1 / -1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
}

.policy-guide .policy-source-link:hover {
  color: var(--navy-900);
}

main a:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}

.region-section a:focus-visible {
  outline-color: #73d9b7;
}

@media (max-width: 980px) {
  .procurement-columns,
  .soe-columns,
  .portal-index-grid {
    grid-template-columns: 1fr;
  }

  .region-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .region-intro {
    min-height: auto;
  }

  .procurement-columns {
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .procurement-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .procurement-heading h2 {
    font-size: 26px;
  }

  .procurement-link {
    display: none;
  }

  .notice-board > header {
    min-height: 58px;
    padding: 0 14px;
  }

  .notice-board h3 {
    font-size: 15px;
  }

  .board-list {
    padding: 0 14px;
  }

  .board-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 54px;
    padding: 6px 0;
  }

  .board-row > div > a {
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .board-row > span {
    display: none;
  }

  .board-row > time {
    display: block;
  }

  .briefing-rails {
    grid-template-columns: 1fr;
  }

  .policy-guide {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .policy-guide h3,
  .policy-guide .policy-source-link {
    grid-column: 1;
  }

  .policy-guide > a:not(.policy-source-link) {
    min-height: 74px;
  }

  .soe-columns {
    gap: 12px;
  }

  .soe-board > header {
    min-height: 52px;
    padding: 0 14px;
  }

  .soe-list {
    padding: 10px 14px 12px;
  }

  .soe-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 34px;
  }

  .soe-row > a {
    font-size: 12px;
  }

  .portal-index-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .active-buyer-panel > header,
  .official-source-panel > header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 68px;
    padding: 10px 16px;
  }

  .buyer-links,
  .source-links {
    grid-template-columns: 1fr;
    padding: 8px 16px 14px;
  }

  .procurement-section,
  .industry-section,
  .region-section,
  .soe-section,
  .service-section,
  .policy-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .compact-heading {
    margin-bottom: 20px;
  }

  .region-grid {
    gap: 8px;
  }

  .region-card {
    min-height: 74px;
  }

  .service-card {
    min-height: 180px;
  }

  .policy-topic {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 72px;
  }

  .policy-topic em {
    display: none;
  }
}

/* Reviewed member enterprise showcase and service entry */
.member-showcase-section {
  border-top: 1px solid #dce5ea;
  background: #f3f7f9;
}

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

.member-showcase-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d6e1e7;
  color: var(--ink-900);
  background: #fff;
  box-shadow: 0 9px 26px rgba(7, 27, 51, .045);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.member-showcase-card:hover {
  border-color: #8ab9aa;
  box-shadow: 0 14px 34px rgba(7, 63, 49, .09);
  transform: translateY(-2px);
}

.member-showcase-label {
  align-self: flex-start;
  padding: 4px 7px;
  color: #087b5c;
  background: #e8f5f0;
  font-size: 9px;
  font-weight: 700;
}

.member-showcase-card strong {
  margin-top: 21px;
  color: var(--navy-900);
  font-size: 17px;
  line-height: 1.45;
}

.member-showcase-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 18px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-showcase-card small {
  margin-top: auto;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
}

.member-service-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-top: 18px;
  padding: 27px 30px;
  color: #fff;
  background: linear-gradient(105deg, rgba(5, 27, 50, .97), rgba(8, 74, 81, .94));
}

.member-service-banner span,
.member-service-banner strong,
.member-service-banner p {
  display: block;
}

.member-service-banner span {
  color: #6eddb8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.member-service-banner strong {
  margin-top: 7px;
  font-size: 18px;
}

.member-service-banner p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .56);
  font-size: 10px;
  line-height: 1.7;
}

.member-service-banner > div:last-child {
  display: flex;
  gap: 9px;
}

.member-service-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.member-service-banner a:first-child {
  border-color: #0ba373;
  background: #0a956c;
}

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

  .member-service-banner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .member-showcase-grid {
    grid-template-columns: 1fr;
  }

  .member-showcase-card {
    min-height: 150px;
  }

  .member-service-banner {
    padding: 23px 20px;
  }

  .member-service-banner > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .member-service-banner a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .procurement-section *,
  .soe-section *,
  .portal-index-section * {
    transition: none !important;
  }
}
