/* ==========================================================================
   组件
   纪律：辉光只在 hover/focus/active 出现；静态卡片只用边框 + 内高光。
   每屏常驻发光元素不超过 3 个（品牌标、主 CTA、激活态导航）。
   ========================================================================== */

/* ---------------------------------------------------------------- 玻璃面 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-highlight);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--bg-1); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--bg-1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* 素面卡片：静态元素用这个，不挂 box-shadow */
.card {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.card--pad { padding: var(--s-5); }
.card--pad-sm { padding: var(--s-4); }

/* 渐变描边卡片：用 padding + background-clip 实现，
   比大半径 box-shadow 便宜得多，是霓虹描边的正确做法 */
.card--edge {
  position: relative;
  background: var(--bg-1);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.card--edge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  min-height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  background: var(--bg-2);
  color: var(--text-0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--bg-3); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* 主 CTA：渐变 + 内高光 + 柔和辉光 */
.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--glow-soft);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--glow-pink); filter: brightness(1.05); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text-1);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--text-0); border-color: rgba(207, 106, 62, .5); background: var(--bg-2); box-shadow: none; transform: translateY(-1px); }

.btn--danger { background: transparent; border-color: rgba(217, 83, 79, .5); color: var(--danger); box-shadow: none; }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); transform: translateY(-1px); }

/* 品牌质感按钮：柔和玻璃 + 彩色渐变字体（顶部「发布 / 登录」等） */
.btn--brand {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-sm);
}
.btn--brand .text-gradient { font-weight: 700; letter-spacing: .01em; }
.btn--brand:hover {
  border-color: rgba(207, 106, 62, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-md);
  transform: translateY(-1px);
}

.btn--sm { min-height: 30px; padding: var(--s-1) var(--s-3); font-size: var(--fs-xs); }
.btn--lg { min-height: 46px; padding: var(--s-3) var(--s-5); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 38px; height: 38px; min-height: 0; border-radius: var(--r-pill); }
.btn--icon .icon { display: inline-flex; align-items: center; justify-content: center; }
.btn--icon svg { display: block; }

/* 图标按钮质感：玻璃 + 悬停微光（顶部主题/退出等） */
.btn--icon.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--icon.btn--ghost:hover {
  color: var(--text-0);
  border-color: rgba(207, 106, 62, 0.5);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 1px rgba(207, 106, 62, 0.25), var(--glow-soft);
  transform: translateY(-1px);
}
.btn--icon.btn--ghost:active { transform: translateY(0) scale(0.96); }

/* 已激活的图标按钮（已点赞/已关注） */
.btn--active { color: var(--neon-pink); border-color: rgba(226, 88, 107, 0.4); }

/* ---------------------------------------------------------------- 标签 / 徽章 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--glass-border);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
a.tag:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }

.tag--cyan  { color: var(--neon-cyan);   border-color: rgba(232, 150, 60, 0.35); }
.tag--pink  { color: var(--neon-pink);   border-color: rgba(226, 88, 107, 0.35); }
.tag--violet{ color: var(--neon-violet); border-color: rgba(207, 106, 62, 0.35); }
.tag--lime  { color: var(--neon-lime);   border-color: rgba(163, 160, 58, 0.35); }
.tag--amber { color: var(--neon-amber);  border-color: rgba(240, 180, 41, 0.35); }

.tag--ok     { color: var(--ok);     border-color: rgba(127, 176, 105, 0.4); }
.tag--warn   { color: var(--warn);   border-color: rgba(240, 180, 41, 0.4); }
.tag--danger { color: var(--danger); border-color: rgba(217, 83, 79, 0.4); }

/* 性别筛选用 */
.chip {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .01em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.chip:hover { color: var(--text-0); border-color: rgba(207, 106, 62, .45); transform: translateY(-1px); }
.chip.is-active {
  color: #fff;
  background: var(--grad-cta);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--glow-soft);
}

/* ---------------------------------------------------------------- 头像 */
.avatar {
  flex-shrink: 0;
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-1);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  user-select: none;
}
.avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.avatar--md { width: 44px; height: 44px; font-size: var(--fs-md); }
.avatar--lg { width: 88px; height: 88px; font-size: var(--fs-xl); }
.avatar--xl { width: 120px; height: 120px; font-size: var(--fs-3xl); }

