﻿/* =========================================================
   Pulse · 前台样式（仅浅色）
   ========================================================= */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --line: rgba(16, 24, 40, .09);
  --line-2: rgba(16, 24, 40, .18);
  --text: #0f131c;
  --text-2: #39414f;
  --muted: #6b7383;
  --accent: #6247f5;
  --accent-2: #2f8bff;
  --accent-soft: rgba(98, 71, 245, .09);
  --ok: #0f9d58;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 24px rgba(16, 24, 40, .06);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  letter-spacing: .01em;
}

/* 内容压在背景层之上 */
main { position: relative; z-index: 1; }

svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

a { color: inherit; }
.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }

/* ---------------- 背景层 ----------------
   由后台「站点设置」配置；电脑/手机分别可设：
   cover   = 铺满裁切，不留白
   contain = 整张缩放进屏幕，完整显示
   width   = 按屏幕宽度缩放，靠上（底部渐隐，避免硬切） */
.bg-wrap {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: var(--bg);
}
.bg-wrap img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  user-select: none;
}

/* ---- 桌面端 ---- */
.bg-wrap[data-fit-d="contain"] img { object-fit: contain; }

.bg-wrap[data-fit-d="width"] { position: absolute; height: auto; }
.bg-wrap[data-fit-d="width"] img {
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ---- 手机端（覆盖上面） ---- */
@media (max-width: 720px) {
  .bg-wrap[data-fit-m="cover"] { position: fixed; height: auto; inset: 0; }
  .bg-wrap[data-fit-m="cover"] img {
    height: 100%; object-fit: cover;
    -webkit-mask-image: none; mask-image: none;
  }

  .bg-wrap[data-fit-m="contain"] { position: fixed; height: auto; inset: 0; }
  .bg-wrap[data-fit-m="contain"] img {
    height: 100%; object-fit: contain;
    -webkit-mask-image: none; mask-image: none;
  }

  .bg-wrap[data-fit-m="width"] { position: absolute; top: 0; bottom: auto; height: auto; }
  .bg-wrap[data-fit-m="width"] img {
    height: auto; object-fit: fill;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
}

/* 彩色背景上让卡片更稳一点 */
body.has-bg .feature {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 6px rgba(18, 20, 40, .10), 0 14px 30px rgba(18, 20, 40, .14);
}

/* ---------------- 页面 ----------------
   顶部没有操作栏，只有卡片。
   隐藏入口：右下角一块透明热区，连点 5 次进 /unlock */
.page {
  max-width: 1080px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px
           calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.grid-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 10px;
}

.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
.link-btn:hover { color: var(--text); }

.secret-zone {
  position: fixed; right: 0; bottom: 0; z-index: 40;
  width: 64px; height: 64px; background: transparent; cursor: default;
}

/* brand / mark：后台和口令页还在用 */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(98, 71, 245, .28);
}
.mark svg { width: 19px; height: 19px; color: #fff; stroke-width: 2; }
.name { font-size: 17px; font-weight: 650; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: border-color .16s, transform .12s, background .16s;
}
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(98, 71, 245, .24);
}
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: border-color .16s, color .16s, transform .12s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------- 内容区 ---------------- */
.section { padding: 22px 0; }
.section + .section { padding-top: 4px; }

.grid-title {
  margin: 0; font-size: 15px; font-weight: 650; color: var(--text-2);
}

.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.feature {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none;
  transition: border-color .18s, transform .12s;
}
a.feature:hover { border-color: var(--line-2); transform: translateY(-1px); }
.feature-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 2px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.feature p {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tag {
  align-self: flex-start;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line-2); color: var(--muted);
}
.tag.ok { color: var(--ok); border-color: rgba(15, 157, 88, .38); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  max-width: 82vw; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #1b1f27; color: #fff;
  font-size: 13.5px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 口令页 ---------------- */
.centered-page {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
}
.center-card {
  width: 100%; max-width: 360px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 26px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.mark.lg {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 4px;
}
.mark.lg svg { width: 28px; height: 28px; }
.center-card h1 { margin: 0; font-size: 20px; }
.center-card p { margin: 0; font-size: 13.5px; }
.unlock-form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.unlock-form input {
  height: 46px; text-align: center; letter-spacing: .18em; font-size: 17px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: inherit;
}
.unlock-form input:focus {
  outline: none; border-color: rgba(98, 71, 245, .55);
}
.form-error { color: #c0392b; font-size: 13px; margin-top: 4px; }
.back-link { margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .shell { padding: 0 14px; }
  .page { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
:focus-visible { outline: 2px solid rgba(98, 71, 245, .55); outline-offset: 2px; }
[hidden] { display: none !important; }


/* 「滚动时背景固定」关掉时：背景跟随页面滚动 */
.bg-wrap[data-fixed="0"] { position: absolute; }

/* ---------------- 功能面板（毛玻璃窗口） ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(24, 20, 48, .16);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fade .18s ease;
}
.overlay[hidden] { display: none !important; }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.glass {
  width: min(680px, 100%);
  min-height: min(66vh, 580px);
  max-height: min(86vh, 780px);
  display: flex; flex-direction: column;
  border-radius: 24px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow:
    0 30px 70px rgba(28, 22, 62, .30),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
}

.glass-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px 8px;
}
.glass-head h1 { margin: 0; font-size: 15.5px; font-weight: 650; }

.back-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; cursor: pointer; color: #3c4353;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.back-btn:hover { background: rgba(255, 255, 255, .92); }
.back-btn:active { transform: scale(.94); }
.back-btn svg { width: 17px; height: 17px; stroke-width: 2.1; }

.pins-block { padding: 2px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .62); }
.pins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pins-title { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #4a5162; }
.pins-hint { font-size: 11.5px; color: #7c859a; }
.pins {
  display: flex; align-items: center; gap: 8px;
  height: 40px;               /* 固定高度：有没有常用都不跳动 */
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.pins::-webkit-scrollbar { display: none; }
.pin {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .7);
  font: inherit; font-size: 13px; font-weight: 600; color: #1f2430;
  cursor: pointer; transition: background .16s, transform .12s;
}
.pin:hover { background: #fff; transform: translateY(-1px); }
.pin svg { width: 16px; height: 16px; color: var(--accent); }
.pins-empty { font-size: 12.5px; color: #7c859a; white-space: nowrap; }

.all-block { flex: 1 1 auto; min-height: 0; padding: 14px 18px 18px; overflow-y: auto; }
.all-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
/* tile 和星标是兄弟节点：星标不能塞进 <button> 里（非法嵌套，点击会被外层按钮吃掉） */
.tile-wrap { position: relative; display: inline-flex; }
.tile {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 34px 10px 16px; border-radius: 12px;
  cursor: pointer; font: inherit; color: #1b202a;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .52);
  transition: background .16s, transform .12s, box-shadow .16s;
}
.tile:hover {
  background: rgba(255, 255, 255, .92);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 25, 70, .14);
}
.tile-name { font-size: 13px; font-weight: 600; }

.star {
  position: absolute; top: 50%; right: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; font: inherit;
  cursor: pointer; color: #a9b2c1;
  transition: background .15s, color .15s;
}
.star svg { width: 13px; height: 13px; pointer-events: none; }
.star:hover { background: rgba(98, 71, 245, .12); color: var(--accent); }
.star:active { transform: translateY(-50%) scale(.9); }
.star.on { color: #e8a13a; }
.star.on svg { fill: currentColor; }


@media (max-width: 720px) {
  .overlay { padding: 14px; }
  .glass {
    border-radius: 22px;
    min-height: min(74vh, 560px);
    max-height: min(88vh, 720px);
  }
  .tiles { gap: 8px; }
  .tile { padding: 9px 28px 9px 14px; }
  .pins-hint { display: none; }
}

/* 功能页：和面板同一个毛玻璃容器（.glass），这里只补内部排版 */
.app-shell { gap: 0; }

.app-head { gap: 12px; align-items: center; }
.app-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-head h1 { margin: 0; font-size: 16.5px; font-weight: 650; }
.app-head p { margin: 2px 0 0; font-size: 12.5px; }
.app-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(98, 71, 245, .12); color: var(--accent);
}
.app-icon svg { width: 20px; height: 20px; }

.app-body {
  flex: 1 1 auto;
  min-height: 0;              /* 关键：flex 子项不加这个就不会内部滚动 */
  padding: 10px 18px 0;
  font-size: 13.5px;
}
.app-body p { margin: 0; }

.app-shell > .btn {
  margin: 14px 18px 18px;
  align-self: flex-start;
  background: rgba(255, 255, 255, .8);
}





/* ---------------- 解析帖子 ---------------- */
.parse-body { overflow-y: auto; padding: 4px 18px 18px; }


.parse-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  color: #b42318; background: rgba(255, 99, 71, .12);
  border: 1px solid rgba(255, 99, 71, .28);
}

.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin: 12px 0 14px;
}
.stat {
  position: relative; padding: 9px 10px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .82);
  font: inherit; color: inherit; cursor: default;
}
.stat span { display: block; font-size: 11.5px; color: #6f7a8c; margin-bottom: 3px; }
.stat b { font-size: 15px; font-weight: 650; color: #1b202a; word-break: break-all; }
.stat-sub { display: block; margin-top: 2px; font-size: 10.5px; font-style: normal; color: #9aa4b5; }
.stat.copyable { cursor: pointer; padding-right: 26px; transition: background .15s, border-color .15s; }
.stat.copyable:hover { background: rgba(255, 255, 255, .82); border-color: rgba(98, 71, 245, .35); }
.stat.copyable:active { background: rgba(98, 71, 245, .12); }
.stat.copyable.copied { border-color: rgba(16, 185, 129, .55); }
.copy-ico {
  position: absolute; top: 9px; right: 9px; width: 13px; height: 13px;
  fill: none; stroke: #9aa4b5; stroke-width: 1.7; stroke-linecap: round;
}
.stat.copyable:hover .copy-ico { stroke: #6247f5; }

.uid-chip {
  margin-top: 2px; padding: 1px 8px; border-radius: 999px;
  font: inherit; font-size: 11.5px; color: #6f7a8c; cursor: pointer;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(148, 160, 178, .3);
  transition: color .15s, border-color .15s, background .15s;
}
.uid-chip:hover { color: #6247f5; border-color: rgba(98, 71, 245, .45); background: rgba(98, 71, 245, .08); }
.uid-chip.copied { color: #059669; border-color: rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .1); }

.post-title { font-size: 13px; color: #4a5162; line-height: 1.45; }
.author-main { min-width: 0; }

.author-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
}
.avatar-img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: rgba(98, 71, 245, .12); flex: 0 0 auto;
}
.avatar-img.sm { width: 34px; height: 34px; }
.author-name { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.badge-title {
  font-style: normal; font-size: 11px; font-weight: 600; color: #6247f5;
  background: rgba(98, 71, 245, .12); padding: 1px 7px; border-radius: 999px;
}
.badge-level {
  font-size: 11px; color: #b45309; background: rgba(245, 158, 11, .14);
  padding: 1px 6px; border-radius: 999px;
}

.users-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 8px; font-size: 13px; font-weight: 650; color: #4a5162;
}
.user-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
}
.user-main { min-width: 0; }
.user-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-nick { font-size: 13.5px; font-weight: 600; color: #1b202a; }

@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parse-body { padding: 4px 14px 14px; }
  }

.parse-warn {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  color: #92400e; background: rgba(245, 158, 11, .13);
  border: 1px solid rgba(245, 158, 11, .32);
}


@media (max-width: 720px) {
  }

.parse-form input {
  width: 100%; height: 46px; padding: 0 15px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .8); color: var(--text);
  font: inherit; font-size: 14px;
  box-shadow: 0 1px 2px rgba(24, 28, 45, .04);
}


.paste-btn {
  flex: 0 0 auto; padding: 0 16px; gap: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; color: #4a5162;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(148, 160, 178, .35);
}
.paste-btn svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}
.paste-btn:hover { color: #6247f5; border-color: rgba(98, 71, 245, .45); background: rgba(255, 255, 255, .92); }

@media (max-width: 720px) {
}

/* 解析输入区：输入框 + 两个同款按钮，一行排开 */
.parse-form { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.parse-form input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 42px; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .8); color: var(--text);
  font: inherit; font-size: 14px;
}
.parse-form input::placeholder { color: #98a2b3; }
.parse-form input:focus {
  outline: none; border-color: rgba(98, 71, 245, .55);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 3px rgba(98, 71, 245, .12);
}
.parse-form .btn.ghost {
  flex: 0 0 auto; height: 42px; min-width: 66px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; color: #4a5162;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(148, 160, 178, .35);
}
.parse-form .btn.ghost:hover {
  color: #6247f5; border-color: rgba(98, 71, 245, .45); background: rgba(255, 255, 255, .95);
}
.parse-form .btn.ghost:active { background: rgba(98, 71, 245, .1); }
.parse-form .btn.ghost:disabled {
  opacity: .6; cursor: progress; color: #6247f5;
  border-color: rgba(98, 71, 245, .35);
}

@media (max-width: 720px) {
  .parse-form { gap: 7px; }
  .parse-form input { font-size: 15px; }
  .parse-form .btn.ghost { min-width: 60px; padding: 0 11px; font-size: 13px; }
}

/* ---------------- 帖子查机 ---------------- */
.stat-row.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.verdict {
  display: flex; align-items: center; gap: 14px; margin: 12px 0 12px;
  padding: 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .55);
}
.verdict-score { text-align: center; min-width: 68px; }
.verdict-score b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; color: #1b202a; }
.verdict-score span { font-size: 11px; color: #6f7a8c; }
.verdict-level { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.verdict-text { font-size: 12.5px; color: #6f7a8c; }

.verdict[data-level="low"] { border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .08); }
.verdict[data-level="low"] .verdict-level { color: #059669; }
.verdict[data-level="mid"] { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); }
.verdict[data-level="mid"] .verdict-level { color: #b45309; }
.verdict[data-level="high"] { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.verdict[data-level="high"] .verdict-level { color: #dc2626; }

.evidence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.evidence-item {
  position: relative; padding: 9px 12px 9px 30px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5; color: #3f4756;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .85);
}
.evidence-item::before {
  content: ''; position: absolute; left: 13px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
}
.evidence-item.none::before { background: #10b981; }
.evidence-item.info::before { background: #6247f5; }
.evidence-item.info { color: #4a5162; }

.tl-index {
  flex: 0 0 auto; width: 18px; text-align: right;
  font-size: 11px; color: #9aa4b5;
}
.tl-gap {
  font-size: 11px; color: #6f7a8c;
  background: rgba(148, 160, 178, .16);
  padding: 1px 7px; border-radius: 999px;
}
.tl-text { margin-top: 2px; line-height: 1.45; word-break: break-word; }

@media (max-width: 720px) {
  .stat-row.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 隐藏滚动条（仍可滚动） */
.app-body,
.all-block,
.overlay { scrollbar-width: none; -ms-overflow-style: none; }
.app-body::-webkit-scrollbar,
.all-block::-webkit-scrollbar,
.overlay::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ================= 版块数据 ================= */
.board-body {
  flex: 1 1 auto;
  min-height: 0;                       /* 允许内部滚动 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;   /* iOS 惯性滚动 */
  overscroll-behavior: contain;        /* 滚到头别带着整页跑 */
  touch-action: pan-y;                 /* 手机上下滑一定生效 */
  padding: 4px 18px 20px;
}

.board-search { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.board-search input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px;
}
.board-search input:focus { outline: none; border-color: rgba(98, 71, 245, .55); }

.board-hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 10px; }

.board-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.board-card {
  display: block; text-align: center; text-overflow: ellipsis;
  padding: 11px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .72);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden;
  transition: background .15s, border-color .15s, transform .12s;
}
.board-card:hover { background: #fff; border-color: rgba(98, 71, 245, .35); transform: translateY(-1px); }
.board-card:active { transform: scale(.97); }

.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.board-head .icon-btn { flex: 0 0 auto; }
.board-head-main { display: flex; flex-direction: column; min-width: 0; }
.board-head-main b { font-size: 15px; }
.board-head-main span { font-size: 12px; color: var(--muted); }

.range-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .6);
}
.range-bar input[type="date"] {
  height: 32px; padding: 0 8px; font: inherit; font-size: 12.5px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.range-sep { color: var(--muted); font-size: 12px; }
.range-quick { display: flex; gap: 6px; margin-left: auto; }
.range-bar .btn { height: 32px; padding: 0 14px; font-size: 13px; }

.chip {
  height: 30px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 12.5px; color: var(--text-2);
}
.chip:hover { border-color: rgba(98, 71, 245, .45); color: var(--accent); }

.board-table { overflow-x: auto; }
.board-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.board-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.board-table td { padding: 6px 8px; border-bottom: 1px solid rgba(16, 24, 40, .05); white-space: nowrap; }
.board-table .bd-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.board-table .bd-bar { position: relative; min-width: 88px; }
.board-table .bd-bar b { position: relative; font-weight: 650; }
.board-table .bd-bar-fill {
  position: absolute; left: 4px; top: 50%; height: 16px; transform: translateY(-50%);
  background: var(--accent-soft); border-radius: 4px; min-width: 2px;
}

.day-bars { display: flex; align-items: flex-end; gap: 4px; height: 92px; padding: 6px 2px 0; overflow-x: auto; }
.day-bar {
  flex: 0 0 34px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%;
}
.day-bar-fill { width: 70%; background: linear-gradient(180deg, var(--accent), rgba(98, 71, 245, .35)); border-radius: 4px 4px 0 0; }
.day-bar i { font-style: normal; font-size: 10px; color: var(--muted); margin-top: 3px; }
.day-bar b { font-size: 10px; font-weight: 600; color: var(--text-2); order: -1; margin-bottom: 2px; }

@media (max-width: 720px) {
  .board-body { padding: 2px 14px 16px; }
  .board-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; }
  .board-card { padding: 10px 6px; font-size: 12.5px; }
  .range-quick { margin-left: 0; }
  .range-bar { gap: 5px; }
}

/* 标题被加密时的帖子 ID 按钮 */
.post-id-chip {
  padding: 1px 9px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #6f7a8c;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(148, 160, 178, .32);
  transition: color .15s, border-color .15s, background .15s;
}
.post-id-chip:hover { color: #6247f5; border-color: rgba(98, 71, 245, .45); background: rgba(98, 71, 245, .08); }
.post-id-chip:active { transform: scale(.97); }

/* 今日 0 帖的提示条 */
.zero-hint {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; margin: -2px 0 4px; border-radius: 10px;
  color: #92400e; background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
}
.zero-hint .chip { height: 26px; font-size: 12px; color: #7c4a03; border-color: rgba(180, 83, 9, .35); }

/* 小节标题在窄屏允许换行，别把右侧说明挤断 */
.users-head { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 720px) {
  .users-head { font-size: 12.5px; }
  .users-head .muted.small { font-size: 11px; }
}

/* 分类筛选条 */
.tag-chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px;
  scrollbar-width: none;
}
.tag-chips::-webkit-scrollbar { display: none; }
.tag-chips .chip { flex: 0 0 auto; height: 28px; font-size: 12px; }
.tag-chips .chip.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px rgba(98, 71, 245, .22);
}

/* 板块列表卡片：只有名字 */

/* 详情：今天标签 */
.today-label { font-size: 12.5px; color: var(--muted); }
.today-label b { color: var(--text); font-weight: 650; }

/* 四列统计（手机两列） */
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 趋势图 */
.trend { padding: 4px 0 6px; }
.trend-svg { width: 100%; height: 150px; display: block; }
.trend-bar { fill: rgba(98, 71, 245, .45); stroke: none; }
.trend-bar:hover { fill: rgba(98, 71, 245, .75); }
.trend-line {
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round;
}
.trend-x { font-size: 8px; fill: #8a93a5; text-anchor: middle; }

/* 两列统计 */
.stat-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ================= 底部长条按钮 + 口令弹窗 ================= */
.special-bar {
  flex: 0 0 auto; width: 100%; height: 46px;
  border: 0; padding: 0;
  cursor: default;                 /* 不显示手型 */
  background: rgba(255, 255, 255, .34);
  border-top: 1px solid rgba(255, 255, 255, .75);
  border-radius: 0 0 24px 24px;
  outline: none;
}
.special-bar:hover,
.special-bar:active,
.special-bar:focus { background: rgba(255, 255, 255, .34); cursor: default; }

.pwd-mask {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(20, 16, 40, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pwd-mask input {
  width: min(300px, 100%); height: 46px; padding: 0 14px; text-align: center;
  letter-spacing: .12em; font: inherit; font-size: 16px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .92); color: var(--text);
  box-shadow: 0 18px 44px rgba(28, 22, 62, .26);
}
.pwd-mask input:focus { outline: none; border-color: rgba(98, 71, 245, .55); }

/* 特殊页先留空 */
.special-body { min-height: 200px; }
.special-body:empty { display: block; }

/* ================= 顶部：使用方式 / 登录 / 个人信息 ================= */
.gate {
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .62);
}
.gate-step { display: flex; flex-direction: column; gap: 8px; }
.gate-title { margin: 0; font-size: 13px; font-weight: 700; color: #4a5162; }
.gate-actions { display: flex; gap: 8px; }
.gate-actions .btn { flex: 1 1 0; height: 36px; font-size: 13.5px; }
.gate-note {
  margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: #7c859a;
}
.gate-note b { color: #4a5162; }
.gate-inputs { display: flex; gap: 8px; }
.gate-inputs input {
  flex: 1 1 0; min-width: 0; height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(148, 160, 178, .35);
  background: rgba(255, 255, 255, .85); color: var(--text);
  font: inherit; font-size: 13.5px;
}
.gate-inputs input:focus { outline: none; border-color: rgba(98, 71, 245, .55); }
#gateForm .btn { height: 36px; }
.gate-profile { flex-direction: row; align-items: center; gap: 10px; padding-top: 28px; }
.gate-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: rgba(98, 71, 245, .12); flex: 0 0 auto;
}
.gate-me { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gate-me b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-me span { font-size: 11.5px; color: #7c859a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-profile .btn { flex: 0 0 auto; }

/* ================= 提示文字统一提亮（原来灰得看不清） ================= */
.pins-hint,
.gate-note,
.board-hint,
.gate-me span,
.board-head-main span,
.stat span,
.stat-sub,
.parse-warn,
.day-bar i,
.trend-x,
.muted,
.muted.small {
  color: #414a5c;
  font-weight: 500;
}
.stat-sub { color: #5a6478; }
.trend-x { fill: #414a5c; }
.gate-note b { color: #1b202a; }

/* 说明类文字再放大一号，别让人眯眼 */
.gate-note { font-size: 12.5px; }
.board-hint { font-size: 12.5px; }
.pins-hint { font-size: 12px; }
.muted.small { font-size: 12px; }

/* ================= 提示文字：鲜艳显眼 ================= */
:root { --hint: #4b3fd6; }        /* 亮紫蓝，浅玻璃上够艳也够清楚 */

.pins-hint,
.board-hint,
.muted,
.muted.small,
.gate-me span,
.board-head-main span,
.stat span,
.pins-title + .pins-hint {
  color: var(--hint);
  font-weight: 600;
}

.gate-note {
  color: #3b2fc4;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.55;
  padding: 0;
  background: none;
  border: 0;
}
.gate-note b { color: #1f1663; font-weight: 800; }

.stat-sub { color: #5b52c9; font-weight: 600; }
.parse-warn { color: #8a4b00; }

/* 图表坐标轴保持深灰，别抢戏 */
.trend-x { fill: #4a5162; }
.day-bar i { color: #4a5162; }

/* 常用为空时的提示：只改文字颜色 */
.pins-empty {
  font-size: 12.5px;
  font-weight: 700;
  color: #0a9d4f;
  background: none;
  border: 0;
  padding: 0;
}

/* ================= 特殊页：返回按钮跟在按钮后面（右上） ================= */
.gate-actions .gate-back {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
}
.gate-profile .gate-back { width: 36px; height: 36px; }

/* 登录表单：返回跟在输入框后面，与输入框同高 */
.gate-inputs .gate-back { width: 38px; height: 38px; border-radius: 10px; }

/* ================= 提示文字：统一亮绿色（只改颜色，不加背景） ================= */
:root {
  --hint: #0aa850;          /* 亮绿 */
  --hint-strong: #068a44;   /* 稍深一点，正文用 */
}

.pins-hint,
.board-hint,
.muted,
.muted.small,
.gate-me span,
.board-head-main span,
.stat span,
.stat-sub,
.pins-title + .pins-hint {
  color: var(--hint);
  font-weight: 700;
}

.gate-note,
.gate-note b {
  color: var(--hint-strong);
  font-weight: 700;
}
.gate-note { line-height: 1.55; }

.parse-warn { color: var(--hint-strong); font-weight: 700; }

.pins-empty { color: var(--hint); font-weight: 700; }

@media (max-width: 720px) {
  .gate-note { font-size: 12.5px; }
}

/* ================= 特殊页 / 公众搬运 ================= */
.special-body { padding: 16px 18px 18px; }
.special-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.special-tools .btn { height: 40px; padding: 0 18px; }

.move-body { overflow-y: auto; padding: 4px 18px 18px; }

.move-blocks { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 16px; }
.move-text {
  font-size: 13.5px; line-height: 1.65; color: #1b202a;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  outline: none; white-space: pre-wrap; word-break: break-word;
}
.move-text:focus { border-color: rgba(98, 71, 245, .5); background: #fff; }

.move-img {
  position: relative; border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .85);
}
.move-img img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.move-del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 16px; line-height: 1; color: #fff;
  background: rgba(20, 22, 30, .55);
  border: 1px solid rgba(255, 255, 255, .5);
}
.move-del:hover { background: rgba(220, 38, 38, .85); }

.move-fields { display: flex; flex-direction: column; gap: 12px; }
.move-fields .field span { font-size: 12px; color: #4a5162; font-weight: 600; }
.move-fields input[type="text"],
.move-fields select {
  height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(148, 160, 178, .35);
  background: rgba(255, 255, 255, .85); color: var(--text);
  font: inherit; font-size: 13.5px;
}
.move-fields select:disabled { opacity: .55; }
.move-fields .check { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.move-actions { margin-top: 16px; }
.move-actions .btn { width: 100%; height: 42px; }

@media (max-width: 720px) {
  .move-body { padding: 4px 14px 14px; }
}



/* 公众搬运：字段纵向排列，手机上单列 */
.move-fields .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.move-fields .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.move-fields .field input[type="text"],
.move-fields .field select { width: 100%; }

@media (max-width: 720px) {
  .move-fields .form-row { grid-template-columns: 1fr; }
}

/* 公众搬运：按文章原样显示（图片不裁剪，段落不套框） */
.move-blocks { gap: 8px; }
.move-text {
  padding: 4px 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1f2430;
  font-size: 14px;
  line-height: 1.75;
}
.move-text:hover { background: rgba(255, 255, 255, .45); }
.move-text:focus {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(98, 71, 245, .45);
  box-shadow: 0 0 0 3px rgba(98, 71, 245, .10);
}

.move-img { background: none; border: 0; border-radius: 10px; }
.move-img img {
  display: block; margin: 0 auto;
  width: auto; height: auto;
  max-width: 100%; max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
}
.move-img.zoom img { max-height: none; cursor: zoom-out; }


/* 图片数量提示 */
.move-count {
  margin: 10px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a5162;
}
.move-count[data-over="1"] { color: #dc2626; }
.move-count[data-over="1"]::after { content: "（超了，删掉多余图片才能发）"; font-weight: 600; }

/* 发帖日志 */
.publish-log {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  max-height: 180px; overflow-y: auto;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
  font-size: 12.5px; line-height: 1.7; color: #4a5162;
  scrollbar-width: none;
}
.publish-log::-webkit-scrollbar { display: none; }
.log-line { white-space: pre-wrap; word-break: break-word; }
.log-line.ok { color: #068a44; font-weight: 700; }
.log-line.err { color: #dc2626; font-weight: 700; }
.log-line.dim { color: #7c859a; }

/* 图片序号：在关闭按钮左侧 */
.move-idx {
  position: absolute; top: 8px; right: 40px;
  min-width: 26px; height: 26px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(20, 22, 30, .55);
  border: 1px solid rgba(255, 255, 255, .5);
  pointer-events: none;
}


/* 图片容器贴合图片本身，序号/关闭按钮贴图片角 */
.move-blocks { align-items: center; }
.move-text { width: 100%; }
.move-img { width: fit-content; max-width: 100%; overflow: visible; }
.move-idx { right: 38px; }
