/*
 * Neo EyouCMS Template Styles
 * 普通 CSS 组件化版本：无 Tailwind 生成层、无压缩、保留可读结构。
 */

:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent: #ff7800;
  --accent-strong: #e06900;
  --border: rgba(15, 23, 42, 0.08);
  --panel-bg: #ffffff;
  --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: 280px;
  --nav-soft: #f5f5f5;
  --nav-soft-hover: #eeeeee;
  --nav-border: rgba(15, 23, 42, 0.08);
  --nav-muted: #191919;
  --nav-current-text: #111111;
  --neo-real-vh: 100vh;
  --ts-real-vh: var(--neo-real-vh);
  /* 视频预览层级；联系客服弹窗在本主题 style.css 中使用更高层级。 */
  --tomshop-layer-preview: 2147483000;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  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;
  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;
  }
}

body,
button,
input,
textarea,
select {
  font-family: inherit;
}

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

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

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

@media (max-width: 768px) {
  input,
  textarea,
  select {
    /* TomShop v0.444：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,
strong,
b {
  font-weight: 500;
}

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);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.neo-topbar-button:hover,
.sidebar-close-button:hover {
  background: var(--border);
}

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

.neo-mobile-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.neo-mobile-brand-logo {
  display: block;
  width: auto;
  height: 2.35rem;
  max-width: 10.5rem;
  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;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
}

.neo-sidebar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.neo-sidebar-brand-logo {
  display: block;
  width: auto;
  height: 3rem;
  max-width: 12rem;
  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: 1.35rem;
  padding: 0 0.35rem 1.2rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #e2e2e2 #ffffff;
}

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

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

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

.neo-sidebar > .neo-sidebar-nav:hover::-webkit-scrollbar-thumb {
  background-color: #d8d8d8;
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-button:vertical {
  display: block;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-button:vertical:start:decrement {
  background-image: var(--neo-sidebar-scrollbar-triangle-up);
}

.neo-sidebar > .neo-sidebar-nav::-webkit-scrollbar-button:vertical:end:increment {
  background-image: var(--neo-sidebar-scrollbar-triangle-down);
}

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

.sidebar-submenu {
  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.85rem;
  min-height: 3.15rem;
  padding: 0.78rem 1.4rem;
  border: 0;
  border-radius: 0;
}

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

.sidebar-link:hover {
  color: var(--text-primary);
  background: transparent;
}

.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:hover .neo-icon,
.sidebar-link:hover .sidebar-label,
.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;
}

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

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

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

.sidebar-sub-link:hover {
  color: var(--text-primary);
  background: transparent;
}

.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;
  }

  /* TomShop v0.476：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;
  }

  .neo-sidebar {
    top: 4rem;
    height: calc(100vh - 4rem);
    height: calc(var(--neo-real-vh, 100vh) - 4rem);
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .neo-sidebar-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .neo-mobile-backdrop {
    touch-action: none;
  }

  .neo-sidebar-head {
    display: none;
  }
}

/* Search */
.neo-global-search-form {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  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;
}

.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 {
    /* TomShop v0.444：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: min(640px, calc(100vh - 72px));
  min-height: 420px;
  background: #000;
  isolation: isolate;
}

.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;
}

.neo-home-carousel .neo-carousel-image {
  transform: translateZ(0);
  transition: transform 6s ease;
}

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

.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;
}

.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-home-carousel {
    height: 56vw;
    min-height: 260px;
    max-height: 520px;
  }

  .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;
}

.neo-feature-card:hover {
  border-color: rgba(255, 120, 0, 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(255, 120, 0, 0.1);
  color: var(--accent);
  transition: transform 0.25s ease;
}

.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;
}

/* TomShop v0.446：搜索结果页标题独占一行，工具条复用商品列表页结构；不要再把标题、布局按钮、新窗口开关塞进同一个 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;
}

.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(255, 120, 0, 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);
  /* TomShop v1.04：商品/文章列表工具条里的“新窗口”开关外框改为全圆胶囊；半径跟随当前高度的一半，不使用 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;
}

.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;
}

.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;
  }

  /* TomShop v0.453：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.45rem;
    row-gap: 0;
    padding: 0.42rem;
    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.68rem;
    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(255, 120, 0, 0.18);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
  }
}

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

.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: var(--radius-card);
  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;
}

.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;
}

.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 {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  background: var(--bg-secondary);
  color: #f43f5e;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.neo-favorite:hover {
  transform: scale(1.04);
}

.neo-favorite:active {
  transform: scale(0.95);
}

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

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

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

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

.neo-heart-outline {
  transition: transform 0.25s ease;
}

.neo-favorite:hover .neo-heart-outline {
  transform: scale(1.1);
}

/* TomShop v0.463：收藏按钮取消灰色“取消收藏”悬停态，仅保留红色空心/实心爱心。 */
.neo-heart-filled {
  color: #f43f5e;
}

.neo-heart-broken {
  display: none !important;
}

.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;
}

.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) {
  /* TomShop v0.453：小屏或 Firefox Android 字体偏大时继续压缩工具条，不回退到大面积换行胶囊。 */
  .neo-catalog-center-panel,
  .neo-article-center-panel,
  .neo-favorites-center-panel {
    max-width: calc(100vw - 1rem);
    column-gap: 0.32rem;
    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-product-card {
    border-radius: var(--radius-card);
  }

  .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.75rem;
  }

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

  .neo-product-card {
    border-radius: var(--radius-card);
  }

  .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-product-grid.is-mobile-one-col .neo-product-title {
    font-size: 1rem;
  }

  .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 {
    width: 2.5rem;
    height: 2.5rem;
  }

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

  .neo-catalog-center-panel,
  .neo-article-center-panel,
  .neo-favorites-center-panel {
    gap: 0.5rem;
    padding: 0.45rem;
  }

  .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;
}

.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;
}

