/* ========== 首页 · page-home ========== */

.page-home .home-cover {
  position: relative;
  display: grid;
  gap: 26px;
  padding-block: clamp(24px, 6vw, 68px) clamp(34px, 6vw, 78px);
}

.page-home .home-cover::before {
  content: "";
  position: absolute;
  inset: -6px -2% 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(34, 224, 214, 0.06) 0 1px,
    transparent 1px 4px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 68%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: home-scan-drift 9s ease-in-out infinite alternate;
}

.page-home .home-cover > * {
  position: relative;
  z-index: 1;
}

@keyframes home-scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

.page-home .home-cover__kicker {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--abg-cyan);
}

.page-home .home-cover__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--abg-cyan);
  box-shadow: 0 0 0 0 rgba(34, 224, 214, 0.55);
  animation: home-pulse 2.4s ease-out infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 224, 214, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 224, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 224, 214, 0); }
}

.page-home .home-cover__title {
  margin: 0;
  font-family: var(--abg-font-display);
  font-size: clamp(2.1rem, 6.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--abg-ink);
  text-shadow: 0 0 32px rgba(34, 224, 214, 0.22), 0 0 2px rgba(138, 92, 255, 0.35);
}

.page-home .home-cover__lede {
  margin: 18px 0 0;
  max-width: 52ch;
  color: var(--abg-ink);
  opacity: 0.88;
}

.page-home .home-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.page-home .home-cover__panel {
  position: relative;
}

.page-home .home-cover__media {
  margin: 0;
  border: 1px solid var(--abg-line);
  border-radius: var(--abg-radius);
  overflow: hidden;
  box-shadow: var(--abg-shadow);
}

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

.page-home .home-cover__sticker {
  position: relative;
  z-index: 2;
  max-width: 340px;
  margin: -32px 0 0 clamp(12px, 4vw, 34px);
  padding: 14px 18px 16px;
  background:
    linear-gradient(140deg, rgba(34, 224, 214, 0.16), rgba(138, 92, 255, 0.14)),
    var(--abg-panel);
  border: 1px solid rgba(34, 224, 214, 0.42);
  border-radius: var(--abg-radius-sm);
  transform: rotate(-2deg);
  box-shadow: var(--abg-shadow);
}

.page-home .home-cover__sticker p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--abg-ink);
}

@media (min-width: 900px) {
  .page-home .home-cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    align-items: center;
    column-gap: clamp(32px, 5vw, 82px);
  }
  .page-home .home-cover__panel {
    transform: translateY(-10px);
  }
}

/* ---------- 状态结论 ---------- */

.page-home .home-status__panel {
  display: grid;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--abg-bg);
  border: 1px solid var(--abg-line);
  border-radius: var(--abg-radius);
}

.page-home .home-status__panel .abg-h3 {
  margin: 0;
}

.page-home .home-status__panel > p,
.page-home .home-status__panel > div > p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.75;
  color: var(--abg-ink);
  opacity: 0.86;
}

.page-home .home-status__media {
  margin: 0;
  border: 1px solid var(--abg-line);
  border-radius: var(--abg-radius-sm);
  overflow: hidden;
}

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

@media (min-width: 900px) {
  .page-home .home-status__panel--media {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
  }
}

/* ---------- 栏目索引 ---------- */

.page-home .home-index__visual {
  margin: 0 0 clamp(22px, 3vw, 34px);
  border: 1px solid var(--abg-line);
  border-radius: var(--abg-radius);
  overflow: hidden;
  max-height: 260px;
}

.page-home .home-index__visual img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.85;
}

.page-home .home-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--abg-line);
}

.page-home .home-index__list > li {
  border-bottom: 1px solid var(--abg-line);
}

.page-home .home-index__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num name arrow"
    "desc desc desc";
  align-items: center;
  gap: 6px 14px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--abg-ink);
  transition: transform 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}

.page-home .home-index__num {
  grid-area: num;
  color: var(--abg-violet);
  transition: color 0.35s ease;
}

.page-home .home-index__name {
  grid-area: name;
  font-family: var(--abg-font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  letter-spacing: 0.01em;
}

.page-home .home-index__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.7;
  color: var(--abg-dim);
}

.page-home .home-index__arrow {
  grid-area: arrow;
  color: var(--abg-dim);
  transition: transform 0.35s ease, color 0.35s ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  transform: translateX(10px);
  color: var(--abg-cyan);
}