/* 头像用渐变字面，避免加载图前是一片灰 */
.avatar--fallback { background: var(--grad-primary); color: #fff; }

/* 头像 + 文本的作者行 */
.author {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.author__name {
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- 穿搭卡片 */
.post-card {
  position: relative;
  z-index: 0;                /* 建立层叠上下文，hover 抬起来时才盖得住邻居 */
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

/* 悬停上浮。
   选择器故意写成 .post-card.post-card:hover（特异性 0,3,0）来压过
   effects.css 的 .reveal.is-in { transform: none }（0,2,0）。
   两者原本同为 (0,2,0)，而 effects.css 后加载 —— 结果是所有带入场动画的卡片
   悬停都不上浮，只有首屏那几张跳过动画的会动。提高一档特异性是这里最干净的解法。 */
.post-card.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 106, 62, 0.45);
  box-shadow: var(--glow-lift), var(--glow-soft);
  z-index: 2;                /* 上浮和辉光不能被同一列的下一张盖住 */
}

/* 封面宽高比。
   默认 3:4 是等宽网格时代留下的「行行对齐」方案；
   瀑布流按三档比例错落（见 postCard.js 的 coverRatio）。
   修饰类特异性 (0,2,0) 高于 .post-card__media (0,1,0)，所以能覆盖默认值。
   --tall 不写规则：它就是下面这个 3/4。 */
.post-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  overflow: hidden;
}
.post-card--square .post-card__media { aspect-ratio: 1 / 1; }
.post-card--wide   .post-card__media { aspect-ratio: 4 / 3; }
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }

/* 多图角标 */
.post-card__count {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: #fff;
  background: rgba(7, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 状态角标（待审核/已隔离） */
.post-card__status {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.post-card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

/* 标题。比正文重一档，但只有一行 —— 卡片高度要整齐 */
.post-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text-0);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__caption {
  font-size: var(--fs-sm);
  color: var(--text-1);
  line-height: var(--lh-normal);
  /* 固定两行，卡片高度才整齐 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--glass-border);
  font-size: var(--fs-xs);
  color: var(--text-2);
}

/* 点赞/评论计数按钮 */
.metric {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.metric:hover { color: var(--text-0); }
.metric.is-liked { color: var(--neon-pink); }
.metric:active { transform: scale(1.2); }
.metric__icon { font-size: 15px; line-height: 1; }

.metric.is-bookmarked { color: var(--style-accent, var(--neon-violet)); }

/* 卡片上的删除（作者本人 / 管理员可见） */
.metric--danger:hover { color: var(--danger); }
.metric--danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* 单品条：小缩略图 + 名称，点进单品页看同款搭配 */
.item-strip { gap: var(--s-2); }
.item-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px var(--s-2) 2px 2px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  font-size: var(--fs-xs);
  color: var(--text-1);
  max-width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.item-chip:hover { color: var(--text-0); border-color: rgb(var(--aurora-1) / 0.5); }
.item-chip img {
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex-shrink: 0;
}
.item-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9ch; }

/* 点赞时的一次性脉冲 */
@keyframes like-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.metric.just-liked .metric__icon { animation: like-pop 380ms var(--ease-spring); }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: var(--s-2); }

.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-1);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: var(--s-3);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-2); }
.input:hover,
.textarea:hover,
.select:hover { border-color: rgba(255, 255, 255, .14); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--neon-violet);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(207, 106, 62, .18), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.textarea { resize: vertical; min-height: 92px; line-height: var(--lh-normal); }

.select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-1) 50%),
                    linear-gradient(135deg, var(--text-1) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--s-7);
}

/* ---------------------------------------------------------------- 自定义下拉（彩色字体 + 柔和玻璃） */
.cselect { position: relative; width: 100%; }
.cselect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: hsl(var(--h, 24) 55% 78%);
  font: inherit;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.cselect__trigger:hover { border-color: hsl(var(--h, 24) 55% 60% / .5); transform: translateY(-1px); }