.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 (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-card:hover .neo-article-image img {
    transform: scale(1.04);
  }

  .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-card:hover .neo-article-image img {
    transform: scale(1.04);
  }

  .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;
}

/* 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(255, 120, 0, 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;
}

.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-pagination ul,
.neo-pagination ol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.neo-pagination {
  margin-top: 2rem;
}

.neo-pagination ul,
.neo-pagination ol {
  margin: 0;
  padding: 0;
}

.neo-pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

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

.neo-pagination a,
.neo-pagination span,
.neo-pagination em,
.neo-pagination strong,
.neo-pagination b,
.neo-pagination button {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.neo-pagination a:hover,
.neo-pagination button:hover {
  color: var(--accent);
  border-color: rgba(255, 120, 0, 0.32);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-secondary));
}

.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,
.neo-pagination em,
.neo-pagination strong,
.neo-pagination b {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.neo-page-btn-icon,
.neo-page-btn-edge {
  font-size: 0;
}

.neo-page-btn-icon .neo-icon,
.neo-page-btn-edge {
  font-size: 0.875rem;
}

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

/* 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 h3 {
  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: 124px;
  }

  .banner-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
  }

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

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

/* Product detail */
.neo-product-detail-shell {
  width: min(1280px, calc(100% - 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.65rem;
  background: var(--bg-secondary);
}

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

.neo-detail-play-button {
  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-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.neo-detail-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 0.45rem;
  background: var(--bg-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.neo-detail-thumb.is-active {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.neo-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.neo-detail-thumb:hover img {
  transform: scale(1.05);
}

.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 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.neo-product-detail-price {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 400;
}

.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: 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 {
  display: flex;
  gap: 0;
}

.neo-product-actions > .neo-favorite {
  margin-left: 1rem;
}

.neo-buy-button {
  position: relative;
  flex: 1 1 auto;
  height: 3.5rem;
  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;
}

.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;
}

.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 rgba(15, 23, 42, 0.08);
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.neo-product-detail-tabbar {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.neo-product-detail-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 0.25rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

.neo-product-detail-tab.is-active::before {
  display: none;
  content: none;
}

.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 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-hot-sidebar {
  width: 100%;
  min-width: 0;
  background: transparent;
}

.neo-product-hot-panel {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.neo-product-hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  margin-bottom: 0;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

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

.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.35rem;
  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.28rem;
  background: #ffffff;
}

.neo-product-rank-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0.28rem;
  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;
}

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

.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);
}

.neo-product-neighbor-card.neo-product-rank-card:hover {
  border-color: rgba(255, 120, 0, 0.24);
  box-shadow: 0 8px 18px rgba(255, 120, 0, 0.08);
}

.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;
}

.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 {
  width: 2rem;
  height: 2rem;
  background: #ffffff;
}

.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-back-list {
  grid-column: 2;
}

.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;
}

