/*
 * NeoTheme main stylesheet
 *
 * 维护顺序：基础 Token / Reset → Layout / Navigation → Search / Hero →
 * Card / List → Product detail → Article detail → Viewer / Footer →
 * Page-specific components → compatibility and responsive states.
 *
 * 生产样式只保留“当前为什么这样实现”的注释；版本历史统一记录到 CHANGELOG.md。
 * 不在文件末尾追加版本补丁，同一组件应回到所属章节维护。
 */

:root {
  --font-sans: "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-strong: #17191d;
  --text-primary: #24272d;
  --text-secondary: #667085;
  --line-soft: #eceff2;
  --accent: #ff8b23;
  --accent-rgb: 255, 139, 35;
  --accent-strong: #f47b0b;
  --accent-strong-rgb: 244, 123, 11;
  --accent-border: #ffbf87;
  --accent-softest: #fff8f2;
  --filter-highlight-bg: #ffebc6;
  --article-guide-accent: #054ada;
  --article-guide-accent-rgb: 5, 74, 218;
  --article-guide-accent-strong: #043db5;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.04), 0 10px 20px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-card: 0.65rem;
  --sidebar-width: 256px;
  --mobile-logo-slot-width: 13.5rem;
  --mobile-logo-slot-height: 3.2rem;
  --sidebar-logo-slot-width: 14.25rem;
  --sidebar-logo-slot-height: 4.25rem;
  --nav-soft: #f5f5f5;
  --nav-soft-hover: #eeeeee;
  --nav-muted: #191919;
  --nav-current-text: #111111;
  --neo-real-vw: 100vw;
  --neo-real-vh: 100vh;
  --neo-layer-preview: 2147483000;
  --neo-layer-toast: 2147483100;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8a8a8a #f7f7f7;
}

body {
  min-width: 320px;
  font-weight: 400;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body,
  .neo-site-body,
  .neo-main {
    overflow-x: hidden;
  }
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a,
[role="button"],
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(var(--accent-rgb), 0.12);
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  input,
  textarea,
  select {
    /* 兼容处理：iPhone Safari 聚焦 16px 以下表单会自动放大页面，导致 fixed 底栏/弹窗错位。 */
    font-size: 16px !important;
  }
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
svg,
canvas,
iframe,
object,
embed {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

strong,
b {
  font-weight: 600;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none;
}

.is-hidden {
  display: none;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

html::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

html::-webkit-scrollbar-track {
  background: #f7f7f7;
}

html::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 4px solid #f7f7f7;
  border-radius: 999px;
  background-color: #8a8a8a;
}

html::-webkit-scrollbar-button:vertical {
  display: block;
  width: 16px;
  height: 16px;
  background-color: #f7f7f7;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

html::-webkit-scrollbar-button:vertical:start:decrement {
  background-image: var(--neo-scrollbar-triangle-up);
}

html::-webkit-scrollbar-button:vertical:end:increment {
  background-image: var(--neo-scrollbar-triangle-down);
}

/* Layout */
.neo-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
}

.neo-site-body {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.neo-main {
  width: 100%;
  min-width: 0;
  flex: 1 0 auto;
  padding-top: 4rem;
  overflow-x: clip;
}


.neo-page-shell {
  width: min(1440px, calc(100% - 3rem));
  min-height: 0;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.neo-page-shell.is-roomy {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .neo-app {
    flex-direction: row;
  }

  .neo-site-body {
    width: auto;
    flex: 1 1 0;
  }

  .neo-main {
    padding-top: 0;
  }

  .neo-page-shell {
    padding-top: 3rem;
    padding-bottom: 0;
  }
}
@media (max-width: 767px) {
  .neo-page-shell {
    width: min(100% - 1rem, 1440px);
  }
}

/* Header and sidebar */
.neo-mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.neo-topbar-button,
.sidebar-close-button {
  position: relative;
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 顶部触发按钮的颜色只跟真实展开状态同步，避免 iOS/Android
   把 :hover、焦点或触摸高亮残留在按钮上。关闭菜单/搜索后必须立即恢复默认白底。 */

.neo-topbar-button:focus,
.sidebar-close-button:focus {
  outline: none;
}

[data-sidebar-toggle][aria-expanded="true"],
[data-search-toggle][aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

[data-sidebar-toggle][aria-expanded="false"],
[data-search-toggle][aria-expanded="false"] {
  background: var(--bg-primary);
  border-color: var(--border);
  color: var(--text-primary);
}

/* 只有真正具备鼠标悬停能力的设备才使用 hover；触屏设备不生成粘连状态。 */
@media (hover: hover) and (pointer: fine) {
  .neo-topbar-button:hover,
  .sidebar-close-button:hover {
    background: var(--border);
  }

  [data-sidebar-toggle][aria-expanded="true"]:hover,
  [data-search-toggle][aria-expanded="true"]:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #ffffff;
  }
}

.neo-topbar-search {
  margin-left: auto;
}

.neo-mobile-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(var(--mobile-logo-slot-width), calc(100% - 8rem));
  height: var(--mobile-logo-slot-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.neo-mobile-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.neo-mobile-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.neo-mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.neo-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: var(--sidebar-width);
  height: 100vh;
  height: var(--neo-real-vh, 100vh);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.sidebar-open .neo-sidebar {
  transform: translateX(0);
}

.neo-sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.55rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
}

.neo-sidebar-brand {
  width: min(100%, var(--sidebar-logo-slot-width));
  height: var(--sidebar-logo-slot-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-sidebar-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-close-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.sidebar-label {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 400;
}

.neo-sidebar-nav {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0.45rem;
  padding: 0 0.35rem 1.2rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c7cbd1 #f7f8f9;
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-track {
  background: #f7f8f9;
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 1px solid #f7f8f9;
  border-radius: 999px;
  background-color: #c7cbd1;
}

@media (hover: hover) and (pointer: fine) {
  .neo-sidebar > .neo-sidebar-nav:hover::-webkit-scrollbar-thumb {
    background-color: #b7bcc3;
  }
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-button:vertical {
  display: none;
  width: 0;
  height: 0;
}

.neo-sidebar-nav-group + .neo-sidebar-nav-group {
  margin-top: 0;
}

.sidebar-link,
.sidebar-sub-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: var(--nav-muted);
  font-weight: 400;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link::before,
.sidebar-sub-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.22rem;
  bottom: 0.22rem;
  z-index: 0;
  background: transparent;
  pointer-events: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link > .neo-icon,
.sidebar-link > .sidebar-label,
.sidebar-link > .neo-favorite-count,
.sidebar-sub-link > span {
  position: relative;
  z-index: 1;
}

.sidebar-link {
  gap: 0.78rem;
  min-height: 3.15rem;
  padding: 0.78rem 1.2rem;
  border: 0;
  border-radius: 0;
}

.sidebar-link .sidebar-label {
  color: currentColor;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-link:hover {
    color: var(--text-primary);
    background: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-link:hover::before {
    background: var(--nav-soft-hover);
  }
}

.sidebar-link.active {
  color: var(--nav-current-text);
  background: transparent;
}

.sidebar-link.active::before {
  background: var(--nav-soft);
}

.sidebar-link[aria-current="page"] {
  color: var(--nav-current-text);
  background: transparent;
  box-shadow: none;
}

.sidebar-link[aria-current="page"]::before {
  background: var(--nav-soft);
  box-shadow: inset 3px 0 0 var(--nav-current-text);
}

body[data-page="home"] .sidebar-link[data-nav-page="home"] {
  color: var(--nav-current-text);
  background: transparent;
}

body[data-page="home"] .sidebar-link[data-nav-page="home"]::before {
  background: var(--nav-soft);
  box-shadow: inset 3px 0 0 var(--nav-current-text);
}

.sidebar-link.active .neo-icon,
.sidebar-link.active .sidebar-label,
.sidebar-link[aria-current="page"] .neo-icon,
.sidebar-link[aria-current="page"] .sidebar-label {
  color: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-link:hover .neo-icon,
  .sidebar-link:hover .sidebar-label {
    color: currentColor;
  }
}

.sidebar-submenu {
  margin-top: 0;
  margin-left: 0;
  padding: 0;
  border-left: 0;
  overflow: hidden;
}

.sidebar-sub-link {
  min-height: 2.75rem;
  padding: 0.64rem 1.2rem 0.64rem 3.55rem;
  border-radius: 0;
  color: var(--nav-muted);
  font-size: 1rem;
  line-height: 1.35;
}

.sidebar-sub-link span {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-sub-link:hover {
    color: var(--text-primary);
    background: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-sub-link:hover::before {
    background: var(--nav-soft-hover);
  }
}

.sidebar-sub-link.active {
  color: var(--nav-current-text);
  background: transparent;
  font-weight: 400;
}

.sidebar-sub-link.active::before {
  background: var(--nav-soft);
}

.sidebar-sub-link[aria-current="page"] {
  color: var(--nav-current-text);
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}

.sidebar-sub-link[aria-current="page"]::before {
  background: var(--nav-soft);
  box-shadow: inset 3px 0 0 var(--nav-current-text);
}

.neo-favorite-count {
  display: none;
  min-width: 1.125rem;
  min-height: 1.125rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 500;
}

.neo-favorite-count.is-visible {
  display: inline-flex;
}

.neo-sidebar-foot {
  padding: 1.5rem;
}

.sidebar-footer-text {
  color: var(--text-secondary);
  font-size: 0.6875rem;
  opacity: 0.7;
}

.neo-sidebar-spacer {
  display: none;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}

@media (min-width: 1024px) {
  .neo-mobile-topbar,
  .neo-mobile-backdrop {
    display: none;
  }

  .neo-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    transform: none;
  }

  .neo-sidebar-spacer {
    display: block;
  }

  .sidebar-close-button {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.sidebar-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* iOS Safari 会忽略单纯的 body overflow:hidden；菜单打开时同时锁定 html/body。 */
  html.sidebar-scroll-locked,
  html.sidebar-scroll-locked body,
  body[data-neo-sidebar-lock="1"] {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

/* Search */
.neo-global-search-backdrop {
  display: none;
}

.neo-global-search-form {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.8);
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.neo-global-search-inner {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.neo-global-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.neo-global-search-box:focus-within {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.neo-global-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  color: var(--text-secondary);
  transform: translateY(-50%);
}

.neo-global-search-input {
  width: 100%;
  height: 100%;
  padding: 0 6.8rem 0 2.75rem;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  box-shadow: none;
}

.neo-global-search-input::placeholder {
  color: var(--text-secondary);
}

.neo-global-search-submit {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  min-width: 5.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-global-search-submit:hover {
    opacity: 0.9;
  }
}

.neo-global-search-submit:active {
  transform: translateY(-50%) scale(0.96);
}

@media (min-width: 1024px) {
  .neo-global-search-form {
    padding: 1rem 2rem;
  }
}

@media (max-width: 1023px) {
  .neo-global-search-form {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 49;
    max-height: 3.75rem;
    padding: 0.45rem 0.75rem;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      max-height 0.22s ease,
      opacity 0.18s ease,
      padding 0.18s ease,
      border-color 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  body:not(.search-open) .neo-global-search-form {
    /* 兼容处理：iOS 首次点击要直接弹键盘，搜索框不能在点击前处于 visibility:hidden 或 0 高度。
       固定保留可布局高度，只用透明、不可点和轻微位移隐藏，点击图标后同一个 click 链路可立即 focus。 */
    max-height: 3.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    border-bottom-color: transparent;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  .neo-global-search-input {
    padding-right: 6.25rem;
    font-size: 0.92rem;
  }
}

/* Home carousel */
.neo-home-hero-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.neo-carousel {
  position: relative;
  overflow: hidden;
}

.neo-home-carousel {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 1;
  background: #000;
  isolation: isolate;
}

@supports not (aspect-ratio: 3 / 1) {
  .neo-home-carousel {
    height: 0;
    padding-top: 33.333333%;
  }
}

.neo-home-carousel-slide,
.neo-carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.neo-home-carousel [data-carousel-slide] {
  z-index: 0;
  transform: scale(1.024);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.neo-home-carousel:not(.is-ready) [data-carousel-slide]:first-of-type,
.neo-home-carousel [data-carousel-slide].is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.neo-home-carousel [data-carousel-slide].is-leaving {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
}

.neo-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.7s ease;
}

/* 首页轮播在所有设备统一使用 3:1 横幅比例；取消旧版缓慢放大，避免额外裁切。 */
.neo-home-carousel .neo-carousel-image {
  max-width: 100%;
  transform: translateZ(0);
  object-position: center center;
  transition: opacity 0.35s ease;
}

.neo-home-carousel [data-carousel-slide].is-active .neo-carousel-image {
  transform: translateZ(0);
}

.neo-home-carousel-mask {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 33.333%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.neo-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-carousel-control:hover {
    color: #000;
    background: #fff;
  }
}

.neo-carousel-prev {
  left: 1.5rem;
}

.neo-carousel-next {
  right: 1.5rem;
}

.neo-carousel-dots,
.neo-carousel [data-carousel-dots] {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
  transform: translateX(-50%);
}

.neo-carousel-dot {
  width: 0.5rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.neo-carousel-dot.active,
.neo-carousel-dot.is-active {
  width: 2rem;
  background: #fff;
}

@media (max-width: 1023px) {
  .neo-carousel-control {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Section helpers */
.neo-home-content-wrap {
  width: min(1440px, calc(100% - 3rem));
  margin: 1rem auto 0;
}

.neo-home-content-wrap > section + section {
  margin-top: 1.5rem;
}

.neo-home-feature-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.neo-home-feature-strip:empty {
  display: none;
}

.neo-feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-feature-card:hover {
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: none;
    transform: translateY(-2px);
  }
}

.neo-feature-icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 0.45rem;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-feature-card:hover .neo-feature-icon-box {
    transform: scale(1.08);
  }
}

.neo-feature-icon {
  display: none;
  line-height: 0;
}

.neo-feature-card:nth-child(1) .neo-feature-icon-shield,
.neo-feature-card:nth-child(2) .neo-feature-icon-sparkles,
.neo-feature-card:nth-child(3) .neo-feature-icon-truck {
  display: inline-flex;
}

.neo-feature-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 500;
}

.neo-feature-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
}

.neo-section-head,
.neo-related-product-head,
.neo-search-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.neo-section-title-block {
  flex: 0 0 auto;
}

.neo-section-title,
.neo-search-title {
  color: var(--text-primary);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* 兼容处理：搜索结果页标题独占一行，工具条复用商品列表页结构；不要再把标题、布局按钮、新窗口开关塞进同一个 flex 行。 */
.neo-search-catalog-titlebar {
  margin-bottom: 1rem;
}

.neo-search-catalog-titlebar .neo-search-title {
  margin: 0;
}

.neo-search-catalog-toolbar {
  justify-content: flex-start;
}

.neo-search-catalog-toolbar .neo-catalog-center-panel {
  max-width: 100%;
  box-sizing: border-box;
}

.neo-catalog-layout-btn,
.neo-card-link-switch,
.neo-card-link-switch-label,
.neo-card-link-switch-track {
  flex-shrink: 0;
}

.neo-section-subtitle {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.neo-section-divider {
  height: 1px;
  flex: 1 1 auto;
  background: var(--border);
}

.neo-count,
.neo-search-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
}

.neo-layout-toggle,
.neo-catalog-layout-btn,
.neo-article-layout-btn,
.neo-favorites-layout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-layout-toggle:hover,
  .neo-catalog-layout-btn:hover,
  .neo-article-layout-btn:hover,
  .neo-favorites-layout-btn:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.35);
  }
}

.neo-card-link-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0 0.62rem 0 0.75rem;
  border: 1px solid var(--border);
  /* 兼容处理：商品/文章列表工具条里的“新窗口”开关外框改为全圆胶囊；半径跟随当前高度的一半，不使用 999px 魔法值。 */
  border-radius: 1.25rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-card-link-switch:hover {
    color: var(--text-primary);
    border-color: rgba(100, 116, 139, 0.32);
  }
}

.neo-card-link-switch.is-active {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.05);
}

.neo-card-link-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.neo-card-link-switch-track {
  position: relative;
  width: 46px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.22s ease;
}

.neo-card-link-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.22s ease;
}

.neo-card-link-switch.is-active .neo-card-link-switch-track {
  background: #22c55e;
}

.neo-card-link-switch.is-active .neo-card-link-switch-track::after {
  transform: translateX(22px);
}

.neo-product-more-links {
  display: flex;
  align-items: center;
}

.neo-product-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-more-link:hover {
    text-decoration: underline;
  }
}

@media (min-width: 768px) {
  .neo-home-content-wrap {
    margin-top: 1.5rem;
  }

  .neo-home-feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .neo-home-content-wrap > section + section {
    margin-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .neo-home-content-wrap {
    margin-top: 2rem;
  }

  .neo-home-content-wrap > section + section {
    margin-top: 2.5rem;
  }
}
@media (max-width: 767px) {
  .neo-home-content-wrap {
    width: min(100% - 1rem, 1440px);
  }

  .neo-section-head,
  .neo-search-head {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .neo-section-title,
  .neo-search-title {
    font-size: 1.35rem;
  }

  .neo-search-catalog-titlebar {
    margin-bottom: 0.75rem;
  }

  .neo-search-catalog-toolbar {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  .neo-search-catalog-toolbar .neo-catalog-center-panel {
    width: 100%;
    justify-content: flex-start;
  }

  .neo-product-more-links {
    display: none;
  }

  .neo-product-empty {
    width: 100%;
    margin-top: 1rem;
    padding: 2.5rem 1rem;
    border-radius: 0.75rem;
  }

  .neo-product-empty-title {
    font-size: 1.05rem;
  }

  .neo-product-empty-desc {
    font-size: 0.8rem;
  }

  /* 兼容处理：Android Firefox 可能触发移动端 text inflation，不能让商品/文章工具条依赖 inline-flex 的 shrink-to-fit + wrap 计算；改为明确的横向 grid，避免“共几件/布局/新窗口”被挤成巨大两行胶囊。 */
  .neo-catalog-center-panel,
  .neo-article-center-panel,
  .neo-favorites-center-panel {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: auto;
    max-width: calc(100vw - 1.5rem);
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 999px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .neo-catalog-count-pill,
  .neo-article-count-pill,
  .neo-favorites-count-pill,
  .neo-catalog-layout-btn,
  .neo-article-layout-btn,
  .neo-favorites-layout-btn,
  .neo-card-link-switch,
  .neo-card-link-switch-label {
    white-space: nowrap;
  }

  .neo-catalog-divider,
  .neo-article-divider,
  .neo-favorites-divider {
    display: none;
  }

  .neo-layout-toggle,
  .neo-catalog-layout-btn,
  .neo-article-layout-btn,
  .neo-favorites-layout-btn {
    min-height: 2.2rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .neo-card-link-switch {
    min-height: 2.2rem;
    padding-left: 0.58rem;
    padding-right: 0.46rem;
    gap: 0.4rem;
    font-size: 0.72rem;
    border-radius: 1.1rem;
  }

  .neo-card-link-switch-track {
    width: 42px;
    height: 22px;
  }

  .neo-card-link-switch-track::after {
    width: 18px;
    height: 18px;
  }

  .neo-card-link-switch.is-active .neo-card-link-switch-track::after {
    transform: translateX(20px);
  }

  .neo-search-head {
    flex-wrap: wrap;
  }

  .neo-search-head .neo-section-divider {
    display: none;
  }

  .neo-search-count {
    width: 100%;
  }

  [data-home-products] .neo-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.45rem 0.5rem;
    margin-bottom: 1rem;
  }

  [data-home-products] .neo-section-title-block {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }

  [data-home-products] .neo-section-title {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  [data-home-products] .neo-section-subtitle {
    margin-top: 0;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  [data-home-products] .neo-section-divider {
    display: none;
  }

  [data-home-products] .neo-layout-toggle {
    display: inline-flex;
    justify-self: end;
    align-self: start;
    min-height: 1.9rem;
    padding: 0 0.55rem;
    gap: 0.35rem;
    border-radius: 0.45rem;
    font-size: 0.625rem;
    letter-spacing: 0.02em;
  }

  [data-home-products] .neo-count {
    justify-self: end;
    align-self: center;
    font-size: 0.72rem;
    line-height: 1.2;
  }
}

/* Shared card motion */
.neo-card-hover {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-card-hover:hover {
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
  }
}

/* WebpTool 的“全部 picture”模式会在 img 外增加一层 wrapper；固定尺寸槽位必须让 wrapper 完整继承槽位尺寸。 */
.neo-mobile-brand > picture,
.neo-sidebar-brand > picture,
.neo-product-media > picture,
.neo-product-rank-media > picture,
.neo-product-neighbor-media > picture,
.neo-article-neighbor-media > picture,
.neo-template-news-slide-media > picture,
.neo-detail-thumb > picture,
.neo-detail-carousel > picture,
.neo-article-image > picture,
.neo-article-hero > picture,
.neo-pm-hero-slide-link > picture,
.channel-banner > picture,
.neo-footer-qr-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Product card */
.neo-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.95rem;
}

.neo-product-grid.is-three-col,
.neo-product-grid.is-four-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neo-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-secondary);
}

.neo-product-media-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-primary);
}

.neo-product-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-primary);
  cursor: pointer;
}

.neo-product-media-wrap > .neo-catalog-play-button {
  pointer-events: auto;
}

.neo-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-card:hover .neo-product-image {
    transform: scale(1.05);
  }
}

.neo-card-info {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.neo-card-kicker {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.625rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.neo-product-title,
.neo-product-title a {
  display: block;
  color: var(--text-primary);
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: auto;
}

.neo-product-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
  transition: color 0.2s ease;
}

.neo-product-title.neo-line-clamp-1 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-card:hover .neo-product-title,
  .neo-product-card:hover .neo-product-title a {
    color: var(--accent);
  }
}

.neo-product-description {
  display: none;
}

.neo-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: auto;
}

.neo-card-bottom > .neo-favorite {
  margin-left: 0.75rem;
}

.neo-product-price {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.neo-favorite {
  --neo-favorite-size: 3rem;
  --neo-favorite-neutral-color: var(--border);
  --neo-favorite-active-color: #f43f5e;
  --neo-favorite-icon-ratio: 50%;
  position: relative;
  flex: 0 0 var(--neo-favorite-size);
  width: var(--neo-favorite-size);
  min-width: var(--neo-favorite-size);
  height: var(--neo-favorite-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neo-favorite-neutral-color);
  border-radius: 50%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-secondary);
  color: var(--neo-favorite-neutral-color);
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
}

.neo-favorite.is-sm {
  --neo-favorite-size: 2.5rem;
}

.neo-favorite.is-md {
  --neo-favorite-size: 3rem;
}

.neo-favorite.is-lg {
  --neo-favorite-size: 3.5rem;
}

.neo-heart-outline,
.neo-heart-filled {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-favorite .neo-icon {
  width: var(--neo-favorite-icon-ratio);
  height: var(--neo-favorite-icon-ratio);
}

.neo-heart-outline {
  color: var(--neo-favorite-neutral-color);
}

/* 收藏状态只切换爱心颜色，外圈继续保持统一的中性灰。 */
.neo-heart-filled {
  color: var(--neo-favorite-active-color);
}


.neo-favorite.is-active .neo-heart-outline,
.neo-favorite:not(.is-active) .neo-heart-filled {
  display: none;
}

.neo-play-button {
  position: absolute;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-play-button:hover {
    background: var(--accent);
  }
}

.neo-play-button:active {
  transform: scale(0.9);
}

.neo-catalog-play-button {
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
}

.neo-line-clamp-1,
.neo-line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.neo-line-clamp-1 {
  -webkit-line-clamp: 1;
}

.neo-line-clamp-2 {
  -webkit-line-clamp: 2;
}


@media (max-width: 360px) {
  /* 兼容处理：小屏或 Firefox Android 字体偏大时继续压缩工具条，不回退到大面积换行胶囊。 */
  .neo-catalog-center-panel,
  .neo-article-center-panel,
  .neo-favorites-center-panel {
    max-width: calc(100vw - 1rem);
    column-gap: 0.32rem;
    row-gap: 0;
    padding: 0.34rem;
  }

  .neo-catalog-count-pill,
  .neo-article-count-pill,
  .neo-favorites-count-pill {
    padding: 0.34rem 0.46rem;
    font-size: 0.68rem;
  }

  .neo-layout-toggle,
  .neo-catalog-layout-btn,
  .neo-article-layout-btn,
  .neo-favorites-layout-btn {
    min-height: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.62rem;
  }

  .neo-card-link-switch {
    min-height: 2rem;
    padding-left: 0.46rem;
    padding-right: 0.38rem;
    font-size: 0.62rem;
    border-radius: 1rem;
  }

  .neo-card-link-switch-track {
    width: 38px;
    height: 20px;
  }

  .neo-card-link-switch-track::after {
    width: 16px;
    height: 16px;
  }

  .neo-card-link-switch.is-active .neo-card-link-switch-track::after {
    transform: translateX(18px);
  }
}

@media (min-width: 768px) {
  .neo-card-info {
    padding: 1.75rem;
  }

  .neo-card-kicker {
    font-size: 0.75rem;
  }

  .neo-product-title {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .neo-product-grid.is-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .neo-product-grid.is-four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .neo-product-grid.is-three-col .neo-product-title {
    font-size: 1rem;
  }
}
@media (max-width: 767px) {
  .neo-product-grid {
    gap: 0.8rem 0.68rem;
  }

  .neo-product-grid.is-mobile-one-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .neo-card-info {
    padding: 0.75rem;
  }

  .neo-card-kicker {
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
  }

  .neo-product-title {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
  }


  .neo-card-bottom {
    gap: 0;
  }

  .neo-card-bottom > .neo-favorite {
    margin-left: 0.5rem;
  }

  .neo-product-price {
    font-size: 1.25rem;
  }

  .neo-favorite.is-md,
  .neo-favorite.is-lg {
    --neo-favorite-size: 2.5rem;
  }

  .neo-catalog-toolbar,
  .neo-article-toolbar,
  .neo-favorites-toolbar {
    margin-bottom: 1rem;
  }


  .neo-catalog-count-pill,
  .neo-article-count-pill,
  .neo-favorites-count-pill {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Article cards */
.neo-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.neo-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
}

.neo-article-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-primary);
}

.neo-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-card:hover .neo-article-image img {
    transform: scale(1.08);
  }
}

.neo-article-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.neo-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neo-article-meta-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--border);
}

.neo-article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
}

.neo-article-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 500;
  transition: color 0.2s ease;
}

.neo-article-title a {
  color: inherit;
  font-weight: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-card:hover .neo-article-title,
  .neo-article-card:hover .neo-article-title a {
    color: var(--accent);
  }
}

.neo-article-excerpt {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-grid.is-list-layout .neo-article-card:hover .neo-article-image img {
    transform: scale(1.04);
  }
}

@media (min-width: 768px) {
  .neo-article-grid.is-grid-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .neo-article-grid.is-grid-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .neo-article-grid.is-list-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .neo-article-grid.is-list-layout .neo-article-card {
    display: grid;
    grid-template-columns: minmax(12rem, 32%) minmax(0, 1fr);
    align-items: stretch;
    height: auto;
    min-height: 0;
  }

  .neo-article-grid.is-list-layout .neo-article-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    align-self: start;
    overflow: hidden;
    background: var(--bg-primary);
  }

  .neo-article-grid.is-list-layout .neo-article-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }


  .neo-article-grid.is-list-layout .neo-article-body {
    min-width: 0;
    min-height: 0;
    padding: 1.25rem 1.35rem;
  }

  .neo-article-grid.is-list-layout .neo-article-meta {
    gap: 0.55rem 0.7rem;
    margin-bottom: 0.65rem;
  }

  .neo-article-grid.is-list-layout .neo-article-title {
    margin-bottom: 0.65rem;
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  .neo-article-grid.is-list-layout .neo-article-excerpt {
    flex: 0 0 auto;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

}

@media (min-width: 1024px) {
  .neo-article-grid.is-list-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neo-article-grid.is-list-layout .neo-article-card {
    grid-template-columns: minmax(12rem, 32%) minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .neo-article-grid.is-list-layout {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .neo-article-grid.is-list-layout .neo-article-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    align-items: stretch;
    height: auto;
    min-height: 8.25rem;
  }

  .neo-article-grid.is-list-layout .neo-article-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    align-self: stretch;
    overflow: hidden;
    background: var(--bg-primary);
  }

  .neo-article-grid.is-list-layout .neo-article-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }


  .neo-article-grid.is-list-layout .neo-article-body {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0.75rem;
  }

  .neo-article-grid.is-list-layout .neo-article-meta {
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow: hidden;
    margin-bottom: 0.35rem;
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .neo-article-grid.is-list-layout .neo-article-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .neo-article-grid.is-list-layout .neo-article-excerpt {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .neo-article-grid.is-grid-layout {
    gap: 1rem;
  }

  .neo-article-grid.is-grid-layout .neo-article-body {
    padding: 1.25rem;
  }
}

/* Home article heading */
.neo-section-heading-center {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* 收藏夹依赖浏览器本地收藏数据：初始化完成前不显示“0 件”或空状态，避免首屏错误闪现。 */
[data-favorites-page].is-favorites-loading .neo-favorites-section,
[data-favorites-page].is-favorites-loading [data-favorites-empty] {
  display: none;
}

/* Toolbars */
.neo-catalog-section,
.neo-article-list-section,
.neo-favorites-section {
  margin-bottom: 0;
}

.neo-catalog-toolbar,
.neo-article-toolbar,
.neo-favorites-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.neo-catalog-center-panel,
.neo-article-center-panel,
.neo-favorites-center-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-soft);
}

.neo-catalog-count-pill,
.neo-article-count-pill,
.neo-favorites-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.neo-catalog-count-pill .neo-icon,
.neo-article-count-pill .neo-icon,
.neo-favorites-count-pill .neo-icon {
  color: var(--accent);
}

.neo-favorites-section .neo-card-kicker,
.neo-favorites-section .neo-product-description {
  display: none;
}

.neo-catalog-divider,
.neo-article-divider,
.neo-favorites-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
}

.neo-empty-state {
  padding: 5rem 0;
  text-align: center;
  color: var(--text-secondary);
}

.neo-product-empty {
  width: min(100%, 28rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0;
  padding: 3.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--bg-secondary);
  text-align: center;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.06);
}