.cselect.is-open .cselect__trigger {
  border-color: var(--neon-violet);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(207, 106, 62, .18);
}
.cselect__value.is-placeholder { color: var(--text-2); font-weight: 500; }
.cselect__caret { color: var(--text-2); display: inline-flex; transition: transform var(--dur) var(--ease-out); }
.cselect.is-open .cselect__caret { transform: rotate(180deg); }

.cselect__menu {
  position: absolute;
  z-index: var(--z-dropdown);
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 300px;
  overflow-y: auto;
  padding: var(--s-1);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: cselect-in .16s var(--ease-out);
}
@keyframes cselect-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cselect__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 600;
  letter-spacing: .01em;
  color: hsl(var(--h, 24) 55% 76%);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cselect__option:hover { background: hsl(var(--h, 24) 55% 55% / .14); color: hsl(var(--h, 24) 70% 86%); }
.cselect__option.is-active {
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 24) 58% 58%), hsl(calc(var(--h, 24) + 30) 58% 50%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.cselect__empty { padding: var(--s-2) var(--s-3); }
html[data-theme="light"] .cselect__trigger { color: hsl(var(--h, 24) 50% 40%); }
html[data-theme="light"] .cselect__option { color: hsl(var(--h, 24) 50% 38%); }

/* ---------------------------------------------------------------- 语言切换（全站） */
.langpick { position: relative; display: inline-flex; }
.langpick__btn { gap: 3px; }
.langpick__globe { display: inline-flex; }
.langpick__code { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.langpick__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-dropdown, 60);
  min-width: 172px;
  max-height: 62vh;
  overflow-y: auto;
  padding: var(--s-1);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: cselect-in .16s var(--ease-out);
}
.langpick__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 600;
  letter-spacing: .01em;
  color: hsl(var(--h, 24) 55% 76%);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.langpick__opt:hover { background: hsl(var(--h, 24) 55% 55% / .14); color: hsl(var(--h, 24) 70% 86%); }
.langpick__opt.is-active {
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 24) 58% 58%), hsl(calc(var(--h, 24) + 30) 58% 50%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.langpick__short { font-size: 11px; opacity: .7; }
html[data-theme="light"] .langpick__opt { color: hsl(var(--h, 24) 50% 38%); }

/* ---------------------------------------------------------------- 通知铃铛 */
.notif { position: relative; display: inline-flex; }
.notif__btn { position: relative; }
.notif__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5d8f, #ff2d55);
  box-shadow: 0 0 0 2px var(--bg-1, #0b0f1c), 0 2px 6px rgba(255, 45, 85, .5);
}
.notif__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-dropdown, 60);
  width: min(340px, 86vw);
  max-height: 64vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: cselect-in .16s var(--ease-out);
}
.notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--glass-border);
}
.notif__read {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm, .85rem);
  font-weight: 600;
  color: var(--neon-violet, #cf6a3e);
}
.notif__list { overflow-y: auto; padding: var(--s-1); }
.notif__item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.notif__item:hover { background: var(--bg-2); }
.notif__item.is-unread { background: rgba(207, 106, 62, .10); }
.notif__main { min-width: 0; }
.notif__text { font-size: var(--fs-sm, .85rem); line-height: 1.4; }
.notif__time { margin-top: 2px; }
.notif__dot {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
}
.notif__empty { padding: var(--s-4); text-align: center; }
html[data-theme="light"] .notif__item.is-unread { background: rgba(207, 106, 62, .12); }

/* 邀请链接 */
.invite-link {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: var(--s-2) var(--s-3);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm, .85rem);
  color: var(--neon-violet, #cf6a3e);
}

