/* Jaspr 壳样式入口。规则按模块放在 css/，这里只 import。
   顺序即层叠顺序，不要在本文件写选择器。
   色值对齐 05 #121212 / 白字；切图仍走 /assets/assets/。 */
/* 全站基底：字体、页面底色、触摸高亮及 WebKit 搜索/自动填充隐藏（W-F020）。 */

/* 由根继承到按钮、链接及动态挂载的弹窗遮罩，避免 H5 点击时出现色块或整屏蓝闪。
   仅移除浏览器触摸着色；保留业务选中样式和键盘焦点提示。 */
html {
  -webkit-tap-highlight-color: transparent;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button,
input::-webkit-caps-lock-indicator {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
  position: absolute !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/assets/fonts/GoogleSansFlex-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/assets/fonts/GoogleSansFlex-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* 设备面板搜索/失败/已连标题与行名走 Flutter w500，不能用 Regular 合成。 */
@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/assets/fonts/GoogleSansFlex-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/assets/fonts/GoogleSansFlex-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #121212;
  color: #fff;
  font-family: "Google Sans Flex", sans-serif;
}

.onvessi-root {
  position: relative;
  min-height: 100%;
  background: #121212;
}

/* 全站内容图片渐进加载动效（Baseline v10.107）：
   仅处理已绑定内容图运行时的像素淡入与微光容器，不干扰功能图标或未水合首屏图。 */
@keyframes onvessi-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes onvessi-self-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16);
  }
}

img[data-img-surface="framed"]:is([data-img-state="waiting"], [data-img-state="shimmer"], [data-img-state="failed"]) {
  opacity: 0;
  transition: none;
}

img[data-img-surface="framed"][data-img-state="instant"] {
  opacity: 1;
  transition: none;
}

img[data-img-surface="framed"][data-img-state="ready"] {
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 独立头像/缩略图自身承担圆角背景，加载中绝不设 opacity:0，仅做极轻微明暗呼吸提示。 */
img[data-img-surface="self"][data-img-state="shimmer"] {
  animation: onvessi-self-breathe 1.35s ease-in-out infinite;
}

/* 兄弟占位层微光（Characters / Stories / Unlock Poster）。 */
.characters-card__placeholder,
.stories-page__tile-placeholder,
.stories-page__avatar-placeholder,
.story-unlock__poster-placeholder {
  overflow: hidden;
}

:is(
    .characters-card__placeholder,
    .stories-page__tile-placeholder,
    .stories-page__avatar-placeholder,
    .story-unlock__poster-placeholder
  ):has(+ img[data-img-state="shimmer"])::after,
:is(
    .stories-page__banner-image,
    .story-resume__cover,
    .story-complete__cover,
    .story-player__stage,
    .chat-story__cover,
    .chat-image-card,
    .account-avatar,
    .home-banner__slide,
    .n1-show--desk .n1d-hero__stage,
    .n1v-frame:not(.n1v-frame--privacy)
  ):has(img[data-img-state="shimmer"], img[data-deferred-image-state="shimmer"])::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%);
  animation: onvessi-shimmer 1.25s ease-in-out infinite;
}

/* 浅底商品卡片与晒单缩略图采用白透高光，保持清爽电商质感。 */
.store-card__img {
  position: relative;
  overflow: hidden;
}

.n1d-dcard__photo {
  position: relative;
  overflow: hidden;
}

.store-card__img:has(img[data-img-state="shimmer"])::after,
.n1d-dcard__photo:has(img[data-img-state="shimmer"])::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%);
  animation: onvessi-shimmer 1.25s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  img[data-img-surface="framed"][data-img-state="ready"] {
    transition: none;
  }

  img[data-img-surface="self"][data-img-state="shimmer"],
  :is(
      .characters-card__placeholder,
      .stories-page__tile-placeholder,
      .stories-page__avatar-placeholder,
      .story-unlock__poster-placeholder
    ):has(+ img[data-img-state="shimmer"])::after,
  :is(
      .stories-page__banner-image,
      .story-resume__cover,
      .story-complete__cover,
      .story-player__stage,
      .chat-story__cover,
      .chat-image-card,
      .account-avatar,
      .store-card__img,
      .n1d-dcard__photo,
      .home-banner__slide,
      .n1-show--desk .n1d-hero__stage,
      .n1v-frame:not(.n1v-frame--privacy)
    )::after {
    animation: none !important;
  }
}

/* W-F001/W-F002/W-F010/W-F015/W-F020/W-F023/C-45：Jaspr 壳、错误页、Embed 槽及原注销恢复界面的全局宿主。
   <1200 紧凑顶栏与本文件同模块，避免和业务页媒体查询搅在一起。 */
/* W-F020：内容滑到边界后，不让浏览器对整个文档做纵向回弹或下拉刷新。
   只约束带导航壳的页面；不锁内容滚动、不改变定位，也不限制横向手势。 */
html:has(.site-shell),
body:has(.site-shell) {
  overscroll-behavior-y: none;
}

.site-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* W-F018/W-F020：手机浏览器工具栏展开时，壳层按当前可见高度收缩。 */
  height: 100dvh;
  height: var(--onvessi-visible-height, 100dvh);
  overflow: hidden;
  background: #121212;
}

.site-shell__top {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 64px;
  padding: 0 30px;
  background: #121212;
  box-sizing: border-box;
  z-index: 4;
}

/* W-F020：只隐藏导航，主区始终留在 body 内，避免显隐触发 Chat 卸载/重挂。 */
.site-shell.site-shell--immersive > .site-shell__top,
.site-shell.site-shell--immersive > .site-shell__body > .site-shell__side,
.site-shell.site-shell--immersive > .site-shell__body > .site-shell__mask {
  display: none;
}

.site-shell__collapse,
.site-shell__burger {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 14px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-shell__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-shell__burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.site-shell__burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 20px;
  background: #fff;
}

.site-shell__logo {
  display: flex;
  align-items: center;
}

.site-shell__logo-desktop {
  width: 130px;
  height: 26px;
}

.site-shell__logo-compact {
  display: none;
  width: 110px;
  height: 14px;
}

.site-shell__top-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.site-shell__login {
  min-width: 80px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 50px;
  background: #f7597a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.site-shell__logout {
  min-width: 80px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #f7597a;
  border-radius: 50px;
  background: transparent;
  color: #f7597a;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.site-shell__cart {
  position: relative;
  width: 46px;
  height: 30px;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  cursor: pointer;
}

.site-shell__cart-face {
  display: block;
  width: 100%;
  height: 100%;
}

.site-shell__cart-img {
  display: block;
  width: 46px;
  height: 30px;
}

.site-shell__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f7597a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.site-shell__device {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 原生 capture click 必须命中 button 本身，子图标不单独吃 target。 */
.site-shell__chip[data-onvessi-ble-device="1"] > * {
  pointer-events: none;
}

.site-shell__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  max-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 50px;
  background: #262626;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.site-shell__chip-icon {
  width: 18px;
  height: 18px;
}

.site-shell__battery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 140px;
  min-height: 30px;
  max-height: 30px;
  padding: 0 12px;
  border-radius: 50px;
  background: #262626;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}

.site-shell__battery-bar {
  flex: 0 0 3px;
  width: 3px;
  height: 12px;
  border-radius: 20px;
  background: #f7597a;
}

.site-shell__coins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  height: 30px;
  padding: 0 12px;
  border-radius: 50px;
  background: #262626;
  color: #fbbc5f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-shell__coins--empty {
  color: #ccc;
}

.site-shell__coins-icon {
  width: 16px;
  height: 16px;
}

.site-shell__avatar {
  position: relative;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 1px;
  border: 1px solid #f7597a;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.site-shell__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-shell__crown {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 13px;
  pointer-events: none;
}

.site-shell__restore {
  display: inline-block;
  width: 126px;
  height: 30px;
}

.site-shell__body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.site-shell__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 240px;
  flex-shrink: 0;
  overflow: hidden;
  background: #121212;
  padding-top: 20px;
  transition: width 300ms ease-in-out;
}

.site-shell__side--collapsed {
  width: 72px;
}

.site-shell__nav-item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 50px;
  padding: 0 0 0 30px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.site-shell__nav-item--on {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, #393939, #121212);
}

/* 与 Flutter NavTile ColorFilter.srcIn 相同：同一 SVG，未选中 #999、选中白。 */
.site-shell__nav-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #999;
  -webkit-mask: var(--nav-icon) center / 24px 24px no-repeat;
  mask: var(--nav-icon) center / 24px 24px no-repeat;
}

.site-shell__nav-item--on .site-shell__nav-icon {
  background-color: #fff;
}

.site-shell__nav-label {
  margin-left: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.site-shell__side--collapsed .site-shell__nav-item {
  padding-left: 24px;
}

.site-shell__side--collapsed .site-shell__nav-item--on {
  background: none;
}

.site-shell__side--collapsed .site-shell__nav-label {
  display: none;
}

.site-shell__main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  /* N1 画布 zoom 必须相对主区实宽，不能相对被 1920 子元素撑开的包装。 */
  container-type: inline-size;
  container-name: shell-main;
}

.site-shell__stage {
  position: relative;
  min-height: 100%;
}

.site-shell__mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(18, 18, 18, 0.75);
  pointer-events: none;
}

.site-shell__mask.is-open {
  display: block;
  pointer-events: auto;
}

@media (min-width: 1200px) {
  .site-shell__mask,
  .site-shell__mask.is-open {
    display: none;
    pointer-events: none;
  }
}

.site-shell__mask-dismiss {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.site-shell__drawer {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #121212;
  padding-top: 12px;
}

.legal-page {
  position: relative;
  z-index: 2;
  height: 100vh;
  overflow: hidden;
  background: #2a2a2a;
  color: #fff;
}

.legal-page--standalone {
  height: 100dvh;
}

.legal-page__inner {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: 900px;
  height: 100%;
  margin: 0 auto;
}

.legal-page__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: none;
  padding: 24px 30px;
  border-bottom: 1px solid #262626;
}

.legal-page--standalone .legal-page__header {
  padding-top: calc(24px + env(safe-area-inset-top));
}

.legal-page__heading {
  min-width: 0;
  flex: 1;
}

.legal-page h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
}

.legal-page__updated {
  margin: 6px 0 0;
  color: #999;
  font-size: 13px;
  line-height: 18px;
}

.legal-page__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.legal-page__close img {
  width: 18px;
  height: 18px;
}

/* C-79：独立 Contact 的 H5 返回复用关闭按钮尺寸，PC 不显示；箭头保持原比例。 */
.legal-page__back {
  display: none;
}

.legal-page__back img {
  object-fit: contain;
}

.legal-page__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 30px;
  color: #ccc;
  font-size: 14px;
  line-height: 23px;
}

.legal-page--standalone .legal-page__body {
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.legal-page section + section {
  margin-top: 28px;
}

/* 官网政策的引言及同一编号章节内第二组列表沿用正文间距。 */
.legal-page section + .legal-page__section--continuation {
  margin-top: 12px;
}

.legal-page h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.legal-page__icon-well {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f7597a;
}

.legal-page__icon {
  width: 16px;
  height: 16px;
}

.legal-page__section-title {
  padding-top: 7px;
}

.legal-page p,
.legal-page ul {
  margin: 0;
}

.legal-page p + p,
.legal-page p + ul,
.legal-page ul + p {
  margin-top: 12px;
}

.legal-page ul {
  padding: 0;
  list-style: none;
}

.legal-page li {
  position: relative;
  padding-left: 17px;
}

.legal-page li + li {
  margin-top: 12px;
}

.legal-page li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f7597a;
  content: '';
}

.legal-page p.legal-page__closing {
  margin-top: 28px;
  padding-top: 13px;
  border-top: 1px solid #262626;
  color: #999;
  font-size: 13px;
  line-height: 20px;
}

.legal-page a:not(.legal-page__close) {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  .legal-page__back {
    display: flex;
  }

  .legal-page__header {
    padding: 24px 20px;
  }

  .legal-page__body {
    padding: 24px 20px 30px;
  }
}

/* W-F002/W-F020：错误页只占主区，保留侧栏；内容较高时随主区滚动，不裁掉返回入口。
   复用 OnvessiDimens 的通用字阶、协议页留白和商城主按钮规格，颜色对齐 OnvessiColors。 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 30px;
  box-sizing: border-box;
  text-align: center;
}

.not-found__code {
  margin: 0 0 12px;
  color: #6937f0;
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
}

.not-found__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.not-found__hint {
  margin: 16px 0 0;
  color: #999;
  font-size: 16px;
  line-height: 24px;
}

/* 与商城购买按钮共用紫色胶囊规格；保留原生链接和键盘焦点，不额外制造悬停色。 */
.not-found__return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 48px;
  max-width: 100%;
  margin-top: 30px;
  padding: 12px 30px;
  box-sizing: border-box;
  border-radius: 50px;
  background: #6937f0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .not-found {
    padding: 24px 20px;
  }
}

@media (max-width: 1199px) {
  /* W-F015：Solo、DIY、AI Control 和 Manual 自带返回标题栏，通过公开展示标记隐藏紧凑导航。
     主区和 Device 会话保持原挂载位置，返回设备首页后 CSS 自动恢复导航。 */
  .site-shell:has([data-device-compact-surface="solo"], [data-device-compact-surface="ai"], [data-device-compact-surface="manual"], [data-device-compact-surface="diy"]) > .site-shell__top,
  .site-shell:has([data-device-compact-surface="solo"], [data-device-compact-surface="ai"], [data-device-compact-surface="manual"], [data-device-compact-surface="diy"]) > .site-shell__body > .site-shell__mask {
    display: none;
  }

  .site-shell__top {
    height: 44px;
    padding: 0 20px;
  }

  .site-shell__collapse {
    display: none;
  }

  .site-shell__burger {
    display: inline-flex;
    align-items: center;
    height: 44px;
    margin-right: 8px;
  }

  .site-shell__logo {
    margin-right: 8px;
  }

  .site-shell__top-end {
    gap: 12px;
  }

  .site-shell__login {
    min-width: 60px;
  }

  .site-shell__logout {
    display: none;
  }

  .site-shell__cart {
    width: 30px;
    height: 30px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .site-shell__cart-face {
    overflow: hidden;
    border-radius: 50%;
    background: #262626;
  }

  .site-shell__cart-img {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .site-shell__chip-label,
  .site-shell__battery {
    display: none;
  }

  .site-shell__chip {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 50%;
  }

  .site-shell__restore {
    width: 60px;
  }

  .site-shell__drawer-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 50px;
    padding: 0 0 0 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
  }

  .site-shell__drawer-item--on {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, #393939, #121212);
  }

  .site-shell__drawer-icon {
    width: 24px;
    height: 24px;
    background-color: #ccc;
    -webkit-mask: var(--nav-icon) center / 24px 24px no-repeat;
    mask: var(--nav-icon) center / 24px 24px no-repeat;
  }

  .site-shell__drawer-item--on .site-shell__drawer-icon {
    background-color: #fff;
  }

  .site-shell__drawer-label {
    margin-left: 14px;
  }

  .site-shell__drawer-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 16px 20px;
  }

  .site-shell__drawer-avatar {
    box-sizing: border-box;
    display: block;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 1px;
    overflow: hidden;
    border: 1px solid #f7597a;
    border-radius: 50%;
  }

  .site-shell__drawer-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .site-shell__drawer-logout-btn {
    min-width: 78px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #f7597a;
    border-radius: 50px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  .site-shell__side {
    display: none;
  }

  .site-shell__logo-desktop {
    display: none;
  }

  .site-shell__logo-compact {
    display: block;
  }

}

@media (max-width: 767px) {
  /* W-F020：Premium 金币数较长时，先压缩操作区留白，头像仍留在顶栏内。 */
  .site-shell__logo {
    min-width: 0;
  }

  .site-shell__logo-compact {
    max-width: 100%;
  }

  .site-shell__top-end {
    flex-shrink: 0;
    gap: 4px;
  }

  .site-shell__coins {
    box-sizing: border-box;
    min-width: 0;
    max-width: 88px;
    gap: 4px;
    padding: 0 6px;
    white-space: nowrap;
  }

  .site-shell__coins-icon {
    flex-shrink: 0;
  }

  .site-shell__coins span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-shell__avatar {
    flex-shrink: 0;
  }
}

/* Store 目录、商品详情首屏与贴底购买条（W-F008）。
 * 详情信息列 / Save / 卖点 / CTA / 信任条对齐 `商品详情ui调整.json`。
 * N1 活动位按 `n1-详情-添加活动-pc.json`，白卡底内边距 40。 */
.store-html {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 64px);
  padding: 24px 32px 48px;
  box-sizing: border-box;
  background: #121212;
  color: #fff;
}

.store-html__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 600;
}

.store-html__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
  max-width: 1080px;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 392px;
  padding: 0 0 16px;
  border-radius: 16px;
  background: #fff;
  color: #121212;
  overflow: hidden;
}

.store-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.store-card__img {
  width: 100%;
  aspect-ratio: 1;
  background: #f3f3f3;
}

.store-card__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-card__save {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #6937f0;
  color: #fff;
  font-size: 12px;
}

.store-card__name {
  margin: 12px 14px 0;
  font-size: 16px;
  font-weight: 600;
  min-height: 40px;
}

.store-card__price {
  margin: 8px 14px 0;
  font-size: 18px;
  font-weight: 600;
}

.store-card__was {
  margin-left: 8px;
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
}

.store-card__cta {
  display: block;
  width: calc(100% - 28px);
  margin: 16px 14px 0;
  height: 40px;
  padding: 0;
  border: 0;
  line-height: 40px;
  text-align: center;
  border-radius: 24px;
  background: #121212;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.store-card__cta--off {
  background: rgba(153, 153, 153, 0.3);
  color: #999;
}

.store-detail {
  width: 100%;
  padding: 16px 0 120px;
  container-type: inline-size;
  --su: calc(100cqi / 1848);
}

.store-detail__back {
  display: inline-block;
  margin: 0 32px 16px;
  color: #999;
  text-decoration: none;
}

.store-detail__scale,
.store-detail__canvas {
  width: 100%;
}

.store-detail__board {
  display: flex;
  gap: calc(122 * var(--su));
  padding: calc(50 * var(--su)) calc(278 * var(--su)) calc(40 * var(--su))
    calc(204 * var(--su));
  background: #fff;
  color: #121212;
  border-radius: 20px 0 0 0;
  box-sizing: border-box;
}

/* N1 活动位：链接与展示容器共用块级几何，保持 1440×375、左右 204、上下 30、圆角 30。 */
.store-detail__promo {
  display: block;
  width: calc(1440 * var(--su));
  margin: calc(30 * var(--su)) calc(204 * var(--su));
  aspect-ratio: 1440 / 375;
  border-radius: calc(30 * var(--su));
  overflow: hidden;
  background: #d9d9d9;
}

.store-detail__promo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-detail__gallery {
  position: relative;
  flex: 0 0 calc(750 * var(--su));
  width: calc(750 * var(--su));
  height: calc(750 * var(--su));
  overflow: hidden;
  background: #d9d9d9;
}

/* 首图加载超过 120ms 时叠加柔和斜向高光，提示商品井处于响应加载状态。 */
.store-detail__gallery.is-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%);
  animation: onvessi-shimmer 1.25s ease-in-out infinite;
}

.store-detail__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-detail__photo--fade {
  animation: store-photo-fade 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 切换同商品图片时叠放新图并做 200ms 交叉叠化；同色背景遮蔽透明抠图轮廓，避免前后两代商品叠出重影。 */
.store-detail__photo--incoming {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d9d9d9;
  opacity: 0;
  pointer-events: none;
}

.store-detail__photo--incoming.is-ready {
  animation: store-photo-fade 200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* W-F008：加载时保留图片井尺寸，但不展示旧图或浏览器破图标记。 */
.store-detail__photo--pending {
  visibility: hidden;
}

/* 切换主图等待超过 150ms 时在舞台底缘呈现轻量流光进度条，避免全屏遮挡商品图。 */
.store-detail__switch-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.14);
  pointer-events: none;
}

.store-detail__switch-bar::after {
  content: "";
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 999px;
  background: #6937f0;
  animation: store-switch-progress 0.9s ease-in-out infinite;
}

@keyframes store-photo-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes store-switch-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-detail__gallery.is-shimmer::after,
  .store-detail__photo--fade,
  .store-detail__photo--incoming.is-ready,
  .store-detail__switch-bar::after {
    animation: none !important;
  }

  .store-detail__photo--incoming.is-ready {
    opacity: 1;
  }
}

/* 复用商品正文的字体与颜色；状态居中且不遮挡两侧已有箭头热区。 */
.store-detail__image-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* 复用登录转圈的尺寸、描边与动画，仅改为随状态容器居中布局。 */
.store-detail__image-status .store-detail__image-spinner {
  position: static;
}

/* Retry 沿用文字链接形态，不引入新的按钮色值、尺寸或圆角。 */
.store-detail__image-retry {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

.store-detail__info {
  flex: 0 0 calc(494 * var(--su));
  width: calc(494 * var(--su));
}

.store-detail__name {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
}

.store-detail__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
}

.store-detail__price-now {
  color: #f7597a;
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
}

.store-detail__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(94 * var(--su));
  height: calc(28 * var(--su));
  border-radius: 30px;
  background: #f7597a;
  color: #fff;
  font-size: calc(16 * var(--su));
  font-weight: 600;
  line-height: calc(20 * var(--su));
}

.store-detail__desc {
  margin: 29px 0 0;
  color: #6b6b6b;
  font-size: calc(14 * var(--su));
  line-height: calc(18 * var(--su));
}

.store-detail__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
}

.store-detail__star {
  width: 15px;
  height: 14px;
}

.store-detail__reviews {
  margin-left: 10px;
  color: #999;
  font-size: calc(14 * var(--su));
  font-weight: 300;
  line-height: calc(18 * var(--su));
}

.store-detail__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #6b6b6b;
  font-size: calc(14 * var(--su));
  line-height: calc(18 * var(--su));
}

.store-detail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1be1a9;
}

.store-detail__dot--lowStock {
  background: #f89018;
}

.store-detail__dot--outOfStock {
  background: #999;
}

.store-detail__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(10 * var(--su));
  margin-top: calc(30 * var(--su));
}

.store-detail__feature {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 116 / 72;
}

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

.store-detail__feature-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(18, 18, 18, 0.5);
  color: #fff;
  font-size: calc(14 * var(--su));
  font-weight: 600;
  line-height: calc(18 * var(--su));
  text-align: center;
  white-space: pre-line;
}

.store-detail__cta {
  display: flex;
  flex-wrap: nowrap;
  gap: calc(30 * var(--su));
  margin-top: calc(30 * var(--su));
}

.store-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: calc(8 * var(--su));
  width: calc(232 * var(--su));
  height: calc(48 * var(--su));
  padding: 0 calc(12 * var(--su));
  border-radius: 50px;
  font-size: calc(16 * var(--su));
  font-weight: 600;
  cursor: pointer;
}

.store-detail__btn--add {
  border: 2px solid #6937f0;
  background: transparent;
  color: #6937f0;
  font-weight: 600;
}

.store-detail__btn--buy {
  border: 2px solid #6937f0;
  background: #6937f0;
  color: #fff;
}

.store-detail__btn--off {
  border: 2px solid #999;
  background: rgba(153, 153, 153, 0.3);
  color: #999;
  cursor: default;
}

.store-detail__btn.is-locked {
  opacity: 0.5;
  cursor: default;
}

.store-detail__btn-icon {
  width: calc(22 * var(--su));
  height: calc(22 * var(--su));
}

.store-btn-prep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #121212;
  font-size: 16px;
  font-weight: 600;
}

.store-btn-prep--on-dark {
  color: #fff;
}

.store-btn-prep__spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: store-spin 0.7s linear infinite;
}

@keyframes store-spin {
  to {
    transform: rotate(360deg);
  }
}

.store-detail__trust {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: calc(20 * var(--su));
  box-sizing: border-box;
  width: 100%;
  height: calc(66 * var(--su));
  margin-top: calc(30 * var(--su));
  padding: 0 calc(21 * var(--su));
  border: 0.8px solid #ccc;
  border-radius: 10px;
}

.store-detail__trust-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: calc(6 * var(--su));
  min-width: 0;
  height: calc(36 * var(--su));
  color: #121212;
  font-size: calc(14 * var(--su));
  font-weight: 500;
  line-height: calc(18 * var(--su));
  /* 文案自带换行；pre 禁止「1 Year warranty」再被拆成三行。 */
  white-space: pre;
}

.store-detail__trust-item--discreet {
  width: calc(93 * var(--su));
}

.store-detail__trust-item--express {
  width: calc(92 * var(--su));
}

.store-detail__trust-item--warranty {
  width: calc(97 * var(--su));
}

.store-detail__trust-item--customers {
  width: calc(109 * var(--su));
}

.store-detail__trust-icon {
  flex-shrink: 0;
  width: calc(30 * var(--su));
  height: calc(30 * var(--su));
}

.store-detail__trust-item span {
  flex: 1;
  min-width: 0;
}

.store-detail__cat {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.store-detail__was {
  color: #999;
  font-size: 18px;
  line-height: 23px;
  text-decoration: line-through;
}

.store-detail__arrow {
  --store-arrow: calc(50 * var(--su));
  --store-arrow-hit: 16px;
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: var(--store-arrow);
  height: var(--store-arrow);
  padding: var(--store-arrow-hit);
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.store-detail__arrow img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 稿面左右距边不一致（左 74 / 右 24）；产品要求两侧相同，都用贴边的 24。 */
.store-detail__arrow--prev {
  left: calc(24 * var(--su) - var(--store-arrow-hit));
}

.store-detail__arrow--next {
  right: calc(24 * var(--su) - var(--store-arrow-hit));
}

.store-detail__specs {
  margin-top: 30px;
}

.store-detail__specs-title {
  margin: 0 0 12px;
  font-size: calc(18 * var(--su));
  font-weight: 500;
  line-height: calc(23 * var(--su));
}

.store-detail__spec {
  display: flex;
  align-items: flex-start;
  gap: calc(6 * var(--su));
  margin: 0 0 calc(8 * var(--su));
  color: #6b6b6b;
  font-size: calc(16 * var(--su));
  font-weight: 400;
  line-height: calc(20 * var(--su));
}

.store-detail__spec::before {
  content: '';
  flex-shrink: 0;
  width: calc(4 * var(--su));
  height: calc(4 * var(--su));
  margin-top: calc(8 * var(--su));
  border-radius: 50%;
  background: #6b6b6b;
}

.store-detail__html {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
  color: #fff;
}

.store-detail__html img {
  max-width: 100%;
  height: auto;
}

.store-n1-faq {
  display: flex;
  align-items: flex-start;
  gap: calc(46 * var(--su));
  max-width: calc(1440 * var(--su));
  margin: calc(56 * var(--su)) auto 0;
  padding: 0 calc(204 * var(--su));
  box-sizing: border-box;
  color: #fff;
}

.store-n1-faq__list {
  flex: 0 0 calc(982 * var(--su));
  width: calc(982 * var(--su));
}

.store-n1-faq__row {
  box-sizing: border-box;
  padding: calc(14 * var(--su)) 0;
  border-top: 1px solid #999;
}

.store-n1-faq__row:last-child {
  border-bottom: 1px solid #999;
}

.store-n1-faq__q,
.store-n1-faq__a {
  margin: 0;
  font-size: calc(18 * var(--su));
  line-height: calc(23 * var(--su));
  font-weight: 500;
}

.store-n1-faq__a {
  margin-top: calc(10 * var(--su));
  font-weight: 300;
}

.store-n1-faq__art {
  flex: 0 0 calc(412 * var(--su));
  width: calc(412 * var(--su));
  height: calc(671 * var(--su));
  border-radius: calc(30 * var(--su));
  object-fit: cover;
}

.store-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  align-items: center;
  gap: 20px;
  height: 88px;
  /* 三端都是长度：clamp 混用数字和 vw 会整段 padding 失效，内容贴圆角。 */
  padding: 0
    clamp(calc(304px * 0.55), calc(100vw * 304 / 1920), calc(304px * 1.2)) 0
    clamp(calc(292px * 0.55), calc(100vw * 292 / 1920), calc(292px * 1.2));
  box-sizing: border-box;
  background: #fff;
  color: #121212;
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

html.store-sticky-on .store-sticky {
  display: flex;
  pointer-events: auto;
}

.store-sticky__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #e6e6e6;
}

.store-sticky__meta {
  flex: 1;
  min-width: 0;
}

.store-sticky__price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #121212;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.store-sticky__was {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  text-decoration: line-through;
}

.store-sticky__name-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4px 0 0;
  min-width: 0;
}

.store-sticky__name {
  min-width: 0;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-sticky__stock {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 15px;
}

.store-sticky__qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 90px;
  height: 42px;
  margin-left: 4px;
  border-radius: 30px;
  background: #eee;
  color: #121212;
}

.store-sticky__qty-hit {
  flex: 1;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121212;
  font-size: 18px;
  line-height: 23px;
  cursor: pointer;
}

.store-sticky__qty-hit.is-off {
  color: #999;
  cursor: default;
}

.store-sticky__qty-n {
  width: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
}

.store-sticky__buy {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #6937f0;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
}

.store-sticky__buy.is-locked {
  opacity: 0.5;
  cursor: default;
}

.store-sticky__buy-fill {
  position: absolute;
  left: 50px;
  top: 0;
  right: 0;
  bottom: 0;
  background: #6937f0;
  border-radius: 50px;
}

