/* ============================================================
   Juicy Forum — Quiet Luxury module (aligned with store.css)
   Scoped with .tb- prefix; sits inside the store shell.
   White canvas · charcoal ink #1A1A1A · one gold accent #B8912A
   Hairline borders · 12–16px radii · pill controls · Inter
   (--tb-* variable names kept: forum JS references them inline)
   ============================================================ */

.tb {
  --tb-blue: #1A1A1A;                 /* primary ink — links / active states */
  --tb-blue-h: #B8912A;               /* hover → gold */
  --tb-blue-soft: rgba(201, 162, 39, .09);
  --tb-bg: #F2F2F4;
  --tb-card: #fff;
  --tb-line: rgba(26, 26, 26, .07);
  --tb-txt: #1A1A1A;
  --tb-mut: #6E6E76;
  --tb-gold: #B8912A;
  --tb-red: #A03A2A;
  --tb-green: #4F7A5C;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--tb-txt);
}

.tb a { color: var(--tb-txt); text-decoration: none; transition: color .35s var(--ease, ease); }
.tb a:hover { color: var(--tb-gold); }

/* 与全站容器同宽(store.css .wrap = 1320px),高分屏不留大块空白 */
.tb .wrap { max-width: 1320px; margin: 0 auto; }
/* 大屏(2K/4K)渐进加宽,避免高分屏两侧大片空白 */
@media (min-width: 1800px) {
  .tb .wrap { max-width: 1600px; }
}

/* ---------- Cards / panels ---------- */
.tb-card {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: var(--r-md, 12px); margin-bottom: 18px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(26, 26, 26, .04));
}
.tb-hd {
  padding: 15px 20px; border-bottom: 1px solid var(--tb-line);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--tb-mut);
  display: flex; align-items: center; gap: 12px;
}
.tb-hd .sp { flex: 1; }
.tb-hd .sub {
  font-size: 11px; color: var(--tb-mut); font-weight: 400;
  text-transform: none; letter-spacing: .02em;
}
.tb-hd .tb-tabs button { text-transform: none; letter-spacing: 0; }
.tb-bd { padding: 18px 20px; }