/* ---------------------------------------------------------------- 搜索联想词 */
.nav__search { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown, 60);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  padding: var(--s-1);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: cselect-in .16s var(--ease-out);
}
.search-suggest__item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--text-1);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.search-suggest__item:hover { background: var(--bg-2); }
.search-suggest__mark { width: 18px; flex: none; text-align: center; color: var(--neon-violet, #cf6a3e); }
.search-suggest__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest__sub { color: var(--text-2); font-size: var(--fs-xs, .75rem); }

/* ---------------------------------------------------------------- 数据看板 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}
.stat-card__value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.stat-card__label { font-size: var(--fs-xs, .78rem); color: var(--text-2); }
.stat-card__sub { font-size: var(--fs-xs, .72rem); color: var(--text-2); }

/* 数据看板：趋势折线 */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.trend-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}
.trend-card__head { display: flex; align-items: baseline; justify-content: space-between; }
.trend-card__title { color: var(--text-2); font-size: var(--fs-sm, .85rem); }
.trend-card__total { font-weight: 800; font-size: 1.1rem; }
.trend-card__svg { display: block; line-height: 0; }
.trend-card__svg svg { display: block; width: 100%; height: auto; }
.trend-card__axis { display: flex; justify-content: space-between; }

/* ---------------------------------------------------------------- 页面切换过渡（不闪屏） */
/* 有 View Transitions 时：让「旧页 → 新页」的交叉淡入平滑一点 */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .12s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}
/* 交叉淡入时给整屏一块底色，杜绝中间那一帧白屏/空屏 */
::view-transition { background: var(--bg-0, #070A14); }

@keyframes view-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* 不支持 View Transitions 的浏览器才用「新页淡入」兜底 ——
   两者同时开会让内容先透明再出现，反而更像闪。 */
@supports not (view-transition-name: root) {
  .app-main > * { animation: view-fade-in .18s cubic-bezier(.22, 1, .36, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .app-main > * { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

.field-error {
  font-size: var(--fs-xs);
  color: var(--danger);
}

/* 输入框外的搜索条 */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search .input { padding-left: var(--s-6); }
.search__icon {
  position: absolute;
  left: var(--s-3);
  color: var(--text-2);
  pointer-events: none;
  font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------- 上传区 */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  color: var(--text-2);
  background: var(--bg-1);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--neon-cyan);
  background: var(--bg-2);
  color: var(--text-1);
}
.dropzone__hint { font-size: var(--fs-sm); margin-top: var(--s-2); }

/* 预览缩略图栅格 —— 同样用等宽网格保持整齐 */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.preview {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-2);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview__remove {
  position: absolute;
  top: var(--s-1);
  right: var(--s-1);
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  border: 0;
  background: rgba(7, 10, 20, 0.78);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1;
  display: grid;
  place-items: center;
}
.preview__remove:hover { background: var(--danger); }
.preview__cover {
  position: absolute;
  bottom: var(--s-1);
  left: var(--s-1);
  padding: 1px var(--s-2);
  border-radius: var(--r-pill);
  font-size: 10px;
  background: var(--glass-bg-strong);
  color: var(--text-1);
}

/* ---------------------------------------------------------------- 模态框 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background: rgba(18, 12, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in var(--dur) var(--ease-out);
}
.modal {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: modal-in var(--dur) var(--ease-spring);
}
.modal__title { margin-bottom: var(--s-4); font-size: var(--fs-lg); }
.modal__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: flex-end;
  margin-top: var(--s-5);
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Toast */
.toast-stack {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: none;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--neon-cyan);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  animation: toast-in var(--dur) var(--ease-spring);
  pointer-events: auto;
}
.toast--ok     { border-left-color: var(--ok); }
.toast--error  { border-left-color: var(--danger); }
.toast--warn   { border-left-color: var(--warn); }
.toast.is-leaving { animation: toast-out var(--dur) var(--ease-out) forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(24px); }
}
@media (max-width: 640px) {
  .toast-stack { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
  .toast { max-width: none; }
}

/* ---------------------------------------------------------------- 侧栏面板 */
.panel {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
}
.panel__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3);
}

.list-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-md);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.list-row:hover { background: var(--bg-2); }
.list-row__main { min-width: 0; flex: 1; }
.list-row__title {
  font-size: var(--fs-sm);
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row__sub { font-size: var(--fs-xs); color: var(--text-2); }

/* ---------------------------------------------------------------- 统计块 */
.stat {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
}
.stat__value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-xs); color: var(--text-2); margin-top: var(--s-1); }

