/* 八卦茶肆 · 论坛列表与详情（与 hub.css 同系色调） */
body.tea-page,
body.tea-post-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--hub-font-body);
  color: var(--hub-text);
  background: var(--hub-bg);
  line-height: 1.55;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.tea-wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 14px calc(80px + env(safe-area-inset-bottom, 0px));
}

/* 茶肆 · 精简顶栏 v2 */
.tea-header--v2 {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -2px 12px;
  padding: 8px 4px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--hub-border) 18%, transparent);
  background: color-mix(in srgb, var(--hub-bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.tea-header--v2 .tea-header__brand {
  flex: 1;
  min-width: 0;
}

.tea-header--v2 .tea-header__mark {
  font-size: 1.15rem;
  line-height: 1.25;
}

.tea-header--v2 .tea-header__sub {
  font-size: 0.62rem;
  opacity: 0.85;
}

.tea-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tea-header__chip {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--hub-border) 70%, transparent);
  background: color-mix(in srgb, var(--hub-bg-plum) 55%, transparent);
  color: var(--hub-text-soft);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tea-header__chip:hover {
  border-color: var(--hub-border-strong);
  color: var(--hub-champagne);
  background: var(--hub-rose-soft);
}

.tea-header__chip--circle {
  border-color: color-mix(in srgb, var(--hub-gold) 35%, transparent);
  color: var(--hub-gold-dim);
}

.tea-panel {
  margin-bottom: 14px;
  padding: 14px 14px 12px;
  border-radius: var(--hub-radius);
  border: 1px solid color-mix(in srgb, var(--hub-border) 55%, transparent);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--hub-bg-plum) 72%, transparent),
    color-mix(in srgb, var(--hub-bg) 82%, transparent)
  );
  box-shadow: 0 10px 28px color-mix(in srgb, var(--hub-bg) 35%, transparent);
}

.tea-panel__intro {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--hub-border) 14%, transparent);
}

.tea-panel__title {
  margin: 0 0 4px;
  font-family: var(--hub-font-display);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 400;
  color: var(--hub-champagne);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.tea-panel__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
  line-height: 1.45;
}

.tea-panel #teaFeedModes {
  margin-bottom: 10px;
}

.tea-panel__filters {
  margin-bottom: 0 !important;
}

.tea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tea-header--bar {
  flex-wrap: nowrap;
  gap: 10px;
}

.tea-header--bar .tea-header__brand {
  flex: 1;
  min-width: 0;
}

@media (max-width: 719px) {
  .tea-header--v2 {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    padding: 6px 2px 8px;
  }

  .tea-header--v2 .tea-header__chip {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .tea-panel {
    padding: 12px 12px 10px;
  }

  .tea-header:has(.hub-menu-btn):not(.tea-header--v2) {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
  }

  .tea-header:has(.hub-menu-btn):not(.tea-header--v2) .hub-menu-btn {
    grid-column: 1;
  }

  .tea-header:has(.hub-menu-btn):not(.tea-header--v2) .tea-header__brand {
    grid-column: 2;
    min-width: 0;
  }

  .tea-header:has(.hub-menu-btn):not(.tea-header--v2) .tea-header__home {
    grid-column: 3;
    justify-self: end;
  }

  .tea-header:has(.hub-menu-btn):not(.tea-header--v2) .tea-header__actions {
    display: none;
  }

  .tea-header--bar,
  .tea-header:not(:has(.hub-menu-btn)) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .tea-header--bar .tea-header__brand,
  .tea-header:not(:has(.hub-menu-btn)) .tea-header__brand {
    flex: 1;
    min-width: 0;
  }

  .tea-header__sub {
    display: none;
  }

  .tea-header__mark {
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 720px) {
  .tea-header:has(.hub-menu-btn) .tea-header__home {
    margin-left: auto;
  }

  .tea-header:has(.hub-menu-btn) .tea-header__home.tea-back--compact {
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 999px;
  }
}

.tea-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tea-header__mark {
  font-family: var(--hub-font-display);
  font-size: 1.5rem;
  color: var(--hub-gold);
  letter-spacing: 0.06em;
}

.tea-header__sub {
  font-size: 0.75rem;
  color: var(--hub-muted);
}

.tea-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tea-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface-2);
  color: var(--hub-text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tea-back:hover {
  border-color: var(--hub-border-strong);
  color: var(--hub-gold);
}

.tea-back__icon {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  color: var(--hub-gold);
}

.tea-back--compact {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.tea-back--compact .tea-back__label {
  display: none;
}

.tea-back-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .tea-back--compact {
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .tea-back--compact .tea-back__label {
    display: inline;
  }
}

.tea-hero {
  padding: 20px 20px 18px;
  border-radius: var(--hub-radius);
  background: linear-gradient(135deg, rgba(42, 16, 32, 0.92), rgba(26, 10, 18, 0.88));
  border: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow);
  margin-bottom: 18px;
}

.tea-hero__title {
  font-family: var(--hub-font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: 0 0 6px;
  color: var(--hub-champagne);
  letter-spacing: 0.08em;
}

.tea-hero__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hub-muted);
}

/* 显示区 + 搜索 · 工具栏（首页嵌入与茶肆页共用） */
.tea-zone-bar--toolbar {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--hub-border) 12%, transparent);
}

.tea-zone-bar--compact .tea-zone-bar__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.tea-zone--inline {
  flex: 1 1 auto;
  min-width: 0;
}

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