/* ---------- Hero (forum home) — quiet luxury, matches the site's taupe bands ---------- */
.tb-hero {
  background:
    radial-gradient(640px 380px at 88% -30%, rgba(216, 177, 46, .16), rgba(216, 177, 46, 0) 58%),
    linear-gradient(160deg, #232019 0%, #141414 55%, #0F0F10 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg, 16px);
  padding: 48px 48px 44px;
  margin-bottom: 22px;
  color: #F4F4F0;
}
.tb-hero .overline { color: var(--gold-2, #D8B12E); }
.tb-hero h1 {
  font-family: var(--font-serif, 'Inter', sans-serif);
  font-weight: 600; letter-spacing: -.022em; line-height: 1.12;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 16px 0 12px;
  color: #F7F6F2;
}
.tb-hero h1 em { font-style: italic; color: var(--gold-2, #D8B12E); }
.tb-hero p {
  font-size: 14px; font-weight: 300; color: rgba(244, 244, 240, .62);
  line-height: 1.85; max-width: 60ch; margin-bottom: 30px;
}
.tb-search { display: flex; gap: 14px; max-width: 560px; align-items: center; }
.tb-search .inp { flex: 1; }
.tb-search .btn { height: 46px; }
/* 深色 hero 上的搜索按钮：浅底炭字，保持可点感 */
.tb-hero .tb-search .btn {
  background: #F4F4F0; color: #141414; border-color: transparent;
}
.tb-hero .tb-search .btn:hover { color: #141414; }

/* ---------- Buttons (pill · charcoal → gold on hover, mirrors store .btn) ---------- */
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--charcoal, #1A1A1A); background: var(--charcoal, #1A1A1A); color: #fff;
  border-radius: 999px; padding: 0 20px; height: 36px; font-size: 12.5px; font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: background .35s var(--ease, ease), border-color .35s var(--ease, ease),
              color .35s var(--ease, ease), box-shadow .35s var(--ease, ease), transform .15s var(--ease, ease);
}
.tb-btn:hover {
  background: var(--tb-gold); border-color: var(--tb-gold); color: var(--charcoal, #1A1A1A);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(26, 26, 26, .08));
}
.tb-btn:active { transform: scale(.97); }
.tb-btn:disabled { opacity: .45; cursor: not-allowed; }
.tb-btn.o { background: transparent; color: var(--tb-txt); border-color: rgba(26, 26, 26, .22); box-shadow: none; }
.tb-btn.o:hover { background: var(--tb-blue-soft); border-color: var(--tb-gold); color: var(--tb-gold); box-shadow: none; }
.tb-btn.ghost { background: transparent; border-color: rgba(26, 26, 26, .16); color: var(--tb-txt); box-shadow: none; }
.tb-btn.ghost:hover { border-color: var(--tb-gold); color: var(--tb-gold); background: transparent; box-shadow: none; }
.tb-btn.sm { height: 30px; padding: 0 15px; font-size: 12px; }
.tb-btn.danger { background: transparent; border-color: rgba(160, 58, 42, .35); color: var(--tb-red); box-shadow: none; }
.tb-btn.danger:hover { background: rgba(160, 58, 42, .06); border-color: rgba(160, 58, 42, .5); color: var(--tb-red); box-shadow: none; }
.tb-btn.signed { background: var(--tb-blue-soft); border-color: rgba(201, 162, 39, .45); color: var(--tb-gold); cursor: default; box-shadow: none; }

/* ---------- Forum grid (home) ---------- */
.tb-forum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tb-forum-item {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  border: 1px solid var(--tb-line); border-radius: var(--r-md, 12px); background: #fff;
  transition: border-color .4s var(--ease, ease), box-shadow .4s var(--ease, ease), transform .4s var(--ease, ease);
}
.tb-forum-item:hover {
  border-color: rgba(26, 26, 26, .14);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(26, 26, 26, .08));
  transform: translateY(-2px);
}
.tb-avatar {
  border-radius: 12px; background: var(--charcoal, #1A1A1A); color: var(--gold, #B8912A); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; overflow: hidden; user-select: none;
}
/* 论坛分类图标(替代首字符):白色线性图标居中铺满瓷贴 */
.tb-avatar svg { width: 50%; height: 50%; }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-forum-item .tb-avatar { width: 52px; height: 52px; font-size: 20px; }
.tb-forum-item .fi-main { min-width: 0; }
.tb-forum-item .fi-name { font-size: 14.5px; font-weight: 550; letter-spacing: -.01em; color: var(--tb-txt); transition: color .35s var(--ease, ease); }
.tb-forum-item:hover .fi-name { color: var(--tb-gold); }
.tb-forum-item .fi-desc {
  font-size: 12.5px; color: var(--tb-mut); margin-top: 4px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tb-forum-item .fi-stats { font-size: 11.5px; color: var(--tb-mut); margin-top: 6px; }
.tb-forum-item .fi-stats b { color: var(--tb-txt); font-weight: 600; }

/* ---------- Forum header (bar page) ---------- */
.tb-forum-head { display: flex; align-items: center; gap: 24px; padding: 28px; flex-wrap: wrap; }
.tb-forum-head .tb-avatar { width: 84px; height: 84px; font-size: 34px; border-radius: var(--r-lg, 16px); }
.tb-forum-head .fh-main { flex: 1; min-width: 220px; }
.tb-forum-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.tb-forum-head .fh-slug { font-size: 12.5px; color: var(--tb-mut); margin-top: 3px; }
.tb-forum-head .fh-desc { font-size: 13.5px; color: var(--tb-mut); margin-top: 9px; max-width: 60ch; line-height: 1.7; }
.tb-forum-head .fh-stats { display: flex; gap: 28px; margin-top: 16px; }
.tb-forum-head .fh-stat .n { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--tb-txt); }
.tb-forum-head .fh-stat .k {
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  color: var(--tb-mut); margin-top: 3px;
}
.tb-forum-head .fh-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-signin-days { font-size: 11.5px; color: var(--tb-gold); margin-top: 6px; text-align: center; letter-spacing: .02em; }

/* ---------- Tabs ---------- */
.tb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tb-line); margin-bottom: 0; }
.tb-tabs button {
  border: none; background: none; padding: 11px 16px; font-size: 13px; color: var(--tb-mut);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
  transition: color .35s var(--ease, ease), border-color .35s var(--ease, ease);
}
.tb-tabs button:hover { color: var(--tb-txt); }
.tb-tabs button.on { color: var(--tb-txt); border-bottom-color: var(--tb-gold); font-weight: 600; }

/* ---------- Thread table ---------- */
.tb-thead, .tb-thread {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 70px 150px; gap: 12px; align-items: center;
}
.tb-thead {
  padding: 11px 20px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--tb-mut);
  border-bottom: 1px solid var(--tb-line);
}
.tb-thread {
  padding: 15px 20px; border-bottom: 1px solid var(--tb-line);
  transition: background .3s var(--ease, ease);
}
.tb-thread:last-child { border-bottom: none; border-radius: 0 0 var(--r-md, 12px) var(--r-md, 12px); }
.tb-thread:hover { background: var(--tb-bg); }
.tb-thread .t-title { font-size: 14.5px; color: var(--tb-txt); font-weight: 500; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s var(--ease, ease); }
.tb-thread:hover .t-title { color: var(--tb-gold); }
.tb-thread .t-snip { font-size: 12px; color: var(--tb-mut); margin-top: 4px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tb-badge {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 999px;
  margin-right: 7px; vertical-align: 1px; white-space: nowrap;
}
.tb-badge.pin { background: rgba(26, 26, 26, .07); color: var(--tb-txt); }
.tb-badge.essence { background: var(--tb-blue-soft); color: var(--tb-gold); }
.tb-badge.ok { background: rgba(79, 122, 92, .1); color: var(--tb-green); }
.tb-badge.rej { background: rgba(160, 58, 42, .08); color: var(--tb-red); }
.tb-cell-author, .tb-cell-last { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-cell-author .tb-avatar, .tb-cell-last .tb-avatar { width: 26px; height: 26px; font-size: 11px; border-radius: 50%; }
.tb-cell-author .a-name, .tb-cell-last .l-name { font-size: 12.5px; color: var(--tb-txt);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tb-cell-last .l-time { font-size: 11.5px; color: var(--tb-mut); }
.tb-cell-replies { text-align: center; font-size: 13px; color: var(--tb-mut); }
.tb-cell-replies b { color: var(--tb-txt); font-weight: 600; }

/* ---------- Post page (floors) ---------- */
.tb-crumb { font-size: 12.5px; color: var(--tb-mut); margin-bottom: 14px; letter-spacing: .02em; }
.tb-post { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.tb-post + .tb-post { border-top: 1px solid var(--tb-line); }
.tb-post .p-side {
  padding: 24px 16px; border-right: 1px solid var(--tb-line); text-align: center;
  background: var(--tb-bg);
}
.tb-post:first-child .p-side { border-radius: var(--r-md, 12px) 0 0 0; }
.tb-post:last-child .p-side { border-radius: 0 0 0 var(--r-md, 12px); }
.tb-post:first-child:last-child .p-side { border-radius: var(--r-md, 12px) 0 0 var(--r-md, 12px); }
.tb-post .p-side .tb-avatar { width: 72px; height: 72px; font-size: 28px; margin: 0 auto; border-radius: 50%; }
.tb-post .p-side .p-name { margin-top: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.tb-post .p-side .p-name a { color: var(--tb-txt); }
.tb-post .p-side .p-name a:hover { color: var(--tb-gold); }
.tb-post .p-side .p-posts { font-size: 11.5px; color: var(--tb-mut); margin-top: 5px; }
.tb-post .p-main { padding: 20px 24px; min-width: 0; display: flex; flex-direction: column; }
.tb-post .p-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--tb-mut); margin-bottom: 12px; flex-wrap: wrap; }
.tb-post .p-meta .p-floor { margin-left: auto; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--tb-mut); }
.tb-post .p-content {
  font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; flex: 1;
  max-width: 74ch;
}
.tb-post .p-content img.tb-img {
  max-width: min(560px, 100%); border-radius: 10px; display: block; margin: 12px 0;
  border: 1px solid var(--tb-line); box-shadow: var(--shadow-sm, 0 1px 2px rgba(26, 26, 26, .04));
}
.tb-post .p-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.tb-post .p-foot .sp { flex: 1; }
.tb-likebtn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(26, 26, 26, .14); background: transparent;
  border-radius: 999px; height: 30px; padding: 0 14px; font-size: 12.5px; color: var(--tb-mut); cursor: pointer;
  transition: color .3s var(--ease, ease), border-color .3s var(--ease, ease), background .3s var(--ease, ease), transform .15s var(--ease, ease);
}
.tb-likebtn:hover { border-color: rgba(160, 58, 42, .5); color: var(--tb-red); }
.tb-likebtn:active { transform: scale(.96); }
.tb-likebtn.liked { border-color: rgba(160, 58, 42, .4); color: var(--tb-red); background: rgba(160, 58, 42, .06); }
.tb-delbtn { border: none; background: none; font-size: 12px; color: var(--tb-mut); cursor: pointer; transition: color .3s var(--ease, ease); }
.tb-delbtn:hover { color: var(--tb-red); }
.tb-replybtn { border: none; background: none; font-size: 12.5px; color: var(--tb-txt); cursor: pointer; font-weight: 600; transition: color .3s var(--ease, ease); }
.tb-replybtn:hover { color: var(--tb-gold); }

.tb-op .p-content { font-size: 15.5px; }

/* ---------- 楼中楼 (sub-replies inside a floor) ---------- */
.tb-subs {
  background: var(--tb-bg); border: 1px solid var(--tb-line); border-radius: 10px;
  padding: 10px 16px 12px; margin-top: 16px;
}
.tb-sub { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed rgba(26, 26, 26, .09); font-size: 13px; line-height: 1.8; }
.tb-sub:last-of-type { border-bottom: none; }
.tb-sub .s-idx { color: var(--tb-gold); font-style: italic; flex-shrink: 0; min-width: 20px; font-size: 12px; }
.tb-sub .s-main { flex: 1; min-width: 0; word-break: break-word; }
.tb-sub .s-name a { font-weight: 600; }
.tb-sub .s-sep { color: var(--tb-mut); margin: 0 4px; }
.tb-sub .s-to { color: var(--tb-gold); font-size: 12px; margin-right: 4px; }
.tb-sub .s-content { white-space: pre-wrap; }
.tb-sub .s-content img.tb-img { max-height: 140px; width: auto; display: inline-block; vertical-align: middle; margin: 4px 0; border-radius: 8px; }
.tb-sub .s-time { color: var(--tb-mut); font-size: 11px; margin-left: 8px; white-space: nowrap; }
.tb-sub .s-act { display: flex; gap: 10px; align-items: center; flex-shrink: 0; visibility: hidden; }
.tb-sub:hover .s-act, .tb-sub:focus-within .s-act { visibility: visible; }
.tb-sub .s-like {
  border: none; background: none; cursor: pointer; font-size: 12px; color: var(--tb-mut);
  display: inline-flex; align-items: center; gap: 3px; padding: 0;
  transition: color .3s var(--ease, ease);
}
.tb-sub .s-like:hover, .tb-sub .s-like.liked { color: var(--tb-red); }
.tb-sub .s-reply-btn { border: none; background: none; font-size: 12px; font-weight: 500; color: var(--tb-txt); cursor: pointer; transition: color .3s var(--ease, ease); }
.tb-sub .s-reply-btn:hover { color: var(--tb-gold); }
.tb-sub .s-del { border: none; background: none; font-size: 12px; color: var(--tb-mut); cursor: pointer; transition: color .3s var(--ease, ease); }
.tb-sub .s-del:hover { color: var(--tb-red); }

/* 楼中楼展开 / 收起 */
.tb-subs-more { margin-top: 9px; }
.tb-subs-more button {
  border: none; background: none; cursor: pointer; font-size: 12.5px; color: var(--tb-txt);
  padding: 0; font-weight: 500; transition: color .3s var(--ease, ease);
}
.tb-subs-more button:hover { color: var(--tb-gold); }

/* 楼层内联回复框(点「回复」出现在楼中楼块内) */
.tb-sub-form { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.tb-sub-form input {
  flex: 1; height: 34px; border: 1px solid transparent; border-radius: 999px; padding: 0 16px;
  font-size: 13px; outline: none; color: var(--tb-txt); font-family: inherit; background: #fff;
  transition: background .35s var(--ease, ease), box-shadow .35s var(--ease, ease);
}
.tb-sub-form input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }
.tb-sub-form .tb-btn { height: 32px; padding: 0 16px; }
.tb-sub-form .s-cancel { border: none; background: none; color: var(--tb-mut); font-size: 12.5px; cursor: pointer; transition: color .3s var(--ease, ease); }
.tb-sub-form .s-cancel:hover { color: var(--tb-txt); }
.tb-sub-form-msg { font-size: 11.5px; color: var(--tb-red); margin-top: 6px; display: none; }

/* 卡片头部内联搜索(forum-bar #tq,不在 .tb-editor 内) */
.tb-hd .tb-in {
  border: 1px solid transparent; border-radius: 999px; background: var(--tb-bg);
  color: var(--tb-txt); font-family: inherit; outline: none; padding: 0 14px;
  transition: background .35s var(--ease, ease), box-shadow .35s var(--ease, ease);
}
.tb-hd .tb-in:focus { background: #fff; box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }

/* ---------- Editor ---------- */
.tb-editor .tb-in {
  width: 100%; border: 1px solid transparent; border-radius: 10px; padding: 11px 14px;
  font-size: 14px; outline: none; color: var(--tb-txt); font-family: inherit; background: var(--tb-bg);
  transition: background .35s var(--ease, ease), box-shadow .35s var(--ease, ease);
}
.tb-editor .tb-in:focus { background: #fff; box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }
.tb-editor .tb-in::placeholder { color: var(--tb-mut); }
.tb-editor textarea.tb-in { min-height: 110px; resize: vertical; line-height: 1.75; }
.tb-editor .ed-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.tb-editor .ed-hint { font-size: 11.5px; color: var(--tb-mut); line-height: 1.6; }
.tb-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tb-thumbs .th { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--tb-line); }
.tb-thumbs .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-thumbs .th .th-x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: none; border-radius: 50%;
  background: rgba(26, 26, 26, .6); color: #fff; font-size: 10px; cursor: pointer; line-height: 1;
  transition: background .3s var(--ease, ease);
}
.tb-thumbs .th .th-x:hover { background: var(--tb-red); }

/* ---------- Pager ---------- */
.tb-pager { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 18px 0 4px; flex-wrap: wrap; }
.tb-pager button {
  min-width: 34px; height: 34px; border: 1px solid rgba(26, 26, 26, .12); background: transparent; border-radius: 999px;
  font-size: 12.5px; color: var(--tb-txt); cursor: pointer; padding: 0 12px;
  transition: color .3s var(--ease, ease), border-color .3s var(--ease, ease), background .3s var(--ease, ease);
}
.tb-pager button:hover { border-color: var(--tb-gold); color: var(--tb-gold); }
.tb-pager button.on { background: var(--charcoal, #1A1A1A); border-color: var(--charcoal, #1A1A1A); color: #fff; font-weight: 600; }
.tb-pager button:disabled { opacity: .4; cursor: not-allowed; }
.tb-pager .pg-info { font-size: 12px; color: var(--tb-mut); margin: 0 6px; }

/* ---------- Sidebar ---------- */
.tb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .tb-cols { grid-template-columns: 1fr; } }
.tb-side-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tb-line); font-size: 13px; }
.tb-side-item:last-child { border-bottom: none; }
.tb-side-item .si-n { color: var(--tb-gold); font-weight: 600; font-style: italic; width: 18px; }
.tb-kv { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(26, 26, 26, .09); }
.tb-kv:last-child { border-bottom: none; }
.tb-kv .k { color: var(--tb-mut); }
.tb-kv .v { font-weight: 550; }

/* ---------- Misc ---------- */
.tb-empty { text-align: center; color: var(--tb-mut); padding: 64px 0; font-size: 13.5px; letter-spacing: .01em; }
.tb-note { font-size: 12px; color: var(--tb-mut); line-height: 1.8; }
.tb-banner {
  display: none; align-items: center; gap: 8px; margin-bottom: 14px; padding: 11px 16px;
  background: var(--tb-blue-soft); border: 1px solid rgba(201, 162, 39, .25); border-radius: 10px;
  color: var(--tb-txt); font-size: 12.5px;
}
.tb-form-msg { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; }
.tb-form-msg.err { display: block; background: rgba(160, 58, 42, .06); border: 1px solid rgba(160, 58, 42, .25); color: var(--tb-red); }
.tb-form-msg.ok { display: block; background: rgba(79, 122, 92, .08); border: 1px solid rgba(79, 122, 92, .25); color: var(--tb-green); }

/* 我的申请列表(建吧卡片内) */
.tb-myapps { margin-top: 14px; }
.tb-myapps .ma-title {
  font-size: 10.5px; font-weight: 600; color: var(--tb-mut); text-transform: uppercase;
  letter-spacing: .14em; margin: 2px 0 8px;
}
.tb-myapps .ma-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed rgba(26, 26, 26, .09); font-size: 13px;
}
.tb-myapps .ma-row:last-of-type { border-bottom: none; }
.tb-myapps .ma-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-myapps .ma-note { font-size: 12px; color: var(--tb-red); padding: 2px 0 6px; }

/* ---------- Embed mode (JuicyPlayer WebView): tighter density ---------- */
html.juicy-embed .tb-hero { padding: 28px 26px; margin-bottom: 16px; }
html.juicy-embed .tb-hero h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
html.juicy-embed .tb-hero p { margin-bottom: 20px; }
html.juicy-embed .tb-forum-head { padding: 18px 20px; gap: 16px; }
html.juicy-embed .tb-forum-head .tb-avatar { width: 60px; height: 60px; font-size: 24px; border-radius: 12px; }
html.juicy-embed .tb-forum-head h1 { font-size: 19px; }
html.juicy-embed .tb-forum-head .fh-stats { margin-top: 10px; gap: 20px; }
html.juicy-embed .tb-card { margin-bottom: 14px; }
html.juicy-embed .tb-thread { padding: 12px 16px; }
html.juicy-embed .tb-thead { padding: 9px 16px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tb, .tb *, .tb *::before, .tb *::after,
  .tb-hero, .tb-hero * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .tb-forum-item:hover, .tb-btn:active, .tb-likebtn:active { transform: none; }
}

@media (max-width: 700px) {
  .tb-thead { display: none; }
  .tb-thread { grid-template-columns: minmax(0, 1fr) 60px; }
  .tb-thread .tb-cell-last { display: none; }
  .tb-post { grid-template-columns: 1fr; }
  .tb-post .p-side {
    border-right: none; border-bottom: 1px solid var(--tb-line);
    display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 18px;
  }
  .tb-post:first-child .p-side { border-radius: var(--r-md, 12px) var(--r-md, 12px) 0 0; }
  .tb-post:last-child .p-side { border-radius: var(--r-md, 12px) var(--r-md, 12px) 0 0; }
  .tb-post .p-side .tb-avatar { width: 44px; height: 44px; font-size: 17px; margin: 0; }
  .tb-post .p-side .p-name { margin-top: 0; }
  .tb-hero { padding: 30px 22px; }
}