/* ---------------------------------------------------------------- 个人主页头部 */
.profile-header {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  flex-wrap: wrap;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgba(207, 106, 62, 0.18), transparent 60%),
    radial-gradient(26rem 14rem at 100% 0%, rgba(232, 150, 60, 0.14), transparent 60%),
    var(--bg-1);
}
.profile-header__main { flex: 1; min-width: 220px; }
.profile-header__name {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.profile-stats {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
}
.profile-stats b { font-variant-numeric: tabular-nums; }
/* 统计项。base.css 给所有 a 上了青色，这里要让它看起来还是普通文字。
   可点的那几个悬停才变色，靠这个区分「能点的」和「纯数字」。 */
.profile-stat { display: inline-flex; align-items: baseline; gap: 3px; }
a.profile-stat { color: inherit; }
a.profile-stat:hover { color: var(--text-0); }
a.profile-stat:hover .dim { color: var(--text-1); }

/* ---------------------------------------------------------------- 评论区 */
.comment {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--glass-border);
}
.comment:last-child { border-bottom: 0; }
.comment__main { flex: 1; min-width: 0; }
.comment__head {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.comment__author { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-0); }
.comment__time { font-size: var(--fs-xs); color: var(--text-2); }
.comment__body { font-size: var(--fs-sm); color: var(--text-1); margin-top: var(--s-1); word-break: break-word; }

/* 待审核/已隔离的评论在作者和管理员眼里加个标记，避免误以为发布失败 */
.comment.is-pending .comment__body { opacity: 0.7; }

/* ---------------------------------------------------------------- 评论区改版：折叠 · 回复 · 投票 */
.comment-list { display: flex; flex-direction: column; }
.comment-thread { display: flex; flex-direction: column; }
.comment--reply { padding-left: var(--s-4); border-left: 2px solid var(--glass-border); border-bottom: 0; }
.comment-replies { display: flex; flex-direction: column; margin: 0 0 var(--s-3) var(--s-5); }
.comment-more { padding-top: var(--s-3); text-align: center; }
.comment__body { white-space: pre-wrap; }
.comment__body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment__votes { display: flex; gap: var(--s-4); margin-top: var(--s-2); }
.vote-btn {
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.vote-btn:hover { background: var(--bg-2); color: var(--text-0); }
.vote-btn.is-on { color: var(--neon-cyan); font-weight: var(--fw-bold); }
.link-btn {
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 0;
  align-self: flex-start;
}
.link-btn:hover { color: var(--text-0); }

/* 正文里的表情 */
.sticker-inline {
  width: 1.7em;
  height: 1.7em;
  vertical-align: -0.45em;
  object-fit: contain;
  display: inline-block;
}

/* ---------------------------------------------------------------- 表情选择面板 */
.sticker-picker { margin-top: var(--s-2); }
.sticker-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.sticker-tab {
  font: inherit;
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
}
.sticker-tab.is-active { background: var(--grad-cta); color: var(--text-inverse); border-color: transparent; font-weight: var(--fw-bold); }
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: var(--s-2);
  max-height: 220px;
  overflow-y: auto;
}
.sticker-cell { padding: 4px; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); }
.sticker-cell:hover { background: var(--bg-2); }
.sticker-cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.sticker-footer { margin-top: var(--s-3); display: flex; justify-content: flex-end; }
.sticker-hint { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- @ 联想下拉 */
.mention-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
}
.mention-item {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: none;
  color: var(--text-0);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
}
.mention-item:hover { background: var(--bg-2); }

/* 选中的卡片（如会员套餐选择） */
.card.is-selected {
  box-shadow: 0 0 0 2px var(--neon-amber), var(--shadow-lg);
  border-color: transparent;
}

/* ---------------------------------------------------------------- 录音组件 */
.recorder { margin-top: var(--s-2); }
.recorder audio { max-width: 240px; height: 32px; }
.recorder .btn.is-recording { color: var(--danger); border-color: var(--danger); }

/* ---------------------------------------------------------------- 私聊 */
.chat-box {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--s-2);
}
.chat-row { display: flex; }
.chat-row.is-mine { justify-content: flex-end; }
.chat-stack { display: flex; flex-direction: column; gap: 2px; max-width: 78%; }
.chat-row.is-mine .chat-stack { align-items: flex-end; }
.chat-bubble {
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-0);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble.is-mine { background: var(--grad-cta); color: var(--text-inverse); border-color: transparent; }
.chat-image { max-width: 200px; border-radius: var(--r-sm); display: block; }
.chat-composer { margin-top: var(--s-4); }

