/* ==========================================================================
   DDTV 官网 · 组件层
   ========================================================================== */

/* --------------------------------------------------------------------------
   导航
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    backdrop-filter var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  height: var(--nav-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: auto;
  height: 21px;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: 10px;
}

.nav__links a {
  padding: 7px 13px;
  border-radius: var(--pill);
  color: var(--text-2);
  font-size: 0.9125rem;
  font-weight: 500;
  transition: background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav__cta {
  margin-left: 10px;
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.nav__repo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 12px;
  border-radius: var(--pill);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.nav__repo:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav__repo svg {
  width: 16px;
  height: 16px;
}

.nav__menu {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  place-items: center;
}

.nav__menu svg {
  width: 18px;
  height: 18px;
}

/* 移动端弹出的菜单 */

.menu {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: none;
  max-height: none;
}

.menu::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu__panel {
  width: min(90vw, 380px);
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: #0b0b0e;
  box-shadow: var(--shadow-float);
}

.menu__panel nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.menu__panel nav a {
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.menu__panel nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu__close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-3);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu__close button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  display: grid;
  place-items: center;
}

.menu__download {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 860px) {
  .nav__repo span {
    display: none;
  }

  .nav__repo {
    padding: 8px 10px;
  }

  .nav__links {
    display: none;
  }

  .nav__menu {
    display: grid;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(44px, 7vw, 98px));
  padding-bottom: clamp(52px, 7vw, 96px);
}

.hero__bg {
  position: absolute;
  inset: -10% 0 auto;
  height: 118%;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.5) 46%,
    #000 94%
  );
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.8vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 span {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--text-4);
  font-size: 0.8125rem;
}

.keys-hint {
  display: inline-flex;
  gap: 4px;
}

.keycap {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-2);
}

/* 电视框 */

.tv {
  position: relative;
  margin: 0;
  perspective: 1600px;
}

.tv__frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0c;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(calc(var(--parallax, 0) * 1px))
    rotateX(calc(var(--tilt-x, 0) * 1deg)) rotateY(calc(var(--tilt-y, 0) * 1deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.tv__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0a0c;
}

.tv__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 42%, transparent 68%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      transparent 26%,
      transparent 74%,
      rgba(0, 0, 0, 0.4)
    );
}

.tv__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--pill);
  background: rgba(18, 18, 22, 0.58);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.tv__badge--live {
  top: 16px;
  right: 16px;
}

.tv__badge--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.9);
}

.tv__badge--src {
  bottom: 16px;
  left: 16px;
  font-family: var(--mono);
  letter-spacing: 0;
  color: var(--text-2);
}

.tv figcaption {
  margin-top: 16px;
  color: var(--text-4);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__bg {
    opacity: 0.4;
  }

  .tv {
    max-width: 640px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   横向 Shelf
   -------------------------------------------------------------------------- */

.shelf {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 22px;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}

.shelf::-webkit-scrollbar {
  display: none;
}

.shelf:focus-visible {
  outline-offset: -4px;
  border-radius: 12px;
}

.card {
  position: relative;
  flex: 0 0 clamp(250px, 29vw, 384px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: clamp(212px, 24vw, 276px);
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-card), var(--inner-light);
  transition: transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease);
}

.card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: var(--stroke-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-top: auto;
  padding-top: 30px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 9px;
  color: var(--text-3);
  font-size: 0.9125rem;
  line-height: 1.66;
}

.card__index {
  position: absolute;
  top: 26px;
  right: 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-4);
}

.shelf-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-inline: var(--gutter);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  color: var(--text-4);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   界面一览
   -------------------------------------------------------------------------- */

.gallery__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: clamp(18px, 2vw, 26px);
  background: #08080a;
  box-shadow: var(--shadow-float), var(--inner-light);
}

.gallery__shots {
  position: relative;
  aspect-ratio: 16 / 9;
}

.gallery__shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.gallery__shot.is-active {
  opacity: 1;
  transform: none;
}

.gallery__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px clamp(20px, 3vw, 30px) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  color: var(--text-3);
  font-size: 0.9125rem;
}

.gallery__caption strong {
  flex: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.gallery__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery__tab {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.gallery__tab img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--dur-2) var(--ease);
}

.gallery__tab span {
  display: block;
  padding: 9px 12px 11px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.gallery__tab:hover img {
  opacity: 0.8;
}

.gallery__tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 14px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.gallery__tab[aria-selected="true"] img,
.gallery__tab[aria-selected="true"] span {
  opacity: 1;
  color: var(--text);
}

@media (max-width: 760px) {
  .gallery__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__caption {
    flex-direction: column;
    gap: 4px;
  }
}

/* --------------------------------------------------------------------------
   遥控器
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr);
  align-items: start;
  gap: clamp(32px, 5vw, 84px);
}

.keys {
  margin-top: 30px;
  border-top: 1px solid var(--stroke);
}

.keys > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.keys dt {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.keys dd {
  color: var(--text-3);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.remote {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: radial-gradient(
      130% 80% at 50% 0%,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.015) 62%
    ),
    #070709;
  box-shadow: var(--shadow-float), var(--inner-light);
}

.remote:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.remote__screen {
  position: relative;
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #0a0a0c;
  aspect-ratio: 16 / 10;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.mini {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  padding: 12px;
  font-size: 0.75rem;
}

.mini__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.mini__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
}

.mini__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
}

.mini__list {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 4px 0;
}

.mini__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  font-size: 0.75rem;
  transition: background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.mini__row.is-focus {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 22px rgba(0, 0, 0, 0.5);
}

.mini__row[data-current="true"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.mini__meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.mini__digits {
  position: absolute;
  left: 12px;
  bottom: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--stroke);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}

.mini__digits.is-on {
  opacity: 1;
  transform: none;
}

/* 遥控器本体 */

.remote__body {
  width: min(100%, 236px);
  padding: 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: linear-gradient(180deg, #303036, #17171a 62%, #101012);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 30px rgba(0, 0, 0, 0.5), 0 24px 50px rgba(0, 0, 0, 0.6);
}

.remote__pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
      120% 120% at 30% 20%,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.03) 55%
    ),
    #1b1b1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.rkey {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  transition: background var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}