.page-home .home-index__link:hover .home-index__num,
.page-home .home-index__link:focus-visible .home-index__num {
  color: var(--abg-cyan);
}

.page-home .home-index__link:hover .home-index__arrow,
.page-home .home-index__link:focus-visible .home-index__arrow {
  color: var(--abg-orange);
  transform: translateX(6px);
}

@media (min-width: 900px) {
  .page-home .home-index__link {
    grid-template-columns: 70px 190px minmax(0, 1fr) auto;
    grid-template-areas: "num name desc arrow";
    gap: 20px;
    padding: 22px 6px;
  }
}

/* ---------- 四类核心能力 ---------- */

.page-home .home-caps {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.page-home .home-caps__card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  transition: transform 0.45s ease, border-color 0.45s ease;
}

.page-home .home-caps__card::before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--abg-cyan);
}

.page-home .home-caps__card:nth-child(2)::before { background: var(--abg-violet); }
.page-home .home-caps__card:nth-child(3)::before { background: var(--abg-orange); }
.page-home .home-caps__card:nth-child(4)::before { background: var(--abg-green); }

.page-home .home-caps__card .abg-h3 {
  margin: 0;
}

.page-home .home-caps__card > p {
  margin: 0;
  line-height: 1.75;
  color: var(--abg-ink);
  opacity: 0.86;
}

.page-home .home-caps__card:hover {
  border-color: rgba(34, 224, 214, 0.4);
}

@media (min-width: 900px) {
  .page-home .home-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 48px);
    row-gap: clamp(30px, 4vw, 46px);
  }
  .page-home .home-caps__card:nth-child(1) { transform: rotate(-1.2deg); }
  .page-home .home-caps__card:nth-child(2) { transform: rotate(1.4deg) translateY(30px); }
  .page-home .home-caps__card:nth-child(3) { transform: rotate(1deg) translateY(-22px); }
  .page-home .home-caps__card:nth-child(4) { transform: rotate(-1.6deg) translateY(12px); }
}

/* ---------- 更新节奏 ---------- */

.page-home .home-rhythm__grid {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.page-home .home-rhythm__body .abg-h2 {
  margin-bottom: 16px;
}

.page-home .home-rhythm__body p {
  margin: 0 0 14px;
  max-width: 60ch;
  line-height: 1.75;
  color: var(--abg-ink);
  opacity: 0.86;
}

.page-home .home-rhythm__media {
  margin: 0;
  border: 1px solid var(--abg-line);
  border-radius: var(--abg-radius);
  overflow: hidden;
  box-shadow: var(--abg-shadow);
}

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

@media (min-width: 900px) {
  .page-home .home-rhythm__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .page-home .home-rhythm__media {
    transform: rotate(1.5deg);
  }
}

/* ---------- 帮助路径 ---------- */

.page-home .home-help__grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.page-home .home-help__card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
}

.page-home .home-help__card .abg-h3 {
  margin: 0;
}

.page-home .home-help__card > p {
  margin: 0;
  line-height: 1.75;
  color: var(--abg-ink);
  opacity: 0.86;
}

.page-home .home-help__card .abg-cta {
  justify-self: start;
  margin-top: 6px;
}

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

/* ---------- 收尾 ---------- */

.page-home .home-close__inner {
  display: grid;
  gap: 20px;
  padding-block: clamp(34px, 5vw, 60px);
  border-top: 1px solid var(--abg-line);
}

.page-home .home-close__inner p {
  margin: 12px 0 0;
  max-width: 58ch;
  line-height: 1.75;
  color: var(--abg-ink);
  opacity: 0.86;
}

.page-home .home-close__inner .abg-cta {
  justify-self: start;
}

@media (min-width: 780px) {
  .page-home .home-close__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
  }
  .page-home .home-close__inner .abg-cta {
    justify-self: end;
  }
}

/* ---------- 可访问性 ---------- */

.page-home .home-index__link:focus-visible,
.page-home .home-caps__card:focus-within,
.page-home .home-help__card:focus-within {
  outline: 2px solid var(--abg-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cover::before,
  .page-home .home-cover__dot {
    animation: none !important;
  }
  .page-home * {
    transition-duration: 0.01ms !important;
  }
}
</main>