.tea-zone--inline select {
  width: 100%;
  min-height: 42px;
  padding: 10px 34px 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hub-border-strong) 88%, transparent);
  background-color: rgba(12, 6, 10, 0.62);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.88rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hub-gold-dim) 50%),
    linear-gradient(135deg, var(--hub-gold-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.tea-search-btn {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hub-border-strong) 88%, transparent);
  background: linear-gradient(155deg, rgba(28, 14, 22, 0.72), rgba(12, 6, 10, 0.68));
  color: var(--hub-champagne, #f2ddb8);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.tea-search-btn__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.tea-search-btn__dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc85a, #e87850);
  box-shadow: 0 0 8px rgba(255, 200, 80, 0.55);
}

.tea-search-btn:hover,
.tea-search-btn:active {
  border-color: var(--hub-gold-dim);
  color: var(--hub-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 184, 120, 0.12);
}

.tea-search-btn.is-active {
  border-color: rgba(232, 184, 120, 0.45);
  color: var(--hub-gold);
  background: linear-gradient(155deg, rgba(232, 184, 120, 0.16), rgba(12, 6, 10, 0.72));
}

.tea-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tea-search-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.tea-search-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(4, 2, 6, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.tea-search-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(242, 221, 184, 0.16);
  background: linear-gradient(165deg, rgba(36, 18, 28, 0.98), rgba(14, 8, 12, 0.99));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.tea-search-sheet.is-open .tea-search-sheet__panel {
  transform: translateY(0) scale(1);
}

.tea-search-sheet__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 8px;
}

.tea-search-sheet__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(242, 221, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.tea-search-sheet__glyph {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--hub-gold-dim);
}

.tea-search-sheet__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.tea-search-sheet__field input::placeholder {
  color: var(--hub-muted);
}

.tea-search-sheet__clear {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hub-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.tea-search-sheet__clear:hover {
  color: var(--hub-gold);
  background: rgba(232, 184, 120, 0.12);
}

.tea-search-sheet__cancel {
  flex-shrink: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--hub-gold-dim);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.tea-search-sheet__cancel:hover {
  color: var(--hub-gold);
}

.tea-search-sheet__hint {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.72rem;
  color: var(--hub-muted);
  line-height: 1.45;
}

.tea-zone-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.tea-zone {
  flex: 1 1 200px;
  min-width: 0;
}

.tea-field-label,
.tea-zone label {
  display: block;
  font-size: 0.68rem;
  color: var(--hub-muted);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.tea-zone select {
  width: 100%;
  padding: 11px 32px 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--hub-border-strong);
  background-color: rgba(12, 6, 10, 0.65);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.9rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hub-gold-dim) 50%),
    linear-gradient(135deg, var(--hub-gold-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tea-zone__hint {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--hub-muted);
  line-height: 1.4;
}

.tea-zone-bar--toolbar .tea-zone__hint {
  margin: 0;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tea-zone__hint:empty {
  display: none;
}

.tea-zone__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  background: var(--hub-rose-soft);
  color: var(--hub-blush);
  vertical-align: middle;
}

.tea-search {
  flex: 2 1 260px;
  min-width: 0;
}

.tea-search label {
  display: block;
  font-size: 0.68rem;
  color: var(--hub-muted);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.tea-search input {
  width: 100%;
  padding: 11px 12px 11px 36px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 249, 246, 0.06);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.tea-search__wrap {
  position: relative;
}

.tea-search__wrap::before {
  content: '⌕';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hub-gold-dim);
  font-size: 1rem;
  pointer-events: none;
}

.tea-tags-scroller {
  position: relative;
  margin: 10px 0 14px;
  max-width: 100%;
}

.tea-tags-scroller--embed {
  margin-top: 6px;
  margin-bottom: 8px;
}

.tea-tags-scroller__track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 4px 6px;
}

.tea-tags-scroller__track::-webkit-scrollbar {
  display: none;
}

.tea-tags-scroller__fade {
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}

.tea-tags-scroller__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--hub-bg, #0c060a) 0%, transparent 100%);
}

.tea-tags-scroller__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--hub-bg, #0c060a) 0%, transparent 100%);
}

.hub-forum-embed .tea-tags-scroller__fade--left {
  background: linear-gradient(90deg, var(--hub-surface, #141018) 0%, transparent 100%);
}

.hub-forum-embed .tea-tags-scroller__fade--right {
  background: linear-gradient(270deg, var(--hub-surface, #141018) 0%, transparent 100%);
}

.tea-tags {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: min-content;
  padding: 0 2px;
}

.tea-tag {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hub-border) 80%, transparent);
  background: color-mix(in srgb, var(--hub-surface) 72%, transparent);
  color: var(--hub-text-soft);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.tea-tag:active {
  transform: scale(0.97);
}

.tea-tag:hover {
  border-color: var(--hub-gold-soft);
  color: var(--hub-gold);
  background: color-mix(in srgb, var(--hub-gold) 8%, transparent);
}

.tea-tag.is-active {
  background: linear-gradient(135deg, var(--hub-rose-deep), var(--hub-rose));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 120, 152, 0.35);
  font-weight: 600;
}

.tea-tag:focus-visible {
  outline: 2px solid var(--hub-gold);
  outline-offset: 2px;
}

.tea-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--hub-muted);
  margin-bottom: 12px;
}

.tea-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tea-card {
  position: relative;
  display: block;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tea-fav-btn {
  position: static;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  background: rgba(12, 6, 10, 0.72);
  color: var(--hub-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.tea-fav-btn__icon {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s;
}

.tea-fav-btn:hover,
.tea-fav-btn:active {
  border-color: var(--hub-gold-dim);
  color: var(--hub-gold);
}

.tea-fav-btn.is-active {
  border-color: rgba(255, 200, 80, 0.55);
  background: linear-gradient(145deg, rgba(255, 180, 80, 0.22), rgba(232, 120, 152, 0.12));
  color: #ffc85a;
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.2);
}

.tea-fav-btn.is-active .tea-fav-btn__icon {
  transform: scale(1.08);
}

.tea-post__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tea-post {
  position: relative;
}

.tea-post__toolbar .tea-post__meta {
  flex: 1;
  min-width: 0;
}

.tea-post__toolbar .tea-fav-btn {
  position: static;
  flex-shrink: 0;
}

.tea-card:hover {
  border-color: var(--hub-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--hub-shadow-rose);
}

.tea-card--pinned {
  border-color: color-mix(in srgb, var(--hub-gold) 35%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--hub-bg-plum) 92%, transparent),
    color-mix(in srgb, var(--hub-surface) 78%, transparent)
  );
}

.tea-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* —— 茶肆 · 图标芯片（标签 / 置顶 / 热 / 赏金 / 分区）—— */
.tea-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tea-chip-row--compact {
  gap: 5px;
}

.tea-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tea-chip-row--compact .tea-chip {
  padding: 3px 7px 3px 5px;
  gap: 0;
}

.tea-chip__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tea-chip-row--compact .tea-chip__icon {
  width: 16px;
  height: 16px;
}

.tea-chip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tea-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.tea-chip--icon-only {
  padding: 5px;
  gap: 0;
  border-radius: 10px;
}

.tea-chip--icon-only .tea-chip__icon {
  width: 17px;
  height: 17px;
}

.tea-chip-row--compact .tea-chip--icon-only {
  padding: 4px;
}

.tea-chip-row--compact .tea-chip--icon-only .tea-chip__icon {
  width: 15px;
  height: 15px;
}

.tea-chip-row--inline {
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.tea-chip-row--inline .tea-chip--icon-only {
  padding: 2px;
  border-radius: 7px;
  box-shadow: none;
}

.tea-chip-row--inline .tea-chip--icon-only .tea-chip__icon {
  width: 13px;
  height: 13px;
}

.tea-chip-row--inline .tea-chip--hot {
  box-shadow: 0 2px 8px rgba(232, 72, 104, 0.28);
}

.tea-chip--zone-compact .tea-chip__label--sr {
  position: absolute;
}

.tea-chip--zone {
  padding: 3px 10px 3px 7px;
  background: linear-gradient(135deg, rgba(232, 184, 120, 0.16), rgba(232, 184, 120, 0.06));
  border-color: rgba(232, 184, 120, 0.28);
  color: var(--hub-gold-dim, #c9a86c);
}

.tea-chip--zone.tea-chip--icon-only {
  padding: 5px;
}

.tea-chip--zone-compact .tea-chip__label {
  max-width: 5.5em;
}

.tea-chip--team {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.22), rgba(88, 166, 255, 0.08));
  border-color: rgba(88, 166, 255, 0.35);
  color: #9fd0ff;
}