/* v0.492：上下个商品卡片不用 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;
}

.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.35rem;
  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.88rem;
  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;
}

.neo-product-neighbor-card:hover .neo-product-neighbor-title {
  color: #0f172a;
}

.neo-product-back-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 5.35rem;
  padding: 0.62rem;
  border: 1px solid rgba(255, 120, 0, 0.12);
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(255, 120, 0, 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:hover,
.neo-product-back-list:focus-visible {
  border-color: rgba(255, 120, 0, 0.28);
  background: rgba(255, 120, 0, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 120, 0, 0.08);
}

.neo-product-back-list:focus-visible {
  outline: 2px solid rgba(255, 120, 0, 0.26);
  outline-offset: 2px;
}

.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(255, 120, 0, 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,
body[data-page="product"] .neo-product-detail-prose h1,
body[data-page="product"] .neo-product-detail-prose h2,
body[data-page="product"] .neo-product-detail-prose h3,
body[data-page="product"] .neo-product-detail-prose h4,
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 strong,
body[data-page="product"] .neo-detail-rich-content b {
  font-weight: 400;
  letter-spacing: 0;
}

@media (min-width: 640px) {
  .neo-detail-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

}

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

  .neo-product-detail-layout {
    flex-direction: row;
    gap: 2.5rem;
  }

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

  .neo-product-info-panel {
    flex: 1 1 auto;
  }

}

@media (min-width: 1280px) {
  .neo-detail-gallery {
    width: 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);
  }

  .neo-product-detail-layout {
    order: 1;
  }

  .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 {
    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: 2.75rem;
    padding: 0 0.75rem;
  }

  .neo-product-detail-tab {
    height: 2.75rem;
    font-size: 0.95rem;
  }

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

  .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-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 {
    width: 1.95rem;
    height: 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 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 400;
}

.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;
}

.neo-article-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.neo-article-share-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  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-article-share-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.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 2.4rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 120, 0, 0.2);
  border-radius: 0.55rem;
  background: rgba(255, 120, 0, 0.045);
  box-shadow: 0 1px 3px rgba(255, 138, 31, 0.08);
}

.neo-article-guide-title {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.neo-article-guide-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.neo-article-guide-list li {
  color: var(--text-secondary);
  line-height: 1.55;
}

.neo-article-guide-list li.is-h3 {
  margin-left: 1rem;
}

.neo-article-guide-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.neo-article-guide-list a:hover,
.neo-article-guide-list a:focus-visible {
  color: var(--accent);
}

.neo-article-rich-content {
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.025em;
}

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

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

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

.neo-article-rich-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.55rem;
}

.neo-article-rich-content th,
.neo-article-rich-content td {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.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);
}

.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;
}

.neo-article-content-tags a:hover {
  color: var(--accent);
  border-color: rgba(255, 120, 0, 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.35rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.neo-article-neighbor-card:hover,
.neo-article-neighbor-card:focus-visible {
  border-color: rgba(255, 120, 0, 0.24);
  box-shadow: 0 8px 18px rgba(255, 120, 0, 0.08);
}

.neo-article-neighbor-card:focus-visible {
  outline: 2px solid rgba(255, 120, 0, 0.26);
  outline-offset: 2px;
}

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

.neo-article-back-list {
  grid-column: 2;
}

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

/* v0.492：文章详情上下篇卡片同步使用显式列位，避免 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: 1;
  overflow: hidden;
  border-radius: 0.28rem;
  background: #f8fafc;
}

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

.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(255, 120, 0, 0.72);
  background: rgba(255, 120, 0, 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.35rem;
  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;
}

.neo-article-neighbor-card:hover .neo-article-neighbor-title {
  color: #0f172a;
}

.neo-article-back-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.35rem;
  padding: 0.62rem;
  border: 1px solid rgba(255, 120, 0, 0.12);
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(255, 120, 0, 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:hover,
.neo-article-back-list:focus-visible {
  border-color: rgba(255, 120, 0, 0.28);
  background: rgba(255, 120, 0, 0.06);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 120, 0, 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(255, 120, 0, 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;
}

.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-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-article-share-feedback {
    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 {
    margin-bottom: 1.7rem;
    padding: 0.9rem 1rem;
  }

  .neo-article-guide-title {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }

  .neo-article-guide-list {
    gap: 0.38rem;
    padding-left: 1rem;
    font-size: 0.9rem;
  }

  .neo-article-guide-list li.is-h3 {
    margin-left: 0.6rem;
  }

  .neo-article-rich-content {
    font-size: 1rem;
  }

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

  .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;
  }

  .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;
  }
}

/* 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;
  /* TomShop v0.453：预览弹窗主规则先定义最高层级，文件末尾兼容层会再次兜底，避免后续规则覆盖。 */
  z-index: var(--tomshop-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(1120px, 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) 232px;
  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 {
  width: 100%;
  height: 100%;
  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;
  /* TomShop v0.500：预览窗右上角关闭按钮是绝对定位，标题区必须避让且允许完整换行，不能再被按钮遮挡或行数截断。 */
  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-actions > .neo-favorite {
  margin-left: 0.55rem;
}

.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;
}

.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.75rem;
  right: 0.75rem;
  z-index: 20;
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: background 0.18s ease, transform 0.18s ease;
}