.neo-product-empty.is-hidden {
  display: none;
}

.neo-product-empty-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: #f43f5e;
}

.neo-product-empty-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
}

.neo-product-empty-desc {
  max-width: 18rem;
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
}

.neo-product-empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.neo-product-empty-links .neo-product-empty-link + .neo-product-empty-link {
  display: none;
}

.neo-product-empty-link {
  min-width: 6.8rem;
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 0.55rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-empty-link:hover {
    background: var(--accent);
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

.neo-product-empty-link:active {
  transform: translateY(0);
}

/* Pagination */
.neo-pagination {
  --neo-page-accent: var(--accent);
  --neo-page-accent-strong: var(--accent-strong);
  --neo-page-accent-bg: rgba(var(--accent-rgb), 0.08);
  --neo-page-border: #e5e8ec;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 2.375rem;
  margin: 1.75rem auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--neo-page-border);
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  list-style: none;
}

.neo-pagination ul,
.neo-pagination ol {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.neo-pagination li {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: 2.375rem;
  flex: 0 0 2.375rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--neo-page-border);
  background: transparent;
  color: inherit;
  list-style: none;
  box-shadow: none;
}

.neo-pagination li:last-child {
  border-right: 0;
}

.neo-pagination li::marker {
  content: "";
}

.neo-pagination a,
.neo-pagination span,
.neo-pagination em,
.neo-pagination strong,
.neo-pagination b,
.neo-pagination button {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 2.3125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #3f4854;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  box-shadow: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.neo-pagination .neo-page-control,
.neo-pagination .neo-page-edge {
  min-width: 0;
  color: #4f5965;
  font-size: inherit;
  font-weight: 500;
}

.neo-pagination .neo-page-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.neo-pagination .neo-page-icon--edge {
  width: 1.0625rem;
  height: 1.0625rem;
  stroke-width: 1.7;
}

.neo-pagination li:not(.active) > a:not([href]),
.neo-pagination li:not(.active) > span:not(.current),
.neo-pagination li:not(.active) > em:not(.current),
.neo-pagination li:not(.active) > strong:not(.current),
.neo-pagination li:not(.active) > b:not(.current),
.neo-pagination button:disabled {
  color: #b7bec6;
  background: #fbfbfc;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .neo-pagination a[href]:hover,
  .neo-pagination button:hover {
    color: var(--neo-page-accent-strong);
    background: var(--neo-page-accent-bg);
  }
}

.neo-pagination .neo-page-jump {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.3125rem;
  margin: 0;
  padding: 0 0.375rem;
  border: 0;
  background: #fff;
  color: #687381;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
}

.neo-pagination .neo-page-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  cursor: text;
}

.neo-pagination .neo-page-jump-input {
  width: 2.5rem;
  height: 1.75rem;
  margin: 0;
  padding: 0 0.25rem;
  border: 1px solid #dfe4e9;
  border-radius: 0.3125rem;
  outline: 0;
  background: #fff;
  color: #303844;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.75rem;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.neo-pagination .neo-page-jump-input::-webkit-outer-spin-button,
.neo-pagination .neo-page-jump-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.neo-pagination .neo-page-jump-input:focus {
  border-color: rgba(var(--accent-rgb), 0.72);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.neo-pagination .neo-page-jump-suffix {
  width: auto;
  height: auto;
  min-width: 0;
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.neo-pagination .neo-page-jump-submit {
  width: auto;
  min-width: 2.75rem;
  height: 1.75rem;
  margin-left: 0.375rem;
  padding: 0 0.5rem;
  border: 1px solid #303844;
  border-radius: 0.3125rem;
  background: #303844;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .neo-pagination .neo-page-jump-submit:hover {
    border-color: #20262d;
    background: #20262d;
    color: #fff;
  }
}

.neo-pagination .neo-page-jump-submit:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.58);
  outline-offset: 1px;
}

.neo-pagination a:focus-visible,
.neo-pagination button:focus-visible {
  z-index: 2;
  outline: 2px solid rgba(var(--accent-rgb), 0.58);
  outline-offset: -3px;
}

.neo-pagination a.current,
.neo-pagination span.current,
.neo-pagination em.current,
.neo-pagination strong.current,
.neo-pagination b.current,
.neo-pagination button.current,
.neo-pagination a.active,
.neo-pagination span.active,
.neo-pagination em.active,
.neo-pagination strong.active,
.neo-pagination b.active,
.neo-pagination button.active,
.neo-pagination a.cur,
.neo-pagination span.cur,
.neo-pagination em.cur,
.neo-pagination strong.cur,
.neo-pagination b.cur,
.neo-pagination button.cur,
.neo-pagination a.on,
.neo-pagination span.on,
.neo-pagination em.on,
.neo-pagination strong.on,
.neo-pagination b.on,
.neo-pagination button.on,
.neo-pagination li.current > a,
.neo-pagination li.current > span,
.neo-pagination li.current > em,
.neo-pagination li.current > strong,
.neo-pagination li.current > b,
.neo-pagination li.active > a,
.neo-pagination li.active > span,
.neo-pagination li.active > em,
.neo-pagination li.active > strong,
.neo-pagination li.active > b,
.neo-pagination li.cur > a,
.neo-pagination li.cur > span,
.neo-pagination li.cur > em,
.neo-pagination li.cur > strong,
.neo-pagination li.cur > b,
.neo-pagination li.on > a,
.neo-pagination li.on > span,
.neo-pagination li.on > em,
.neo-pagination li.on > strong,
.neo-pagination li.on > b {
  color: var(--neo-page-accent-strong);
  background: var(--neo-page-accent-bg);
  font-weight: 600;
}

.neo-pagination a.current::after,
.neo-pagination span.current::after,
.neo-pagination em.current::after,
.neo-pagination strong.current::after,
.neo-pagination b.current::after,
.neo-pagination button.current::after,
.neo-pagination li.current > a::after,
.neo-pagination li.active > a::after,
.neo-pagination li.cur > a::after,
.neo-pagination li.on > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--neo-page-accent);
}

@media (min-width: 1024px) {
  .neo-pagination {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .neo-pagination {
    min-height: 0;
    margin-top: 1.375rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .neo-pagination li {
    width: 2.5rem;
    flex-basis: 2.5rem;
    border-top: 1px solid var(--neo-page-border);
    border-bottom: 1px solid var(--neo-page-border);
    background: #fff;
  }

  .neo-pagination li:first-of-type {
    overflow: hidden;
    border-left: 1px solid var(--neo-page-border);
    border-radius: 0.5625rem 0 0 0.5625rem;
  }

  .neo-pagination li:last-of-type {
    overflow: hidden;
    border-radius: 0 0.5625rem 0.5625rem 0;
  }

  .neo-pagination a,
  .neo-pagination span,
  .neo-pagination em,
  .neo-pagination strong,
  .neo-pagination b,
  .neo-pagination button {
    height: 2.4375rem;
    font-size: 0.9375rem;
  }

  .neo-pagination .neo-page-icon {
    width: 0.9375rem;
    height: 0.9375rem;
  }

  .neo-pagination .neo-page-icon--edge {
    width: 1.0625rem;
    height: 1.0625rem;
  }

  .neo-pagination .neo-page-jump {
    flex: 1 0 100%;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 360px) {
  .neo-pagination li {
    width: 2.375rem;
    flex-basis: 2.375rem;
  }

  .neo-pagination a,
  .neo-pagination span,
  .neo-pagination em,
  .neo-pagination strong,
  .neo-pagination b,
  .neo-pagination button {
    height: 2.3125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-pagination a,
  .neo-pagination span,
  .neo-pagination em,
  .neo-pagination strong,
  .neo-pagination b,
  .neo-pagination button {
    transition: none;
  }
}

/* Banner */
.channel-banner {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #111827;
}

.channel-banner-image {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

.banner-info {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.banner-info .neo-banner-title {
  margin-bottom: 0.625rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.banner-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.neo-banner-breadcrumb {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(720px, calc(100% - 3rem));
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.neo-banner-breadcrumb-dot {
  width: 0.4rem;
  height: 0.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.neo-banner-breadcrumb-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .channel-banner {
    height: 150px;
  }

  .banner-info .neo-banner-title {
    display: block;
    overflow: hidden;
    max-width: 100%;
    margin: 0 0 0.2rem;
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .banner-info p {
    font-size: 0.85rem;
  }

  .neo-banner-breadcrumb {
    top: 0.9rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    font-size: 0.68rem;
  }
}

/* Product detail */
.neo-product-detail-shell {
  width: min(1280px, calc(100% - 3rem));
  max-width: calc(var(--neo-real-vw, 100vw) - 3rem);
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.neo-product-detail-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

.neo-detail-gallery {
  width: 100%;
  max-width: 560px;
  flex: 0 0 auto;
}

.neo-detail-gallery-frame {
  position: relative;
}

.neo-detail-carousel {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-secondary);
}

.neo-detail-carousel .neo-carousel-image {
  object-fit: contain;
  transition: none;
}

.neo-detail-carousel-transition-image {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: inherit;
  transform: translateY(100%);
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
}

.neo-detail-carousel-transition-image.is-entering {
  animation: neo-detail-cover-up 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes neo-detail-cover-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .neo-detail-carousel-transition-image {
    display: none;
  }
}

.neo-detail-play-button {
  top: auto;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.neo-detail-play-button::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
}

.neo-detail-play-button .neo-icon {
  position: relative;
  z-index: 1;
}

.neo-detail-thumb-slider {
  --neo-detail-thumb-nav-size: 1.15rem;
  --neo-detail-thumb-gap: 0.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.3rem;
  margin-top: 0.9rem;
}

.neo-detail-thumb-slider.is-scrollable {
  grid-template-columns: var(--neo-detail-thumb-nav-size) minmax(0, 1fr) var(--neo-detail-thumb-nav-size);
}

.neo-detail-thumbs-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.neo-detail-thumbs-viewport::-webkit-scrollbar {
  display: none;
}

.neo-detail-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--neo-detail-thumb-gap) * 4)) / 5);
  width: 100%;
  min-width: 100%;
  align-items: stretch;
  gap: var(--neo-detail-thumb-gap);
}

.neo-detail-thumb {
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 0.45rem;
  background: var(--bg-secondary);
  box-sizing: border-box;
  line-height: 0;
  transition: border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-detail-thumb:hover {
    border-color: var(--accent-border);
  }
}

.neo-detail-thumb.is-active {
  border-color: var(--accent-border);
}

.neo-detail-thumb img,
.neo-detail-thumb > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neo-detail-thumb-nav {
  display: none;
  width: var(--neo-detail-thumb-nav-size);
  min-width: var(--neo-detail-thumb-nav-size);
  height: auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  background: #ffffff;
  color: #7f8791;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.neo-detail-thumb-slider.is-scrollable .neo-detail-thumb-nav:not([hidden]) {
  display: inline-flex;
}

.neo-detail-thumb-nav[hidden] {
  display: none;
}

.neo-detail-thumb-nav-icon {
  display: block;
  width: 0.92rem;
  height: 2.45rem;
  flex: 0 0 auto;
}

.neo-detail-thumb-nav:disabled {
  color: #d2d5da;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .neo-detail-thumb-nav:not(:disabled):hover {
    background: #f7f8fa;
    border-color: rgba(15, 23, 42, 0.08);
    color: #727985;
  }
}

.neo-detail-thumb-nav:focus-visible,
.neo-detail-thumb-controls button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.22);
  outline-offset: 2px;
}

.neo-detail-thumb-controlbar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
}

.neo-detail-thumb-statusbar {
  margin-top: 0;
  line-height: 0;
}

.neo-detail-thumb-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.06);
}