.tea-chip--guide {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.08));
  border-color: rgba(124, 92, 255, 0.35);
  color: #c4b5ff;
}

.tea-chip--show {
  background: linear-gradient(135deg, rgba(255, 159, 102, 0.22), rgba(255, 159, 102, 0.08));
  border-color: rgba(255, 159, 102, 0.35);
  color: #ffc9a8;
}

.tea-chip--rant {
  background: linear-gradient(135deg, rgba(255, 107, 129, 0.2), rgba(255, 107, 129, 0.08));
  border-color: rgba(255, 107, 129, 0.32);
  color: #ffb3c0;
}

.tea-chip--love {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.22), rgba(255, 105, 180, 0.08));
  border-color: rgba(255, 105, 180, 0.35);
  color: #ffb8da;
}

.tea-chip--event {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.22), rgba(245, 197, 66, 0.08));
  border-color: rgba(245, 197, 66, 0.35);
  color: #ffe08a;
}

.tea-chip--trade {
  background: linear-gradient(135deg, rgba(76, 201, 164, 0.2), rgba(76, 201, 164, 0.08));
  border-color: rgba(76, 201, 164, 0.32);
  color: #9eebd0;
}

.tea-chip--gossip {
  background: linear-gradient(135deg, rgba(232, 120, 152, 0.22), rgba(232, 120, 152, 0.08));
  border-color: rgba(232, 120, 152, 0.32);
  color: #f5b8ca;
}

.tea-chip--hot {
  background: linear-gradient(135deg, #e84868, #c92d52);
  border-color: rgba(255, 180, 195, 0.35);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 72, 104, 0.35);
}

.tea-chip--pin {
  background: linear-gradient(135deg, rgba(232, 184, 120, 0.28), rgba(232, 184, 120, 0.1));
  border-color: rgba(232, 184, 120, 0.45);
  color: #ffd98a;
}

.tea-chip--bounty {
  background: linear-gradient(135deg, rgba(255, 193, 77, 0.28), rgba(255, 140, 66, 0.12));
  border-color: rgba(255, 193, 77, 0.42);
  color: #ffe0a0;
}

.tea-chip--friend {
  background: linear-gradient(135deg, rgba(120, 220, 180, 0.22), rgba(80, 180, 140, 0.1));
  border-color: rgba(120, 220, 180, 0.38);
  color: #b8f0d8;
}

.tea-chip--badge {
  font-weight: 700;
}

.tea-chip-row--compact .tea-chip--badge {
  padding: 4px;
  border-radius: 10px;
}

.tea-post__meta .tea-chip-row {
  flex: 1;
  min-width: 0;
}

/* 筛选 Tab · 图标 + 文案 */
.tea-tag--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
}

.tea-tag__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.88;
}

.tea-tag__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tea-tag.is-active .tea-tag__icon {
  opacity: 1;
}

.tea-tag--icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.tea-tag--icon-only .tea-tag__icon {
  width: 19px;
  height: 19px;
}

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

.tea-tags {
  gap: 8px;
}