.store-sticky__buy-cart {
  position: absolute;
  left: 18px;
  top: 11px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.store-sticky__buy-label {
  position: absolute;
  left: 50px;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.store-html--empty {
  color: #999;
}

@media (max-width: 767px) {
  .store-n1-faq {
    flex-direction: column-reverse;
    gap: 24px;
    max-width: none;
    margin: 32px 0 0;
    padding: 0 20px;
  }

  .store-n1-faq__list,
  .store-n1-faq__art {
    flex: none;
    width: 100%;
  }

  .store-n1-faq__art {
    height: auto;
    aspect-ratio: 412 / 671;
    border-radius: 30px;
  }

  .store-n1-faq__row {
    padding: 16px 0;
    border-top: 0;
    border-bottom: 1px solid #999;
  }

  .store-n1-faq__q {
    font-size: 16px;
    line-height: 22px;
  }

  .store-n1-faq__a {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
  }

  .store-detail__board {
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 24px 16px 40px;
  }

  /* H5 活动图与长页同宽，直角且无外间距，顶部紧贴购买白卡。 */
  .store-detail__promo {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .store-detail__gallery {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  /* 窄屏圆标 32，视觉距边 16；热区外扩到 48，避免点圆标外围没反应。 */
  .store-detail__arrow {
    --store-arrow: 32px;
    --store-arrow-hit: 8px;
  }

  .store-detail__arrow,
  .store-detail__arrow img {
    width: 32px;
    height: 32px;
  }

  .store-detail__arrow--prev {
    left: 8px;
  }

  .store-detail__arrow--next {
    right: 8px;
  }

  .store-detail__info {
    width: 100%;
    flex: none;
    max-width: none;
  }

  .store-detail__name {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
  }

  .store-detail__save {
    width: 94px;
    height: 28px;
    font-size: 16px;
    line-height: 20px;
  }

  .store-detail__desc {
    font-size: 14px;
    line-height: 18px;
  }

  .store-detail__reviews,
  .store-detail__stock {
    font-size: 14px;
    line-height: 18px;
  }

  .store-detail__price {
    font-size: 22px;
    line-height: 28px;
  }

  .store-detail__features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .store-detail__cta {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .store-detail__feature-label {
    font-size: 14px;
    line-height: 18px;
  }

  .store-detail__btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .store-detail__btn-icon {
    width: 22px;
    height: 22px;
  }

  .store-detail__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
    width: 100%;
    height: auto;
    margin-top: 30px;
    gap: 14px 12px;
    padding: 15px 16px;
    border: 0.8px solid #ccc;
    border-radius: 10px;
  }

  .store-detail__specs-title {
    font-size: 18px;
    line-height: 23px;
  }

  .store-detail__spec {
    font-size: 16px;
    line-height: 20px;
  }

  /* 窄屏必须写死 14/18，不能沿用 --su 行高，否则字形会盖住 30 圆标。 */
  .store-detail__trust-item,
  .store-detail__trust-item--discreet,
  .store-detail__trust-item--express,
  .store-detail__trust-item--warranty,
  .store-detail__trust-item--customers {
    width: auto;
    height: auto;
    min-height: 36px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    gap: 8px;
  }

  .store-detail__trust-icon {
    width: 30px;
    height: 30px;
  }

  .store-sticky {
    gap: 10px;
    padding: 0 20px;
  }

  /* 对齐 Flutter compact：窄屏不画数量步进和库存点，避免挤掉 Buy Now。 */
  .store-sticky__qty,
  .store-sticky__stock {
    display: none;
  }

  .store-sticky__buy {
    width: 180px;
  }
}

/* 首页（W-F005）。桌面整帧最大 1680、内容列 1500，超出居中；
   主区窄于 1680 时按 Flutter FittedBox 同一比例缩小。窗口 <768 才堆叠。 */

.home-html {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100vh - 64px);
  background: #121212;
  color: #fff;
}

.home-html__seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-html__frame {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  box-sizing: border-box;
  container-type: inline-size;
  /* 无单位 1 不能和长度 min；1680px 相除得到倍率。 */
  --hf: min(1, 100cqi / 1680px);
  padding: calc(30px * var(--hf)) calc(92px * var(--hf)) calc(60px * var(--hf))
    calc(88px * var(--hf));
}

.home-html__col {
  width: 100%;
  max-width: 1500px;
  min-width: 0;
}

/* 对齐 Flutter Banner `padding: only(bottom: 32)`。用 padding 避免与下一块 margin 折叠成 0。 */
.home-html__banner {
  padding-bottom: calc(32px * var(--hf));
}

.home-banner {
  width: 100%;
  container-type: inline-size;
}

.home-banner__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 600;
  overflow: hidden;
  border-radius: calc(30 * 100cqi / 1500);
  background: #313131;
}

.home-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.home-banner__slide.is-on {
  opacity: 1;
  pointer-events: auto;
}

.home-banner__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-banner__slide > img[data-deferred-src]:not([data-deferred-image-state="ready"]):not([data-deferred-image-state="instant"]),
.home-dl__bg[data-deferred-src]:not([data-deferred-image-state="ready"]):not([data-deferred-image-state="instant"]) {
  opacity: 0;
  transition: none;
}

.home-banner__slide > img[data-deferred-src][data-deferred-image-state="ready"],
.home-dl__bg[data-deferred-src][data-deferred-image-state="ready"] {
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .home-banner__slide > img[data-deferred-src][data-deferred-image-state="ready"],
  .home-dl__bg[data-deferred-src][data-deferred-image-state="ready"] {
    transition: none;
  }
}

.home-banner__sound {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.75);
  cursor: pointer;
}

.home-banner__sound-icon {
  width: 28px;
  height: 28px;
}

.home-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.home-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 107, 107, 0.35);
  pointer-events: auto;
  cursor: pointer;
}

.home-banner__dot.is-on {
  background: #ccc;
}

.home-html__col > .n1-show {
  margin-bottom: calc(12px * var(--hf));
}

.home-dl {
  margin-bottom: calc(110px * var(--hf));
}

.home-dl__kicker {
  margin: 0 0 calc(28px * var(--hf));
  font-size: calc(26px * var(--hf));
  font-weight: 600;
  line-height: 1.25;
}

.home-dl__card {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 358;
  overflow: hidden;
  border-radius: calc(30px * var(--hf));
  /* 切图四角透明；铺 #292929 会从圆角透出。 */
  background: transparent;
  container-type: inline-size;
  --du: 100cqi / 1500;
}

.home-dl__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-dl__copy {
  position: absolute;
  inset: 0;
}

.home-dl__title {
  position: absolute;
  left: calc(760 * var(--du));
  top: calc(76 * var(--du));
  margin: 0;
  font-size: calc(30 * var(--du));
  font-weight: 600;
  line-height: 1;
}

.home-dl__sub {
  position: absolute;
  left: calc(760 * var(--du));
  top: calc(132 * var(--du));
  width: calc(670 * var(--du));
  margin: 0;
  font-size: calc(24 * var(--du));
  font-weight: 400;
  line-height: 1.25;
}

.home-dl__stores {
  position: absolute;
  left: calc(760 * var(--du));
  top: calc(216 * var(--du));
  display: flex;
  gap: calc(30 * var(--du));
}

.home-dl__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--du));
  height: calc(66 * var(--du));
  padding: 0 calc(16 * var(--du));
  border: 0;
  border-radius: 50px;
  background: #fff;
  color: #121212;
  font-size: calc(26 * var(--du));
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.home-dl__store--apple {
  width: calc(238 * var(--du));
}

.home-dl__store--google {
  width: calc(264 * var(--du));
}

.home-dl__store-icon {
  width: calc(36 * var(--du));
  height: calc(36 * var(--du));
}

@media (max-width: 767px) {
  .home-html__frame {
    max-width: none;
    padding: 16px;
    --hf: 1;
  }

  .home-html__col {
    max-width: none;
  }

  .home-html__banner {
    padding-bottom: 32px;
  }

  .home-banner__sound {
    right: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    background: transparent;
  }

  .home-banner__sound-icon {
    width: 30px;
    height: 30px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.75);
  }

  .home-html__col > .n1-show {
    margin-bottom: 32px;
  }

  .home-dl {
    margin-bottom: 48px;
  }

  .home-dl__kicker {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .home-dl__card {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    container-type: normal;
  }

  .home-dl__bg {
    height: auto;
    object-fit: contain;
  }

  .home-dl__copy {
    position: static;
    margin-top: 16px;
  }

  .home-dl__title,
  .home-dl__sub,
  .home-dl__stores {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
  }

  .home-dl__title {
    font-size: 18px;
    line-height: 1.25;
  }

  .home-dl__sub {
    margin-top: 12px;
    font-size: 14px;
    line-height: 18px;
  }

  .home-dl__stores {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .home-dl__store,
  .home-dl__store--apple,
  .home-dl__store--google {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    height: 44px;
    gap: 10px;
    font-size: 16px;
    overflow: visible;
  }

  .home-dl__store-icon {
    width: 22px;
    height: 22px;
  }
}

/* N1 品牌长页。桌面 n1d / H5 n1h 共用 --n1u；<768 切 H5 树。 */
.n1-show {
  width: 100%;
  min-width: 0;
  color: #fff;
}

.n1-show--desk,
.n1-show--h5 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}

.n1-show--desk {
  --n1u: calc(100cqi / 1920);
}

.n1-show--h5 {
  display: none;
  --n1u: calc(100cqi / 1125);
}

.n1-show__canvas--desk,
.n1-show__canvas--h5 {
  width: 100%;
}

.n1-show__accent {
  color: #6937f0;
}

.n1d-kicker {
  margin: 0;
  color: #6937f0;
  font-size: calc(48 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-display {
  margin: 0;
  font-size: calc(80 * var(--n1u));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-display--lh86 {
  line-height: 1.075;
}

.n1d-ink {
  color: #000;
}

.n1d-center {
  text-align: center;
}

.n1d-lede {
  width: 30.26%;
  max-width: 100%;
  margin: calc(15 * var(--n1u)) 0 0;
  color: #ccc;
  font-size: calc(36 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-body36 {
  margin: 0;
  font-size: calc(36 * var(--n1u));
  font-weight: 400;
  line-height: 1.2778;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-body32 {
  margin: 0;
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-muted {
  color: #6b6b6b;
  font-size: calc(36 * var(--n1u));
  font-weight: 400;
  line-height: 1.2778;
  letter-spacing: 0;
  white-space: pre-line;
}

.n1d-w877 {
  /* 877 是 1920 稿面列宽，按 --n1u 算，不要吃父级左右 padding 后再取百分比。 */
  width: calc(877 * var(--n1u));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.n1d-w1820 {
  width: 94.79%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.n1d-hero {
  position: relative;
  min-height: calc(955 * var(--n1u));
  overflow: hidden;
}

.n1d-hero__img {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(2278 * var(--n1u));
  height: calc(955 * var(--n1u));
  object-fit: cover;
}

.n1d-hero--video .n1-show__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.n1d-hero__copy {
  position: relative;
  z-index: 1;
  width: 44.27%;
  max-width: 100%;
  padding: calc(365 * var(--n1u)) calc(50 * var(--n1u)) calc(300 * var(--n1u));
}

.n1d-hero__copy .n1d-kicker {
  margin-bottom: 25px;
}

.n1d-hero__copy--personas {
  padding: calc(347 * var(--n1u)) calc(50 * var(--n1u)) calc(320 * var(--n1u));
}

.n1d-connect {
  background: #eee;
  color: #000;
  padding: calc(48 * var(--n1u)) calc(50 * var(--n1u)) calc(50 * var(--n1u));
}

.n1d-connect .n1d-kicker {
  margin-bottom: 12px;
}

.n1d-connect .n1d-display {
  margin-bottom: 12px;
}

.n1d-connect .n1d-muted {
  /* 有空间时第二句（…her story）整行留下，不按 877 提前拆最后一个词。 */
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.n1d-connect__row {
  display: flex;
  align-items: center;
  gap: calc(120 * var(--n1u));
}

.n1d-connect__list {
  flex: 1;
  min-width: 0;
}

.n1d-connect__item {
  border-bottom: 1px solid #6b6b6b;
}

.n1d-connect__hit {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.n1d-connect__title {
  flex: 1;
  margin: 0;
  font-size: calc(42 * var(--n1u));
  font-weight: 700;
  color: #000;
  line-height: 1.25;
}

.n1d-connect__arrow {
  flex-shrink: 0;
  width: 26px;
  height: 11.25px;
  transform: rotate(-90deg);
}

.n1d-connect__item.is-open .n1d-connect__arrow {
  transform: none;
}

.n1d-connect__body {
  margin: 0 0 calc(24 * var(--n1u));
  padding-top: calc(24 * var(--n1u));
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  color: #000;
  white-space: pre-line;
}

.n1d-connect__media {
  flex: 0 1 41.67%;
  width: 41.67%;
  min-width: 0;
  aspect-ratio: 800 / 600;
  height: auto;
}

.n1d-control {
  position: relative;
  padding: calc(96 * var(--n1u)) calc(50 * var(--n1u)) calc(120 * var(--n1u));
}

.n1d-control__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: calc(652 * var(--n1u));
  object-fit: cover;
  pointer-events: none;
}

.n1d-control > .n1d-body36 {
  margin-top: 24px;
}

.n1d-control__title {
  margin-top: 90px;
}

.n1d-control__row {
  display: flex;
  align-items: center;
  gap: calc(100 * var(--n1u));
  margin-top: calc(87 * var(--n1u));
}

.n1d-control__title + .n1d-control__row {
  margin-top: 105px;
}

.n1d-control__media {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 51%;
  aspect-ratio: 978 / 551;
  height: auto;
}

.n1d-control__copy {
  flex: 1 1 40%;
  min-width: 0;
  padding: 0 calc(25 * var(--n1u));
}

.n1d-h60 {
  margin: 0 0 calc(24 * var(--n1u));
  font-size: calc(60 * var(--n1u));
  font-weight: 700;
  line-height: 1.25;
}

.n1d-privacy {
  background: #eee;
  color: #000;
  padding: calc(91 * var(--n1u)) calc(50 * var(--n1u)) calc(120 * var(--n1u));
}

.n1d-privacy > .n1d-display:first-child {
  margin-bottom: 54px;
}

.n1d-privacy .n1-show__quotes {
  margin: 0 0 41px;
}

.n1d-privacy .n1-show__quotes + .n1d-display {
  margin-bottom: 17px;
}

.n1d-privacy__row {
  display: flex;
  align-items: stretch;
  gap: calc(56 * var(--n1u));
  margin-top: calc(64 * var(--n1u));
}

.n1d-privacy__media {
  flex: 1 1 55%;
  min-width: 0;
  aspect-ratio: 1070 / 600;
  height: auto;
  overflow: hidden;
  border-radius: calc(24 * var(--n1u));
}

.n1d-privacy__feats {
  flex: 1 1 38%;
  min-width: 0;
}

.n1d-feat {
  display: flex;
  align-items: stretch;
  margin-top: calc(75 * var(--n1u));
}

.n1d-feat:first-child {
  margin-top: 0;
}

.n1d-feat__slot {
  position: relative;
  flex-shrink: 0;
  width: calc(100 * var(--n1u));
  height: calc(100 * var(--n1u));
}

.n1d-feat__icon {
  position: absolute;
  object-fit: contain;
}

.n1d-feat__rule {
  flex-shrink: 0;
  align-self: stretch;
  width: calc(3 * var(--n1u));
  margin-left: calc(13 * var(--n1u));
  background: #272636;
}

.n1d-feat__copy {
  margin-left: var(--copy-gap, calc(25 * var(--n1u)));
}

.n1d-feat__title {
  margin: 0 0 calc(14 * var(--n1u));
  color: #252434;
  font-size: calc(42 * var(--n1u));
  font-weight: 700;
  line-height: 1.25;
}

.n1d-feat__body {
  margin: 0;
  color: #252434;
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
}

.n1d-hw {
  padding: calc(120 * var(--n1u)) 0;
}

.n1d-hw > .n1d-display:first-child {
  margin-bottom: 33px;
}

.n1d-hw > .n1d-body36 {
  margin-bottom: 24px;
}

.n1d-hw__video {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1078;
  height: auto;
}

.n1d-hw__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000);
  pointer-events: none;
}

.n1d-hw__labels {
  display: flex;
  padding: 0 calc(50 * var(--n1u));
}

.n1d-hw__label {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 calc(24 * var(--n1u));
  text-align: center;
}

.n1d-hw__kicker {
  margin: 0 0 calc(24 * var(--n1u));
  font-size: calc(42 * var(--n1u));
  font-weight: 700;
  letter-spacing: 0.84px;
  text-align: center;
}

.n1d-hw__pair {
  display: flex;
  align-items: stretch;
  gap: calc(20 * var(--n1u));
  padding: calc(120 * var(--n1u)) calc(50 * var(--n1u)) calc(125 * var(--n1u));
}

.n1d-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(24 * var(--n1u));
}

.n1d-card__bg {
  display: block;
  width: 100%;
  height: auto;
}

.n1d-card__copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(32 * var(--n1u));
}

.n1d-h54 {
  margin: 0 0 calc(12 * var(--n1u));
  font-size: calc(54 * var(--n1u));
  font-weight: 700;
  line-height: 1.259;
  text-align: center;
}

.n1d-hw__pair + .n1d-display {
  margin-bottom: 13px;
}

.n1d-hw__freedom {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(50 * var(--n1u));
  padding: calc(104 * var(--n1u)) calc(50 * var(--n1u)) 0;
}

/* 三张 570 卡作为一组居中；不 flex 拉满，避免宽屏左贴右空。 */
.n1d-hw__freedom .n1-show__clip {
  flex: 0 0 calc(570 * var(--n1u));
  width: calc(570 * var(--n1u));
  max-width: none;
  min-width: 0;
  margin: 0;
}

.n1d-hw__freedom .n1-show__clip .n1-show__fill {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(24 * var(--n1u));
}

.n1d-hw__freedom .n1-show__clip figcaption {
  margin-top: calc(48 * var(--n1u));
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
}

.n1h-kicker {
  letter-spacing: -0.65655px;
}

.n1h-hero {
  position: relative;
  padding-top: calc(120 * var(--n1u));
  /* W-F020：留白属于首屏高度，产品图贴首屏底边，不能让末项 margin 折叠到图区外。 */
  padding-bottom: calc(675 * var(--n1u));
}

.n1h-hero__img {
  position: absolute;
  left: -55.64%;
  bottom: 0;
  width: 158.31%;
  height: auto;
  object-fit: cover;
}

.n1h-hero__copy {
  position: relative;
  z-index: 1;
  width: calc(1077 * var(--n1u));
  margin: 0 auto;
}

.n1h-hero__copy .n1d-kicker {
  margin-bottom: calc(9 * var(--n1u));
}

.n1h-block {
  padding-top: calc(120 * var(--n1u));
}

/* 容器 28：标题按 511 稿面列宽；说明沿原文换行并按实际字体自然宽度居中。 */
.n1h-block > .n1h-personas-title {
  width: calc(511 * var(--n1u));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}

.n1h-personas-body {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
  white-space: pre-line;
}

.n1h-h54 {
  margin: 0 0 calc(24 * var(--n1u));
  font-size: calc(54 * var(--n1u));
  font-weight: 700;
  line-height: 1.259;
}

.n1h-w1077 {
  width: 95.73%;
  margin-left: auto;
  margin-right: auto;
}

.n1h-w1016 {
  width: calc(1016 * var(--n1u));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.n1h-w950 {
  width: 84.44%;
  margin-left: auto;
  margin-right: auto;
}

.n1h-w896 {
  width: 79.64%;
  margin-left: auto;
  margin-right: auto;
}

.n1h-body32 {
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
}

.n1h-personas-media {
  width: 100%;
  aspect-ratio: 1125 / 1080;
  height: auto;
  overflow: hidden;
}

.n1h-connect {
  background: #eee;
  color: #000;
  padding: calc(120 * var(--n1u)) calc(24 * var(--n1u));
}

.n1h-connect .n1d-kicker,
.n1h-connect .n1d-display {
  margin-bottom: 12px;
}

.n1h-connect .n1d-muted {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.n1h-connect__media {
  width: 95.73%;
  margin: 0 auto calc(24 * var(--n1u));
  aspect-ratio: 1077 / 843;
  height: auto;
}

.n1h-connect__pager {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.n1h-connect__pager::-webkit-scrollbar {
  display: none;
}

.n1h-connect__page {
  flex: 0 0 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.n1h-dots {
  display: flex;
  justify-content: center;
  gap: calc(24 * var(--n1u));
  margin-top: calc(36 * var(--n1u));
}

.n1h-dot {
  width: calc(24 * var(--n1u));
  height: calc(24 * var(--n1u));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
}

.n1h-dot.is-on {
  background: #06050b;
}

.n1h-radius {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14.0625px;
}

.n1h-control {
  position: relative;
  padding-top: 120px;
}

.n1h-control__glow {
  position: absolute;
  left: calc(-397 * var(--n1u));
  top: 0;
  width: calc(1920 * var(--n1u));
  height: calc(652 * var(--n1u));
  object-fit: cover;
  pointer-events: none;
}

.n1h-control .n1d-display {
  margin-bottom: 12px;
}

.n1h-control .n1d-body36 {
  margin-bottom: 120px;
}

.n1h-scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 49px 0 0;
}

.n1h-scroller__card {
  flex: 0 0 75.38%;
  box-sizing: border-box;
  padding: 0 calc(24 * var(--n1u));
  scroll-snap-align: center;
}

.n1h-scroller__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 450;
  object-fit: contain;
  border-radius: calc(14.0625 * var(--n1u));
}

/* 三份说明叠在同一个 Grid 单元，隐藏项仍参与尺寸计算。 */
.n1h-controls__copy {
  display: grid;
}

.n1h-controls__copy-item {
  grid-area: 1 / 1;
  visibility: hidden;
}

.n1h-controls__copy-item.is-on {
  visibility: visible;
}

.n1h-h60 {
  margin: calc(24 * var(--n1u)) 0 calc(12 * var(--n1u));
  font-size: calc(60 * var(--n1u));
  font-weight: 700;
}

.n1h-privacy {
  background: #eee;
  color: #000;
  padding: calc(120 * var(--n1u)) calc(24 * var(--n1u));
}

.n1h-privacy > .n1d-display:first-child {
  margin-bottom: calc(100 * var(--n1u));
}

.n1h-privacy .n1-show__quotes {
  margin: 0 0 calc(170 * var(--n1u));
}

.n1h-privacy__media {
  width: 95.11%;
  margin: calc(48 * var(--n1u)) auto;
  aspect-ratio: 1070 / 600;
  height: auto;
  overflow: hidden;
  border-radius: calc(24 * var(--n1u));
}

.n1h-privacy__feats {
  width: calc(694 * var(--n1u));
  max-width: 100%;
  margin: 0 auto;
}

.n1h-privacy__feats .n1d-feat {
  margin-top: calc(24 * var(--n1u));
}

.n1h-grip {
  padding-top: calc(120 * var(--n1u));
}

.n1h-grip > .n1d-display {
  margin-bottom: 12px;
}

.n1h-grip__video {
  position: relative;
  width: 100%;
  aspect-ratio: 1125 / 630;
  height: auto;
  margin: calc(48 * var(--n1u)) 0;
}

.n1h-grip__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000);
}

.n1h-grip__row {
  display: flex;
  align-items: flex-start;
  padding: 0 calc(84 * var(--n1u)) calc(48 * var(--n1u));
}

.n1h-grip__kicker {
  flex: 0 0 calc(220 * var(--n1u));
  margin: 0 calc(48 * var(--n1u)) 0 0;
  font-size: calc(42 * var(--n1u));
  font-weight: 700;
  line-height: 1.262;
  letter-spacing: 0.84px;
  text-align: right;
}

.n1h-features {
  padding: calc(72 * var(--n1u)) calc(28 * var(--n1u)) 0;
}

.n1h-feature {
  margin-bottom: calc(120 * var(--n1u));
}

.n1h-feature__img {
  display: block;
  width: 95.11%;
  height: auto;
  margin: 0 auto calc(48 * var(--n1u));
  object-fit: contain;
  border-radius: calc(24 * var(--n1u));
}

.n1h-freedom {
  padding-top: calc(120 * var(--n1u));
}

.n1h-freedom > .n1d-display {
  margin-bottom: 12px;
}

.n1h-freedom__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: calc(50 * var(--n1u));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: calc(120 * var(--n1u)) calc(277.5 * var(--n1u)) calc(120 * var(--n1u));
}

/* 两组 H5 图片保留触控横滑，只隐藏浏览器绘制的底部滚动条。 */
.n1h-scroller,
.n1h-freedom__row {
  scrollbar-width: none;
}

.n1h-scroller::-webkit-scrollbar,
.n1h-freedom__row::-webkit-scrollbar {
  display: none;
}

.n1h-freedom__row .n1-show__clip {
  flex: 0 0 calc(570 * var(--n1u));
  width: calc(570 * var(--n1u));
  max-width: none;
  scroll-snap-align: center;
}

.n1h-freedom__row .n1-show__clip .n1-show__fill {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(24 * var(--n1u));
}

.n1h-freedom__row .n1-show__clip figcaption {
  margin-top: calc(48 * var(--n1u));
  font-size: calc(32 * var(--n1u));
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
}

.n1-show__rounded {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.n1-show__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 955;
  overflow: hidden;
}

.n1-show__hero-img,
.n1-show__hero .n1-show__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n1-show__fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n1-show__overlay {
  position: absolute;
  left: 4%;
  bottom: 18%;
  z-index: 1;
  width: min(850px, 72%);
  white-space: pre-line;
}

.n1-show__overlay--personas {
  bottom: 16%;
}

.n1-show__eyebrow {
  margin: 0 0 16px;
  color: #6937f0;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.2;
}

.n1-show__display {
  margin: 0;
  font-size: clamp(32px, 5vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  white-space: pre-line;
}

.n1-show__display--ink {
  color: #000;
}

.n1-show__lede {
  max-width: 581px;
  margin: 15px 0 0;
  color: #ccc;
  font-size: clamp(18px, 2.2vw, 36px);
  line-height: 1.28;
  white-space: pre-line;
}

.n1-show__body {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 36px);
  line-height: 1.28;
  white-space: pre-line;
}

.n1-show__body--ink {
  color: #000;
}

.n1-show__muted {
  color: #6b6b6b;
  font-size: clamp(18px, 2.2vw, 36px);
  line-height: 1.28;
  white-space: pre-line;
}

.n1-show__center {
  text-align: center;
}

.n1-show__measure {
  max-width: 877px;
  margin-left: auto;
  margin-right: auto;
}

.n1-show__light {
  background: #eee;
  color: #000;
  padding: 48px 50px 50px;
}

.n1-show__split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}

.n1-show__accordion {
  flex: 1;
}

.n1-show__connect {
  padding: 16px 0;
  border-bottom: 1px solid #6b6b6b;
}

.n1-show__connect-title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  color: #000;
}

.n1-show__connect-body {
  margin: 24px 0 0;
  font-size: 32px;
  color: #000;
  white-space: pre-line;
}

.n1-show__chat-media {
  flex: 1 1 360px;
  max-width: 800px;
  aspect-ratio: 800 / 600;
  height: auto;
}

.n1-show__rounded {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

.n1-show__chat-media .n1-show__rounded,
.n1-show__control-media .n1-show__rounded {
  height: 100%;
}

.n1-show__control {
  position: relative;
  padding: 96px 50px 120px;
}

.n1-show__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 652px;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.n1-show__control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 100px;
  margin-top: 64px;
}

.n1-show__control-media {
  flex: 1 1 420px;
  max-width: 978px;
  aspect-ratio: 978 / 551;
  height: auto;
}

.n1-show__control-copy {
  flex: 1;
  padding: 0 25px;
}

.n1-show__subhead {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
}

.n1-show__privacy {
  padding: 91px 50px 120px;
}

.n1-show__quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(32 * var(--n1u));
  row-gap: calc(32 * var(--n1u));
  margin: calc(54 * var(--n1u)) 0 calc(41 * var(--n1u));
}

.n1-show__quote {
  position: relative;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 35.79354px;
}

.n1-show__quote-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.n1-show__quote-bg--h5 {
  display: none;
}

.n1-show__quote-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--n1u));
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  padding: calc(12 * var(--n1u)) calc(24 * var(--n1u));
}

.n1-show__quote--1 {
  background-image: linear-gradient(
    90deg,
    #7d5acb 0%,
    #7d5acb 1.333%,
    #7e5bcc 2.667%,
    #8a72d7 24.667%,
    #978ce4 50%,
    #a5a5f0 74.667%,
    #b1bcfc 97.333%,
    #b2befd 100%
  );
  background-size: 150% 100%;
  background-position: center;
}

.n1-show__quote-badge {
  flex-shrink: 0;
  width: calc(54 * var(--n1u));
  height: calc(55 * var(--n1u));
  border-radius: 50%;
  object-fit: cover;
}

