.page-home {
  --home-line: rgba(0, 229, 255, 0.14);
  --home-gap: clamp(20px, 4vw, 48px);
  background: var(--color-bg);
}

/* ===== 01 框景·入口 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
  overflow: hidden;
  background: var(--color-bg);
}
.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-home .home-hero__frame {
  position: absolute;
  inset: clamp(14px, 3vw, 32px);
  z-index: 2;
  border: 1px solid rgba(0, 229, 255, 0.35);
  pointer-events: none;
}
.page-home .home-hero__tick {
  position: absolute;
  opacity: 0.75;
}
.page-home .home-hero__tick--top {
  top: -6px;
  left: 8%;
  right: 8%;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 2px, transparent 2px 16px);
}
.page-home .home-hero__tick--bottom {
  bottom: -6px;
  left: 8%;
  right: 8%;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 2px, transparent 2px 16px);
}
.page-home .home-hero__tick--left {
  left: -6px;
  top: 8%;
  bottom: 8%;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--color-accent) 0 2px, transparent 2px 16px);
}
.page-home .home-hero__tick--right {
  right: -6px;
  top: 8%;
  bottom: 8%;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--color-accent) 0 2px, transparent 2px 16px);
}
.page-home .home-hero__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--color-accent);
}
.page-home .home-hero__corner--tl {
  top: -1px;
  left: -1px;
  border-top-width: 3px;
  border-left-width: 3px;
}
.page-home .home-hero__corner--tr {
  top: -1px;
  right: -1px;
  border-top-width: 3px;
  border-right-width: 3px;
}
.page-home .home-hero__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.page-home .home-hero__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}
.page-home .home-hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  gap: 32px;
}
.page-home .home-hero__content {
  max-width: 720px;
}
.page-home .home-hero__index {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.page-home .home-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}
.page-home .home-hero__lead {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-muted);
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.page-home .home-hero__telemetry {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-self: start;
  padding: 22px;
  background: rgba(10, 11, 15, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.22);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.page-home .home-hero__telemetry-title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.page-home .home-hero__telemetry .data-chip {
  width: 100%;
}
.page-home .home-hero__contact {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.page-home .home-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.page-home .home-hero__scroll span {
  display: block;
  width: 4px;
  height: 14px;
  background: var(--color-accent);
  animation: home-scroll 1.6s infinite;
}
.page-home .home-hero__scroll span:nth-child(2) {
  animation-delay: 0.2s;
}
.page-home .home-hero__scroll span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes home-scroll {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.4; }
}

/* ===== 02 7月版本更新 ===== */
.page-home .home-update {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  overflow: hidden;
}
.page-home .home-update::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}
.page-home .home-update::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 70%);
  pointer-events: none;
}
.page-home .home-update .container {
  position: relative;
  z-index: 1;
}
.page-home .home-update__layout {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}
.page-home .home-update__main {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  background: var(--color-panel);
}
.page-home .home-update__flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.page-home .home-update__version {
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.page-home .home-update__main h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  color: var(--color-text);
}
.page-home .home-update__main > p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.75;
}
.page-home .home-update__points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .home-update__points li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.page-home .home-update__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}
.page-home .home-update__changelog {
  padding: clamp(24px, 4vw, 32px);
  background: var(--color-panel);
  border: 1px solid rgba(156, 163, 176, 0.12);
}
.page-home .home-update__changelog h3 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: var(--text-xl);
  text-transform: uppercase;
  color: var(--color-text);
}
.page-home .home-update__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.page-home .home-update__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.page-home .home-update__item p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-muted);
}
.page-home .home-update__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== 03 资源下载区 ===== */
.page-home .home-download {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-panel);
  overflow: hidden;
}
.page-home .home-download__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 229, 255, 0.07) 55%, rgba(168, 85, 247, 0.1) 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-home .home-download__grid {
  position: relative;
  display: grid;
  gap: 36px;
}
.page-home .home-download__content {
  display: grid;
  gap: 18px;
  align-content: start;
}
.page-home .home-download h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-text);
}
.page-home .home-download__lead {
  margin: 0;
  max-width: 54ch;
  color: var(--color-muted);
  line-height: 1.75;
}
.page-home .home-download__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .home-download__points li {
  padding: 12px 14px;
  background: rgba(10, 11, 15, 0.6);
  border-left: 2px solid var(--color-accent);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.page-home .home-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.page-home .home-download__visual {
  position: relative;
}
.page-home .home-download__visual .image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.page-home .home-download__visual .image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .home-download__caption {
  margin: 12px 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* ===== 04 厂商列表与规则速览 ===== */
.page-home .home-vendors {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  overflow: hidden;
}
.page-home .home-vendors__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.page-home .home-vendors .container {
  position: relative;
  z-index: 1;
}
.page-home .home-vendors__num {
  color: var(--color-lime);
  font-size: 1.15em;
}
.page-home .home-vendors__list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-home .home-vendors__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "code count tag"
    "info info info";
  gap: 6px 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(18, 20, 28, 0.82);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 240ms var(--ease), border 240ms var(--ease);
}
.page-home .home-vendors__row:hover {
  background: rgba(18, 20, 28, 0.96);
}
.page-home .home-vendors__code {
  grid-area: code;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  color: var(--color-accent);
}
.page-home .home-vendors__info {
  grid-area: info;
}
.page-home .home-vendors__info h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.page-home .home-vendors__info p {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.55;
}
.page-home .home-vendors__count {
  grid-area: count;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.page-home .home-vendors__row .tag {
  grid-area: tag;
  justify-self: end;
}
.page-home .home-vendors__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(156, 163, 176, 0.16);
}
.page-home .home-vendors__footer p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ===== 05 CN分类标签 ===== */
.page-home .home-tags {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-panel);
}
.page-home .home-tags::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 48px);
  width: 80px;
  height: 80px;
  border-top: 2px solid rgba(0, 229, 255, 0.35);
  border-left: 2px solid rgba(0, 229, 255, 0.35);
  pointer-events: none;
}
.page-home .home-tags__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}
.page-home .home-tags__visual {
  position: relative;
}
.page-home .home-tags__visual .image-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.page-home .home-tags__visual .image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .home-tags__content {
  display: grid;
  gap: 18px;
  align-content: start;
}
.page-home .home-tags h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-text);
}
.page-home .home-tags__lead {
  margin: 0;
  max-width: 56ch;
  color: var(--color-muted);
  line-height: 1.75;
}
.page-home .home-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-home .home-tags__cloud .tag {
  text-decoration: none;
}
.page-home .home-tags__note {
  padding: 20px 22px;
  background: rgba(10, 11, 15, 0.65);
}
.page-home .home-tags__note h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  text-transform: uppercase;
  color: var(--color-text);
}
.page-home .home-tags__note p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.page-home .home-tags__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== 响应式：平板与桌面 ===== */
@media (min-width: 720px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: var(--home-gap);
  }
  .page-home .home-update__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .page-home .home-download__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .home-download__visual {
    padding-left: 12px;
  }
  .page-home .home-vendors__row {
    grid-template-columns: 56px 1fr auto auto;
    grid-template-areas: "code info count tag";
  }
  .page-home .home-vendors__row .tag {
    justify-self: start;
  }
  .page-home .home-tags__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: var(--home-gap);
  }
}

@media (min-width: 1024px) {
  .page-home .home-vendors__list {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .page-home .home-update__main {
    padding: 40px;
  }
  .page-home .home-update__changelog {
    padding: 36px;
  }
}

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