.page-home {
  --home-gold: #D4AF37;
  --home-gold-soft: #E8C96A;
  --home-dark: #0B3D2E;
  --home-dark-deep: #072A20;
  --home-line-white: rgba(255, 255, 255, 0.14);
  overflow-x: hidden;
}

/* ===================== HERO ===================== */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 64px;
  background: linear-gradient(148deg, var(--home-dark) 0%, var(--home-dark-deep) 48%, #105240 100%);
  color: #fff;
  overflow: hidden;
}

.page-home .home-hero__bg,
.page-home .home-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-hero__bg {
  z-index: 0;
}

.page-home .home-hero__bg img {
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.82) contrast(1.12);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-home .home-hero .breadcrumbs {
  margin-bottom: 48px;
}

.page-home .home-hero .breadcrumbs ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .home-hero .breadcrumbs li {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 72px;
  }
}

.page-home .home-hero__content .section-label {
  color: var(--home-gold-soft);
  margin-bottom: 14px;
}

.page-home .home-hero h1 {
  margin: 0 0 18px;
  max-width: 680px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.04;
  color: #fff;
  letter-spacing: 0.01em;
}

.page-home .home-hero__lead {
  max-width: 560px;
  margin: 0 0 30px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__panel {
  position: relative;
  padding: 26px 24px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--home-line-white);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(7, 42, 32, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-hero__panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-hero__panel-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .home-hero__live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--color-success);
  animation: homeLivePulse 1.8s ease-in-out infinite;
}

@keyframes homeLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__live-dot {
    animation: none;
  }
}

.page-home .home-hero__metrics {
  display: grid;
  gap: 2px;
  margin: 0;
}

.page-home .home-hero__metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-hero__metrics > div:last-child {
  border-bottom: 0;
}

.page-home .home-hero__metrics dt {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-hero__metrics dd {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 18px;
  color: var(--home-gold-soft);
  white-space: nowrap;
}

.page-home .home-hero__count {
  font-size: 24px;
  letter-spacing: 0.06em;
}

.page-home .home-hero__panel-note {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================== 区块标题统一覆盖 ===================== */
.page-home .section-header {
  margin-bottom: 44px;
}

.page-home .section--dark .section-label {
  color: var(--home-gold-soft);
}

.page-home .section--dark .section-header__title,
.page-home .section--dark .section-header__lead {
  color: #fff;
}

.page-home .section--dark .section-header__lead {
  color: rgba(255, 255, 255, 0.78);
}

/* ===================== 实时数据看板 ===================== */
.page-home .home-dashboard {
  position: relative;
  background-color: #F9F8F4;
  background-image:
    linear-gradient(rgba(11, 61, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 46, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-home .home-dashboard__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (min-width: 992px) {
  .page-home .home-dashboard__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 48px;
  }
}

.page-home .home-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 992px) {
  .page-home .home-dashboard__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-home .home-dash-card--injury {
    transform: translateY(30px);
  }

  .page-home .home-dash-card--calendar {
    transform: translateY(60px);
  }
}

.page-home .home-dash-card {
  --card-accent: var(--home-gold);
  position: relative;
  padding: 26px 24px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.page-home .home-dash-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-accent);
}

.page-home .home-dash-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent rgba(212, 175, 55, 0.28) transparent;
}

.page-home .home-dash-card--ranking {
  --card-accent: var(--home-gold);
}

.page-home .home-dash-card--injury {
  --card-accent: var(--color-danger);
}

.page-home .home-dash-card--calendar {
  --card-accent: var(--color-cyan);
}

.page-home .home-dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
  .page-home .home-dash-card--injury:hover {
    transform: translateY(26px);
  }

  .page-home .home-dash-card--calendar:hover {
    transform: translateY(56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-dash-card,
  .page-home .home-dash-card--injury,
  .page-home .home-dash-card--calendar {
    transform: none;
    transition: none;
  }

  .page-home .home-dash-card:hover {
    transform: none;
  }
}

.page-home .home-dash-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .home-dash-card__time {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--color-ink);
  opacity: 0.62;
}

.page-home .home-dash-card__pulse-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-danger);
}

.page-home .home-dash-card__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: homePulse 2s infinite;
}

@keyframes homePulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(139, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-dash-card__pulse {
    animation: none;
  }
}

.page-home .home-dash-card .card__title {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-primary);
}