.neo-detail-thumb-progress > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(var(--accent-rgb), 0.48);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.neo-detail-thumb-controls {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 16, 27, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.neo-detail-thumb-controls button {
  position: relative;
  display: inline-flex;
  width: 2.5rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.neo-detail-thumb-controls button + button::before {
  content: "";
  position: absolute;
  top: 0.38rem;
  bottom: 0.38rem;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .neo-detail-thumb-controls button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
}

.neo-detail-thumb-pause span {
  position: relative;
  display: block;
  width: 12px;
  height: 14px;
}

.neo-detail-thumb-pause span::before,
.neo-detail-thumb-pause span::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.neo-detail-thumb-pause span::before { left: 0; }
.neo-detail-thumb-pause span::after { right: 0; }

.neo-detail-gallery.is-user-paused .neo-detail-thumb-pause {
  color: var(--accent);
}

.neo-detail-gallery.is-user-paused .neo-detail-thumb-pause span::before {
  top: 1px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.neo-detail-gallery.is-user-paused .neo-detail-thumb-pause span::after {
  display: none;
}

.neo-detail-gallery.is-static .neo-detail-thumb-controlbar,
.neo-detail-gallery.is-static .neo-detail-thumb-statusbar {
  display: none;
}

.neo-product-info-panel {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.neo-product-info-title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
}

.neo-product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.neo-product-date,
.neo-product-popularity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: nowrap;
}

.neo-product-detail-price {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.neo-product-detail-price .neo-price-symbol {
  margin-right: 0.08em;
  font-size: 0.62em;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.neo-product-detail-price .neo-price-value {
  font-size: 1em;
}

.neo-product-detail-desc {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
}

.neo-product-service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 1.5rem;
}

.neo-product-service-list > .neo-product-service-item + .neo-product-service-item {
  margin-top: 0.75rem;
}

.neo-product-service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(248, 250, 252, 0.5);
  background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
}

.neo-product-service-item .neo-icon {
  color: var(--accent);
}

.neo-product-service-item p:first-child {
  font-size: 0.9rem;
  font-weight: 400;
}

.neo-product-service-item p:last-child {
  color: var(--text-secondary);
  font-size: 0.625rem;
}

.neo-product-actions {
  --neo-product-action-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.neo-product-actions > .neo-favorite {
  margin-left: calc(var(--neo-product-action-height) * 0.22);
}

.neo-product-favorite {
  --neo-favorite-size: var(--neo-product-action-height);
}

.neo-buy-button {
  position: relative;
  flex: 1 1 auto;
  height: var(--neo-product-action-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border-radius: 0.55rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-buy-button:hover {
    background: var(--accent-strong);
  }
}

.neo-buy-button:active {
  transform: scale(0.98);
}

.neo-buy-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 1s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-buy-button:hover::before {
    transform: translateX(100%);
  }
}

.neo-buy-button .neo-icon,
.neo-buy-button span {
  position: relative;
  z-index: 1;
}

.neo-product-detail-section {
  margin-bottom: 4.5rem;
}

.neo-product-detail-section,
.neo-product-detail-card,
.neo-product-detail-content,
.neo-product-hot-sidebar,
.neo-product-hot-panel {
  color: #0f172a;
}

.neo-product-detail-main {
  --neo-product-hot-width: 272px;
  --neo-product-detail-gap: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--neo-product-hot-width);
  align-items: start;
  gap: var(--neo-product-detail-gap);
  width: 100%;
}

.neo-product-detail-content {
  min-width: 0;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
}

body[data-page="product"] .neo-product-block-head {
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

body[data-page="product"] .neo-product-block-title {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  min-width: 0;
}

body[data-page="product"] .neo-product-block-title .neo-icon {
  --neo-icon-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: currentColor;
}

body[data-page="product"] .neo-product-block-title h2 {
  margin: 0;
  color: currentColor;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.neo-product-detail-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.neo-product-detail-tabbar {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 4.25rem;
  padding: 0 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.neo-product-detail-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.25rem;
  margin-right: 3.25rem;
  padding: 0;
  border-radius: 0;
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.neo-product-detail-tab:last-child {
  margin-right: 0;
}

/* 参数为空时，JS 会给规格参数标签添加 hidden；此规则必须位于 tab 的 display 声明之后。 */
.neo-product-detail-tab[hidden] {
  display: none;
}

.neo-product-detail-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-detail-tab:hover {
    color: #334155;
    background: transparent;
  }
}

.neo-product-detail-tab.is-active {
  color: var(--accent);
  font-weight: 500;
  background: transparent;
}

.neo-product-detail-tab.is-active::after {
  background: var(--accent);
}

.neo-product-detail-tab:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: -2px;
}

.neo-product-detail-panel {
  padding: 1.5rem 2rem 2rem;
  background: #ffffff;
}

.neo-product-detail-panel[hidden] {
  display: none;
}

.neo-product-parameter-list {
  margin: 0;
  overflow: hidden;
  border-top: 1px solid #dcdcdc;
  border-left: 1px solid #dcdcdc;
  background: #ffffff;
}

.neo-product-parameter-item {
  display: grid;
  grid-template-columns: minmax(10rem, 20.5rem) minmax(0, 1fr);
}

.neo-product-parameter-name,
.neo-product-parameter-value {
  min-width: 0;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

.neo-product-parameter-name {
  justify-content: flex-end;
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 500;
  background: #fafafa;
  text-align: right;
}

.neo-product-parameter-value {
  color: #111827;
  font-size: 1.2rem;
  background: #ffffff;
}

.neo-product-detail-prose,
.neo-detail-rich-content {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0.6rem 0.75rem 0.8rem;
  color: #0f172a;
  line-height: 1.8;
  background: #ffffff;
}

.neo-product-detail-prose picture,
.neo-detail-rich-content picture {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.12rem auto;
}

.neo-product-detail-prose img,
.neo-detail-rich-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0.12rem auto;
  border-radius: 0.3rem;
  object-fit: contain;
}

.neo-product-detail-prose picture > img,
.neo-detail-rich-content picture > img {
  margin: 0 auto;
}

.neo-product-hot-sidebar {
  width: 100%;
  min-width: 0;
  background: transparent;
}

.neo-product-hot-panel {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.neo-product-hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
  margin-bottom: 0;
  padding: 0 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.neo-product-hot-head h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  color: #334155;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 500;
}

.neo-product-hot-head h3::before {
  display: none;
  content: none;
}

.neo-product-hot-head span {
  color: #64748b;
  font-size: 0.75rem;
}

.neo-product-hot-list {
  display: flex;
  flex-direction: column;
  counter-reset: neo-hot-rank;
  gap: 0;
  padding: 0.7rem;
  background: #ffffff;
}

.neo-product-hot-list > .neo-product-rank-card + .neo-product-rank-card {
  margin-top: 0.58rem;
}

.neo-product-rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  grid-column-gap: 0;
  grid-row-gap: 0;
  min-width: 0;
  padding: 0.55rem;
  counter-increment: neo-hot-rank;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.neo-product-rank-card:nth-of-type(n+6) {
  display: none;
}

.neo-product-rank-media-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.neo-product-rank-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  cursor: pointer;
}

.neo-product-rank-media-wrap .neo-catalog-play-button {
  right: 0.38rem;
  bottom: 0.38rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.neo-product-rank-media-wrap .neo-catalog-play-button .neo-icon {
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-rank-media-wrap:hover .neo-catalog-play-button {
    background: rgba(249, 115, 22, 0.92);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-rank-card.neo-card-hover:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-neighbor-card.neo-product-rank-card:hover {
    border-color: rgba(var(--accent-rgb), 0.24);
    box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.08);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-rank-card:hover .neo-product-image {
    transform: scale(1.04);
  }
}

.neo-product-rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 0.68rem;
}

.neo-product-rank-title-row + .neo-product-rank-bottom {
  margin-top: 0.48rem;
}

.neo-product-rank-title-row {
  min-width: 0;
}

.neo-product-rank-badge {
  position: absolute;
  z-index: 2;
  top: 0.28rem;
  left: 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 0.9rem;
  padding: 0 0.24rem;
  border: 0;
  border-radius: 0.2rem;
  background: rgba(216, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.5rem;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
}

.neo-product-rank-badge::before {
  content: "TOP" counter(neo-hot-rank);
}

.neo-product-rank-title,
.neo-product-rank-title a {
  display: block;
  min-width: 0;
  color: #0f172a;
}

.neo-product-rank-title {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 400;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-rank-card:hover .neo-product-rank-title,
  .neo-product-rank-card:hover .neo-product-rank-title a {
    color: #0f172a;
  }
}

.neo-product-rank-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
}

.neo-product-rank-bottom > .neo-product-rank-fav {
  margin-left: 0.75rem;
}

.neo-product-rank-price {
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
}

.neo-product-rank-fav.is-md {
  --neo-favorite-size: 2rem;
}

.neo-product-neighbor-section {
  width: 100%;
  margin-top: 0.9rem;
}

.neo-product-neighbor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.neo-product-neighbor-card,
.neo-product-neighbor-empty {
  min-height: 5.35rem;
  max-width: none;
  color: #0f172a;
  text-decoration: none;
}

.neo-product-neighbor-card.is-prev,
.neo-product-neighbor-empty.is-prev {
  grid-column: 1;
}

.neo-product-neighbor-card.is-next,
.neo-product-neighbor-empty.is-next {
  grid-column: 3;
}

.neo-product-neighbor-card.neo-product-rank-card {
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 0.68rem;
  row-gap: 0;
  padding: 0.52rem;
  border-radius: 0;
}

/* 上下个商品卡片不用 direction: rtl 反转布局，避免右侧“下个商品”标题/价格按内容宽度溢出到图片区域。 */
.neo-product-neighbor-card.is-next {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.neo-product-neighbor-card.is-next .neo-product-neighbor-media {
  grid-column: 2;
  grid-row: 1;
}

.neo-product-neighbor-card.is-next .neo-product-neighbor-info {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
  text-align: right;
}

.neo-product-neighbor-media {
  width: 78px;
  border-radius: 0;
}

.neo-product-neighbor-info {
  justify-content: center;
  gap: 0;
  min-width: 0;
  margin-left: 0;
}

.neo-product-neighbor-info > * + * {
  margin-top: 0.34rem;
}

.neo-product-neighbor-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.62rem 0.75rem;
  border: 1px dashed rgba(100, 116, 139, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
  color: #64748b;
}

.neo-product-neighbor-empty.is-next {
  align-items: flex-end;
  text-align: right;
}

.neo-product-neighbor-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  color: var(--accent);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}

.neo-product-neighbor-title {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.neo-product-neighbor-price {
  max-width: 100%;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.neo-product-neighbor-empty .neo-product-neighbor-title {
  color: #64748b;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-neighbor-card:hover .neo-product-neighbor-title {
    color: #0f172a;
  }
}

.neo-product-back-list {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 5.35rem;
  padding: 0.62rem;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(var(--accent-rgb), 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-product-back-list:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.06);
  outline: 2px solid rgba(var(--accent-rgb), 0.26);
  outline-offset: 2px;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-back-list:hover {
    border-color: rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-rgb), 0.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.08);
  }
}

.neo-product-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.32rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.neo-product-back-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.neo-product-back-list > .neo-product-back-text {
  margin-left: 0.45rem;
}

.neo-product-back-text > * + * {
  margin-top: 0.16rem;
}

.neo-product-back-text span {
  color: #0f172a;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.neo-product-back-text small {
  display: block;
  max-width: 4.9rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="product"] .neo-related-product-head {
  margin-bottom: 1rem;
}

body[data-page="product"] .neo-related-products-section {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* Product detail page: keep visible labels and section headings non-bold. */
body[data-page="product"] .neo-product-title,
body[data-page="product"] .neo-product-title a,
body[data-page="product"] .neo-product-rank-title,
body[data-page="product"] .neo-product-rank-title a,
body[data-page="product"] .neo-product-rank-badge,
body[data-page="product"] .neo-card-kicker,
body[data-page="product"] .neo-product-price,
body[data-page="product"] .neo-product-rank-price {
  font-weight: 400;
  letter-spacing: 0;
}

/* 产品正文改为阅读型排版，控制行宽、字号、行高与标题层级。 */
body[data-page="product"] .neo-detail-rich-content {
  width: 100%;
  max-width: 64rem;
  margin-right: auto;
  margin-left: auto;
  overflow-x: auto;
  color: #343941;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body[data-page="product"] .neo-detail-rich-content p {
  margin: 0;
}

body[data-page="product"] .neo-detail-rich-content > * + * {
  margin-top: 0.72rem;
}

body[data-page="product"] .neo-detail-rich-content h1,
body[data-page="product"] .neo-detail-rich-content h2,
body[data-page="product"] .neo-detail-rich-content h3,
body[data-page="product"] .neo-detail-rich-content h4,
body[data-page="product"] .neo-detail-rich-content h5,
body[data-page="product"] .neo-detail-rich-content h6 {
  letter-spacing: 0;
}

body[data-page="product"] .neo-detail-rich-content h1 {
  margin-top: 2.1rem;
  font-size: 28px;
  line-height: 1.38;
}

body[data-page="product"] .neo-detail-rich-content h2 {
  margin-top: 1.9rem;
  font-size: 24px;
  line-height: 1.42;
}

body[data-page="product"] .neo-detail-rich-content h3 {
  margin-top: 1.55rem;
  font-size: 20px;
  line-height: 1.45;
}

body[data-page="product"] .neo-detail-rich-content h4,
body[data-page="product"] .neo-detail-rich-content h5,
body[data-page="product"] .neo-detail-rich-content h6 {
  margin-top: 1.35rem;
  font-size: 18px;
  line-height: 1.48;
}

body[data-page="product"] .neo-detail-rich-content h1 + *,
body[data-page="product"] .neo-detail-rich-content h2 + * {
  margin-top: 0.7rem;
}

body[data-page="product"] .neo-detail-rich-content h3 + *,
body[data-page="product"] .neo-detail-rich-content h4 + *,
body[data-page="product"] .neo-detail-rich-content h5 + *,
body[data-page="product"] .neo-detail-rich-content h6 + * {
  margin-top: 0.55rem;
}

@media (min-width: 1024px) {
  .neo-product-detail-shell {
    padding-top: 3rem;
  }

  .neo-product-detail-layout {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    gap: 2.5rem;
  }

  .neo-detail-gallery {
    width: 520px;
    flex: 0 1 520px;
  }

  .neo-product-info-panel {
    width: 0;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 0;
  }

}

@media (min-width: 1280px) {
  .neo-detail-gallery {
    width: 560px;
    flex-basis: 560px;
  }
}

@media (max-width: 1180px) {
  .neo-product-detail-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .neo-product-hot-sidebar {
    background: transparent;
  }

  .neo-product-hot-panel {
    position: static;
  }

  .neo-product-hot-list > .neo-product-rank-card + .neo-product-rank-card {
    margin-top: 0.6rem;
  }

  .neo-product-rank-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .neo-product-detail-shell {
    display: flex;
    flex-direction: column;
    width: min(100% - 0.75rem, 1280px);
    max-width: calc(var(--neo-real-vw, 100vw) - 0.75rem);
    padding-top: 0.85rem;
  }

  .neo-product-detail-layout {
    order: 1;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .neo-product-detail-section,
  .neo-product-detail-main {
    display: contents;
  }

  .neo-product-detail-content {
    order: 2;
    width: 100%;
  }

  .neo-product-neighbor-section {
    order: 3;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0;
  }

  .neo-product-hot-sidebar {
    order: 4;
    width: 100%;
    margin-top: 1.25rem;
    margin-bottom: 3rem;
  }

  .neo-related-products-section {
    order: 5;
  }

  .neo-product-actions {
    --neo-product-action-height: 3.35rem;
    align-items: center;
  }

  .neo-product-detail-section {
    margin-bottom: 3rem;
  }

  .neo-product-detail-main {
    gap: 0.85rem;
  }

  .neo-product-detail-card {
    width: 100%;
  }

  .neo-product-detail-tabbar,
  .neo-product-hot-head {
    min-height: 3.25rem;
    padding: 0 1rem;
  }

  .neo-product-detail-tab {
    height: 3.25rem;
    margin-right: 1.5rem;
    font-size: 1rem;
  }

  .neo-product-detail-tab::after {
    height: 3px;
  }

  .neo-product-detail-panel {
    padding: 0.75rem 0.5rem 1rem;
  }

  .neo-product-parameter-list {
    margin: 0;
  }

  .neo-product-parameter-item {
    grid-template-columns: 34% minmax(0, 1fr);
  }

  .neo-product-parameter-name,
  .neo-product-parameter-value {
    min-height: 3.5rem;
    padding: 0.65rem 0.75rem;
  }

  .neo-product-parameter-name {
    font-size: 1rem;
  }

  .neo-product-parameter-value {
    font-size: 1rem;
  }

  .neo-product-detail-prose,
  .neo-detail-rich-content {
    max-width: none;
    width: 100%;
    padding: 0.2rem 0 0.35rem;
  }

  body[data-page="product"] .neo-detail-rich-content {
    max-width: none;
    color: #343941;
    font-size: 16px;
    line-height: 1.68;
  }

  body[data-page="product"] .neo-detail-rich-content > * + * {
    margin-top: 0.64rem;
  }

  body[data-page="product"] .neo-detail-rich-content h1 {
    margin-top: 1.75rem;
    font-size: 24px;
  }

  body[data-page="product"] .neo-detail-rich-content h2 {
    margin-top: 1.55rem;
    font-size: 21px;
  }

  body[data-page="product"] .neo-detail-rich-content h3 {
    margin-top: 1.35rem;
    font-size: 19px;
  }

  body[data-page="product"] .neo-detail-rich-content h4,
  body[data-page="product"] .neo-detail-rich-content h5,
  body[data-page="product"] .neo-detail-rich-content h6 {
    margin-top: 1.2rem;
    font-size: 17px;
  }

  body[data-page="product"] .neo-detail-rich-content h1 + *,
  body[data-page="product"] .neo-detail-rich-content h2 + *,
  body[data-page="product"] .neo-detail-rich-content h3 + *,
  body[data-page="product"] .neo-detail-rich-content h4 + *,
  body[data-page="product"] .neo-detail-rich-content h5 + *,
  body[data-page="product"] .neo-detail-rich-content h6 + * {
    margin-top: 0.55rem;
  }

  .neo-product-detail-prose picture,
  .neo-detail-rich-content picture {
    margin: 0.04rem auto;
  }

  .neo-product-detail-prose img,
  .neo-detail-rich-content img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0.04rem auto;
    border-radius: 0.22rem;
  }

  .neo-product-detail-prose picture > img,
  .neo-detail-rich-content picture > img {
    margin: 0 auto;
  }

  .neo-product-hot-list {
    padding: 0.58rem;
  }

  .neo-product-hot-list > .neo-product-rank-card + .neo-product-rank-card {
    margin-top: 0.55rem;
  }

  .neo-product-rank-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0;
    padding: 0.5rem;
  }

  .neo-product-rank-info {
    margin-left: 0.58rem;
  }

  .neo-product-rank-title-row + .neo-product-rank-bottom {
    margin-top: 0.42rem;
  }

  .neo-product-rank-bottom > .neo-product-rank-fav {
    margin-left: 0.7rem;
  }

  .neo-product-rank-badge {
    top: 0.24rem;
    left: 0.24rem;
    min-width: 1.7rem;
    height: 0.82rem;
    padding: 0 0.2rem;
    font-size: 0.5rem;
    border-radius: 0.18rem;
  }

  .neo-product-rank-title {
    font-size: 0.84rem;
  }

  .neo-product-rank-price {
    font-size: 0.9rem;
  }

  .neo-product-rank-fav.is-md {
    --neo-favorite-size: 1.95rem;
  }

  .neo-product-rank-media-wrap .neo-catalog-play-button {
    right: 0.3rem;
    bottom: 0.3rem;
    width: 1.55rem;
    height: 1.55rem;
  }

  .neo-product-rank-media-wrap .neo-catalog-play-button .neo-icon {
    font-size: 0.82rem;
  }

  .neo-product-neighbor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    max-width: none;
  }

  .neo-product-neighbor-card.is-prev,
  .neo-product-neighbor-empty.is-prev,
  .neo-product-back-list,
  .neo-product-neighbor-card.is-next,
  .neo-product-neighbor-empty.is-next {
    grid-column: auto;
  }

  .neo-product-neighbor-card,
  .neo-product-neighbor-empty,
  .neo-product-back-list {
    width: 100%;
    max-width: none;
    min-height: 4.65rem;
  }

  .neo-product-neighbor-card.neo-product-rank-card {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 0.68rem;
    row-gap: 0;
    padding: 0.5rem;
  }

  .neo-product-neighbor-card.is-next .neo-product-neighbor-media,
  .neo-product-neighbor-card.is-next .neo-product-neighbor-info {
    grid-column: auto;
    grid-row: auto;
  }

  .neo-product-neighbor-card.is-next .neo-product-neighbor-info {
    align-items: flex-start;
    text-align: left;
  }

  .neo-product-neighbor-media {
    width: 82px;
  }

  .neo-product-neighbor-empty {
    padding: 0.65rem 0.75rem;
  }

  .neo-product-neighbor-empty.is-next {
    align-items: flex-start;
    text-align: left;
  }

  .neo-product-neighbor-label {
    font-size: 0.72rem;
  }

  .neo-product-neighbor-title {
    font-size: 0.84rem;
  }

  .neo-product-neighbor-price {
    font-size: 0.8rem;
  }

  .neo-product-back-list {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
  }

  .neo-product-back-icon {
    width: 2rem;
    height: 2rem;
  }

  .neo-product-back-text small {
    max-width: none;
  }
  body[data-page="product"] .neo-related-products-section {
    margin-top: 1.75rem;
    padding: 0 0.75rem;
  }

  body[data-page="product"] .neo-product-block-head {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  body[data-page="product"] .neo-product-block-title {
    gap: 0.42rem;
  }

  body[data-page="product"] .neo-product-block-title .neo-icon {
    --neo-icon-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  body[data-page="product"] .neo-product-block-title h2 {
    font-size: 1.25rem;
  }

}

/* Article detail */
.neo-article-detail-shell {
  padding-bottom: 0;
}

.neo-article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.neo-article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neo-article-hero-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
}

.neo-article-hero::before,
.neo-article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neo-article-hero::before {
  background: rgba(0, 0, 0, 0.4);
}

.neo-article-hero::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 55%, rgba(0, 0, 0, 0.2));
}

.neo-article-hero-breadcrumb {
  z-index: 3;
}

.neo-article-hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  padding: 1.5rem;
}

.neo-article-hero-inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.neo-article-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.neo-article-hero-date,
.neo-article-hero-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
}

.neo-article-hero-title {
  margin-bottom: 2rem;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.neo-article-hero-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.neo-article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.neo-article-author-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.neo-article-author-text {
  display: flex;
  flex-direction: column;
}

.neo-article-author-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.neo-article-author-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.neo-article-hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.neo-article-action-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

.neo-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: var(--neo-layer-toast);
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.neo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.neo-toast.is-error {
  background: rgba(185, 28, 28, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .neo-toast {
    transition: none;
    transform: translate(-50%, -50%);
  }
}

.neo-article-content-wrap {
  max-width: 56rem;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
}

.neo-article-prose {
  max-width: none;
}

.neo-article-lead {
  margin-bottom: 3rem;
  padding: 0.5rem 0 0.5rem 2rem;
  border-left: 4px solid var(--accent);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.625;
  font-style: italic;
}

.neo-article-guide {
  margin: 0 0 2rem;
  padding: 0;
  border: 1px solid #e3e6ea;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.neo-article-guide-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  position: relative;
  min-height: 3.35rem;
  padding: 0 2.75rem;
  border-bottom: 1px solid #e6e8eb;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.neo-article-guide-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  color: #69727d;
}

.neo-article-guide-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.neo-article-guide-title {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.35rem;
  font-weight: 500;
  white-space: nowrap;
}

.neo-article-guide-meta {
  margin: 0;
  color: #8a929d;
  font-size: 0.72rem;
  line-height: 1.35rem;
  white-space: nowrap;
}

.neo-article-guide-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.85rem;
  top: 50%;
  color: #7b8490;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.18s ease, color 0.18s ease;
}

.neo-article-guide.is-collapsed .neo-article-guide-toggle-icon {
  transform: translateY(-50%) rotate(90deg);
}

.neo-article-guide-head:focus-visible {
  outline: 2px solid rgba(var(--article-guide-accent-rgb), 0.24);
  outline-offset: -2px;
}

.neo-article-guide.is-collapsed .neo-article-guide-head {
  border-bottom: 0;
}

.neo-article-guide.is-collapsed .neo-article-guide-list {
  display: none;
}

.neo-article-guide-list {
  display: grid;
  gap: 0;
  margin: 0.48rem 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.neo-article-guide-list li,
.neo-article-guide-list li.is-h3 {
  min-width: 0;
  margin: 0;
  color: #333333;
  line-height: 1.42;
}

.neo-article-guide-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.72rem;
  align-items: center;
  min-width: 0;
  padding: 0.38rem 0.48rem;
  border-radius: 0;
  color: #3f4348;
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.neo-article-guide-list a::before {
  display: none;
  content: none;
}

.neo-article-guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-top: 0;
  padding: 0;
  border: 1px solid #e3e6ea;
  border-radius: 50%;
  background: #f7f8fa;
  color: #8f98a4;
  font-size: 0.68rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: center;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.neo-article-guide-text,
.neo-article-guide-list li.is-h3 .neo-article-guide-text {
  min-width: 0;
  padding-left: 0;
  overflow-wrap: anywhere;
}

.neo-article-guide-list a:focus-visible {
  background: #f6f7f9;
  color: #22262b;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-guide-list a:hover {
    background: #f6f7f9;
    color: #22262b;
  }
}

.neo-article-guide-list a:focus-visible .neo-article-guide-number {
  border-color: #d8dde4;
  background: #f1f3f6;
  color: #646d79;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-guide-list a:hover .neo-article-guide-number {
    border-color: #d8dde4;
    background: #f1f3f6;
    color: #646d79;
  }
}

.neo-article-guide-list a.is-active {
  background: rgba(var(--article-guide-accent-rgb), 0.06);
  color: var(--article-guide-accent);
}

.neo-article-guide-list a.is-active .neo-article-guide-number {
  border-color: rgba(var(--article-guide-accent-rgb), 0.26);
  background: rgba(var(--article-guide-accent-rgb), 0.08);
  color: var(--article-guide-accent);
}