.neo-preview-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.neo-preview-close:active {
  transform: scale(0.94);
}
@media (max-width: 767px) {
  .neo-preview-modal {
    /* v0.374：移动端商品视频预览外层按真实可视窗口铺满；浏览器返回键优先关闭预览，不直接后退页面。 */
    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: 100%;
    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-close {
    top: 0.55rem;
    right: 0.55rem;
    top: max(0.55rem, env(safe-area-inset-top));
    right: max(0.55rem, env(safe-area-inset-right));
    width: 2rem;
    height: 2rem;
  }
}

/* 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 {
  display: block;
  width: auto;
  height: 2.6rem;
  max-width: 100%;
  object-fit: contain;
}

.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,
.neo-footer-contact-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-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;
}

.neo-footer-link:hover {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.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;
}

.neo-footer-tag-link:hover {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.neo-footer-tag-link:hover > .neo-icon {
  opacity: 1;
  transform: translateX(2px);
}

.neo-footer-friend-links {
  padding: 0.86rem;
  border: 1px solid var(--border);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.32);
}

.neo-footer-friend-title {
  margin-bottom: 0.58rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 500;
}

.neo-footer-friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.72rem;
}

.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;
}

.neo-footer-friend-list a:hover {
  color: var(--accent);
}

.neo-footer-contact-list {
  display: grid;
  gap: 0.75rem;
}

.neo-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.32rem;
  background: rgba(255, 255, 255, 0.62);
}

a.neo-footer-contact-item {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.neo-footer-contact-item:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}

.neo-footer-contact-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-contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.neo-footer-contact-text small,
.neo-footer-qr-copy small {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 400;
}

.neo-footer-contact-value,
.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-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-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;
}

.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.5rem;
  }

  .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: 1.4rem;
    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-page-breadcrumb a:hover,
.neo-breadcrumb-current {
  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(255, 120, 0, 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);
}

.neo-tag-card:hover {
  color: var(--accent);
  border-color: rgba(255, 120, 0, 0.28);
  background: rgba(255, 120, 0, 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;
}

.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;
}

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;
}

@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;
  }
}

body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button {
  padding: 0;
  line-height: 0;
}

body[data-page="product"] .neo-product-rank-media-wrap .neo-catalog-play-button .neo-icon {
  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 .neo-icon {
    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 {
    --neo-icon-size: 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
    display: block;
    flex: 0 0 auto;
    margin: 0;
  }
}

/* TomShop 订单流程入口 */
.neo-product-actions .neo-buy-button,
.neo-preview-actions .neo-preview-buy {
  text-decoration: none;
}

/* v0.152 banner.htm 移动端通用间距：banner 页面由 banner 自己避开固定头部，main 不再额外顶开。 */
@media (max-width: 767px) {
  .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: 1rem;
  }
}


