/* ==========================================================================
   宜宇 · 2026 新增模块样式
   消息中心 / 私信 / 小红书式个人主页 / 热点地图
   与主设计系统同源，全部走 CSS 变量，天然支持暗色
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 消息中心 —— 双 Tab
   -------------------------------------------------------------------------- */
.ms-tabs {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: 0 var(--sp-4);
  height: 46px;
  position: sticky;
  /* 20260924p0：原 top:0 会被吸顶的站点顶栏盖住，停到顶栏下面 */
  top: calc(var(--hd-h, 54px) + var(--safe-top, 0px));
  z-index: var(--z-sticky);
  background: var(--bg-base);
  border-bottom: 1px solid var(--line);
}

.ms-tabs__i {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 46px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-third);
  transition: color .18s var(--ease-out);
}

.ms-tabs__i.is-on {
  color: var(--text-primary);
}

.ms-tabs__i.is-on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 2.5px;
  margin-left: -10px;
  border-radius: var(--r-full);
  background: var(--brand-500);
}

.ms-tabs__n {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--accent-xhs);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   2. 私信会话列表
   -------------------------------------------------------------------------- */
.ms-th {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  transition: background .14s var(--ease-out);
}

.ms-th:active {
  background: var(--bg-raise-2);
}

.ms-th__ava {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
}

.ms-th__dot {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--accent-xhs);
  border: 2px solid var(--bg-base);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 13px;
  text-align: center;
}

.ms-th__c {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.ms-th__top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.ms-th__nm {
  flex: 1 1 auto;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-th__tm {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  color: var(--text-third);
}

.ms-th__last {
  font-size: var(--fs-sm);
  color: var(--text-third);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-th__last.is-unread {
  color: var(--text-second);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. 通知列表
   -------------------------------------------------------------------------- */
.ms-note {
  display: flex;
  flex-direction: column;
}

.ms-note__i {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  transition: background .14s var(--ease-out);
}

.ms-note__i:active {
  background: var(--bg-raise-2);
}

.ms-note__i.is-unread {
  background: var(--grad-brand-soft);
}

.ms-note__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  color: var(--brand-600);
  background: var(--brand-50);
}

.ms-note__ico--system {
  color: var(--accent-gold);
  background: rgba(245,166,35,.12);
}

.ms-note__c {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ms-note__txt {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.55;
}

.ms-note__tm {
  font-size: var(--fs-xs);
  color: var(--text-third);
}

.ms-note__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: var(--r-full);
  background: var(--accent-xhs);
}

/* --------------------------------------------------------------------------
   4. 私信对话页
   -------------------------------------------------------------------------- */
.ct-wrap {
  padding: var(--sp-3) var(--sp-4) calc(72px + var(--safe-bot));
  min-height: calc(100vh - var(--hd-h) - var(--tb-h));
}

.ct-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ct-day {
  display: flex;
  justify-content: center;
  padding: var(--sp-2) 0;
}

.ct-day span {
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--text-third);
  font-size: var(--fs-xs);
}

.ct-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  max-width: 82%;
}

.ct-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ct-bubble {
  padding: 9px var(--sp-3);
  border-radius: var(--r-md);
  border-top-left-radius: 5px;
  background: var(--bg-raise);
  color: var(--text-primary);
  font-size: var(--fs-md);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: var(--sh-1);
}

.ct-msg.is-mine .ct-bubble {
  border-top-left-radius: var(--r-md);
  border-top-right-radius: 5px;
  background: var(--grad-brand);
  color: var(--text-invert);
  box-shadow: var(--sh-brand);
}

.ct-empty {
  padding: 16vh var(--sp-4);
  text-align: center;
}

.ct-empty__t {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-second);
}

.ct-empty__d {
  margin-top: 5px;
  font-size: var(--fs-sm);
  color: var(--text-third);
}

/* 聊天输入条：同样必须停在底部导航之上，
   原 z-index:var(--z-sticky)=20 低于导航 60，整条输入框被盖住。 */
.ct-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tb-h) + var(--safe-bot));
  z-index: calc(var(--z-hd) + 1);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}

.ct-bar__form {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  max-width: var(--page-max);
  margin: 0 auto;
}

.ct-bar__in {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 108px;
  padding: 9px var(--sp-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color .16s var(--ease-out);
}

.ct-bar__in:focus {
  border-color: var(--brand-400);
}

.ct-bar__in::placeholder {
  color: var(--text-third);
}

.ct-bar__send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--text-invert);
  box-shadow: var(--sh-brand);
  cursor: pointer;
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out);
}

.ct-bar__send:disabled {
  opacity: .4;
  box-shadow: none;
  cursor: default;
}

.ct-bar__send:not(:disabled):active {
  transform: scale(.92);
}

/* --------------------------------------------------------------------------
   5. 小红书式个人主页
   -------------------------------------------------------------------------- */
.pf {
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--bg-raise);
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}

.pf__top {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.pf__ava {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--bg-raise);
  box-shadow: var(--sh-2);
}

.pf__ava--txt {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.pf__act {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pf__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 var(--sp-4);
  border: none;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--text-invert);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: inherit;
  box-shadow: var(--sh-brand);
  cursor: pointer;
  transition: transform .16s var(--ease-out), opacity .16s var(--ease-out);
}

.pf__btn:active {
  transform: scale(.95);
}

.pf__btn.is-on {
  background: var(--bg-sunken);
  color: var(--text-second);
  box-shadow: none;
}

.pf__btn--line {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-2);
  box-shadow: none;
}

.pf__name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.pf__badge {
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--grad-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.pf__meta {
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--text-third);
}

.pf__nums {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-4);
}

.pf__num {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.pf__num b {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pf__num span {
  font-size: var(--fs-xs);
  color: var(--text-third);
}

.pf__chips {
  display: flex; align-items: center;
  /* 20260922ld3：改回单行。up1 的 flex-wrap 让「活动」折到第二行（用户要求一行）。
     单行 + 溢出横滑（与 .yq-seg 同一套机制）；u.vue 的容器已加 data-hscroll
     登记 gesture.js 白名单，横滑不会误触切 tab 手势。 */
  flex-wrap: nowrap;
  gap: var(--sp-2);
  /* 20260922sp1：底间距 0→12px。原先筛选行和下方图文卡片贴死（用户反馈没缝隙） */
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-x;
}
.pf__chips::-webkit-scrollbar { width: 0; height: 0; display: none; }
.pf__chips > * { flex: 0 0 auto; scroll-snap-align: start; }
.pf__chip { white-space: nowrap; }

.pf__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--text-second);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.pf__chip.is-on {
  background: var(--grad-brand-soft);
  color: var(--brand-700);
}

[data-theme="dark"] .pf__chip.is-on {
  color: var(--brand-300);
}

/* --------------------------------------------------------------------------
   6. 热点地图
   -------------------------------------------------------------------------- */
.mp {
  position: relative;
  height: calc(100vh - var(--hd-h) - var(--tb-h) - var(--safe-bot));
  overflow: hidden;
  /* 抽屉高度必须在这里定义：.mp__ctrls 的 bottom 要用它做偏移
     （calc 里引用未定义的变量会让整条声明失效，控件会掉到画布顶部）。 */
  --mp-sheet-h: 54%;
}

.mp__canvas {
  position: absolute;
  inset: 0;
  background: var(--bg-sunken);
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}

.mp__canvas.is-grab {
  cursor: grabbing;
}

/* 真实瓦片底图（Canvas 拼接） */
.mp__tiles {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* 缩放 / 图层控件 —— 与定位按钮同属一条控件列 .mp__ctrls，
   由该列统一负责定位，子元素一律 static，杜绝互相盖压。 */
.mp__ctrls {
  position: absolute;
  right: var(--sp-4);
  bottom: calc(var(--mp-sheet-h) + var(--sp-3));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.mp__zoom {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-3);
}

.mp__zoom button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border: none;
  background: var(--bg-raise);
  color: var(--text-second);
  cursor: pointer;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}

.mp__zoom button:hover {
  background: var(--bg-sunken);
  color: var(--brand-600);
}

.mp__zoom button:active {
  transform: scale(.94);
}

.mp__zoom button.is-on {
  background: var(--grad-brand-soft);
  color: var(--brand-700);
}

[data-theme="dark"] .mp__zoom button.is-on {
  color: var(--brand-300);
}

/* 搜索条 */
.mp__search {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 42px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-raise);
  box-shadow: var(--sh-3);
}

.mp__search svg {
  flex: 0 0 auto;
  color: var(--text-third);
}

.mp__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-family: inherit;
}

.mp__search input::placeholder {
  color: var(--text-third);
}

/* 定位按钮 —— 与缩放控件同列、位于其**下方**，两者间距 10px，绝不重叠。
   定位一律由父级 .mp__ctrls 统一排布，自身 static，不再各自绝对定位。 */
.mp__loc {
  position: static;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--r-full);
  background: var(--bg-raise);
  color: var(--brand-600);
  box-shadow: var(--sh-3);
  cursor: pointer;
  transition: transform .16s var(--ease-out);
}

/* 抽屉头部的圆形图标按钮：与地图上的定位按钮区分开，
   两者不再共用 .mp__loc，避免绝对定位样式串味。 */
.mp__iconbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border-1);
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--text-second);
  cursor: pointer;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.mp__iconbtn:active { transform: scale(.94); }
.mp__iconbtn.is-on {
  background: var(--grad-brand-soft);
  color: var(--brand-700);
  border-color: transparent;
}

.mp__loc:active {
  transform: scale(.92);
}

/* 首次进入、尚未授权定位时轻微脉冲，提示可点 */
.mp__loc.is-hint {
  animation: mp-pulse 2.4s var(--ease-in-out) infinite;
}

@keyframes mp-pulse {
  0%, 100% { box-shadow: var(--sh-3); }
  50%      { box-shadow: 0 0 0 8px rgba(31,190,102,.18), var(--sh-3); }
}

.mp__loc.is-loading svg {
  animation: mp-spin 1s linear infinite;
}

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

/* 我的位置光点 */
.mp__me {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(31,190,102,.22);
}

.mp__me::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-full);
  border: 2px solid var(--brand-400);
  animation: mp-pulse 2.2s var(--ease-out) infinite;
}

@keyframes mp-pulse {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* 地图标记（真实瓦片版） */
.mp__mk {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  transition: transform .18s var(--ease-out);
}

.mp__mk.is-on {
  z-index: 9;
  transform: translate(-50%, -100%) scale(1.12);
}

.mp__mk__pin {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23,33,27,.28);
  cursor: pointer;
  transition: transform .14s var(--ease-out);
}

.mp__mk--ev .mp__mk__pin {
  background: linear-gradient(135deg, #f8a63c, #ee7a1f);
}

.mp__mk__pin:active {
  transform: scale(.9);
}

.mp__mk.is-on .mp__mk__pin {
  box-shadow: 0 0 0 4px rgba(31,190,102,.28), 0 2px 10px rgba(23,33,27,.3);
}

.mp__mk__ico {
  display: grid;
  place-items: center;
  color: #fff;
}

.mp__mk__t {
  pointer-events: none;
  max-width: 128px;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: rgba(255,255,255,.94);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 5px rgba(23,33,27,.2), 0 0 0 1px rgba(0,0,0,.03);
}

[data-theme="dark"] .mp__mk__t {
  background: rgba(28,36,31,.9);
  color: var(--text-primary);
}

.mp__mk.is-on .mp__mk__t {
  background: var(--key, var(--brand-600));
  color: #fff;
}

/* 聚合气泡（多点合并） */
.mp__mk--cluster {
  transform: translate(-50%, -50%);
}

.mp__mk--cluster.is-on {
  transform: translate(-50%, -50%) scale(1.1);
}

.mp__mk__pin--c {
  border-width: 3px;
  background: rgba(31,190,102,.92);
  backdrop-filter: blur(2px);
}

.mp__mk__c {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* 底部抽屉：附近活动 */
.mp__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-height: var(--mp-sheet-h, 54%);
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  box-shadow: 0 -6px 26px rgba(23,33,27,.13);
}

.mp__hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--line);
}