/* 点击重点摘要后，给正文目标标题一个较长且缓慢淡出的定位提示。 */
.neo-article-rich-content h2.neo-article-guide-target-pulse,
.neo-article-rich-content h3.neo-article-guide-target-pulse {
  animation: neo-article-guide-target-pulse 2.65s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes neo-article-guide-target-pulse {
  0%,
  38% {
    color: var(--article-guide-accent);
    background-color: rgba(var(--article-guide-accent-rgb), 0.08);
  }
  62% {
    color: var(--article-guide-accent-strong);
    background-color: rgba(var(--article-guide-accent-rgb), 0.05);
  }
  82% {
    color: var(--article-guide-accent-strong);
    background-color: rgba(var(--article-guide-accent-rgb), 0.022);
  }
  100% {
    color: #171a1f;
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-article-rich-content h2.neo-article-guide-target-pulse,
  .neo-article-rich-content h3.neo-article-guide-target-pulse {
    animation: none;
    color: var(--article-guide-accent);
    background-color: rgba(var(--article-guide-accent-rgb), 0.06);
  }
}

/*
 * 宽屏文章阅读区把“正文 + 重点摘要”视为同一个整体居中。
 * 正文保持原有 53rem 实际阅读宽度，右侧摘要 19rem，中间留 2.25rem；
 * 整组在左侧网站导航之外的主内容区域内居中，不再固定正文中心线后把摘要外挂到右侧。
 */
@media (min-width: 1780px) {
  .neo-article-content-wrap.has-article-guide {
    max-width: calc(53rem + 2.25rem + 19rem + 3rem);
  }

  .neo-article-content-wrap.has-article-guide .neo-article-prose {
    display: grid;
    grid-template-columns: minmax(0, 53rem) minmax(0, 19rem);
    column-gap: 2.25rem;
    justify-content: center;
    align-items: start;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-guide {
    grid-column: 2;
    grid-row: 1 / span 20;
    justify-self: stretch;
    width: 100%;
    padding-left: 0;
    border: 1px solid #e3e6ea;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-guide-list {
    min-height: 0;
    padding-right: 0.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7cbd1 transparent;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-guide-list::-webkit-scrollbar {
    width: 7px;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-guide-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-guide-list::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: #c7cbd1;
    background-clip: padding-box;
  }


  .neo-article-content-wrap.has-article-guide .neo-article-guide-list::-webkit-scrollbar-button:vertical {
    display: none;
    width: 0;
    height: 0;
  }

  .neo-article-content-wrap.has-article-guide .neo-article-lead,
  .neo-article-content-wrap.has-article-guide .neo-article-rich-content,
  .neo-article-content-wrap.has-article-guide .neo-article-content-tags,
  .neo-article-content-wrap.has-article-guide .neo-article-neighbor-section {
    grid-column: 1;
    min-width: 0;
  }
}

@media (min-width: 1780px) and (hover: hover) and (pointer: fine) {
  .neo-article-content-wrap.has-article-guide .neo-article-guide-list:hover::-webkit-scrollbar-thumb {
    background-color: #aeb4bc;
  }
}

.neo-article-rich-content {
  color: #343941;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

.neo-article-rich-content p {
  margin: 0;
}

.neo-article-rich-content > * + * {
  margin-top: 0.72rem;
}

.neo-article-rich-content h2,
.neo-article-rich-content h3 {
  scroll-margin-top: 5.5rem;
}

.neo-article-rich-content h2 {
  margin-top: 1.9rem;
  font-size: 24px;
  line-height: 1.42;
}

.neo-article-rich-content h2 + * {
  margin-top: 0.7rem;
}

.neo-article-rich-content h3 {
  margin-top: 1.55rem;
  font-size: 20px;
  line-height: 1.45;
}

.neo-article-rich-content h3 + * {
  margin-top: 0.55rem;
}

.neo-article-rich-content picture {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
}

.neo-article-rich-content img {
  height: auto;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 0.55rem;
}

.neo-article-rich-content picture > img {
  margin: 0 auto;
}

.neo-article-content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* 统一产品与文章正文的项目符号和编号列表语义。 */
/* strong / b 始终保持行内语义，避免 :only-child 忽略文本节点导致误判成块级标题。 */
body[data-page="product"] .neo-detail-rich-content ul,
body[data-page="product"] .neo-detail-rich-content ol,
body[data-page="article"] .neo-article-rich-content ul,
body[data-page="article"] .neo-article-rich-content ol {
  margin: 1rem 0;
  padding-left: 1.5em;
  list-style-position: outside;
}

body[data-page="product"] .neo-detail-rich-content ul,
body[data-page="article"] .neo-article-rich-content ul {
  list-style-type: disc;
}

body[data-page="product"] .neo-detail-rich-content ol,
body[data-page="article"] .neo-article-rich-content ol {
  list-style-type: decimal;
}

body[data-page="product"] .neo-detail-rich-content li + li,
body[data-page="article"] .neo-article-rich-content li + li {
  margin-top: 0.65rem;
}

body[data-page="product"] .neo-detail-rich-content li > p,
body[data-page="article"] .neo-article-rich-content li > p {
  margin: 0;
}

/* Rich content shared typography
   Product and article bodies share one final type system; keep final values here instead of tail overrides. */
body[data-page="product"] .neo-detail-rich-content,
body[data-page="article"] .neo-article-rich-content {
  color: #3b4149;
  font-size: 16px;
  line-height: 1.76;
  font-weight: 400;
}

body[data-page="product"] .neo-detail-rich-content p,
body[data-page="product"] .neo-detail-rich-content li,
body[data-page="product"] .neo-detail-rich-content td,
body[data-page="article"] .neo-article-rich-content p,
body[data-page="article"] .neo-article-rich-content li,
body[data-page="article"] .neo-article-rich-content td {
  color: inherit;
  font-weight: 400;
}

body[data-page="product"] .neo-detail-rich-content strong,
body[data-page="product"] .neo-detail-rich-content b,
body[data-page="article"] .neo-article-rich-content strong,
body[data-page="article"] .neo-article-rich-content b {
  color: #20242a;
  font-weight: 600;
}

body[data-page="product"] .neo-detail-rich-content h1,
body[data-page="product"] .neo-detail-rich-content h2,
body[data-page="product"] .neo-detail-rich-content h3,
body[data-page="product"] .neo-detail-rich-content h4,
body[data-page="product"] .neo-detail-rich-content h5,
body[data-page="product"] .neo-detail-rich-content h6,
body[data-page="article"] .neo-article-rich-content h1,
body[data-page="article"] .neo-article-rich-content h2,
body[data-page="article"] .neo-article-rich-content h3,
body[data-page="article"] .neo-article-rich-content h4,
body[data-page="article"] .neo-article-rich-content h5,
body[data-page="article"] .neo-article-rich-content h6 {
  color: #171a1f;
  font-weight: 600;
}

/* Content protection stays in the interaction layer: indexed HTML and real image URLs remain unchanged. */
body[data-page="product"] .neo-detail-rich-content,
body[data-page="article"] .neo-article-rich-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body[data-page="product"] .neo-detail-rich-content img,
body[data-page="article"] .neo-article-rich-content img,
body[data-page="product"] [data-detail-gallery] img,
.neo-image-viewer-image {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Shared rich-content table system. The canonical .neo-rich-content class and legacy正文 wrappers share one system so existing static pages do not depend on regeneration. */
.neo-rich-content,
.neo-article-rich-content,
.neo-detail-rich-content {
  --neo-rich-table-head: #1f5fbf;
  --neo-rich-table-border: #e2e2e2;
  --neo-rich-table-cell: #ffffff;
  --neo-rich-table-stripe: #fafafa;
}

.neo-rich-content table,
.neo-article-rich-content table,
.neo-detail-rich-content table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 0;
  background: var(--neo-rich-table-cell);
  font-size: 15px;
  line-height: 1.55;
}

.neo-rich-content caption,
.neo-article-rich-content caption,
.neo-detail-rich-content caption {
  margin-bottom: 0.5rem;
  color: #252a31;
  font-weight: 500;
  text-align: left;
}

.neo-rich-content th,
.neo-rich-content td,
.neo-article-rich-content th,
.neo-article-rich-content td,
.neo-detail-rich-content th,
.neo-detail-rich-content td {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--neo-rich-table-border);
  text-align: left;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Column-header tables: a semantic <thead> is the only trigger for the blue header. */
.neo-rich-content thead th,
.neo-rich-content thead td,
.neo-article-rich-content thead th,
.neo-article-rich-content thead td,
.neo-detail-rich-content thead th,
.neo-detail-rich-content thead td {
  color: #ffffff;
  background: var(--neo-rich-table-head);
  font-weight: 600;
  text-align: center;
}

/* Body cells always own their background so the page/正文 background cannot bleed through. */
.neo-rich-content tbody th,
.neo-rich-content tbody td,
.neo-article-rich-content tbody th,
.neo-article-rich-content tbody td,
.neo-detail-rich-content tbody th,
.neo-detail-rich-content tbody td {
  background: var(--neo-rich-table-cell);
}

.neo-rich-content tbody tr:nth-child(even) > th,
.neo-rich-content tbody tr:nth-child(even) > td,
.neo-article-rich-content tbody tr:nth-child(even) > th,
.neo-article-rich-content tbody tr:nth-child(even) > td,
.neo-detail-rich-content tbody tr:nth-child(even) > th,
.neo-detail-rich-content tbody tr:nth-child(even) > td {
  background: var(--neo-rich-table-stripe);
}

.neo-rich-content tbody th,
.neo-article-rich-content tbody th,
.neo-detail-rich-content tbody th {
  color: #252a31;
  font-weight: 500;
}

.neo-rich-content tfoot th,
.neo-rich-content tfoot td,
.neo-article-rich-content tfoot th,
.neo-article-rich-content tfoot td,
.neo-detail-rich-content tfoot th,
.neo-detail-rich-content tfoot td {
  background: var(--neo-rich-table-stripe);
  font-weight: 500;
}

.neo-rich-content td p,
.neo-rich-content th p,
.neo-article-rich-content td p,
.neo-article-rich-content th p,
.neo-detail-rich-content td p,
.neo-detail-rich-content th p {
  margin: 0;
  padding: 0;
}

body[data-page="product"] .neo-detail-rich-content p + p,
body[data-page="article"] .neo-article-rich-content p + p {
  margin-top: 0.28rem;
}

body[data-page="product"] .neo-detail-rich-content h3,
body[data-page="article"] .neo-article-rich-content h3 {
  margin-top: 1.45rem;
}

body[data-page="product"] .neo-detail-rich-content h3 + *,
body[data-page="article"] .neo-article-rich-content h3 + * {
  margin-top: 0.46rem;
}

.neo-article-content-tags a,
.neo-article-content-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-content-tags a:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.32);
  }
}

.neo-article-neighbor-section {
  width: 100%;
  margin-top: 1.15rem;
}

.neo-article-neighbor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.neo-article-neighbor-card,
.neo-article-neighbor-empty {
  min-height: 5.35rem;
  max-width: none;
  color: #0f172a;
  text-decoration: none;
}

.neo-article-neighbor-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 0.58rem;
  padding: 0.52rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.neo-article-neighbor-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.24);
  outline: 2px solid rgba(var(--accent-rgb), 0.26);
  outline-offset: 2px;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-neighbor-card:hover {
    border-color: rgba(var(--accent-rgb), 0.24);
    box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.08);
  }
}

.neo-article-neighbor-card.is-prev,
.neo-article-neighbor-empty.is-prev {
  grid-column: 1;
}

.neo-article-neighbor-card.is-next,
.neo-article-neighbor-empty.is-next {
  grid-column: 3;
}

/* 文章详情上下篇卡片同步使用显式列位，避免 direction: rtl 造成右侧卡片文字/图片挤压。 */
.neo-article-neighbor-card.is-next {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.neo-article-neighbor-card.is-next .neo-article-neighbor-media {
  grid-column: 2;
  grid-row: 1;
}

.neo-article-neighbor-card.is-next .neo-article-neighbor-info {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
  text-align: right;
}

.neo-article-neighbor-empty.is-next {
  align-items: flex-end;
  text-align: right;
}

.neo-article-neighbor-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  background: #f8fafc;
}

.neo-article-neighbor-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-neighbor-card:hover .neo-article-neighbor-media img {
    transform: scale(1.04);
  }
}

.neo-article-neighbor-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.08);
}

.neo-article-neighbor-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
}

.neo-article-neighbor-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.62rem 0.75rem;
  border: 1px dashed rgba(100, 116, 139, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
  color: #64748b;
}

.neo-article-neighbor-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  color: var(--accent);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}

.neo-article-neighbor-title {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.neo-article-neighbor-date {
  max-width: 100%;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.2;
}

.neo-article-neighbor-empty .neo-article-neighbor-title {
  color: #64748b;
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-neighbor-card:hover .neo-article-neighbor-title {
    color: #0f172a;
  }
}

.neo-article-back-list {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.35rem;
  padding: 0.62rem;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(var(--accent-rgb), 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-article-back-list:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.06);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .neo-article-back-list:hover {
    border-color: rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-rgb), 0.06);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.08);
  }
}

.neo-article-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.32rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.neo-article-back-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1.2;
}

.neo-article-back-text span {
  color: #0f172a;
  font-size: 0.84rem;
}

.neo-article-back-text small {
  display: block;
  overflow: hidden;
  max-width: 4.5rem;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neo-related-section {
  width: min(1440px, calc(100% - 3rem));
  max-width: none;
  margin: 6rem auto 0;
  padding: 0;
}

.neo-related-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--border);
}

.neo-related-heading {
  margin-bottom: 1.25rem;
}

.neo-related-section .neo-article-grid.is-list-layout {
  width: 100%;
}

@media (min-width: 1024px) {
  .neo-related-section .neo-article-grid.is-list-layout .neo-article-card {
    grid-template-columns: minmax(12rem, 32%) minmax(0, 1fr);
  }
}

.neo-article-headline-products {
  margin-top: 3rem;
}

.neo-related-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.neo-related-title-row h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.neo-related-title-row h3 .neo-icon {
  color: var(--accent);
}

.neo-related-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-related-more:hover {
    color: var(--accent);
  }
}

@media (min-width: 768px) {
  .neo-article-hero {
    height: 60vh;
  }

  .neo-article-hero-content {
    padding: 3rem;
  }

  .neo-article-hero-title {
    font-size: 3rem;
  }

  .neo-article-content-wrap {
    margin-top: 8rem;
  }

  .neo-related-section {
    margin-top: 8rem;
  }
}

@media (min-width: 1024px) {
  .neo-article-hero-title {
    font-size: 3.75rem;
  }
}
@media (max-width: 767px) {
  .neo-article-content-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .neo-article-hero-title {
    font-size: 1.75rem;
  }

  .neo-article-hero-inner {
    width: 100%;
  }

  .neo-article-hero-foot {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .neo-article-author {
    min-width: 0;
  }

  .neo-article-hero-actions {
    justify-self: end;
    flex-shrink: 0;
    margin-left: 0;
  }

  .neo-toast {
    max-width: min(17rem, calc(100vw - 2rem));
    padding: 0.82rem 1.1rem;
    font-size: 1rem;
  }

  .neo-article-lead {
    padding-left: 1rem;
    font-size: 1.05rem;
  }

  .neo-article-guide {
    width: calc(100% + 2rem);
    margin: 0 -1rem 1.5rem;
    padding: 0;
    border-radius: 0;
  }

  .neo-article-guide[data-article-guide-server="1"]:not(.is-guide-hydrated) .neo-article-guide-head {
    border-bottom: 0;
  }

  .neo-article-guide[data-article-guide-server="1"]:not(.is-guide-hydrated) .neo-article-guide-list {
    display: none;
  }

  .neo-article-guide[data-article-guide-server="1"]:not(.is-guide-hydrated) .neo-article-guide-toggle-icon {
    transform: translateY(-50%) rotate(90deg);
  }

  .neo-article-guide-head {
    gap: 0.5rem;
    min-height: 3.1rem;
    padding: 0 3rem;
  }

  .neo-article-guide-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .neo-article-guide-copy {
    gap: 0.46rem;
  }

  .neo-article-guide-title {
    font-size: 0.98rem;
  }

  .neo-article-guide-meta {
    font-size: 0.75rem;
  }

  .neo-article-guide-toggle-icon {
    right: 1rem;
    top: 50%;
  }

  .neo-article-guide-list {
    gap: 0;
    margin-top: 0.45rem;
    padding: 0 0.5rem;
  }

  .neo-article-guide-list a {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.7rem;
    padding: 0.5rem 0.55rem;
    font-size: 1rem;
    line-height: 1.48;
  }

  .neo-article-guide-number {
    width: 1.8rem;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
  }

  .neo-article-rich-content {
    color: #343941;
    font-size: 16px;
    line-height: 1.68;
  }

  .neo-article-rich-content > * + * {
    margin-top: 0.64rem;
  }

  .neo-article-rich-content h2,
  .neo-article-rich-content h3 {
    scroll-margin-top: 4.75rem;
  }

  .neo-article-rich-content h2 {
    margin-top: 1.55rem;
    font-size: 21px;
    line-height: 1.42;
  }

  .neo-article-rich-content h2 + * {
    margin-top: 0.55rem;
  }

  .neo-article-rich-content h3 {
    margin-top: 1.35rem;
    font-size: 19px;
    line-height: 1.45;
  }

  .neo-article-rich-content h3 + * {
    margin-top: 0.55rem;
  }

  .neo-article-neighbor-section {
    margin-top: 0.9rem;
  }

  .neo-article-neighbor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .neo-article-neighbor-card.is-prev,
  .neo-article-neighbor-empty.is-prev,
  .neo-article-back-list,
  .neo-article-neighbor-card.is-next,
  .neo-article-neighbor-empty.is-next {
    grid-column: auto;
  }

  .neo-article-neighbor-card,
  .neo-article-neighbor-empty,
  .neo-article-back-list {
    width: 100%;
    max-width: none;
    min-height: 4.55rem;
  }

  .neo-article-neighbor-card.is-next .neo-article-neighbor-media,
  .neo-article-neighbor-card.is-next .neo-article-neighbor-info {
    grid-column: auto;
    grid-row: auto;
  }

  .neo-article-neighbor-card.is-next .neo-article-neighbor-info {
    align-items: flex-start;
    text-align: left;
  }

  .neo-article-neighbor-empty.is-next {
    align-items: flex-start;
    text-align: left;
  }

  .neo-article-neighbor-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 0.56rem;
    padding: 0.52rem;
  }

  /* 移动端下一篇必须覆盖桌面端的反向列定义，否则信息区会被挤进 78px 窄列。 */
  .neo-article-neighbor-card.is-next {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .neo-article-neighbor-empty {
    padding: 0.65rem 0.75rem;
  }

  .neo-article-neighbor-media {
    width: 70px;
  }

  .neo-article-neighbor-label {
    font-size: 0.72rem;
  }

  .neo-article-neighbor-title {
    font-size: 0.84rem;
  }

  .neo-article-neighbor-date {
    font-size: 0.74rem;
  }

  .neo-article-back-list {
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
  }

  .neo-article-back-icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .neo-article-back-text small {
    max-width: 10rem;
  }

  .neo-related-section {
    width: min(100% - 1rem, 1440px);
  }

  .neo-article-headline-products {
    margin-top: 2rem;
  }
}



/* Shared rich-content mobile typography */
@media (max-width: 767px) {
  body[data-page="product"] .neo-detail-rich-content,
  body[data-page="article"] .neo-article-rich-content {
    color: #3b4149;
    font-size: 15px;
    line-height: 1.72;
  }
  body[data-page="product"] .neo-detail-rich-content h1,
  body[data-page="article"] .neo-article-rich-content h1 { font-size: 22px; }
  body[data-page="product"] .neo-detail-rich-content h2,
  body[data-page="article"] .neo-article-rich-content h2 { font-size: 20px; }
  body[data-page="product"] .neo-detail-rich-content h3,
  body[data-page="article"] .neo-article-rich-content h3 { margin-top: 1.28rem; font-size: 18px; }
  body[data-page="product"] .neo-detail-rich-content h4,
  body[data-page="product"] .neo-detail-rich-content h5,
  body[data-page="product"] .neo-detail-rich-content h6,
  body[data-page="article"] .neo-article-rich-content h4,
  body[data-page="article"] .neo-article-rich-content h5,
  body[data-page="article"] .neo-article-rich-content h6 { font-size: 16px; }
  /* 移动端正文表格统一采用弹性首列：首列约 34%，其余空间交给内容列；兼容已生成的旧静态正文 wrapper。 */
  .neo-rich-content table,
  .neo-article-rich-content table,
  .neo-detail-rich-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 14px;
  }
  .neo-rich-content th,
  .neo-rich-content td,
  .neo-article-rich-content th,
  .neo-article-rich-content td,
  .neo-detail-rich-content th,
  .neo-detail-rich-content td {
    box-sizing: border-box;
    min-width: 0;
    padding: 0.5rem 0.45rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .neo-rich-content tr > :first-child,
  .neo-article-rich-content tr > :first-child,
  .neo-detail-rich-content tr > :first-child {
    width: 34%;
    max-width: 34%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  body[data-page="product"] .neo-detail-rich-content p + p,
  body[data-page="article"] .neo-article-rich-content p + p { margin-top: 0.34rem; }
  body[data-page="product"] .neo-detail-rich-content h3 + *,
  body[data-page="article"] .neo-article-rich-content h3 + * { margin-top: 0.42rem; }
}

/* 商品详情图册横向滑动，纵向仍允许页面滚动。 */
.neo-detail-carousel.is-swipe-enabled {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.neo-detail-carousel.is-swipe-enabled .neo-carousel-image {
  -webkit-user-drag: none;
  user-select: none;
}

/* 文章正文与产品详情正文图片点击查看大图。 */
.neo-rich-image-viewable {
  cursor: zoom-in;
}

.neo-rich-image-viewable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* 图片查看器统一使用全屏 Viewer：关闭时完全退出布局，打开后由 Viewer 自身拦截背景滚动。 */
.neo-image-viewer {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--neo-image-viewer-layer, 2147483100);
  display: none;
  width: 100%;
  height: 100vh;
  height: var(--neo-real-vh, 100vh);
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
  background: #020617;
  overscroll-behavior: none;
  touch-action: none;
}

.neo-image-viewer.is-open {
  display: flex;
}

.neo-image-viewer-panel {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #020617;
}

.neo-image-viewer-header {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  padding: 0.65rem 4.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.neo-image-viewer-caption {
  display: -webkit-box;
  max-width: 56rem;
  margin: 0 auto;
  overflow: hidden;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.neo-image-viewer-caption:empty {
  visibility: hidden;
}

.neo-image-viewer-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.neo-image-viewer-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
  padding: 0.6rem 1.25rem;
  box-sizing: border-box;
  touch-action: none;
  cursor: default;
}

.neo-image-viewer.is-zoomed .neo-image-viewer-stage {
  cursor: grab;
}

.neo-image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.neo-image-viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
}

.neo-image-viewer-stage.is-zoom-animating .neo-image-viewer-image {
  transition: transform 0.18s ease;
}

.neo-image-viewer-controls {
  position: relative;
  z-index: 4;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  gap: 0.18rem;
  min-height: 3rem;
  margin: 0.7rem auto 0.85rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.neo-image-viewer-pagination,
.neo-image-viewer-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}

.neo-image-viewer-pagination[hidden],
.neo-image-viewer-control-divider[hidden] {
  display: none;
}

.neo-image-viewer-control-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 1.7rem;
  margin: 0 0.2rem;
  background: rgba(255, 255, 255, 0.14);
}

.neo-image-viewer-control-button,
.neo-image-viewer-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.neo-image-viewer-control-button {
  width: 2.55rem;
}

.neo-image-viewer-tool svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neo-image-viewer-scale {
  min-width: 3.75rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.neo-image-viewer-control-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.neo-image-viewer-counter-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  min-width: 3.6rem;
  height: 2.55rem;
  padding: 0 0.45rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.neo-image-viewer-counter-separator {
  color: rgba(255, 255, 255, 0.46);
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .neo-image-viewer-control-button:not(:disabled):hover,
  .neo-image-viewer-scale:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
  }

  .neo-image-viewer-close:hover {
    color: #ffffff;
    background: #e53935;
  }
}

.neo-image-viewer-control-button:not(:disabled):active,
.neo-image-viewer-scale:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.96);
}

.neo-image-viewer-close:active {
  color: #ffffff;
  background: #c62828;
  transform: scale(0.95);
}