/* TomShop v0.444：iPhone/Safari 统一兼容层。集中处理旧 iOS 的 flex gap、inset、aspect-ratio、真实视口和遮罩层级，禁止继续在文件末尾追加零散补丁。 */
.neo-preview-modal,
.neo-preview-backdrop,
.neo-home-carousel-slide,
.neo-carousel-slide,
.neo-carousel-image {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* TomShop v0.453：v0.452 只改了前面的 .neo-preview-modal 层级，但这里的文件末尾兼容层把它覆盖成 120，导致实际没有生效；最终层级必须在这里兜住。 */
.neo-preview-modal {
  z-index: var(--tomshop-layer-preview, 2147483000);
}

.neo-sidebar-head {
  background: #ffffff;
}

.neo-product-service-item,
.neo-global-search-form,
.neo-category-pill.is-active,
.neo-search-page .neo-banner-breadcrumb {
  background-color: #ffffff;
}

/* TomShop v0.447：商品详情页图标与文字间距从根源改为相邻元素 margin，不能再依赖 flex gap；旧 iOS/Safari 即使不支持 flex gap，日期、服务卡片和购买按钮也不会贴在一起。 */
/* TomShop v0.455：商品卡片、详情操作区、视频预览操作区和热门排行榜已在各自原始规则中改成 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: 1023px) {
  /* TomShop v0.449：移动端侧边导航层级必须高于 TomShop 注入的底部固定入口，避免菜单打开后底栏盖在导航上。 */
  .neo-mobile-topbar {
    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;
  }

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

  .neo-sidebar {
    top: 4rem;
    z-index: 10020;
    height: calc(100vh - 4rem);
    height: calc(var(--neo-real-vh, 100vh) - 4rem);
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .neo-sidebar-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .neo-mobile-backdrop {
    touch-action: none;
  }

  .neo-sidebar-head {
    display: none;
  }
}

@media (max-width: 767px) {
  .channel-banner {
    height: 150px;
  }

  .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;
  }

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

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

  .neo-product-detail-shell {
    width: calc(100% - 0.75rem);
    padding-top: 0.85rem;
  }

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

  .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-thumbs {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    -webkit-overflow-scrolling: touch;
  }

  .neo-detail-thumb {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    min-width: 4.5rem;
    height: 4.5rem;
    min-height: 4.5rem;
    padding-top: 0;
    aspect-ratio: auto;
    box-sizing: border-box;
  }

  .neo-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .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: 0.7rem;
  }

  .neo-buy-button {
    height: 3.35rem;
  }
}

@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-product-rank-media-wrap > .neo-product-rank-media,
  .neo-product-rank-media-wrap img,
  .neo-article-neighbor-media > 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-detail-thumb > 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-contact-item,
.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-contact-icon,
.neo-no-flex-gap .neo-footer-qr-title .neo-icon,
.neo-no-flex-gap .neo-footer-record-icon {
  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 > *,
  .neo-no-flex-gap .neo-detail-thumbs > * {
    margin: 0.22rem;
  }
}

@media (max-width: 760px) {
  .neo-footer {
    margin-top: 1.1rem;
  }

  .neo-footer-bottom {
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }

  .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 v0.453：移动端工具条最终兜底放在文件末尾，避免前面通用 mobile card 规则覆盖小屏压缩值。 */
@media (max-width: 360px) {
  .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);
  }
}

.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 img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.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;
  font-family: inherit;
  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:hover,
.tomshop-query-contact-modal__action:focus,
.tomshop-query-contact-modal__action:active {
  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 img {
    width: min(100%, 220px);
    max-height: 220px;
  }
  .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; }
}