.tea-tag[data-tag='team'] .tea-tag__icon { color: #9fd0ff; }
.tea-tag[data-tag='guide'] .tea-tag__icon { color: #c4b5ff; }
.tea-tag[data-tag='show'] .tea-tag__icon { color: #ffc9a8; }
.tea-tag[data-tag='rant'] .tea-tag__icon { color: #ffb3c0; }
.tea-tag[data-tag='love'] .tea-tag__icon { color: #ffb8da; }
.tea-tag[data-tag='event'] .tea-tag__icon { color: #ffe08a; }
.tea-tag[data-tag='trade'] .tea-tag__icon { color: #9eebd0; }
.tea-tag[data-tag='gossip'] .tea-tag__icon { color: #f5b8ca; }
.tea-tag[data-tag='bounty'] .tea-tag__icon { color: #ffe0a0; }
.tea-tag[data-tag='all'] .tea-tag__icon { color: var(--hub-champagne, #f2ddb8); }
.tea-tag.is-active .tea-tag__icon { color: inherit; }

.tea-card__zone {
  font-size: 0.72rem;
  color: var(--hub-gold-dim);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hub-gold-glow);
}

.tea-card__tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hub-rose-soft);
  color: var(--hub-blush);
}

.tea-card__author {
  font-size: 0.82rem;
  color: var(--hub-text-soft);
}

.tea-card__role {
  font-size: 0.68rem;
  color: var(--hub-gold);
  margin-left: 4px;
}

.tea-card__badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.tea-card__badge--hot {
  background: var(--hub-rose);
  color: var(--paper, #fff);
}

.tea-card__badge--pin {
  background: var(--hub-gold-glow);
  color: var(--hub-gold);
  border: 1px solid var(--hub-border);
}

.tea-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hub-champagne);
  line-height: 1.4;
}

.tea-card__excerpt {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card__foot {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
}

.tea-card__foot--bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.tea-card__foot--bar .tea-card__foot-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tea-card__foot-tail {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 10px;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.tea-card__foot-tail .tea-card__cta {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tea-card__foot-tail .tea-action-dock {
  margin-left: 2px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tea-card__foot--compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
}

.tea-card__foot--compact .tea-chip-row--inline {
  margin-left: auto;
}

.tea-card__foot--compact .tea-card__foot-text {
  flex: 1;
  min-width: 0;
}

.tea-card__cta {
  color: var(--hub-gold);
}

.tea-card__replies {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 249, 246, 0.05);
  border-left: 3px solid var(--hub-rose-soft);
}

.tea-card__reply {
  margin-bottom: 8px;
}

.tea-card__reply:last-child {
  margin-bottom: 0;
}

.tea-card__reply-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hub-blush);
  margin-right: 8px;
}

.tea-card__reply-time {
  font-size: 0.7rem;
  color: var(--hub-muted);
}

.tea-card__reply-body {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--hub-text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card__replies-more,
.tea-card__replies-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--hub-muted);
}

.tea-post-page .tea-comments__head {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hub-border);
}

/* —— 帖子详情 · 底部评论输入栏（固定底栏，长文滚动仍可见）—— */
.tea-post-page {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.tea-post-page .tea-wrap {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.tea-post-page #teaComments {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.tea-composer {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--hub-border-strong) 75%, transparent);
  background: linear-gradient(
    155deg,
    rgba(32, 16, 24, 0.88) 0%,
    rgba(16, 8, 12, 0.82) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.tea-post-page .tea-composer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 24;
  width: min(920px, calc(100% - 28px));
  margin: 0;
  transform: translateX(-50%);
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 -10px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.tea-composer__head {
  display: none;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hub-rose, #e87898);
}

.tea-post-page .tea-composer__head {
  display: block;
}

.tea-composer.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.tea-composer.hidden {
  display: none;
}

.tea-composer__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tea-composer__guest {
  margin-bottom: 2px;
}

.tea-composer__guest input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.86rem;
}

.tea-composer__bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tea-composer__input-wrap {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(242, 221, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tea-composer__input-wrap:focus-within {
  border-color: rgba(232, 184, 120, 0.35);
  box-shadow: 0 0 0 3px rgba(232, 184, 120, 0.08);
}

.tea-composer__input {
  display: block;
  width: 100%;
  min-height: 22px;
  max-height: 140px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  resize: none;
  overflow-y: auto;
  outline: none;
}

.tea-composer__input::placeholder {
  color: var(--hub-muted);
}

.tea-composer__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.tea-composer__like,
.tea-composer__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(242, 221, 184, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hub-champagne, #f2ddb8);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tea-composer__like-icon,
.tea-composer__more-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.tea-composer__like-count {
  font-size: 0.76rem;
  font-weight: 600;
  min-width: 0.8em;
  line-height: 1;
  color: var(--hub-muted);
}

.tea-composer__like.is-active {
  color: #ff8aa8;
  border-color: rgba(255, 120, 152, 0.35);
  background: linear-gradient(145deg, rgba(255, 100, 130, 0.16), rgba(232, 72, 104, 0.08));
}

.tea-composer__like.is-active .tea-composer__like-icon path {
  fill: currentColor;
}

.tea-composer__like.is-active .tea-composer__like-count {
  color: #ffb8ca;
}

.tea-composer__like:hover,
.tea-composer__more:hover {
  border-color: rgba(232, 184, 120, 0.28);
  color: var(--hub-gold);
  transform: translateY(-1px);
}

.tea-composer__send {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hub-rose-deep, #c84868), var(--hub-rose, #e87898));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(232, 72, 104, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tea-composer__send svg {
  width: 17px;
  height: 17px;
}

.tea-composer__send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 72, 104, 0.35);
}

.tea-composer__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tea-composer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 0.72rem;
  color: var(--hub-muted);
}

.tea-composer__count.is-warn {
  color: #ffc85a;
}

.tea-composer__count.is-limit {
  color: var(--hub-rose);
}

.tea-composer__error {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-rose);
}

.tea-composer__login {
  margin-top: 8px;
  width: 100%;
}

/* —— 列表卡片 · 内嵌评论/点赞/分享栏 —— */
.tea-card__meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
  font-size: 0.76rem;
  color: var(--hub-muted);
  position: relative;
  z-index: 3;
}

.tea-card__meta-line-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tea-card__meta-line .tea-card__cta {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
}

.tea-composer--card {
  position: relative;
  z-index: 4;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
}

.tea-composer--card .tea-composer__error {
  margin-top: 6px;
}

.tea-composer--card-compact {
  padding: 8px 10px;
  border-radius: 12px;
}

.tea-composer--card-compact .tea-composer__like,
.tea-composer--card-compact .tea-composer__more,
.tea-composer--card-compact .tea-composer__send {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
}

.tea-composer--card-compact .tea-composer__like-count {
  display: none;
}

.tea-composer--card.is-focused .tea-composer__like-count {
  display: inline;
}

.tea-composer__input--compact {
  font-size: 0.86rem;
  max-height: 72px;
}

.tea-composer--card .tea-composer__guest {
  margin-bottom: 6px;
}

.tea-card .tea-composer__input-wrap:focus-within {
  border-color: rgba(232, 184, 120, 0.35);
  box-shadow: 0 0 0 3px rgba(232, 184, 120, 0.08);
}

.tea-post__delete-link {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.tea-post__delete-link:hover {
  color: #ffb8be;
  background: rgba(240, 120, 130, 0.1);
}

.tea-reply-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border-strong);
  background: linear-gradient(145deg, rgba(42, 16, 32, 0.9), rgba(26, 10, 18, 0.85));
}

.tea-reply-box.is-disabled {
  opacity: 0.65;
}

.tea-reply__hint {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--hub-text-soft, var(--hub-muted));
}

.tea-reply__hint strong {
  color: var(--hub-gold, #ffd878);
  font-weight: 600;
}

.tea-reply__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tea-reply__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tea-reply__field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hub-text);
  letter-spacing: 0.02em;
}

.tea-reply__tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 120, 152, 0.35);
  color: var(--hub-rose, #e87898);
  background: rgba(232, 120, 152, 0.08);
}

.tea-reply__help {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--hub-muted);
}

.tea-reply__field input,
.tea-reply__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 249, 246, 0.06);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tea-reply__field input::placeholder,
.tea-reply__field textarea::placeholder {
  color: rgba(255, 235, 240, 0.38);
}

.tea-reply__field input:focus,
.tea-reply__field textarea:focus {
  outline: none;
  border-color: rgba(232, 120, 152, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 120, 152, 0.12);
}

.tea-reply__field textarea {
  resize: vertical;
  min-height: 112px;
}

.tea-reply__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--hub-muted);
}

.tea-reply__count.is-warn {
  color: var(--hub-gold, #e8c878);
}

.tea-reply__count.is-limit {
  color: var(--hub-rose, #e87898);
}

.tea-reply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tea-reply__error {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hub-rose);
  min-height: 1.2em;
}

.tea-comment--live {
  border-color: rgba(232, 120, 152, 0.25);
}

.hidden {
  display: none !important;
}

.tea-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--hub-muted);
  border: 1px dashed var(--hub-border);
  border-radius: var(--hub-radius);
}

.tea-loading {
  padding: 32px;
  text-align: center;
  color: var(--hub-muted);
}

.tea-post__content {
  padding: 0;
}

.tea-post-page #teaPostMain.tea-post {
  padding: 20px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  margin-bottom: 20px;
}

.tea-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--hub-muted);
}

.tea-post__title {
  font-family: var(--hub-font-display);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin: 0 0 16px;
  color: var(--hub-champagne);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.tea-post__body {
  font-size: 0.95rem;
  color: var(--hub-text-soft);
  white-space: pre-wrap;
  line-height: 1.75;
}

.tea-post__stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hub-border);
}

.tea-post__stats-bar .tea-post__stats {
  margin: 0;
  padding: 0;
  border: 0;
  flex: 1;
  min-width: 0;
}

.tea-post__stats {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hub-border);
  font-size: 0.8rem;
  color: var(--hub-muted);
}

.tea-comments__head {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--hub-gold);
}

.tea-comment {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 249, 246, 0.04);
  margin-bottom: 10px;
}

.tea-comment__top {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
}

.tea-comment__author {
  font-weight: 600;
  color: var(--hub-text-soft);
  font-size: 0.88rem;
}

.tea-comment__time {
  font-size: 0.75rem;
  color: var(--hub-muted);
}

.tea-comment__body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hub-text-soft);
  white-space: pre-wrap;
}

.tea-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(42, 16, 32, 0.95);
  border: 1px solid var(--hub-border-strong);
  color: var(--hub-gold);
  font-size: 0.85rem;
  z-index: 100;
  transition: transform 0.3s;
  pointer-events: none;
}

