/* 首页 v4 — 生鲜供应链 + 饮料；断点：<768 / 768 / 1100 */

.homeV4 {
  --hv4-primary: #0f766e;
  --hv4-primary-dark: #0d655e;
  --hv4-dark: #0f172a;
  --hv4-text: #475569;
  --hv4-heading: #0f172a;
  --hv4-bg: #f1f5f4;
  --hv4-card: #fff;
  --hv4-border: #d9e2df;
  --hv4-ok: #166534;
  color: var(--hv4-text);
  /* 官网 html 的 rem 随屏宽缩放；首页用 16px 作 em 基准，手机/PC 字号才稳定 */
  font-size: 16px;
  line-height: 1.7;
}

.homeV4__container {
  width: min(100% - 2em, 72em);
  margin-inline: auto;
}

.homeV4__section {
  padding: 2.75em 0;
}

@media (min-width: 768px) {
  .homeV4__section {
    padding: 3.75em 0;
  }
}

@media (min-width: 1100px) {
  .homeV4__section {
    padding: 5em 0;
  }
}

.homeV4__section--white {
  background: #fff;
}

.homeV4__section--muted,
.homeV4__section--inquire {
  background: var(--hv4-bg);
}

.homeV4__h2 {
  margin: 0 0 0.65em;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hv4-heading);
}

@media (min-width: 768px) {
  .homeV4__h2 {
    font-size: 1.875em;
  }
}

@media (min-width: 1100px) {
  .homeV4__h2 {
    font-size: 2.125em;
  }
}

.homeV4__lead {
  margin: 0 0 1.5em;
  max-width: 38em;
  font-size: 0.975em;
}

.homeV4__h3 {
  margin: 0 0 0.4em;
  font-size: 1.125em;
  font-weight: 650;
  color: var(--hv4-heading);
}

.homeV4__kicker {
  margin: 0.85em 0 0.35em;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

.homeV4__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7em 1.25em;
  border-radius: 999px;
  font-size: 0.9375em;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.homeV4__btn--primary {
  background: var(--hv4-primary);
  color: #fff;
  border-color: var(--hv4-primary);
}

.homeV4__btn--primary:hover {
  background: var(--hv4-primary-dark);
}

.homeV4__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.homeV4__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.homeV4__btn--line {
  background: #fff;
  color: var(--hv4-heading);
  border-color: var(--hv4-border);
}

.homeV4__btn--line:hover {
  border-color: var(--hv4-primary);
  color: var(--hv4-primary);
}

/* Hero */
.homeV4__hero {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: #0f172a;
  overflow: hidden;
  min-height: 0;
}

.homeV4__heroMedia {
  position: absolute;
  inset: 0;
}

.homeV4__heroMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homeV4__heroMask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.72) 52%,
    rgba(15, 23, 42, 0.42) 100%
  );
}

.homeV4__heroInner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.25em 0 2.5em;
  max-width: 40em;
}

@media (min-width: 768px) {
  .homeV4__hero {
    min-height: calc(100svh - 6.5em);
  }

  .homeV4__heroInner {
    padding: 4.5em 0;
  }
}

@media (min-width: 1100px) {
  .homeV4__heroInner {
    padding: 5.5em 0;
  }
}

.homeV4__hero h1 {
  margin: 0;
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .homeV4__hero h1 {
    font-size: 2.5em;
  }
}

@media (min-width: 1100px) {
  .homeV4__hero h1 {
    font-size: 3em;
  }
}

.homeV4__heroSub {
  margin: 0.85em 0 0;
  font-size: 0.975em;
  opacity: 0.92;
}

.homeV4__heroCtas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.35em;
}

.homeV4__heroCtas .homeV4__btn {
  width: 100%;
}

@media (min-width: 768px) {
  .homeV4__heroCtas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .homeV4__heroCtas .homeV4__btn {
    width: auto;
    min-width: 12.5em;
  }
}

.homeV4__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.15em 0 0;
  padding: 0;
  list-style: none;
}