.n1-show__quote-text {
  flex: 0 1 auto;
  margin: 0;
  color: #f7f7f7;
  font-size: calc(32 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.n1-show__quote-em {
  font-weight: 600;
}

.n1-show__privacy-media {
  flex: 1 1 480px;
  max-width: 1070px;
  aspect-ratio: 1070 / 600;
  height: auto;
  overflow: hidden;
  border-radius: 24px;
}

.n1-show__privacy-copy {
  flex: 1;
}

.n1-show__pill {
  margin-bottom: 24px;
}

.n1-show__pill strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0.84px;
}

.n1-show__pill span {
  font-size: clamp(16px, 2vw, 32px);
  white-space: pre-line;
}

.n1-show__hardware {
  padding: 120px 0;
}

.n1-show__grip-media {
  width: 100%;
  aspect-ratio: 1920 / 1078;
  height: auto;
  margin: 24px 0 0;
}

.n1-show__triple,
.n1-show__freedom {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 24px 50px 0;
}

.n1-show__triple .n1-show__pill,
.n1-show__freedom .n1-show__clip {
  flex: 1;
  text-align: center;
}

.n1-show__pair {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 120px 50px 125px;
}

.n1-show__feature {
  flex: 1;
  min-width: 0;
}

.n1-show__feature .n1-show__rounded {
  aspect-ratio: 16 / 10;
  height: auto;
}

.n1-show__clip {
  margin: 0;
}

.n1-show__clip .n1-show__fill {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: calc(24 * var(--n1u));
}

.n1-show__clip figcaption {
  margin-top: calc(48 * var(--n1u));
  font-size: calc(32 * var(--n1u));
  text-align: center;
  white-space: pre-line;
}

@media (max-width: 767px) {
  .n1-show--desk {
    display: none;
  }

  .n1-show--h5 {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .n1-show__quote-bg--desk {
    display: none;
  }

  .n1-show__quote-bg--h5 {
    display: block;
  }



  .n1-show__quotes {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .n1-show__quotes {
    grid-template-columns: 1fr;
    row-gap: calc(48 * var(--n1u));
  }

  .n1-show__quote--0,
  .n1-show__quote--2 {
    justify-self: start;
    max-width: 100%;
  }

  .n1-show__quote--1,
  .n1-show__quote--3 {
    justify-self: end;
    max-width: 100%;
  }

  .n1-show__quote-text {
    white-space: nowrap;
    line-height: 1.25;
  }
}

/* N1 新稿长页（W-F005 首页复用、W-F008 详情、W-F020 响应式）。
   1920 / 375 只是验收视口，不是页面宽。
   视口 ≥768 走桌面树，--n1u 按容器相对 1920 连续缩放，中间不设下限；
   小于 768 整页换成手机树。下限会让字停住、图继续变窄，字就压到图上。
   区块宽度用 max 和换行，不把稿面框宽写成死宽。旧 n1.css 仍服务 Flutter 对照。
   硬件版删图后的布局只在 n1d-page--hardware 内生效，原版不受影响。
   图片未就绪时隐藏内容但保留原框；真实失败的正文图框复用 Retry 文字链接。 */

/* 保留布局矩形供可见性观察器启用图片；等待和失败立即隐藏，避免轮播淡出期间露出破图。
   缓存直出(instant)无过渡直接显现；网络解码就绪(ready)对非堆叠轮播图执行 200ms 柔顺淡入。 */
.n1d-page img[data-deferred-src]:not([data-deferred-image-state="ready"]):not([data-deferred-image-state="instant"]) {
  opacity: 0;
  transition: none;
}

.n1d-page img[data-deferred-src]:not(.n1v__fill)[data-deferred-image-state="ready"] {
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .n1d-page img[data-deferred-src]:not(.n1v__fill)[data-deferred-image-state="ready"] {
    transition: none;
  }
}

/* 原图框本身已定位；复用长页白字与商品图库文字链接样式，保持深色图框中的可读性。 */
.n1d-page .n1d-image-retry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #fff;
}

/* 纯图轮播保留多张 DOM；非当前项失败时不能把 Retry 叠到当前图片上。 */
.n1v-frame--stack > img[data-deferred-active="false"] + .n1d-image-retry {
  display: none;
}

.n1d-page {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: #000;
  font-family: "Google Sans Flex", sans-serif;
  letter-spacing: 0;
  /* 弹层在两棵树外面，跟视口走。≥768 按 1920 比例缩；<768 由媒体查询改成手机比例。 */
  --n1u: min(1px, 100vw / 1920);
}

/* 浏览器把 button 的字体重置成 Arial。详情里的字跟页面走 Google Sans Flex。 */
.n1d-page button {
  font-family: inherit;
}

.n1d-page .n1-show--desk,
.n1d-page .n1-show--h5 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}

.n1d-page .n1-show--desk {
  /* 1920 时为 1px。768 及以上保持桌面树，字号和间距跟容器一起缩到切换点。 */
  --n1u: min(1px, 100cqi / 1920);
}

.n1d-page .n1-show--h5 {
  display: none;
  /* 375 时为 1px。更窄略缩，仍小于 768 的宽屏略放大，不锁死 375。 */
  --n1u: clamp(0.85px, 100cqi / 375, 1.15px);
  background: #121212;
}

.n1v-wrap {
  width: min(1440px, calc(100% - clamp(16px, 4vw, 48px)));
  margin-inline: auto;
}

/* 1920 稿的内容栏是 1440，左右各 240。窄于画板时按同一比例留白，
   不再把栏拉满贴边。宽于 1920 栏不再变宽。手机不走这条。 */
.n1-show--desk .n1v-wrap {
  width: min(1440px, calc(100% * 1440 / 1920));
}

/* 手机正文框宽 335，左右各留 20。 */
.n1-show--h5 .n1v-wrap {
  width: calc(100% - calc(40 * var(--n1u)));
}

.n1d-block,
.n1d-companion,
.n1d-pain,
.n1d-quiet,
.n1d-faq {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.n1v-center {
  text-align: center;
}

/* 详情稿里这层紫渐变都被后铺的纯色盖住。长页标题不要再加这个类。 */
.n1v-grad {
  background-image: linear-gradient(180deg, #d5c5ff 0%, #7948ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.n1v-ink {
  color: #121212;
}

.n1-show--desk .n1v-h1 {
  margin: 0;
  font-size: calc(60 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
  white-space: pre-line;
}

.n1-show--h5 .n1v-h1 {
  margin: 0;
  /* 手机段标题多数是 26/600，行盒 33。首屏和伴侣段另按 28。 */
  font-size: calc(26 * var(--n1u));
  font-weight: 600;
  line-height: calc(33 * var(--n1u));
  white-space: pre-line;
}

.n1-show--desk .n1v-h2 {
  margin: calc(48 * var(--n1u)) 0 0;
  font-size: calc(50 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--h5 .n1v-h2 {
  margin: calc(28 * var(--n1u)) 0 0;
  font-size: calc(22 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--desk .n1v-lede,
.n1-show--desk .n1v-body {
  margin: calc(16 * var(--n1u)) auto 0;
  max-width: min(1100px, 100%);
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--h5 .n1v-lede,
.n1-show--h5 .n1v-body {
  margin: calc(14 * var(--n1u)) auto 0;
  font-size: calc(16 * var(--n1u));
  font-weight: 400;
  line-height: calc(20 * var(--n1u));
}

.n1v-lede {
  color: #fff;
}

.n1v-body {
  font-weight: 400;
}

.n1d-block {
  padding: calc(72 * var(--n1u)) 0;
}

.n1d-block--paper {
  background: #eaeaea;
  color: #121212;
}

/* 隐私段底跟解锁视频画布灰一致，避免方图和左右栏露出接缝。
   成片边缘实测 #c7c7c7，不再用稿面占位 #d5d5d5 / #d1d1d1。 */
.n1d-unseen {
  background: #c7c7c7;
  color: #121212;
}

/* 旧 n1.css 的 .n1d-hero 会把这段撑高并裁切。新页按稿面 1920×1154。 */
.n1d-page .n1d-hero {
  position: relative;
  min-height: 0;
  overflow: visible;
  background: #000;
}

/* 手机海报用 margin-top 下移。不建 BFC 的话这段 margin 会塌到段外，标题跟着飞出段顶。 */
.n1-show--h5 .n1d-hero {
  display: flow-root;
}

.n1d-hero__stage {
  position: relative;
  aspect-ratio: 1920 / 1154;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #000;
}

/* 海报蒙版从段顶 85 起、高 464。标题在段顶 40，压住海报上沿的暗部，
   产品在图内约 27% 处，这样银帽会落在标题下面。舞台 overflow 必须可见，
   否则负向定位的标题会被裁掉。 */
.n1-show--h5 .n1d-hero__stage {
  aspect-ratio: 375 / 464;
  min-height: 0;
  margin-top: calc(85 * var(--n1u));
  overflow: visible;
}

.n1d-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 旧 n1.css 给 .n1d-hero__copy 加了 365u 上内边距，会把标题压到海报中部。 */
.n1d-page .n1d-hero__copy {
  position: relative;
  z-index: 1;
  width: min(1066px, calc(100% - clamp(16px, 4vw, 48px)));
  margin-top: calc(100 * var(--n1u));
  padding: 0;
}

/* 标题框在稿里是 1066，但这一行字形比框略宽，按 1066 裁会把 for 拆成单独一行。
   桌面按两行里较长的那行收缩，换行仍只在 for 之后。可见色是后铺的 #fff。 */
.n1-show--desk .n1d-hero__copy {
  width: max-content;
  max-width: calc(100% - clamp(16px, 4vw, 48px));
}

.n1d-page .n1d-hero .n1v-h1 {
  color: #fff;
  background-image: none;
  -webkit-text-fill-color: #fff;
}

.n1-show--desk .n1d-hero .n1v-h1 {
  width: max-content;
  max-width: 100%;
}

.n1-show--h5 .n1d-hero__copy {
  position: absolute;
  z-index: 2;
  top: calc(-45 * var(--n1u));
  left: calc(16 * var(--n1u));
  width: calc(343 * var(--n1u));
  max-width: calc(100% - calc(32 * var(--n1u)));
  margin-top: 0;
}

.n1-show--h5 .n1d-hero .n1v-h1 {
  font-size: calc(28 * var(--n1u));
  line-height: calc(35 * var(--n1u));
}

/* 四个图标在海报内、距底 54。底色是海报自己的浅色，不再铺一条灰渐变。
   桌面保持一行。折成两行会顶进标题；窄窗口靠 --n1u 把整行缩小。 */
.n1d-page .n1d-icons {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(54 * var(--n1u));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(9 * var(--n1u)) calc(64 * var(--n1u));
  margin: 0;
  padding: 0;
  background: none;
}

.n1-show--desk .n1d-icons {
  flex-wrap: nowrap;
}

/* 图标组从海报结束前 43 起，两行图标 44、字盒 40、图标到字 8、行距 30。
   段底再留 36，整段才是稿面 756。
   底从透明收到 #f2f1f6，前 43 是稿里 16% 的淡入。图标和字是 #3e3e3e，
   铺在黑底上会发灰，所以不盖黑。 */
.n1-show--h5 .n1d-icons {
  position: relative;
  bottom: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30 * var(--n1u)) calc(16 * var(--n1u));
  margin-top: calc(-43 * var(--n1u));
  padding-bottom: calc(36 * var(--n1u));
  background: linear-gradient(
    to bottom,
    rgba(242, 241, 246, 0) 0,
    #f2f1f6 calc(43 * var(--n1u))
  );
}

.n1d-icon {
  display: flex;
  flex: 1 1 8rem;
  flex-direction: column;
  align-items: center;
  gap: calc(9 * var(--n1u));
  width: auto;
  max-width: 11rem;
  min-width: 0;
}

.n1d-icon__img {
  width: clamp(32px, calc(44 * var(--n1u)), 44px);
  height: clamp(32px, calc(44 * var(--n1u)), 44px);
  object-fit: contain;
}

/* 8rem / 11rem 是 1920 下的原宽。桌面改乘 --n1u，32px 下限不再把图标钉住。 */
.n1-show--desk .n1d-icon {
  flex: 1 1 calc(128 * var(--n1u));
  max-width: calc(176 * var(--n1u));
}

.n1-show--desk .n1d-icon__img {
  width: calc(44 * var(--n1u));
  height: calc(44 * var(--n1u));
}

.n1d-icon__label {
  margin: 0;
  color: #3e3e3e;
  font-size: calc(18 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
}

.n1-show--h5 .n1d-icon {
  flex: none;
  gap: calc(8 * var(--n1u));
  width: 100%;
  max-width: none;
}

.n1-show--h5 .n1d-icon__label {
  font-size: calc(16 * var(--n1u));
  line-height: calc(20 * var(--n1u));
}

/* 稿面这一组高 1399：上内边距 100，标题到人设标题 559，底 33。底色 #000。
   主标题填充叠了紫渐变和纯白，可见的是白字。 */
.n1-show--desk .n1d-companion {
  position: relative;
  padding: calc(100 * var(--n1u)) 0 calc(33 * var(--n1u));
  background: #000;
}

/* 后画的纯白盖住紫渐变。去掉 background-clip，避免透明字把渐变露出来。
   两行仍靠 h1 的 pre-line：正文里只有一个换行，不能再包进排版空行。 */
.n1d-companion__title {
  color: #fff;
  background-image: none;
  -webkit-text-fill-color: #fff;
}

.n1-show--h5 .n1d-companion {
  position: relative;
  padding: calc(40 * var(--n1u)) 0 calc(40 * var(--n1u));
  overflow-x: clip;
  background: #000;
}

/* 人物组是 1920×1078，贴在段顶并居中。宽于 1920 时不再 cover 放大，
   否则人像下移，人设标题会压到全息玻璃和肩膀。切图左右是透明边，底色透出 #000。 */
.n1-show--desk .n1d-companion__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, calc(1920 * var(--n1u)));
  height: auto;
  aspect-ratio: 1920 / 1078;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center top;
}

/* 稿面两层渐变色都是 #000。上 430：上半实色，向下变透明。
   下 264 贴着图底：上沿透明，到一半变实，托住人设标题。字在这两层上面。 */
.n1d-companion__fade {
  display: none;
}

.n1-show--desk .n1d-companion__fade {
  display: block;
  position: absolute;
  left: 50%;
  z-index: 1;
  width: min(100%, calc(1920 * var(--n1u)));
  transform: translateX(-50%);
  pointer-events: none;
}

.n1-show--desk .n1d-companion__fade--top {
  top: 0;
  height: calc(430 * var(--n1u));
  background: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0) 100%);
}

.n1-show--desk .n1d-companion__fade--bottom {
  top: calc(814 * var(--n1u));
  height: calc(264 * var(--n1u));
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    #000 50%,
    #000 100%
  );
}

.n1d-pain__bg,
.n1d-quiet__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 人像高 427，从段顶 137 起，上沿压住说明。负边距把黑边收到字后面。 */
.n1-show--h5 .n1d-companion__bg {
  position: relative;
  display: block;
  width: 100%;
  height: calc(427 * var(--n1u));
  margin-top: calc(-62 * var(--n1u));
  object-fit: cover;
  object-position: center center;
}

.n1-show--desk .n1d-companion .n1v-lede {
  margin-top: calc(20 * var(--n1u));
}

/* 人设标题框高 63，不是 50×1.25。559 是说明底到这行的间距。 */
.n1-show--desk .n1d-companion .n1v-h2 {
  margin-top: calc(559 * var(--n1u));
  color: #fff;
  font-size: calc(50 * var(--n1u));
  line-height: calc(63 * var(--n1u));
}

/* 稿面这句宽 1187、一行。本机字形大约 1190，卡在 1187 会把 you. 挤到下一行，压到肩膀。 */
.n1-show--desk .n1d-companion .n1v-h2 + .n1v-lede {
  max-width: 100%;
  margin-top: calc(18 * var(--n1u));
}

.n1d-companion__copy,
.n1d-pain .n1v-wrap,
.n1d-quiet .n1v-wrap {
  position: relative;
  z-index: 1;
}

.n1d-companion__copy {
  z-index: 2;
}

.n1d-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  justify-content: center;
  gap: calc(50 * var(--n1u));
  margin-top: calc(44 * var(--n1u));
}

/* 三列按稿面 270 跟 --n1u 一起缩。列先窄、说明框不缩时，字会溢出卡片。 */
.n1-show--desk .n1d-personas {
  grid-template-columns: repeat(3, calc(270 * var(--n1u)));
}

.n1-show--h5 .n1d-companion .n1v-h1 {
  font-size: calc(28 * var(--n1u));
  line-height: calc(35 * var(--n1u));
}

/* 人设标题压在人像下沿。卡片 135×171，间距 12，整行比屏宽 54。
   稿上的「左右划」是手势能滑，不是要画出来的字。 */
.n1-show--h5 .n1d-companion__personas {
  position: relative;
  z-index: 1;
  margin-top: calc(-72 * var(--n1u));
}

.n1-show--h5 .n1d-companion .n1v-h2 {
  margin-top: 0;
  color: #fff;
  font-size: calc(22 * var(--n1u));
  line-height: calc(28 * var(--n1u));
}

.n1-show--h5 .n1d-companion__personas .n1v-lede {
  margin-top: calc(12 * var(--n1u));
  font-size: calc(14 * var(--n1u));
  line-height: calc(18 * var(--n1u));
}

/* 桌面这条不产生盒子，三列网格仍由 .n1d-personas 自己排。 */
.n1d-personas-scroll {
  display: contents;
}

/* 三张 135 加两个 12 的缝是 429。滑轨拉满栏宽。
   窄于卡组时初始停在正中，左右各裁一截。--n1u 到 1.15 后卡组不再变宽，
   栏更宽时用左右 auto 把整组放在栏中间，避免贴左、右边空一截。 */
.n1-show--h5 .n1d-personas-scroll {
  display: flex;
  width: 100cqi;
  margin-top: calc(26 * var(--n1u));
  margin-inline: calc((100% - 100cqi) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.n1-show--h5 .n1d-personas-scroll::-webkit-scrollbar {
  display: none;
}

.n1-show--h5 .n1d-personas {
  display: flex;
  flex: none;
  grid-template-columns: none;
  gap: calc(12 * var(--n1u));
  width: calc((135 * 3 + 12 * 2) * var(--n1u));
  /* 溢出时 auto 边距为 0，仍能滑到两端。放得下时两边均分，整组居中。 */
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.n1-show--h5 .n1d-personas img {
  -webkit-user-drag: none;
  user-select: none;
}

.n1d-persona {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: calc(10 * var(--n1u));
  overflow: hidden;
  background: #1a1a1a;
}

.n1-show--h5 .n1d-persona {
  flex: 0 0 calc(135 * var(--n1u));
  height: calc(171 * var(--n1u));
  border-radius: calc(10 * var(--n1u));
}

.n1-show--h5 .n1d-persona img {
  height: 100%;
  aspect-ratio: auto;
}

.n1d-persona img {
  display: block;
  width: 100%;
  aspect-ratio: 254 / 326;
  object-fit: cover;
}

.n1d-persona figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: calc(28 * var(--n1u)) calc(12 * var(--n1u)) calc(16 * var(--n1u));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
  font-size: calc(20 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

/* 卡框 270×342，fills 为空。描边在 SVG 里，这里不铺底、不画边。
   底色如果留着，描边和照片之间的空档会被填上颜色。
   图在外缘内缩 8，圆角 6，只裁这一次。底部渐变已在切图里。
   说明框 212×50，距图左 21、距蒙层顶 22，20/500，行高 25。 */
.n1-show--desk .n1d-persona {
  box-sizing: border-box;
  aspect-ratio: 270 / 342;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* 手机不画这条描边，图仍铺满卡片。桌面描边叠在照片上面，不接收点击。 */
.n1d-persona__ring {
  display: none;
}

.n1-show--desk .n1d-persona__ring {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* 桌面蒙层 254×326、圆角 6。手机这条不产生盒子，图仍铺满卡片。 */
.n1d-persona__photo {
  display: contents;
}

.n1-show--desk .n1d-persona__photo {
  display: block;
  position: absolute;
  /* 内缩 8、圆角 6 乘 --n1u，跟卡片一起缩到 768。缝可以是小数，说明才留在卡内。 */
  top: calc(8 * var(--n1u));
  left: calc(8 * var(--n1u));
  width: calc(100% - calc(16 * var(--n1u)));
  height: calc(100% - calc(16 * var(--n1u)));
  border-radius: calc(6 * var(--n1u));
  overflow: hidden;
  background: transparent;
}

.n1-show--desk .n1d-persona img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.n1-show--desk .n1d-persona figcaption {
  top: auto;
  right: auto;
  /* 说明框 212×50，底在卡底之上 24、左 29。跟卡片乘同一 --n1u，两行才不会跑出卡外。 */
  bottom: calc(24 * var(--n1u));
  left: calc(29 * var(--n1u));
  width: calc(212 * var(--n1u));
  height: calc(50 * var(--n1u));
  padding: 0;
  background: none;
  font-size: calc(20 * var(--n1u));
  font-weight: 500;
  line-height: calc(25 * var(--n1u));
}

.n1-show--h5 .n1d-persona figcaption {
  font-size: calc(14 * var(--n1u));
  font-weight: 500;
  line-height: calc(19 * var(--n1u));
  padding: calc(10 * var(--n1u)) calc(6 * var(--n1u)) calc(8 * var(--n1u));
}

/* 旧 n1.css 把 .n1d-connect 写成 #eee 黑字。这一段底色是全页 #000，字是白色。
   标题距上一段 80，说明距标题 20，手机图再隔 2。
   标题填充先铺 #d5c5ff→#7948ff，后铺 #fff。可见色是白，不能留 n1v-grad。 */
.n1d-page .n1d-connect {
  background: #000;
  color: #fff;
  padding: calc(80 * var(--n1u)) 0 calc(72 * var(--n1u));
}

.n1d-page .n1d-connect .n1v-h1 {
  color: #fff;
  background-image: none;
  -webkit-text-fill-color: #fff;
}

/* 标题框 905×75，60/600，一行居中。行高 75 才是这一行的框高。 */
.n1-show--desk .n1d-connect .n1v-h1 {
  font-size: calc(60 * var(--n1u));
  font-weight: 600;
  line-height: calc(75 * var(--n1u));
}

/* 说明框 734×70，28/500，行高 35，居中。换行在 remembers, 之后，不按栏宽拆到 her story。 */
.n1-show--desk .n1d-connect .n1v-lede {
  max-width: min(calc(734 * var(--n1u)), 100%);
  margin-top: calc(20 * var(--n1u));
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: calc(35 * var(--n1u));
  color: #fff;
}

/* 握持说明框 1372×70。通用 1100 会拆成三行。 */
.n1-show--desk .n1d-grip .n1v-lede {
  max-width: min(calc(1372 * var(--n1u)), 100%);
  margin-top: calc(20 * var(--n1u));
}

/* 矩阵说明在 sync. 后换行，框 1240×70。 */
.n1-show--desk .n1d-matrix .n1v-lede {
  max-width: min(calc(1240 * var(--n1u)), 100%);
  margin-top: calc(20 * var(--n1u));
}

/* 自由段桌面底 #000。标题和说明可见色都是白，说明框 1192×70。
   H5 标题可见色是 #121212，说明是 #4d4d4d。 */
.n1-show--desk .n1d-freedom {
  background: #000;
  color: #fff;
}

.n1-show--desk .n1d-freedom .n1v-h1,
.n1d-page .n1d-quiet .n1v-h1 {
  color: #fff;
  background-image: none;
  -webkit-text-fill-color: #fff;
}

.n1-show--desk .n1d-freedom .n1v-lede {
  max-width: min(calc(1192 * var(--n1u)), 100%);
  margin-top: calc(20 * var(--n1u));
  color: #fff;
}

.n1-show--h5 .n1d-freedom .n1v-h1 {
  color: #121212;
  background-image: none;
  -webkit-text-fill-color: #121212;
}

.n1-show--h5 .n1d-freedom .n1v-body {
  color: #4d4d4d;
}

/* 静音说明是一行，框 1156×35。通用 1100 会把句号挤到下一行。 */
.n1-show--desk .n1d-quiet .n1v-lede {
  max-width: min(calc(1156 * var(--n1u)), 100%);
  margin-top: calc(20 * var(--n1u));
  line-height: calc(35 * var(--n1u));
}

/* 手机图和两侧蒙层的定位参照。蒙层只盖住这一条，不盖下面的切换条。 */
.n1d-phone-band {
  position: relative;
}

/* 导出 JSON 没有渐变手柄。左侧「阴影」未旋转，不透明端在外缘；
   右侧同名层 rotation -180，不透明端翻到右外缘。
   顶部「渐变色」在截图里是向下变透明，且文字叠在它上面。
   宽度按 1920 画板的比例走，随栏宽缩放，这样图的边缘始终埋在纯黑里。 */
.n1-show--desk .n1d-phone-band::before,
.n1-show--desk .n1d-phone-band::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.n1-show--desk .n1d-phone-band::before {
  inset: 0;
  background-image:
    linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0)),
    linear-gradient(270deg, #000 40%, rgba(0, 0, 0, 0));
  background-repeat: no-repeat;
  background-position: left top, right top;
  /* 左 510 / 右 404，都是整段高。前 40% 纯黑，再到内缘完全透明。 */
  background-size:
    calc(510 / 1920 * 100%) 100%,
    calc(404 / 1920 * 100%) 100%;
}

/* 渐变色高 430，本节 padding 已占掉上面 80，所以从标题顶再画 350。
   其中前 135 仍是纯黑（430 的一半减去 80），其余淡出。
   padding 百分比相对栏宽，宽屏时跟着图一起变高。 */
.n1-show--desk .n1d-phone-band::after {
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  padding-top: calc((430 - 80) / 1920 * 100%);
  background-image: linear-gradient(
    180deg,
    #000 calc(135 / 350 * 100%),
    rgba(0, 0, 0, 0)
  );
  background-repeat: no-repeat;
}

.n1-show--desk .n1d-phone-band .n1v-wrap {
  position: relative;
  z-index: 2;
}

/* 图仍在左右黑渐变下面，避免沙发硬边露出来。码单独抬到蒙层上面才能点、也不会被熏黑。 */
.n1d-phone-wrap {
  position: relative;
}

/* H5 仍按栏宽缩小。PC 按稿：宽 1725、左起 154，不居中。 */
.n1d-page .n1d-phone {
  display: block;
  width: 100%;
  height: auto;
}

.n1-show--desk .n1d-phone-wrap {
  width: calc(1725 / 1920 * 100%);
  max-width: none;
  margin: calc(2 * var(--n1u)) 0 0 calc(154 / 1920 * 100%);
}

.n1d-qr {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: rgb(18 18 18 / 0.5);
  color: #fff;
  text-decoration: none;
}

.n1d-qr__code {
  display: block;
  object-fit: cover;
}

.n1d-qr__label {
  display: block;
  text-align: center;
  font-weight: 500;
}

/* 桌面码组 125×166，码面 90，距切图右 269、底 90（可见高 879）。 */
.n1-show--desk .n1d-qr {
  right: calc(269 / 1725 * 100%);
  bottom: calc(90 / 879 * 100%);
  width: calc(125 / 1725 * 100%);
  height: calc(166 / 879 * 100%);
  padding-top: calc(14 * var(--n1u));
  border-radius: calc(20 * var(--n1u));
}

.n1-show--desk .n1d-qr__code {
  width: calc(90 * var(--n1u));
  height: calc(90 * var(--n1u));
  border-radius: calc(6 * var(--n1u));
}

.n1-show--desk .n1d-qr__label {
  margin-top: calc(12 * var(--n1u));
  width: calc(95 * var(--n1u));
  font-size: calc(14 * var(--n1u));
  line-height: calc(18 * var(--n1u));
}

.n1d-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, calc(80 * var(--n1u)), 80px);
  margin-top: calc(48 * var(--n1u));
}

/* 桌面 switch 的 48 上边距、以及 tabs 的 280 基准，在纵向排列里会把说明撑高。
   手机图底到指示条 14，条高 4，条底到标题 14，加起来仍是 32。标题自己不再加外边距。 */
.n1d-switch--stack {
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  gap: 0;
}

.n1-show--h5 .n1d-switch--stack .n1v-tabs {
  flex: 0 0 auto;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin-top: calc(14 * var(--n1u));
}

.n1-show--h5 .n1d-switch--stack .n1v-tab__title {
  margin-top: 0;
}

.n1d-switch__media {
  position: relative;
}

.n1v-tabs {
  display: flex;
  flex-direction: column;
  gap: calc(28 * var(--n1u));
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

/* 竖线是独立的一条，高度跟这一项的文字块走，不写死。
   未选中时正文收成 0，灰线就只剩标题那么高。
   选中时紫线从顶端展开，正文同时拉开。时长 0.4s，和参考页的手风琴一致。 */
.n1v-tab {
  display: flex;
  align-items: stretch;
  gap: calc(30 * var(--n1u));
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s ease;
}

.n1v-tab__rule {
  position: relative;
  flex: 0 0 calc(4 * var(--n1u));
  width: calc(4 * var(--n1u));
  align-self: stretch;
  overflow: hidden;
  background: #6b6b6b;
}

.n1v-tab__rule-on {
  position: absolute;
  inset: 0;
  background: #6937f0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s ease;
}

.n1v-tab.is-on .n1v-tab__rule-on {
  transform: scaleY(1);
}

.n1v-tab__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.n1v-tab__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.n1v-tab.is-on .n1v-tab__body-wrap {
  grid-template-rows: 1fr;
}

.n1v-tabs--dark .n1v-tab {
  color: #999;
}

.n1v-tabs--dark .n1v-tab.is-on {
  color: #fff;
}

.n1v-tabs--dark .n1v-tab__body {
  color: #ccc;
}

.n1v-tabs--light .n1v-tab {
  color: #4d4d4d;
}

.n1v-tabs--light .n1v-tab.is-on,
.n1v-tabs--light .n1v-tab__body {
  color: #121212;
}

.n1v-tabs--muted .n1v-tab__title,
.n1v-tabs--muted .n1v-tab__body {
  color: #999;
}

.n1v-tabs--muted .n1v-tab.is-on .n1v-tab__title,
.n1-show--h5 .n1v-tabs--muted .n1v-tab__title {
  color: #121212;
}

.n1-show--desk .n1v-tab__title {
  display: block;
  font-size: calc(40 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--desk .n1v-tab__body {
  display: block;
  margin: 0;
  padding-top: 0;
  overflow: hidden;
  min-height: 0;
  font-size: calc(22 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 0.3s ease, padding-top 0.4s ease;
}

.n1-show--desk .n1v-tab.is-on .n1v-tab__body {
  padding-top: calc(20 * var(--n1u));
  opacity: 1;
  transition: opacity 0.4s ease 0.1s, padding-top 0.4s ease;
}

.n1-show--h5 .n1v-tab__title {
  margin: calc(10 * var(--n1u)) 0 0;
  font-size: calc(22 * var(--n1u));
  font-weight: 600;
  line-height: calc(28 * var(--n1u));
}

.n1-show--h5 .n1v-tab__body {
  margin: calc(10 * var(--n1u)) 0 0;
  font-size: calc(16 * var(--n1u));
  font-weight: 400;
  line-height: calc(20 * var(--n1u));
}

.n1-show--h5 .n1v-tabs--dark .n1v-tab__title {
  color: #fff;
}

.n1-show--h5 .n1v-tabs--dark .n1v-tab__body {
  color: #ccc;
}

/* 握持这组说明是白。连接组才是 #ccc。两边都挂了 dark。 */
.n1-show--h5 .n1d-grip .n1v-tab__body {
  color: #fff;
}

.n1-show--h5 .n1d-diff .n1v-tab__title,
.n1-show--h5 .n1d-diff .n1v-tab__body,
.n1-show--h5 .n1d-freedom .n1v-tab__title {
  color: #121212;
}

/* 自由三张标题一行 28、两行 56。槽按两行留死，换页时下一段不被顶动。 */
.n1-show--h5 .n1d-freedom .n1v-tab__title {
  min-height: calc(56 * var(--n1u));
}

.n1v-frame {
  position: relative;
  flex: 0 1 740px;
  width: min(100%, 740px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: calc(12 * var(--n1u));
}

.n1d-switch--stack .n1v-frame {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

.n1v-frame--connect {
  aspect-ratio: 740 / 490;
}

/* 连接三项：图在右，顶对齐。栏宽 1440 时图 740×490，最后一项底下余 68。
   字号和间距跟这 1440 栏走，不跟整页 --n1u。否则图还很大、字已经到下限，
   最后一项离图底就会比稿面空一截。图是直角裁切，没有另外的边缘蒙层。
   Voice / Story 两态的未选中竖线是 #999999。 */
.n1-show--desk .n1d-connect .n1d-switch {
  container-type: inline-size;
  --n1c: calc(100cqi / 1440);
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: calc(70 * var(--n1c));
}

.n1-show--desk .n1d-connect .n1v-tabs {
  gap: calc(70 * var(--n1c));
  flex: 1 1 auto;
  min-width: 0;
}

.n1-show--desk .n1d-connect .n1v-tab {
  gap: calc(30 * var(--n1c));
}

.n1-show--desk .n1d-connect .n1v-tab__rule {
  flex-basis: calc(4 * var(--n1c));
  width: calc(4 * var(--n1c));
}

.n1-show--desk .n1d-connect .n1v-tab__title {
  font-size: calc(40 * var(--n1c));
  line-height: calc(50 * var(--n1c));
}

.n1-show--desk .n1d-connect .n1v-frame--connect {
  flex: 0 1 auto;
  width: calc(740 / 1440 * 100%);
  border-radius: 0;
  background: #000;
}

.n1-show--desk .n1d-connect .n1v-tab__body {
  max-width: calc(596 * var(--n1c));
  font-size: calc(22 * var(--n1c));
  line-height: calc(28 * var(--n1c));
  white-space: pre-wrap;
}

.n1-show--desk .n1d-connect .n1v-tab.is-on .n1v-tab__body {
  padding-top: calc(20 * var(--n1c));
}

.n1-show--desk .n1d-connect .n1v-tabs--quiet .n1v-tab__rule {
  background: #999;
}

/* 灰底控制段：顶 100、说明到标题 80、标题到三项 30、底 80。
   说明 #4d4d4d / 28 / 500，宽 1178。控制标题靠左。
   三项这一行和连接段同一套 1440 比例：图 740×490 直角，间距 70，
   未选中竖线 #4d4d4d。图底跟灰底同色，避免露出深色缝。 */
.n1-show--desk .n1d-diff {
  padding: calc(100 * var(--n1u)) 0 calc(80 * var(--n1u));
}

.n1-show--desk .n1d-diff .n1d-diff__lede {
  max-width: min(100%, calc(1178 * var(--n1u)));
  margin-top: calc(20 * var(--n1u));
  color: #4d4d4d;
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--desk .n1d-diff .n1d-diff__title {
  margin-top: calc(80 * var(--n1u));
  text-align: left;
}

.n1-show--desk .n1d-diff .n1d-switch {
  container-type: inline-size;
  --n1c: calc(100cqi / 1440);
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: calc(70 * var(--n1c));
  margin-top: calc(30 * var(--n1u));
}

.n1-show--desk .n1d-diff .n1v-tabs {
  gap: calc(70 * var(--n1c));
  flex: 1 1 auto;
  min-width: 0;
}

.n1-show--desk .n1d-diff .n1v-tab {
  gap: calc(30 * var(--n1c));
}

.n1-show--desk .n1d-diff .n1v-tab__rule {
  flex-basis: calc(4 * var(--n1c));
  width: calc(4 * var(--n1c));
  background: #4d4d4d;
}

.n1-show--desk .n1d-diff .n1v-tab__title {
  font-size: calc(40 * var(--n1c));
  line-height: calc(50 * var(--n1c));
}

.n1-show--desk .n1d-diff .n1v-frame--connect {
  flex: 0 1 auto;
  width: calc(740 / 1440 * 100%);
  border-radius: 0;
  background: #eaeaea;
}

.n1-show--desk .n1d-diff .n1v-frame--connect .n1v__fill {
  border-radius: 0;
  background: #eaeaea;
}

.n1-show--desk .n1d-diff .n1v-tab__body {
  max-width: calc(596 * var(--n1c));
  font-size: calc(22 * var(--n1c));
  line-height: calc(28 * var(--n1c));
}

.n1-show--desk .n1d-diff .n1v-tab.is-on .n1v-tab__body {
  padding-top: calc(20 * var(--n1c));
}

.n1v-frame--stack .n1v__fill {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.n1v-frame--stack .n1v__fill.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .n1v-tab,
  .n1v-tab__rule-on,
  .n1v-tab.is-on .n1v-tab__rule-on,
  .n1v-tab__body-wrap,
  .n1v-tab.is-on .n1v-tab__body-wrap,
  .n1-show--desk .n1v-tab__body,
  .n1-show--desk .n1v-tab.is-on .n1v-tab__body,
  .n1v-frame--stack .n1v__fill,
  .n1v-frame--stack .n1v__fill.is-on {
    transition: none;
  }
}

.n1v-frame--privacy {
  flex: 0 1 810px;
  width: min(100%, 810px);
  aspect-ratio: 1 / 1;
}

.n1v-frame--matrix {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 1440 / 812;
}

.n1v-frame--freedom {
  flex: 0 1 490px;
  width: min(100%, 490px);
  aspect-ratio: 1 / 1;
}

.n1-show--desk .n1v-tabs--grip .n1v-tab__body {
  font-size: calc(24 * var(--n1u));
  font-weight: 500;
}

.n1-show--desk .n1v-tabs--freedom .n1v-tab:not(.is-on) .n1v-tab__title {
  font-weight: 500;
}

.n1v__fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
}

.n1v-bars {
  display: flex;
  gap: calc(12 * var(--n1u));
}

.n1v-bar {
  width: calc(28 * var(--n1u));
  height: calc(4 * var(--n1u));
  padding: 0;
  border: 0;
  border-radius: calc(2 * var(--n1u));
  background: #6b6b6b;
  cursor: pointer;
}

.n1v-bar.is-on {
  width: calc(48 * var(--n1u));
  background: #6937f0;
}

.n1v-next {
  width: calc(26 * var(--n1u));
  height: calc(26 * var(--n1u));
  padding: 0;
  border: calc(1 * var(--n1u)) solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.n1v-next::after {
  content: "";
  display: block;
  width: calc(7 * var(--n1u));
  height: calc(7 * var(--n1u));
  margin: 0 auto;
  border-right: calc(1.5 * var(--n1u)) solid #fff;
  border-bottom: calc(1.5 * var(--n1u)) solid #fff;
  transform: rotate(-45deg);
}

.n1v-next--overlay {
  position: absolute;
  z-index: 1;
  right: calc(12 * var(--n1u));
  top: 50%;
  transform: translateY(-50%);
}

.n1d-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, calc(48 * var(--n1u)), 48px);
}

.n1d-split > * {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.n1-show--h5 .n1d-split {
  flex-direction: column;
  align-items: stretch;
}

.n1d-points {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--n1u));
  margin-top: calc(28 * var(--n1u));
}

.n1d-point {
  display: flex;
  gap: calc(12 * var(--n1u));
  align-items: flex-start;
}

.n1d-point img {
  width: clamp(32px, calc(44 * var(--n1u)), 44px);
  height: clamp(32px, calc(44 * var(--n1u)), 44px);
  flex: 0 0 auto;
  object-fit: contain;
}

.n1d-point__title,
.n1d-point__body {
  margin: 0;
  color: #3e3e3e;
}

.n1-show--desk .n1d-point__title {
  font-size: calc(24 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--desk .n1d-point__body,
.n1-show--h5 .n1d-point__title {
  font-size: calc(16 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--h5 .n1d-point__body {
  font-size: calc(14 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
}

.n1d-pain,
.n1d-quiet {
  position: relative;
  padding: calc(80 * var(--n1u)) 0;
  overflow: hidden;
}

.n1-show--desk .n1d-pain {
  /* 稿面 1920×458。这段按容器相对 1920 缩放，不跟弹层的视口比例绑死，
     避免段被垫高后底图 cover 放大裁切。 */
  --n1q: calc(100cqi / 1920);
  padding: calc(80 * var(--n1q)) 0 calc(81 * var(--n1q));
}

.n1-show--desk .n1d-pain .n1v-h1 {
  font-size: calc(60 * var(--n1q));
  line-height: calc(75 * var(--n1q));
}

/* 标题填充有紫渐变也有纯白，稿面可见的是 #fff，不画渐变。 */
.n1d-pain__title {
  color: #fff;
  background-image: none;
  -webkit-text-fill-color: #fff;
}

/* 引语两行并排，每行居中。胶囊高 66、圆角 50，字 26。
   结论单独 600。窄屏 H5 改成竖排，避免两颗胶囊挤出屏幕。 */
.n1d-quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(40 * var(--n1u));
  margin-top: calc(50 * var(--n1u));
}

.n1d-quotes__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(70 * var(--n1u));
}

.n1d-quotes p {
  margin: 0;
  padding: calc(16.5 * var(--n1u)) calc(40 * var(--n1u));
  border: calc(1.6 * var(--n1u)) solid #fff;
  border-radius: calc(50 * var(--n1u));
  background: rgba(204, 204, 204, 0.3);
  color: #fff;
  font-size: calc(26 * var(--n1u));
  font-weight: 400;
  /* 字盒高 33，不是 26 的 1.25。 */
  line-height: calc(33 / 26);
  text-align: center;
}

.n1d-quotes__em {
  font-weight: 600;
}

/* 桌面两行各两颗。胶囊按容器相对 1920 缩放，
   行宽才能留在 n1v-wrap 里，不折成一列。 */
.n1-show--desk .n1d-quotes {
  gap: calc(40 * var(--n1q));
  margin-top: calc(50 * var(--n1q));
}

.n1-show--desk .n1d-quotes__row {
  flex-wrap: nowrap;
  gap: calc(70 * var(--n1q));
}

.n1-show--desk .n1d-quotes p {
  flex: 0 0 auto;
  padding: calc(16.5 * var(--n1q)) calc(40 * var(--n1q));
  border-width: calc(1.6 * var(--n1q));
  font-size: calc(26 * var(--n1q));
  white-space: nowrap;
}

.n1-show--h5 .n1d-quotes {
  gap: calc(12 * var(--n1u));
  margin-top: calc(18 * var(--n1u));
}

.n1-show--h5 .n1d-quotes__row {
  flex-direction: column;
  align-items: center;
  gap: calc(12 * var(--n1u));
}

.n1-show--h5 .n1d-pain {
  padding: calc(40 * var(--n1u)) 0 calc(40 * var(--n1u));
}

.n1-show--h5 .n1d-pain .n1v-h1 {
  line-height: calc(30 * var(--n1u));
}

.n1-show--h5 .n1d-quotes p {
  border: 0;
  font-size: calc(12 * var(--n1u));
  font-weight: 400;
  line-height: calc(15 * var(--n1u));
  padding: calc(7.5 * var(--n1u)) calc(16.5 * var(--n1u));
  white-space: nowrap;
}

/* 隐私段：左文右图。图宽是 1440 栏的 810，直角。
   文案顶距 100，左边进 34。标题两行，说明宽 543。
   图标 54，右缘到竖线中心 16，线心到文字 18（线宽 2、高 56）。
   标题 28/500，说明 22，字盒高 28，组距 32。 */
.n1-show--desk .n1d-unseen {
  padding: 0;
}

.n1-show--desk .n1d-unseen .n1d-split {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
}

.n1-show--desk .n1d-unseen__copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: calc(100 * var(--n1u));
  padding-left: calc(34 * var(--n1u));
}

.n1-show--desk .n1d-unseen__body {
  max-width: min(100%, calc(543 * var(--n1u)));
  /* 通用正文是 margin: auto，会在窄栏里居中。这段和标题同一左边。 */
  margin: calc(20 * var(--n1u)) 0 0;
  color: #121212;
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

/* 方图是 1440 栏里的 810，贴栏的右缘。栏外左右各 240 留着灰底，不再把图拉到段边。 */
.n1-show--desk .n1d-unseen .n1v-frame--privacy {
  flex: 0 0 auto;
  width: calc(810 / 1440 * 100%);
  height: auto;
  margin-right: 0;
  max-width: calc(810 * var(--n1u));
  aspect-ratio: 1;
  border-radius: 0;
  background: #c7c7c7;
}

.n1-show--desk .n1d-unseen .n1v__fill {
  border-radius: 0;
  background: #c7c7c7;
}

/* 成片棚灰有明暗，左右沿和纯色底会对出一条线。沿方图左右各 64 收到段底。 */
.n1-show--desk .n1d-unseen .n1v-frame--privacy::before,
.n1-show--desk .n1d-unseen .n1v-frame--privacy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 1;
}

.n1-show--desk .n1d-unseen .n1v-frame--privacy::before {
  left: 0;
  background: linear-gradient(90deg, #c7c7c7, rgb(199 199 199 / 0));
}

.n1-show--desk .n1d-unseen .n1v-frame--privacy::after {
  right: 0;
  background: linear-gradient(270deg, #c7c7c7, rgb(199 199 199 / 0));
}

.n1-show--desk .n1d-unseen .n1d-points {
  gap: calc(32 * var(--n1u));
  margin-top: calc(80 * var(--n1u));
}

.n1-show--desk .n1d-unseen .n1d-point {
  gap: 0;
  align-items: center;
}

/* 竖线画在图标和文字中间。线心距图标右缘 16、距文字 18，所以左右边距是 15 和 17。 */
.n1-show--desk .n1d-unseen .n1d-point__rule {
  flex: 0 0 auto;
  width: calc(2 * var(--n1u));
  height: calc(56 * var(--n1u));
  margin-left: calc(15 * var(--n1u));
  margin-right: calc(17 * var(--n1u));
  background: #3e3e3e;
}

.n1-show--desk .n1d-unseen .n1d-point img {
  width: calc(54 * var(--n1u));
  height: calc(54 * var(--n1u));
}

.n1-show--desk .n1d-unseen .n1d-point__title {
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--desk .n1d-unseen .n1d-point__body {
  margin-top: calc(6 * var(--n1u));
  font-size: calc(22 * var(--n1u));
  font-weight: 400;
  line-height: calc(28 / 22);
}

/* 手机稿同一条竖线：线宽 1.8、高 40，线心到图标和文字都是 14。图标 38。 */
.n1-show--h5 .n1d-unseen .n1d-point {
  gap: 0;
  align-items: center;
}

.n1-show--h5 .n1d-unseen .n1d-point img {
  width: calc(38 * var(--n1u));
  height: calc(38 * var(--n1u));
}

.n1-show--h5 .n1d-unseen .n1d-point__rule {
  flex: 0 0 auto;
  width: calc(1.8 * var(--n1u));
  height: calc(40 * var(--n1u));
  margin-left: calc(13.1 * var(--n1u));
  margin-right: calc(13.1 * var(--n1u));
  background: #3e3e3e;
}

.n1-show--h5 .n1d-unseen .n1d-split {
  gap: calc(26 * var(--n1u));
}

.n1-show--h5 .n1d-unseen .n1d-points {
  gap: calc(16 * var(--n1u));
  margin-top: calc(14 * var(--n1u));
}

.n1-show--h5 .n1d-unseen .n1d-point__title {
  font-size: calc(18 * var(--n1u));
  font-weight: 500;
  line-height: calc(23 / 18);
}

.n1-show--h5 .n1d-unseen .n1d-point__body {
  margin-top: calc(8 * var(--n1u));
  font-size: calc(14 * var(--n1u));
  font-weight: 400;
  line-height: calc(18 / 14);
}

.n1d-meter {
  display: flex;
  justify-content: space-between;
  gap: calc(8 * var(--n1u));
  margin-top: calc(48 * var(--n1u));
  padding-top: calc(18 * var(--n1u));
  border-top: calc(2 * var(--n1u)) solid #fff;
}

.n1d-meter__stop {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--n1u));
  min-width: 0;
  color: #ccc;
  font-size: calc(24 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
}

.n1-show--h5 .n1d-meter__stop {
  font-size: calc(16 * var(--n1u));
  font-weight: 400;
  line-height: calc(20 * var(--n1u));
}

.n1d-meter__stop img {
  width: clamp(28px, calc(48 * var(--n1u)), 48px);
  height: clamp(28px, calc(48 * var(--n1u)), 48px);
  object-fit: contain;
}

.n1d-meter__stop.is-hot {
  color: #fbbc5f;
  font-size: calc(30 * var(--n1u));
  font-weight: 500;
}

.n1-show--h5 .n1d-meter__stop.is-hot {
  font-size: calc(22 * var(--n1u));
  font-weight: 500;
  line-height: calc(28 * var(--n1u));
}

.n1d-quiet__note {
  margin: calc(28 * var(--n1u)) 0 0;
  color: #999;
  font-size: calc(20 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

/* 手机静音段没有这句脚注。 */
.n1-show--h5 .n1d-quiet__note {
  display: none;
}

.n1d-table {
  margin-top: calc(36 * var(--n1u));
  overflow-x: auto;
}

.n1d-table__head,
.n1d-table__row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: calc(16 * var(--n1u));
  align-items: center;
  min-width: 0;
  padding: calc(18 * var(--n1u)) 0;
  border-bottom: calc(1 * var(--n1u)) solid #3e3e3e;
}

.n1d-table__head span,
.n1d-table__row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.n1-show--desk .n1d-table__head {
  color: #6937f0;
  font-size: calc(30 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--h5 .n1d-table__head {
  color: #6937f0;
  font-size: calc(14 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--desk .n1d-table__row {
  color: #fff;
  font-size: calc(22 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1-show--h5 .n1d-table__row {
  color: #fff;
  font-size: calc(12 * var(--n1u));
  font-weight: 500;
  line-height: 1.25;
}

.n1d-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--n1u));
  margin-top: calc(36 * var(--n1u));
}

/* 手机评论区：标题 26/600 行盒 33，左右 20。引导句 16/400 行盒 20，距标题 14。
   卡片横滑，375 宽时单卡 285、间距 16、首卡距边 16。外层左右是 20，所以列表外拉 4。
   认证条高出白卡 16。姓名 18/600 行盒 23，日期在下一行，间距 6。星与姓名行垂直居中，右距 18。 */
.n1-show--h5 .n1d-reviews-band {
  padding: calc(40 * var(--n1u)) 0 calc(39 * var(--n1u));
  background: #000;
}

.n1-show--h5 .n1d-reviews-band .n1v-wrap {
  width: 100%;
  box-sizing: border-box;
  padding-inline: calc(20 * var(--n1u));
}

.n1-show--h5 .n1d-reviews-band .n1v-h1 {
  font-size: calc(26 * var(--n1u));
  font-weight: 600;
  line-height: calc(33 * var(--n1u));
}

.n1-show--h5 .n1d-reviews__lede {
  margin: calc(14 * var(--n1u)) 0 0;
  max-width: none;
  color: #fff;
  font-size: calc(16 * var(--n1u));
  font-weight: 400;
  line-height: calc(20 * var(--n1u));
  text-align: center;
  /* 这句和模式矩阵共用文本，矩阵稿在 sync. 后换行。评论稿是一整段，折叠换行。 */
  white-space: normal;
}

.n1-show--h5 .n1d-reviews {
  display: flex;
  gap: calc(16 * var(--n1u));
  margin-top: calc(18 * var(--n1u));
  margin-inline: calc(-4 * var(--n1u));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.n1-show--h5 .n1d-reviews::-webkit-scrollbar {
  display: none;
}

.n1d-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: calc(20 * var(--n1u)) 0 0;
  padding: calc(36 * var(--n1u)) calc(24 * var(--n1u)) calc(24 * var(--n1u));
  border-radius: calc(20 * var(--n1u));
  background: #fff;
  color: #3e3e3e;
}

.n1-show--h5 .n1d-card {
  box-sizing: border-box;
  flex: 0 0 calc(285 / 375 * 100cqi);
  width: calc(285 / 375 * 100cqi);
  margin: calc(16 * var(--n1u)) 0 0;
  padding: calc(26 * var(--n1u)) calc(18 * var(--n1u)) calc(18 * var(--n1u));
  scroll-snap-align: start;
}

.n1d-card h3 {
  margin: 0;
  color: #121212;
  font-size: calc(22 * var(--n1u));
  font-weight: 600;
  line-height: 1.25;
}

.n1-show--h5 .n1d-card h3 {
  font-size: calc(18 * var(--n1u));
  font-weight: 600;
  line-height: calc(23 * var(--n1u));
}

.n1d-card__top {
  display: flex;
  justify-content: space-between;
  gap: calc(12 * var(--n1u));
  align-items: baseline;
}

.n1-show--h5 .n1d-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0;
  row-gap: calc(6 * var(--n1u));
  align-items: center;
}

.n1-show--h5 .n1d-card__top h3 {
  grid-column: 1;
  grid-row: 1;
}

.n1d-card__date {
  color: #999;
  font-size: calc(18 * var(--n1u));
  font-weight: 400;
}

.n1-show--h5 .n1d-card__date {
  grid-column: 1 / -1;
  grid-row: 2;
  color: #999;
  font-size: calc(14 * var(--n1u));
  font-weight: 400;
  line-height: calc(18 * var(--n1u));
}

.n1d-card p {
  margin: calc(12 * var(--n1u)) 0 0;
  font-size: calc(18 * var(--n1u));
  font-weight: 400;
  line-height: 1.25;
}

.n1-show--h5 .n1d-card p {
  margin-top: calc(6 * var(--n1u));
  color: #3e3e3e;
  font-size: calc(14 * var(--n1u));
  font-weight: 400;
  line-height: calc(18 * var(--n1u));
}

.n1-show--h5 .n1d-card .n1d-stars {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.n1d-stars {
  display: flex;
  gap: calc(4 * var(--n1u));
  margin-top: calc(8 * var(--n1u));
}

.n1d-star {
  position: relative;
  display: block;
  width: calc(15 * var(--n1u));
  height: calc(14 * var(--n1u));
  overflow: hidden;
  flex: none;
}

.n1d-star img {
  display: block;
  width: calc(15 * var(--n1u));
  height: calc(14 * var(--n1u));
  max-width: none;
}

/* 半星槽位仍是 15。金星只露出左 9，盖在灰星上。 */
.n1d-star__half {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(9 * var(--n1u));
  height: calc(14 * var(--n1u));
  overflow: hidden;
}

/* 认证条 140×47，比卡片上沿高出 16，左边与卡片对齐。
   图是异形紫底加白色徽标。字在图内左 37、上 8，行盒 15。 */
.n1d-page .n1d-verified {
  position: absolute;
  top: calc(-16 * var(--n1u));
  left: 0;
  width: calc(140 * var(--n1u));
  height: calc(47 * var(--n1u));
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  line-height: 0;
}

.n1d-page .n1d-verified img {
  display: block;
  width: 100%;
  height: 100%;
}

.n1d-page .n1d-verified__label {
  position: absolute;
  top: calc(8 * var(--n1u));
  left: calc(37 * var(--n1u));
  color: #fff;
  font-size: calc(12 * var(--n1u));
  font-weight: 500;
  line-height: calc(15 * var(--n1u));
  white-space: nowrap;
}

.n1d-more {
  display: block;
  width: min(100%, 260px);
  min-height: 54px;
  height: auto;
  margin: calc(36 * var(--n1u)) auto 0;
  padding: 0;
  border: calc(2 * var(--n1u)) solid #fff;
  border-radius: calc(50 * var(--n1u));
  background: transparent;
  color: #fff;
  font-size: calc(22 * var(--n1u));
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

/* 手机按钮 260×48，描边 2 在盒内，字 18/500 行盒 23。距卡片底 26。填充是隐藏的紫，不画。 */
.n1-show--h5 .n1d-reviews-band .n1d-more {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  height: calc(48 * var(--n1u));
  min-height: 0;
  margin-top: calc(26 * var(--n1u));
  border: calc(2 * var(--n1u)) solid #fff;
  border-radius: calc(50 * var(--n1u));
  background: transparent;
  font-size: calc(18 * var(--n1u));
  font-weight: 500;
  line-height: calc(23 * var(--n1u));
}

.n1d-faq__grid {
  display: grid;
  gap: clamp(24px, calc(46 * var(--n1u)), 46px);
  align-items: start;
}

/* 桌面始终左问答、右人物图，按稿面 982 / 412 的列宽和 46 的间距缩放。
   窄窗口允许问答自然换行并撑高左列，不把图片移到问答下面。 */
.n1-show--desk .n1d-faq__grid {
  grid-template-columns: minmax(0, 982fr) minmax(0, 412fr);
  gap: calc(46 * var(--n1u));
}

.n1-show--h5 .n1d-faq__grid {
  grid-template-columns: 1fr;
}

.n1d-faq__row {
  padding: calc(14 * var(--n1u)) 0;
  border-bottom: calc(1 * var(--n1u)) solid #999;
}

/* 手机问答：问到答 6，上下各 12，单行一对正好 66。
   标题在左右 20。问答行本身左右是 16，比标题各探出 4，底线跟稿面同宽。 */
.n1-show--h5 .n1d-faq__row {
  margin-inline: calc(-4 * var(--n1u));
  padding: calc(12 * var(--n1u)) 0;
}

.n1d-faq__q,
.n1d-faq__a {
  margin: 0;
}

.n1-show--desk .n1d-faq__q {
  color: #fff;
  font-size: calc(18 * var(--n1u));
  font-weight: 500;
  line-height: calc(23 / 18);
}

.n1-show--desk .n1d-faq__a {
  margin-top: calc(10 * var(--n1u));
  color: #ccc;
  font-size: calc(18 * var(--n1u));
  font-weight: 300;
  line-height: calc(23 / 18);
}

.n1-show--h5 .n1d-faq__q {
  color: #fff;
  font-size: calc(14 * var(--n1u));
  font-weight: 500;
  line-height: calc(18 / 14);
}

.n1-show--h5 .n1d-faq__a {
  margin-top: calc(6 * var(--n1u));
  color: #ccc;
  font-size: calc(14 * var(--n1u));
  font-weight: 300;
  line-height: calc(18 / 14);
}

.n1d-faq__art {
  width: 100%;
  max-width: 412px;
  height: auto;
  justify-self: end;
  border-radius: calc(30 * var(--n1u));
  object-fit: cover;
  background: #1a1a1a;
}

/* 评论弹层。遮罩 #121212 / 75%。面板 #eaeaea，贴在视口底。
   白色背景是压平的矢量，没导出圆角；截图上沿弧度约 2px（画板宽 314px 的缩图），
   同屏卡片和滚动条都是 20，上沿用 20，下沿被画板裁平。
   顶栏是壳层 flex item，z-index 4。弹层在页面 z-index 2 里面，80 盖不住顶栏，
   手机返回会落到顶栏底下。弹层在的时候把首页和商品页抬到 5。登录等全站层仍是 10000。 */
.store-html:has(.n1d-modal),
.home-html:has(.n1d-modal) {
  z-index: 5;
}

.n1d-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(18, 18, 18, 0.75);
}

.n1d-modal__panel {
  position: absolute;
  top: calc(80 * var(--n1u));
  right: calc(172 / 1920 * 100%);
  bottom: 0;
  left: calc(224 / 1920 * 100%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(20 * var(--n1u)) calc(20 * var(--n1u)) 0 0;
  background: #eaeaea;
  color: #121212;
}

.n1d-modal__bar {
  position: relative;
  flex: none;
  padding: calc(40 * var(--n1u)) calc(40 * var(--n1u)) 0;
}

.n1d-modal__bar h2 {
  margin: 0;
  color: #121212;
  font-size: calc(24 * var(--n1u));
  font-weight: 600;
  line-height: calc(30 * var(--n1u));
  text-align: left;
}

.n1d-modal__bar button {
  position: absolute;
  top: calc(26 * var(--n1u));
  right: calc(26 * var(--n1u));
  width: calc(18 * var(--n1u));
  height: calc(18 * var(--n1u));
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* 稿面没有焦点环。自动聚焦只为键盘能关掉，不画出浏览器蓝框。 */
  outline: none;
}

.n1d-modal__x {
  display: block;
  width: 100%;
  height: 100%;
}

.n1d-modal__x--h5 {
  display: none;
}

.n1d-modal__list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: calc(20 * var(--n1u));
  margin: 0;
  padding: calc(30 * var(--n1u)) calc(40 * var(--n1u)) calc(20 * var(--n1u));
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #999 #999;
}

.n1d-modal__list::-webkit-scrollbar {
  width: calc(8 * var(--n1u));
}

.n1d-modal__list::-webkit-scrollbar-track,
.n1d-modal__list::-webkit-scrollbar-thumb {
  border-radius: calc(20 * var(--n1u));
  background: #999;
}

.n1d-modal__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--n1u));
}

/* 手机单列另排。桌面不显示，避免和三列重复。 */
.n1d-modal__stack {
  display: none;
}

/* 弹层卡片跟首屏卡片不是同一套：没有认证条，高度随正文，图在正文下。 */
.n1d-dcard {
  margin: 0;
  padding: calc(26 * var(--n1u)) calc(24 * var(--n1u)) calc(26 * var(--n1u));
  border-radius: calc(20 * var(--n1u));
  background: #fff;
  color: #3e3e3e;
}

.n1d-dcard__top {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--n1u));
}

.n1d-dcard h3 {
  margin: 0;
  color: #121212;
  font-size: calc(22 * var(--n1u));
  font-weight: 600;
  line-height: calc(28 * var(--n1u));
}

.n1d-dcard__date {
  color: #999;
  font-size: calc(18 * var(--n1u));
  font-weight: 400;
  line-height: calc(23 * var(--n1u));
}

.n1d-dcard .n1d-stars {
  margin: 0 0 0 auto;
}

.n1d-dcard p {
  margin: calc(14 * var(--n1u)) 0 0;
  color: #3e3e3e;
  font-size: calc(18 * var(--n1u));
  font-weight: 400;
  line-height: calc(23 * var(--n1u));
}

.n1d-dcard__photos {
  display: flex;
  gap: calc(14 * var(--n1u));
  margin-top: calc(20 * var(--n1u));
}

.n1d-dcard__photo {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.n1d-dcard__photos img {
  width: calc(100 * var(--n1u));
  height: calc(100 * var(--n1u));
  object-fit: cover;
  border-radius: 0;
  background: #d9d9d9;
}

/* 手机稿没有灰面板。59/91 含 44 的系统状态栏，网页扣掉这块。日期单独一行。 */
@media (max-width: 767px) {
  .n1d-modal {
    --n1u: clamp(0.85px, 100vw / 375, 1.15px);
  }

  .n1d-modal__panel {
    top: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    background: transparent;
  }

  .n1d-modal__bar {
    /* 栏高是 0，返回键伸进列表。列表在后面绘制，不抬高会被挡住。 */
    z-index: 1;
    height: 0;
    padding: 0;
  }

  .n1d-modal__bar h2 {
    display: none;
  }

  /* 返回用现成 ic_story_overlay_back。画布 20×30，含阴影；评论稿矢量本身是 7×14。 */
  .n1d-modal__bar button {
    top: calc(15 * var(--n1u));
    right: auto;
    left: calc(25 * var(--n1u));
    width: calc(20 * var(--n1u));
    height: calc(30 * var(--n1u));
  }

  .n1d-modal__x--desk {
    display: none;
  }

  .n1d-modal__x--h5 {
    display: block;
  }

  .n1d-modal__list {
    display: block;
    padding: calc(47 * var(--n1u)) calc(16 * var(--n1u)) calc(16 * var(--n1u));
  }

  .n1d-modal__col {
    display: none;
  }

  .n1d-modal__stack {
    display: flex;
    flex-direction: column;
    gap: calc(12 * var(--n1u));
    min-width: 0;
  }

  .n1d-dcard {
    padding: calc(18 * var(--n1u));
  }

  .n1d-dcard__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name stars"
      "date date";
    column-gap: calc(12 * var(--n1u));
    row-gap: calc(6 * var(--n1u));
    align-items: center;
  }

  .n1d-dcard h3 {
    grid-area: name;
    font-size: calc(16 * var(--n1u));
    line-height: calc(20 * var(--n1u));
  }

  .n1d-dcard__date {
    grid-area: date;
    font-size: calc(14 * var(--n1u));
    line-height: calc(18 * var(--n1u));
  }

  .n1d-dcard .n1d-stars {
    grid-area: stars;
    margin-left: 0;
  }

  .n1d-dcard p {
    margin-top: calc(6 * var(--n1u));
    font-size: calc(14 * var(--n1u));
    line-height: calc(18 * var(--n1u));
  }

  .n1d-dcard__photos {
    margin-top: calc(14 * var(--n1u));
  }
}

/* 握持到评论这段按稿面组距排。GIF 粉标是视频占位，不渲染。
   图都是直角。握持说明三项都露着，选中竖线盖住标题和说明。 */
.n1-show--desk .n1d-grip,
.n1-show--desk .n1d-matrix,
.n1-show--desk .n1d-freedom,
.n1-show--desk .n1d-quiet,
.n1-show--desk .n1d-compare {
  padding: calc(100 * var(--n1u)) 0 0;
}

.n1-show--desk .n1d-reviews-band {
  padding: calc(98 * var(--n1u)) 0 calc(50 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1d-switch,
.n1-show--desk .n1d-freedom .n1d-switch {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0;
}

.n1-show--desk .n1d-grip .n1d-switch {
  margin-top: calc(30 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1v-tabs {
  flex: 1 1 auto;
  min-width: 0;
  gap: calc(70 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1v-tab__rule {
  align-self: flex-start;
  height: calc(50 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1v-tab.is-on .n1v-tab__rule {
  height: calc(100 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1v-tab__title {
  line-height: calc(50 * var(--n1u));
}

/* 未选中的说明也留在稿面上，颜色跟未选中标题一样是 #999。 */
.n1-show--desk .n1d-grip .n1v-tab__body-wrap {
  grid-template-rows: 1fr;
}

.n1-show--desk .n1d-grip .n1v-tab__body,
.n1-show--desk .n1d-grip .n1v-tab.is-on .n1v-tab__body {
  opacity: 1;
  padding-top: calc(20 * var(--n1u));
  color: #999;
  font-size: calc(24 * var(--n1u));
  font-weight: 500;
  line-height: calc(30 * var(--n1u));
}

.n1-show--desk .n1d-grip .n1v-tab.is-on .n1v-tab__body {
  color: #fff;
}

.n1-show--desk .n1d-grip .n1v-frame,
.n1-show--desk .n1d-matrix .n1v-frame,
.n1-show--desk .n1d-freedom .n1v-frame {
  border-radius: 0;
  background: transparent;
}

.n1-show--desk .n1d-grip .n1v-frame--connect {
  flex: 0 0 calc(740 / 1440 * 100%);
  width: calc(740 / 1440 * 100%);
  max-width: calc(740 * var(--n1u));
}

.n1-show--desk .n1d-matrix .n1v-frame--matrix {
  margin-top: 0;
  width: 100%;
  max-width: 1440px;
}

.n1-show--desk .n1d-freedom .n1d-switch {
  margin-top: calc(40 * var(--n1u));
}

.n1-show--desk .n1d-freedom .n1v-tabs {
  flex: 1 1 auto;
  min-width: 0;
  gap: calc(80 * var(--n1u));
  padding-top: calc(65 * var(--n1u));
}

.n1-show--desk .n1d-freedom .n1v-tab__rule {
  align-self: flex-start;
  height: calc(50 * var(--n1u));
}

.n1-show--desk .n1d-freedom .n1v-tab__title {
  line-height: calc(50 * var(--n1u));
}

.n1-show--desk .n1d-freedom .n1v-frame--freedom {
  flex: 0 0 calc(490 / 1440 * 100%);
  width: calc(490 / 1440 * 100%);
  max-width: calc(490 * var(--n1u));
  margin-left: auto;
}

/* 静音段高 968。图按 1920 居中，宽屏不再 cover 裁头脚。
   上渐变 430。左侧渐变转 90° 后盖住图左 1196，21% 前是实黑。 */
.n1-show--desk .n1d-quiet {
  background: #000;
  padding-bottom: calc(50 * var(--n1u));
}

.n1d-quiet__stage {
  position: absolute;
  inset: 0;
}

/* 桌面这条只裁切。手机在下面改成可左右划的视口，渐变留在轨道外面，不跟着图走。 */
.n1d-quiet__pan {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.n1-show--desk .n1d-quiet__stage {
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, calc(1920 * var(--n1u)));
  transform: translateX(-50%);
  overflow: hidden;
}

.n1-show--desk .n1d-quiet__stage .n1d-quiet__bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n1d-quiet__fade {
  display: none;
}

.n1-show--desk .n1d-quiet__fade {
  display: block;
  position: absolute;
  pointer-events: none;
}

.n1-show--desk .n1d-quiet__fade--top {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(430 * var(--n1u));
  background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0) 100%);
}

.n1-show--desk .n1d-quiet__fade--side {
  top: 0;
  left: 0;
  width: calc(1196 / 1920 * 100%);
  height: 100%;
  background: linear-gradient(90deg, #000 21%, rgb(0 0 0 / 0) 100%);
}

/* 刻度中心不是五等分。相对 634 宽的尺：35、176、316、456、596。
   说话图标的 60 框比 10 dB 圆点中心再靠右 7。白线穿过圆点，30 那段金色向两边淡出。 */
.n1-show--desk .n1d-quiet .n1d-meter {
  position: relative;
  display: block;
  width: min(100%, calc(634 * var(--n1u)));
  height: calc(180 * var(--n1u));
  margin: calc(309 * var(--n1u)) 0 0 calc(34 * var(--n1u));
  padding: 0;
  border: 0;
}

.n1-show--desk .n1d-meter__track {
  position: absolute;
  z-index: 0;
  top: calc(57 * var(--n1u));
  left: calc(16 * var(--n1u));
  right: calc(16 * var(--n1u));
  height: calc(2 * var(--n1u));
  background: #fff;
}

.n1-show--desk .n1d-meter__track-hot {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(128 * var(--n1u));
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgb(251 188 95 / 0) 0%,
    #fbbc5f 38%,
    #fbbc5f 62%,
    rgb(251 188 95 / 0) 100%
  );
}

.n1-show--desk .n1d-meter__stop {
  position: absolute;
  top: 0;
  display: block;
  width: calc(110 * var(--n1u));
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
}

.n1-show--desk .n1d-meter__stop:nth-child(2) {
  left: calc(35 / 634 * 100%);
}

.n1-show--desk .n1d-meter__stop:nth-child(3) {
  left: calc(176 / 634 * 100%);
}

.n1-show--desk .n1d-meter__stop:nth-child(4) {
  left: calc(316 / 634 * 100%);
}

.n1-show--desk .n1d-meter__stop:nth-child(5) {
  left: calc(456 / 634 * 100%);
}

.n1-show--desk .n1d-meter__stop:nth-child(6) {
  left: calc(596 / 634 * 100%);
}

.n1-show--desk .n1d-meter__stop:nth-child(2) img {
  margin-left: calc(7 * var(--n1u));
}

.n1-show--desk .n1d-meter__label {
  position: absolute;
  top: calc(6 * var(--n1u));
  right: 0;
  left: 0;
  color: #ccc;
  font-size: calc(28 * var(--n1u));
  font-weight: 500;
  line-height: calc(35 * var(--n1u));
  text-align: center;
}

.n1-show--desk .n1d-meter__stop.is-hot .n1d-meter__label {
  top: 0;
  color: #fbbc5f;
  font-size: calc(34 * var(--n1u));
  line-height: calc(43 * var(--n1u));
}

.n1-show--desk .n1d-meter__dot {
  position: absolute;
  z-index: 1;
  top: calc(51 * var(--n1u));
  left: 50%;
  width: calc(14 * var(--n1u));
  height: calc(14 * var(--n1u));
  margin-left: calc(-7 * var(--n1u));
  border-radius: 50%;
  background: #fff;
}

.n1-show--desk .n1d-meter__stop.is-hot .n1d-meter__dot {
  background: #fbbc5f;
}

.n1-show--desk .n1d-meter__stop img {
  position: absolute;
  top: calc(93 * var(--n1u));
  left: 50%;
  width: calc(60 * var(--n1u));
  height: calc(60 * var(--n1u));
  transform: translateX(-50%);
}

.n1-show--desk .n1d-meter__stop.is-hot img {
  top: calc(42 * var(--n1u));
  width: calc(76 * var(--n1u));
  height: calc(138 * var(--n1u));
}

.n1-show--desk .n1d-quiet__note {
  width: min(100%, calc(327 * var(--n1u)));
  margin: calc(171 * var(--n1u)) 0 0 calc(34 * var(--n1u));
  font-size: calc(20 * var(--n1u));
  line-height: calc(28 * var(--n1u));
  text-align: left;
}

/* 手机分贝尺：字在线上，圆点压在 2px 线上，30 dB 是金色产品和 14 圆点。
   图标 30，产品图 63×114。上 376 从 40% 处的实黑淡出，标题落在暗部，仍叠在照片上。 */
.n1-show--h5 .n1d-quiet__fade--top {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: calc(376 * var(--n1u));
  background: linear-gradient(180deg, #000 40%, rgb(0 0 0 / 0) 100%);
  pointer-events: none;
}

/* 文案叠在照片上，但不接指针。这段没有可点控件，整张图都能左右划。 */
.n1-show--h5 .n1d-quiet .n1v-wrap {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.n1-show--h5 .n1d-quiet .n1d-meter {
  position: relative;
  display: block;
  height: calc(141 * var(--n1u));
  margin-top: calc(36 * var(--n1u));
  padding: 0;
  border: 0;
}

.n1-show--h5 .n1d-meter__track {
  position: absolute;
  top: calc(42 * var(--n1u));
  left: 0;
  right: 0;
  height: calc(2 * var(--n1u));
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0) 0%,
    #fff 10%,
    #fff 90%,
    rgb(255 255 255 / 0) 100%
  );
}

.n1-show--h5 .n1d-meter__track-hot {
  position: absolute;
  top: 0;
  left: calc(122 / 375 * 100%);
  width: calc(128 / 375 * 100%);
  height: 100%;
  background: linear-gradient(
    90deg,
    rgb(251 188 95 / 0) 0%,
    #fbbc5f 38%,
    #fbbc5f 62%,
    rgb(251 188 95 / 0) 100%
  );
}

.n1-show--h5 .n1d-meter__stop {
  position: absolute;
  top: 0;
  display: block;
  width: calc(64 * var(--n1u));
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
}

.n1-show--h5 .n1d-meter__stop:nth-child(2) { left: calc(39 / 375 * 100%); }
.n1-show--h5 .n1d-meter__stop:nth-child(3) { left: calc(105 / 375 * 100%); }
.n1-show--h5 .n1d-meter__stop:nth-child(4) { left: calc(186 / 375 * 100%); }
.n1-show--h5 .n1d-meter__stop:nth-child(5) { left: calc(266 / 375 * 100%); }
.n1-show--h5 .n1d-meter__stop:nth-child(6) { left: calc(332 / 375 * 100%); }

.n1-show--h5 .n1d-meter__label {
  position: absolute;
  top: calc(6 * var(--n1u));
  right: 0;
  left: 0;
  color: #ccc;
  font-size: calc(16 * var(--n1u));
  font-weight: 400;
  line-height: calc(20 * var(--n1u));
  text-align: center;
}

.n1-show--h5 .n1d-meter__stop.is-hot .n1d-meter__label {
  top: 0;
  color: #fbbc5f;
  font-size: calc(22 * var(--n1u));
  font-weight: 500;
  line-height: calc(28 * var(--n1u));
}

.n1-show--h5 .n1d-meter__dot {
  position: absolute;
  z-index: 1;
  top: calc(38 * var(--n1u));
  left: 50%;
  width: calc(10 * var(--n1u));
  height: calc(10 * var(--n1u));
  margin: 0 0 0 calc(-5 * var(--n1u));
  border-radius: 50%;
  background: #fff;
}

.n1-show--h5 .n1d-meter__stop.is-hot .n1d-meter__dot {
  top: calc(36 * var(--n1u));
  width: calc(14 * var(--n1u));
  height: calc(14 * var(--n1u));
  margin-left: calc(-7 * var(--n1u));
  background: #fbbc5f;
}

.n1-show--h5 .n1d-meter__stop img {
  position: absolute;
  top: calc(58 * var(--n1u));
  left: 50%;
  width: calc(30 * var(--n1u));
  height: calc(30 * var(--n1u));
  max-width: none;
  transform: translateX(-50%);
}

.n1-show--h5 .n1d-meter__stop.is-hot img {
  top: calc(27 * var(--n1u));
  width: calc(63 * var(--n1u));
  height: calc(114 * var(--n1u));
}

/* 三列 406 / 502 / 406，列距 63。线只画在每一列里，#999、0.8。字居中。 */
.n1-show--desk .n1d-compare .n1d-table {
  margin-top: calc(40 * var(--n1u));
}

.n1-show--desk .n1d-table__head,
.n1-show--desk .n1d-table__row {
  grid-template-columns: 406fr 502fr 406fr;
  column-gap: calc(63 * var(--n1u));
  align-items: stretch;
  padding: 0;
  border: 0;
  text-align: center;
}

.n1-show--desk .n1d-table__head {
  min-height: calc(38 * var(--n1u));
  margin-bottom: calc(20 * var(--n1u));
  font-size: calc(30 * var(--n1u));
  line-height: calc(38 * var(--n1u));
}

.n1-show--desk .n1d-table__head > span,
.n1-show--desk .n1d-table__row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: normal;
  text-align: center;
  white-space: pre-line;
}

/* 线只画在格子上。内层文字 span 只有词那么宽，边框会在整列线上再压一条短线。 */
.n1-show--desk .n1d-table__row > span {
  box-sizing: border-box;
  min-height: calc(68 * var(--n1u));
  border-top: calc(0.8 * var(--n1u)) solid #999;
  line-height: calc(28 * var(--n1u));
}

.n1-show--desk .n1d-table__text {
  display: block;
  text-align: center;
}

/* 生态格第二行是 18，行盒 23。第一行仍是格子的 22 / 行盒 28。 */
.n1-show--desk .n1d-table__sub {
  display: block;
  font-size: calc(18 * var(--n1u));
  font-weight: 500;
  line-height: calc(23 * var(--n1u));
}

/* 底线也算进行高，中心仍和上一条相距 68。 */
.n1-show--desk .n1d-table__row:last-child > span {
  min-height: calc(68.8 * var(--n1u));
  border-bottom: calc(0.8 * var(--n1u)) solid #999;
}

/* 旧 n1.css 的 .n1d-card 会把露出卡片上沿的认证条裁掉。 */
.n1d-page .n1d-card {
  overflow: visible;
}

.n1-show--desk .n1d-reviews {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(20 * var(--n1u));
  margin-top: calc(46 * var(--n1u));
}

.n1-show--desk .n1d-card {
  min-height: calc(254 * var(--n1u));
  margin: 0;
  padding: calc(26 * var(--n1u)) calc(24 * var(--n1u)) calc(22 * var(--n1u));
  border-radius: calc(20 * var(--n1u));
}

.n1-show--desk .n1d-card h3 {
  line-height: calc(28 * var(--n1u));
}

.n1-show--desk .n1d-card__top {
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.n1-show--desk .n1d-card__date {
  margin-left: calc(20 * var(--n1u));
  line-height: calc(23 * var(--n1u));
}

.n1-show--desk .n1d-stars {
  margin: 0 0 0 auto;
}

.n1-show--desk .n1d-card p {
  margin-top: calc(14 * var(--n1u));
  line-height: calc(23 * var(--n1u));
}

.n1-show--desk .n1d-reviews-band .n1d-more {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(54 * var(--n1u));
  min-height: 0;
  margin-top: calc(40 * var(--n1u));
}

/* 评论在桌面树变窄时先换列；FAQ 保持左右两列。整页小于 768 才换手机稿。 */
@container (max-width: 1100px) {
  .n1-show--desk .n1d-reviews {
    grid-template-columns: 1fr 1fr;
  }
}

@container (max-width: 800px) {
  .n1-show--desk .n1d-reviews {
    grid-template-columns: 1fr;
  }
}

/* 手机段上沿按稿是 40，不再用桌面的 72。评论区自己有内边距。 */
.n1-show--h5 .n1d-block {
  padding: calc(40 * var(--n1u)) 0 calc(28 * var(--n1u));
}

.n1-show--h5 .n1d-diff__title {
  display: none;
}

.n1-show--h5 .n1d-diff__lede {
  color: #4d4d4d;
}

/* 图下的横条是轮播位置。选中 140×4 紫，未选中 100×4。
   浅底段未选中是 #4d4d4d，深底段是 #6b6b6b。间距 18。
   三根在 375 时差不多铺满。正中那张贴齐窗口，离开正中按 --n1-bar 平移。
   栏宽超过 376×1.15 后条不再变长，整组改到栏中间，不再贴左。 */
.n1-show--h5 .n1d-h5-indicator {
  width: 100cqi;
  /* 图下原是 14。上下各留 10 给位置条热区，再把这段外边距收回，整段高度不变。 */
  margin-top: calc(4 * var(--n1u));
  margin-bottom: calc(-10 * var(--n1u));
  margin-inline: calc((100% - 100cqi) / 2);
  padding: calc(10 * var(--n1u)) 0;
  overflow: hidden;
}

.n1-show--h5 .n1d-h5-indicator .n1v-bars {
  display: flex;
  gap: calc(18 * var(--n1u));
  width: max-content;
  margin: 0;
  transform: translateX(calc(var(--n1-bar) * var(--n1u)));
  transition: transform 0.35s ease;
}

/* 376 是三根条加两道缝。乘 --n1u 上限 1.15 后约 433。
   再宽就居中。这时若还按贴边的 --n1-bar 平移，第一张会偏到右边。 */
@container (min-width: 433px) {
  .n1-show--h5 .n1d-h5-indicator .n1v-bars {
    margin-inline: auto;
    transform: none;
  }
}

.n1-show--h5 .n1v-bar {
  position: relative;
  flex: 0 0 auto;
  width: calc(100 * var(--n1u));
  height: calc(24 * var(--n1u));
  margin: calc(-10 * var(--n1u)) 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: width 0.35s ease;
}

/* 看得见的仍是 4 高的线。按钮本身 24 高，点线的上下也能切页。 */
.n1-show--h5 .n1v-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(10 * var(--n1u));
  height: calc(4 * var(--n1u));
  background: #6b6b6b;
}

.n1-show--h5 .n1d-block--paper .n1v-bar::before {
  background: #4d4d4d;
}

.n1-show--h5 .n1v-bar.is-on {
  width: calc(140 * var(--n1u));
}

.n1-show--h5 .n1v-bar.is-on::before {
  background: #6937f0;
}

/* 一屏一张 296。第一张贴左，最后一张贴右，中间张居中。
   页码在 --n1-shift，手指位移在 --n1-drag。pan-y 让横滑留给轨道，竖滑仍滚页面。 */
.n1-show--h5 .n1d-h5-window {
  position: relative;
  width: 100cqi;
  margin-top: calc(18 * var(--n1u));
  margin-inline: calc((100% - 100cqi) / 2);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.n1-show--h5 .n1d-h5-rail {
  display: flex;
  gap: calc(16 * var(--n1u));
  transform: translateX(calc(var(--n1-shift, 0px) + var(--n1-drag, 0px)));
  transition: transform 0.35s ease;
}

.n1-show--h5 .n1d-h5-window.is-dragging .n1d-h5-rail {
  transition: none;
}

/* 图片默认可拖。指针落在图上时浏览器会抢走后续移动，横滑就断了。 */
.n1-show--h5 .n1d-h5-window img,
.n1-show--h5 .n1d-h5-window video {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.n1-show--h5 .n1d-h5-slide {
  flex: 0 0 calc(296 / 375 * 100cqi);
  min-width: 0;
  cursor: pointer;
}

.n1-show--h5 .n1d-h5-slide .n1v-frame {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  border-radius: calc(8 * var(--n1u));
}

.n1-show--h5 .n1d-freedom .n1d-h5-slide .n1v-frame {
  aspect-ratio: 1 / 1;
}

/* 手机横滑箭头：26 圆，375 宽时左缘 337，所以距屏右 12，整圆落在下一张上。
   底是 #121212 的 25%，没有白圈。箭身 6×12，白描边 1.4，不透明度 0.8。 */
.n1-show--h5 .n1d-h5-window .n1v-next--overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  right: calc(12 * var(--n1u));
  border: 0;
  background: rgba(18, 18, 18, 0.25);
}

.n1-show--h5 .n1d-h5-window .n1v-next--overlay::after {
  width: calc(6 * var(--n1u));
  height: calc(12 * var(--n1u));
  margin: 0;
  border: 0;
  transform: none;
  opacity: 0.8;
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12' fill='none'%3E%3Cpath d='M0.7 0.7 L5.3 6 L0.7 11.3' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 左箭头跟右箭头同一套圆和箭身，箭身反过来。左缘 38，只在还能右滑时出现。 */
.n1-show--h5 .n1d-h5-window .n1v-next--prev {
  right: auto;
  left: calc(38 * var(--n1u));
}

.n1-show--h5 .n1d-h5-window .n1v-next--prev::after {
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
  .n1-show--h5 .n1d-h5-rail,
  .n1-show--h5 .n1d-h5-indicator .n1v-bars,
  .n1-show--h5 .n1v-bar {
    transition: none;
  }
}

/* 手机图原片很宽。新稿人物图 375×531，照片从 112 起可见 419。
   左右按 -111 / 781 裁，object-position 38% 对准可见窗中心。 */
.n1-show--h5 .n1d-phone-wrap {
  width: 100cqi;
  margin-top: calc(16 * var(--n1u));
  margin-inline: calc((100% - 100cqi) / 2);
}

.n1-show--h5 .n1d-phone {
  display: block;
  width: 100%;
  height: calc(419 * var(--n1u));
  object-fit: cover;
  object-position: 38% center;
}

.n1-show--h5 .n1d-qr {
  right: calc(20 * var(--n1u));
  bottom: calc(20 * var(--n1u));
  width: calc(108 * var(--n1u));
  height: calc(124 * var(--n1u));
  padding-top: calc(12 * var(--n1u));
  border-radius: calc(10 * var(--n1u));
}

.n1-show--h5 .n1d-qr__code {
  width: calc(62 * var(--n1u));
  height: calc(62 * var(--n1u));
  border-radius: calc(6 * var(--n1u));
}

.n1-show--h5 .n1d-qr__label {
  margin-top: calc(8 * var(--n1u));
  width: calc(84 * var(--n1u));
  font-size: calc(12 * var(--n1u));
  line-height: calc(15 * var(--n1u));
}

.n1-show--h5 .n1d-unseen {
  padding: calc(40 * var(--n1u)) 0 0;
  background: #c7c7c7;
}

.n1-show--h5 .n1d-unseen__body {
  max-width: calc(335 * var(--n1u));
  margin-top: calc(14 * var(--n1u));
  color: #121212;
  font-weight: 400;
  text-align: center;
}

.n1-show--h5 .n1d-unseen .n1v-frame--privacy {
  flex: none;
  width: 100cqi;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin-top: 0;
  margin-inline: calc((100% - 100cqi) / 2);
  border-radius: 0;
  background: #c7c7c7;
}

.n1-show--h5 .n1d-unseen .n1v-frame--privacy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, #c7c7c7, rgb(199 199 199 / 0));
}

.n1-show--h5 .n1d-matrix {
  padding-bottom: 0;
}

.n1-show--h5 .n1d-matrix .n1v-frame--matrix {
  width: 100cqi;
  max-width: none;
  aspect-ratio: 375 / 211;
  margin-top: calc(18 * var(--n1u));
  margin-inline: calc((100% - 100cqi) / 2);
  border-radius: 0;
}

/* 手机静音段高 600，文案和分贝尺叠在照片上。底图按框高摊开，比栏宽。
   默认定在 75%，左右划能看到被裁掉的头和另一侧。图未加载完时先 cover 对准 75%，避免闪到左缘。 */
.n1-show--h5 .n1d-quiet {
  box-sizing: border-box;
  min-height: calc(600 * var(--n1u));
  padding: calc(40 * var(--n1u)) 0 0;
  user-select: none;
}

.n1-show--h5 .n1d-quiet__pan {
  touch-action: pan-y;
}

/* 指针落在图上时浏览器会抢走后续移动。手势交给视口，图本身不接收。 */
.n1-show--h5 .n1d-quiet__bg {
  object-position: 75% center;
  touch-action: pan-y;
  pointer-events: none;
  -webkit-user-drag: none;
}

.n1-show--h5 .n1d-quiet__pan.is-pan .n1d-quiet__bg {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center center;
  transform: translateX(var(--n1-quiet-x, 0px));
}

.n1-show--h5 .n1d-diff,
.n1-show--h5 .n1d-grip,
.n1-show--h5 .n1d-compare {
  padding-bottom: calc(40 * var(--n1u));
}

/* 稿面这段底到下一段是 5731。两行标题底在 5692，槽外只剩 39。
   67 是一行标题（高 28）底下的空隙；标题槽已按 56 留死，再垫 67 会把最长文案下面多空一行。 */
.n1-show--h5 .n1d-freedom {
  padding-bottom: calc(39 * var(--n1u));
}

.n1-show--h5 .n1d-compare .n1d-table {
  width: calc(100cqi - calc(20 * var(--n1u)));
  margin-top: calc(14 * var(--n1u));
  margin-left: calc((100% - 100cqi) / 2 + 10 * var(--n1u));
}

.n1-show--h5 .n1d-table__head,
.n1-show--h5 .n1d-table__row {
  column-gap: calc(9 * var(--n1u));
  align-items: center;
  padding: 0;
  border-bottom: calc(1 * var(--n1u)) solid #3e3e3e;
  text-align: center;
}

/* 生态第一行 12、行盒 15，括号两行 10、行盒 13，三行共 41。
   Rich 整格 12、行盒 15。其余格子仍是 14 / 行盒 18。 */
.n1-show--h5 .n1d-table__text--12 {
  display: block;
  font-size: calc(12 * var(--n1u));
  font-weight: 500;
  line-height: calc(15 * var(--n1u));
}

.n1-show--h5 .n1d-table__text--12 .n1d-table__sub {
  display: block;
  font-size: calc(10 * var(--n1u));
  font-weight: 500;
  line-height: calc(13 * var(--n1u));
}

.n1-show--h5 .n1d-table__head {
  grid-template-columns: 104fr 128fr 105fr;
  min-height: calc(42 * var(--n1u));
  line-height: calc(18 * var(--n1u));
}

.n1-show--h5 .n1d-table__row {
  grid-template-columns: 104fr 128fr 105fr;
  min-height: calc(48 * var(--n1u));
  font-size: calc(14 * var(--n1u));
  line-height: calc(18 * var(--n1u));
}

/* 视口小于 768 换成手机树。768 及以上保持桌面树。 */
@media (max-width: 767px) {
  .n1d-page {
    --n1u: clamp(0.85px, 100vw / 375, 1.15px);
  }

  .n1d-page .n1-show--desk {
    display: none;
  }

  .n1d-page .n1-show--h5 {
    display: block;
  }
}

/* Remote、容量、材质整项移除后，手动与支架各自按单列展示，不留下空列。 */
.n1d-page--hardware .n1d-hardware-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: calc(40 * var(--n1u));
  margin-top: calc(40 * var(--n1u));
}

.n1d-page--hardware .n1d-hardware-card .n1v-h2 {
  margin-top: 0;
}

.n1d-page--hardware .n1d-hardware-card .n1v-frame {
  margin-top: calc(20 * var(--n1u));
}

/* PC 删减版只有单项媒体，不再使用原多项布局的半栏宽度及右对齐。
   沿用原媒体框 740/490 的宽度上限和比例，窄栏自然收缩；H5 与完整稿不匹配。 */
.n1d-page--hardware .n1-show--desk .n1d-hardware-card .n1v-frame {
  max-width: 100%;
  margin-inline: auto;
}

.n1d-page--hardware .n1-show--desk .n1d-hardware-card .n1v-frame--connect {
  width: min(100%, 740px);
}

.n1d-page--hardware .n1-show--desk .n1d-hardware-card .n1v-frame--freedom {
  width: min(100%, 490px);
  margin-top: 0;
}

/* 手动说明与图片共用栏宽并居中；支架已有区块主标题，PC 不再重复小标题。 */
.n1d-page--hardware .n1-show--desk .n1d-hardware-card .n1v-body {
  max-width: min(100%, 740px);
  text-align: center;
}

.n1d-page--hardware .n1-show--desk .n1d-freedom .n1d-hardware-card .n1v-h2 {
  display: none;
}

/* 静音背景与关联标题/正文一起删除后，分贝尺不再留标题间距；参数说明沿用现有间距。
   手机取消背景专属高度；FAQ 没有人物图时收回整列。 */
.n1d-page--hardware .n1-show--desk .n1d-quiet .n1d-meter,
.n1d-page--hardware .n1-show--h5 .n1d-quiet .n1d-meter {
  margin-top: 0;
}

.n1d-page--hardware .n1-show--desk .n1d-quiet__note {
  margin-top: calc(20 * var(--n1u));
}

.n1d-page--hardware .n1-show--h5 .n1d-quiet {
  min-height: 0;
  padding-bottom: calc(40 * var(--n1u));
}

.n1d-page--hardware .n1d-faq__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* 通用图片查看器。数值来自「查看图片.json」里盖在评论弹层上的那一层。
   1920×1276 只是验收视口。图最大 740×987，随窗口缩小，不把画板宽写成页面宽。
   遮罩 #121212 / 75%，没有模糊。圆 50，#121212 / 50%，无描边、无阴影。
   关闭圆在图上方，间隙 20。左右圆在图左右缘外侧 20，垂直居中。
   左圆是右圆整组旋转 180，间距与右圆相同。多于一张时左右都在，到头绕回。
   导出的叉和尖角没有路径，按包围盒和描边还原：叉 20.75、尖角路径 12×22，描边 2，圆角端点。 */

.store-html:has(.image-viewer),
.home-html:has(.image-viewer) {
  /* 页层 z-index 是 2，查看器在里面。抬到 5 才能盖住顶栏，和评论弹层同一层。 */
  z-index: 5;
}

.image-viewer {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    calc(16px + env(safe-area-inset-right, 0px))
    calc(16px + env(safe-area-inset-bottom, 0px))
    calc(16px + env(safe-area-inset-left, 0px));
  background: rgba(18, 18, 18, 0.75);
  color: #fff;
}

.image-viewer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
}

.image-viewer__hit {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.5);
  color: #fff;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.image-viewer__close {
  margin-bottom: 20px;
}

.image-viewer__stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}

.image-viewer__photo {
  display: block;
  grid-area: 1 / 1;
  width: auto;
  height: auto;
  /* 直接限制图片，避免格子宽度反过来依赖图片。单张不用给箭头让位。 */
  max-width: min(740px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  /* 50 的关闭圆 + 20 的间隙，再加遮罩上下 16。 */
  max-height: min(987px, calc(100dvh - 70px - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  object-fit: contain;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}

/* 多张时左右各让出 50 的圆和 20 的间隙，箭头贴齐视口边，不把页面撑出横滑。 */
.image-viewer--paged .image-viewer__photo {
  max-width: min(740px, calc(100vw - 140px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
}

.image-viewer__prev,
.image-viewer__next {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.image-viewer__prev {
  left: -70px;
}

.image-viewer__next {
  right: -70px;
}

.image-viewer__glyph {
  display: block;
  overflow: visible;
}

.image-viewer__glyph--x {
  width: 20.75px;
  height: 20.75px;
}

.image-viewer__glyph--chevron {
  width: 14px;
  height: 24px;
}

.image-viewer__prev .image-viewer__glyph--chevron {
  transform: scaleX(-1);
}

.image-viewer__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 桌面才用关闭圆。手机返回在媒体查询里打开。 */
.image-viewer__back {
  display: none;
}

/* 手机没有放大稿。整页铺满，实底 #121212，不再用 75% 遮罩。
   返回与评论手机页同一套：上 15、左 25、图 20×30。--n1u 只写在查看器上。
   图贴齐视口，外侧没有 20 的空位，左右圆改到图内 20，避免滑出屏幕。 */
@media (max-width: 767px) {
  .image-viewer {
    --n1u: clamp(0.85px, 100vw / 375, 1.15px);
    align-items: stretch;
    padding: 0;
    background: #121212;
    touch-action: none;
    overscroll-behavior: none;
  }

  .image-viewer__col {
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .image-viewer__close {
    display: none;
  }

  .image-viewer__back {
    position: absolute;
    z-index: 2;
    top: calc(15 * var(--n1u));
    left: calc(25 * var(--n1u));
    display: block;
    width: calc(20 * var(--n1u));
    height: calc(30 * var(--n1u));
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    appearance: none;
    outline: none;
  }

  .image-viewer__back img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .image-viewer__stage {
    justify-items: center;
    width: 100%;
  }

  .image-viewer__photo,
  .image-viewer--paged .image-viewer__photo {
    max-width: 100%;
    max-height: 100dvh;
  }

  .image-viewer__prev {
    left: 20px;
  }

  .image-viewer__next {
    right: 20px;
  }
}

/* 大图查看器加载与叠化样式（Baseline v10.107）：保留舞台几何尺寸与既有按钮层。 */
.image-viewer__photo--pending {
  opacity: 0;
}

.image-viewer__photo--fade {
  animation: image-viewer-fade 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.image-viewer__photo--outgoing {
  animation: image-viewer-fade-out 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes image-viewer-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes image-viewer-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.image-viewer__photo--incoming {
  grid-area: 1 / 1;
  place-self: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.image-viewer__photo--incoming.is-ready {
  animation: image-viewer-fade 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.image-viewer__feedback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  pointer-events: none;
}

.image-viewer__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  animation: image-viewer-spin 0.75s linear infinite;
}

.image-viewer__retry {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes image-viewer-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer__photo--fade,
  .image-viewer__photo--outgoing,
  .image-viewer__photo--incoming.is-ready,
  .image-viewer__spinner {
    animation: none !important;
  }

  .image-viewer__photo--outgoing {
    opacity: 0;
  }

  .image-viewer__photo--incoming.is-ready {
    opacity: 1;
  }
}

/* 全站页脚。Home 与商品详情共用；站点配置与商品详情入口共同决定附加卡标（W-F003 / W-F020 / C-79）。 */
.site-footer {
  padding: 48px 24px 120px;
  text-align: center;
  color: #999;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.site-footer__social-link {
  display: inline-flex;
  flex-shrink: 0;
}

.site-footer__social-img {
  display: block;
  width: 38px;
  height: 38px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
}

.site-footer__legal {
  padding: 0;
  border: 0;
  background: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}

/* 商品专用卡标行：协议上方居中，间距与高度由现有页脚 Token 传入。 */
.site-footer__product-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--footer-info-gap);
  margin-bottom: var(--footer-info-gap);
  text-align: center;
}

/* 原图完整等比显示；窄屏收缩而不裁切，Contact 保留在协议链接行。 */
.site-footer__cards {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.site-footer__copy-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.site-footer__copy-mark {
  font-size: 20px;
  font-weight: 300;
}

.site-footer__age {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 2px solid #f7597a;
  border-radius: 50%;
  line-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .site-footer__social {
    gap: 12px;
  }

  .site-footer__social-img {
    width: 28px;
    height: 28px;
  }

  .site-footer__copy-mark {
    font-size: 14px;
  }
}

/* 全站动效按业务状态运行，不跟随系统动画偏好静止。
   年龄门、登录、Cookie、退出确认、Notice、购物车滑层；设备面板与固件样式由设备包维护。
   C-62：准入检查期间隐藏业务根；受限时不能露出旧内容。
   W-F022：年龄门使用模态顶层与既有登录遮罩，背景可见但不可交互；协议页豁免年龄门。
   W-F006/W-F009：登录覆盖保留打开的购物车；条款阅读按后置 DOM 覆盖登录。
   W-F006/W-F020/W-F023：H5 固定层按可见视口避让浏览器工具栏，登录仍贴底。
   W-F015/W-F020：退出确认与远程控制桌面保持 474×260；窗口 <768 卡片收进视口并水平垂直居中，标题、说明和按钮改流式。 */
.site-overlays {
  position: relative;
  z-index: 10000;
}

.age-gate {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: auto;
  overscroll-behavior: contain;
}

/* 门禁只在客户端挂；未验证先藏站点内容，避免 SSR 正文在遮罩前露出来。 */
html[data-access-pending] .onvessi-root {
  visibility: hidden;
}

html[data-access-blocked] .onvessi-root {
  display: none;
}

html[data-age-ok] .age-gate {
  display: none !important;
}

/* 原生模态顶层隔离焦点和点击；遮罩复用 loginScrim，不隐藏或暂停正文资源。 */
.age-gate:not([open]) {
  display: none;
}

.age-gate::backdrop {
  background: rgba(18, 18, 18, 0.75);
}

/* 等待年龄弹窗挂载时也锁住页面；独立协议页由启动桥解除此标记。 */
html[data-age-blocking],
html[data-age-blocking] body {
  overflow: hidden;
}

.age-gate__card {
  position: relative;
  width: 306px;
  height: 280px;
  border-radius: 20px;
  background: #2a2a2a;
}

.age-gate__title {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
}

.age-gate__body {
  position: absolute;
  top: 69px;
  left: 33px;
  width: 240px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.age-gate__ask {
  position: absolute;
  top: 107px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
  text-align: center;
}

.age-gate__yes,
.age-gate__no {
  position: absolute;
  left: 53px;
  width: 200px;
  height: 42px;
  border-radius: 50px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.age-gate__yes {
  top: 150px;
  border: 1px solid #fff;
}

.age-gate__yes:hover {
  background: rgba(105, 55, 240, 0.6);
}

.age-gate__yes:active {
  background: #6937f0;
  border-color: transparent;
}

.age-gate__no {
  top: 208px;
  border: 1px solid #fff;
}

.login-layer,
.logout-layer,
.remote-layer,
.legal-reader {
  position: fixed;
  inset: 0;
  z-index: 42;
}

/* C-12：未登录 Checkout 保留购物车，但登录须盖过其 43 层遮罩；条款同为 44 且后挂载。 */
.login-layer {
  z-index: 44;
}

.login-layer__scrim,
.logout-layer__scrim,
.legal-reader__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
  cursor: pointer;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 680px;
  height: 503px;
  margin: 8vh auto 0;
}

.login-card__icon {
  position: absolute;
  top: 0;
  left: 285px;
  width: 110px;
  height: 110px;
  z-index: 2;
}

/* 登录弹窗.json「渐变色」：登录与固件卡共用，不再请求背景 WebP。 */
.login-card__panel {
  background-color: #121212;
  background-image:
    radial-gradient(ellipse 364.48px 130px at calc(50% + 0.91px) -29px, rgba(247, 89, 122, 0.4), rgba(247, 89, 122, 0)),
    linear-gradient(to bottom, #6937f0 0, #121212 328px);
  background-repeat: no-repeat;
}

.login-card__panel {
  position: absolute;
  top: 55px;
  left: 0;
  width: 680px;
  height: 448px;
  overflow: hidden;
  border-radius: 30px;
}

.login-card__title {
  position: absolute;
  top: 105px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.login-card__sub {
  position: absolute;
  top: 145px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  text-align: center;
}

.login-card__google-slot {
  position: absolute;
  top: 222px;
  left: 199px;
  width: 282px;
  height: 40px;
}

.login-card__google-slot--locked {
  opacity: 0.5;
}

.login-card__auth {
  position: relative;
  display: block;
  width: 282px;
  height: 40px;
  border: 0;
  border-radius: 50px;
  background: #fff;
  color: #121212;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.login-card__panel > .login-card__auth {
  position: absolute;
  top: 284px;
  left: 199px;
}

.login-card__auth--locked {
  opacity: 0.5;
  cursor: default;
}

.login-card__auth-icon,
.login-card__spinner {
  position: absolute;
  left: 36px;
  top: 9px;
  width: 22px;
  height: 22px;
}

.login-card__spinner {
  border: 2px solid #121212;
  border-top-color: transparent;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

.login-card__auth span {
  display: block;
  text-align: center;
  line-height: 40px;
}

.login-card__gis {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 条款未勾时只拦截点击以触发提示，不覆盖 GIS 官方按钮的外观。 */
.login-card__google-terms-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
}

.login-card__terms {
  position: absolute;
  top: 374px;
  left: 182px;
  display: flex;
  align-items: flex-start;
  width: 315px;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

.login-card__terms--shake {
  animation: terms-shake 420ms ease-in-out;
}

.login-card__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  padding: 0;
  border: 1px solid #999;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  cursor: pointer;
}

.login-card__check--on {
  border: 0;
  background: #6937f0;
}

.login-card__legal {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.logout-card {
  position: relative;
  z-index: 1;
  width: 474px;
  height: 260px;
  margin: 20vh auto 0;
  border-radius: 20px;
  background: #262626;
}

.logout-card__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logout-card__x {
  width: 18px;
  height: 18px;
}

.logout-card__title {
  position: absolute;
  top: 40px;
  left: 30px;
  right: 30px;
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.logout-card__msg {
  position: absolute;
  top: 98px;
  left: 50px;
  right: 50px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.logout-card__confirm,
.logout-card__cancel {
  position: absolute;
  top: 168px;
  width: 130px;
  height: 42px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.logout-card__confirm {
  left: 95px;
  border: 0;
  background: #6937f0;
}

.logout-card__cancel {
  left: 249px;
  border: 2px solid #6937f0;
  background: transparent;
  font-weight: 400;
}

.remote-card__msg {
  max-height: 62px;
  overflow: auto;
  overflow-wrap: anywhere;
}

.legal-reader {
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-reader__sheet {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 20px;
  background: #2a2a2a;
}

.legal-reader .legal-page {
  height: 100%;
}

@media (max-width: 767px) {
  .legal-reader__sheet {
    height: min(
      760px,
      max(0px, calc(var(--onvessi-visible-height, 100dvh) - 32px))
    );
  }
}

.notice-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.notice-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 208px;
  min-height: 150px;
  padding: 30px 18px 28px;
  border: 0;
  border-radius: 20px;
  background: #f22a2a2a;
  background: rgba(42, 42, 42, 0.95);
  cursor: pointer;
}

.notice-card__icon {
  width: 40px;
  height: 40px;
}

.notice-card__text {
  width: 172px;
  margin: 16px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

/* H5 低电：稿面 134 高、64×18 电池标 + 百分比，文案距顶 68。 */
.notice-card--low-battery {
  min-height: 134px;
}

.notice-card__battery {
  position: relative;
  display: block;
  width: 64px;
  height: 18px;
}

.notice-card__battery-body {
  position: absolute;
  left: 0;
  top: 1px;
  box-sizing: border-box;
  width: 26px;
  height: 16px;
  border: 1px solid #fff;
  border-radius: 3px;
}

.notice-card__battery-fill {
  position: absolute;
  left: 2px;
  top: 3px;
  width: 4px;
  height: 12px;
  border-radius: 20px;
  background: #f7597a;
}

.notice-card__battery-cap {
  position: absolute;
  left: 29px;
  top: 4.5px;
  width: 3px;
  height: 9px;
  background: #fff;
}

.notice-card__battery-pct {
  position: absolute;
  left: 38px;
  top: 0;
  width: 26px;
  height: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
}

.notice-card--low-battery .notice-card__text {
  margin-top: 20px;
}

@keyframes terms-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  16% {
    transform: translateX(8px);
  }
  32% {
    transform: translateX(-8px);
  }
  48% {
    transform: translateX(6px);
  }
  64% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(3px);
  }
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

/* W-F009：右滑层 440，空车/有货共用灰底栏；删除确认盖在滑层上。 */
.cart-layer {
  position: fixed;
  inset: 0;
  z-index: 43;
}

.cart-layer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
  cursor: pointer;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  background: #eee;
  color: #121212;
  box-sizing: border-box;
}

/* 桌面端仅展示右上 × 关闭按钮，H5 在 <768px 改为顶部全屏白底 < Back 栏。 */
.cart-panel__mobile-top {
  display: none;
}

.cart-panel__inner {
  padding: 84px 30px 40px;
}

.cart-panel__head {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.cart-panel__title {
  flex: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.cart-panel__close {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cart-panel__close-icon {
  width: 18px;
  height: 18px;
}

.cart-panel__empty {
  text-align: center;
}

.cart-panel__empty-art {
  width: 200px;
  height: 200px;
}

.cart-panel__empty-text {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
}

.cart-line {
  display: flex;
  align-items: flex-start;
  min-height: 56px;
  margin-bottom: 20px;
}

.cart-line__thumb {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e6e6;
}

.cart-line__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line__meta {
  flex: 1;
  min-width: 0;
  margin: 0 16px;
}

.cart-line__name {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line__ops {
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.cart-qty {
  display: flex;
  align-items: center;
  width: 57px;
  height: 24px;
  margin-right: 10px;
  border-radius: 24px;
  background: #fff;
}

.cart-qty__hit {
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.cart-qty__hit--off {
  color: #999;
  cursor: default;
}

.cart-qty__hit--loading {
  cursor: wait;
}

/* 请求中只在点击侧替换符号，维持数量胶囊原有宽度与数字位置。 */
.cart-qty__spinner {
  display: block;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin: auto;
  border: 2px solid #121212;
  border-right-color: transparent;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

.cart-qty__n {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.cart-line__off {
  margin-right: 10px;
  color: #999;
  font-size: 14px;
}

.cart-line__trash {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cart-line__trash-icon {
  width: 18px;
  height: 18px;
}

.cart-line__price {
  margin-top: 16px;
  font-size: 16px;
  line-height: 20px;
}

.cart-panel__rule {
  height: 1.2px;
  margin: 20px 0;
  background: #ccc;
}

.cart-panel__totals {
  margin-bottom: 26px;
}

.cart-panel__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
}

.cart-panel__row strong {
  font-size: 20px;
  font-weight: 500;
}

.cart-panel__row--muted {
  color: #999;
}

.cart-panel__cta {
  display: block;
  width: 380px;
  max-width: 100%;
  height: 48px;
  margin: 0 auto;
  border: 0;
  border-radius: 50px;
  background: #6937f0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.cart-remove {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
}

.cart-remove__card {
  position: relative;
  width: 306px;
  height: 162px;
  padding: 30px 16px;
  box-sizing: border-box;
  border-radius: 20px;
  background: #2a2a2a;
  color: #fff;
}

.cart-remove__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.cart-remove__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.cart-remove__yes,
.cart-remove__no {
  flex: 1;
  height: 42px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.cart-remove__yes {
  border: 0;
  background: #6937f0;
  color: #fff;
}

.cart-remove__no {
  border: 2px solid #6937f0;
  background: transparent;
  color: #fff;
}

@media (max-width: 767px) {
  .cart-layer__scrim {
    display: none;
  }

  .cart-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cart-panel__mobile-top {
    display: block;
    flex-shrink: 0;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .cart-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px 0 16px;
    border: 0;
    background: transparent;
    color: #121212;
    font-family: inherit;
    cursor: pointer;
  }

  .cart-back__icon {
    width: 7px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .cart-back__label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
  }

  .cart-panel__close {
    display: none;
  }

  .cart-panel__title {
    font-size: 18px;
    line-height: 23px;
  }

  .cart-panel__inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px max(32px, env(safe-area-inset-bottom));
  }

  /* 白底页面上数量步进胶囊改用已有 #eeeeee 浅灰底，避免白底融边。 */
  .cart-qty {
    background: #eeeeee;
  }
}

/* H5 登录复用桌面内容与背景；整卡在短屏滚动，圆标仍压住面板上沿。 */
@media (max-width: 767px) {
  .login-layer {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .login-card {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    margin: auto 0 0;
    padding-top: 55px;
  }

  .login-card__icon {
    left: 50%;
    transform: translateX(-50%);
  }

  .login-card__panel {
    position: relative;
    top: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 105px 16px calc(30px + env(safe-area-inset-bottom));
    border-radius: 30px 30px 0 0;
  }

  .login-card__title,
  .login-card__sub {
    position: static;
    width: 100%;
  }

  .login-card__sub {
    margin-top: 16px;
  }

  .login-card__google-slot {
    /* GIS 官方按钮和条款点击层共用槽内定位上下文。 */
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 40px;
    width: min(282px, 100%);
    margin: 30px auto 0;
  }

  .login-card__panel > .login-card__auth {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 40px;
    width: min(282px, 100%);
    margin: 22px auto 0;
  }

  .login-card__terms {
    position: static;
    flex-shrink: 0;
    width: min(315px, 100%);
    margin: 30px auto 0;
  }
}

/* W-F023：沿用 OnvessiDimens.cookie*、cookiePanelFill/Fade、ctaMarketing 与原面板字阶。
   HTML/Wasm 同一视觉规格；只在 768px 以下重排，交互元素保留键盘焦点。 */
.cookie-panel { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; color: #fff; pointer-events: auto; padding: 31px 24px 20px; box-sizing: border-box; max-height: 100dvh; overflow: auto; background: linear-gradient(to bottom, #2a2a2a00, #2a2a2a 164px); }
.cookie-panel::before { content: ''; position: absolute; z-index: -1; inset: 31px 0 0; background: #2a2a2a; }
.cookie-panel__content { max-width: 1054px; margin: 0 auto; min-height: 113px; display: flex; align-items: center; gap: 24px; }
.cookie-panel__copy { flex: 1; }
.cookie-panel h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.cookie-panel p { font-size: 14px; line-height: 18px; margin: 0; max-width: 540px; }
.cookie-panel button { color: inherit; font-family: inherit; cursor: pointer; }
.cookie-panel__actions { display: flex; align-items: center; gap: 12px; }
.cookie-panel__button { min-width: 130px; min-height: 42px; background: transparent; border: 2px solid #6937f0; border-radius: 999px; font-size: 16px; }
.cookie-panel__button--filled { background: #6937f0; font-weight: 600; }
.cookie-panel__preferences { font-size: 14px; line-height: 18px; text-decoration: underline; display: flex; align-items: center; gap: 6px; border: 0; background: none; min-height: 44px; }
.cookie-panel__preferences img { width: 6px; height: 10px; }
.cookie-panel--preferences { height: 554px; padding-top: 61px; padding-bottom: 40px; }
.cookie-panel--preferences .cookie-panel__content { display: block; min-height: 0; }
.cookie-panel--preferences h2 { line-height: 25px; margin-bottom: 18px; }
.cookie-panel--preferences .cookie-panel__actions { justify-content: flex-end; margin-top: 30px; max-width: 936px; }
.cookie-panel__rows { max-width: 936px; }
.cookie-panel__row { position: relative; display: flex; gap: 6px; text-align: left; padding: 0; border: 0; background: none; width: 100%; height: 92px; }
.cookie-panel__row:first-child { height: 94px; }
.cookie-panel__row:not(:last-child)::after { content: ''; position: absolute; bottom: 16px; left: 0; right: 0; border-bottom: .6px solid #999; }
.cookie-panel__row:last-child { height: 60px; }
.cookie-panel__row img { width: 14px; height: 14px; margin-top: 2px; }
.cookie-panel__row strong { display: block; font-size: 14px; line-height: 18px; font-weight: 500; margin-bottom: 12px; }
.cookie-panel__row span span { display: block; font-size: 12px; line-height: 15px; }
.cookie-panel__row:disabled { cursor: default; opacity: 1; }
@media (max-width: 767px) {
  .cookie-panel {
    /* 用可见底边定位，避开 iPhone 浏览器底栏；内容过高时仍可在面板内滚动。 */
    top: calc(var(--onvessi-visible-top, 0px) + var(--onvessi-visible-height, 100dvh));
    bottom: auto;
    transform: translateY(-100%);
    max-height: var(--onvessi-visible-height, 100dvh);
    padding: 31px 16px max(16px, env(safe-area-inset-bottom));
  }
  .cookie-panel__content { display: block; }
  .cookie-panel h2 { font-size: 18px; }
  .cookie-panel__actions { margin-top: 16px; flex-wrap: wrap; }
  .cookie-panel__button { min-height: 44px; flex: 1; }
  .cookie-panel__preferences { width: 100%; justify-content: flex-end; }
  .cookie-panel--preferences { height: auto; }
  .cookie-panel__row, .cookie-panel__row:first-child, .cookie-panel__row:last-child { height: auto; padding: 16px 0; }
  .cookie-panel__row:not(:last-child)::after { bottom: 0; }
}

/* W-F027/C-45：注销冷静期全局恢复卡，完全对齐原 AccountDeletionRecoveryView token。 */
.account-deletion-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  overflow-y: auto;
  background: rgba(18, 18, 18, 0.75);
  pointer-events: auto;
}

.account-deletion-card {
  width: min(356px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 30px;
  border-radius: 20px;
  background: #2a2a2a;
  color: #ffffff;
  text-align: center;
  flex: 0 0 auto;
}

.account-deletion-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: #ffffff;
}

.account-deletion-card__body {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #cccccc;
}

.account-deletion-card__error {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #f7597a;
}

.account-deletion-card__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.account-deletion-card__btn {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  cursor: pointer;
}

.account-deletion-card__btn--filled {
  border: 0;
  background: #6937f0;
  font-weight: 600;
}

.account-deletion-card__btn--outline {
  border: 1.4px solid #6937f0;
  background: transparent;
  font-weight: 400;
}

.account-deletion-card__btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.account-deletion-card__spinner {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: onvessi-deletion-spin 0.75s linear infinite;
}

@keyframes onvessi-deletion-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  /* 固定层共用浏览器真正可见的上下边，避免 iPhone Chrome 工具栏盖住操作。 */
  .age-gate,
  .account-deletion-layer,
  .login-layer,
  .logout-layer,
  .remote-layer,
  .legal-reader,
  .notice-layer,
  .cart-layer {
    inset: var(--onvessi-visible-top, 0px) 0 auto;
    height: var(--onvessi-visible-height, 100dvh);
  }

  /* 474 固定宽会裁出手机视口。主轴保持横向，垂直居中走交叉轴。
     纵向 flex 的 margin:auto / 网格 1fr 会把卡片推出滚动口；遮罩又几乎是黑的，
     看起来像连接后点击没有弹窗。未连接的 tips 走 notice-layer，不经过这张卡。
     卡片高出视口时 safe center 改回顶部对齐，顶部仍可滚到。 */
  .account-deletion-layer,
  .logout-layer,
  .remote-layer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-items: safe center;
    box-sizing: border-box;
    padding:
      max(16px, env(safe-area-inset-top))
      16px
      max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .logout-card {
    flex: 0 0 auto;
    align-self: center;
    align-self: safe center;
    width: min(474px, 100%);
    max-width: 474px;
    min-width: 0;
    height: auto;
    margin: 0;
    box-sizing: border-box;
    padding: 48px 16px 24px;
  }

  .logout-card__title,
  .logout-card__msg {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }

  .logout-card__msg {
    margin-top: 16px;
    overflow-wrap: anywhere;
  }

  .remote-card__msg {
    max-height: 96px;
  }

  .logout-card__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
  }

  .logout-card__confirm,
  .logout-card__cancel {
    position: static;
    left: auto;
    top: auto;
    box-sizing: border-box;
    flex: 1 1 0;
    width: auto;
    max-width: 130px;
    height: 44px;
    padding: 0;
    font-family: inherit;
  }
}

/* 全站动效按业务状态运行，不跟随系统动画偏好静止。
   Live 直播间 / Send tip（W-F013/C-10/C-52/C-53）。
   整个房间取消浏览器触摸高亮，设备连接状态及加载、禁用视觉仍由原业务样式控制。
   金币卡外观在 coin_gate.css，本文件负责可见房间内的视频与交互层布局。
   数值对齐 live弹窗设计.json、live相关操作和页面设计.json。
   公屏按信息弹幕规则：名称绿/黄/紫，正文白；自己打赏粉框、别人黄框，
   名称与金币跟框同色，tipped 和礼物名白色，框外同色发光。会员名用现有皇冠切图。
   Send tip 的 Sent 进度扫光按用户提供的视频互动截图：青绿扫灰底时礼物名和 Sent 仍在上层，扫完后列表向下收起。
   画板 1920 只作对照；桌面按可用视口和首次确认的房间比例放大，控件不随画面缩放。
   两层遮罩保留拦截，不显示可点击关闭的指针。
   窗口 ≥768 的普通房间用房间外 32 关闭圆；窄屏和全屏仍用画面内返回。
   窗口宽度 <768 时直播间铺满视口，顶栏和输入条留在安全区内。
   桌面短屏限制房间高度，视频完整显示，观看控件按锁定比例定位；窄屏保留贴边和安全区布局。 */

.live-layer {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;
  /* 房间控件是舞台的兄弟节点，需从公共父层继承透明高亮，不能只处理视频舞台。 */
  -webkit-tap-highlight-color: transparent;
  font-family: "Google Sans Flex", sans-serif;
}

.live-layer--full {
  padding: 0;
  background: #121212;
}

.live-layer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
}

/* 全站 PC 外置关闭圆（与弹窗关闭规范对齐）；窄屏和全屏不生成该盒子、隐藏外置按钮并保留房内返回。 */
.live-layer .dialog-close-frame {
  display: contents;
}

.live-layer .dialog-close {
  display: none;
}

.live-room {
  /* 按现有 720×1280 片源以 9:16 占位；首个有效宽高到达后锁定，离房前不随切片改变。 */
  --live-video-ratio: 0.5625;
  position: relative;
  z-index: 1;
  /* 普通房间在四边各留 16px 的区域内随视频放大，不固定设计稿宽高上限。
     小屏保留原有 375px 基础宽度供礼物/金币弹层使用；观看控件仍按实际画面收紧。 */
  width: min(calc(100vw - 32px), max(375px, calc((100dvh - 32px) * var(--live-video-ratio))));
  height: min(calc(100dvh - 32px), calc((100vw - 32px) / var(--live-video-ratio)));
  aspect-ratio: var(--live-video-ratio);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background: #0f0136;
  /* 为观看控件提供真实房间宽高，用于计算 contain 后的视频左右留边。 */
  container-type: size;
}

@media (min-width: 768px) {
  .live-layer:not(.live-layer--full) .dialog-close-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    box-sizing: border-box;
    padding-top: 42px;
    max-width: 100%;
    min-width: 0;
    z-index: 1;
    pointer-events: none;
  }

  .live-layer:not(.live-layer--full) .dialog-close-frame > * {
    pointer-events: auto;
  }

  .live-layer:not(.live-layer--full) .dialog-close-frame--live {
    flex: none;
    width: max-content;
    max-width: 100%;
  }

  .live-layer:not(.live-layer--full) .dialog-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.5);
    cursor: pointer;
  }

  .live-layer:not(.live-layer--full) .dialog-close:disabled {
    opacity: 0.5;
    cursor: progress;
  }

  .live-layer:not(.live-layer--full) .dialog-close__glyph {
    position: relative;
    width: 16.14px;
    height: 16.14px;
    filter: drop-shadow(0 0 4px rgba(18, 18, 18, 0.25));
  }

  /* 45° 线宽 2，旋转后的外框等于 16.14。 */
  .live-layer:not(.live-layer--full) .dialog-close__glyph::before,
  .live-layer:not(.live-layer--full) .dialog-close__glyph::after {
    content: "";
    position: absolute;
    top: calc((16.14px - 2px) / 2);
    left: calc((16.14px - (16.14px * 1.414213562 - 2px)) / 2);
    width: calc(16.14px * 1.414213562 - 2px);
    height: 2px;
    border-radius: 1px;
    background: #fff;
  }

  .live-layer:not(.live-layer--full) .dialog-close__glyph::before {
    transform: rotate(45deg);
  }

  .live-layer:not(.live-layer--full) .dialog-close__glyph::after {
    transform: rotate(-45deg);
  }

  /* 仅在桌面非全屏显示卡外关闭圆时隐藏房内返回按钮；全屏与窄屏保留原返回。 */
  .live-layer:not(.live-layer--full) .dialog-close-frame--live .live-back {
    display: none;
  }

  .live-room:not(.live-room--full) {
    /* 横屏视频也保留现有礼物面板的 453px 高度；矮窗口优先服从可用高度，避免溢出视口。 */
    min-height: min(453px, calc(100dvh - 32px));
  }

  .dialog-close-frame--live > .live-room:not(.live-room--full) {
    /* 关闭圆占房间上方 42。横屏仍保留礼物面板 453 高，矮窗口优先留在视口内。 */
    width: min(calc(100vw - 32px), max(375px, calc((100dvh - 74px) * var(--live-video-ratio))));
    height: min(calc(100dvh - 74px), calc((100vw - 32px) / var(--live-video-ratio)));
    max-height: calc(100dvh - 74px);
    min-height: min(453px, calc(100dvh - 74px));
  }
}

.live-room--full {
  width: min(100vw, calc(100dvh * var(--live-video-ratio)));
  height: min(100dvh, calc(100vw / var(--live-video-ratio)));
  max-height: 100dvh;
  max-width: 100vw;
}

.live-room__canvas {
  /* 按已锁定的房间比例计算左右留边，观看控件不因后续片段比例不同而跳动。
     竖片受高度限制时画面会窄于外框；交互控件扣除左右留边，不能继续铺满外框。
     横片的左右留边为零，仍保留房间最小高度给上下控件；礼物面板沿用整个房间宽度。 */
  --live-content-inset: max(0px, calc((100cqw - 100cqh * var(--live-video-ratio)) / 2));
  position: absolute;
  /* 交互层始终等于可见房间，底部控件不能定位到被 max-height 裁掉的固定画布。 */
  inset: 0;
}

.live-stage {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #0f0136;
  cursor: pointer;
  /* 舞台接收点按切换 HUD；浏览器默认触摸高亮会把整段视频盖成蓝色。 */
  -webkit-tap-highlight-color: transparent;
}

.live-stage__cover,
.live-stage__video,
.live-stage__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.live-stage__fallback {
  background: #0f0136;
}

.live-stage__cover,
.live-stage__fallback {
  /* 首播时盖住准备中的视频；播放槽升到同层后按 DOM 顺序显示在封面上。 */
  z-index: 1;
}

.live-stage__video {
  /* 桌面短屏按原始比例完整显示，剩余区域露出舞台背景，不裁视频、不缩小控件。 */
  object-fit: contain;
  /* 视频留边仍要盖住首播封面及旧槽，避免透出另一段画面。 */
  background: #0f0136;
  /* 空槽透明；签名视频挂载后保持可绘制，由层级控制露出时机。 */
  opacity: 0;
  z-index: 0;
}

.live-stage__top-fade {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 118px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.75) 0%,
    rgba(18, 18, 18, 0) 100%
  );
  pointer-events: none;
}

.live-stage__bottom-fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 206px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0) 0%,
    rgba(18, 18, 18, 0.6) 62%,
    rgba(18, 18, 18, 0.7) 100%
  );
  pointer-events: none;
}

/* 进房与缓冲：舞台正中的白色转圈，不带文案。 */
.live-buffer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.live-buffer__spin {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: live-spin 0.8s linear infinite;
}

@keyframes live-spin {
  to {
    transform: rotate(360deg);
  }
}

.live-hud {
  position: absolute;
  left: var(--live-content-inset);
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: calc(100% - 2 * var(--live-content-inset));
  height: 74px;
  padding: 20px 16px 0;
  box-sizing: border-box;
  pointer-events: none;
}

.live-hud > * {
  pointer-events: auto;
}

.live-hud__gap {
  flex: 1;
  min-width: 8px;
}

.live-back {
  flex: none;
  width: 22px;
  height: 32px;
  margin-right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.live-back__ic {
  display: block;
  width: 22px;
  height: 32px;
}

.live-who {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 4px 12px 4px 4px;
  border-radius: 50px;
  background: rgba(18, 18, 18, 0.5);
  gap: 6px;
  min-width: 0;
}

.live-who__avatar-wrap {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
}

.live-who__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #262626;
}

.live-who__avatar--empty {
  background: #262626;
}

.live-who__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px transparent;
  background: linear-gradient(180deg, #f7597a 0%, #6937f0 100%);
  border: 1px solid transparent;
  /* 两个不透明遮罩排除共同的内圈，只绘原有 1px 渐变边框，避免背景盖住头像。 */
  -webkit-mask: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(#fff, #fff) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(#fff, #fff) border-box;
  mask-composite: exclude;
  pointer-events: none;
}

.live-who__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.live-who__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.live-who__sub {
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-who__viewers {
  /* 小画面先省略主播信息，避免观众数字的最小内容宽度把右侧操作按钮挤出画面。 */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 300;
  line-height: 14px;
  color: #cccccc;
  white-space: nowrap;
}

.live-live-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 13px;
  border-radius: 4px;
  background: #f7597a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
}

.live-live-tag--full {
  width: 40px;
  height: 20px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 15px;
  margin-left: 8px;
}

.live-hud--full .live-who {
  height: 38px;
}

.live-hud--full .live-who__avatar-wrap,
.live-hud--full .live-who__avatar {
  width: 30px;
  height: 30px;
}

.live-mute {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* C-68：复用 Play Story 44 命中、32 圆底、16 图标及 HeaderWell；值由既有 token 注入。
   位于静音左侧，外层参与现有 HUD 横向流式布局，不从需求截图裁切素材。 */
.live-device {
  flex: none;
  width: var(--device-hit);
  height: var(--device-hit);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.live-device:disabled { cursor: default; }
.live-device__well {
  /* 原生 BLE 桥检查 click 的 target；装饰层不命中，确保扫描标记所在 button 接收手势。 */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--device-well);
  height: var(--device-well);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.5);
}
.live-device__glyph {
  display: block;
  width: var(--device-glyph);
  height: var(--device-glyph);
}

.live-mute__ic {
  display: block;
  width: 34px;
  height: 34px;
}

.live-mute__ic--off {
  width: 32px;
  height: 32px;
}

.live-chat {
  position: absolute;
  /* 四边各留 5px 给打赏框外发光，消息内容仍从距舞台 16px、底 80px 起排。 */
  left: calc(11px + var(--live-content-inset));
  right: calc(11px + var(--live-content-inset));
  bottom: 75px;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  /* 内容高仍是 172px；外加 5px 内边距后总高 182，避免发光被裁切。 */
  height: 182px;
  padding: 5px;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    #000 23px,
    #000 100%
  );
  pointer-events: none;
}

.live-chat > * {
  /* 旧消息超过窗口时从顶部裁切，不压缩每条消息的行高。 */
  flex-shrink: 0;
}

.live-chat__line {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  max-width: min(262px, 100%);
  text-shadow: 0 0 5px #12121280;
}

.live-chat__body {
  /* 画面变窄时允许长昵称和无空格正文换行，避免溢出后被消息窗裁掉。 */
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
}

.live-chat__line--self .live-chat__body {
  font-weight: 600;
}

.live-chat__name--0 { color: #22ffc0; }
.live-chat__name--1 { color: #fbbc5f; }
.live-chat__name--2 { color: #9b76ff; }

.live-chat__crown {
  display: block;
  width: 19px;
  height: 14px;
  flex: none;
  /* 14px 图标在 18px 行高里居中。 */
  margin-top: 2px;
}

.live-tip-bubble {
  display: flex;
  align-items: center;
  min-height: 28px;
  /* 1px 描边算在 28px 内，左右内容距外沿 8px，文字在框内垂直居中。 */
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.65);
  width: max-content;
  max-width: min(242px, 100%);
  box-sizing: border-box;
}

.live-tip-bubble--self {
  border: 1px solid #f7597a;
  box-shadow: 0 0 5px #f7597acc;
}

.live-tip-bubble--other {
  border: 1px solid #fbbc5f;
  box-shadow: 0 0 5px #fbbc5fcc;
}

.live-tip-bubble__text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #ffffff;
  text-shadow: 0 0 5px #12121280;
}

.live-tip-bubble--self .live-tip-bubble__accent { color: #f7597a; }
.live-tip-bubble--other .live-tip-bubble__accent { color: #fbbc5f; }

.live-composer {
  position: absolute;
  left: calc(16px + var(--live-content-inset));
  right: calc(16px + var(--live-content-inset));
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-input {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
}

.live-input__field {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 46px 0 15px;
  border: 1px solid rgba(107, 107, 107, 0.75);
  border-radius: 50px;
  background: rgba(18, 18, 18, 0.65);
  color: #ffffff;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  outline: none;
}

.live-input__field::placeholder {
  color: #999999;
}

.live-input__send {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-input__send-ic {
  display: block;
  width: 20px;
  height: 22px;
  opacity: 0.45;
}

.live-input__send--on .live-input__send-ic {
  opacity: 1;
}

.live-send-tip {
  flex: none;
  width: 92px;
  height: 38px;
  padding: 0 0 0 9px;
  border: 0;
  border-radius: 50px;
  /* 底 #f7597a。Ellipse 484 宽高 80×77，旋转 -180 后中心在 (47, 44.5)。
     CSS 椭圆尺寸是半径，所以写成 40×38.5，#fbbc5f 收到透明。 */
  background:
    radial-gradient(
      ellipse 40px 38.5px at 47px 44.5px,
      #fbbc5f 0%,
      rgba(251, 188, 96, 0) 100%
    ),
    #f7597a;
  color: #ffffff;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  position: relative;
}

.live-send-tip__ic {
  width: 20px;
  height: 20px;
  display: block;
}

.live-mini-tip {
  position: absolute;
  right: calc(16px + var(--live-content-inset));
  bottom: 20px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* 全屏 32 圆钮。椭圆宽高 43，-180 后中心 (15.5, 28.5)，CSS 半径 21.5。 */
  background:
    radial-gradient(
      ellipse 21.5px 21.5px at 15.5px 28.5px,
      #fbbc5f 0%,
      rgba(251, 188, 96, 0) 100%
    ),
    #f7597a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-mini-tip__ic {
  width: 20px;
  height: 20px;
}

.live-sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
}

/* 与控制器收起等待同长；淡出从 1 起播，换类后遮罩跟着列表一起收。 */
.live-sheet-mask--closing {
  animation: live-sheet-mask-fade 280ms ease-in forwards;
}

@keyframes live-sheet-mask-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

.live-tips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  /* 矮屏仅让列表内部滚动，标题和关闭入口留在可见房间内。 */
  height: min(453px, 100%);
  padding: 24px 20px 20px;
  box-sizing: border-box;
  background: #121212;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
}

/* 扫满后整张礼物列表向下滑出直播间，不关房间本身。280ms 与控制器 _tipCollapseDuration 一致。 */
.live-tips--closing {
  animation: live-tips-collapse 280ms ease-in forwards;
}

@keyframes live-tips-collapse {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.live-tips__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 26px;
  margin-bottom: 25px;
  gap: 4px;
}

.live-tips__head-ic {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.live-tips__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  color: #ffffff;
}

.live-tips__head-gap {
  flex: 1;
}

.live-tips__x {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.live-tips__x-ic {
  display: block;
  width: 16px;
  height: 16px;
}

.live-tips__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 选项卡随房间宽度排版，右侧滚动轨贴近弹窗边缘，避免横向溢出。 */
  margin-right: -18px;
  padding-right: 16px;
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 44px), transparent 100%);
}

.live-tips__list::-webkit-scrollbar {
  width: 8px;
}

.live-tips__list::-webkit-scrollbar-track {
  background: rgba(153, 153, 153, 0.2);
  border-radius: 20px;
}

.live-tips__list::-webkit-scrollbar-thumb {
  background: rgba(153, 153, 153, 0.5);
  border-radius: 20px;
  border: 1px solid transparent;
}

.live-tip-row {
  position: relative;
  flex: none;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  background: rgba(38, 38, 38, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

/* flex 子项抬到扫光 ::after 之上，青绿只盖灰底，礼物名和 Sent 仍可见。 */
.live-tip-row__title {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
  min-width: 0;
  text-align: left;
}

.live-tip-row__tail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.live-tip-row__coins {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #ffffff;
}

.live-tip-row__coin {
  width: 16px;
  height: 16px;
  display: block;
}

.live-tip-row__action {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #ffffff;
}

.live-tip-row--confirm::after,
.live-tip-row--highlight::after,
.live-tip-row--sending::after,
.live-tip-row--sent::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 160px;
  height: 48px;
  pointer-events: none;
}

.live-tip-row--confirm::after,
.live-tip-row--highlight::after {
  background: linear-gradient(
    90deg,
    rgba(105, 55, 240, 0) 0%,
    #6937f0 40%,
    #6937f0 100%
  );
}

.live-tip-row--sending::after {
  background: linear-gradient(
    90deg,
    rgba(23, 232, 173, 0) 0%,
    #17e8ad 40%,
    #17e8ad 100%
  );
}

.live-tip-row--sent::after {
  /* 已付款后从右向左填满整行，650ms 与控制器 _tipFillDuration 一致。发送中不播。 */
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(23, 232, 173, 0) 25%,
    #17e8ad 33%,
    #17e8ad 100%
  );
  background-size: 200% 100%;
  animation: live-tip-sent-fill 650ms ease-out forwards;
}

@keyframes live-tip-sent-fill {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}


.live-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 16px;
  border-radius: 50px;
  background: linear-gradient(90deg, #f7597a 0%, #fbbc5f 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
}

/* 共用金币卡沿用稿面尺寸；短屏把位置上移并允许内部滚动，避免确认入口被裁掉。 */
.live-coin-gate {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-height: calc(100% - 32px);
  overflow-y: auto;
}

.live-coin-gate--upgrade {
  top: max(16px, min(88px, calc((100% - 594px) / 2)));
}

.live-coin-gate--topup {
  top: max(16px, min(175px, calc((100% - 393px) / 2)));
}

/* 窗口 <768：沿用直播间贴齐视口、视频 cover 铺满，不套桌面视频比例。
   打赏单仍是底部 453 高的圆角层，金币卡仍是 296 宽，只在矮屏里居中。
   全屏状态机不动；窄屏全屏同样贴边，不套桌面房间比例。 */
@media (max-width: 767px) {
  .live-layer {
    padding: 0;
    background: #121212;
  }

  .live-room,
  .live-room--full {
    align-self: stretch;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
  }

  .live-stage__video {
    object-fit: cover;
  }

  .live-room__canvas {
    /* 手机视频 cover 铺满房间，不沿用桌面 contain 的留边。 */
    --live-content-inset: 0px;
  }

  .live-hud {
    height: auto;
    min-height: 74px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .live-chat {
    left: max(11px, calc(env(safe-area-inset-left, 0px) - 5px));
    right: max(11px, calc(env(safe-area-inset-right, 0px) - 5px));
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }

  .live-composer {
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .live-mini-tip {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .live-tips {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .live-coin-gate--upgrade {
    top: max(16px, calc((100% - 594px) / 2));
  }

  .live-coin-gate--topup {
    top: max(16px, calc((100% - 393px) / 2));
  }
}

/* 金币不足两张共用卡（C-26）。
   升级卡沿用「会员充值引导弹窗」：组 296×594。
   叠放：紫卡、半透明圆圈-6、人像「图」、遮罩、文案和关闭。
   1–5 帧隐藏，不叠。蓝牙图标没有矢量路径，切图目录也没有，不手绘。
   紫卡从组顶下 113px 起 296×481。矢量 cornerRadius 为空，
   圆角沿用同族充值卡按效果图量得的 16。
   上 265 为 #6937f0 → #121212 竖向渐变，粉椭圆按稿面折进卡内；
   底 216 露 #121212。导出里不透明纯紫块会盖住这条渐变，与效果图不符，不铺。
   径向渐变的 100% 停在椭圆边上，CSS 半径取稿面宽高的一半。
   人像切图 128×190，组内 (84, 73)。图线框没有路径，切图已带拱形紫边，不再叠矩形描边。
   遮罩透明度在 20% 仍为 0、55% 为 1，盖住的是同一张紫卡填充。
   充值卡沿用「金币不足已经是会员引导去充值金币的弹窗」：
   组 296×393，紫卡从顶下 26px 起 296×367，圆角 16。
   画板宽只对照直播间，卡本身不写成页面宽。 */

.coin-gate--upgrade {
  position: relative;
  /* 隔离文案的顶部外边距，避免嵌入 Live 普通块容器时折叠到卡片外、推偏绝对定位装饰。 */
  display: flow-root;
  width: 296px;
  height: 594px;
  flex: none;
  font-family: "Google Sans Flex", sans-serif;
}

/* 紫卡顶在组内 y=113，高 481。 */
.coin-gate__upgrade-card {
  position: absolute;
  left: 0;
  top: 113px;
  width: 296px;
  height: 481px;
  overflow: hidden;
  border-radius: 16px;
  background: #121212;
}

.coin-gate__upgrade-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 296px;
  height: 265px;
  background: linear-gradient(180deg, #6937f0 0%, #121212 100%);
  pointer-events: none;
}

/* 椭圆 317.31×260，稿面 (29.74, 42)，相对紫卡 (40, 201)。图层透明度 0.4。
   半径 158.655×130，100% 停在椭圆边上。 */
.coin-gate__upgrade-pink {
  position: absolute;
  left: -10.26px;
  top: -159px;
  width: 317.31px;
  height: 260px;
  opacity: 0.4;
  background: radial-gradient(
    ellipse 158.655px 130px at center,
    #f7597a 0%,
    rgba(247, 89, 122, 0) 100%
  );
  pointer-events: none;
}

/* 半透明圆圈-6。坐标相对 296 组左上。隐藏的 1–5 帧不画。 */
.coin-gate__orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 296px;
  height: 296px;
  pointer-events: none;
}

.coin-gate__orb span {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

/* Ellipse 458，296，半径 148。透明度 0.5。#7837f0 保持到 20% 再收到透明。 */
.coin-gate__orb-a {
  left: 0;
  top: 0;
  width: 296px;
  height: 296px;
  opacity: 0.5;
  background: radial-gradient(
    ellipse 148px 148px at center,
    #7837f0 20%,
    rgba(120, 55, 240, 0) 100%
  );
}

/* Ellipse 455，235.24，半径 117.62，位于 (30.38, 30.38)。#7837f0 保持到 65%。 */
.coin-gate__orb-b {
  left: 30.38px;
  top: 30.38px;
  width: 235.24px;
  height: 235.24px;
  background: radial-gradient(
    ellipse 117.62px 117.62px at center,
    #7837f0 65%,
    rgba(120, 55, 240, 0) 100%
  );
}

/* Ellipse 457，183.16，半径 91.58，位于 (56.42, 56.42)。填充透明度 0.8。 */
.coin-gate__orb-c {
  left: 56.42px;
  top: 56.42px;
  width: 183.16px;
  height: 183.16px;
  opacity: 0.8;
  background: radial-gradient(
    ellipse 91.58px 91.58px at center,
    #c237f0 65%,
    rgba(194, 55, 240, 0) 100%
  );
}

/* Ellipse 456，117.18，半径 58.59，位于 (89.41, 89.41)。填充透明度 0.9，色停 62%。 */
.coin-gate__orb-d {
  left: 89.41px;
  top: 89.41px;
  width: 117.18px;
  height: 117.18px;
  opacity: 0.9;
  background: radial-gradient(
    ellipse 58.59px 58.59px at center,
    #e45cff 62%,
    rgba(228, 92, 255, 0) 100%
  );
}

/* 外圈 184.89，半径 92.445，位于 (55.55, 55.55)。填充透明度 0.2，70% 前透明。 */
.coin-gate__orb-e {
  left: 55.55px;
  top: 55.55px;
  width: 184.89px;
  height: 184.89px;
  opacity: 0.2;
  background: radial-gradient(
    ellipse 92.445px 92.445px at center,
    rgba(139, 96, 255, 0) 70%,
    #8b60ff 100%
  );
}

/* 中圈 125.87，半径 62.935，位于 (85.07, 85.07)。填充透明度 0.2，78% 前透明。 */
.coin-gate__orb-f {
  left: 85.07px;
  top: 85.07px;
  width: 125.87px;
  height: 125.87px;
  opacity: 0.2;
  background: radial-gradient(
    ellipse 62.935px 62.935px at center,
    rgba(243, 109, 255, 0) 78%,
    #f36dff 100%
  );
}

/* 内圈 66.84，半径 33.42，位于 (114.58, 114.58)。填充透明度 0.2，78% 前透明。 */
.coin-gate__orb-g {
  left: 114.58px;
  top: 114.58px;
  width: 66.84px;
  height: 66.84px;
  opacity: 0.2;
  background: radial-gradient(
    ellipse 33.42px 33.42px at center,
    rgba(247, 163, 255, 0) 78%,
    #f7a3ff 100%
  );
}

/* 「图」组 128×190，画板 (124, 161)，相对弹窗 (84, 73)。 */
.coin-gate__hero {
  position: absolute;
  left: 84px;
  top: 73px;
  width: 128px;
  height: 190px;
  object-fit: fill;
  pointer-events: none;
}

/* 遮罩跟紫卡同一圆角裁切。透明度按 Mask group 第一层：20% 为 0，55% 为 1。 */
.coin-gate__upgrade-clip {
  position: absolute;
  left: 0;
  top: 113px;
  width: 296px;
  height: 481px;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
}

.coin-gate__upgrade-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 296px;
  height: 265px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 20%,
    #000000 55%
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, #000000 55%);
}

.coin-gate__x {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.coin-gate__x--upgrade {
  right: 0;
  top: 73px;
}

.coin-gate__x--topup {
  right: 0;
  top: 0;
}

.coin-gate__x-ic {
  display: block;
  width: 16px;
  height: 16px;
}

.coin-gate__upgrade-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 274px;
}

.coin-gate__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  color: #ffffff;
}

.coin-gate__accent {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0;
  background: linear-gradient(90deg, #fbbc5f 0%, #f7597a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coin-gate__lead {
  margin-top: 8px;
  width: 246px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
  letter-spacing: 0;
  color: #999999;
}

.coin-gate__benefits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
}

.coin-gate__benefit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coin-gate__benefit + .coin-gate__benefit {
  margin-top: 5px;
}

.coin-gate__benefit:nth-child(4),
.coin-gate__benefit:nth-child(5) {
  margin-top: 6px;
}

.coin-gate__benefit-slot {
  flex: none;
  width: 20px;
  height: 20px;
}

.coin-gate__benefit-ic {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.coin-gate__benefit-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  color: #ffffff;
}

.coin-gate__benefit--medium .coin-gate__benefit-text {
  font-weight: 500;
}

.coin-gate__cta {
  width: 266px;
  height: 44px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: #6937f0;
  color: #ffffff;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  cursor: pointer;
}

.coin-gate--topup {
  position: relative;
  width: 296px;
  height: 393px;
  flex: none;
  font-family: "Google Sans Flex", sans-serif;
}

.coin-gate__topup-card {
  position: absolute;
  left: 0;
  top: 26px;
  width: 296px;
  height: 367px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px 29px;
  overflow: hidden;
  border-radius: 16px;
  background: #121212;
}

.coin-gate__topup-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 296px;
  height: 265px;
  background: linear-gradient(180deg, #6937f0 0%, #121212 100%);
  pointer-events: none;
}

/* 椭圆 317.31×260，稿面 (29.74, 42)，相对紫卡 (40, 201)。图层透明度 0.4。
   半径 158.655×130，100% 停在椭圆边上。#f7597a 从中心收到透明。 */
.coin-gate__topup-pink {
  position: absolute;
  left: -10.26px;
  top: -159px;
  width: 317.31px;
  height: 260px;
  opacity: 0.4;
  background: radial-gradient(
    ellipse 158.655px 130px at center,
    #f7597a 0%,
    rgba(247, 89, 122, 0) 100%
  );
  pointer-events: none;
}

.coin-gate__oops {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  color: #ffffff;
}

.coin-gate__oops span {
  display: block;
}

.coin-gate__chest-slot {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 148px;
  margin-top: 31px;
  flex: none;
}

.coin-gate__chest {
  width: 148px;
  height: 148px;
  object-fit: contain;
  display: block;
}

.coin-gate__buy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 266px;
  height: 44px;
  margin-top: 29px;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: #6937f0;
  color: #ffffff;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  cursor: pointer;
}

.coin-gate-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.coin-gate-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.75);
}

@media (max-width: 767px) {
  .coin-gate--upgrade {
    width: min(296px, calc(100vw - 32px));
    height: min(594px, calc(100dvh - 32px));
    overflow: auto;
  }

  .coin-gate--topup {
    width: min(296px, calc(100vw - 32px));
  }

  .coin-gate__topup-card,
  .coin-gate__topup-fill {
    width: 100%;
  }
}

/* Live 首页目录（W-F013/C-61）。
   角色入口移除浏览器触摸高亮，避免进房瞬间把入口的蓝色覆盖层带到直播画面。
   1920 画板只作对照。列表本身不设最大宽；单卡最大 466，更宽就加列。
   主区变窄仍改两列、一列，这时卡片可以小于 466 并铺满格子。
   LIVE 能量柱等间隔错相、连续往返，只在极值处换向，不跟随系统动画偏好静止。 */

.live-home {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
  padding: 30px 32px 48px;
  background: #121212;
  color: #ffffff;
  font-family: "Google Sans Flex", sans-serif;
}

.live-home__grid {
  display: grid;
  width: 100%;
  gap: 20px;
  justify-content: start;
  /* 按 466 能排下的列数往下加，格子从左排。不给整列设 max-width，避免两侧空出一整块。 */
  grid-template-columns: repeat(auto-fit, 466px);
}

.live-home-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 466px;
  margin-inline: auto;
  min-width: 0;
  aspect-ratio: 466 / 556;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  /* 封面成功后不叠浅灰底，避免圆角抗锯齿露出亮边；占位由封面加载态负责。 */
  background: transparent;
  cursor: pointer;
  /* 覆盖入口卡片及其子元素；房间舞台的设置无法影响仍在底层的入口。 */
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  color: #ffffff;
}

.live-home-card__cover,
.live-home-card__cover--empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-home-card__cover--empty {
  background: #262626;
  overflow: hidden;
}

/* 正在加载封面时在深灰底上展示低对比微光，仅在相邻 img 处于加载态时触发。 */
.live-home-card__cover--empty:has(+ img.live-home-card__cover--loading)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%);
  animation: onvessi-shimmer 1.25s ease-in-out infinite;
}

/* 封面四边外扩 1px，把图片最外侧采样边缘放到卡片裁切范围之外。
   卡片尺寸与 6px 圆角保持不变；占位层仍按原尺寸填满。 */
img.live-home-card__cover {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

/* 加载期间只显示占位；失败后移除 img，避免破图图标和 alt 文字叠在卡面。 */
.live-home-card__cover--loading {
  visibility: hidden;
}

.live-home-card__live {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-width: 62px;
  height: 22px;
  padding: 0 8px 0 8px;
  border-radius: 30px;
  background: rgba(18, 18, 18, 0.2);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
}

.live-home-card__eq {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 12px;
  height: 14px;
  flex: none;
}

.live-home-card__eq-bar {
  width: 2px;
  height: 14px;
  border-radius: 20px;
  background: #f7597a;
  box-shadow: 0 0 0 0.6px #f7597a;
  transform-origin: center;
  animation: live-home-eq 0.9s ease-in-out infinite;
}

.live-home-card__eq-bar--a {
  animation-delay: 0s;
}

.live-home-card__eq-bar--b {
  animation-delay: -0.3s;
}

.live-home-card__eq-bar--c {
  animation-delay: -0.6s;
}

/* C-61：每半周期只做一次完整伸缩，避免下降中途再次缓停；首尾同值保证循环衔接。 */
@keyframes live-home-eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.live-home-card__who {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  height: 38px;
  padding: 4px 12px 4px 4px;
  box-sizing: border-box;
  border-radius: 50px;
  background: rgba(18, 18, 18, 0.5);
}

.live-home-card__avatar,
.live-home-card__avatar--empty {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.live-home-card__avatar--empty {
  background: #262626;
}

.live-home-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #ffffff;
}

@container shell-main (max-width: 980px) {
  .live-home__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container shell-main (max-width: 520px) {
  .live-home {
    padding: 16px;
  }

  .live-home__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .live-home {
    padding: 16px;
  }

  .live-home__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* W-F007 / W-F027：个人中心（/account）卡片与编辑/注销弹层样式。
   颜色、尺寸、圆角与断点（<682 容器紧凑切换、<768 Danger Zone 说明换行）对齐
   OnvessiColors / OnvessiDimens 与原 ProfilePageView / ProfileEditDialogView / InviteCodeDialogView。 */

.account-page {
  min-height: 100%;
  box-sizing: border-box;
  padding: 40px 16px;
  background: #121212;
  color: #ffffff;
}

.account-column {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 资料卡 */
.account-profile-block {
  position: relative;
  width: 650px;
  max-width: 100%;
  height: 239px;
}

.account-profile-card {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 181px;
  border-radius: 30px;
  background: #292929;
}

.account-avatar {
  position: absolute;
  top: 0;
  left: 264px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  overflow: hidden;
  background: #262626;
}

.account-avatar__default,
.account-avatar__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-profile-crown {
  position: absolute;
  top: -26px;
  left: 301px;
  width: 47px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}

.account-identity {
  position: absolute;
  left: 0;
  right: 0;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 46px;
  font-size: 16px;
  line-height: 20px;
  min-width: 0;
}

.account-id-row__label {
  color: #999999;
  font-weight: 400;
  flex-shrink: 0;
}

.account-id-row--editable .account-id-row__label {
  color: #cccccc;
}

.account-id-row__value {
  margin-left: 10px;
  color: #999999;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-id-row--editable .account-id-row__value {
  color: #ffffff;
  font-weight: 600;
}

.account-id-row__edit {
  margin-left: 8px;
  padding: 0;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.account-id-row__edit-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* 会员当前计划卡 & 非会员横幅 */
.account-plan-card {
  position: relative;
  width: 100%;
  height: 215px;
  border-radius: 30px;
  background: #292929;
  overflow: hidden;
}

.account-plan-card__bg,
.account-premium-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.account-plan-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  box-sizing: border-box;
  padding: 30px 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-premium-title {
  margin: 0;
  font-size: 26px;
  line-height: 33px;
  font-weight: 600;
  background: linear-gradient(90deg, #ff7504 0%, #ffe14b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.account-pill-btn {
  width: 138px;
  height: 38px;
  border: 0;
  border-radius: 9999px;
  background: #f7597a;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

.account-plan-card__cta {
  margin-top: 18px;
}

.account-plan-card__rule {
  width: 100%;
  height: 1px;
  margin-top: auto;
  background: rgba(153, 153, 153, 0.45);
}

.account-plan-card__dates {
  width: 100%;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-plan-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
}

.account-plan-date__label {
  color: #cccccc;
  font-weight: 400;
}

.account-plan-date__value {
  color: #ffffff;
  font-weight: 500;
}

.account-premium-banner {
  position: relative;
  width: 100%;
  height: 124px;
  border-radius: 30px;
  background: #6937f0;
  overflow: hidden;
}

.account-premium-banner__copy {
  position: relative;
  z-index: 1;
  padding: 30px 180px 0 199px;
}

.account-premium-banner__sub {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 23px;
  font-weight: 300;
  color: #ffffff;
}

.account-premium-banner__cta {
  position: absolute;
  z-index: 1;
  right: 30px;
  top: 43px;
}

/* 订单 & 邀请码入口 */
.account-entry-slot {
  height: 74px;
  display: flex;
  align-items: center;
}

.account-entry-card {
  width: 100%;
  height: 54px;
  padding: 0 46px;
  border: 0;
  border-radius: 30px;
  background: #292929;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

.account-entry-card--locked {
  cursor: default;
}

.account-entry-card__title {
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.account-entry-card__arrow {
  margin-left: auto;
  width: 5px;
  height: 10px;
  flex-shrink: 0;
}

.account-entry-card__value {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: #999999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 设置 / Danger Zone */
.account-settings-card {
  width: 100%;
  border-radius: 30px;
  background: #292929;
  overflow: hidden;
}

.account-danger-header {
  width: 100%;
  min-height: 54px;
  padding: 0 46px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

.account-danger-header__top {
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
}

.account-danger-header__warn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-danger-header__title {
  margin-left: 8px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.account-danger-header__hint--desktop {
  margin-left: 14px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 300;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-danger-header__chevron {
  margin-left: 8px;
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.account-danger-header__chevron.is-open {
  transform: rotate(180deg);
}

.account-danger-header__hint--compact {
  display: none;
}

.account-danger-body {
  height: 54px;
  padding: 0 46px;
  display: flex;
  align-items: center;
}

.account-delete-trigger {
  width: 178px;
  height: 34px;
  border: 1px solid #ffffff;
  border-radius: 9999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  cursor: pointer;
}

/* 弹层遮罩与三张弹窗卡片 */
.account-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.account-modal-layer__scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.75);
  cursor: pointer;
}

.account-modal-layer--invite .account-modal-layer__scrim {
  background: rgba(18, 18, 18, 0.9);
  cursor: default;
}

.account-modal-layer__slot {
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 100%;
}

.account-dialog {
  background: #2a2a2a;
  color: #ffffff;
  box-sizing: border-box;
  max-width: 100%;
}

.account-dialog--nickname {
  width: 356px;
  min-height: 234px;
  padding: 26px 30px 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

.account-dialog__head {
  display: flex;
  align-items: center;
}

.account-dialog__title {
  flex: 1;
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: #ffffff;
}

.account-dialog__close {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
}

.account-dialog__close-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.account-dialog__input {
  width: 100%;
  height: 44px;
  margin-top: 24px;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 1px solid #999999;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  outline: none;
}

.account-dialog__actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 24px;
}

.account-dialog__btn {
  flex: 1;
  height: 42px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-dialog__btn--filled {
  border: 0;
  background: #6937f0;
  font-weight: 600;
}

.account-dialog__btn--outline {
  border: 1.4px solid #6937f0;
  background: transparent;
  font-weight: 400;
}

/* 邀请码弹窗 */
.account-dialog--invite {
  width: min(306px, calc(100vw - 32px));
  padding: 30px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.account-invite-dialog__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 23px;
  font-weight: 600;
  color: #ffffff;
}

.account-invite-dialog__field-wrap {
  margin-top: 20px;
  height: 40px;
  padding: 0 14px;
  border-radius: 50px;
  background: #5b5b5b;
  display: flex;
  align-items: center;
}

.account-invite-dialog__input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  outline: none;
}

.account-invite-dialog__actions {
  margin-top: 25px;
  display: flex;
  gap: 14px;
}

.account-invite-dialog__btn {
  flex: 1;
  height: 42px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-invite-dialog__btn--filled {
  border: 0;
  background: #6937f0;
  font-weight: 600;
}

.account-invite-dialog__btn--outline {
  border: 2px solid #6937f0;
  background: transparent;
  font-weight: 400;
}

/* 注销确认弹窗 */
.account-dialog--delete {
  width: min(356px, calc(100vw - 32px));
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.account-delete-dialog__title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: #ffffff;
}

.account-delete-dialog__body {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #cccccc;
}

.account-delete-dialog__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-delete-dialog__btn {
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-delete-dialog__btn--purple {
  border: 0;
  background: #6937f0;
  font-weight: 600;
}

.account-delete-dialog__btn--danger {
  border: 0;
  background: #f7597a;
  font-weight: 600;
}

.account-delete-dialog__btn--outline {
  border: 1.4px solid #6937f0;
  background: transparent;
  font-weight: 400;
}

.account-dialog__btn:disabled,
.account-invite-dialog__btn:disabled,
.account-delete-dialog__btn:disabled,
.account-dialog__close:disabled {
  cursor: default;
  opacity: 0.85;
}

.account-dialog__spinner {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: account-spin 0.75s linear infinite;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 卡片宽度紧凑切换：与 Flutter ProfilePageView maxWidth < 650 一致 */
@container shell-main (max-width: 681px) {
  .account-profile-block {
    width: 100%;
    height: auto;
    padding: 16px;
    border-radius: 30px;
    background: #292929;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .account-profile-card {
    display: none;
  }

  .account-profile-crown {
    position: static;
  }

  .account-avatar {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
  }

  .account-identity {
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  .account-id-row--email {
    padding: 0;
    align-items: flex-start;
  }

  .account-id-row--email .account-id-row__value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .account-plan-card {
    height: auto;
  }

  .account-plan-card__bg {
    object-position: right center;
  }

  .account-plan-card__content {
    padding: 16px;
  }

  .account-plan-card__rule {
    display: none;
  }

  .account-plan-card__dates {
    margin-top: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .account-premium-banner {
    height: auto;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .account-premium-banner__copy {
    padding: 0;
  }

  .account-premium-banner__sub {
    margin-top: 16px;
  }

  .account-premium-banner__cta {
    position: static;
  }
}

/* 紧凑视口断点 768：对齐 adaptiveCompact 标题字号与 Danger Zone 说明换行 */
@media (max-width: 767px) {
  .account-premium-title {
    font-size: 18px;
    line-height: 23px;
  }

  .account-danger-header {
    padding: 16px 46px;
  }

  .account-danger-header__top {
    height: auto;
  }

  .account-danger-header__hint--desktop {
    display: none;
  }

  .account-danger-header__title {
    flex: 1;
  }

  .account-danger-header__hint--compact {
    display: block;
    margin: 8px 0 0 28px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 300;
    color: #ffffff;
  }

  .account-modal-layer {
    inset: var(--onvessi-visible-top, 0px) 0 auto;
    height: var(--onvessi-visible-height, 100dvh);
  }
}

/* W-F030 / C-34 / C-39 / W-F020：桌面端为全站订单中心右侧 804px 白色抽屉，H5（<768px）呈全屏白底无圆角二级页面。
   色值/字阶/间距严格对齐母本 OnvessiColors / OnvessiDimens 与 Figma 776:1477。 */

.orders-layer {
  position: fixed;
  inset: 0;
  z-index: 43;
}

.orders-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.75);
}

.orders-panel {
  position: absolute;
  top: 80px;
  right: 0;
  bottom: 0;
  width: min(100%, 804px);
  background: #ffffff;
  color: #121212;
  border-top-left-radius: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.orders-panel__top {
  flex-shrink: 0;
  padding-top: 30px;
}

.orders-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding: 0 12px 0 25px;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  cursor: pointer;
}

.orders-back__icon {
  width: 7px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.orders-back__label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.orders-panel__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 40px 0;
  box-sizing: border-box;
}

.orders-panel__title {
  margin: 0 0 20px;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: #121212;
}

/* 订单详情顶部购买成功/游客保存引导轻提示卡：复用白底灰卡与品牌紫/登录粉 Token */
.orders-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f6f6f6;
  border: 1px solid #eeeeee;
  box-sizing: border-box;
}

.orders-banner--success {
  border-color: rgba(105, 55, 240, 0.18);
}

.orders-banner__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.orders-banner__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  background-color: #6937f0;
  -webkit-mask-image: var(--orders-success-mask);
  mask-image: var(--orders-success-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.orders-banner__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-banner__title {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #121212;
}

.orders-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #666666;
}

.orders-banner__cta {
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 50px;
  background: #f7597a;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

/* 加载、错误重试与空态居中区域 */
.orders-state {
  flex: 1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 40px;
}

.orders-state__text {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
  text-align: center;
}

.orders-state__retry {
  border: 0;
  background: transparent;
  color: #6937f0;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
}

.orders-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: orders-spin 0.75s linear infinite;
}

.orders-spinner--purple {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(105, 55, 240, 0.22);
  border-top-color: #6937f0;
}

@keyframes orders-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 列表主区与底部固定分页条 */
.orders-list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.orders-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

.orders-row {
  width: 100%;
  max-width: 724px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.orders-row__head {
  height: 38px;
  padding: 0 14px 0 12px;
  background: #eeeeee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 18px;
  color: #121212;
}

.orders-row__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.orders-row__datetime {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.orders-row__date {
  min-width: 88px;
  font-weight: 500;
  white-space: nowrap;
}

.orders-row__time {
  font-weight: 300;
  white-space: nowrap;
}

.orders-row__divider {
  width: 1px;
  height: 20px;
  margin: 0 12px;
  background: #cccccc;
  flex-shrink: 0;
}

.orders-row__number {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-weight: 400;
}

.orders-row__number-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.orders-row__number-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-row__status {
  font-weight: 500;
  color: #121212;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.orders-row__status--active {
  color: #6937f0;
}

.orders-row__main {
  margin-top: 12px;
  min-height: 79px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.orders-row__product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.orders-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.orders-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.orders-row__product-info {
  min-width: 0;
  max-width: 240px;
  flex: 1;
}

.orders-row__title {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-row__qty {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #999999;
}

.orders-row__aside {
  min-height: 79px;
  padding-right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.orders-row__total {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
  white-space: nowrap;
}

.orders-action-btn {
  width: 120px;
  height: 30px;
  border: 0;
  border-radius: 50px;
  background: #6937f0;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

.orders-action-btn:disabled {
  cursor: default;
}

/* Figma 776:1662 固定 332×25 分页条 */
.orders-pagination-wrap {
  flex-shrink: 0;
  padding: 8px 0 40px;
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
}

.orders-pagination {
  position: relative;
  width: 332px;
  height: 25px;
  flex-shrink: 0;
}

.orders-page-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

.orders-page-arrow--next {
  left: 206px;
}

.orders-page-arrow--disabled {
  color: #cccccc;
  cursor: default;
}

.orders-page-arrow__icon {
  display: block;
  width: 5px;
  height: 10px;
  background-color: currentColor;
  -webkit-mask-image: var(--orders-arrow-mask);
  mask-image: var(--orders-arrow-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.orders-page-numbers {
  position: absolute;
  left: 19px;
  top: 0;
  width: 169px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.orders-page-num {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.orders-page-num--selected {
  background: #6937f0;
  color: #ffffff;
  font-weight: 500;
}

.orders-page-ellipsis {
  width: 19px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.orders-page-ellipsis__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cccccc;
}

.orders-goto-label {
  position: absolute;
  left: 228px;
  top: 5px;
  width: 66px;
  height: 15px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #121212;
  text-align: center;
  white-space: nowrap;
}

.orders-goto-input {
  position: absolute;
  left: 300px;
  top: 0;
  width: 32px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #eeeeee;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.orders-goto-input::-webkit-inner-spin-button,
.orders-goto-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 订单详情内容区 */
.orders-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 40px;
}

.orders-detail-head {
  padding: 12px;
  background: #eeeeee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.orders-detail-head__no {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
}

.orders-detail-head__dt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  line-height: 18px;
  color: #121212;
}

.orders-detail-head__date {
  font-weight: 500;
}

.orders-detail-head__time {
  font-weight: 300;
}

.orders-detail-head__status {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
}

.orders-detail-head__status--active {
  color: #6937f0;
}

.orders-detail__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.orders-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.orders-detail-item__info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-detail-item__name,
.orders-detail-item__total {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
}

.orders-detail-item__qty {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #999999;
}

.orders-detail-item__sku,
.orders-detail-item__tax {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #999999;
}

.orders-detail-amounts {
  display: flex;
  flex-direction: column;
}

.orders-detail-amounts__spacer {
  height: 8px;
}

.orders-metric {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
}

.orders-metric--secondary {
  font-size: 12px;
  line-height: 16px;
  color: #999999;
}

.orders-metric__label {
  flex: 1;
  min-width: 0;
}

.orders-metric__value {
  text-align: right;
  word-break: break-word;
}

.orders-detail-section-title {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: #121212;
}

.orders-detail-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-detail-address__line,
.orders-detail-text {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
}

.orders-tracking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orders-shipment {
  display: flex;
  flex-direction: column;
}

.orders-shipment__headline {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: #121212;
}

.orders-timeline {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.orders-timeline-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding-bottom: 16px;
}

.orders-timeline-row--last {
  padding-bottom: 0;
}

.orders-timeline-row__rail {
  position: relative;
  width: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orders-timeline-row__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #999999;
  flex-shrink: 0;
  z-index: 1;
}

.orders-timeline-row__dot--latest {
  background: #6937f0;
}

.orders-timeline-row__line {
  position: absolute;
  left: 3.5px;
  top: 13px;
  bottom: -5px;
  width: 1px;
  background: #eeeeee;
}

.orders-timeline-row__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.orders-timeline-row__time {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
}

.orders-timeline-row__loc {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #999999;
}

.orders-timeline-row__desc {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
}

.orders-detail__action-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* W-F020 H5 窄屏重排（<768px）：全屏白底无圆角二级页面，隐藏遮罩与全局顶栏、顶部保留 44px 返回栏 */
@media (max-width: 767px) {
  .orders-layer {
    inset: var(--onvessi-visible-top, 0px) 0 auto;
    height: var(--onvessi-visible-height, 100dvh);
    background: #ffffff;
  }

  .orders-layer__scrim {
    display: none;
  }

  .orders-panel {
    position: relative;
    top: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .orders-panel__top {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .orders-back {
    height: 44px;
    padding: 0 12px 0 16px;
  }

  .orders-panel__body {
    padding: 12px 16px 0;
  }

  .orders-pagination-wrap {
    padding: 8px 0 max(24px, env(safe-area-inset-bottom));
  }

  .orders-detail {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .orders-panel__title {
    font-size: 18px;
    line-height: 24px;
  }

  .orders-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .orders-row__head {
    height: auto;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .orders-row__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .orders-row__datetime {
    flex-wrap: wrap;
    gap: 12px;
  }

  .orders-row__date {
    min-width: 0;
  }

  .orders-row__divider {
    display: none;
  }

  .orders-row__number {
    width: 100%;
  }

  .orders-row__number-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .orders-row__status {
    align-self: flex-end;
  }

  .orders-row__main {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }

  .orders-row__product {
    gap: 12px;
  }

  .orders-row__product-info {
    max-width: none;
  }

  .orders-row__aside {
    min-height: 0;
    padding-right: 0;
    align-items: stretch;
    gap: 16px;
  }

  .orders-row__total {
    justify-content: space-between;
    width: 100%;
  }

  .orders-row__action {
    display: flex;
    justify-content: flex-end;
  }

  .orders-detail-head__no {
    font-size: 16px;
    line-height: 20px;
  }
}

/* W-F010 / W-F020 / C-09 / C-35 / C-41 / C-46 / C-75：
   实体商品结算页（/checkout）与商品支付回跳页（/payment/result）样式。
   1:1 像素级对齐 OnvessiColors / OnvessiDimens 与原 Flutter CheckoutView：
   - 桌面端（>=768px）：右侧 min(100%, 1192px)、距顶 80px、左上/左下 20px 圆角双栏滑层
     （左栏 flex: 1 白底 #FFFFFF 内宽 672px 左右 padding 40px，右栏 440px #EEEEEE 灰底左右 padding 30px）；
   - H5（<768px）：隐藏遮罩与全局顶栏，top: 0 全屏白底无圆角二级页面 + 顶部 44px < Back 返回栏 + 单列纵向滚动。 */

.checkout-layer {
  position: fixed;
  inset: 0;
  z-index: 42;
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

.checkout-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.75);
}

.checkout-sheet {
  position: absolute;
  top: 80px;
  right: 0;
  bottom: 0;
  width: min(100%, 1192px);
  background: #ffffff;
  color: #121212;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.checkout-mobile-top {
  display: none;
}

.checkout-sheet__columns {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* 左栏表单区（OnvessiDimens: checkoutPadH=40, checkoutTitleTop=30, checkoutFormWidth=672） */
.checkout-form-pane {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 40px 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
}

.checkout-form-pane__inner {
  width: 100%;
  max-width: 672px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.checkout-desktop-top {
  margin-bottom: 30px;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  cursor: pointer;
}

/* 桌面端 Back 文字对齐表单左缘，箭头向左伸入 17px 留白（checkoutBackOffset=17） */
.checkout-back-btn--aligned {
  transform: translateX(-17px);
}

.checkout-back-btn__icon {
  width: 7px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-back-btn__label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

/* 顶部 4 项服务背书横条（CheckoutServiceStrip: 10px 圆角, #CCCCCC 描边, minHeight=81, pad=20px 32px, icon=40x40） */
.checkout-services {
  min-height: 81px;
  padding: 20px 32px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.checkout-services__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.checkout-services__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-services__text {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: #121212;
  white-space: pre-line;
}

/* 表单分节（Contact Information / Shipping Address: 14px/18px w600） */
.checkout-section {
  display: flex;
  flex-direction: column;
}

.checkout-section--contact {
  margin-bottom: 30px;
}

.checkout-section__title {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #121212;
}

.checkout-section__title--shipping {
  margin-bottom: 14px;
}

/* Woo 动态地址网格（Wrap: spacing=28, runSpacing=20） */
.checkout-address-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 20px;
}

.checkout-address-pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.checkout-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.checkout-field--full {
  width: 100%;
}

.checkout-field--half {
  width: calc((100% - 28px) / 2);
}

.checkout-field__label {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #121212;
}

/* 输入框与下拉框（CheckoutFieldBox: 40px 高, 10px 圆角, #FFFFFF 底, #CCCCCC 描边, 错误 #F7597A 描边） */
.checkout-input,
.checkout-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  box-sizing: border-box;
  outline: none;
}

.checkout-input::placeholder {
  color: #999999;
}

.checkout-input--error {
  border-color: #f7597a !important;
}

.checkout-field__error {
  margin-top: 4px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #f7597a;
}

/* 下拉选择器与覆盖式菜单（CheckoutSelectField: 箭头 16x9, 菜单高 275px, 行高 30px） */
.checkout-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.checkout-select--disabled {
  cursor: default;
}

.checkout-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #121212;
}

.checkout-select__placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #999999;
}

.checkout-select__chevron {
  width: 16px;
  height: 9px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-dropdown-wrap {
  position: relative;
}

.checkout-dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 275px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #cccccc;
  z-index: 30;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-dropdown-menu--phone {
  width: min(672px, 440px);
}

.checkout-dropdown-header {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: #ffffff;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.checkout-dropdown-header__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-dropdown-header__arrow {
  width: 9px;
  height: 16px;
  object-fit: contain;
  transform: rotate(90deg);
  flex-shrink: 0;
}

.checkout-dropdown-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-dropdown-item {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.checkout-dropdown-item:hover {
  background: #f6f6f6;
}

/* 国际电话双盒行（CheckoutInternationalPhoneField: 左 102px 区号下拉盒 + 10px 间距 + 右独立输入盒） */
.checkout-phone-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.checkout-phone-row__prefix {
  width: 102px;
  flex-shrink: 0;
}

.checkout-phone-row__number {
  flex: 1;
  min-width: 0;
}

/* 行内加载与重试文字按钮 */
.checkout-inline-status {
  font-size: 12px;
  line-height: 15px;
  color: #121212;
}

.checkout-inline-status--spaced {
  margin-top: 20px;
}

.checkout-text-retry {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6937f0;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.checkout-text-retry--spaced {
  margin-top: 20px;
}

/* 左栏底部 FAQ 手风琴（CheckoutFaqSection: 距上 40px, 标题 16px w600, 行高 46px, 顶底 #999999 分割线） */
.checkout-faq {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.checkout-faq__title {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: #121212;
}

.checkout-faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #999999;
}

.checkout-faq__card {
  border-bottom: 1px solid #999999;
  background: transparent;
}

.checkout-faq__header {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.checkout-faq__question {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #121212;
}

.checkout-faq__arrow {
  width: 6.5px;
  height: 11.5px;
  object-fit: contain;
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.checkout-faq__arrow--open {
  transform: rotate(90deg);
}

.checkout-faq__answer {
  padding: 0 0 20px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 300;
  color: #121212;
}

/* 右栏 440px #EEEEEE 灰底订单摘要区（CheckoutSummaryPane: padH=30, top=30, bottom=40, inner=380） */
.checkout-summary-pane {
  width: 440px;
  flex-shrink: 0;
  height: 100%;
  background: #eeeeee;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 30px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.checkout-summary-pane__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.checkout-summary-pane__title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: #121212;
}

.checkout-close-btn {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.checkout-close-btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* 支付方式选择与 Stripe 官方组件挂载区（CheckoutRadio 16x16 + 8px gap + 14px w600） */
.checkout-payment-methods {
  display: flex;
  flex-direction: column;
}

.checkout-pay-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.checkout-pay-row--paypal {
  margin-top: 30px;
}

.checkout-radio {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-radio__bg {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.checkout-radio__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkout-pay-row__label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #121212;
}

.checkout-pay-row__brand {
  margin-left: auto;
  width: 42.91px;
  height: 18px;
  object-fit: contain;
}

.checkout-stripe-wrap {
  margin-top: 14px;
  width: 100%;
}

.checkout-stripe-loading {
  font-size: 14px;
  line-height: 18px;
  color: #121212;
  margin-bottom: 8px;
}

.checkout-stripe-host {
  width: 100%;
  min-height: 40px;
}

.checkout-divider {
  width: 100%;
  height: 1.2px;
  background: #cccccc;
  flex-shrink: 0;
}

.checkout-divider--after-pay {
  margin: 30px 0;
}

.checkout-divider--after-coupon {
  margin: 40px 0 16px;
}

/* 只读商品列表（_SummaryLine: 56px 高, 56x56 4px 圆角 #E6E6E6 缩略图, 中间名称 + #999999 xN, 右侧 16px 价格） */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.checkout-item {
  height: 56px;
  display: flex;
  align-items: center;
}

.checkout-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: #e6e6e6;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-item__info {
  flex: 1;
  min-width: 0;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.checkout-item__name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item__qty {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #999999;
}

.checkout-item__price {
  margin-left: 12px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #121212;
  flex-shrink: 0;
}

/* 优惠券一体盒（_Coupon: 40px 高, 10px 圆角, 白底 #CCCCCC 描边, 右侧内嵌 70x34 8px 圆角 #CCCCCC 按钮） */
.checkout-coupon-box {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  background: #ffffff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.checkout-coupon-box__input,
.checkout-coupon-box__applied {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  outline: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.checkout-coupon-box__input::placeholder {
  color: #999999;
}

.checkout-coupon-box__btn {
  width: 70px;
  height: 34px;
  margin-right: 3px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: #cccccc;
  color: #121212;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-coupon-box__btn:disabled {
  cursor: default;
}

/* 金额明细区（Subtotal 与 Total 右侧 20px/25px w500，Shipping #999999 14px，中间无分割线） */
.checkout-totals {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.checkout-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-totals__row--sub {
  margin-top: 10px;
}

.checkout-totals__row--total {
  margin-top: 16px;
}

.checkout-totals__label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
}

.checkout-totals__major-value {
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
  color: #121212;
}

.checkout-totals__minor-value {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #121212;
}

.checkout-totals__label--shipping,
.checkout-totals__minor-value--shipping {
  color: #999999;
}

.checkout-totals__shipping-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-shipping-retry {
  padding: 0;
  border: 0;
  background: transparent;
  color: #999999;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}

/* 隐私声明与服务条款勾选区（_CheckoutPrivacyNotice & _Terms） */
.checkout-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.checkout-legal__privacy {
  margin: 0;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #999999;
}

.checkout-legal__link {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

.checkout-legal__link--privacy {
  color: #999999;
  text-decoration-color: #999999;
}

.checkout-legal__link--terms {
  color: #121212;
  text-decoration-color: #121212;
}

.checkout-legal__terms {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.checkout-legal__terms--highlighted {
  border-color: #f7597a;
}

.checkout-terms-check {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.checkout-terms-check__idle {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.checkout-legal__terms-text {
  flex: 1;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #121212;
}

/* Place Order 主按钮（_PlaceOrder: 48px 高, 50px 圆角, 可用态 #6937F0 白字, 不可用态 rgba(153,153,153,0.3) + #999999 描边与文字） */
.checkout-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: #6937f0;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.checkout-submit-btn--disabled {
  background: rgba(153, 153, 153, 0.3);
  border-color: #999999;
  color: #999999;
  cursor: default;
}

.checkout-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  box-sizing: border-box;
  animation: checkout-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.checkout-spinner--muted {
  border-color: rgba(153, 153, 153, 0.35);
  border-top-color: #999999;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 中等宽度桌面/平板横屏自适应 */
@media (max-width: 1120px) and (min-width: 768px) {
  .checkout-form-pane {
    padding: 30px 28px 40px;
  }

  .checkout-summary-pane {
    width: 390px;
    padding: 30px 22px 40px;
  }

  .checkout-services {
    padding: 18px 20px;
  }
}

/* H5（<768px）：全屏白底无圆角二级页面 + 顶部 44px < Back 返回栏 + 单列纵向滚动 */
@media (max-width: 767px) {
  .checkout-layer {
    top: var(--onvessi-visible-top, 0px);
    bottom: auto;
    height: 100dvh;
    height: var(--onvessi-visible-height, 100dvh);
    background: #ffffff;
  }

  .checkout-layer__scrim {
    display: none;
  }

  .checkout-sheet {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #ffffff;
  }

  .checkout-mobile-top {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 16px 4px;
    background: #ffffff;
  }

  .checkout-mobile-top .checkout-back-btn {
    height: 44px;
    padding: 0 12px 0 0;
  }

  .checkout-desktop-top {
    display: none;
  }

  .checkout-sheet__columns {
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .checkout-form-pane {
    flex: none;
    height: auto;
    overflow-y: visible;
    padding: 12px 16px 40px;
  }

  .checkout-field--half {
    width: 100%;
  }

  .checkout-dropdown-menu--phone {
    width: calc(100vw - 32px);
    max-width: 440px;
  }

  .checkout-summary-pane {
    width: 100%;
    height: auto;
    overflow-y: visible;
    background: #eeeeee;
    padding: 30px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  }
}


/* W-F014/W-F020：用户确认英文指南的站内版。
   CSS 镜像既有 OnvessiColors canvas/chip/textPrimary/ctaPrimary/ctaMarketing，
   OnvessiDimens devicePanelWidth/devicePanelRadius；不重绘系统或品牌图标。 */
.iphone-bluetooth-guide, .iphone-guide-page {
  --guide-canvas: #121212;
  --guide-chip: #262626;
  --guide-white: #fff;
  --guide-muted: #ccc;
  --guide-pink: #f7597a;
  --guide-purple: #6937f0;
  color: var(--guide-white);
  font-family: "Google Sans Flex", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.iphone-bluetooth-guide { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18,18,18,.75); }
.iphone-guide__panel { width: 375px; max-width: 100%; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--guide-canvas); border-radius: 20px; }
.iphone-guide__header { flex: none; display: flex; align-items: flex-start; gap: 16px; padding: 24px 16px 16px; }
.iphone-guide__header > div { flex: 1; min-width: 0; }
.iphone-guide__header h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0; }
.iphone-guide__eyebrow { color: var(--guide-pink); font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.iphone-guide__close { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.iphone-guide__close img { width: 18px; height: 18px; }
.iphone-guide__body { padding: 0 16px 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.iphone-guide__body p, .iphone-guide-page p { margin: 0 0 16px; }
.iphone-guide__muted, .iphone-guide__figure figcaption { color: var(--guide-muted); font-size: 14px; }
.iphone-guide__stages { padding-left: 24px; margin: 24px 0; }
.iphone-guide__stages li { padding-left: 12px; margin-bottom: 12px; }
.iphone-guide__actions { display: flex; flex: none; flex-direction: column; gap: 12px; padding: 16px; background: var(--guide-canvas); }
/* 下载是链接、继续是按钮；统一盒模型，避免相同内边距产生不同按钮高度。 */
.iphone-guide__primary, .iphone-guide__secondary { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border: 0; border-radius: 50px; color: var(--guide-white); background: var(--guide-purple); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.iphone-guide__secondary { background: var(--guide-chip); }
.iphone-guide__text-button { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--guide-white); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.iphone-guide__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--guide-muted); }
.iphone-guide__figure { margin: 16px 0; }
.iphone-guide__screenshot { position: relative; width: 100%; max-width: 343px; margin: 0 auto; }
.iphone-guide__screenshot > img { display: block; width: 100%; height: auto; border-radius: 20px; }
.iphone-guide__screenshot > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.iphone-guide__target, .iphone-guide__arrow { stroke: var(--guide-pink); stroke-width: 4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.iphone-guide__bubble { fill: var(--guide-pink); }
.iphone-guide__screenshot text { fill: var(--guide-white); font-family: "Google Sans Flex", sans-serif; font-size: 24px; font-weight: 600; }
.iphone-guide__figure figcaption { margin-top: 12px; font-size: 12px; }
.iphone-guide__status { padding: 16px; background: var(--guide-chip); border-radius: 20px; margin-top: 16px; }
.iphone-guide__status p { font-size: 14px; margin: 12px 0 0; }
.iphone-guide__troubleshooting { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--guide-chip); font-size: 14px; }
.iphone-guide__troubleshooting summary { cursor: pointer; font-weight: 600; }
.iphone-guide__troubleshooting ul { padding-left: 20px; }
.iphone-guide__troubleshooting li { margin-top: 12px; }
.iphone-guide-page { max-width: 768px; margin: 0 auto; padding: 24px; }
.iphone-guide-page h1 { font-size: 26px; line-height: 1.25; margin: 0 0 24px; }
.iphone-guide-page h2 { font-size: 22px; margin: 0 0 16px; }
.iphone-guide-page > a { color: var(--guide-white); display: block; margin-top: 16px; }
.iphone-guide-page__step { padding: 24px; margin-top: 24px; background: var(--guide-chip); border-radius: 20px; }
.iphone-guide-page__step .iphone-guide__screenshot { max-width: 375px; }
.iphone-bluetooth-guide :focus-visible, .iphone-guide-page :focus-visible { outline: 2px solid var(--guide-pink); outline-offset: 2px; }
/* 旧 Flutter 透明蓝牙热区不可盖住设置按钮；收起后自动恢复。 */
body:has(.iphone-bluetooth-guide) > button[data-onvessi-ble-host] { display: none !important; pointer-events: none !important; }
@media (max-width: 767px) {
  .iphone-bluetooth-guide { align-items: flex-end; padding: env(safe-area-inset-top) 0 0; }
  .iphone-guide__panel { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top) - 16px); border-radius: 20px 20px 0 0; }
  .iphone-guide__actions { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .iphone-guide-page { padding: 16px; }
  .iphone-guide-page__step { padding: 16px; }
}

.iphone-guide__full-help { color: var(--guide-muted); text-align: center; font-size: 12px; padding: 4px; }

/* 横屏或键盘压缩视口时整张面板滚动，避免固定操作区挤没步骤内容。 */
@media (max-height: 600px) {
  .iphone-guide__panel { display: block; overflow-y: auto; }
  .iphone-guide__body { overflow: visible; }
}

/* 连续操作图直接显示；只有 FAQ 和完整截图需要展开，不设置播放控件。 */
.iphone-guide__instruction { margin-bottom: 24px; }
.iphone-guide__instruction > strong { display: block; }
.iphone-guide__preview-window { position: relative; overflow: hidden; width: 100%; max-width: 343px; margin: 0 auto; border-radius: 20px; }
.iphone-guide__full-picture { margin: 12px 0; }
.iphone-guide__full-picture summary { min-height: 44px; cursor: pointer; color: var(--guide-muted); font-size: 14px; }
.iphone-guide__faq { margin: 24px 0; }
.iphone-guide__troubleshooting p { margin: 12px 0 0; }
.iphone-guide__troubleshooting > button { display: block; text-align: left; }
.iphone-guide__footer-hint { margin: 0; color: var(--guide-muted); font-size: 14px; }

