/**
 * 商铺开通工作台首页
 * 左侧为门店开通任务说明，右侧以 NFC 轨迹承载五步流程。
 */

.home-workspace {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.35fr);
  grid-template-areas:
    "hero steps"
    "hero tools"
    "hero summary";
  align-items: stretch;
  overflow: hidden;
}

.home-hero {
  position: relative;
  grid-area: hero;
  min-height: 720px;
  padding: 54px 46px 44px;
  overflow: hidden;
  background: var(--navy-soft);
  color: #fff;
  text-align: left;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  right: -116px;
  bottom: -108px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(93, 222, 201, 0.13);
  border-radius: 50%;
}

.home-hero::after {
  right: -62px;
  bottom: -54px;
  width: 202px;
  height: 202px;
  border-color: rgba(93, 222, 201, 0.19);
}

.home-hero__eyebrow {
  margin-bottom: 40px;
  color: #83a5b4;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.home-hero__signal {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 222, 201, 0.7);
  border-radius: 50%;
  color: #8bf1df;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-hero__signal::before,
.home-hero__signal::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(93, 222, 201, 0.2);
  border-radius: 50%;
}

.home-hero__signal::before { inset: -9px; }
.home-hero__signal::after { inset: -18px; opacity: 0.58; }

.home-hero__title {
  margin: 0 0 22px;
  color: #f6fffd;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 760;
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.home-hero__title em {
  color: var(--mint);
  font-style: normal;
}

.home-hero__subtitle {
  max-width: 340px;
  margin: 0;
  color: #b4c8d0;
  font-size: 14px;
  line-height: 1.8;
}

.home-hero__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 38px 0 28px;
}

.home-hero__metrics > div {
  padding-top: 14px;
  border-top: 1px solid rgba(176, 214, 220, 0.18);
}

.home-hero__metrics strong,
.home-hero__metrics span {
  display: block;
}

.home-hero__metrics strong {
  color: #f3fffd;
  font-family: var(--font-data);
  font-size: 21px;
  font-weight: 600;
}

.home-hero__metrics span {
  margin-top: 3px;
  color: #7f9eab;
  font-size: 11px;
}

.home-primary-action {
  position: relative;
  z-index: 1;
  min-height: 50px;
  padding: 0 16px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--mint);
  color: #062722;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.home-primary-action:hover {
  transform: translateY(-1px);
  background: #65d8c6;
  color: #062722;
}

.home-primary-action b {
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 500;
}

.home-resume-copy {
  position: relative;
  z-index: 1;
  margin: 11px 4px 0;
  color: #7897a4;
  font-size: 11px;
  line-height: 1.55;
}

.wizard-steps-section {
  grid-area: steps;
  margin: 0;
  padding: 42px 46px 18px;
  background: var(--paper);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.home-section-heading span,
.summary-section__heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.home-section-heading h2,
.summary-section__heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.home-section-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
}

.step-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step-cards::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 33px;
  bottom: 33px;
  left: 22px;
  width: 1px;
  background: var(--line-strong);
}

.step-card,
.step-card--step2,
.step-card--step3,
.step-card--step4,
.step-card--step5 {
  position: relative;
  z-index: 1;
  min-height: 70px;
  padding: 12px 12px 12px 0;
  display: grid;
  grid-template-columns: 46px minmax(140px, 0.72fr) minmax(190px, 1.2fr) auto;
  align-items: center;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid #edf2f1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  transition: background 0.18s ease, padding 0.18s ease;
}

.step-card:last-child {
  border-bottom: 0;
}

.step-card:hover {
  padding-left: 10px;
  border-color: #edf2f1;
  background: #f7faf9;
  box-shadow: none;
  color: inherit;
  transform: none;
}

.step-card__num,
.step-card--step2 .step-card__num,
.step-card--step3 .step-card__num,
.step-card--step4 .step-card__num,
.step-card--step5 .step-card__num {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: #7d9097;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--paper);
}

.step-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 730;
}

.step-card__desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.step-card__arrow {
  min-width: 56px;
  margin: 0;
  color: #819399;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.step-card.is-active {
  background: var(--mint-pale);
}

.step-card.is-active .step-card__num {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--mint);
  box-shadow: 0 0 0 5px var(--mint-pale);
}

.step-card.is-active .step-card__arrow {
  color: var(--primary-dark);
}

.step-card.is-complete .step-card__num {
  border-color: var(--mint-dark);
  background: var(--mint-pale);
  color: var(--mint-dark);
}

.step-card.is-complete .step-card__arrow {
  color: var(--primary-dark);
}

.tools-section {
  grid-area: tools;
  margin: 0;
  padding: 12px 46px 22px;
}

.home-section-heading--compact {
  margin-bottom: 11px;
}

.home-section-heading--compact h2 {
  font-size: 18px;
}

.tool-cards {
  display: block;
}

.tool-card {
  min-height: 66px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 38px minmax(120px, 0.55fr) minmax(210px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfa;
  box-shadow: none;
}

.tool-card:hover {
  border-color: #b5cec8;
  background: #f2f8f6;
  box-shadow: none;
  color: inherit;
  transform: none;
}

.tool-card__icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0;
}

.tool-card__icon span {
  position: absolute;
  width: 20px;
  height: 11px;
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  transform: rotate(-36deg);
}

.tool-card__icon span:first-child { left: 2px; top: 6px; }
.tool-card__icon span:last-child { right: 2px; bottom: 6px; }

.tool-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.tool-card__desc {
  color: var(--muted);
  font-size: 11px;
}

.tool-card > b {
  color: var(--primary-dark);
  font-family: var(--font-data);
  font-weight: 500;
}

.summary-section {
  grid-area: summary;
  margin: 0;
  padding: 22px 46px 34px;
  border: 0;
  border-top: 1px solid #edf2f1;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.summary-section__heading {
  margin-bottom: 14px;
}

.summary-section__heading h3 {
  font-size: 18px;
}

.summary-empty {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.summary-item {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfa;
}

.summary-item__label {
  color: var(--muted);
  font-size: 10px;
}

.summary-item__value {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
}

.summary-actions {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .home-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "steps"
      "tools"
      "summary";
  }

  .home-hero {
    min-height: auto;
    padding: 44px;
  }

  .home-hero__eyebrow {
    margin-bottom: 30px;
  }

  .home-hero__subtitle {
    max-width: 560px;
  }

  .home-hero__metrics {
    max-width: 360px;
  }

  .home-primary-action {
    max-width: 360px;
  }
}

@media (max-width: 700px) {
  .home-hero,
  .wizard-steps-section,
  .tools-section,
  .summary-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .home-hero__title {
    font-size: 38px;
  }

  .home-section-heading {
    align-items: start;
  }

  .home-section-heading > p {
    display: none;
  }

  .step-card,
  .step-card--step2,
  .step-card--step3,
  .step-card--step4,
  .step-card--step5 {
    min-height: 82px;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
  }

  .step-card__desc {
    display: none;
  }

  .step-card__arrow {
    min-width: auto;
  }

  .tool-card {
    grid-template-columns: 36px 1fr auto;
  }

  .tool-card__desc {
    display: none;
  }

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