.rkey:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rkey.is-pressed {
  background: rgba(10, 132, 255, 0.9);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.22), 0 0 24px rgba(10, 132, 255, 0.5);
  transform: scale(0.94);
}

.remote__ok {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.remote__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.remote__row .rkey {
  width: 100%;
  height: 34px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.66);
}

.remote__nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.remote__nums .rkey {
  width: 100%;
  height: 30px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.remote__hint {
  color: var(--text-4);
  font-size: 0.75rem;
  text-align: center;
}

.remote__toast {
  min-height: 1.4em;
  color: var(--text-2);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote {
    order: -1;
  }

  .remote__body {
    width: min(100%, 260px);
  }
}

/* --------------------------------------------------------------------------
   特性网格
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.022)
  );
  transition: border-color var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.feature:hover {
  border-color: var(--stroke-strong);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.03)
  );
  transform: translateY(-3px);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.feature__icon svg {
  width: 19px;
  height: 19px;
}

.feature h3 {
  margin-top: 18px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.9125rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   安装 Tabs / 步骤 / 代码块
   -------------------------------------------------------------------------- */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tabs__tab {
  padding: 9px 17px;
  border: 1px solid var(--stroke);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.tabs__tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tabs__tab[aria-selected="true"] {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.tabs__panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-card), var(--inner-light);
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__panel > p {
  color: var(--text-3);
  font-size: 0.9688rem;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.steps h4 {
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: 0;
}

.steps p {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 0.9125rem;
  line-height: 1.65;
}

.steps code,
.inline-code {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84em;
  white-space: nowrap;
}

.code {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: #070709;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code__copy {
  padding: 3px 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 0.6875rem;
  letter-spacing: 0;
  transition: color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease);
}

.code__copy:hover {
  color: var(--text);
  border-color: var(--stroke-strong);
}

.code__copy.is-done {
  color: var(--green);
  border-color: rgba(50, 215, 75, 0.4);
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #e8e8ee;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.code pre code {
  font: inherit;
}

.callout {
  position: relative;
  margin-top: 20px;
  padding: 13px 16px 13px 46px;
  border: 1px solid rgba(10, 132, 255, 0.26);
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.075);
  color: var(--text-2);
  font-size: 0.9125rem;
  line-height: 1.65;
}

.callout::before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.24);
  color: #cfe6ff;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
}

.callout--warn {
  border-color: rgba(255, 159, 10, 0.28);
  background: rgba(255, 159, 10, 0.07);
}

.callout--warn::before {
  background: rgba(255, 159, 10, 0.26);
  color: #ffe0b2;
}

/* --------------------------------------------------------------------------
   系统要求
   -------------------------------------------------------------------------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--stroke);
}

.spec th,
.spec td {
  padding: 17px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
}

.spec th {
  width: 184px;
  color: var(--text);
  font-weight: 600;
}

.spec td {
  color: var(--text-3);
}

@media (max-width: 620px) {
  .spec,
  .spec tbody,
  .spec tr,
  .spec th,
  .spec td {
    display: block;
    width: 100%;
  }

  .spec tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .spec th,
  .spec td {
    padding: 2px 0;
    border: 0;
  }

  .spec th {
    color: var(--text-4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* --------------------------------------------------------------------------
   下载
   -------------------------------------------------------------------------- */

.download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: radial-gradient(
      120% 140% at 0% 0%,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.025) 58%
    ),
    #0a0a0d;
  box-shadow: var(--shadow-float), var(--inner-light);
}

.download__icon {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.download__icon img {
  width: 100%;
  height: 100%;
}

.download h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.download__meta span {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.035);
}

.download__note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 0.9125rem;
}

.download__note strong {
  color: var(--text-2);
  font-weight: 600;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .download {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--stroke);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 2px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.0313rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--text-3);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--dur-2) var(--ease);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  color: #fff;
}

.faq__body {
  max-width: 80ch;
  padding: 0 40px 22px 2px;
  color: var(--text-3);
  font-size: 0.9688rem;
  line-height: 1.75;
}

.faq__body code {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(44px, 6vw, 64px);
  padding-bottom: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.9));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer__brand img {
  width: auto;
  height: 24px;
}

.footer__brand p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--text-4);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer h3 {
  color: var(--text-4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer__links a {
  color: var(--text-2);
  font-size: 0.9375rem;
  transition: color var(--dur-1) var(--ease);
}

.footer__links a:hover {
  color: #fff;
}

.footer__legal {
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-4);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.footer__legal p + p {
  margin-top: 8px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  color: var(--text-4);
  font-size: 0.8125rem;
}

.footer__bottom span {
  font-family: var(--mono);
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   无 JS 降级
   -------------------------------------------------------------------------- */

.no-js .gallery__shots {
  display: grid;
  gap: 16px;
  aspect-ratio: auto;
}

.no-js .gallery__shot {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
}

.no-js .gallery__tabs {
  display: none;
}

.no-js .tabs__list {
  display: none;
}

.no-js .tabs__panel {
  display: block !important;
  margin-bottom: 14px;
}

.no-js .nav__links {
  display: flex;
}

.no-js .nav__menu {
  display: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}