/* ---------------------------------------------------------------- 详情页大图 */
.detail-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-2);
}
.detail-media img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- 图片时间地点 */
/* 只在用户填过的时候出现。空着就不显示「未标注」—— 那只是噪音。 */
.media-caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-2);
  padding-inline: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.media-caption__place { display: inline-flex; align-items: center; gap: var(--s-1); }
.media-caption__time { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 表格 */
/* 表格要能读。加了照片背景之后，不铺底的话整张表会被背景透上来糊掉 ——
   后台的表格尤其明显，那里一屏都是文字。 */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--bg-1);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th,
.table td {
  padding: var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.table th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: var(--bg-2);
  position: sticky;
  top: 0;
}
.table tbody tr:hover { background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- 标签页 */
.tabs {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tab {
  padding: var(--s-2) var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.tab:hover { color: var(--text-0); }
.tab.is-active { color: #fff; background: var(--grad-cta); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--glow-soft); }

/* ---------------------------------------------------------------- 类目选择器 */
/* 「先选大类目，再展开小类目」。
   大类目那排直接复用 .tabs / .tab，这里只补展开态和值后缀。 */
.catbar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
/* 手机上大类目多了可以横滑，别把筛选栏撑出横向滚动条 */
.catbar__groups {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar__groups::-webkit-scrollbar { display: none; }

.catbar__group {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  white-space: nowrap;
}
/* 展开中的大类目：明显但克制地"亮起来" */
.catbar__group.is-open {
  color: var(--text-0);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(207, 106, 62, .35);
}
/* 选过值就挂在标签后面，收起时也知道当前筛的是什么 */
.catbar__value { color: var(--style-accent, var(--neon-violet)); font-weight: var(--fw-bold); }

/* 展开的小类目：独立的一块玻璃面板，有种"抽屉拉开"的质感 */
.catbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: catbar-in .22s var(--ease-out);
}
@keyframes catbar-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 展开的小类目：柔和彩色字体（低饱和色相），选中态是对应色相的柔和渐变。
   仍然克制，不刺眼。 */
.catbar__chips .chip {
  color: hsl(var(--h, 24) 58% 74%);
  border-color: hsl(var(--h, 24) 52% 60% / .26);
  background: hsl(var(--h, 24) 52% 55% / .10);
}
.catbar__chips .chip:hover {
  color: hsl(var(--h, 24) 68% 84%);
  border-color: hsl(var(--h, 24) 58% 62% / .5);
  transform: translateY(-1px);
}
.catbar__chips .chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 24) 60% 60%), hsl(calc(var(--h, 24) + 30) 60% 52%));
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 20px hsl(var(--h, 24) 55% 45% / .3);
}
html[data-theme="light"] .catbar__chips .chip { color: hsl(var(--h, 24) 55% 40%); }
html[data-theme="light"] .catbar__chips .chip.is-active { color: #fff; }

/* 手机：小类目横滑一排，不换行。
   风格补到 10 个之后，换行会占掉四排，把刚收回来的竖向空间又吐回去。
   横滑是这类筛选条的常规做法（chip 不缩，靠滑动看全）。 */
@media (max-width: 700px) {
  .catbar__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    /* 让最左/最右的 chip 贴边时不至于被裁掉半个 */
    padding-inline: 2px;
    margin-inline: -2px;
  }
  .catbar__chips::-webkit-scrollbar { display: none; }
  .catbar__chips > .chip { flex-shrink: 0; }
}

/* ---------------------------------------------------------------- 分段条 */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(44rem 22rem at 8% -10%, rgba(226, 88, 107, 0.20), transparent 62%),
    radial-gradient(40rem 20rem at 92% 6%, rgba(232, 150, 60, 0.17), transparent 60%),
    radial-gradient(36rem 22rem at 55% 120%, rgba(207, 106, 62, 0.18), transparent 64%),
    var(--bg-1);
  margin-bottom: var(--s-5);
}
/* 右上角一枚装饰性光环，纯 CSS，给画面加层次 */
.hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(207, 106, 62, 0.28);
  box-shadow: inset 0 0 60px rgba(207, 106, 62, 0.12);
  pointer-events: none;
}
.hero__title {
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-3);
}
.hero__sub {
  color: var(--text-1);
  max-width: 46ch;
  font-size: var(--fs-md);
}
/* 品牌拉丁名，做小字距拉开的装饰行 */
.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s-4);
}
@media (max-width: 640px) {
  .hero { padding: var(--s-6) var(--s-5); }
  .hero__title { font-size: var(--fs-2xl); }
}