.neo-image-viewer-control-button:focus-visible,
.neo-image-viewer-scale:focus-visible,
.neo-image-viewer-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 标题置顶，翻页与缩放集中到底部统一控制栏。 */
@media (max-width: 767px) {
  .neo-image-viewer-header {
    min-height: calc(3.65rem + env(safe-area-inset-top));
    padding: max(0.55rem, env(safe-area-inset-top)) max(4rem, calc(env(safe-area-inset-right) + 3.5rem)) 0.45rem max(4rem, calc(env(safe-area-inset-left) + 3.5rem));
  }

  .neo-image-viewer-caption {
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .neo-image-viewer-close {
    top: max(0.55rem, env(safe-area-inset-top));
    right: max(0.55rem, env(safe-area-inset-right));
    width: 2.55rem;
    height: 2.55rem;
  }

  .neo-image-viewer-stage {
    padding: 0.35rem 0.65rem;
  }

  .neo-image-viewer-controls {
    max-width: calc(100vw - 1rem);
    min-height: 2.8rem;
    margin: 0.55rem auto max(0.65rem, env(safe-area-inset-bottom));
    padding: 0.17rem;
    gap: 0.08rem;
  }

  .neo-image-viewer-control-button,
  .neo-image-viewer-scale,
  .neo-image-viewer-counter-value {
    height: 2.42rem;
  }

  .neo-image-viewer-control-button {
    width: 2.42rem;
  }

  .neo-image-viewer-counter-value {
    min-width: 3.25rem;
    padding: 0 0.32rem;
    font-size: 0.75rem;
  }

  .neo-image-viewer-scale {
    min-width: 3.25rem;
    padding: 0 0.38rem;
    font-size: 0.75rem;
  }

  .neo-image-viewer-control-divider {
    height: 1.55rem;
    margin: 0 0.08rem;
  }
}

@media (max-width: 359px) {
  .neo-image-viewer-controls {
    max-width: calc(100vw - 0.5rem);
  }

  .neo-image-viewer-control-button {
    width: 2.18rem;
  }

  .neo-image-viewer-counter-value,
  .neo-image-viewer-scale {
    min-width: 2.95rem;
    padding: 0 0.22rem;
  }
}

@media (max-width: 767px) and (orientation: landscape) and (max-height: 520px) {
  .neo-image-viewer-header {
    min-height: calc(3rem + env(safe-area-inset-top));
    padding-top: max(0.35rem, env(safe-area-inset-top));
    padding-bottom: 0.25rem;
  }

  .neo-image-viewer-close {
    top: max(0.35rem, env(safe-area-inset-top));
    width: 2.35rem;
    height: 2.35rem;
  }

  .neo-image-viewer-controls {
    margin-top: 0.35rem;
    margin-bottom: max(0.35rem, env(safe-area-inset-bottom));
  }
}

/* Preview modal */
.neo-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.neo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

html.neo-preview-open,
html.neo-preview-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.neo-modal-panel {
  transform: translateY(10px) scale(0.96);
  transition: transform 0.25s ease;
}

.neo-modal.is-open .neo-modal-panel {
  transform: translateY(0) scale(1);
}

.neo-preview-modal {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--neo-layer-preview, 2147483000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.neo-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.neo-preview-panel {
  position: relative;
  width: min(1220px, calc(100vw - 24px));
  height: min(var(--neo-preview-vh, 94vh), 900px);
  max-height: var(--neo-preview-vh, 94vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 320px);
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.neo-preview-video-area {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.neo-preview-video {
  /* 视频元素本身保持原始宽高比，不能再同时强制铺满容器宽高。 */
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.neo-preview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  padding: 0.95rem;
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
}

.neo-preview-copy {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 兼容处理：预览窗右上角关闭按钮是绝对定位，标题区必须避让且允许完整换行，不能再被按钮遮挡或行数截断。 */
  padding-right: 3rem;
}

.neo-preview-title {
  display: block;
  overflow: visible;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: break-word;
}

.neo-preview-price {
  margin-top: 0.45rem;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
}

.neo-preview-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.55;
}

.neo-preview-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: auto;
}

.neo-preview-action-close {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 2.5rem;
  margin-left: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-preview-action-close:hover {
    background: #fff5f5;
    color: #dc2626;
  }
}

.neo-preview-action-close:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.2);
  outline-offset: 2px;
}

.neo-preview-action-close:active {
  transform: scale(0.97);
}

.neo-preview-buy {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.neo-preview-buy > .neo-icon + span {
  margin-left: 0.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .neo-preview-buy:hover {
    background: var(--accent);
    opacity: 0.9;
  }
}

.neo-preview-buy:active {
  transform: scale(0.97);
}

.neo-preview-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-preview-close:hover {
    color: #ffffff;
    background: #e53935;
  }
}

.neo-preview-close:active {
  color: #ffffff;
  background: #c62828;
  transform: scale(0.95);
}

.neo-preview-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .neo-preview-modal {
    /* 移动端商品视频预览外层按真实可视窗口铺满；浏览器返回键优先关闭预览，不直接后退页面。 */
    align-items: stretch;
    justify-content: stretch;
    width: 100vw;
    height: var(--neo-preview-vh, 100vh);
    height: var(--neo-preview-vh, 100svh);
    padding: 0;
    overflow: hidden;
  }

  .neo-preview-panel {
    width: 100vw;
    height: var(--neo-preview-vh, 100vh);
    height: var(--neo-preview-vh, 100svh);
    max-width: none;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 0;
    box-shadow: none;
  }

  .neo-preview-video-area {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .neo-preview-video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .neo-preview-info {
    flex: 0 0 auto;
    gap: 0.55rem;
    max-height: 42vh;
    max-height: 42svh;
    overflow: hidden;
    padding: 0.65rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .neo-preview-copy {
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 2.8rem;
  }

  .neo-preview-title {
    display: block;
    overflow: visible;
    font-size: 0.85rem;
    line-height: 1.3;
    -webkit-line-clamp: unset;
    white-space: normal;
    word-break: break-word;
  }

  .neo-preview-price {
    margin-top: 0.2rem;
    font-size: 0.82rem;
  }

  .neo-preview-desc {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    font-size: 0.68rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .neo-preview-actions {
    flex: 0 0 auto;
  }

  .neo-preview-buy {
    height: 2.25rem;
    border-radius: 0.5rem;
    font-size: 0.74rem;
  }

  .neo-preview-action-close {
    width: 5rem;
    height: 2.25rem;
    margin-left: 0.45rem;
    font-size: 0.72rem;
  }

  .neo-preview-close {
    top: max(0.55rem, env(safe-area-inset-top));
    right: max(0.55rem, env(safe-area-inset-right));
    width: 2.55rem;
    height: 2.55rem;
  }
}

/* Footer */
.neo-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  color: var(--text-primary);
}

.neo-footer-inner {
  width: min(1440px, calc(100% - 3rem));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1.35fr) minmax(280px, 0.95fr);
  gap: 2.4rem;
  align-items: start;
  margin: 0 auto;
  padding: 3rem 0 2.4rem;
}

.neo-footer-brand {
  min-width: 0;
}

.neo-footer-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}

.neo-footer-logo-link > picture {
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  max-width: 100%;
}

.neo-footer-logo {
  display: block;
  width: auto;
  height: 2.6rem;
  max-width: 100%;
  object-fit: contain;
}

.neo-footer-logo-link > picture > .neo-footer-logo {
  height: 100%;
}

.neo-footer-desc {
  max-width: 30rem;
  margin-top: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.neo-footer-service-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.neo-footer-service-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.36);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 400;
}

.neo-footer-service-note .neo-icon,
.neo-footer-link span .neo-icon,
.neo-footer-tag-icon {
  color: var(--accent);
  opacity: 0.9;
}

.neo-footer-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.neo-footer-section-head h5 {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
}

.neo-footer-section-head--inline {
  align-items: center;
  justify-content: flex-start;
  gap: 0.62rem;
  margin-bottom: 0.95rem;
}

.neo-footer-section-head--inline h5 {
  color: #8a94a3;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 400;
}

.neo-footer-heading-divider {
  width: 1px;
  height: 0.78rem;
  flex: 0 0 1px;
  background: #d9dee6;
}