.mp__hd::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 32px;
  height: 3px;
  margin-left: -16px;
  border-radius: var(--r-full);
  background: var(--border-2);
}

.mp__hd__t {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

.mp__hd__s {
  font-size: var(--fs-xs);
  color: var(--text-third);
}

.mp__list {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-2) 0 var(--sp-4);
}

.mp__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  transition: background .14s var(--ease-out);
}

.mp__row:active,
.mp__row.is-on {
  background: var(--grad-brand-soft);
}

.mp__row__thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  color: var(--brand-400);
}

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

.mp__row__c {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp__row__t {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mp__row__m {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-third);
  flex-wrap: wrap;
}

.mp__row__d {
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}

.mp__empty {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-third);
}

/* 地图为空态（未授权定位） */
.mp__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  box-shadow: var(--sh-3);
  text-align: center;
  max-width: 78%;
}

.mp__hint__t {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
}

.mp__hint__d {
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--text-third);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. 抽屉里的管理员入口（弱化处理）
   -------------------------------------------------------------------------- */
.yq-side__nav--admin {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line-strong);
  color: var(--text-third) !important;
  font-size: var(--fs-sm) !important;
}

/* ==========================================================================
   8. 积分商城 —— 得物（Dewu）骨架 + 唯品会（VIP）氛围
   - 得物：深色积分卡、胶囊排序、大图主推、商品网格、正品保障心智
   - 唯品会：限时特卖倒计时、品牌标签云、「已抢 N%」进度条、玫红点缀
   全部走 CSS 变量，暗色自动适配
   ========================================================================== */
.ml-top,
.ml-deal,
.ml-brands,
.ml-sort,
.ml-sec,
.ml-grid,
.ml-rail {
  /* 唯品会玫红，仅用于氛围点缀，不抢主色 */
  --vip-pink:   #e91e63;
  --vip-pink-d: #c2185b;
  --vip-grad:   linear-gradient(118deg, #ff5a8a 0%, #e91e63 52%, #c2185b 100%);
}

/* ---------- 8.1 顶部积分卡（得物式深色横幅） ---------- */
.ml-top {
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
}

.ml-top__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(126deg, #14241b 0%, #0d3b25 46%, #0a5c37 100%);
  box-shadow: 0 8px 22px rgba(9,60,36,.28);
}

.ml-top__glow {
  position: absolute;
  top: -58px;
  right: -44px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,209,131,.42), rgba(69,209,131,0) 66%);
  pointer-events: none;
}

.ml-top__card::after {
  content: '';
  position: absolute;
  left: -30px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.24), rgba(245,166,35,0) 68%);
  pointer-events: none;
}

.ml-top__l {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;          /* 关键：允许左栏收缩，否则右栏会被挤出可视区 */
  overflow: hidden;
}

.ml-top__k {
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: rgba(255,255,255,.72);
}

.ml-top__v {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.1;
}

.ml-top__v b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #b9f4d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ml-top__v i {
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
  color: rgba(255,255,255,.82);
}

.ml-top__login {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.ml-top__d {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
}

.ml-top__r {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 1px solid rgba(255,255,255,.13);
}

.ml-top__stat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 32px;
}

.ml-top__stat b {
  font-size: var(--fs-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.ml-top__stat span {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

.ml-top__cta {
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  font-size: var(--fs-sm);
  color: var(--brand-700);
}

/* ---------- 8.2 唯品会式限时特卖条 ---------- */
.ml-deal {
  position: relative;
  overflow: hidden;
  margin: var(--sp-2) var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: #fff;
  background: var(--vip-grad);
  box-shadow: 0 6px 18px rgba(233,30,99,.24);
}

.ml-deal__bg {
  position: absolute;
  top: -46px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.26), rgba(255,255,255,0) 66%);
  pointer-events: none;
}

.ml-deal__l { position: relative; z-index: 1; min-width: 0; }

.ml-deal__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.22);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.ml-deal__t {
  margin-top: 5px;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -.01em;
}

.ml-deal__r {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.ml-deal__k { font-size: 10px; color: rgba(255,255,255,.78); }

.ml-clock {
  display: flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.ml-clock b {
  display: inline-block;
  min-width: 22px;
  padding: 2px 3px;
  border-radius: 5px;
  background: rgba(0,0,0,.28);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: center;
  color: #fff;
}

.ml-clock i {
  font-style: normal;
  font-weight: 700;
  font-size: var(--fs-sm);
  opacity: .8;
}

/* ---------- 8.3 品牌/系列标签云（唯品会式） ---------- */
.ml-brands {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: var(--sp-3) var(--sp-4) var(--sp-1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ml-brands::-webkit-scrollbar { display: none; }

.ml-brands__i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-second);
  white-space: nowrap;
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}

.ml-brands__i:active {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.ml-brands__i em {
  font-style: normal;
  font-size: 10px;
  color: var(--vip-pink);
  font-weight: 700;
}

/* ---------- 8.4 得物式胶囊排序 ---------- */
.ml-sort {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
}

.ml-sort__i {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-second);
  transition: all .16s var(--ease-out);
}

.ml-sort__i.is-on {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
  font-weight: 700;
}

.ml-sort__c {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-third);
}

/* ---------- 8.5 得物式主推大图卡 ---------- */
.ml-hero {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
  box-shadow: var(--sh-2);
}

.ml-hero__img {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--bg-sunken);
  overflow: hidden;
}

.ml-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.ml-hero:active .ml-hero__img img { transform: scale(1.04); }

.ml-hero__img::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
}

.ml-hero__fire {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--vip-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(233,30,99,.35);
}

.ml-hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--sp-4);
  color: #fff;
}

.ml-hero__badge {
  display: inline-block;
  height: 19px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: .04em;
}

.ml-hero__t {
  margin-top: 7px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-hero__price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ml-hero__price i { font-size: var(--fs-sm); font-style: normal; font-weight: 700; }
.ml-hero__price b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ml-hero__price em {
  font-size: 11px;
  font-style: normal;
  color: rgba(255,255,255,.8);
  margin-left: 2px;
}

.ml-hero__bar {
  margin-top: var(--sp-2);
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.24);
  overflow: hidden;
}

.ml-hero__bar span {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--vip-grad);
}

/* ---------- 8.6 区块标题 ---------- */
.ml-sec { padding: var(--sp-4) var(--sp-4) 0; }

.ml-sec__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.ml-sec__t {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

.ml-sec__s {
  font-size: var(--fs-xs);
  color: var(--text-third);
}

/* ---------- 8.7 今日必兑（唯品会式横滑） ---------- */
.ml-rail {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding: var(--sp-3) var(--sp-4) var(--sp-1);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ml-rail::-webkit-scrollbar { display: none; }

.ml-rail__i {
  flex: 0 0 auto;
  width: 106px;
  scroll-snap-align: start;
}

.ml-rail__img {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
}

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

.ml-rail__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad-brand-soft);
}

.ml-rail__rank {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 7px 3px;
  border-bottom-right-radius: var(--r-sm);
  background: var(--vip-grad);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}

.ml-rail__t {
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.ml-rail__p {
  margin-top: 3px;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--vip-pink);
  font-variant-numeric: tabular-nums;
}

.ml-rail__p i { font-size: 10px; font-style: normal; font-weight: 700; }

/* ---------- 8.8 商品网格间距（得物式双列） ---------- */
.ml-grid { padding-top: var(--sp-3); }

/* ---------- 8.9 商品卡（得物结构 + 唯品会氛围） ---------- */
.pd-card__img { overflow: hidden; }

.pd-card__tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 2px 8px 3px;
  border-bottom-right-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  color: #fff;
  background: var(--brand-500);
}

