.page-home {
  --home-max: min(1180px, 100% - 32px);
  --home-sec-y: clamp(52px, 7vw, 104px);
  --home-cream-line: rgba(26, 20, 16, 0.14);
  display: block;
  background: var(--ink);
  color: var(--warm);
  overflow-x: clip;
}

@media (min-width: 720px) {
  .page-home {
    --home-max: min(1180px, 100% - 64px);
  }
}

.page-home .home-hero,
.page-home .home-section,
.page-home .home-tags {
  width: var(--home-max);
  margin-inline: auto;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 56px);
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
}

.page-home .home-hero__crumb {
  margin-block-end: 20px;
  font-size: 13px;
}

.page-home .home-hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(79, 216, 208, 0.06);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .home-hero__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.18);
  animation: home-pulse 2.6s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.page-home .home-hero__stamp-text {
  color: var(--mist);
}

.page-home .home-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.page-home .home-hero__accent {
  color: var(--orange);
}

.page-home .home-hero__lead-text {
  max-width: 34em;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--mist);
}

.page-home .home-hero__facts .mono {
  margin-right: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-hero__side {
  position: relative;
  display: grid;
  gap: 16px;
}

.page-home .home-hero__note {
  display: none;
}

@media (min-width: 1180px) {
  .page-home .home-hero__note {
    display: block;
    position: absolute;
    top: 10px;
    right: calc(100% + 22px);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    letter-spacing: 0.18em;
    white-space: nowrap;
    color: var(--cyan-deep);
  }
}

.page-home .home-hero__plate {
  overflow: hidden;
  background: var(--panel-blue);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-home .home-hero__plate:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .home-hero__plate-media {
  margin: 0;
}

.page-home .home-hero__plate-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-hero__plate-body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-hero__plate-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange-soft);
}

.page-home .home-hero__plate-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--warm);
}

.page-home .home-hero__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

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

.page-home .home-hero__btn {
  justify-content: center;
  text-align: center;
}

.page-home .home-hero__actions .btn--ghost {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .home-hero__actions .btn--ghost:hover {
  background: rgba(79, 216, 208, 0.12);
  border-color: var(--cyan);
  color: var(--warm);
}

/* ---------- 章节通用 ---------- */

.page-home .home-section {
  position: relative;
  padding-block: var(--home-sec-y);
}

.page-home .home-section__head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-home .home-section__no {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(27px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--warm);
}

.page-home .home-section__sub {
  max-width: 44em;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 栏目索引条带 ---------- */

.page-home .home-index {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-index__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(244, 239, 228, 0.08);
}

.page-home .home-index__track::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-index__track::-webkit-scrollbar-track {
  background: rgba(244, 239, 228, 0.08);
  border-radius: 999px;
}

.page-home .home-index__track::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 999px;
}

.page-home .home-index__track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .home-index__item {
  flex: 0 0 min(72vw, 250px);
  scroll-snap-align: start;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 168px;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: var(--warm);
  background: var(--panel-blue);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.page-home .home-index__item:hover,
.page-home .home-index__item:focus-visible {
  background: var(--lift-blue);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.page-home .home-index__item--pin {
  border-color: var(--cyan);
  background: var(--lift-blue);
}

.page-home .home-index__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .home-index__name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .home-index__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-index__ruler {
  height: 16px;
  border-top: 1px solid var(--line-cyan);
  background-image: repeating-linear-gradient(
    to right,
    rgba(30, 142, 138, 0.9) 0 1px,
    transparent 1px 24px
  );
  background-size: 24px 7px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.page-home .home-index__hint {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan-deep);
}

/* ---------- 本月更新摘要 ---------- */

.page-home .home-updates__list {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .page-home .home-updates__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .page-home .home-updates__item:nth-child(2) {
    margin-top: 40px;
  }

  .page-home .home-updates__item:nth-child(3) {
    margin-top: 80px;
  }
}

.page-home .home-updates__item {
  padding: 24px 22px 26px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  background: rgba(17, 30, 51, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-home .home-updates__ver {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .home-updates__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--warm);
}

.page-home .home-updates__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-updates__more {
  margin: 40px 0 0;
}

/* ---------- 分类标签速览（奶油纸层） ---------- */

.page-home .home-tags {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 6px;
  background: var(--cream);
  color: var(--brown);
}

.page-home .home-tags__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .page-home .home-tags__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
}

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

.page-home .home-tags__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(26, 20, 16, 0.12);
}

.page-home .home-tags__figure .img-frame__cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(26, 20, 16, 0.62);
}

.page-home .home-tags__no {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
}

.page-home .home-tags__title {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(25px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--brown);
}

.page-home .home-tags__text {
  max-width: 36em;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(26, 20, 16, 0.76);
}

.page-home .home-tags__group {
  margin-bottom: 18px;
}

.page-home .home-tags__group-name {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
}

.page-home .home-tags__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-tags__tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 3px;
  background: var(--cream-2);
  border: 1px solid var(--home-cream-line);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.page-home .home-tags__body {
  margin-top: 8px;
}

.page-home .home-tags__body .btn--cyan {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

.page-home .home-tags__body .btn--cyan:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

/* ---------- 设备清单与字段 ---------- */

.page-home .home-equip {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-equip__grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 900px) {
  .page-home .home-equip__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: center;
  }
}

.page-home .home-equip__title {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--warm);
}