.neo-footer-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neo-footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.neo-footer-link {
  min-width: 0;
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.neo-footer-link span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neo-footer-link > .neo-icon {
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-link:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-link:hover > .neo-icon {
    opacity: 1;
    transform: translateX(2px);
  }
}

.neo-footer-links-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.neo-footer-tag-link {
  min-width: 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.neo-footer-tag-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.neo-footer-tag-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neo-footer-tag-link > .neo-icon {
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-tag-link:hover {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-tag-link:hover > .neo-icon {
    opacity: 1;
    transform: translateX(2px);
  }
}

.neo-footer-friend-links {
  display: block;
  padding: 0.18rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.neo-footer-friend-head {
  margin-bottom: 0.48rem;
}

.neo-footer-friend-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.78rem;
}

.neo-footer-friend-list a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 400;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-friend-list a:hover {
    color: var(--accent);
  }
}

.neo-footer-contact-entry {
  position: relative;
  isolation: isolate;
  min-height: 8.7rem;
  aspect-ratio: 2.62 / 1;
  display: block;
  overflow: hidden;
  padding: 1rem 1.35rem 1.08rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffc26a 0%, #ffa700 46%, #f59e0b 100%);
  animation: neo-footer-contact-entry-tap 1.6s ease-in-out infinite;
}

.neo-footer-contact-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/footer-contact-ghosts.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.neo-footer-contact-entry-layout {
  position: relative;
  z-index: 1;
  min-height: 6.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  row-gap: 0.58rem;
}

.neo-footer-contact-entry-brand {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.neo-footer-contact-entry-logo {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
}

.neo-footer-contact-entry-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.neo-footer-contact-entry-site-name {
  min-width: 0;
  max-width: 13rem;
  overflow: hidden;
  color: #ffffffa8;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neo-footer-contact-entry-title {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.neo-footer-contact-hand {
  position: absolute;
  z-index: 3;
  right: 0.62rem;
  bottom: 0.38rem;
  width: 3rem;
  height: auto;
  display: block;
  pointer-events: none;
  transform-origin: 42% 16%;
  transform: rotate(-8deg);
  animation: neo-footer-contact-hand-tap 1.6s ease-in-out infinite;
}

.neo-footer-contact-entry:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.3);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-contact-entry:hover {
    background: #3e3e3e;
  }
}

@keyframes neo-footer-contact-hand-tap {
  0%, 58%, 78%, 100% {
    transform: translate(0, 0) rotate(-8deg) scale(1);
  }
  68% {
    transform: translate(-0.12rem, -0.14rem) rotate(-8deg) scale(0.94);
  }
}

@keyframes neo-footer-contact-entry-tap {
  0%, 62%, 75%, 100% {
    transform: translateY(0) scale(1);
  }
  68% {
    transform: translateY(1px) scale(0.995);
  }
}

@media (max-width: 767.98px) {
  .neo-footer-contact-entry {
    min-height: 7.4rem;
    aspect-ratio: 2.58 / 1;
    padding: 0.78rem 0.8rem 0.85rem;
  }

  .neo-footer-contact-entry-layout {
    min-height: 5.85rem;
    row-gap: 0.5rem;
  }

  .neo-footer-contact-entry-brand {
    gap: 0.5rem;
  }

  .neo-footer-contact-entry-logo {
    flex-basis: 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
  }

  .neo-footer-contact-entry-site-name {
    max-width: 11.25rem;
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .neo-footer-contact-entry-title {
    font-size: 32px;
  }

  .neo-footer-contact-hand {
    right: 0.48rem;
    bottom: 0.3rem;
    width: 2.65rem;
  }

}

@media (max-width: 420px) {
  .neo-footer-contact-entry-site-name {
    max-width: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-footer-contact-entry,
  .neo-footer-contact-hand {
    animation: none;
  }
}


.neo-footer-qr-copy small {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 400;
}

.neo-footer-qr-title {
  color: var(--text-primary);
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
}

.neo-footer-qr {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.38);
}

.neo-footer-qr-frame {
  width: 6.4rem;
  height: 6.4rem;
  padding: 0.42rem;
  border: 1px solid var(--border);
  border-radius: 0.28rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.neo-footer-qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 0.2rem;
  object-fit: contain;
}

.neo-footer-qr-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.neo-footer-qr-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.neo-footer-qr-title .neo-icon {
  color: var(--accent);
}

.neo-footer-bottom {
  width: min(1440px, calc(100% - 3rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 auto;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 400;
}

.neo-footer-bottom-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.neo-footer-copyright {
  min-width: 0;
}

.neo-footer-record {
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}

.neo-footer-record > picture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  vertical-align: middle;
}

.neo-footer-record-icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  flex: 0 0 16px;
  display: inline-block;
  object-fit: contain;
  margin: 0;
  vertical-align: middle;
}

.neo-footer-record > picture > .neo-footer-record-icon {
  width: 100%;
  height: 100%;
  max-width: 100%;
  flex: none;
}

.neo-footer-record-text {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.neo-footer-record-text a {
  color: inherit;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.neo-footer-sitemap {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .neo-footer-bottom a:hover {
    color: var(--accent);
  }
}

@media (max-width: 1180px) {
  .neo-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  }

  .neo-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .neo-footer {
    margin-top: 1.1rem;
  }

  .neo-footer-inner,
  .neo-footer-bottom {
    width: min(100% - 2rem, 1440px);
  }

  .neo-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.35rem 0 1.8rem;
  }

  .neo-footer-link-grid {
    grid-template-columns: 1fr;
  }

  .neo-footer-qr {
    grid-template-columns: 5.8rem minmax(0, 1fr);
  }

  .neo-footer-qr-frame {
    width: 5.8rem;
    height: 5.8rem;
  }

  .neo-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  .neo-footer-bottom-meta {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .neo-footer-copyright {
    display: block;
    min-width: 0;
    text-align: center;
  }

  .neo-footer-record {
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    text-align: left;
    white-space: nowrap;
  }

  .neo-footer-record-text {
    max-width: 100%;
    white-space: nowrap;
  }

  .neo-footer-sitemap {
    position: static;
    display: block;
    align-self: flex-end;
    color: var(--text-secondary);
    opacity: 0.56;
    font-weight: 400;
  }
}

/* Small named wrappers kept for template readability */
.banner-info-inner,
.neo-footer-nav,
.neo-footer-contact {
  min-width: 0;
}

.neo-breadcrumb-sep {
  color: var(--border);
}

.neo-page-breadcrumb {
  position: static;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
  border-color: var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.neo-page-breadcrumb a {
  color: inherit;
}

.neo-breadcrumb-current {
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .neo-page-breadcrumb a:hover {
    color: var(--text-primary);
  }
}

.neo-page-breadcrumb .neo-banner-breadcrumb-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.neo-category-label {
  margin-left: 0.75rem;
}

/* Tags index page */
.neo-tags-page {
  max-width: 1160px;
}

.neo-tags-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-soft);
}

.neo-tags-hero-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.neo-tags-kicker {
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neo-tags-title {
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.neo-tags-desc {
  max-width: 38rem;
  margin-top: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.neo-tags-section {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-soft);
}

.neo-tags-section-head {
  margin-bottom: 1.25rem;
}

.neo-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.neo-tag-card {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
}

@media (hover: hover) and (pointer: fine) {
  .neo-tag-card:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-rgb), 0.06);
  }
}

.neo-tag-main {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.neo-tag-mark {
  color: var(--accent);
}

.neo-tag-name {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .neo-tag-card:hover .neo-tag-name {
    color: var(--accent);
  }
}

.neo-tag-total {
  flex: 0 0 auto;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.72rem;
}
@media (max-width: 767px) {
  .neo-tags-page {
    width: min(100% - 1rem, 1160px);
    padding-top: 1rem;
  }

  .neo-tags-hero,
  .neo-tags-section {
    padding: 1rem;
  }

  .neo-tags-hero {
    align-items: flex-start;
  }

  .neo-tags-hero-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .neo-tags-grid {
    gap: 0.6rem;
  }

  .neo-tag-card {
    width: 100%;
    justify-content: space-between;
  }
}

body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button {
  right: 0.28rem;
  bottom: 0.28rem;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button .neo-icon {
  --neo-icon-size: 0.52rem;
  width: 0.52rem;
  height: 0.52rem;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  transform: translateX(0.04rem);
}

@media (max-width: 767px) {
  body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button {
    right: 0.24rem;
    bottom: 0.24rem;
    width: 1rem;
    height: 1rem;
  }

  body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button .neo-icon {
    --neo-icon-size: 0.48rem;
    width: 0.48rem;
    height: 0.48rem;
    transform: translateX(0.035rem);
  }
}

@media (max-width: 767px) {
  .neo-product-card .neo-catalog-play-button {
    right: 0.45rem;
    bottom: 0.45rem;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .neo-product-card .neo-catalog-play-button .neo-icon {
    display: block;
    flex: 0 0 auto;
    margin: 0;
  }

  /* 手机普通产品卡的播放圆由桌面的 3rem 缩至 1.8rem，三角同步按比例缩至约 14px。 */
  .neo-product-card .neo-catalog-play-button .neo-icon-play {
    --neo-icon-size: 14px;
    width: 14px;
    height: 14px;
  }
}

/* 订单流程入口 */
.neo-product-actions .neo-buy-button,
.neo-preview-actions .neo-preview-buy {
  text-decoration: none;
}

/* 手机与平板的栏目 banner 统一避开固定顶部栏。
   banner 本身补足 4rem 顶部空间，紧随其后的 main 不再重复保留顶部栏高度，
   避免平板出现“顶部被遮挡 + banner 下方大段留白”两个问题同时存在。 */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  .neo-site-body > .channel-banner {
    margin-top: 4rem;
  }

  .neo-site-body > .channel-banner + .neo-main {
    padding-top: 0;
  }

  .neo-site-body > .channel-banner + .neo-main > .neo-page-shell {
    padding-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .neo-site-body > .channel-banner + .neo-main > .neo-page-shell {
    padding-top: 1rem;
  }
}


/* 兼容处理：iPhone/Safari 统一兼容层。集中处理旧 iOS 的 flex gap、inset、aspect-ratio、真实视口和遮罩层级，禁止继续在文件末尾追加零散补丁。 */
.neo-preview-modal,
.neo-preview-backdrop,
.neo-home-carousel-slide,
.neo-carousel-slide,
.neo-carousel-image,
.neo-pm-hero::after,
.neo-pm-hero-slides,
.neo-pm-hero-slide,
.neo-pm-hero-slide-link,
.neo-pm-hero-video-buttons {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.neo-product-service-item,
.neo-global-search-form,
.neo-search-page .neo-banner-breadcrumb {
  background-color: #ffffff;
}

/* 兼容处理：商品详情页图标与文字间距从根源改为相邻元素 margin，不能再依赖 flex gap；旧 iOS/Safari 即使不支持 flex gap，日期、服务卡片和购买按钮也不会贴在一起。 */
/* 兼容处理：商品卡片、详情操作区、视频预览操作区和热门排行榜已在各自原始规则中改成 margin 兜底；不要再在文件末尾追加零散 gap 补丁。 */
.neo-product-date,
.neo-product-service-item,
.neo-buy-button {
  gap: 0;
}

.neo-product-date > .neo-icon + time {
  margin-left: 0.35rem;
}

.neo-product-service-item > .neo-icon + div {
  margin-left: 1rem;
}

.neo-buy-button > .neo-icon + span {
  margin-left: 0.5rem;
}

@media (max-width: 767px) {
  .banner-info {
    width: 100%;
    height: 100%;
    padding: 2.75rem 1rem 1.25rem;
  }

  .banner-info-inner {
    max-width: min(92vw, 760px);
    margin: 0 auto;
    text-align: center;
  }


  .neo-detail-gallery {
    max-width: none;
  }

  .neo-detail-carousel {
    height: calc(100vw - 0.75rem);
    min-height: 260px;
    max-height: 430px;
    aspect-ratio: auto;
    background: #ffffff;
  }

  .neo-detail-carousel .neo-carousel-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .neo-detail-play-button {
    top: auto;
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.35rem;
    height: 3.35rem;
  }

  .neo-detail-thumb-slider {
    --neo-detail-thumb-nav-size: 1rem;
    --neo-detail-thumb-gap: 0.45rem;
    gap: 0.25rem;
    margin-top: 0.75rem;
  }

  .neo-detail-thumb-slider.is-scrollable {
    grid-template-columns: var(--neo-detail-thumb-nav-size) minmax(0, 1fr) var(--neo-detail-thumb-nav-size);
  }

  .neo-detail-thumbs {
    gap: var(--neo-detail-thumb-gap);
  }

  .neo-detail-thumb {
    width: 100%;
    height: auto;
  }

  .neo-detail-thumb-nav {
    width: var(--neo-detail-thumb-nav-size);
    min-width: var(--neo-detail-thumb-nav-size);
    height: auto;
  }

  .neo-detail-thumb-controlbar {
    bottom: 0.75rem;
  }

  .neo-detail-thumb-controls button {
    width: 2.15rem;
    height: 2rem;
  }

  .neo-product-info-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .neo-product-detail-price {
    margin-bottom: 1.05rem;
    font-size: 1.85rem;
  }

  .neo-product-service-list > .neo-product-service-item + .neo-product-service-item {
    margin-top: 0.7rem;
  }

  .neo-product-actions > .neo-favorite {
    margin-left: calc(var(--neo-product-action-height) * 0.22);
  }

  .neo-buy-button {
    height: var(--neo-product-action-height);
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .neo-product-media-wrap,
  .neo-detail-carousel,
  .neo-product-rank-media-wrap,
  .neo-article-neighbor-media {
    position: relative;
    height: 0;
    padding-top: 100%;
  }

  .neo-product-media-wrap > .neo-product-media,
  .neo-detail-carousel > .neo-carousel-image,
  .neo-detail-carousel > picture > .neo-carousel-image,
  .neo-product-rank-media-wrap > .neo-product-rank-media,
  .neo-product-rank-media-wrap img,
  .neo-article-neighbor-media > img,
  .neo-article-neighbor-media > picture > img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .neo-article-image {
    position: relative;
    height: 0;
    padding-top: 75%;
  }

  .neo-article-image > img,
  .neo-article-image > picture > img,
  .neo-detail-thumb > img,
  .neo-detail-thumb > picture > img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* 旧 iOS/Safari flex-gap 兜底：由当前主题 JS 检测后给 html 添加 .neo-no-flex-gap，只在不支持 flex gap 的浏览器生效。 */
.neo-no-flex-gap .sidebar-link {
  gap: 0;
}

.neo-no-flex-gap .sidebar-link > .neo-icon + .sidebar-label,
.neo-no-flex-gap .sidebar-link > .sidebar-label + .neo-favorite-count {
  margin-left: 0.85rem;
}

.neo-no-flex-gap .neo-pagination,
.neo-no-flex-gap .neo-pagination ul,
.neo-no-flex-gap .neo-pagination ol {
  gap: 0;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

.neo-no-flex-gap .neo-pagination > *,
.neo-no-flex-gap .neo-pagination ul > *,
.neo-no-flex-gap .neo-pagination ol > * {
  margin: 0.25rem;
}

.neo-no-flex-gap .neo-product-more-link > * + *,
.neo-no-flex-gap .neo-article-date > * + *,
.neo-no-flex-gap .neo-banner-breadcrumb > * + *,
.neo-no-flex-gap .neo-page-breadcrumb .neo-banner-breadcrumb-text > * + *,
.neo-no-flex-gap .neo-tag-main > * + * {
  margin-left: 0.4rem;
}

.neo-no-flex-gap .neo-layout-toggle,
.neo-no-flex-gap .neo-catalog-layout-btn,
.neo-no-flex-gap .neo-article-layout-btn,
.neo-no-flex-gap .neo-favorites-layout-btn,
.neo-no-flex-gap .neo-card-link-switch,
.neo-no-flex-gap .neo-footer-service-note span,
.neo-no-flex-gap .neo-footer-link span,
.neo-no-flex-gap .neo-footer-tag-link,
.neo-no-flex-gap .neo-footer-qr-title,
.neo-no-flex-gap .neo-footer-record {
  gap: 0;
}

.neo-no-flex-gap .neo-layout-toggle > * + *,
.neo-no-flex-gap .neo-catalog-layout-btn > * + *,
.neo-no-flex-gap .neo-article-layout-btn > * + *,
.neo-no-flex-gap .neo-favorites-layout-btn > * + * {
  margin-left: 0.5rem;
}

.neo-no-flex-gap .neo-card-link-switch-track {
  margin-left: 0.5rem;
}

.neo-no-flex-gap .neo-footer-service-note .neo-icon,
.neo-no-flex-gap .neo-footer-link span .neo-icon,
.neo-no-flex-gap .neo-footer-tag-icon,
.neo-no-flex-gap .neo-footer-qr-title .neo-icon,
.neo-no-flex-gap .neo-footer-record > .neo-footer-record-icon,
.neo-no-flex-gap .neo-footer-record > picture {
  margin-right: 0.42rem;
}

.neo-no-flex-gap .neo-footer-bottom-meta > * + * {
  margin-left: 0.9rem;
}

@media (max-width: 767px) {
  .neo-no-flex-gap .neo-catalog-center-panel,
  .neo-no-flex-gap .neo-article-center-panel,
  .neo-no-flex-gap .neo-favorites-center-panel {
    gap: 0;
    row-gap: 0;
    column-gap: 0;
    max-width: calc(100vw - 1.5rem);
    padding: 0.36rem;
  }

  .neo-no-flex-gap .neo-catalog-center-panel > *,
  .neo-no-flex-gap .neo-article-center-panel > *,
  .neo-no-flex-gap .neo-favorites-center-panel > * {
    margin: 0.22rem;
  }
}

@media (max-width: 760px) {
  .neo-no-flex-gap .neo-footer-inner {
    gap: 0;
    row-gap: 0;
  }

  .neo-no-flex-gap .neo-footer-brand,
  .neo-no-flex-gap .neo-footer-nav {
    margin-bottom: 1.45rem;
  }

  .neo-no-flex-gap .neo-footer-service-note {
    gap: 0;
    margin-left: -0.3rem;
    margin-right: -0.3rem;
  }

  .neo-no-flex-gap .neo-footer-service-note span {
    margin: 0.3rem;
  }

  .neo-no-flex-gap .neo-footer-bottom-meta > * + * {
    margin-top: 0.35rem;
    margin-left: 0;
  }
}

.tomshop-query-contact-modal__action-icon + span {
  display: inline-block;
  min-width: 0;
}
.tomshop-query-contact-modal {
  --tomshop-layer-contact: 2147483300;
  --tomshop-layer-contact-panel: 2147483301;
  position: fixed;
  inset: 0;
  z-index: var(--tomshop-layer-contact, 2147483300);
  display: none;
  pointer-events: none;
}
.tomshop-query-contact-modal.is-open { display: block; }
.tomshop-query-contact-modal__mask {
  position: fixed;
  inset: 0;
  z-index: var(--tomshop-layer-contact, 2147483300);
  display: block;
  background: rgba(0, 0, 0, 0.36);
  pointer-events: auto;
}
.tomshop-query-contact-modal__panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: var(--tomshop-layer-contact-panel, 2147483301);
  box-sizing: border-box;
  width: 420px;
  max-width: calc(100vw - 36px);
  max-height: calc(var(--neo-preview-vh, 100vh) - 108px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  color: #202124;
  box-shadow: none;
  text-align: left;
  font-weight: 500;
  pointer-events: auto;
}
.tomshop-query-contact-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.tomshop-query-contact-modal__head strong {
  display: block;
  color: #202124;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.tomshop-query-contact-modal__head button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f6f6f6;
  color: #666;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
}
.tomshop-query-contact-modal__body {
  display: grid;
  gap: 14px;
  box-sizing: border-box;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 20px;
}
.tomshop-query-contact-modal__qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fafafa;
}
.tomshop-query-contact-modal__qrcode > picture {
  display: block;
  width: 230px;
  max-width: 100%;
}

.tomshop-query-contact-modal__qrcode img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.tomshop-query-contact-modal__qrcode > picture > img {
  width: 100%;
}
.tomshop-query-contact-modal__wechat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
}
.tomshop-query-contact-modal__wechat-label,
.tomshop-query-contact-modal__wechat span {
  display: inline-block;
  flex: 0 0 auto;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.tomshop-query-contact-modal__wechat strong {
  display: inline-block;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  color: #202124;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}
.tomshop-query-contact-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tomshop-query-contact-modal__actions .tomshop-query-contact-modal__action:only-child {
  grid-column: 1 / -1;
}
.tomshop-query-contact-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
  cursor: pointer;
  white-space: nowrap;
}
.tomshop-query-contact-modal__action--copy { background: #05C561; }
.tomshop-query-contact-modal__action--livechat { background: #00c9b6; }
.tomshop-query-contact-modal__action-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.tomshop-query-contact-modal__action-icon--copy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='9' y='9' width='10' height='10' rx='2' stroke='white' stroke-width='2'/%3E%3Cpath d='M15 9V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tomshop-query-contact-modal__action-icon--livechat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.3 18.4c-1.2-1.2-1.8-2.7-1.8-4.5 0-4.2 3.8-7.6 8.5-7.6s8.5 3.4 8.5 7.6-3.8 7.6-8.5 7.6c-1 0-2-.15-2.9-.48L5 22l.9-3.1c-.2-.16-.4-.32-.6-.5zM8.4 13.2h.01M12 13.2h.01M15.6 13.2h.01' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tomshop-query-contact-modal__action:focus,
.tomshop-query-contact-modal__action:active {
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tomshop-query-contact-modal__action:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    outline: 0;
  }
}
.tomshop-query-contact-modal__copy-status {
  display: block;
  min-height: 22px;
  color: #05C561;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.tomshop-query-contact-modal__copy-status:empty { display: none; }
body.tomshop-query-contact-open { overflow: hidden; }

@media (max-width: 768px) {
  .tomshop-query-contact-modal__panel {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: calc(var(--neo-preview-vh, 100vh) - 84px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .tomshop-query-contact-modal__body {
    gap: 12px;
    padding: 14px 16px 16px;
  }
  .tomshop-query-contact-modal__qrcode { padding: 12px; }
  .tomshop-query-contact-modal__qrcode > picture {
    width: min(100%, 220px);
  }
  .tomshop-query-contact-modal__qrcode img {
    width: min(100%, 220px);
    max-height: 220px;
  }
  .tomshop-query-contact-modal__qrcode > picture > img {
    width: 100%;
  }
  .tomshop-query-contact-modal__wechat { padding: 12px 14px; }
  .tomshop-query-contact-modal__wechat-label,
  .tomshop-query-contact-modal__wechat span,
  .tomshop-query-contact-modal__wechat strong { font-size: 14px; }
  .tomshop-query-contact-modal__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tomshop-query-contact-modal__action {
    min-height: 40px;
    padding: 0 10px;
    line-height: 40px;
    font-size: 13px;
  }
  .tomshop-query-contact-modal__action-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    margin-right: 6px;
  }
  .tomshop-query-contact-modal__copy-status { font-size: 13px; }
}

/*  Product list structured storefront filters */
.neo-product-filter {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-top: 0;
  border-radius: 0;
  background: #ffffff;
}

.neo-product-filter-panel {
  position: relative;
  padding: 0;
}

.neo-product-filter-row {
  display: grid;
  grid-template-columns: 4.35rem minmax(0, 1fr);
  align-items: stretch;
  min-height: 2.45rem;
  padding: 0 0.78rem;
  border-bottom: 1px solid #edf0f3;
}

.neo-product-filter-row + .neo-product-filter-row {
  margin-top: 0;
}

.neo-product-filter-row:last-child {
  border-bottom: 0;
}

.neo-product-filter-label {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  margin-right: 0.68rem;
  padding: 0 0.68rem 0 0;
  color: #6f7886;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.neo-product-filter-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.neo-product-filter-body::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.6rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, #ffffff 18%, rgba(255, 255, 255, 0));
  transition: opacity 0.16s ease;
}

.neo-product-filter-row.has-scroll-before:not(.is-expanded) .neo-product-filter-body::before {
  opacity: 1;
}

.neo-product-filter-options {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.24rem 0.34rem;
  min-width: 0;
  overflow: hidden;
}

.neo-product-filter-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.68rem;
  padding: 0.16rem 0.5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.neo-product-filter-option.is-active,
.neo-product-filter-option:active {
  background: var(--filter-highlight-bg);
}

/* EyouCMS screening wraps the selected value in <b>; keep filter typography consistent. */
.neo-product-filter-option b,
.neo-product-filter-option strong {
  font-weight: inherit;
}

.neo-product-filter-toggle {
  position: relative;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  background: #f7f8fa;
  color: var(--text-secondary);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.neo-product-filter-row.has-scroll-after:not(.is-expanded) .neo-product-filter-toggle {
  box-shadow: -12px 0 18px 4px #ffffff;
}

.neo-product-filter-toggle:active {
  background: var(--line-soft);
}

.neo-product-filter-toggle:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.16);
  outline-offset: 2px;
}

.neo-product-filter-toggle .neo-icon {
  --neo-icon-size: 16px;
  transition: transform 0.18s ease;
  transform: rotate(90deg);
}

.neo-product-filter-row.is-collapsible .neo-product-filter-toggle {
  display: inline-flex;
}

.neo-product-filter-row.is-collapsible:not(.is-expanded) .neo-product-filter-options {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 1.35rem;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.neo-product-filter-row.is-collapsible:not(.is-expanded) .neo-product-filter-option {
  flex: 0 0 auto;
}

.neo-product-filter-row.is-collapsible:not(.is-expanded) .neo-product-filter-options::-webkit-scrollbar {
  display: none;
}

/* Expanded rows keep the toggle aligned with the first option line and add breathing room around wrapped options. */
.neo-product-filter-row.is-expanded .neo-product-filter-body {
  align-items: flex-start;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.neo-product-filter-row.is-expanded .neo-product-filter-options {
  flex-wrap: wrap;
  overflow: visible;
  padding-right: 0;
}

.neo-product-filter-row.is-expanded .neo-product-filter-toggle {
  align-self: flex-start;
}

.neo-product-filter-row.is-expanded .neo-product-filter-toggle .neo-icon {
  transform: rotate(-90deg);
}

.neo-product-filter-hidden {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-filter-option:hover {
    background: var(--filter-highlight-bg);
  }

  .neo-product-filter-toggle:hover {
    background: var(--line-soft);
  }
}

@media (max-width: 767px) {
  .neo-product-filter {
    margin-right: -0.5rem;
    margin-bottom: 0.7rem;
    margin-left: -0.5rem;
  }

  .neo-product-filter-row {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    min-height: 2.45rem;
    padding: 0 0.42rem;
  }

  .neo-product-filter-label {
    min-height: 2.45rem;
    margin-right: 0.45rem;
    padding: 0 0.45rem 0 0;
    font-size: 0.74rem;
  }

  .neo-product-filter-body {
    gap: 0.32rem;
  }

  .neo-product-filter-body::before {
    width: 1.35rem;
  }

  .neo-product-filter-row.has-scroll-after:not(.is-expanded) .neo-product-filter-toggle {
    box-shadow: -10px 0 15px 3px #ffffff;
  }

  .neo-product-filter-options {
    gap: 0.28rem 0.4rem;
  }

  .neo-product-filter-option {
    min-height: 1.72rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.79rem;
  }

  .neo-product-filter-toggle {
    flex-basis: 2rem;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
  }
}

/*  Product list first-row toolbar */
.neo-catalog-toolbar--filter-head {
  display: block;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-bottom: 1px solid #e7eaee;
  border-radius: 0;
  background: #ffffff;
}

.neo-catalog-toolbar--filter-head .neo-catalog-center-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 2.7rem;
  gap: 1rem;
  padding: 0.34rem 0.78rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.neo-catalog-toolbar--filter-head .neo-catalog-count-pill {
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.neo-catalog-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.72rem;
  min-width: 0;
  margin-left: auto;
}

.neo-catalog-toolbar--filter-head .neo-card-link-switch {
  min-height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  box-shadow: none;
}

.neo-catalog-toolbar--filter-head .neo-card-link-switch.is-active {
  background: transparent;
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .neo-catalog-toolbar--filter-head .neo-card-link-switch:hover {
    background: transparent;
    color: var(--text-primary);
  }
}

.neo-catalog-toolbar--filter-head .neo-card-link-switch-track {
  width: 34px;
  height: 18px;
}

.neo-catalog-toolbar--filter-head .neo-card-link-switch-track::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}

.neo-catalog-toolbar--filter-head .neo-card-link-switch.is-active .neo-card-link-switch-track::after {
  transform: translateX(16px);
}

.neo-catalog-toolbar--filter-head .neo-catalog-layout-btn {
  width: 2rem;
  min-width: 2rem;
  min-height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .neo-catalog-toolbar--filter-head .neo-catalog-layout-btn:hover {
    background: #f4f5f7;
    color: var(--accent);
  }
}

.neo-catalog-toolbar--filter-head + .neo-product-filter {
  border-top: 0;
}

@media (max-width: 767px) {
  .neo-catalog-toolbar--filter-head {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }

  .neo-catalog-toolbar--filter-head .neo-catalog-center-panel {
    display: flex;
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    min-height: 2.35rem;
    column-gap: 0.75rem;
    padding: 0.28rem 0.45rem;
    border-radius: 0;
  }

  .neo-catalog-toolbar--filter-head .neo-catalog-count-pill {
    padding: 0;
    font-size: 0.72rem;
  }

  .neo-catalog-toolbar-actions {
    gap: 0.55rem;
  }

  .neo-catalog-toolbar--filter-head .neo-card-link-switch,
  .neo-catalog-toolbar--filter-head .neo-card-link-switch-label {
    font-size: 0.72rem;
  }

  .neo-catalog-toolbar--filter-head .neo-card-link-switch {
    min-height: 1.75rem;
    padding: 0;
  }

  .neo-catalog-toolbar--filter-head .neo-catalog-layout-btn {
    width: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.75rem;
    padding: 0;
  }
}

/*  Product category hierarchy */
.neo-product-filter-row--category-main,
.neo-product-filter-row--category-child {
  background: transparent;
}

.neo-product-filter-label--child {
  min-height: 1px;
}

.neo-product-filter-options--child {
  padding-left: 0;
}

/* 统一所有标准商品列表卡片，保留轻边界、紧凑两行标题和小号收藏按钮。 */
.neo-product-grid .neo-product-card {
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0.45rem 0.45rem 0.55rem;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-grid .neo-product-card.neo-card-hover:hover {
    border-color: #dfe3e8;
    box-shadow: none;
    transform: none;
  }
}

.neo-product-grid .neo-product-media-wrap,
.neo-product-grid .neo-product-media {
  border-radius: 0;
  background: #ffffff;
}

.neo-product-grid .neo-product-image {
  object-fit: contain;
}

.neo-product-grid .neo-card-info {
  padding: 0.62rem 0.08rem 0;
}

.neo-product-grid .neo-card-kicker {
  display: none;
}

.neo-product-grid .neo-product-title {
  min-height: 2.68rem;
  margin: 0 0 0.54rem;
  color: var(--text-strong);
  font-size: 0.92rem;
  line-height: 1.46;
  font-weight: 400;
}

.neo-product-grid .neo-product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.neo-product-grid .neo-card-bottom {
  min-height: 2.15rem;
  align-items: center;
}

.neo-product-grid .neo-card-bottom > .neo-favorite {
  margin-left: 0.45rem;
}

.neo-product-grid .neo-product-price {
  display: inline-flex;
  align-items: baseline;
  color: var(--accent);
  font-size: 1.16rem;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.neo-product-grid .neo-price-symbol {
  margin-right: 0.08em;
  font-size: 0.62em;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.neo-product-grid .neo-price-value {
  font-size: 1em;
}

.neo-product-grid .neo-favorite.is-md {
  --neo-favorite-size: 2.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .neo-product-grid .neo-product-card:hover .neo-product-image {
    transform: scale(1.015);
  }

  .neo-product-grid .neo-product-card:hover .neo-product-title,
  .neo-product-grid .neo-product-card:hover .neo-product-title a {
    color: var(--accent);
  }
}

@media (max-width: 767px) {
  .neo-product-grid .neo-product-card {
    padding: 0.34rem 0.34rem 0.44rem;
  }

  .neo-product-grid .neo-card-info {
    padding: 0.45rem 0.02rem 0;
  }

  .neo-product-grid .neo-product-title {
    min-height: 2.34rem;
    margin-bottom: 0.38rem;
    font-size: 0.82rem;
    line-height: 1.43;
  }

  .neo-product-grid.is-mobile-one-col .neo-product-title {
    min-height: 0;
    font-size: 0.875rem;
  }

  .neo-product-grid .neo-card-bottom {
    min-height: 1.88rem;
  }

  .neo-product-grid .neo-product-price {
    font-size: 1rem;
    line-height: 1.08;
  }

  .neo-product-grid .neo-favorite.is-md,
  .neo-product-grid .neo-favorite.is-lg {
    --neo-favorite-size: 2.05rem;
  }

}

body[data-page="product"] .neo-product-grid .neo-product-title,
body[data-page="product"] .neo-product-grid .neo-product-title a {
  font-weight: 400;
}

body[data-page="product"] .neo-product-grid .neo-product-price {
  font-weight: 600;
}

/* 收藏夹取消收藏：先淡出并轻微缩小，再从网格中移除。 */
.neo-product-grid[data-favorites-grid] .neo-product-card.neo-card-hover {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center center;
}

.neo-product-grid[data-favorites-grid] .neo-product-card.neo-card-hover.is-favorite-removing {
  opacity: 0;
  transform: scale(0.965);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .neo-product-grid[data-favorites-grid] .neo-product-card.neo-card-hover {
    transition-duration: 0.01ms;
  }
}


/* 首页只保留产品顶级栏目板块；栏目入口复用原“全部商品”橙色块样式并移至左侧。 */
body[data-page="home"],
body[data-page="home"] .neo-app,
body[data-page="home"] .neo-site-body,
body[data-page="home"] .neo-main {
  background: #ffffff;
}

[data-home-products].neo-home-product-floor {
  --floor-color: var(--accent);
  --floor-hover: var(--accent-strong);
  --floor-focus: var(--accent-border);
  width: 100%;
  background: #ffffff;
  border-radius: 0;
}

/* 产品顶级栏目按循环顺序使用不同楼层色；只作用于产品板块。 */
[data-home-products].neo-floor-theme-1 {
  --floor-color: var(--accent);
  --floor-hover: var(--accent-strong);
  --floor-focus: var(--accent-border);
}

[data-home-products].neo-floor-theme-2 {
  --floor-color: #3090db;
  --floor-hover: #247cc2;
  --floor-focus: #9bcbea;
}

[data-home-products].neo-floor-theme-3 {
  --floor-color: #22a06b;
  --floor-hover: #18875a;
  --floor-focus: #8bd2b0;
}

[data-home-products].neo-floor-theme-4 {
  --floor-color: #7b61ff;
  --floor-hover: #684bdc;
  --floor-focus: #b9adff;
}

[data-home-products].neo-floor-theme-5 {
  --floor-color: #e45454;
  --floor-hover: #c94444;
  --floor-focus: #f1aaaa;
}

[data-home-products] .neo-home-floor-head {
  display: flex;
  align-items: stretch;
  height: 2.8rem;
  min-height: 2.8rem;
  border: 0;
  border-bottom: 1px solid var(--floor-color);
  border-radius: 0;
  background: #ffffff;
}

[data-home-products] .neo-home-floor-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 8.2rem;
  max-width: calc(100% - 3rem);
  height: 2.8rem;
  min-height: 2.8rem;
  box-sizing: border-box;
  padding: 0 1.45rem 0 1.05rem;
  background: var(--floor-color);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  transition: background-color 0.2s ease;
}

[data-home-products] .neo-home-floor-category-name {
  overflow: hidden;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-home-products] .neo-home-category-arrow {
  width: 1.38rem;
  height: 1.38rem;
  flex: 0 0 1.38rem;
  margin-left: 0.58rem;
  background: currentColor;
  -webkit-mask: url('../images/icon-circle-arrow-right.svg') center / contain no-repeat;
  mask: url('../images/icon-circle-arrow-right.svg') center / contain no-repeat;
  transition: transform 0.2s ease;
}

[data-home-products] .neo-home-floor-category-link:focus-visible {
  background: var(--floor-hover);
  color: #ffffff;
  outline: 2px solid var(--floor-focus);
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-floor-category-link:hover {
    background: var(--floor-hover);
    color: #ffffff;
  }
}

[data-home-products] .neo-home-floor-category-link:focus-visible .neo-home-category-arrow {
  transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-floor-category-link:hover .neo-home-category-arrow {
    transform: translateX(2px);
  }
}

[data-home-products] .neo-home-floor-actions {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 布局按钮取消色块背景，仅保留放大的淡灰色图标。 */
[data-home-products] .neo-home-layout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d3d9e2;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

[data-home-products] .neo-home-layout-icon .neo-icon {
  --neo-icon-size: 26px;
}

[data-home-products] .neo-home-layout-icon:active,
[data-home-products] .neo-home-layout-icon[aria-pressed="true"] {
  background: transparent;
  color: #b9c1cc;
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-layout-icon:hover {
    background: transparent;
    color: #b9c1cc;
  }
}

[data-home-products] .neo-home-layout-icon:focus-visible {
  outline: 2px solid var(--floor-focus);
  outline-offset: -2px;
}

[data-home-products] .neo-home-product-grid {
  gap: 0;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
}

[data-home-products] .neo-home-product-grid .neo-product-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-product-grid .neo-product-card.neo-card-hover:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
  }
}

[data-home-products] .neo-home-product-grid .neo-product-media-wrap {
  width: auto;
  margin: 0.75rem 0.75rem 0;
  border-radius: 0;
  background: #ffffff;
}

[data-home-products] .neo-home-product-grid .neo-product-media {
  border-radius: 0;
  background: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-product-grid .neo-product-card:hover .neo-product-image {
    transform: scale(1.02);
  }
}

[data-home-products] .neo-home-product-grid .neo-catalog-play-button {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
}

[data-home-products] .neo-home-product-grid .neo-card-info {
  padding: 0.85rem 1rem 0.95rem;
}

[data-home-products] .neo-home-product-grid .neo-product-title {
  min-height: 2.75rem;
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.48;
  font-weight: 500;
}

[data-home-products] .neo-home-product-grid .neo-product-title a {
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  [data-home-products] .neo-home-product-grid .neo-product-card:hover .neo-product-title,
  [data-home-products] .neo-home-product-grid .neo-product-card:hover .neo-product-title a {
    color: var(--accent);
  }
}

[data-home-products] .neo-home-product-grid .neo-card-bottom {
  min-height: 1.75rem;
  justify-content: flex-start;
}

[data-home-products] .neo-home-product-grid .neo-product-price {
  padding-left: 0;
  color: var(--accent);
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 700;
}

[data-home-products] .neo-home-product-grid .neo-price-symbol {
  margin-right: 0.08em;
  font-size: 0.68em;
  font-weight: 400;
}

@media (max-width: 767px) {
  [data-home-products] .neo-home-floor-head {
    height: 2.5rem;
    min-height: 2.5rem;
  }

  [data-home-products] .neo-home-floor-category-link {
    min-width: 6rem;
    max-width: calc(100% - 2.5rem);
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.95rem 0 0.72rem;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 100%, 0 100%);
  }

  [data-home-products] .neo-home-floor-category-name {
    font-size: 0.8rem;
  }

  [data-home-products] .neo-home-category-arrow {
    width: 1.16rem;
    height: 1.16rem;
    flex-basis: 1.16rem;
    margin-left: 0.44rem;
  }

  [data-home-products] .neo-home-layout-icon {
    width: 2.5rem;
    min-width: 2.5rem;
  }

  [data-home-products] .neo-home-layout-icon .neo-icon {
    --neo-icon-size: 24px;
  }


  [data-home-products] .neo-home-product-grid {
    gap: 0;
  }

  [data-home-products] .neo-home-product-grid .neo-product-card {
    padding: 0;
    border-radius: 0;
  }

  [data-home-products] .neo-home-product-grid .neo-product-media-wrap {
    margin: 0.42rem 0.42rem 0;
    border-radius: 0;
  }

  [data-home-products] .neo-home-product-grid .neo-product-media {
    border-radius: 0;
  }

  [data-home-products] .neo-home-product-grid .neo-card-info {
    padding: 0.58rem 0.62rem 0.68rem;
  }

  [data-home-products] .neo-home-product-grid .neo-product-title {
    min-height: 2.28rem;
    margin-bottom: 0.4rem;
    font-size: 0.76rem;
    line-height: 1.48;
  }

  [data-home-products] .neo-home-product-grid .neo-card-bottom {
    min-height: 1.45rem;
  }

  [data-home-products] .neo-home-product-grid .neo-product-price {
    font-size: 0.94rem;
  }

  [data-home-products] .neo-home-product-grid .neo-catalog-play-button {
    right: 0.45rem;
    bottom: 0.45rem;
    width: 2rem;
    height: 2rem;
  }

  /* 首页手机圆按钮为 32px；按桌面 38.4px : 24px 的比例，三角同步缩至 20px。 */
  [data-home-products] .neo-home-product-grid .neo-catalog-play-button .neo-icon-play {
    --neo-icon-size: 20px;
    width: 20px;
    height: 20px;
  }
}

/* 首页文章板块与产品楼层统一使用首页 1440px 内容宽度，并优化标题、TAB 与桌面排版。 */
/* 首页文章主图使用“等比例限宽缩略图 + 4:3 展示容器 + cover 铺满”。
   缩略图只限制最大宽度，高度按封面原比例生成；4:3 只属于前端展示容器。 */
.neo-template-news {
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  background: #ffffff;
}

.neo-template-news-inner {
  width: 100%;
  margin: 0 auto;
}

.neo-template-news-title {
  width: 100%;
  padding-bottom: 1.25rem;
  text-align: center;
}

.neo-template-news-heading-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.neo-template-news-heading-line {
  flex: 1 1 auto;
  min-width: 2rem;
  height: 1px;
  background: var(--accent);
}

.neo-template-news-heading-mark {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  background: var(--accent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.neo-template-news-title h2 {
  display: block;
  margin: 0 5.5rem;
  color: #1f2937;
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}

.neo-template-news-title p {
  max-width: 52rem;
  margin: 0 auto;
  padding-top: 0.72rem;
  color: #999999;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}

/* 多个文章顶级栏目以轻量 TAB 切换；只有一个有效栏目时自动隐藏 TAB。 */
.neo-template-news-tabs-wrap {
  width: 100%;
  margin: -0.2rem 0 1.5rem;
  overflow: hidden;
}

.neo-template-news.has-single-news-tab .neo-template-news-tabs-wrap {
  display: none;
}

.neo-template-news-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.1rem 0.25rem 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.neo-template-news-tabs::-webkit-scrollbar {
  display: none;
}

.neo-template-news-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.48rem 0.95rem 0.58rem;
  border: 0;
  border-radius: 0.25rem;
  outline: 0;
  background: transparent;
  color: #666666;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.neo-template-news-tab::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.16rem;
  left: 0.8rem;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.neo-template-news-tab:focus-visible,
.neo-template-news-tab.is-active {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-tab:hover {
    color: var(--accent);
  }
}

.neo-template-news-tab:focus-visible {
  background: var(--accent-softest);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.neo-template-news-tab.is-active::after {
  transform: scaleX(1);
}

.neo-template-news-panel[hidden],
.neo-template-news-tab[hidden],
.neo-template-news-title p[hidden] {
  display: none;
}

.neo-template-news-panel.is-lead-only .neo-template-news-content {
  grid-template-columns: minmax(0, 38rem);
  justify-content: center;
}

.neo-template-news-panel.is-lead-only .neo-template-news-listbox {
  display: none;
}

.neo-template-news-content {
  display: grid;
  grid-template-columns: minmax(23rem, 26.25rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.neo-template-news-box {
  position: relative;
  height: auto;
  background: #ffffff;
}

.neo-template-news-viewport {
  position: relative;
  height: auto;
  overflow: hidden;
  border: 1px solid #dddddd;
  transition: height 0.3s ease;
}

.neo-template-news-track {
  display: grid;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.neo-template-news-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.neo-template-news-box:not(.is-ready) .neo-template-news-slide:first-child,
.neo-template-news-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

/* 首页文章轮播与 Hero 一致，对整张文章卡片做裁切揭幕。
   文字区必须保持不透明白底，使新卡片揭幕时自然遮住旧标题与摘要，禁止透明文字层叠字。 */
.neo-template-news-slide.is-leaving {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.neo-template-news-slide.is-entering {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.neo-template-news-box.is-reverse .neo-template-news-slide.is-entering {
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
}

.neo-template-news-box.is-transitioning .neo-template-news-slide.is-entering {
  animation: neoTemplateNewsReveal 760ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.neo-template-news-box.is-transitioning.is-reverse .neo-template-news-slide.is-entering {
  animation-name: neoTemplateNewsRevealReverse;
}

.neo-template-news-box.is-transitioning .neo-template-news-slide.is-leaving {
  animation: neoTemplateNewsLeaving 760ms ease forwards;
}

@keyframes neoTemplateNewsReveal {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes neoTemplateNewsRevealReverse {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes neoTemplateNewsLeaving {
  to { filter: brightness(0.94); }
}

.neo-template-news-slide > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.neo-template-news-slide-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

.neo-template-news-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.neo-template-news-slide-text {
  min-height: 10.75rem;
  padding: 0.9375rem 1.25rem 4.75rem;
  background: #ffffff;
}

.neo-template-news-slide-text h3 {
  overflow: hidden;
  margin: 0;
  color: #111111;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.neo-template-news-slide-text p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.5rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-slide > a:hover h3 {
    color: var(--accent);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-slide > a:hover img {
    opacity: 0.8;
  }
}

.neo-template-news-controlbar {
  position: absolute;
  z-index: 5;
  right: 1.25rem;
  bottom: 0.875rem;
  left: 1.25rem;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.neo-template-news-box:not(.is-ready) .neo-template-news-controlbar {
  visibility: hidden;
}

.neo-template-news-status {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.7rem;
  color: #a4a8af;
  font-variant-numeric: tabular-nums;
}

.neo-template-news-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.28rem;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1;
}

.neo-template-news-count b,
.neo-template-news-count em {
  font-style: normal;
  font-weight: 500;
}

.neo-template-news-count b {
  color: rgba(var(--accent-strong-rgb), 0.82);
}

.neo-template-news-count em,
.neo-template-news-count span {
  color: #b7bbc1;
}

.neo-template-news-progress {
  position: relative;
  display: block;
  width: clamp(5.5rem, 12vw, 9rem);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.055);
}

.neo-template-news-progress > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(var(--accent-rgb), 0.46);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.neo-template-news-controls {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  margin: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.99);
  pointer-events: auto;
}

.neo-template-news-controls button {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  background: transparent;
  color: #a4a8af;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.neo-template-news-controls button + button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.045);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-controls button:hover {
    background: rgba(var(--accent-rgb), 0.07);
    color: rgba(var(--accent-strong-rgb), 0.9);
  }
}

.neo-template-news-controls button:focus-visible {
  background: rgba(var(--accent-rgb), 0.07);
  color: rgba(var(--accent-strong-rgb), 0.9);
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.neo-template-news-controls .neo-icon {
  font-size: 17px;
}

.neo-template-news-pause span {
  position: relative;
  display: block;
  width: 13px;
  height: 15px;
}

.neo-template-news-pause span::before,
.neo-template-news-pause span::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.neo-template-news-pause span::before { left: 0; }
.neo-template-news-pause span::after { right: 0; }

.neo-template-news-box.is-user-paused .neo-template-news-pause {
  color: rgba(var(--accent-rgb), 0.72);
}

.neo-template-news-box.is-user-paused .neo-template-news-pause span::before {
  top: 1px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  border-left: 9px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.neo-template-news-box.is-user-paused .neo-template-news-pause span::after {
  display: none;
}

.neo-template-news-box.is-static .neo-template-news-controlbar,
.neo-template-news-box.is-empty .neo-template-news-controlbar {
  display: none;
}

.neo-template-news-listbox {
  min-width: 0;
}

.neo-template-news-listbox > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.neo-template-news-item {
  margin-bottom: 1rem;
  border: 1px solid #dddddd;
  background: #ffffff;
  transition: border-color 0.2s linear, box-shadow 0.2s linear, transform 0.2s linear;
}

.neo-template-news-item:last-child {
  margin-bottom: 0;
}

.neo-template-news-item > a {
  display: flex;
  align-items: center;
  min-height: 7.875rem;
  padding: 1.75rem;
  color: inherit;
}

.neo-template-news-time {
  flex: 0 0 5.625rem;
  width: 5.625rem;
  margin-right: 1.875rem;
  border-right: 1px solid #dddddd;
  color: #666666;
  line-height: 1.25rem;
}

.neo-template-news-time b {
  display: block;
  color: #666666;
  font-size: 3rem;
  line-height: 3rem;
  font-weight: 400;
}

.neo-template-news-time span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.875rem;
}

.neo-template-news-item-text {
  min-width: 0;
}

.neo-template-news-item-text h3 {
  overflow: hidden;
  margin: 0 0 0.45rem;
  color: #222222;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.neo-template-news-item-text p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.45rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translate3d(0, -2px, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-item:hover h3 {
    color: var(--accent);
  }
}

.neo-template-news-more {
  display: block;
  width: 11.25rem;
  height: 2.25rem;
  margin: 2rem auto 0;
  background: #444444;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 2.25rem;
  text-align: center;
  transition: color 0.2s linear, background 0.2s linear, text-indent 0.2s linear;
}

@media (hover: hover) and (pointer: fine) {
  .neo-template-news-more:hover {
    background: var(--accent);
    color: #ffffff;
    text-indent: 0.625rem;
  }
}

@media (max-width: 1180px) {
  .neo-template-news-title h2 {
    margin-right: 3rem;
    margin-left: 3rem;
  }

  .neo-template-news-content {
    grid-template-columns: minmax(19rem, 0.92fr) minmax(0, 1.4fr);
  }

  .neo-template-news-item > a {
    padding: 1.2rem;
  }

  .neo-template-news-time {
    flex-basis: 4.5rem;
    width: 4.5rem;
    margin-right: 1.25rem;
  }

  .neo-template-news-time b {
    font-size: 2.4rem;
    line-height: 2.5rem;
  }
}

@media (max-width: 767px) {
  .neo-template-news {
    padding: 2.25rem 0 2.5rem;
  }

  .neo-template-news-title {
    padding-bottom: 1rem;
  }

  .neo-template-news-heading-line {
    min-width: 0.75rem;
    opacity: 0.82;
  }

  .neo-template-news-heading-mark {
    width: 0.625rem;
    height: 0.625rem;
  }

  .neo-template-news-title h2 {
    margin-right: 1.25rem;
    margin-left: 1.25rem;
    font-size: 1.45rem;
  }

  .neo-template-news-title p {
    padding-top: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .neo-template-news-tabs-wrap {
    width: calc(100% + 0.5rem);
    margin: -0.25rem -0.25rem 1.05rem;
  }

  .neo-template-news-tabs {
    justify-content: flex-start;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .neo-template-news-tab {
    padding: 0.44rem 0.72rem 0.52rem;
    font-size: 0.82rem;
  }

  .neo-template-news-tab::after {
    right: 0.6rem;
    left: 0.6rem;
  }

  .neo-template-news-content {
    display: block;
  }

  .neo-template-news-box {
    height: auto;
    margin-bottom: 0.875rem;
  }

  .neo-template-news-viewport {
    height: auto;
  }

  .neo-template-news-track {
    align-items: stretch;
  }

  .neo-template-news-slide {
    height: auto;
  }


  .neo-template-news-slide-text {
    min-height: 9.35rem;
    padding: 0.8rem 0.9rem 4.25rem;
  }

  .neo-template-news-slide-text h3 {
    font-size: 1rem;
  }

  .neo-template-news-slide-text p {
    font-size: 0.78rem;
    line-height: 1.3rem;
  }

  .neo-template-news-controlbar {
    right: 0.9rem;
    bottom: 0.7rem;
    left: 0.9rem;
    gap: 0.7rem;
  }

  .neo-template-news-status {
    gap: 0.5rem;
  }

  .neo-template-news-count {
    gap: 0.22rem;
    font-size: 0.7rem;
  }

  .neo-template-news-progress {
    width: clamp(4rem, 18vw, 6.5rem);
  }

  .neo-template-news-controls button {
    width: 36px;
    height: 36px;
  }

  .neo-template-news-listbox > ul {
    display: grid;
    gap: 0.75rem;
  }

  .neo-template-news-item {
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .neo-template-news-item > a {
    display: grid;
    grid-template-columns: 3.35rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 0.9rem;
  }

  .neo-template-news-time {
    flex: 0 0 3.75rem;
    width: auto;
    min-width: 0;
    margin-right: 0;
  }

  .neo-template-news-time b {
    font-size: 1.85rem;
    line-height: 2rem;
  }

  .neo-template-news-time span {
    font-size: 0.68rem;
  }

  .neo-template-news-item-text h3 {
    display: -webkit-box;
    max-width: 100%;
    margin-bottom: 0.25rem;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .neo-template-news-item-text p {
    width: 100%;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 2;
  }

  .neo-template-news-more {
    width: 9rem;
    margin-top: 1.35rem;
  }
}

/* 首页文章列表移动端使用明确两列 Grid，避免 Android/WebKit 最小内容宽度把文字撑出卡片。 */
@media (max-width: 767px) {
  .neo-template-news-listbox,
  .neo-template-news-listbox > ul,
  .neo-template-news-item,
  .neo-template-news-item > a,
  .neo-template-news-item-text {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }


  .neo-template-news-item-text {
    width: 100%;
    overflow: hidden;
  }

}


/* 平板横屏导航统一使用抽屉模式。
   旧规则在 1024px 直接切成 280px 常驻侧栏，触屏平板横屏会挤压正文；
   同时搜索栏、遮罩、滚动锁仍按移动端断点执行，造成状态不一致。 */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  .neo-app {
    flex-direction: column;
  }

  .neo-site-body {
    width: 100%;
    flex: 1 1 auto;
  }

  .neo-main {
    padding-top: 4rem;
  }

  .neo-mobile-topbar {
    display: flex;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    z-index: 10030;
  }

  .neo-mobile-backdrop {
    top: 4rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10010;
    display: block;
    background: rgba(0, 0, 0, 0.48);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    touch-action: none;
  }

  body.sidebar-open .neo-mobile-backdrop,
  .neo-mobile-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .neo-sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    bottom: auto;
    z-index: 10020;
    width: min(360px, 84vw);
    height: calc(100vh - 4rem);
    height: calc(var(--neo-real-vh, 100vh) - 4rem);
    overflow: hidden;
    transform: translateX(-100%);
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  body.sidebar-open .neo-sidebar {
    transform: translateX(0);
  }

  .neo-sidebar-spacer {
    display: none;
    width: 0;
    flex-basis: 0;
  }

  .neo-sidebar-head,
  .sidebar-close-button {
    display: none;
  }

  .neo-sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 0.75rem;
    padding-right: 0.2rem;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
  }

  .neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar {
    width: 7px;
  }

  .neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-button:vertical {
    display: none;
    width: 0;
    height: 0;
  }

  /* 搜索框展开后启用透明空白层。它不改变页面颜色，只负责拦截
     搜索框外的触摸；点击后立即关闭搜索框，并避免误触下方商品或链接。 */
  .neo-global-search-backdrop {
    position: fixed;
    top: 4rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10004;
    display: block;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: manipulation;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  body.search-open .neo-global-search-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* 抽屉模式下搜索栏必须与顶部导航共用同一断点，避免平板横屏时压在页面顶部或无法收起。 */
  .neo-global-search-form {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 10005;
    max-height: 3.75rem;
    padding: 0.45rem max(0.75rem, env(safe-area-inset-right)) 0.45rem max(0.75rem, env(safe-area-inset-left));
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      max-height 0.22s ease,
      opacity 0.18s ease,
      padding 0.18s ease,
      border-color 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  body:not(.search-open) .neo-global-search-form {
    max-height: 3.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    border-bottom-color: transparent;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  .neo-global-search-input {
    padding-right: 6.25rem;
    font-size: 0.92rem;
  }
}

/* 横屏触屏平板给抽屉更合适的宽度；桌面浏览器不能命中这条规则，否则 1366px 以内会把 256px 常驻侧栏错误放大到 380px。 */
@media (min-width: 768px) and (orientation: landscape) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .neo-sidebar {
    width: min(380px, 42vw);
  }

  .neo-sidebar-nav {
    margin-top: 0.45rem;
  }

  .sidebar-link {
    min-height: 3rem;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
  }

  .sidebar-sub-link {
    min-height: 2.55rem;
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
  }
}

/* ========================================================================
   PM 首页主视觉移植（精简实现：不携带 PM 兜底图片，不复制其全局样式）
   ======================================================================== */
.neo-pm-hero {
  --neo-pm-hero-duration: 6000ms;
  position: relative;
  height: min(70vh, 660px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.neo-pm-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 12, 24, 0.48) 0%, rgba(5, 12, 24, 0.18) 46%, rgba(5, 12, 24, 0.04) 72%, rgba(5, 12, 24, 0) 100%);
  content: "";
}

.neo-pm-hero-slides,
.neo-pm-hero-slide,
.neo-pm-hero-slide-link {
  position: absolute;
  inset: 0;
}

.neo-pm-hero-slides {
  z-index: 0;
  overflow: hidden;
}

.neo-pm-hero-slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  transform: none;
  transition: none;
  will-change: clip-path;
}

.neo-pm-hero:not(.is-ready) .neo-pm-hero-slide:first-child,
.neo-pm-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

/* 遮罩揭幕：图片保持固定尺寸，仅通过裁切区域显示下一张。 */
.neo-pm-hero-slide.is-leaving {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.neo-pm-hero-slide.is-entering {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.neo-pm-hero.is-reverse .neo-pm-hero-slide.is-entering {
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
}

.neo-pm-hero.is-transitioning .neo-pm-hero-slide.is-entering {
  animation: neoPmHeroReveal 760ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.neo-pm-hero.is-transitioning.is-reverse .neo-pm-hero-slide.is-entering {
  animation-name: neoPmHeroRevealReverse;
}

.neo-pm-hero.is-transitioning .neo-pm-hero-slide.is-leaving {
  animation: neoPmHeroLeaving 760ms ease forwards;
}

@keyframes neoPmHeroReveal {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes neoPmHeroRevealReverse {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes neoPmHeroLeaving {
  to { filter: brightness(0.82); }
}

.neo-pm-hero-slide-link {
  display: block;
  color: inherit;
}

.neo-pm-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.neo-pm-hero-panels {
  position: absolute;
  left: 72px;
  bottom: 74px;
  z-index: 2;
  display: grid;
  width: min(680px, calc(100% - 144px));
  pointer-events: none;
}

.neo-pm-hero-panel {
  grid-area: 1 / 1;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease, visibility 0s linear 0.42s;
}

.neo-pm-hero:not(.is-ready) .neo-pm-hero-panel:first-child,
.neo-pm-hero-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.neo-pm-hero-panel h2 {
  max-width: 620px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.12;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.neo-pm-hero-desc {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.46);
}

.neo-pm-hero-desc p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.neo-pm-hero-video-buttons {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.neo-pm-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  min-width: 68px;
  max-width: min(520px, calc(100vw - 48px));
  height: 68px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translate(-34px, -50%);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.neo-pm-hero-video[data-video-src=""] {
  display: none;
}

.neo-pm-hero-video.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.neo-pm-hero-video:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .neo-pm-hero-video:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
}

.neo-pm-hero-video .neo-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 24px;
}

.neo-pm-hero-video span {
  display: block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateX(-8px);
  transition: max-width 0.22s ease, margin-left 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.neo-pm-hero-video:focus-visible span {
  max-width: 420px;
  margin-left: 14px;
  opacity: 1;
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .neo-pm-hero-video:hover span {
    max-width: 420px;
    margin-left: 14px;
    opacity: 1;
    transform: translateX(0);
  }
}

.neo-pm-hero-progress {
  position: absolute;
  left: 72px;
  bottom: 42px;
  z-index: 3;
  width: 220px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.neo-pm-hero-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
  transform: translateX(-100%);
  animation: neoPmHeroProgress var(--neo-pm-hero-duration) linear infinite;
}

/* 首页轮播控制组：容器负责整体边框/底色，按钮自身不再拥有边框。
   这样 hover 只改变当前按钮背景，不会产生四边描边。 */
.neo-pm-hero-controls {
  position: absolute;
  right: 72px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.neo-pm-hero-controls button {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.neo-pm-hero-controls button + button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .neo-pm-hero-controls button:hover {
    background: rgba(15, 23, 42, 0.22);
  }
}

.neo-pm-hero-controls button:focus-visible {
  background: rgba(15, 23, 42, 0.28);
}

.neo-pm-hero-controls .neo-icon {
  font-size: 18px;
}

.neo-pm-hero-pause span {
  position: relative;
  display: block;
  width: 14px;
  height: 16px;
}

.neo-pm-hero-pause span::before,
.neo-pm-hero-pause span::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.neo-pm-hero-pause span::before { left: 1px; }
.neo-pm-hero-pause span::after { right: 1px; }

.neo-pm-hero.is-paused .neo-pm-hero-progress span {
  animation-play-state: paused;
}

.neo-pm-hero.is-user-paused .neo-pm-hero-pause span::before {
  top: 1px;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.neo-pm-hero.is-user-paused .neo-pm-hero-pause span::after { display: none; }
.neo-pm-hero.is-static .neo-pm-hero-progress,
.neo-pm-hero.is-static .neo-pm-hero-controls { display: none; }

@keyframes neoPmHeroProgress {
  to { transform: translateX(0); }
}

.neo-pm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.neo-pm-video-modal.is-open { display: flex; }

.neo-pm-video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(6, 12, 24, 0.78);
}

.neo-pm-video-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  max-height: calc(100dvh - 48px);
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.neo-pm-video-player {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 48px);
  background: #000;
  object-fit: contain;
}

.neo-pm-video-dialog.is-portrait {
  width: min(94vw, 560px);
  height: min(calc(100dvh - 48px), 860px);
}

.neo-pm-video-dialog.is-portrait .neo-pm-video-player {
  height: 100%;
}

.neo-pm-video-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.neo-pm-video-close:focus-visible { color: #ff475d; }

@media (hover: hover) and (pointer: fine) {
  .neo-pm-video-close:hover { color: #ff475d; }
}
body.neo-pm-video-open { overflow: hidden; }

@media (max-width: 1439px) {
  .neo-pm-hero {
    height: min(70vh, 660px);
    min-height: 520px;
  }
  .neo-pm-hero-panels {
    left: 46px;
    bottom: 58px;
    width: min(620px, calc(100% - 92px));
  }
  .neo-pm-hero-panel h2 { font-size: 44px; }
  .neo-pm-hero-desc { font-size: 16px; }
  .neo-pm-hero-progress { left: 46px; bottom: 34px; }
  .neo-pm-hero-controls { right: 46px; bottom: 14px; }
}

@media (max-width: 991px) {
  .neo-pm-hero-panels {
    left: 28px;
    width: min(620px, calc(100% - 56px));
  }
  .neo-pm-hero-panel h2 { font-size: 38px; }
  .neo-pm-hero-progress { left: 28px; bottom: 30px; width: 180px; }
  .neo-pm-hero-controls { right: 28px; bottom: 9px; }
  .neo-pm-hero-controls button { width: 42px; height: 42px; }
}

/* 所有使用移动顶部栏的触屏设备，首页轮播统一为 16:9。
   先用 56.25vw 兼容旧版 Safari，再由 aspect-ratio 接管现代浏览器；
   图片只裁切显示，不做放大缩小。 */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  .neo-home-hero-section { margin-bottom: 22px; }

  .neo-pm-hero {
    width: 100%;
    height: 56.25vw;
    min-height: 0;
    max-height: none;
  }

  @supports (aspect-ratio: 16 / 9) {
    .neo-pm-hero {
      height: auto;
      aspect-ratio: 16 / 9;
    }
  }
}

/* 平板轮播文字与控制区按 16:9 高度重新收紧，避免沿用桌面尺寸后遮挡画面。 */
@media (min-width: 768px) and (max-width: 1180px),
       (min-width: 768px) and (hover: none) and (pointer: coarse) {
  .neo-pm-hero-panels {
    left: 32px;
    right: 32px;
    bottom: 60px;
    width: auto;
  }

  .neo-pm-hero-panel h2 {
    max-width: 70%;
    margin-bottom: 10px;
    font-size: clamp(28px, 3.6vw, 38px);
  }

  .neo-pm-hero-desc {
    max-width: 66%;
    font-size: 15px;
    line-height: 1.6;
  }

  .neo-pm-hero-video {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .neo-pm-hero-video .neo-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 22px;
  }

  .neo-pm-hero-video span {
    display: none;
  }

  .neo-pm-hero-progress {
    left: 32px;
    bottom: 26px;
    width: 190px;
  }

  .neo-pm-hero-controls {
    right: 32px;
    bottom: 12px;
  }

  .neo-pm-hero-controls button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .neo-pm-hero::after {
    background: linear-gradient(180deg, rgba(5, 12, 24, 0.02) 22%, rgba(5, 12, 24, 0.16) 55%, rgba(5, 12, 24, 0.52) 100%);
  }
  .neo-pm-hero-image { object-position: 60% center; }
  .neo-pm-hero-panels {
    left: 16px;
    right: 16px;
    bottom: 54px;
    width: auto;
  }
  .neo-pm-hero-panel h2 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
  .neo-pm-hero-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .neo-pm-hero-video {
    top: 36%;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    transform: translate(-50%, -50%);
  }
  .neo-pm-hero-video .neo-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 20px;
  }
  .neo-pm-hero-video span { display: none; }
  .neo-pm-hero-progress {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
  }
  .neo-pm-hero-controls { right: 16px; bottom: 12px; }
  .neo-pm-hero-controls button { width: 34px; height: 34px; }
  .neo-pm-video-modal { padding: 12px; }
  .neo-pm-video-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .neo-pm-video-player { max-height: calc(100dvh - 24px); }
  .neo-pm-video-close { top: 8px; right: 8px; }
}

@media (max-width: 420px) {
  .neo-pm-hero-panels { left: 14px; right: 14px; bottom: 48px; }
  .neo-pm-hero-panel h2 { font-size: 22px; }
  .neo-pm-hero-desc { font-size: 12px; line-height: 1.45; }
  .neo-pm-hero-video { top: 34%; width: 42px; min-width: 42px; max-width: 42px; height: 42px; }
  .neo-pm-hero-video .neo-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .neo-pm-hero-controls { right: 14px; bottom: 10px; }
  .neo-pm-hero-controls button { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .neo-template-news-viewport { transition: none; }
  .neo-template-news-box.is-transitioning .neo-template-news-slide.is-entering,
  .neo-template-news-box.is-transitioning .neo-template-news-slide.is-leaving { animation: none; }
  .neo-pm-hero-slide,
  .neo-pm-hero-panel { transition: none; }
  .neo-pm-hero.is-transitioning .neo-pm-hero-slide.is-entering,
  .neo-pm-hero.is-transitioning .neo-pm-hero-slide.is-leaving { animation: none; }
  .neo-pm-hero-progress span { animation: none; transform: none; }
}
/* TomShop static bridge start */
/* TomShop toolbar entry start */
.tomshop-query-link-entry,
.tomshop-query-link-item,
.tomshop-toolbar-entry-host {
  display: contents !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ts-with-theme {
  /* v1.49：移动端工具栏固定在最底部；安全区使用超淡灰白色，不再沿用旧深色底栏。 */
  --tomshop-mobile-query-bar-height: 58px;
  --tomshop-mobile-query-bar-gap: 10px;
  --tomshop-mobile-query-safe-bg: #fbfbfc;
  --tomshop-query-entry-bottom-space: calc(var(--tomshop-mobile-query-bar-height, 58px) + 8px + env(safe-area-inset-bottom, 0px));
}

body.ts-with-theme .tomshop-theme-app,
body.ts-with-theme .tomshop-theme-body,
body.ts-with-theme .tomshop-theme-main,
body.ts-with-theme .tomshop-theme-page-shell {
  box-sizing: border-box;
  min-width: 0;
}

body.ts-with-theme .tomshop-theme-main {
  display: block;
  scroll-padding-top: var(--tomshop-fixed-top-offset, 0px);
  scroll-padding-bottom: var(--tomshop-query-entry-bottom-space, 66px);
}

/* 桌面端沿用 tb-gotop-toolbar 的右侧悬浮结构。 */
.tomshop-toolbar {
  position: fixed;
  right: 0;
  bottom: 50%;
  z-index: 9990;
  width: 56px;
  border-width: 1px 0 1px 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
  -webkit-tap-highlight-color: transparent;
}

.tomshop-toolbar__list {
  /* v1.51：必须建立块级定位容器。Firefox 对 inline span 内绝对定位子项的 containing block 计算与 Chromium 存在差异，会让“回顶部”覆盖首页/订单。 */
  position: relative;
  display: block;
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.tomshop-toolbar__item {
  position: relative;
  z-index: 1;
  display: block;
  width: 48px;
  height: 48px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.tomshop-toolbar__item:first-child {
  margin-top: 0;
}

.tomshop-toolbar__item:hover,
.tomshop-toolbar__item:focus,
.tomshop-toolbar__item:active {
  color: inherit !important;
  text-decoration: none !important;
  outline: 0;
  box-shadow: none;
}

.tomshop-toolbar__item:hover {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.tomshop-toolbar__icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  padding-top: 4px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  box-sizing: content-box;
  transform-origin: 50% 50%;
}

.tomshop-toolbar__item--home .tomshop-toolbar__icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201024%201024%22%3E%3Cpath%20d=%22M1023.9%20511.9c-0.3-10.3-4.1-20.6-12-28.4L546.6%2018.2c-1.4-2-2.3-4.3-4.1-6.1C534.1%203.7%20523-0.2%20512%200.1c-11-0.3-22.1%203.6-30.5%2012-1.8%201.8-2.7%204.1-4.1%206.1L12.2%20483.5C4.3%20491.4%200.5%20501.6%200.2%20511.9H0c0%200.2%200.1%200.4%200.1%200.6%200%200.7%200.2%201.3%200.2%201.9%201.3%2046%2038.8%2082.9%2085.1%2082.9H128v341.3c0%2047.1%2038.2%2085.3%2085.3%2085.3h597.3c47.1%200%2085.3-38.2%2085.3-85.3V597.3h42.7c26%200%2049.1-25.9%2064.7-49.2%202.9-1.7%206-3.1%208.5-5.6%208.4-8.3%2012.3-19.3%2012.1-30.3l0.1-0.2h-0.1zM554.7%20938.6h-85.3V725.2h85.3v213.4z%20m256-426.7v426.7H640v-256c0-23.6-19.1-42.7-42.7-42.7H426.7c-23.5%200-42.7%2019.1-42.7%2042.7v256H213.3V511.9H101.6L512%20101.5l410.4%20410.4H810.7z%22%20fill=%22%231f1f1f%22/%3E%3C/svg%3E");
}

.tomshop-toolbar__item--order .tomshop-toolbar__icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201024%201024%22%3E%3Cpath%20d=%22M741.52%20105.93a105.93%20105.93%200%200%201%20105.93%20105.93v317.79a35.31%2035.31%200%201%201-70.62%200V211.86a35.31%2035.31%200%200%200-35.31-35.31H264.83a35.31%2035.31%200%200%200-35.31%2035.31v564.97a35.31%2035.31%200%200%200%2035.31%2035.31h264.83a35.31%2035.31%200%201%201%200%2070.62H264.83a105.93%20105.93%200%200%201-105.93-105.93V211.86a105.93%20105.93%200%200%201%20105.93-105.93h476.69zM564.97%20494.34a35.31%2035.31%200%201%201%200%2070.62H353.1a35.31%2035.31%200%201%201%200-70.62h211.86z%20m105.93-176.55a35.31%2035.31%200%201%201%200%2070.62H353.1a35.31%2035.31%200%201%201%200-70.62h317.79z%22%20fill=%22%23132036%22/%3E%3Cpath%20d=%22M706.21%20564.97a141.24%20141.24%200%200%201%20121.68%20212.99l53.09%2053.09a35.31%2035.31%200%201%201-49.93%2049.93l-53.09-53.09A141.24%20141.24%200%201%201%20706.21%20564.97z%20m0%2070.62a70.62%2070.62%200%201%200%200%20141.24%2070.62%2070.62%200%200%200%200-141.24z%22%20fill=%22%23FF6F03%22/%3E%3C/svg%3E");
}

.tomshop-toolbar__item--service .tomshop-toolbar__icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201024%201024%22%3E%3Cpath%20d=%22M236%20494.3c0%2031.5%2025.5%2057.1%2057%2057.1s57.1-25.5%2057.1-57.1c0-20.4-10.9-39.2-28.5-49.4a57.1%2057.1%200%200%200-57.1%200c-17.6%2010.2-28.5%2029-28.5%2049.4z%20m0%200M452.7%20494.3c0%2031.5%2025.5%2057.1%2057.1%2057.1%2031.5%200%2057-25.5%2057-57.1%200-20.4-10.9-39.2-28.5-49.4a57.1%2057.1%200%200%200-57.1%200c-17.6%2010.2-28.5%2029-28.5%2049.4z%20m0%200M669.4%20494.3c0%2020.4%2010.9%2039.2%2028.5%2049.4a57.1%2057.1%200%200%200%2057.1%200c17.7-10.2%2028.5-29%2028.5-49.4s-10.9-39.2-28.5-49.4a57.1%2057.1%200%200%200-57.1%200c-17.6%2010.2-28.5%2029-28.5%2049.4z%20m0%200%22%20fill=%22%231f1f1f%22/%3E%3Cpath%20d=%22M512%20959.8C265.1%20959.8%2064.2%20758.9%2064.2%20512S265.1%2064.2%20512%2064.2%20959.8%20265.1%20959.8%20512c0%2089.2-9.6%20183-76.9%20267.6%202.9%208.1%207.6%2019.2%2010.8%2026.8%2016.6%2039.3%2029.7%2070.4%206.2%2092.3-18.6%2017.3-46.4%2014.6-102.5%207.3-16-2-39.2-4.9-49.6-4.9-72.5%2048.8-144.3%2058.7-235.8%2058.7z%20m0-824.9c-207.9%200-377.1%20169.2-377.1%20377.1S304.1%20889.1%20512%20889.1c82.1%200%20141.3-8.1%20200.7-49.6%2018-12.6%2043.1-10%2093.7-3.5%207%200.9%2015.7%202%2024.3%203-0.7-1.8-1.5-3.5-2.1-5-16.3-38.7-28.1-66.7-8.9-88.8%2057.6-66.2%2069.4-141.1%2069.4-233.1%200-208-169.2-377.2-377.1-377.2z%22%20fill=%22%231f1f1f%22/%3E%3C/svg%3E");
}

.tomshop-toolbar__item--contact .tomshop-toolbar__icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201070%201024%22%3E%3Cpath%20d=%22M781%20802L989%20236l-429-155-208%20566%20429%20155z%20m-182%2055a75%2075%200%200%200-45-97%2076%2076%200%200%200-97%2045c-14%2039%206%2082%2045%2097a76%2076%200%200%200%2097-45z%20m416-691a75%2075%200%200%201%2045%2097l-260%20707a77%2077%200%200%201-97%2045l-429-155a76%2076%200%200%201-45-97l260-707a77%2077%200%200%201%2097-45l429%20155zM96%20290c-27%2074-28%20156%206%20240a37%2037%200%200%201-18%2048l-1%200a38%2038%200%200%201-51-19C-10%20459-9%20357%2024%20265c33-92%2098-172%20194-223a38%2038%200%200%201%2051%2017l0%201a37%2037%200%200%201-16%2048c-79%2043-132%20108-158%20182z%20m219-71c-101%2059-141%20168-99%20274a37%2037%200%200%201-19%2047l-1%200a38%2038%200%200%201-51-20c-56-141-14-296%20132-369a38%2038%200%200%201%2051%2017c0%201%201%202%202%203a37%2037%200%200%201-14%2048z%22%20fill=%22%23FF0037%22/%3E%3C/svg%3E");
}

.tomshop-toolbar__item--back .tomshop-toolbar__icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201024%201024%22%3E%3Cpath%20d=%22M796.42%20524.48%20537.31%20265.19c-6.37-6.4-14.69-9.47-22.98-9.41-1.12-0.1-2.08-0.64-3.2-0.64-4.67%200-9.02%201.09-13.02%202.88-4.03%201.54-7.87%203.87-11.14%207.14L227.65%20524.28c-12.51%2012.48-12.54%2032.74-0.03%2045.25%206.24%206.27%2014.43%209.41%2022.66%209.41%208.19%200%2016.35-3.14%2022.62-9.34L479.14%20363.43l0%20563.71c0%2017.7%2014.34%2032%2032%2032s32-14.3%2032-32L543.14%20361.86l207.91%20207.74c6.24%206.27%2014.5%209.44%2022.69%209.44s16.32-3.1%2022.56-9.31C808.87%20557.28%20808.9%20536.99%20796.42%20524.48z%22%20fill=%22%23575B66%22/%3E%3Cpath%20d=%22M864%20192%20160%20192c-17.66%200-32-14.34-32-32S142.34%20128%20160%20128l704%200c17.7%200%2032%2014.34%2032%2032S881.7%20192%20864%20192z%22%20fill=%22%23575B66%22/%3E%3C/svg%3E");
}

.tomshop-toolbar__label {
  display: block;
  padding-bottom: 6px;
  color: #1f1f1f;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
}

/* 回顶部在桌面端与主工具栏分离，保持参考 HTML 的独立白色底座。 */
.tomshop-toolbar__item--back {
  position: absolute;
  left: 4px;
  bottom: -68px;
  margin-top: 0;
}

.tomshop-toolbar__item--back::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -5px;
  z-index: -1;
  display: block;
  width: 56px;
  height: 56px;
  border-width: 1px 0 1px 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 12px 0 0 12px;
  background: #fff;
  box-sizing: content-box;
  pointer-events: none;
}

/* LiveChat 自己写入未读数字与 data-eylc-unread-count；TomShop 只负责样式与动画。 */
.tomshop-toolbar__unread[data-eylc-unread] {
  position: absolute;
  top: -3px;
  right: 1px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-sizing: border-box;
  transform-origin: center;
}

.tomshop-toolbar__item--service.has-unread .tomshop-toolbar__unread[data-eylc-unread] {
  display: inline-flex;
  animation: tomshop-toolbar-badge-breathe 1.45s ease-in-out infinite;
}

.tomshop-toolbar__unread[data-eylc-unread][hidden] {
  display: none !important;
}

.tomshop-toolbar__item--service.is-message-arrived .tomshop-toolbar__icon {
  animation: tomshop-toolbar-icon-shake .62s cubic-bezier(.36,.07,.19,.97) both;
}

.tomshop-toolbar__item--contact.is-attention-running .tomshop-toolbar__icon {
  animation: tomshop-toolbar-contact-nudge 2.6s ease-in-out infinite;
}

@keyframes tomshop-toolbar-icon-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-3px) rotate(-3deg); }
  30% { transform: translateX(3px) rotate(3deg); }
  45% { transform: translateX(-2px) rotate(-2deg); }
  60% { transform: translateX(2px) rotate(2deg); }
  75% { transform: translateX(-1px) rotate(-1deg); }
  90% { transform: translateX(1px) rotate(1deg); }
}

@keyframes tomshop-toolbar-badge-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.18); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0); }
}

@keyframes tomshop-toolbar-contact-nudge {
  0%, 18%, 100% { transform: translateX(0) rotate(0); }
  4% { transform: translateX(-1px) rotate(-7deg); }
  8% { transform: translateX(2px) rotate(7deg); }
  12% { transform: translateX(-2px) rotate(-6deg); }
  16% { transform: translateX(1px) rotate(4deg); }
}

@media screen and (max-width: 1399px) and (min-width: 769px) {
  .tomshop-toolbar {
    width: 40px;
  }
  .tomshop-toolbar__item {
    width: 32px;
    height: 32px;
  }
  .tomshop-toolbar__icon {
    height: 32px;
    margin-left: 4px;
    padding-top: 0;
  }
  .tomshop-toolbar__label {
    display: none;
  }
  .tomshop-toolbar__item--back {
    bottom: -42px;
  }
  .tomshop-toolbar__item--back::before {
    width: 40px;
    height: 40px;
    background: #fff;
  }
  .tomshop-toolbar__unread[data-eylc-unread] {
    top: -6px;
    right: -5px;
  }
  @supports (width: fit-content) {
    .tomshop-toolbar__item[data-label]:hover::after {
      content: attr(data-label);
      position: absolute;
      top: 50%;
      right: 46px;
      display: block;
      width: fit-content;
      padding: 5px 12px;
      border-radius: 8px;
      background: #1f1f1f;
      color: #fff;
      font-size: 14px;
      line-height: 22px;
      white-space: nowrap;
      box-sizing: content-box;
      transform: translateY(-50%);
      pointer-events: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .tomshop-toolbar__item--service.is-message-arrived .tomshop-toolbar__icon,
  .tomshop-toolbar__item--service.has-unread .tomshop-toolbar__unread[data-eylc-unread],
  .tomshop-toolbar__item--contact.is-attention-running .tomshop-toolbar__icon {
    animation: none;
  }
}

@media (max-width: 1023px) {
  body.ts-with-theme .tomshop-theme-main {
    padding-top: var(--tomshop-fixed-top-offset, 0px);
  }
  body.ts-with-theme .neo-tomshop-main {
    padding-top: var(--tomshop-fixed-top-offset, 4rem) !important;
  }
}

@media (max-width: 768px) {
  body.tomshop-query-entry-mobile-space { padding-bottom: 0 !important; }

  body.tomshop-query-entry-mobile-space .tomshop-theme-body,
  body.tomshop-query-entry-mobile-space .neo-site-body,
  body.tomshop-query-entry-mobile-space .tomshop-theme-main:not(.neo-main) {
    padding-bottom: var(--tomshop-query-entry-bottom-space, calc(66px + env(safe-area-inset-bottom, 0px))) !important;
  }

  /* v1.67：手机端工具栏恢复为底部固定四等分；这属于工具栏响应式布局，与联系弹窗完全独立。 */
  .tomshop-toolbar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--tomshop-mobile-query-bar-height, 58px);
    height: calc(var(--tomshop-mobile-query-bar-height, 58px) + constant(safe-area-inset-bottom));
    height: calc(var(--tomshop-mobile-query-bar-height, 58px) + env(safe-area-inset-bottom, 0px));
    padding: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border: 0;
    border-radius: 0;
    background: var(--tomshop-mobile-query-safe-bg, #fbfbfc);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.055);
    -webkit-transform: none;
    transform: none;
    box-sizing: border-box;
  }

  .tomshop-toolbar__list {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: var(--tomshop-mobile-query-bar-height, 58px);
    padding: 0;
  }

  .tomshop-toolbar__item,
  .tomshop-toolbar__item:first-child,
  .tomshop-toolbar__item--back {
    position: relative;
    left: auto;
    bottom: auto;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 4px 6px 3px;
    border-radius: 0;
    background: transparent;
    color: #1f1f1f !important;
  }

  .tomshop-toolbar__item--back::before {
    display: none;
    content: none;
  }

  .tomshop-toolbar__item:hover,
  .tomshop-toolbar__item:focus,
  .tomshop-toolbar__item:active {
    border-radius: 0;
    background: rgba(0, 0, 0, 0.035);
  }

  .tomshop-toolbar__icon {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    flex: 0 0 24px;
  }

  .tomshop-toolbar__label {
    display: block;
    padding: 2px 0 0;
    color: #34383f;
    font-size: 11px;
    font-weight: 400;
    line-height: 15px;
  }

  .tomshop-toolbar__unread[data-eylc-unread] {
    top: 5px;
    right: auto;
    left: 50%;
    margin-left: 7px;
    border-color: var(--tomshop-mobile-query-safe-bg, #fbfbfc);
  }
}

/* TomShop toolbar entry end */

/* TomShop v0.500 商品按钮静态状态：静态页生成时已输出最终 mode，前台不再 AJAX 切换。 */
[data-tomshop-buy]{cursor:pointer;}
.tomshop-buy-entry{background:var(--ts-primary,#ff3f5f);font-family:inherit;font-size:inherit;}
.tomshop-buy-entry:hover{background:var(--ts-primary-strong,#e73553);}
[data-tomshop-buy].tomshop-buy-mode-contact{background:#14b8a6;}
[data-tomshop-buy].tomshop-buy-mode-contact:hover{background:#0f9f90;}
[data-tomshop-buy].tomshop-buy-mode-soldout{background:#9ca3af;cursor:pointer;pointer-events:auto;opacity:.88;}
[data-tomshop-buy].is-disabled{background:#9ca3af!important;cursor:not-allowed;pointer-events:auto;opacity:.88;}
[data-tomshop-buy].tomshop-buy-mode-soldout:hover,[data-tomshop-buy].is-disabled:hover{background:#9ca3af!important;}
/* TomShop static bridge end */

/* ProductAnalysis Theme Integration:CSS:start */
.pa-theme-entry{margin:.55rem 0 .45rem}
.pa-theme-entry-button{width:100%;min-height:50px;display:flex;align-items:center;gap:11px;padding:9px 13px;border:1px solid #e1e6eb;border-radius:8px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}
.pa-theme-entry-button:hover{border-color:#ff8b23;background:#fffaf6;box-shadow:0 3px 12px rgba(52,60,68,.05)}
.pa-theme-entry-icon{width:26px;height:29px;display:grid;place-items:center;flex:0 0 26px;color:#ff7d12}
.pa-theme-entry-icon svg{width:20px;height:20px;fill:currentColor}
.pa-theme-entry-copy{display:flex;min-width:0;flex:1;flex-direction:column;line-height:1.28}
.pa-theme-entry-copy strong{color:inherit;font-size:14px;font-weight:500}
.pa-theme-entry-copy small{margin-top:3px;color:#7d8996;font-size:11px;font-weight:400}
.pa-theme-entry-arrow{flex:0 0 auto;color:#9ba7b3;font-size:23px;line-height:1}
.pa-theme-entry-frame{position:fixed;inset:0;z-index:2147481900;background:rgba(2,7,15,.72);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.pa-theme-entry-frame iframe{display:block;width:100%;height:100%;border:0;background:transparent}
html.pa-theme-entry-lock,body.pa-theme-entry-lock{overflow:hidden!important;overscroll-behavior:none}
@media(max-width:680px){.pa-theme-entry{margin:.5rem 0 .4rem}.pa-theme-entry-button{min-height:48px;padding:8px 11px;border-radius:7px}.pa-theme-entry-copy strong{font-size:13px}.pa-theme-entry-copy small{font-size:10px}}
/* ProductAnalysis Theme Integration:CSS:end */