.pd-card__tag.is-off  { background: rgba(23,33,27,.62); }
.pd-card__tag.is-low  { background: linear-gradient(118deg,#ff8a3d,#f05a28); }
.pd-card__tag.is-hot  { background: var(--vip-grad); }
.pd-card__tag.is-warm { background: linear-gradient(118deg,#ff5a8a,#f5a623); }
.pd-card__tag.is-deal { background: linear-gradient(118deg,#45d183,#12a054); }
.pd-card__tag.is-new  { background: rgba(47,128,237,.92); }

.pd-card__fire {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.pd-card__price b {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.pd-card__ask {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--brand-600);
}

/* 唯品会式「已抢 N%」进度条 */
.pd-card__bar {
  position: relative;
  margin-top: 6px;
  height: 14px;
  border-radius: var(--r-full);
  background: rgba(233,30,99,.10);
  overflow: hidden;
}

.pd-card__bar__in {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--vip-grad);
  transition: width .6s var(--ease-out);
}

.pd-card__bar__t {
  position: absolute;
  inset: 0;
  display: block;
  text-align: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
  color: var(--vip-pink-d);
  letter-spacing: .02em;
}

/* 下架整体降饱和 */
.pd-card:has(.pd-card__tag.is-off) .pd-card__img img { filter: grayscale(.6); opacity: .7; }

/* ---------- 8.10 暗色适配 ---------- */
[data-theme="dark"] .ml-top__card {
  background: linear-gradient(126deg, #0f1a14 0%, #0b2e1d 46%, #084a2c 100%);
}

[data-theme="dark"] .ml-sort__i.is-on {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #08110c;
}

[data-theme="dark"] .ml-top__cta {
  background: rgba(31,190,102,.10);
  border-color: rgba(31,190,102,.22);
  color: var(--brand-300);
}

[data-theme="dark"] .pd-card__bar { background: rgba(233,30,99,.18); }
[data-theme="dark"] .pd-card__bar__t { color: #ff9dbb; }

/* ---------- 8.11 窄屏收敛 ---------- */
@media (max-width: 359px) {
  .ml-top__v b { font-size: 28px; }
  .ml-top__r { gap: var(--sp-3); padding-left: var(--sp-2); }
  .ml-rail__i, .ml-rail__img { width: 94px; }
  .ml-rail__img { height: 94px; }
}

/* ---------- 8.12 商品详情页：唯品会式氛围补充 ---------- */
.pd-info__pt {
  margin-left: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-600);
  align-self: flex-end;
  padding-bottom: 3px;
}

.pd-info__ask {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--brand-600);
}

/* 详情页已抢进度条 */
.pd-info__bar {
  position: relative;
  margin-top: var(--sp-3);
  height: 20px;
  border-radius: var(--r-full);
  background: rgba(233,30,99,.10);
  overflow: hidden;
}

.pd-info__bar__in {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(118deg, #ff5a8a 0%, #e91e63 52%, #c2185b 100%);
  transition: width .7s var(--ease-out);
}

.pd-info__bar__t {
  position: absolute;
  inset: 0;
  display: block;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: var(--vip-pink-d);
  letter-spacing: .02em;
}

/* 保障标签 */
.pd-info__badges {
  margin-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 600;
}

[data-theme="dark"] .pd-info__bar { background: rgba(233,30,99,.18); }
[data-theme="dark"] .pd-info__bar__t { color: #ff9dbb; }
[data-theme="dark"] .pd-badge {
  background: rgba(31,190,102,.10);
  border-color: rgba(31,190,102,.22);
  color: var(--brand-300);
}


/* =====================================================================
   宜宇 · 账号页（登录 / 注册 / 找回密码）  .au
   小红书调性 + 品牌绿；无 emoji
   ===================================================================== */
.au{
  --au-fh: 50px;
  max-width: 420px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) calc(var(--sp-8) + 24px);
}

/* ---- 品牌头 ---- */
.au__brand{
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) 0 var(--sp-5);
}
.au__logo{
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.au__logo svg{ color: #fff; }
.au__title{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.au__title--lg{ font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.2px; color: var(--text-primary); }
.au__title--sub{ font-size: var(--fs-xs); color: var(--text-third); }

/* ---- Tab ---- */
.au__tabs{
  position: relative;
  display: flex;
  background: var(--bg-raise-2);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: var(--sp-5);
}
.au__tab{
  flex: 1 1 0; position: relative; z-index: 2;
  height: 38px; border: 0; background: transparent;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-second);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color .22s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.au__ink{
  position: absolute; left: 4px; top: 4px; z-index: 1;
  height: 38px;
  width: calc((100% - 8px) / 3);          /* 三等分兜底：JS 未运行时也不会错位 */
  border-radius: var(--r-full);
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform .28s var(--ease-out), width .28s var(--ease-out);
}
/* JS 接管前的静态定位：按根节点 data-tab 摆好胶囊 */
.au[data-tab="register"] .au__ink{ transform: translateX(100%); }
.au[data-tab="reset"]    .au__ink{ transform: translateX(200%); }
.au__tab{ color: var(--text-second); }
.au__tab.is-on{ color: #fff; }

/* ---- 表单 ---- */
.au__pane{ display: none; flex-direction: column; gap: var(--sp-3); }
.au__pane.is-on{ display: flex; animation: auIn .28s var(--ease-out); }
@keyframes auIn{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform:none; } }

.au__f{
  position: relative;
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: var(--au-fh);
  padding: 0 var(--sp-3);
  background: var(--bg-raise);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.au__f:focus-within{
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(31,190,102,.12);
}
.au__f__ico{ display: grid; place-items: center; color: var(--text-third); flex: 0 0 18px; }
.au__f:focus-within .au__f__ico{ color: var(--brand-500); }
.au__f input{
  flex: 1 1 auto; min-width: 0;
  height: calc(var(--au-fh) - 3px);
  border: 0; background: transparent; outline: none;
  font-size: var(--fs-md); color: var(--text-primary);
  font-family: inherit;
}
.au__f input::placeholder{ color: var(--text-third); font-size: var(--fs-sm); }
.au__f input:-webkit-autofill{
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-raise) inset;
}

/* 查重提示（贴在字段下方） */
.au__hint{
  position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%);
  font-size: 11px; white-space: nowrap;
  pointer-events: none;
  max-width: 44%;
  overflow: hidden; text-overflow: ellipsis;
}
.au__hint.is-ok{ color: var(--brand-600); }
.au__hint.is-no{ color: var(--accent-xhs); }
.au__f:has(.au__hint:not(:empty)) input{ padding-right: 76px; }

.au__eye{
  flex: 0 0 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-third); border-radius: var(--r-xs);
}
.au__eye.is-on{ color: var(--brand-500); }

/* ---- 行内：记住我 + 忘记密码 ---- */
.au__row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px;
}
.au__chk{
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--text-second);
  cursor: pointer; user-select: none;
}
.au__chk input{ position: absolute; opacity: 0; width: 0; height: 0; }
.au__chk i{
  width: 17px; height: 17px; flex: 0 0 17px;
  border: 1.5px solid var(--border-2);
  border-radius: 5px;
  background: var(--bg-raise);
  display: grid; place-items: center;
  transition: all .18s var(--ease-out);
}
.au__chk i::after{
  content: ''; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.6); opacity: 0;
  transition: all .18s var(--ease-out);
  margin-top: -2px;
}
.au__chk input:checked + i{ background: var(--grad-brand); border-color: transparent; }
.au__chk input:checked + i::after{ opacity: 1; transform: rotate(-45deg) scale(1); }
.au__chk--block{ align-items: flex-start; line-height: 1.7; padding: var(--sp-2) 2px 0; }
.au__chk--block i{ margin-top: 2px; }
.au__chk a{ color: var(--brand-600); text-decoration: none; }
.au__chk a:hover{ text-decoration: underline; }

.au__link{
  border: 0; background: transparent; padding: 0;
  font-size: var(--fs-xs); color: var(--brand-600);
  cursor: pointer; font-family: inherit;
}
.au__link:hover{ text-decoration: underline; }

/* ---- 提交按钮 ---- */
.au__submit{
  width: 100%; height: 48px; margin-top: var(--sp-2);
  border: 0; border-radius: var(--r-full);
  background: var(--grad-brand);
  color: #fff; font-size: var(--fs-md); font-weight: 700;
  font-family: inherit; letter-spacing: .3px;
  box-shadow: var(--sh-brand);
  cursor: pointer;
  transition: transform .16s var(--ease-out), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.au__submit:active{ transform: scale(.975); }
.au__submit.is-busy{ opacity: .68; cursor: default; }
.au__submit:disabled{ cursor: default; }

/* ---- 注册礼包 ---- */
.au__gift{
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--grad-brand-soft);
  border: 1px dashed var(--brand-200);
}
.au__gift__n{ font-size: var(--fs-lg); font-weight: 800; color: var(--brand-600); flex: 0 0 auto; }
.au__gift__t{ font-size: 11px; color: var(--text-second); line-height: 1.5; }

/* ---- 找回密码提示 ---- */
.au__note{
  padding: 10px var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--bg-raise-2);
  font-size: 11.5px; line-height: 1.7; color: var(--text-second);
}
.au__bind{
  padding: 9px var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  font-size: 11.5px; color: var(--brand-700);
}

/* ---- 其它方式 ---- */
.au__alt{ margin-top: var(--sp-6); }
.au__or{
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--text-third); font-size: 11px;
  margin-bottom: var(--sp-4);
}
.au__or::before, .au__or::after{
  content: ''; flex: 1 1 auto; height: 1px; background: var(--line);
}
.au__wx{
  width: 100%; height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-full);
  background: var(--bg-raise);
  color: var(--text-primary);
  font-size: var(--fs-sm); font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all .18s var(--ease-out);
}
.au__wx:active{ transform: scale(.98); }
.au__wx svg{ color: #09bb07; }
.au__tip{
  margin-top: var(--sp-3);
  text-align: center;
  font-size: 11px; color: var(--text-third);
  line-height: 1.7;
}

.au__foot{
  margin-top: var(--sp-7);
  text-align: center;
  font-size: 11px; color: var(--text-third);
}

/* ---- 深色适配 ---- */
[data-theme="dark"] .au__logo{ box-shadow: var(--sh-brand); }
[data-theme="dark"] .au__ink{ box-shadow: none; }
[data-theme="dark"] .au__submit{ box-shadow: none; }
[data-theme="dark"] .au__gift{ border-color: rgba(31,190,102,.28); }
[data-theme="dark"] .au__bind{ background: rgba(31,190,102,.10); border-color: rgba(31,190,102,.24); color: var(--brand-300); }
[data-theme="dark"] .au__chk input:checked + i{ background: var(--brand-500); }
[data-theme="dark"] .au__wx svg{ color: #2fdc2c; }

/* ---- 窄屏 ---- */
@media (max-width: 380px){
  .au{ padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .au__tab{ font-size: var(--fs-xs); }
  .au__f input{ font-size: var(--fs-sm); }
}

/* ==========================================================================
   用户系统（关注 / 粉丝 / 资料编辑 / 账号安全）
   与 PF 个人主页同一套语言：白卡 + 克制圆角 + 绿作为唯一强调色
   ========================================================================== */

/* ---------- 关注页双 tab（吸顶在头部下方） ---------- */
.us-tabs{display:flex;gap:var(--sp-5);padding:0 var(--sp-4);background:var(--bg-raise);
         border-bottom:1px solid var(--line);position:sticky;top:var(--hd-h);z-index:var(--z-sticky)}
.us-tab{padding:11px 0;font-size:var(--fs-sm);font-weight:600;color:var(--text-second);
        position:relative;cursor:pointer}
.us-tab.is-on{color:var(--text-primary)}
.us-tab.is-on::after{content:'';position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);
                     width:24px;height:2.5px;border-radius:2px;background:var(--brand-500)}
.us-tab__n{font-size:11px;color:var(--text-third);margin-left:4px;font-variant-numeric:tabular-nums}

/* ---------- 用户行 ---------- */
.us-list{display:flex;flex-direction:column;gap:var(--sp-2);
         padding:var(--sp-4) var(--sp-4) 0}
.us-row{display:flex;align-items:center;gap:var(--sp-3);padding:12px var(--sp-3);
        background:var(--bg-raise);border-radius:var(--r-md);box-shadow:var(--sh-1)}
.us-row__a{flex:0 0 auto;display:block}
.us-row__ava{width:46px;height:46px;border-radius:50%;object-fit:cover;display:block}
.us-row__ava--txt{display:grid;place-items:center;color:#fff;font-size:var(--fs-md);font-weight:700}
.us-row__c{flex:1 1 auto;min-width:0}
.us-row__n{display:flex;align-items:center;gap:6px;font-size:var(--fs-sm);font-weight:700;
           color:var(--text-primary);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.us-row__s{margin-top:3px;font-size:var(--fs-xs);color:var(--text-third);line-height:1.5;
           display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.us-row__b{flex:0 0 auto;display:flex;align-items:center}
.us-btn{height:30px;padding:0 15px;border-radius:var(--r-full);cursor:pointer;
        border:1px solid var(--brand-200);background:var(--brand-50);color:var(--brand-700);
        font-size:var(--fs-xs);font-weight:700;transition:all .18s var(--ease-out);white-space:nowrap}
.us-btn:active{transform:scale(.96)}
.us-btn.is-on{background:transparent;border-color:var(--border-2);color:var(--text-third)}
.us-btn--me{border-color:var(--border-2);background:var(--bg-raise-2);color:var(--text-second);
            pointer-events:none}
.us-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:var(--r-full);
          font-size:10px;font-weight:700;background:var(--brand-50);color:var(--brand-700);flex:0 0 auto}
.us-badge--mutual{background:#eef1ff;color:#4b57c9}
.us-more{display:block;margin:var(--sp-4);padding:12px;text-align:center;font-size:var(--fs-sm);
         font-weight:600;color:var(--brand-700);background:var(--bg-raise);
         border-radius:var(--r-md);box-shadow:var(--sh-1)}

/* ---------- 表单页（资料 / 账号） ---------- */
.ue{padding:var(--sp-4) var(--sp-4) 0}
.ue-card{background:var(--bg-raise);border-radius:var(--r-md);box-shadow:var(--sh-1);
         overflow:hidden;margin-bottom:var(--sp-3)}
.ue-row{display:flex;align-items:center;gap:var(--sp-3);padding:13px var(--sp-4)}
.ue-row + .ue-row{border-top:1px solid var(--line)}
.ue-row__k{flex:0 0 78px;font-size:var(--fs-sm);font-weight:600;color:var(--text-primary)}
.ue-row__c{flex:1 1 auto;min-width:0}
.ue-row__v{font-size:var(--fs-sm);color:var(--text-second);word-break:break-all}
.ue-row__hint{margin-top:3px;font-size:var(--fs-xs);color:var(--text-third);line-height:1.5}
.ue-in,.ue-ta{width:100%;border:none;background:transparent;color:var(--text-primary);
              font-size:var(--fs-sm);font-family:inherit;outline:none;padding:0}
.ue-ta{min-height:76px;resize:none;line-height:1.65}
.ue-in::placeholder,.ue-ta::placeholder{color:var(--text-third)}
.ue-picks{display:flex;gap:var(--sp-2);flex-wrap:wrap}
.ue-pick{padding:6px 14px;border-radius:var(--r-full);border:1px solid var(--border-1);
         background:var(--bg-raise-2);color:var(--text-second);font-size:var(--fs-xs);
         font-weight:600;cursor:pointer;transition:all .18s var(--ease-out)}
.ue-pick.is-on{background:var(--brand-50);border-color:var(--brand-200);color:var(--brand-700)}
.ue-tags{display:flex;gap:var(--sp-2);flex-wrap:wrap;margin-top:var(--sp-2)}
.ue-counter{font-size:var(--fs-xs);color:var(--text-third);text-align:right;margin-top:4px}

/* 头像 / 封面 选择器 */
.ue-face{position:relative;padding:var(--sp-4);background:var(--bg-raise);
         border-radius:var(--r-md);box-shadow:var(--sh-1);margin-bottom:var(--sp-3)}
.ue-face__cover{position:relative;height:112px;border-radius:var(--r-sm);overflow:hidden;
                background:var(--grad-brand-soft)}
.ue-face__cover img{width:100%;height:100%;object-fit:cover;display:block}
.ue-face__pick{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:4px;
               padding:5px 11px;border-radius:var(--r-full);border:none;cursor:pointer;
               background:rgba(0,0,0,.5);color:#fff;font-size:var(--fs-xs);font-weight:600}
.ue-face__ava{position:relative;width:74px;height:74px;margin:-34px 0 0 var(--sp-2);
              border-radius:50%;border:3px solid var(--bg-raise);overflow:hidden;
              background:var(--grad-brand);display:grid;place-items:center}
.ue-face__ava img{width:100%;height:100%;object-fit:cover;display:block}
.ue-face__ava span{color:#fff;font-size:var(--fs-xl);font-weight:700}
.ue-face__avabadge{position:absolute;inset:auto 0 0 0;background:rgba(0,0,0,.45);color:#fff;
                   font-size:9px;text-align:center;padding:2px 0}
.ue-save{margin:var(--sp-4) var(--sp-4) 0}

/* 账号安全行的操作按钮 */
.ue-act{flex:0 0 auto;font-size:var(--fs-xs);font-weight:700;color:var(--brand-700);
        background:none;border:none;cursor:pointer;padding:4px 2px}
.ue-act--danger{color:#d4243f}

/* 绑定弹层 */
.ub{position:fixed;inset:0;z-index:var(--z-modal);display:grid;place-items:center;padding:var(--sp-4)}
.ub[hidden]{display:none}
.ub__mask{position:absolute;inset:0;background:rgba(12,20,15,.5)}
.ub__panel{position:relative;width:100%;max-width:380px;background:var(--bg-raise);
           border-radius:var(--r-lg);box-shadow:var(--sh-3);overflow:hidden}
.ub__hd{display:flex;align-items:center;justify-content:space-between;
        padding:14px var(--sp-4);border-bottom:1px solid var(--line)}
.ub__t{font-size:var(--fs-md);font-weight:700;color:var(--text-primary)}
.ub__bd{padding:var(--sp-4)}
.ub__in{width:100%;height:44px;padding:0 var(--sp-3);border-radius:var(--r-sm);
        border:1px solid var(--border-2);background:var(--bg-raise-2);
        color:var(--text-primary);font-size:var(--fs-sm);outline:none;font-family:inherit}
.ub__in:focus{border-color:var(--brand-400)}
.ub__hint{margin-top:var(--sp-2);font-size:var(--fs-xs);color:var(--text-third);line-height:1.6}
.ub__ft{display:flex;gap:var(--sp-2);margin-top:var(--sp-4)}
.ub__ft .yq-btn{flex:1 1 0}

/* 设置页里可点击的行（a.set-row）—— 与 button.set-row 保持同一手感 */
a.set-row{text-decoration:none;cursor:pointer}
a.set-row:active{background:var(--bg-sunken)}

/* 个人主页「关注 / 粉丝」数字现在是可点链接 */
a.pf__num{text-decoration:none;color:inherit;cursor:pointer}
a.pf__num:active{opacity:.65}

/* --------------------------------------------------------------------------
   通知独立页 —— 顶部铃铛入口 / 未读批量操作 / 活动类图标
   通知与私信拆开后的配套样式（详见 pages/notice.php 顶部注释）
   -------------------------------------------------------------------------- */

/* 消息页顶部的「通知」入口条 */
.ms-bell {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-3) var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  text-decoration: none;
  transition: background .14s var(--ease-out), border-color .14s var(--ease-out);
}
.ms-bell:active { background: var(--bg-raise-2); }
.ms-bell.is-unread {
  border-color: rgba(31,190,102,.34);
  background: var(--grad-brand-soft);
}
.ms-bell__ico {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  color: var(--brand-600);
  background: var(--brand-50);
}
.ms-bell__c {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.ms-bell__c b { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); }
.ms-bell__c i {
  font-style: normal; font-size: var(--fs-xs); color: var(--text-third);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-bell__n {
  flex: 0 0 auto;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--accent-xhs); color: #fff;
  font-size: 10.5px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.ms-bell__ar { flex: 0 0 auto; color: var(--text-third); }

/* 「共 N 条未读 / 全部已读」操作条 */
.ms-act {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-third);
}
.ms-act b { color: var(--accent-xhs); font-weight: 700; }
.ms-act__b {
  height: 30px; padding: 0 var(--sp-3);
  border: 1px solid var(--brand-300);
  border-radius: var(--r-full);
  background: var(--bg-raise);
  color: var(--brand-600);
  font-size: var(--fs-xs); font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: background .14s var(--ease-out);
}
.ms-act__b:active { background: var(--brand-50); }

/* 活动类通知图标（金 → 与系统/互动三色区分） */
.ms-note__ico--event {
  color: #c2410c;
  background: rgba(194,65,12,.11);
}

/* --------------------------------------------------------------------------
   用户系统 v2 —— 主页资料扩展 / 更多菜单 / 头像可点 / 黑名单
   -------------------------------------------------------------------------- */

/* 主页资料区新增：城市·简介·标签·互关徽章 */
.pf__avawrap { flex: 0 0 auto; display: block; text-decoration: none; }
.pf__avawrap:active { opacity: .8; }

.pf__badge--mutual {
  background: rgba(31,190,102,.14);
  color: var(--brand-600);
  border: 1px solid rgba(31,190,102,.3);
}

.pf__bio {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-second);
  word-break: break-word;
}

.pf__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--sp-3);
}
.pf__tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--brand-50);
  border: 1px solid rgba(31,190,102,.2);
  color: var(--brand-700);
  font-size: var(--fs-xs); font-weight: 600;
}
[data-theme="dark"] .pf__tag { background: rgba(31,190,102,.12); color: var(--brand-200); }

/* 「更多」按钮 + 危险态按钮 */
.pf__btn--more {
  flex: 0 0 auto;
  width: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.pf__btn--danger {
  border: 1px solid rgba(212,36,63,.3);
  background: rgba(212,36,63,.07);
  color: #d4243f;
}

/* 主页「更多」底部菜单（复用 .yq-drawer 的遮罩与居中，仅换面板形态） */
.yq-drawer__panel--sheet {
  align-self: flex-end;
  width: 100%;
  max-width: var(--page-max);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.u-menu__i {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-4) var(--sp-3);
  border: 0; background: none;
  font-family: inherit; font-size: var(--fs-md); font-weight: 500;
  color: var(--text-primary); text-align: left;
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.u-menu__i:last-child { border-bottom: 0; }
.u-menu__i:active { background: var(--bg-raise-2); }
.u-menu__ico {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  color: var(--text-second);
  background: var(--bg-raise-2);
}
.u-menu__ico--danger { color: #d4243f; background: rgba(212,36,63,.09); }

/* 卡片作者区（头像+昵称合成一个可点区，不嵌套 <a>） */
a.yq-post__u {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1 1 auto;
  text-decoration: none; color: inherit;
}
a.yq-post__u .yq-post__nm { flex: 0 1 auto; }
a.yq-post__u:active { opacity: .7; }

/* 评论头像可点 */
a.cm-item__ava { flex: 0 0 auto; display: block; text-decoration: none; }
a.cm-item__ava:active { opacity: .7; }
a.cm-item__n { text-decoration: none; color: inherit; }
a.cm-item__n:active { color: var(--brand-600); }

/* 详情页作者区可点 */
.sh-hd__ava { flex: 0 0 auto; display: block; text-decoration: none; }
.sh-hd__ava:active { opacity: .8; }
a.sh-hd__c { text-decoration: none; color: inherit; }
a.sh-hd__c:active { opacity: .75; }

/* 关注按钮已关注态（与 .js-follow 的 is-on 对应） */
.sh-hd__follow.is-on,
.pf__btn.is-on {
  border-color: transparent;
  background: var(--bg-sunken, #eaf3ed);
  color: var(--text-third);
}
.sh-hd__follow.is-on::before,
.pf__btn.is-on::before { content: none; }

/* ==================================================================
   11. 工具条「一排左右滑动」· 2026-09-19 重做
   ------------------------------------------------------------------
   线上现象（390 / 375 视口）：
     · 「精华」标签被切掉半截，右边还有几个排序项干脆看不见
     · 板块胶囊（营地分享 / 活动报名 / …）同样溢出白卡边界
     · 有的机型整行被压成两行字（iOS 老版本 flex 收缩更激进）

   根因（两层）：
     ① 权威样式在 app.css，.yq-toolbar__chips 只有 overflow-x:auto，
        但**没写 min-width:0**。它作为 flex item 默认 min-width:auto，
        最小尺寸 = 内容宽度 → 永远不会收缩 → 撑破 .yq-toolbar 白卡，
        被白卡的圆角裁掉，看起来就是"溢出 / 被切"。
     ② .yq-seg 同理，且 .yq-toolbar__row 没给 min-width:0，
        排序行 6 项在窄屏必然超出。

   修法（一条原则：**能滑就不换行**，与原生 App 一致）：
     1. 滚动容器必须能收缩：min-width:0 + flex:1 1 auto + max-width:100%
     2. 隐藏滚动条（webkit / firefox / 老 Edge 三套）
     3. overscroll-behavior-x:contain —— 滑到头不带动整页、不触发返回手势
     4. scroll-snap 吸附到 chip 边界，松手不悬在半个字上
     5. 右缘渐隐由 JS 加 .is-scrollable 才显示，滑到底自动淡出
        （不做成常显：没有溢出时显示渐隐反而像渲染故障）
     6. 移动端排序行**不再换行**，与板块行一致的横滑 + 渐隐

   ⚠️ app.css 与 app2026.css 同时在线，本文件后加载。
      改这里就够，不要去动 app.css（会被本文件覆盖，只会造成阅读困惑）。
   ================================================================== */
.yq-toolbar__row,
.yq-toolbar__row--sub {
  min-width: 0;
  max-width: 100%;
}
.yq-seg {
  min-width: 0;
  max-width: 100%;
}
.yq-toolbar__chips,
.yq-seg {
  /* 关键：flex item 默认 min-width:auto，不加这行滚动容器永不收缩 */
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  /* 横滑到头不带动整页 / 不触发 iOS 侧滑返回 */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* 松手吸附到 chip 边界，停在完整的一枚上 */
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* 老 Edge / IE */
}
.yq-toolbar__chips::-webkit-scrollbar,
.yq-seg::-webkit-scrollbar { width: 0; height: 0; display: none; }

.yq-toolbar__chips > *,
.yq-seg > * { scroll-snap-align: start; flex: 0 0 auto; }

.yq-seg__i,
.yq-chip {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 右缘渐隐：只在「确实还有内容没露出来」时出现（由 JS 打 .is-scrollable）。
   用 mask-image 而不是叠一层白色渐变 —— 叠色在暗色主题 / 卡片底色变化时
   会露出色块，mask 永远只作用于本元素，主题无关。 */
.yq-toolbar__chips.is-scrollable:not(.is-at-end),
.yq-seg.is-scrollable:not(.is-at-end) {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent 100%);
}
/* 滑到最左时左缘也渐隐，暗示"左边还有东西" */
.yq-toolbar__chips.is-scrollable.is-at-end:not(.is-at-start),
.yq-seg.is-scrollable.is-at-end:not(.is-at-start) {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px);
  mask-image: linear-gradient(to right, transparent 0, #000 30px);
}
.yq-toolbar__chips.is-scrollable.is-at-start.is-at-end,
.yq-seg.is-scrollable.is-at-start.is-at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

/* 触屏外的设备（鼠标）保留一点点滚动条提示，鼠标滚轮横滚可用 */
@media (hover: hover) and (pointer: fine) {
  .yq-toolbar__chips.is-scrollable:hover,
  .yq-seg.is-scrollable:hover {
    scrollbar-width: thin;
    -ms-overflow-style: auto;
  }
  .yq-toolbar__chips.is-scrollable:hover::-webkit-scrollbar,
  .yq-seg.is-scrollable:hover::-webkit-scrollbar {
    width: auto; height: 5px; display: block;
  }
  .yq-toolbar__chips.is-scrollable:hover::-webkit-scrollbar-thumb,
  .yq-seg.is-scrollable:hover::-webkit-scrollbar-thumb {
    background: var(--border-2, #cfe0d7); border-radius: 3px;
  }
}

@media (max-width: 480px) {
  .yq-seg { padding: 2px; }
  .yq-seg__i {
    height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
    letter-spacing: -.1px;
    flex: 0 0 auto;
  }
  .yq-chip {
    height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
    flex: 0 0 auto;
  }
  .yq-chip__n { font-size: 10px; }
  /* ⚠️ 排序行这里**不能**再 flex-wrap:wrap！
     换行会把「共 N 条」顶到第三行，且 6 项里最后一两项仍会被裁。
     改成和板块行同款的单行横滑。 */
  .yq-toolbar__row--sub {
    flex-wrap: nowrap;
    gap: var(--sp-2);
    align-items: center;
  }
  .yq-toolbar__row--sub .yq-seg { flex: 1 1 auto; min-width: 0; }
  .yq-toolbar__n {
    margin-left: 0;
    flex: 0 0 auto;
    padding-right: 2px;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* 极窄屏（≤360px，iPhone SE / 小屏安卓）进一步收紧，让更多项能露出来 */
@media (max-width: 360px) {
  .yq-seg__i { padding: 0 8px; font-size: 12px; }
  .yq-chip { padding: 0 9px; font-size: 12px; }
}

/* ==========================================================================
   宜宇优选（/youxuan）+ 宜宇闲置（/idle）
   --------------------------------------------------------------------------
   设计意图：两个频道**共用一套卡片语言**（.yx-c / .zl-c 结构一致），
   但通过**主色调与角标**做视觉区分：
     优选 → 玫红点缀（品牌折扣感，呼应唯品会）
     闲置 → 琥珀/暖橙点缀（二手温度感，区别于优选的商业感）
   全部走既有 CSS 变量，天然支持暗色主题。
   前置依赖：.ml-sort / .ml-deal / .ml-clock / .yq-btn 来自主设计系统。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 宜宇优选 · 顶部主张
   -------------------------------------------------------------------------- */
.yx-top {
  padding: var(--sp-5) 0 var(--sp-3);
}
.yx-top__hd { padding: 0 var(--sp-1) var(--sp-4); }
.yx-top__t {
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text-primary);
  line-height: 1.2;
}
.yx-top__s {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-third);
}
.yx-top__stat {
  display: flex;
  gap: var(--sp-2);
}
.yx-top__i {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--bg-raise-2);
  border: 1px solid var(--border-1);
  text-align: center;
}
.yx-top__i b {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -.3px;
}
.yx-top__i span { font-size: var(--fs-xs); color: var(--text-third); }

/* 优选特卖条：玫红调（与积分商城的绿调区分） */
.ml-deal--yx .ml-deal__bg {
  background: linear-gradient(120deg, #e91e63 0%, #c2185b 58%, #ad1457 100%);
}

/* --------------------------------------------------------------------------
   2. 分类横滑（优选 / 闲置共用）
   -------------------------------------------------------------------------- */
.yx-cats {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: var(--sp-1) 0 var(--sp-3);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yx-cats::-webkit-scrollbar { display: none; }
.yx-cats__i {
  flex: 0 0 auto;
  padding: 7px var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--text-second);
  background: var(--bg-raise-2);
  border: 1px solid var(--border-1);
  white-space: nowrap;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.yx-cats__i.is-on {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  font-weight: 600;
}
.yx-cats__i:active { transform: scale(.97); }

/* --------------------------------------------------------------------------
   3. 优选主推大卡
   -------------------------------------------------------------------------- */
.yx-hero {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: var(--sh-2);
}
.yx-hero__img {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--bg-sunken) center/cover no-repeat;
}
.yx-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yx-hero__off {
  position: absolute; left: var(--sp-3); top: var(--sp-3);
  padding: 3px 9px; border-radius: var(--r-full);
  background: #e91e63; color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  box-shadow: 0 2px 8px rgba(233,30,99,.34);
}
.yx-hero__brand {
  position: absolute; right: var(--sp-3); top: var(--sp-3);
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(0,0,0,.5); color: #fff;
  font-size: var(--fs-xs);
  backdrop-filter: blur(6px);
}
.yx-hero__b { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.yx-hero__t {
  font-size: var(--fs-lg); font-weight: 700; line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yx-hero__p {
  display: flex; align-items: baseline; gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.yx-hero__p i { font-size: var(--fs-sm); color: #e91e63; font-style: normal; font-weight: 600; }
.yx-hero__p b {
  font-size: var(--fs-2xl); font-weight: 800; color: #e91e63;
  letter-spacing: -.5px; line-height: 1;
}
.yx-hero__p s { font-size: var(--fs-sm); color: var(--text-third); }
.yx-hero__p em {
  margin-left: auto;
  font-size: var(--fs-xs); font-style: normal;
  color: #c2185b; font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: rgba(233,30,99,.10);
}
.yx-hero__tag {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-third);
}

/* --------------------------------------------------------------------------
   4. 优选商品网格
   -------------------------------------------------------------------------- */
.yx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-1) 0 var(--sp-4);
}
@media (min-width: 560px) {
  .yx-grid { grid-template-columns: repeat(3, 1fr); }
}
.yx-c {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.yx-c:active { transform: scale(.982); box-shadow: var(--sh-2); }
.yx-c__p {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-sunken) center/cover no-repeat;
}
.yx-c__off {
  position: absolute; left: 6px; top: 6px;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: #e91e63; color: #fff;
  font-size: 10px; font-weight: 700;
}
.yx-c__nw {
  position: absolute; right: 6px; top: 6px;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--brand-600); color: #fff;
  font-size: 10px; font-weight: 600;
}
.yx-c__fs {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 6px; border-radius: var(--r-xs);
  background: rgba(0,0,0,.52); color: #fff;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.yx-c__b { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.yx-c__t {
  font-size: var(--fs-sm); line-height: 1.36; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(var(--fs-sm) * 1.36 * 2);
}
.yx-c__bd {
  margin-top: 3px; font-size: var(--fs-xs); color: var(--text-third);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yx-c__p2 {
  display: flex; align-items: baseline; gap: 5px;
  margin-top: var(--sp-2);
}
.yx-c__p2 i { font-size: 11px; color: #e91e63; font-style: normal; font-weight: 600; }
.yx-c__p2 b {
  font-size: var(--fs-lg); font-weight: 800; color: #e91e63;
  letter-spacing: -.3px; line-height: 1;
}
.yx-c__p2 s { font-size: var(--fs-xs); color: var(--text-third); }
.yx-c__ft {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-third);
}
.yx-c__sc { color: var(--brand-600); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. 闲置 · 顶部
   -------------------------------------------------------------------------- */
.zl-top { padding: var(--sp-5) 0 var(--sp-3); }
.zl-top__hd { padding: 0 var(--sp-1) var(--sp-4); }
.zl-top__t {
  margin: 0;
  font-size: var(--fs-2xl); font-weight: 800;
  letter-spacing: -.4px; color: var(--text-primary); line-height: 1.2;
}
.zl-top__s { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--text-third); }
.zl-top__stat { display: flex; gap: var(--sp-2); }
.zl-top__i {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(245,166,35,.10), rgba(245,166,35,.04));
  border: 1px solid rgba(245,166,35,.22);
  text-align: center;
}
.zl-top__i b {
  font-size: var(--fs-lg); font-weight: 800; color: #c77800;
  letter-spacing: -.3px;
}
.zl-top__i span { font-size: var(--fs-xs); color: var(--text-third); }
.zl-top__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: var(--sp-3);
  height: 44px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff; font-size: var(--fs-md); font-weight: 700;
  box-shadow: var(--sh-brand);
}
.zl-top__cta:active { transform: scale(.985); }

/* --------------------------------------------------------------------------
   6. 闲置网格
   -------------------------------------------------------------------------- */
.zl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-1) 0 var(--sp-4);
}
@media (min-width: 560px) {
  .zl-grid { grid-template-columns: repeat(3, 1fr); }
}
.zl-c {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
  transition: transform .18s var(--ease-out);
}
.zl-c:active { transform: scale(.982); }
.zl-c__p {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-sunken) center/cover no-repeat;
}
.zl-c__off {
  position: absolute; left: 6px; top: 6px;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: #f5a623; color: #fff;
  font-size: 10px; font-weight: 700;
}
.zl-c__cond {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: rgba(0,0,0,.52); color: #fff;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.zl-c__sold {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.46);
  color: #fff; font-size: var(--fs-lg); font-weight: 800; letter-spacing: 2px;
}
.zl-c__b { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.zl-c__t {
  font-size: var(--fs-sm); line-height: 1.36; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(var(--fs-sm) * 1.36 * 2);
}
.zl-c__p2 {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: var(--sp-2);
}
.zl-c__p2 i { font-size: 11px; color: #e02020; font-style: normal; font-weight: 600; }
.zl-c__p2 b {
  font-size: var(--fs-lg); font-weight: 800; color: #e02020;
  letter-spacing: -.3px; line-height: 1;
}
.zl-c__p2 em {
  font-size: 10px; font-style: normal;
  padding: 1px 5px; border-radius: var(--r-xs);
  background: rgba(245,166,35,.14); color: #c77800; font-weight: 600;
}
.zl-c__p2 s { font-size: var(--fs-xs); color: var(--text-third); }
.zl-c__ft {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-third);
}
.zl-c__loc { display: inline-flex; align-items: center; gap: 3px; }

/* --------------------------------------------------------------------------
   7. 闲置详情
   -------------------------------------------------------------------------- */
.zl-gal {
  display: flex; gap: 6px;
  overflow-x: auto;
  border-radius: var(--r-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.zl-gal::-webkit-scrollbar { display: none; }
.zl-gal img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
}
.zl-gal__ph {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
  color: var(--text-third);
}
.zl-gal__n {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(0,0,0,.5); color: #fff; font-size: var(--fs-xs);
  backdrop-filter: blur(6px);
}

.zl-info {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
}
.zl-info__price {
  display: flex; align-items: baseline; gap: var(--sp-2);
  flex-wrap: wrap;
}
.zl-info__price i { font-size: var(--fs-md); color: #e02020; font-style: normal; font-weight: 700; }
.zl-info__price b {
  font-size: 30px; font-weight: 800; color: #e02020;
  letter-spacing: -1px; line-height: 1;
}
.zl-info__neg {
  font-size: var(--fs-xs); font-style: normal; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-xs);
  background: rgba(245,166,35,.14); color: #c77800;
}
.zl-info__price s { font-size: var(--fs-sm); color: var(--text-third); }
.zl-info__off {
  margin-left: auto;
  padding: 3px 9px; border-radius: var(--r-full);
  background: #e02020; color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
}
.zl-info__t {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-xl); font-weight: 700; line-height: 1.36;
  color: var(--text-primary);
}
.zl-info__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--sp-3);
}
.zl-tag {
  padding: 3px 9px; border-radius: var(--r-xs);
  background: var(--bg-raise-2);
  border: 1px solid var(--border-1);
  font-size: var(--fs-xs); color: var(--text-second);
}
.zl-tag--cond {
  background: rgba(245,166,35,.12);
  border-color: rgba(245,166,35,.28);
  color: #c77800; font-weight: 600;
}
.zl-tag--sold {
  background: rgba(224,32,32,.10);
  border-color: rgba(224,32,32,.24);
  color: #e02020; font-weight: 600;
}
.zl-info__d {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-1);
  font-size: var(--fs-md); line-height: 1.72;
  color: var(--text-second);
  word-break: break-word;
}
.zl-info__meta {
  display: flex; gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-1);
  font-size: var(--fs-xs); color: var(--text-third);
}

/* 发布者卡 */
.zl-seller {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
}
.zl-seller:active { background: var(--bg-sunken); }
.zl-seller__c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zl-seller__n {
  font-size: var(--fs-md); font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zl-seller__s { font-size: var(--fs-xs); color: var(--text-third); }
.zl-seller__go { color: var(--text-third); flex: 0 0 auto; }

/* 交易安全提示 */
.zl-tip {
  display: flex; gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.22);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: #8a5a00;
}
.zl-tip svg { flex: 0 0 auto; margin-top: 2px; color: #c77800; }
.zl-tip b { color: #a35c00; font-weight: 700; }

/* --------------------------------------------------------------------------
   8. 闲置发布表单（.zpf）
   -------------------------------------------------------------------------- */
.zpf { padding: var(--sp-4) 0 var(--sp-6); }
.zpf__box {
  margin-bottom: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--border-1);
}
.zpf__lb {
  display: flex; align-items: baseline; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md); font-weight: 700; color: var(--text-primary);
}
.zpf__lb em { font-size: var(--fs-xs); font-style: normal; font-weight: 400; color: var(--text-third); }
.zpf__hint {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-third); line-height: 1.6;
}