/* ---------------------------------------------------------------- 提示条 */
.notice {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-2);
  color: var(--text-1);
}
.notice--warn { border-color: rgba(240, 180, 41, 0.4); background: rgba(240, 180, 41, 0.08); color: var(--warn); }
.notice--danger { border-color: rgba(217, 83, 79, 0.4); background: rgba(217, 83, 79, 0.08); color: var(--danger); }
.notice--ok { border-color: rgba(127, 176, 105, 0.4); background: rgba(127, 176, 105, 0.08); color: var(--ok); }

/* ---------------------------------------------------------------- 分割线 */
.divider {
  height: 1px;
  background: var(--glass-border);
  border: 0;
  margin-block: var(--s-4);
}

/* ---------------------------------------------------------------- 空态 */
/* 站点不预置示例内容，所以这一屏是很多人的第一印象。
   做成一页有分量的引导，而不是敷衍的一句「暂无内容」。 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-5);
  border-radius: var(--r-xl);
  border: 1px dashed var(--glass-border);
  background:
    radial-gradient(28rem 16rem at 50% 0%, rgb(var(--aurora-1) / 0.10), transparent 62%),
    var(--bg-1);
}
.empty__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  font-size: 30px;
  color: var(--style-accent, var(--neon-violet));
  background: rgb(var(--aurora-1) / 0.12);
  border: 1px solid rgb(var(--aurora-1) / 0.28);
  margin-bottom: var(--s-5);
}
.empty__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
}
.empty__desc {
  color: var(--text-1);
  max-width: 46ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-5);
}
.empty__hint {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--text-2);
  max-width: 40ch;
}

/* ---------------------------------------------------------------- 单品卡 */
.item-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--aurora-1) / 0.45);
  box-shadow: var(--glow-lift);
}
/* 单品图用正方形，和信息流的 3:4 区分开 —— 一眼能看出这是另一种内容 */
.item-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.item-card__media img { width: 100%; height: 100%; object-fit: cover; }
.item-card__placeholder { font-size: 34px; color: var(--text-2); }
.item-card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.item-card__name { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.item-card__brand { font-size: var(--fs-xs); color: var(--text-2); }

/* 可塑性星级 */
.versatility { display: inline-flex; gap: 2px; font-size: var(--fs-xs); color: var(--text-2); }
.versatility__dot { color: rgb(var(--aurora-1) / 0.85); }

/* 主页「关于」栏的资料列表 */
.about-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3) var(--s-5);
  margin: 0;
  font-size: var(--fs-sm);
}
.about-list dt { color: var(--text-2); white-space: nowrap; }
.about-list dd { margin: 0; color: var(--text-0); word-break: break-word; }

/* ---------------------------------------------------------------- 商品卡 */
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--glow-lift); }
.product-card__media { aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); }
.product-card__title {
  font-size: var(--fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--style-accent, var(--neon-pink)); }
.price__symbol { font-size: var(--fs-sm); margin-right: 1px; }

/* ---------------------------------------------------------------- 留言 */
.guestbook-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
}
.guestbook-item__body { flex: 1; min-width: 0; }

/* 留言板一级回复 */
.guestbook-thread { display: flex; flex-direction: column; }
.guestbook-replies {
  display: flex;
  flex-direction: column;
  margin-left: var(--s-6);
  padding-left: var(--s-4);
  border-left: 2px solid var(--glass-border);
}
.guestbook-item--reply { padding: var(--s-2) 0; }

/* ---------------------------------------------------------------- 达人徽章 */
.creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px var(--s-2);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--grad-warm);
  vertical-align: middle;
}

/* ---------------------------------------------------------------- 认证页 */
.auth-shell {
  max-width: 420px;
  margin: var(--s-7) auto;
}
.auth-shell__head { text-align: center; margin-bottom: var(--s-5); }