.tea-toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* 赏金帖 · 悬浮发帖 · 档案时间线（茶肆 v2） */
.tea-card--bounty {
  border-color: rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, rgba(42, 28, 12, 0.5), rgba(26, 16, 10, 0.35));
}

.tea-card__badge--bounty {
  background: linear-gradient(90deg, #c9a227, #e8a04c);
  color: #1a0f08;
}

.tea-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a227, #a67c1a);
  color: #1a0f08;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.tea-fab__icon {
  font-size: 1.1rem;
}

.tea-bounty-panel {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(26, 18, 10, 0.55);
}

.tea-bounty-panel__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tea-bounty-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #c9a227;
  color: #1a0f08;
  font-weight: 700;
}

.tea-bounty-panel__reward strong {
  color: var(--hub-gold);
}

.tea-bounty-panel__criteria {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--hub-text-soft);
}

.tea-bounty-panel__criteria span {
  color: var(--hub-gold);
  margin-right: 6px;
}

.tea-bounty-panel__actions {
  margin-top: 14px;
}

.tea-bounty__form .profile-field {
  margin-bottom: 10px;
}

.tea-compose-form {
  padding: 16px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: var(--hub-surface-2);
}

.tea-compose-form .profile-field {
  margin-bottom: 14px;
}

.tea-compose-hint {
  font-size: 0.82rem;
  color: var(--hub-muted);
  margin: 0 0 12px;
}

.tea-compose-error {
  color: #e85d8a;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.tea-reply-box.hidden {
  display: none;
}

@media (max-width: 719px) {
  .tea-zone--inline select,
  .tea-search-btn {
    min-height: 40px;
    border-radius: 11px;
  }

  .tea-search-btn {
    flex-basis: 40px;
    width: 40px;
  }

  .tea-zone--inline select {
    font-size: 0.84rem;
    padding-right: 30px;
  }

  .tea-feed-modes {
    margin-bottom: 8px;
  }

  .tea-feed-mode {
    padding: 8px 12px;
    font-size: 0.74rem;
  }
}