/* 图片 */
.zpf__imgs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.zpf__im, .zpf__add {
  position: relative;
  width: 84px; height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: 0 0 auto;
}
.zpf__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zpf__imx {
  position: absolute; right: 3px; top: 3px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-full);
  background: rgba(0,0,0,.56); color: #fff;
  cursor: pointer; padding: 0;
}
.zpf__add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1.5px dashed var(--border-2);
  background: var(--bg-raise-2);
  color: var(--text-third);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.zpf__add:active { background: var(--bg-sunken); }

/* 表单行 */
.zpf__row {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-1);
}
.zpf__row:last-child { border-bottom: 0; padding-bottom: 0; }
.zpf__k {
  flex: 0 0 62px;
  padding-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text-second);
}
.zpf__in, .zpf__ta {
  flex: 1;
  min-width: 0;
  padding: 10px var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-raise-2);
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-family: inherit;
  outline: none;
  transition: border-color .16s var(--ease-out), background .16s var(--ease-out);
}
.zpf__in:focus, .zpf__ta:focus {
  border-color: var(--brand-400);
  background: var(--bg-raise);
}
.zpf__ta { resize: vertical; line-height: 1.6; }
.zpf__money { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.zpf__money i {
  font-size: var(--fs-md); font-style: normal;
  color: #e02020; font-weight: 700;
}
.zpf__in--num { flex: 1; }

/* 开关 */
.zpf__sw {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0 var(--sp-1);
  cursor: pointer;
}
.zpf__sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.zpf__sw__b {
  position: relative;
  width: 42px; height: 24px;
  flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  border: 1px solid var(--border-2);
  transition: background .18s var(--ease-out);
}
.zpf__sw__b::after {
  content: '';
  position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .18s var(--ease-out);
}
.zpf__sw input:checked + .zpf__sw__b { background: var(--brand-500); border-color: var(--brand-500); }
.zpf__sw input:checked + .zpf__sw__b::after { transform: translateX(18px); }
.zpf__sw__t {
  display: flex; flex-direction: column; gap: 1px;
  font-size: var(--fs-md); color: var(--text-primary);
}
.zpf__sw__t em { font-size: var(--fs-xs); font-style: normal; color: var(--text-third); }

/* 胶囊选择 */
.zpf__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.zpf__chip {
  padding: 7px var(--sp-3);
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  background: var(--bg-raise-2);
  color: var(--text-second);
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.zpf__chip.is-on {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  font-weight: 600;
}
.zpf__chip:active { transform: scale(.97); }

/* 提交 */
.zpf__act { padding: var(--sp-3) 0 0; }
.zpf__cancel {
  display: block;
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-third);
}

/* --------------------------------------------------------------------------
   9. 暗色微调
   -------------------------------------------------------------------------- */
[data-theme="dark"] .yx-c__p,
[data-theme="dark"] .zl-c__p { background-color: #10150f; }
[data-theme="dark"] .zl-tip { color: #e8c88a; }
[data-theme="dark"] .zl-tip b { color: #f0d59b; }

/* --------------------------------------------------------------------------
   10. 极窄屏（≤360px）
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .yx-c__t, .zl-c__t { font-size: 12px; }
  .zpf__im, .zpf__add { width: 72px; height: 72px; }
  .zpf__k { flex-basis: 52px; font-size: 12px; }
  .zl-info__price b { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   11. Hero 视频（2026-09-18 新增）

   背景：`shipin` 字段的解析 bug 修好后（见 Repo::shape），hero 可以承载视频。
   下面三条都是**必需**的，少一条就会出问题：
     1. 不能沿用图片的缓慢放大。.hero__media 对静图有 scale(1.07 → 1) 的
        6.4 秒过渡，那是给静图制造"呼吸感"用的；视频本身就在动，
        再叠一层缩放会变成镜头晃动，看久了晕。所以视频强制 transform:none。
     2. <video> 是 inline 替换元素，默认按 baseline 对齐，
        元素底部会留出约 4px 的行盒空隙 → .hero 底部露出一条背景色。
        必须 display:block。
     3. 视频用 preload="none" 且不自动播（谁在前台谁播，见 index.vue），
        所以「视频还没开始播」是常态 —— 视觉必须靠 poster 独立成立。
        这里给个深色兜底背景，poster 解码前也不会闪白。
   -------------------------------------------------------------------------- */
.hero__media { display: block; }
video.hero__media,
.hero__slide.is-on video.hero__media {
  transform: none;
  background: #07100b;
}

/* 「视频」角标 —— 跟在板块胶囊后面，比时间戳更有信息量但视觉更弱一档 */
.hero__vid {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px;
  border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: rgba(0, 0, 0, .46);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__vid svg { width: 11px; height: 11px; }

/* ⚠️ 这里**不要**用 `@media (prefers-reduced-data: reduce) { video{visibility:hidden} }`
   来"退回 poster" —— poster 就是画在 <video> 元素内部的，
   隐藏 video 等于连 poster 一起藏掉，只剩深色底，比不处理更糟。
   省流/减少动效一律在 JS 里判断（见 index.vue 的 motionOK），
   不播视频时 poster 自然显示，这才是正确做法。 */

/* =====================================================================
   12. 视频角标（.yq-post__vid）· 2026-09-18
   ---------------------------------------------------------------------
   广场新增「视频」筛选后暴露的问题：视频帖的封面是七牛自动截的
   视频第 0 帧，视觉上与普通图片卡完全一样 —— 用户分不清哪张能播，
   「视频」这个筛选也就白加了。

   放**右上角**的理由：卡片四个角各有归属，不能挤在一起 ——
     左上 = 置顶 / 精华 / 板块（.yq-post__badge）
     右下 = 图片数（.yq-post__imgs）
     右下偏上 = 商品「已兑」等
   只有右上角是空的，所以视频角标固定在这里。

   圆形半透明底 + 白色三角：这是短视频封面角的通用语言（小红书/B站都是），
   不需要文字说明，也就不依赖字体大小，小卡片上也清楚。
   ===================================================================== */
.yq-post__vid {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  z-index: 1;
  pointer-events: none;   /* 角标不该挡住整卡的点击 */
}
.yq-post__vid svg { width: 10px; height: 10px; margin-left: 1px; }


/* =====================================================================
   13. 视频卡中央播放键（.yq-post__play）· 2026-09-18
   ---------------------------------------------------------------------
   第 12 节的右上角小角标只是「标签」，用户看到它仍会以为点进去是图文。
   画面**正中央**的圆形播放键才是"这里能播"的通用符号（抖音/小红书/B站
   封面都是这么标的）。

   为什么中央而不是右下：瀑布流卡片很窄（二列），右下已经给了图片数
   （.yq-post__imgs），中央是唯一一块绝对空旷、且视觉权重最高的位置。

   pointer-events:none 是必须的 —— 整张卡是 <a>，播放键只做视觉提示，
   点击统一由卡片处理（进详情页，那边顶部就是播放器）。
   ===================================================================== */
.yq-post__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding-left: 2px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
  z-index: 1;
  pointer-events: none;
}
.yq-post__play svg { width: 15px; height: 15px; }


/* =====================================================================
   14. 广场 Hero · 横屏宽幅视频（单条 · 不滑动）· 2026-09-18
   ---------------------------------------------------------------------
   两份实现，同一套类名：
     · Nuxt 正常流量 → web/components/HeroSquare.vue（scoped 样式）
     · PHP 兜底页（Nitro 挂掉时 nginx error_page 走到）
       → app/ui/hero.php 的 square 变体，加载的就是**这一节**
   改一边就要改另一边 —— 不一致的表现是「Nitro 一挂 hero 就变形」。

   ⚠️ 这里**没有**轮播/箭头/指示点：广场 hero 是单条 + 每次刷新随机
      （Hero::square() 抽 1 条），不允许滑动。别照搬首页 .hero 的结构。
   ===================================================================== */
/* 【2026-09-19 · 标题稳定性加固】
   用户反馈「hero 标题一会有一会没有，能不能稳定出品」。查证结论：
   数据侧不会空（Hero::build() 里 mb_strlen(title)<4 的条目直接被丢，
   实测候选池 8 条标题全部非空）；DOM 侧也不会空（连测 22 次，
   标题盒 rect 分毫不差）。剩下的唯一可能就是**绘制层**：

   移动端（iOS Safari / Android WebView）会把 <video> 提升为**独立合成层**，
   而一个普通的 position:absolute 兄弟节点如果没有自己的合成层，
   就可能被视频层盖住 —— 表现就是「有时有标题、有时没有」，
   因为取不取决于数据，取决于这次视频有没有成功起播/有没有被提升。

   所以这里做三件事（缺一不可，改的时候别只改一半）：
     1. .hsq 建独立层叠上下文（isolation）—— 把 z-index 关在里面，
        外面的页面元素不可能参与进来搅局；
     2. 所有覆盖层（.hsq__top / .hsq__body）自己也要被**提升成合成层**
        （translateZ(0)），这样它们才真的排在视频层之上；
     3. 给标题一块**专属底衬**（.hsq__body::before）—— 不依赖整个
        hero 的蒙版，标题自己脚下永远有一块深色，雪景/天空/白沙
        这类高亮画面也不会把白字吃掉。
   另外补 min-height：极端窄视口下保证「两行标题 + 一行数据」放得下，
   标题不会被挤出可视区。 */
.hsq {
  position: relative;
  background: var(--bg-raise, #fff);
  border: 1px solid var(--mint-300, #74e3da);
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  box-shadow: var(--sh-1, 0 1px 2px rgba(23,33,27,.04));
  isolation: isolate;
}

/* ★★ 视频区不再 absolute 铺满整卡 —— 这是本轮最关键的改动。
      之前 .hsq__stage 是 inset:0 铺满、信息区 absolute 叠回画面上，
      文字像素与视频像素**重叠**；X5 / 鸿蒙一旦给 <video> 分配原生 Surface，
      DOM 的 z-index 再怎么写也压不过 Surface，标题就被吞。
      现在 stage 是文档流里的一个 16:9 盒子，信息区是它下面的兄弟行，
      两者物理不重叠 → 任何内核都吞不掉。 */
.hsq__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 62vh;
  max-height: 62svh;
  background: #0b0d0c;
  overflow: hidden;
}

.hsq__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* 顶部浅压暗：只为左上角板块标签可读。不再压底部重渐变——文字不在画面里了。 */
.hsq__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.36) 0%, rgba(0,0,0,0) 34%);
  pointer-events: none;
  z-index: 1;
}

.hsq__top {
  position: absolute;
  top: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  color: #fff;
  z-index: 4;
  pointer-events: none;
  transform: translateZ(0);
}
.hsq__sp { flex: 1 1 auto; }
.hsq__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.20);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hsq__tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.40);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hsq__time { font-size: 11px; opacity: .82; }