.page-home .home-dash-card .card__body {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
  opacity: 0.84;
}

.page-home .home-dash-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin: 18px 0 14px;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(11, 61, 46, 0.18);
}

.page-home .home-dash-card__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-dash-card__stats dt {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(44, 44, 44, 0.6);
}

.page-home .home-dash-card__stats dd {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-primary);
}

.page-home .home-dash-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .home-dash-card__link:hover,
.page-home .home-dash-card__link:focus-visible {
  border-bottom-color: var(--home-gold);
  color: var(--home-dark);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-dash-card__link {
    transition: none;
  }
}

.page-home .home-dashboard__media {
  margin: 0;
  border: 1px solid rgba(11, 61, 46, 0.14);
}

.page-home .home-dashboard__media img {
  object-fit: cover;
  object-position: top;
}

/* ===================== 特色功能入口 ===================== */
.page-home .home-features {
  position: relative;
  background-color: var(--home-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home .home-features__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .home-features__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 72px;
  }
}

.page-home .skill-tree {
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 58px;
}

.page-home .skill-tree::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--home-gold), rgba(212, 175, 55, 0.06));
}

.page-home .skill-tree__node {
  position: relative;
}

.page-home .skill-tree__node::before {
  content: attr(data-step);
  position: absolute;
  left: -58px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--home-dark);
  border: 2px solid var(--home-gold);
  color: var(--home-gold-soft);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.08);
}

.page-home .skill-tree__node-content {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--home-line-white);
  border-left: 3px solid var(--home-gold);
  border-radius: 0 16px 16px 0;
  transition: background 0.35s ease, transform 0.35s var(--ease-out);
}

.page-home .skill-tree__node-content:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .skill-tree__node-content {
    transition: none;
  }
}

.page-home .skill-tree__node-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: #fff;
}

.page-home .skill-tree__node-desc {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.page-home .skill-tree__node-content .btn {
  padding: 0.52em 1em;
  font-size: 13px;
}

.page-home .home-features__media {
  margin: 0;
  position: relative;
}

.page-home .home-features__media .media-frame {
  border: 1px solid var(--home-line-white);
  box-shadow: var(--shadow-lg);
}

.page-home .home-features__caption,
.page-home .home-trust__caption {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

/* ===================== 新用户三步导航 ===================== */
.page-home .home-onboarding {
  background-color: var(--color-bg-light);
}

.page-home .home-onboarding__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

@media (min-width: 768px) {
  .page-home .home-onboarding__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.page-home .home-onboarding__step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-home .home-onboarding__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--home-gold), var(--home-dark));
}

.page-home .home-onboarding__num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 61, 46, 0.35);
}

.page-home .home-onboarding__step h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-primary);
}

.page-home .home-onboarding__step p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
  opacity: 0.8;
}

.page-home .home-onboarding__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ===================== 品牌信任区 ===================== */
.page-home .home-trust {
  position: relative;
  background-color: var(--home-dark-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}

.page-home .home-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 68px;
  }
}

.page-home .home-trust .section-header__title {
  color: #fff;
  margin-bottom: 18px;
}

.page-home .home-trust__lead {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .home-trust__list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.page-home .home-trust__list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--home-gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .home-trust__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--home-line-white);
}

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

.page-home .home-trust__facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-trust__facts dt {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.page-home .home-trust__facts dd {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 26px;
  color: var(--home-gold-soft);
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .home-trust__icp {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-trust__media {
  margin: 0;
}

.page-home .home-trust__media .media-frame {
  border: 1px solid var(--home-line-white);
  box-shadow: var(--shadow-lg);
}

/* ===================== 最新动态 ===================== */
.page-home .home-news {
  background-color: var(--color-white);
}

.page-home .home-news__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

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

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

.page-home .home-news__item {
  position: relative;
  padding: 20px 20px 20px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.page-home .home-news__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.page-home .home-news__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent rgba(212, 175, 55, 0.45) transparent;
}

.page-home .home-news__item a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.page-home .home-news__item a::before {
  content: "";
  position: absolute;
  inset: 0;
}

.page-home .home-news__item h3 {
  margin: 12px 0 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--color-primary);
}

.page-home .home-news__item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink);
  opacity: 0.78;
}

.page-home .home-news__more {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-news__item {
    transition: none;
  }
}
