.page-home {
  --home-shadow: 12px 12px 0 rgba(5, 7, 15, 0.9);
  --home-text-soft: rgba(233, 241, 255, 0.82);
  --home-gap: clamp(18px, 2.6vw, 32px);
}

.page-home .crumbs {
  margin: 22px 0 0;
}

/* ---------- 首屏框景 ---------- */
.home-frame {
  position: relative;
  margin-top: 18px;
  border: 4px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 26, 62, 0.96), rgba(10, 15, 44, 0.99));
  padding: clamp(20px, 3vw, 44px);
  box-shadow: var(--home-shadow), 0 0 70px rgba(47, 243, 224, 0.1);
}

.home-frame::before,
.home-frame::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 38%, var(--violet) 68%, var(--cyan) 100%);
  animation: home-breathe 6s ease-in-out infinite;
}

.home-frame::before {
  top: -4px;
}

.home-frame::after {
  bottom: -4px;
  animation-delay: 3s;
}

.home-frame__scale {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px);
  opacity: 0.9;
}

@keyframes home-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.home-console__top {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

.home-console__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
  border: 2px solid var(--line);
  background: rgba(255, 194, 75, 0.07);
  padding: 5px 10px;
}

.home-console__title {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--mist);
  text-shadow: 0 0 1px var(--cyan), 0 0 20px rgba(47, 243, 224, 0.42);
}

.home-console__lede {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--home-text-soft);
}

.home-console__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.home-stat {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 12px;
}

.home-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
  color: var(--amber);
}

.home-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.home-console__media,
.home-steps__media,
.home-local__media {
  margin: 0;
}

.page-home .frame-media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-console__note {
  margin: clamp(28px, 3vw, 44px) 0 16px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-text-soft);
}

/* ---------- 入口分组 ---------- */
.home-entry-groups {
  display: grid;
  gap: clamp(22px, 2.6vw, 32px);
}

.home-entry-group {
  border-top: 3px solid var(--line);
  padding-top: 14px;
}

.home-entry-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-entry-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--mist);
}

.home-entry-group__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.home-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-entry {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 14px 16px;
  border: 3px solid var(--line);
  border-bottom-width: 6px;
  background: linear-gradient(180deg, rgba(19, 26, 62, 0.96), rgba(10, 15, 44, 0.96));
  color: var(--mist);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.home-entry:hover,
.home-entry:focus-visible {
  border-color: var(--cyan);
  border-bottom-color: var(--magenta);
  box-shadow: 0 0 0 1px rgba(47, 243, 224, 0.5), 0 0 26px rgba(47, 243, 224, 0.22);
}

.home-entry:active {
  transform: translateY(2px);
  box-shadow: 0 0 16px rgba(255, 61, 139, 0.5);
}

.home-entry__no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.home-entry__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
}

.home-entry__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.home-entry .tag {
  justify-self: start;
  margin-top: 4px;
}

.home-console__wide {
  margin: clamp(26px, 3vw, 40px) 0 0;
}

/* ---------- 四步上手 ---------- */
.home-steps__body {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  margin-top: clamp(22px, 3vw, 34px);
}

.home-steps__list {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps__line {
  display: none;
}

.home-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 3px solid var(--line);
  background: rgba(19, 26, 62, 0.92);
  box-shadow: 8px 8px 0 rgba(5, 7, 15, 0.85);
}

.home-step__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--magenta);
}

.home-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--mist);
}

.home-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.home-step__result {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

/* ---------- 栏目全景 ---------- */
.home-dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
}

.page-home .home-dir-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2vw, 24px);
  color: var(--mist);
  text-decoration: none;
  border-left: 6px solid var(--line);
  transition: border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.page-home .home-dir-card:hover,
.page-home .home-dir-card:focus-visible {
  border-left-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(47, 243, 224, 0.2);
}

.page-home .home-dir-card--lg {
  background: linear-gradient(150deg, rgba(19, 26, 62, 0.98), rgba(10, 15, 44, 0.98));
}

.home-relaunch__list {
  margin-top: clamp(22px, 3vw, 34px);
}

.home-relaunch__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--mist);
}

.home-relaunch__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.home-relaunch__foot {
  margin-top: clamp(20px, 2.6vw, 30px);
}

/* ---------- 本地入口 ---------- */
.home-local__body {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  margin-top: clamp(22px, 3vw, 34px);
}

.home-notice-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 4px solid var(--line);
}

.home-notice {
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid var(--line);
}

.home-notice:last-child {
  border-bottom: none;
}

.home-notice__time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.home-notice__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-text-soft);
}

.home-local__tip {
  margin: 18px 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 行动区 ---------- */
.home-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
}

.home-cta {
  display: grid;
  gap: 8px;
  padding: 20px 20px 22px;
  border: 3px solid var(--line);
  border-left: 8px solid var(--cyan);
  background: rgba(19, 26, 62, 0.9);
  color: var(--mist);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.home-cta:nth-child(2) {
  border-left-color: var(--magenta);
}

.home-cta:nth-child(3) {
  border-left-color: var(--amber);
}

.home-cta:hover,
.home-cta:focus-visible {
  background: rgba(47, 243, 224, 0.08);
  box-shadow: 0 0 24px rgba(47, 243, 224, 0.18);
}

.home-cta:active {
  transform: translateY(2px);
}

.home-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}

.home-cta__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.home-cta__go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .home-stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .home-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .home-console__top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }

  .home-steps__body {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .home-steps__line {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .home-steps__line polyline {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-dasharray: 7 9;
    opacity: 0.5;
  }

  .home-local__body {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .home-cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-dir-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .home-dir-card--lg {
    grid-column: span 3;
  }

  .page-home .home-dir-card--sm {
    grid-column: span 2;
  }
}

@media (min-width: 1240px) {
  .home-entry-group__head {
    padding-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-frame::before,
  .home-frame::after {
    animation: none;
  }

  .home-entry,
  .home-cta,
  .page-home .home-dir-card {
    transition: none;
  }
}