.hsq__big {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  padding-left: 3px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .36);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 8;   /* 必须高于 .hsq__hit(5)，否则播放键点不到 */
}
.hsq__tap-tip {
  position: absolute;
  left: 50%; top: calc(50% + 44px);
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .52);
  color: #fff; font-size: 12px;
  z-index: 8;
  pointer-events: none;
}

/* ---- 信息区：文档流内的浅色块（❗绝不要再改回 absolute 叠在画面上） ---- */
.hsq__body {
  position: relative;
  z-index: 1;
  padding: 11px 13px 13px;
  color: var(--text-primary, #17211b);
  background: var(--bg-raise, #fff);
  border-top: 1px solid var(--mint-100, #c9ffdf);
}
.hsq__t {
  margin: 0 0 7px;
  font-size: 15.5px; font-weight: 800; line-height: 1.36;
  color: var(--text-primary, #17211b);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hsq__meta { display: flex; align-items: center; gap: 10px; }
.hsq__meta > span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-third, #93a29a);
}
.hsq__meta > span svg { width: 14px; height: 14px; }
.hsq__go {
  flex: 1 1 auto;
  color: var(--mint-600, #1fb98c);
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsq__btn {
  display: inline-flex; align-items: center; gap: 2px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: var(--grad-mint, linear-gradient(128deg, #c9ffdf 0%, #5bedc6 52%, #74e3da 100%));
  color: #0b5a45;
  font-size: 12.5px; font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(91,237,198,.32);
}

/* ---- 覆盖整张卡的透明跳转热区 ---- */
.hsq__hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .hsq { border-radius: var(--r-md, 14px); }
  .hsq__stage { aspect-ratio: 16 / 9; max-height: 58vh; max-height: 58svh; }
  .hsq__body { padding: 10px 12px 12px; }
  .hsq__t { font-size: 15px; }
  .hsq__btn { height: 26px; padding: 0 10px; font-size: 12px; }
}

[data-theme='dark'] .hsq {
  border-color: var(--mint-700, #149270);
  background: var(--bg-raise, #151917);
}
[data-theme='dark'] .hsq__body {
  background: var(--bg-raise, #151917);
  border-top-color: #1d3d33;
  color: var(--text-primary, #f2f5f3);
}
[data-theme='dark'] .hsq__t { color: var(--text-primary, #f2f5f3); }
[data-theme='dark'] .hsq__btn { color: #06372b; }


/* =====================================================================
   15. PHP 兜底详情页的原生播放器（.vp-fallback）· 2026-09-18
   ---------------------------------------------------------------------
   正常流量走 Nuxt 的 VideoPlayer.vue（自定义全屏 / 横竖屏 / 右侧互动）。
   这一条只服务于 Nitro 挂掉时被 nginx error_page 走到的 PHP 详情页，
   所以刻意不做任何自定义控制条 —— 原生 controls 就是最稳的选择，
   兜底页少一个脚本依赖就少一个坏点。

   比例做成 16:9 而不是 9:16：兜底页拿不到视频的真实宽高
   （要等 loadedmetadata，那就需要 JS），16:9 对横屏视频是正确比例，
   竖屏视频会被原生控件按 contain 完整显示，不会裁画面。
   ===================================================================== */
.vp-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0d0c;
  border-radius: var(--r-lg);
  object-fit: contain;
}
/* 【2026-09-19】兜底播放器不再用原生 controls（手机 webview 的原生控件
   自带静音/下载/投屏按钮，用户要求全部删除）。点按播放/暂停，
   中央自绘播放键由 .is-play 控制显隐（handler 内联在 t_show.php）。 */
.vp-wrap { position: relative; }
.vp-wrap__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity .18s ease;
}
.vp-wrap.is-play .vp-wrap__play { opacity: 0; }

/* ======================================================================
 *  16. 视频反下载 / 反嗅探（全局）
 * ----------------------------------------------------------------------
 *  用户要求「隐藏所有视频的下载链接，并且不准嗅探到」。
 *
 *  先说清楚能做到什么、做不到什么（别让人以为这是万能的）：
 *    · 做不到：视频要播就得把字节送到浏览器。任何"绝对取不到"的说法
 *      都是假的 —— 抓包工具、录屏永远能拿到画面。前端只能消除**下载入口**。
 *    · 做得到：① 干掉浏览器原生控件里的"下载"按钮；
 *              ② 关掉画中画/投屏这类能另存画面的入口；
 *              ③ 右键菜单、拖拽另存一律拦掉；
 *              ④ 链接离开本站即失效（见七牛 Referer 防盗链）。
 *
 *  第一段是内核选择器 —— 只有 Chrome/Edge 认，效果是彻底隐藏下载图标。
 *  （JS 侧的 controlslist="nodownload" 已经加在每个 <video> 上了，
 *    两者是互补关系：属性管新元素，CSS 管老浏览器兜底。）
 * ====================================================================== */
/* ★ 2026-09-19 补全：华为鸿蒙 / X5 / UC 等内核不认上面那几条，
 *   用户仍然看得到原生控件里的「下载」按钮（报「hero 视频有下载按钮」）。
 *
 *   根因：各内核给下载按钮取的选择器名不一样，只写 webkit 那两条漏了一大半：
 *     · `::-internal-media-controls-download-button`
 *          —— 旧版 Chromium / 部分国产内核（原来只写了这条）
 *     · `::-webkit-media-controls-download-button`
 *          —— 标准 Chromium（★ 原来漏了这条，最要命的一条）
 *     · `::-webkit-media-controls-media-session-download-button`
 *          —— 新版 Chromium 的媒体会话下载入口
 *     · `::-webkit-media-controls-overlay-download-button-container`
 *          —— 画中画浮层里的下载
 *     · `::-webkit-media-controls-toggle-closed-captions-button` 之类
 *          不隐藏 —— 字幕是可用性功能，不是下载入口。
 *
 *   注意：音量/全屏按钮**保留**（用户明确要求「音量控件可以存在」）。
 *        下面隐藏的是「下载」入口，不是整条控件栏。 */
video::-internal-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-media-session-download-button { display: none !important; }
video::-webkit-media-controls-enclosure { overflow: hidden !important; }
video::-webkit-media-controls-panel { overflow: hidden !important; }
video::-webkit-media-controls-overlay-download-button-container { display: none !important; }

/* 鸿蒙 ArkWeb / 华为浏览器：整条原生控件栏在 H5 同层播放模式下不该出现。
 * 我们的 hero / 播放器都带自定义控件（播放键 + 声音 + 全屏），
 * 原生栏一旦冒出来就是重复 + 带下载入口，所以这里直接归零。
 * ⚠️ 只对「已挂自定义控件」的媒体生效 —— 用 .hsq__media / .vf__video /
 *    .vp__stage video 收口，避免误伤正文里依赖原生控件的 <video>。 */
.hsq__media::-webkit-media-controls,
.vf__video::-webkit-media-controls,
.vp__stage video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none !important;
}

/* 视频本身不允许被选中/拖拽另存（拖进桌面 = 保存文件） */
video,
video::-webkit-media-controls {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; /* iOS 长按不弹"存储视频" */
}

/* ----------------------------------------------------------------------
 *  全屏播放器里的 <video> 必须不受"正文视频"样式影响
 * ----------------------------------------------------------------------
 *  app.css 里有一条 `.yq-content video, .yq-detail video, article video
 *  { width:100%; max-height:70vh; border-radius; margin:12px 0 }`。
 *  它的 `article video` 分支会命中**任何** <article> 里面的视频 ——
 *  包括全屏播放器（容器曾是 <article class="vf__slide">）。
 *  实测后果：848px 高的画面被压成 593.6px（=70vh），还平白多出 12px 外边距
 *  和圆角，观感从"全屏播放器"退化成"网页里嵌了一块视频"。
 *
 *  修了两处：① 播放器容器标签改成 <div>（源头绕开 tag 选择器）；
 *          ② 这里再显式重置一次，作为兜底 —— 以后谁再加一条 tag 选择器
 *             都不会再把这个播放器打回嵌入态。
 * ---------------------------------------------------------------------- */
.vf__slide video,
.vp__stage video,
.vp video {
  max-height: none;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

/* =====================================================================
   16. 图集挂图占位（.yq-img-miss）· 2026-09-19
   ---------------------------------------------------------------------
   公益板块正文图来自外站（宝贝回家/中国寻亲），实测对方 521 / 防盗链回
   HTML —— <img> 渲染失败出现破图。show.vue 的 @error 兜底把坏图换成
   本占位卡：与瀑布流文字笔记同一气质，不再出现碎图标。
   ===================================================================== */
.yq-img-miss {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(26,122,74,.05) 0 12px, transparent 12px 24px),
    var(--bg-2, #f3f6f4);
  color: var(--tx-3, #8aa398);
  font-size: 13px;
  letter-spacing: .04em;
}


/* ==================================================================
   16. 无限滚动哨兵锚点（.yq-sentinel）· 2026-09-19
   ------------------------------------------------------------------
   背景：以前这个位置就是文案容器（.yq-more 里塞「已经到底了」），
   一个 DOM 同时干两件事。现在文案交给了 ScrollEnd 组件（.yq-end），
   哨兵退回它本来的职责 —— 只是 IntersectionObserver 的观察目标。

   为什么必须高度 0：
     哨兵若带高度，滚动到接近底部时会**先**触发预加载，
     然后文案才出现 —— 布局位移把哨兵又推出视口，出现「加载中…」
     闪一下又消失、翻页反复触发的抖动。
     高度 0 时它贴在前一个卡片下沿，触发点稳定，不会自己动。

   visibility:hidden 而不是 display:none：
     display:none 的元素不产生盒，IntersectionObserver **看不到它**，
     无限滚动会整体失效。visibility:hidden 保留盒，观察正常。
   ================================================================== */
.yq-sentinel {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  /* 跨列瀑布流里不能占一列，否则 column 会为它单独起一列 */
  column-span: all;
  break-inside: avoid;
}


/* ==================================================================
   17. 详情页底栏（报名 + 评论输入）溢出修复 · 2026-09-19
   ------------------------------------------------------------------
   用户反馈：「报名活动的评论和立即报名设计有问题，UI溢出」。

   实测（agent-browser，320px 视口 /show?id=224）：
     .cm-bar 里 发送 按钮右缘 = 366px，bar 宽只有 314px → 溢出 52px，
     发送按钮被硬裁掉。360px 视口同样溢出（被 glass 背景遮住不明显）。

   根因：
     <input> 的 flex 最小尺寸是固有宽度（约 180px），flex:1 压不下去。
     视口 − 按钮宽 < 180px 时，输入框寸步不让，发送被挤出。

   修法（三件）：
     1. .cm-bar__in { min-width:0; width:0 } —— 经典 input 收缩修法，
        width:0 + flex:1 让它从 0 开始按剩余空间分，min-width:0 允许缩；
     2. 三件套统一 40px 高（原 42/38/38 不齐，视觉发歪）；
     3. ≤400px 时收紧按钮内边距与字号，320px 老机也能一行放下。
   ================================================================== */
.cm-bar {
  /* 底栏自身兜底：内容万一超宽按中缝裁，不再把按钮推出屏幕 */
  overflow: hidden;
}
.cm-bar .yq-btn {
  height: 40px;
}
.cm-bar__in {
  flex: 1 1 0;
  min-width: 0;      /* ⚠️ 关键：input 默认 min-width:auto=固有宽度，不缩 */
  width: 0;          /* flex-basis 从 0 起分，而不是从固有宽度起分 */
  height: 40px;
}
.cm-bar .yq-btn--sm { height: 40px; }

@media (max-width: 400px) {
  .cm-bar { padding-left: var(--sp-2); padding-right: var(--sp-2); }
  .cm-bar .yq-btn { padding: 0 12px; font-size: 13.5px; letter-spacing: -.1px; }
  .cm-bar__in { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 340px) {
  .cm-bar .yq-btn { padding: 0 9px; font-size: 12.5px; }
  .cm-bar__in { padding: 0 10px; }
}

/* ==========================================================================
   18. AI 创建活动 · 2026-09-19 重做
   --------------------------------------------------------------------------
   本次改动：
     · `.ai-form__in` —— 确认卡改为**可编辑**，新增输入框样式
     · `.ai-msgs` 高度自适应 —— 原固定 46vh，内容多了要手动滚，内容少了留白
     · `.ai-quick` 空态隐藏
     · 小屏（≤360px）适配
   ========================================================================== */

/* 确认卡：每个字段一行「标签 + 输入框」 */
.ai-form__row {
  align-items: flex-start;   /* 多行 textarea 时标签顶对齐 */
}
.ai-form__k {
  flex: 0 0 62px;
  padding-top: 9px;          /* 与输入框首行文字对齐 */
  font-size: 12.5px;
  line-height: 1.3;
}
.ai-form__in {
  flex: 1 1 0;
  /* ⚠️ 两个都要写：
     input/textarea 是替换元素，min-width:auto 等于其固有宽度（约 180px），
     只写 flex:1 在窄屏压不下去，会把卡片撑破 —— 与 .cm-bar__in 同一个坑。 */
  min-width: 0;
  width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm, 8px);
  background: var(--bg-raise-2, #f7f8fa);
  color: var(--text-1, #1a1a1a);
  font-size: 13.5px;
  line-height: 1.5;
  font-family: inherit;
  outline: 0;
  resize: vertical;
}
.ai-form__in:focus {
  border-color: #a98bf7;
  background: var(--bg-raise, #fff);
}
.ai-form__in::placeholder { color: var(--text-third, #9aa3ad); }
textarea.ai-form__in { min-height: 62px; }

/* 消息区：给个区间而不是死高度，内容少时不空旷 */
.ai-msgs {
  min-height: 240px;
  height: 46vh;
  max-height: 52vh;
}

/* 快捷胶囊：一行放不下就横滑，不换行撑高 */
.ai-quick {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.ai-quick::-webkit-scrollbar { display: none; }
.ai-quick > * { flex: 0 0 auto; }

/* 发送按钮：禁用态给个明确的视觉，避免"点了没反应"的错觉 */
.ai-in__send:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 360px) {
  .ai-form__k { flex: 0 0 54px; font-size: 12px; }
  .ai-form__in { font-size: 13px; padding: 7px 9px; }
  .ai-form__row { padding-left: 10px; padding-right: 10px; }
  .ai-quick { padding-left: 10px; padding-right: 10px; }
  .ai-in { padding-left: 10px; padding-right: 10px; }
}



/* =====================================================================
   16. 个人主页「商品」tab + 闲置会话上下文 · 2026-09-20
   ---------------------------------------------------------------------
   两件事挤在一节里，因为它们同属一条链路：闲鱼 → 用户主页 → 聊起来。
     · .pfg    个人主页的商品网格（**刻意不是瀑布流** —— 商品要横向比价，
               错列会让「哪件贵」看不出来；图文才适合瀑布流）
     · .ct-note / .ct-bar--off  无法私信时的解释条与引导（/chat）
     · .ct-idle__ctx            会话里「这属于闲鱼」的标记
   两端共用：PHP 模板（t_user/t_chat）与 Nuxt（u.vue）类名逐字一致。
   ===================================================================== */

/* ---------- 16.1 商品网格 .pfg ---------- */
.pfg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
@media (min-width: 640px) {
  .pfg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pfg__i {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  background: var(--bg-raise-2);
  border: 1px solid var(--border-1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--ease-out);
}
.pfg__i:active { transform: scale(.985); }

.pfg__p {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;          /* 方图：两列并排时视觉最整齐 */
  background: var(--bg-base) center/cover no-repeat;
}
.pfg__b {
  display: flex; flex-direction: column; gap: 3px;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}
.pfg__t {
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.pfg__pr { display: inline-flex; align-items: baseline; gap: 1px; }
.pfg__pr i { font-size: 11px; font-style: normal; font-weight: 700; color: #d92b3a; }
.pfg__pr b {
  font-size: 16px; font-weight: 800; color: #d92b3a;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.pfg__s {
  position: absolute; left: 0; top: var(--sp-2);
  padding: 3px 8px;
  border-radius: 0 var(--r-full) var(--r-full) 0;
  background: rgba(20,24,32,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal;
}
.pfg__more {
  display: block; margin: var(--sp-4) auto 0;
  width: fit-content;
  padding: 9px var(--sp-5);
  border-radius: var(--r-full);
  border: 1px solid var(--border-1);
  background: var(--bg-raise-2);
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-second);
  text-decoration: none;
}

/* ---------- 16.2 无法私信时的解释条（/chat） ----------
   ★ 为什么必须有这块：canDm=false 时旧模板**照样渲染输入框**，
     用户发出去毫无反应 —— 看起来像坏了。现在输入框整个不渲染，
     换成这条解释 + 一个明确出口（去 TA 的主页）。 */
.ct-note {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  margin: 0 var(--sp-4) var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--accent-50, #fff7ed);
  border: 1px solid var(--accent-100, #ffedd5);
  color: var(--text-second);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ct-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--brand-600, #12a054); }

/* 底部：没有输入框，只有一个引导按钮 */
.ct-bar--off { display: flex; justify-content: center; padding: var(--sp-3) var(--sp-4); }
.ct-bar__cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 var(--sp-5);
  border-radius: var(--r-full);
  background: var(--bg-raise-2);
  border: 1px solid var(--border-1);
  color: var(--text-primary);
  font-size: var(--fs-sm); font-weight: 700;
  text-decoration: none;
}
.ct-bar__cta:active { background: var(--bg-base); }

/* ---------- 16.3 会话里的「闲置」标记 ---------- */
.ct-idle__ctx {
  display: inline-flex; align-items: center; gap: 4px;
  height: 19px; padding: 0 8px;
  margin-right: 6px;
  border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: var(--brand-500, #4f60b4);
  vertical-align: middle;
  white-space: nowrap;
}
.ct-idle__ctx svg { width: 10px; height: 10px; }

/* ==== 20260921mp1 抽屉三档手势 ====
   height 直接锁 --mp-sheet-h（JS 拖拽实时改），transition 只在档位切换时生效。
   收起态只留把手行，地图整屏可见。 */
.mp__sheet {
  height: var(--mp-sheet-h, 54%);
  max-height: none;
  transition: height .26s var(--ease-out);
}
.mp__sheet.is-drag { transition: none; }
.mp__sheet.is-min .mp__list,
.mp__sheet.is-min .mp__hd__s,
.mp__sheet.is-min .mp__iconbtn { display: none; }
.mp__sheet.is-min .mp__hd { border-bottom-color: transparent; }
.mp__sheet.is-min .mp__hd { padding-bottom: var(--sp-2); }
.mp__hd { cursor: grab; touch-action: none; }
.mp__hd:active { cursor: grabbing; }

/* ==========================================================================
   20260921mc1 · 露营地图并入活动地图
   --------------------------------------------------------------------------
   · .mp__filters / .mp__filter —— 类型筛选条（全部 / 活动 / 营地）
   · .mp__mk--camp              —— 营地标：绿色卡通帐篷（露营专属标识）
   · .mp__mk--av                —— 活动标：封面圆形头像（活动地点直接看到活动）
   · .mp__card                  —— 营地信息卡（营地没有独立详情页，点标记就地弹）
   · .ca__*                     —— 添加营地页 /campadd
   ★ 横滑条 touch-action 必须写 `pan-x pan-y`：gesture.css 给 body 全局 pan-y，
     写纯 pan-x 会把纵向滚动也禁掉（手指落在筛选条上就滚不动整页）。
   ========================================================================== */

/* ---- 类型筛选条（搜索框下方一行）---- */
.mp__filters {
  position: absolute;
  top: calc(var(--sp-3) + 50px);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  pointer-events: auto;
}
.mp__filters::-webkit-scrollbar { display: none; }

.mp__filter {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  background: var(--bg-raise);
  color: var(--text-second);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-2, 0 2px 8px rgba(23,33,27,.14));
}
.mp__filter.is-on {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 2px 10px rgba(31,190,102,.32);
}
.mp__filter--add {
  color: var(--brand-600);
}

/* ---- 营地标：绿色帐篷 ---- */
.mp__mk--camp .mp__mk__pin {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #3fbf85, #1f8a5f);
  border-color: #fff;
}
.mp__mk--camp.is-on .mp__mk__pin {
  box-shadow: 0 0 0 4px rgba(31,138,95,.26), 0 2px 10px rgba(23,33,27,.3);
}
.mp__mk--camp .mp__mk__ico { color: #fff; }

/* ---- 活动标：封面圆形头像 ----
   比普通标记大一圈，头像铺满，白边 + 品牌色描边区分「活动」与普通分享。 */
.mp__mk--av .mp__mk__pin {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-sunken);
  border-width: 2px;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(248,166,60,.55), 0 2px 10px rgba(23,33,27,.28);
}
.mp__mk--av.is-on .mp__mk__pin {
  box-shadow: 0 0 0 3px rgba(248,166,60,.85), 0 3px 12px rgba(23,33,27,.32);
}
.mp__mk__av {
  width: 100%;
  height: 100%;
  border-radius: var(--r-full);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- 营地信息卡 ---- */
.mp__card {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: calc(var(--mp-sheet-h) + var(--sp-3));
  z-index: 8;
  max-height: 46%;
  overflow-y: auto;
  padding: 12px 14px 14px;
  border-radius: var(--r-lg, 16px);
  background: var(--bg-raise);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.mp__card.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mp__card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mp__card__kind {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: rgba(31,138,95,.12);
  color: #1f8a5f;
  font-size: 11px;
  font-weight: 700;
}
.mp__card__x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--text-third);
  cursor: pointer;
}
.mp__card__t {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}
.mp__card__m {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-second);
  line-height: 1.5;
}
.mp__card__p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-600);
}
.mp__card__facs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.mp__card__fac {
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--bg-sunken);
  color: var(--text-second);
  font-size: 11px;
}
.mp__card__i {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-second);
  line-height: 1.6;
}

/* ---- 列表行：营地 ---- */
.mp__row--camp { cursor: pointer; }
.mp__row__tent { color: #1f8a5f; }
.yq-tag--camp {
  background: rgba(31,138,95,.12);
  color: #1f8a5f;
}

/* ---- 抽屉头右侧按钮组 ---- */
.mp__hd-acts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp__hd-acts .mp__iconbtn {
  text-decoration: none;
  display: grid;
  place-items: center;
}

/* ---- /camp 重定向兜底 ---- */
.ca__redirect {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-second);
  font-size: 14px;
}
.ca__redirect a { color: var(--brand-600); }

/* ---- 添加营地页 /campadd ---- */
.ca {
  padding: var(--sp-4) var(--sp-4) 40px;
  max-width: 680px;
  margin: 0 auto;
}
.ca__hd { margin-bottom: var(--sp-4); }
.ca__h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.ca__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-third);
}
.ca__form { display: flex; flex-direction: column; gap: 12px; }
.ca__fl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-second);
}
.ca__in {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, rgba(23,33,27,.12));
  border-radius: var(--r-sm, 10px);
  background: var(--bg-raise);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.ca__ta { height: 96px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.ca__row { display: flex; gap: 10px; }
.ca__row .ca__fl { flex: 1 1 0; min-width: 0; }
.ca__fac { display: flex; flex-wrap: wrap; gap: 8px; }
.ca__fac-i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--bg-raise);
  border: 1px solid var(--border, rgba(23,33,27,.12));
  font-size: 13px;
  color: var(--text-second);
  cursor: pointer;
}
.ca__fac-i.is-on {
  background: rgba(31,138,95,.12);
  border-color: #1f8a5f;
  color: #1f8a5f;
  font-weight: 600;
}
.ca__fac-i input { margin: 0; }
.ca__hint {
  margin-top: 12px;
  font-size: 13px;
}
.ca__hint.is-err { color: #e2544a; }
.ca__hint.is-ok { color: var(--brand-600); }
.ca__acts {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.ca__btn {
  flex: 1 1 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.ca__btn--p { background: var(--grad-brand); color: #fff; }
.ca__btn--ghost { background: var(--bg-sunken); color: var(--text-second); }
.ca__btn[disabled] { opacity: .6; }
.ca__btn--sm { height: 36px; flex: 0 0 auto; padding: 0 16px; }