.homeV4__trust li {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-height: 40px;
  min-width: 0;
  flex: 0 0 calc(50% - 0.25em);
  width: calc(50% - 0.25em);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75em;
  font-weight: 600;
}

@media (min-width: 768px) {
  .homeV4__trust li {
    width: auto;
    min-height: 44px;
    font-size: 0.8125em;
  }
}

.homeV4__icon {
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
}

/* Audience */
.homeV4__audGrid {
  display: grid;
  gap: 1em;
}

@media (min-width: 768px) {
  .homeV4__audGrid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 1.25em;
  }
}

.homeV4__audCard {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15em 1.15em 1.25em;
  background: var(--hv4-card);
  border: 1px solid var(--hv4-border);
  border-radius: 1em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
  .homeV4__audCard {
    padding: 1.5em;
  }
}

.homeV4__meta {
  margin: 0 0 0.2em;
  font-size: 0.85em;
}

.homeV4__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.homeV4__list li {
  display: flex;
  gap: 0.45em;
  margin: 0.28em 0;
  font-size: 0.9em;
  line-height: 1.45;
}

.homeV4__list--pain li {
  color: #475569;
  padding-left: 0.45em;
  border-left: 2px solid #cbd5e1;
}

.homeV4__list--ok li {
  color: var(--hv4-ok);
}

.homeV4__audCard .homeV4__btn {
  margin-top: auto;
  align-self: stretch;
}

@media (min-width: 768px) {
  .homeV4__audCard .homeV4__btn {
    align-self: flex-start;
  }
}

.homeV4__moreHint {
  margin: 1em 0 0;
  font-size: 0.85em;
}

/* Process */
.homeV4__steps {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.homeV4__step {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 0.75em;
  position: relative;
  padding-bottom: 1.15em;
  text-decoration: none;
  color: inherit;
}

.homeV4__steps > li:last-child .homeV4__step {
  padding-bottom: 0;
}

.homeV4__stepNum {
  width: 2em;
  height: 2em;
  border-radius: 999px;
  background: var(--hv4-primary);
  color: #fff;
  font-size: 0.8125em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homeV4__step::before {
  content: "";
  position: absolute;
  left: 0.95em;
  top: 2em;
  bottom: 0;
  width: 2px;
  background: #d1d5db;
}

.homeV4__steps > li:last-child .homeV4__step::before {
  display: none;
}

.homeV4__step h3 {
  margin: 0.15em 0 0.2em;
  font-size: 1em;
  color: var(--hv4-heading);
}

.homeV4__step p {
  margin: 0;
  font-size: 0.875em;
}

.homeV4__step:hover h3 {
  color: var(--hv4-primary);
}

@media (min-width: 768px) {
  .homeV4__steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1em 1.25em;
  }

  .homeV4__step {
    padding: 1em;
    background: #fff;
    border: 1px solid var(--hv4-border);
    border-radius: 0.85em;
  }

  .homeV4__step::before {
    display: none;
  }
}

@media (min-width: 1100px) {
  .homeV4__steps {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65em;
  }

  .homeV4__step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1em 0.4em 1.1em;
    position: relative;
  }

  .homeV4__stepNum {
    margin: 0 auto 0.55em;
  }

  .homeV4__step p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .homeV4__step::after {
    content: "";
    position: absolute;
    top: 1.9em;
    left: calc(50% + 1.2em);
    width: calc(100% - 1.4em);
    height: 2px;
    background: #d1d5db;
  }

  .homeV4__steps > li:last-child .homeV4__step::after {
    display: none;
  }
}

/* Capabilities */
.homeV4__capGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85em;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .homeV4__capGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .homeV4__capGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1em;
  }
}