@media (min-width: 720px) {
  .tea-zone-bar--compact .tea-zone-bar__row {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .tea-fab__text {
    display: none;
  }

  .tea-fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (min-width: 720px) {
  .tea-wrap {
    padding: 24px 24px 40px;
  }
}

/* 茶肆 v3 · 头像 · 名片 · 发帖弹窗 */
.tea-card {
  position: relative;
  text-decoration: none;
}

.tea-card__link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

.tea-card__author-row,
.tea-card__reply-head,
.tea-post__author-row,
.tea-comment__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tea-card__author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.tea-card__author-row .tea-chip-row,
.tea-post__author-row .tea-chip-row {
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex-shrink: 0;
}

.tea-card__title a,
.tea-card__cta {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}

.tea-card__title a:hover,
.tea-card__cta:hover {
  color: var(--hub-gold);
}

.tea-avatar {
  flex-shrink: 0;
  padding: 0;
  border: 2px solid rgba(242, 221, 184, 0.35);
  border-radius: 50%;
  background: rgba(42, 16, 32, 0.8);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.tea-avatar--sm {
  width: 32px;
  height: 32px;
}

.tea-avatar--friend {
  border-color: rgba(255, 180, 80, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 180, 80, 0.2);
}

.tea-avatar__badges {
  position: absolute;
  left: -4px;
  top: -4px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.tea-avatar__badges .mx-badge {
  font-size: 0.5rem;
  padding: 1px 4px;
}

/* 头像环饰 · 与 my.css 同步（茶肆页仅引 forum.css） */
.mx-avatar-orbit {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
}

.mx-avatar-orbit__core {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
}

.mx-avatar-orbit__marks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.mx-orbit-mark {
  --orbit-r: 28px;
  --orbit-mark-size: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-mark-size);
  height: var(--orbit-mark-size);
  margin: calc(var(--orbit-mark-size) / -2);
  transform: rotate(var(--orbit-angle))
    translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * var(--orbit-angle)));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 6, 8, 0.92);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark__glyph {
  font-size: calc(var(--orbit-mark-size) * 0.52);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.mx-orbit-mark--verify {
  border-color: rgba(110, 200, 150, 0.85);
  background: linear-gradient(145deg, rgba(80, 170, 120, 0.55), rgba(20, 50, 35, 0.95));
  box-shadow: 0 0 12px rgba(90, 190, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mx-orbit-mark--verify .mx-orbit-mark__glyph {
  color: #b8f0d0;
}

.mx-orbit-mark--identity {
  border-color: rgba(212, 168, 106, 0.9);
  background: linear-gradient(145deg, rgba(212, 168, 106, 0.42), rgba(50, 28, 40, 0.95));
  box-shadow: 0 0 12px rgba(212, 168, 106, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--identity .mx-orbit-mark__glyph {
  color: #e8c88a;
}

.mx-orbit-mark--gallery {
  border-color: rgba(120, 180, 230, 0.85);
  background: linear-gradient(145deg, rgba(90, 150, 210, 0.45), rgba(25, 40, 60, 0.95));
  box-shadow: 0 0 12px rgba(100, 170, 230, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--gallery .mx-orbit-mark__glyph {
  color: #b8daf8;
}

.mx-orbit-mark--honors {
  border-color: rgba(255, 190, 90, 0.88);
  background: linear-gradient(145deg, rgba(230, 160, 70, 0.48), rgba(60, 35, 15, 0.95));
  box-shadow: 0 0 12px rgba(230, 170, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--honors .mx-orbit-mark__glyph {
  color: #ffe4b0;
}

.mx-orbit-mark--cocreate {
  border-color: rgba(180, 140, 220, 0.9);
  background: linear-gradient(145deg, rgba(155, 123, 184, 0.5), rgba(45, 30, 65, 0.96));
  box-shadow: 0 0 12px rgba(180, 140, 220, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--cocreate .mx-orbit-mark__glyph {
  color: #e8d4ff;
}

.mx-avatar-orbit--sm {
  width: 32px;
  height: 32px;
  --orbit-r: 18px;
  --orbit-mark-size: 12px;
}

.mx-avatar-orbit--sm .tea-avatar {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--md {
  width: 44px;
  height: 44px;
  --orbit-r: 26px;
  --orbit-mark-size: 14px;
}

.mx-avatar-orbit--md .tea-avatar {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--player {
  --orbit-r: 44px;
  --orbit-mark-size: 19px;
}

.mx-cocreate-halo {
  position: absolute;
  inset: -5px;
  z-index: 1;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(201, 162, 232, 0.82);
  box-shadow:
    0 0 0 1px rgba(232, 168, 106, 0.35),
    0 0 18px rgba(201, 162, 232, 0.48),
    0 0 28px rgba(232, 168, 106, 0.22);
  animation: mxCocreateHaloPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mxCocreateHaloPulse {
  0%,
  100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.mx-cocreate-badge {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  transform: translate(-50%, -42%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(232, 200, 140, 0.85);
  background: linear-gradient(135deg, #6b4a9a 0%, #3d2858 45%, #1a1028 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(201, 162, 232, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.mx-cocreate-badge__star {
  font-size: 0.72em;
  color: #ffe8a8;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255, 220, 120, 0.8));
}

.mx-cocreate-badge__text {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f5e6ff;
  line-height: 1;
}

.mx-avatar-orbit--sm .mx-cocreate-badge {
  padding: 2px 6px 2px 5px;
  transform: translate(-50%, -48%);
}

.mx-avatar-orbit--sm .mx-cocreate-badge__text {
  font-size: 0.5rem;
}

.mx-avatar-orbit--sm .mx-cocreate-halo {
  inset: -3px;
}

.mx-detail-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  max-width: 200px;
}

.mx-detail-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 8, 14, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mx-detail-mark__glyph {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.mx-detail-mark__label {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.mx-detail-mark--verify {
  border-color: rgba(110, 200, 150, 0.65);
  background: linear-gradient(135deg, rgba(80, 170, 120, 0.35), rgba(20, 50, 35, 0.92));
}

.mx-detail-mark--verify .mx-detail-mark__glyph {
  color: #b8f0d0;
}

.mx-detail-mark--identity {
  border-color: rgba(212, 168, 106, 0.7);
  background: linear-gradient(135deg, rgba(212, 168, 106, 0.28), rgba(50, 28, 40, 0.92));
}

.mx-detail-mark--identity .mx-detail-mark__glyph {
  color: #e8c88a;
}

.mx-detail-mark--gallery {
  border-color: rgba(120, 180, 230, 0.65);
  background: linear-gradient(135deg, rgba(90, 150, 210, 0.32), rgba(25, 40, 60, 0.92));
}

.mx-detail-mark--gallery .mx-detail-mark__glyph {
  color: #b8daf8;
}

.mx-detail-mark--honors {
  border-color: rgba(255, 190, 90, 0.7);
  background: linear-gradient(135deg, rgba(230, 160, 70, 0.35), rgba(60, 35, 15, 0.92));
}

.mx-detail-mark--honors .mx-detail-mark__glyph {
  color: #ffe4b0;
}

.player-card__portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-card__tag--cocreate {
  color: #c9b0e8;
  border-color: rgba(155, 123, 184, 0.45);
  background: rgba(155, 123, 184, 0.15);
}

.tea-avatar__friend-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb84d, #e89050);
  color: #1a0f08;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  border: 2px solid #1a0a12;
  z-index: 3;
  pointer-events: none;
}

.tea-avatar {
  position: relative;
}

.tea-card--friend {
  border-color: rgba(255, 180, 80, 0.28);
}

.tea-card__friend-badge {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 180, 80, 0.18);
  color: #ffc878;
  border: 1px solid rgba(255, 180, 80, 0.35);
}

.tea-feed-modes-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

.tea-feed-modes-scroller::-webkit-scrollbar {
  display: none;
}

.tea-feed-modes {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: min-content;
}

.tea-feed-mode {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hub-border) 65%, transparent);
  background: color-mix(in srgb, var(--hub-bg) 50%, transparent);
  color: var(--hub-text-soft);
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.tea-feed-mode.is-active {
  border-color: rgba(255, 180, 80, 0.55);
  background: rgba(255, 180, 80, 0.12);
  color: var(--hub-champagne);
  font-weight: 600;
}

.tea-feed-mode--week {
  border-color: color-mix(in srgb, var(--hub-rose, #e87898) 35%, transparent);
  color: color-mix(in srgb, var(--hub-rose, #e87898) 88%, var(--hub-text-soft));
}

.tea-feed-mode--week.is-active {
  border-color: rgba(232, 120, 152, 0.55);
  background: rgba(232, 120, 152, 0.12);
  color: #ffb8ca;
  box-shadow: 0 0 0 1px rgba(232, 120, 152, 0.2);
}

.tea-feed-mode--hub {
  border-style: dashed;
  color: var(--hub-gold-dim);
}

.tea-feed-mode--fav.is-active {
  border-color: color-mix(in srgb, #ffc85a 55%, transparent);
  color: #ffd98a;
  box-shadow: 0 0 0 1px color-mix(in srgb, #ffc85a 25%, transparent);
}

.tea-post__toolbar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.tea-del-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(240, 160, 168, 0.35);
  border-radius: 10px;
  background: rgba(12, 6, 10, 0.72);
  color: #f0a0a8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.tea-del-btn__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tea-del-btn:hover,
.tea-del-btn:active {
  color: #ffb8be;
  border-color: rgba(255, 184, 190, 0.55);
  background: rgba(240, 120, 130, 0.12);
  transform: scale(1.04);
}

.tea-feed-mode--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-color: color-mix(in srgb, var(--hub-gold) 35%, transparent);
  color: var(--hub-champagne);
}

.tea-empty__link {
  border: none;
  background: none;
  color: var(--hub-gold);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.tea-header-identity {
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 224, 184, 0.4);
  background: rgba(126, 224, 184, 0.1);
  color: #7ee0b8;
  font-family: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.tea-header-identity--mob {
  display: none;
  margin-left: auto;
  margin-right: 6px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .tea-header-identity--mob {
    display: inline-flex;
    align-items: center;
  }
}

.tea-header-friends {
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 80, 0.4);
  background: rgba(255, 180, 80, 0.1);
  color: var(--hub-gold);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.tea-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 48;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(26, 10, 18, 0.94);
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(14px);
}

.tea-dock a,
.tea-dock button {
  flex: 1;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--hub-text-soft);
  font-family: inherit;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.tea-dock button:nth-child(2) {
  border-color: rgba(255, 180, 80, 0.45);
  background: rgba(255, 180, 80, 0.12);
  color: var(--hub-champagne);
  font-weight: 600;
}

.tea-page .tea-wrap {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.tea-page .tea-fab {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (min-width: 720px) {
  .tea-dock {
    display: none;
  }

  .tea-page .tea-wrap {
    padding-bottom: 40px;
  }

  .tea-page .tea-fab {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

.tea-avatar--md {
  width: 44px;
  height: 44px;
}

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

.tea-avatar__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hub-gold);
  background: linear-gradient(135deg, rgba(232, 144, 168, 0.35), rgba(201, 162, 39, 0.25));
}

.tea-fab {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.tea-compose-sheet,
.player-card-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tea-compose-sheet.hidden,
.player-card-sheet.hidden {
  display: none;
}

.tea-compose-sheet__backdrop,
.player-card-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 10, 0.72);
  backdrop-filter: blur(4px);
}

.tea-compose-sheet__panel,
.player-card-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--hub-border-strong);
  border-bottom: none;
  background: linear-gradient(180deg, #2a1420 0%, #1a0a12 100%);
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: tea-sheet-up 0.28s ease;
}

@keyframes tea-sheet-up {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tea-compose-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.tea-compose-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tea-compose-sheet__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  color: var(--hub-gold-dim);
  letter-spacing: 0.08em;
}

.tea-compose-sheet__head h2 {
  margin: 4px 0 0;
  font-family: var(--hub-font-display, 'Ma Shan Zheng', cursive);
  font-size: 1.5rem;
  color: var(--hub-champagne);
  font-weight: 400;
}

.tea-compose-sheet__close,
.player-card-sheet__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hub-text-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.compose-field {
  display: block;
  margin-bottom: 14px;
}

.compose-field > span {
  display: block;
  font-size: 0.78rem;
  color: var(--hub-gold-dim);
  margin-bottom: 6px;
}

.compose-field input,
.compose-field select,
.compose-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: rgba(12, 6, 10, 0.6);
  color: var(--hub-text);
  font-family: inherit;
  font-size: 1rem;
}

.compose-field textarea {
  resize: vertical;
  min-height: 120px;
}

.compose-field__count {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--hub-muted);
  font-style: normal;
  margin-top: 4px;
}

.tea-compose-sheet__hint {
  font-size: 0.78rem;
  color: var(--hub-muted);
  margin: 0 0 8px;
}

.tea-compose-sheet__error {
  color: #e85d8a;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0 0 8px;
}

.player-card-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.player-card-sheet__panel {
  padding-top: 14px;
}

.player-card__eyebrow {
  margin: 0 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--hub-gold-dim);
  text-align: center;
}

.player-card__hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 28, 44, 0.35), rgba(26, 10, 18, 0.5));
  border: 1px solid var(--hub-border);
}

.player-card__portrait-col {
  flex-shrink: 0;
}

.player-card__portrait-wrap {
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hub-gold), var(--hub-rose));
}

.player-card__portrait {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(12, 6, 10, 0.6);
}

.mx-avatar-orbit--player .mx-cocreate-badge {
  transform: translate(-50%, -38%);
}

.player-card__identity {
  min-width: 0;
}

.player-card__name {
  margin: 0;
  font-family: var(--hub-font-display, 'Ma Shan Zheng', cursive);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--hub-champagne);
  line-height: 1.2;
}

.player-card__server,
.player-card__year {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--hub-text-soft);
}

.player-card__tag {
  display: inline-block;
  margin-top: 6px;
  margin-right: 6px;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hub-muted);
}

.player-card__tag--ok {
  background: var(--hub-gold-glow);
  color: var(--hub-gold);
  border: 1px solid var(--hub-border);
}

.player-card__tag--verified {
  background: rgba(126, 224, 184, 0.15);
  color: #7ee0b8;
  border: 1px solid rgba(126, 224, 184, 0.35);
}

.player-card__tag--pending {
  background: rgba(240, 200, 120, 0.12);
  color: #f0c878;
  border: 1px solid rgba(240, 200, 120, 0.3);
}

.player-card__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--hub-text-soft);
}

.player-card__contacts span {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.player-card__oath {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--hub-gold);
  font-size: 0.88rem;
  color: var(--hub-blush);
  background: rgba(232, 120, 152, 0.08);
  border-radius: 0 10px 10px 0;
}

.player-card__motto {
  font-size: 0.85rem;
  color: var(--hub-text-soft);
  margin: 0 0 12px;
}

.player-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.player-card__stat {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hub-gold-dim);
}

.player-card__stat em {
  font-style: normal;
  margin-right: 4px;
}

.player-card__stat i {
  font-style: normal;
  opacity: 0.75;
}

.player-card__layers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.player-card__layers span {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  color: var(--hub-muted);
}

.player-card__layers span.on {
  border-color: var(--hub-gold);
  color: var(--hub-gold);
  background: var(--hub-gold-glow);
}

.player-card__cp-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: linear-gradient(90deg, rgba(232, 120, 152, 0.25), rgba(201, 162, 39, 0.2));
  border: 1px solid rgba(232, 144, 168, 0.45);
  color: var(--hub-blush);
}

.player-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-card__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
  line-height: 1.5;
  text-align: center;
}

.player-card__act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.player-card__feedback {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  text-align: center;
  color: var(--hub-gold);
}

.player-card__feedback.is-err {
  color: #e85d8a;
}

/* 江湖证 · 精美名片卡 */
.player-card--id {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.player-card__tool {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--hub-champagne, #e8d0d8);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.player-card__tool:hover {
  border-color: rgba(232, 144, 168, 0.55);
  background: rgba(232, 144, 168, 0.1);
}

.player-card__tool--accent {
  border-color: rgba(212, 175, 95, 0.45);
  color: var(--hub-gold, #d4af5f);
}

.pid-card {
  margin: 0;
}

.pid-card__frame {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 95, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 200, 220, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(42, 20, 32, 0.95), rgba(22, 10, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.pid-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(212, 175, 95, 0.25);
}

.pid-card__brand {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--hub-rose, #e890a8);
}

.pid-card__serial {
  font-size: 0.62rem;
  color: rgba(196, 168, 176, 0.65);
  font-family: ui-monospace, monospace;
}

.pid-card__hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pid-card__portrait-col {
  flex-shrink: 0;
}

.pid-card__portrait {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 95, 0.4);
  box-shadow: 0 4px 16px rgba(255, 100, 150, 0.15);
}

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

.pid-card__name {
  margin: 0;
  font-family: var(--hub-font-display, 'Ma Shan Zheng', cursive);
  font-size: 1.35rem;
  color: #f4d4e0;
  line-height: 1.2;
}

.pid-card__motto {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: rgba(196, 168, 176, 0.85);
  line-height: 1.45;
}

.pid-card__tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(196, 168, 176, 0.8);
}

.pid-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pid-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.58rem;
}

.pid-badge strong {
  font-size: 0.62rem;
  color: rgba(220, 200, 210, 0.9);
}

.pid-badge em {
  font-style: normal;
  opacity: 0.75;
  margin-top: 1px;
}

.pid-badge.is-on {
  border-color: rgba(120, 200, 150, 0.35);
  background: rgba(80, 180, 120, 0.1);
}

.pid-badge.is-wait {
  border-color: rgba(240, 180, 80, 0.35);
}

.pid-badge--cp.is-on {
  border-color: rgba(255, 120, 160, 0.45);
  background: rgba(255, 100, 150, 0.12);
}

.pid-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pid-card__grid > div {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pid-card__grid > div:nth-last-child(-n + 2):not(.pid-card__grid-wide) {
  border-bottom: none;
}

.pid-card__grid-wide {
  grid-column: 1 / -1;
  border-bottom: none !important;
}

.pid-card__grid dt {
  margin: 0 0 2px;
  font-size: 0.6rem;
  color: rgba(196, 168, 176, 0.6);
  letter-spacing: 0.06em;
}

.pid-card__grid dd {
  margin: 0;
  font-size: 0.76rem;
  color: #ead8de;
  line-height: 1.35;
  word-break: break-word;
}

.pid-empty {
  color: rgba(196, 168, 176, 0.42);
  font-style: normal;
}

.pid-card__cp--is-active {
  color: #ff9ec8;
}

.pid-card__oath {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid rgba(232, 144, 168, 0.45);
  font-size: 0.74rem;
  color: rgba(232, 200, 210, 0.9);
  line-height: 1.5;
}

.pid-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pid-card__stats span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hub-champagne, #e8d0d8);
}

.pid-card__stats em {
  font-style: normal;
  margin-right: 4px;
  opacity: 0.75;
}

.pid-card__stats i {
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.7;
  margin-left: 2px;
}

.pid-card__foot {
  margin: 0;
  text-align: center;
  font-size: 0.62rem;
  color: rgba(196, 168, 176, 0.55);
  letter-spacing: 0.08em;
}

.pid-card__contacts {
  margin: 0 0 10px;
}

.pid-card__contacts-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--hub-champagne, #e8d0d8);
  font-weight: 600;
}

.pid-card__contacts-title em {
  font-size: 0.6rem;
  font-weight: normal;
  font-style: normal;
  color: rgba(196, 168, 176, 0.65);
  margin-left: 4px;
}

.pid-card__grid--contacts {
  margin-bottom: 0;
}

.pid-card__contact-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pid-contact-private {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(240, 180, 80, 0.15);
  border: 1px solid rgba(240, 180, 80, 0.35);
  color: #f0c090;
  font-weight: normal;
}

.pid-card__contacts-hint {
  margin: 8px 0 0;
  font-size: 0.62rem;
  color: rgba(196, 168, 176, 0.6);
  text-align: center;
}

.identity-field--wide {
  grid-column: 1 / -1;
}

.identity-field__control--area {
  min-height: 56px;
  resize: vertical;
  line-height: 1.45;
}

.pid-preview {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pid-preview.hidden {
  display: none;
}

.pid-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.88);
  backdrop-filter: blur(8px);
}

.pid-preview__stage {
  position: relative;
  width: min(100%, 400px);
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
}

.pid-preview__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* 名片操作按钮（茶肆页自洽，不依赖 my.css） */
.pc-act {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hub-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.pc-act:active:not(:disabled) {
  transform: scale(0.98);
}

.pc-act:disabled {
  cursor: default;
  opacity: 0.92;
}

.pc-act--full {
  grid-column: 1 / -1;
}

.pc-act__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.pc-act__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pc-act__text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hub-champagne);
}

.pc-act__text em {
  font-size: 0.68rem;
  font-style: normal;
  color: var(--hub-muted);
  line-height: 1.3;
}

.pc-act--primary {
  border-color: rgba(201, 162, 39, 0.55);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(166, 124, 26, 0.12));
}

.pc-act--primary .pc-act__icon {
  background: linear-gradient(135deg, #c9a227, #a67c1a);
}

.pc-act--primary .pc-act__text strong {
  color: #ffe8d0;
}

.pc-act--rose {
  border-color: rgba(232, 144, 168, 0.45);
  background: linear-gradient(135deg, rgba(232, 120, 152, 0.18), rgba(196, 74, 106, 0.1));
}

.pc-act--ghost {
  border-color: rgba(242, 221, 184, 0.25);
}

.pc-act--subtle {
  min-height: 44px;
  background: transparent;
}

.pc-act--subtle .pc-act__icon {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.pc-act--done {
  border-color: rgba(120, 200, 140, 0.35);
  background: rgba(80, 160, 100, 0.12);
}

.pc-act--done .pc-act__icon {
  background: rgba(80, 160, 100, 0.25);
  color: #9fd4a8;
  font-weight: 700;
}

.pc-act--wait {
  border-color: rgba(242, 221, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.pc-act--link {
  min-height: auto;
  padding: 8px 4px;
  border: none;
  background: transparent;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--hub-gold-dim);
}

.pc-act--link .pc-act__icon {
  display: none;
}

.pc-act.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pc-act.is-loading .pc-act__text strong::after {
  content: '…';
}

@media (max-width: 380px) {
  .player-card__act-grid {
    grid-template-columns: 1fr;
  }
}

.tea-post__author-row {
  margin-bottom: 12px;
}

.tea-comment__top {
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .tea-compose-sheet,
  .player-card-sheet {
    align-items: center;
    padding: 20px;
  }

  .tea-compose-sheet__panel,
  .player-card-sheet__panel {
    border-radius: 20px;
    border-bottom: 1px solid var(--hub-border-strong);
    max-height: 85vh;
  }
}

/* 首页热门帖 · 紧凑卡片 */
.tea-card--compact {
  padding: 12px 14px;
}

.tea-card--compact.tea-card--hot {
  border-color: color-mix(in srgb, var(--hub-rose) 38%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--hub-bg-plum) 88%, transparent),
    color-mix(in srgb, var(--hub-surface) 82%, transparent)
  );
  box-shadow: var(--hub-shadow-rose);
}

.tea-card__row--compact {
  margin-bottom: 6px;
  gap: 6px;
}

.tea-card__title--compact {
  margin: 0 0 4px;
  font-size: 0.94rem;
  font-family: var(--hub-font-body);
  color: var(--hub-champagne);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card__excerpt--compact {
  margin: 0 0 8px;
  font-size: 0.78rem;
  -webkit-line-clamp: 1;
}

.tea-card__foot--compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
}

.tea-card__foot--compact .tea-avatar--sm {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tea-card__foot-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hub-muted);
}

@media (max-width: 719px) {
  .tea-card--compact {
    padding: 10px 12px;
  }

  .tea-card__title--compact {
    font-size: 0.88rem;
  }
}

/* 媒体附件 · 统一 /api/media/upload */
.mc-attach {
  margin: 12px 0;
}

.mc-attach__toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mc-attach__pick {
  cursor: pointer;
  margin: 0;
}

.mc-attach__pick input {
  display: none;
}

.mc-attach__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
}

.mc-attach__empty {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mc-attach__thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 88px;
  min-width: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.mc-attach__media {
  position: relative;
  width: 88px;
  height: 72px;
  overflow: hidden;
}

.mc-attach__thumb img,
.mc-attach__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-attach__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
}

.mc-attach__badge--pending {
  background: rgba(180, 90, 20, 0.88);
}

.mc-attach__cap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 5px 5px;
  min-width: 0;
}

.mc-attach__cap-title {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-attach__cap-sub {
  font-size: 0.56rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-attach__rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.mc-attach__busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}

.tea-post__media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.tea-post__media-img {
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

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

.tea-post__media-video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 360px;
  border-radius: 12px;
  background: #000;
}

.tea-post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 20px;
}

.tea-post-lightbox.is-open {
  display: flex;
}

.tea-post-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.tea-post-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.tea-card__media-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 8px 0 10px;
}

.tea-card__media-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.tea-card__media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tea-card__media-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #e8c896);
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
}

.tea-card__media-more {
  font-size: 0.72rem;
  color: var(--text-muted, #9a8a8a);
}