.page-home .home-equip__text {
  max-width: 34em;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-equip__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .home-equip__fields li {
  padding: 5px 11px;
  border: 1px solid var(--line-cyan);
  border-radius: 3px;
  background: var(--panel-blue);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

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

.page-home .home-equip__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.page-home .home-equip__cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mist);
}

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

/* ---------- 订阅方案 ---------- */

.page-home .home-plans {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-plans__banner {
  margin: 0 0 28px;
}

.page-home .home-plans__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 20 / 7;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.page-home .home-plans__wrap {
  overflow-x: auto;
}

.page-home .home-plans__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-plans__table thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-cyan);
}

.page-home .home-plans__table tbody th {
  padding: 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  color: var(--warm);
  background: var(--panel-blue);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-plans__table tbody td {
  padding: 14px;
  line-height: 1.6;
  color: var(--mist);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.page-home .home-plans__table tbody tr:hover td {
  background: var(--lift-blue);
  color: var(--warm);
}

@media (max-width: 719px) {
  .page-home .home-plans__table thead {
    display: none;
  }

  .page-home .home-plans__table,
  .page-home .home-plans__table tbody,
  .page-home .home-plans__table tr,
  .page-home .home-plans__table th,
  .page-home .home-plans__table td {
    display: block;
    width: 100%;
  }

  .page-home .home-plans__table tr {
    margin-bottom: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    overflow: hidden;
  }

  .page-home .home-plans__table tbody th {
    border-bottom: 1px solid var(--line-soft);
  }

  .page-home .home-plans__table tbody td {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .page-home .home-plans__table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--cyan);
  }

  .page-home .home-plans__table tbody td:last-child {
    border-bottom: 0;
  }
}

.page-home .home-plans__note {
  max-width: 46em;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 服务数字条 ---------- */

.page-home .home-stats {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

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

.page-home .home-stats__item {
  padding: 24px 18px 26px;
  background: var(--ink);
}

.page-home .home-stats__num {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--warm);
  border-bottom: 2px solid rgba(255, 107, 26, 0.12);
}

.page-home .home-stats__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-stats__note {
  max-width: 46em;
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

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

/* ---------- 上手三问 ---------- */

.page-home .home-faq {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-faq__list {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-faq__item {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--warm);
  transition: color var(--t) var(--ease);
}

.page-home .home-faq__q::-webkit-details-marker {
  display: none;
}

.page-home .home-faq__q:hover {
  color: var(--orange-soft);
}

.page-home .home-faq__icon {
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: var(--orange);
  transition: transform var(--t) var(--ease);
}

.page-home .home-faq__item[open] .home-faq__icon {
  transform: rotate(90deg);
}

.page-home .home-faq__a {
  padding: 4px 18px 20px;
  border-radius: 0 0 4px 4px;
  background: var(--panel-blue);
}

.page-home .home-faq__a p {
  max-width: 42em;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-faq__more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--mist);
}

.page-home .home-faq__more a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.page-home .home-faq__more a:hover {
  color: var(--orange-soft);
}

/* ---------- 动效降级 ---------- */

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

  .page-home .home-hero__plate,
  .page-home .home-index__item,
  .page-home .home-faq__icon,
  .page-home .home-plans__table tbody td {
    transition-duration: 1ms;
  }

  .page-home .home-hero__plate:hover,
  .page-home .home-index__item:hover,
  .page-home .home-index__item:focus-visible {
    transform: none;
  }
}