.homeV4__capCard {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15em;
  border: 1px solid var(--hv4-border);
  border-radius: 0.9em;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.homeV4__capIcon,
.homeV4__trustIcon {
  width: 2.25em;
  height: 2.25em;
  margin-bottom: 0.7em;
  border-radius: 0.55em;
  background: #e7f1ef;
}

@media (hover: hover) and (pointer: fine) {
  .homeV4__capCard {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .homeV4__capCard:hover {
    transform: translateY(-3px);
    border-color: var(--hv4-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }
}

/* Trust */
.homeV4__trustGrid {
  display: grid;
  gap: 1em;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .homeV4__trustGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .homeV4__trustGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .homeV4__trustCard {
    border: 0;
    border-radius: 0;
    padding: 0.25em 1.5em;
    box-shadow: none;
  }

  .homeV4__trustCard + .homeV4__trustCard {
    border-left: 1px solid var(--hv4-border);
  }
}

.homeV4__trustCard {
  padding: 1.15em;
  background: #fff;
  border-radius: 0.9em;
  border: 1px solid var(--hv4-border);
}

/* Categories */
.homeV4__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55em;
  overflow-x: auto;
  padding-bottom: 0.35em;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .homeV4__chips {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.homeV4__chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.45em 1em;
  border-radius: 999px;
  border: 1px solid var(--hv4-border);
  background: #fff;
  color: var(--hv4-heading);
  font-weight: 600;
  cursor: pointer;
}

.homeV4__chip:hover {
  border-color: var(--hv4-primary);
  color: var(--hv4-primary);
}

.homeV4__chip--more {
  background: #e7f1ef;
  border-color: #b7d4ce;
  color: var(--hv4-primary-dark);
}

.homeV4__dialog {
  width: min(36em, calc(100% - 1.5em));
  max-height: min(88vh, 36em);
  padding: 1.35em;
  border: 0;
  border-radius: 1em;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.homeV4__dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.homeV4__dialog h3 {
  margin: 0 0 0.85em;
}

.homeV4__dialog p {
  margin: 0 0 0.65em;
  font-size: 0.9375em;
}

.homeV4__dialogActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65em;
  margin-top: 1.1em;
}

.homeV4__dialogActions .homeV4__btn {
  flex: 1 1 8em;
}

@media (max-width: 767px) {
  .homeV4__dialog {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 1em 1em 0 0;
  }

  .homeV4__dialog[open] {
    position: fixed;
    inset: auto 0 0;
  }
}

/* Inquiry */
.homeV4__inquire {
  display: grid;
  gap: 1.25em;
}

@media (min-width: 1100px) {
  .homeV4__inquire {
    grid-template-columns: minmax(16em, 22em) minmax(0, 1fr);
    gap: 3em;
    align-items: start;
  }

  .homeV4__inquire .homeV4__lead {
    margin-bottom: 0;
  }
}

.homeV4__form {
  display: grid;
  gap: 0.85em;
  padding: 1.15em;
  background: #fff;
  border: 1px solid var(--hv4-border);
  border-radius: 1em;
}

.homeV4__formRow {
  display: grid;
  gap: 0.85em;
}

@media (min-width: 768px) {
  .homeV4__form {
    padding: 1.35em;
  }

  .homeV4__formRow {
    grid-template-columns: 1fr 1fr;
  }
}

.homeV4__field {
  display: grid;
  gap: 0.35em;
}

.homeV4__field span {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--hv4-heading);
}

.homeV4__req {
  color: #b45309;
  font-style: normal;
  font-weight: 600;
}

.homeV4__field input,
.homeV4__field select {
  min-height: 44px;
  width: 100%;
  padding: 0.55em 0.75em;
  border: 1px solid var(--hv4-border);
  border-radius: 0.55em;
  font: inherit;
}

.homeV4__formMsg {
  margin: 0;
  font-size: 0.9375em;
}

.homeV4__formMsg--ok {
  color: var(--hv4-ok);
}

.homeV4__formMsg--err {
  color: #b91c1c;
}

.homeV4__btn--submit {
  width: 100%;
}

@media (min-width: 768px) {
  .homeV4__btn--submit {
    width: auto;
    justify-self: start;
  }
}

.homeV4__formAside {
  display: flex;
  gap: 0.65em;
}

.homeV4__formAside .homeV4__btn {
  flex: 1;
}

@media (min-width: 768px) {
  .homeV4__formAside .homeV4__btn {
    flex: 0 0 auto;
  }
}
