/* F组产品日记本 — 苹果风设计系统（浅色，简约 · 实用 · 大气） */

/* ================= Design Tokens ================= */
:root {
  /* 色彩 — 参考 Apple 人机界面 */
  --bg: #f5f5f7;
  --bg-soft: #ececef;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #49494d;
  --muted: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.13);

  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-weak: #eaf3fd;
  --primary-deep: #0058b0;

  --danger: #ff3b30;
  --danger-weak: #fff0ef;
  --warn: #ff9500;
  --warn-weak: #fff7e8;
  --green: #34c759;
  --gold: #d4a017;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 980px;

  /* 阴影 — 柔和多层 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.08), 0 22px 48px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  --tabbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 113, 227, 0.18); }

#app { min-height: 100%; display: flex; flex-direction: column; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }

/* 细滚动条 */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ================= 视图 ================= */
.view { flex: 1; display: flex; flex-direction: column; }

#view-loading {
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 14px;
}

.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--hairline-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 登录 / 初始化 ================= */
.auth-card {
  margin: auto;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 34px;
  width: min(420px, calc(100% - 40px));
  animation: auth-in 0.5s var(--spring);
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.auth-icon {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #42a1ec 0%, #0071e3 55%, #0051a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card .muted { text-align: center; margin-bottom: 26px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
  letter-spacing: 0.1px;
}
label input, label select, label textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
label input::placeholder, textarea::placeholder { color: #b0b0b6; }
label input:focus, label select:focus, label textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.16);
}
textarea { resize: vertical; min-height: 92px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.15s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
}
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost {
  background: rgba(0, 0, 0, 0.045);
  color: var(--text);
  border: 1px solid transparent;
}
.btn.ghost:hover { background: rgba(0, 0, 0, 0.08); }
.btn.danger { background: var(--danger-weak); color: var(--danger); }
.btn.danger:hover { background: #ffe4e2; }
.btn.block { width: 100%; margin-bottom: 10px; padding: 12px 20px; }
.btn.small { padding: 6px 13px; font-size: 12.5px; border-radius: var(--r-pill); }
.btn.attention {
  background: var(--warn-weak);
  color: #b25e00;
  border: 1px solid rgba(255, 149, 0, 0.35);
}
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-link {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-link:hover { background: var(--primary-weak); }
.btn-link.danger { color: var(--danger); }
.btn-link.danger:hover { background: var(--danger-weak); }

/* ================= 顶栏（毛玻璃） ================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #42a1ec 0%, #0071e3 60%, #0051a8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-name { background: linear-gradient(90deg, #1d1d1f, #3a3a3c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }

/* ================= 角色徽章（渐变配色，与头衔 flat 色区分） ================= */
.role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
/* 创始人：尊贵金 */
.role-founder {
  background: linear-gradient(135deg, #fce38a 0%, #f5c242 25%, #d4a017 50%, #f8d779 75%, #b8860b 100%);
  color: #4a2c00;
  border: 1px solid #d4a017;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* 管理员：蓝渐变 */
.role-admin {
  background: linear-gradient(135deg, #60a5fa 0%, #2b6de8 55%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(43, 109, 232, 0.32);
}
/* 普通用户：灰蓝渐变 */
.role-member {
  background: linear-gradient(135deg, #c3cdd9 0%, #94a3b4 55%, #7d8fa3 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(100, 116, 139, 0.28);
}

/* ================= 主内容 ================= */
#main-content {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 20px calc(var(--tabbar-h) + 46px);
}
.tab-panel { animation: panel-in 0.32s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 页面大标题 — 大气层级 */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.page-sub {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

/* ================= 统计 ================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--hairline);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: 0.2px; }

/* ================= 搜索框 ================= */
.search-wrap { position: relative; margin-bottom: 12px; }
.search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.045);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #98989e; }
.search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.16);
}
.search-sug {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 264px;
  overflow-y: auto;
  z-index: 30;
}
.search-sug-item {
  padding: 10px 14px;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.12s;
}
.search-sug-item:last-child { border-bottom: none; }
.search-sug-item:hover { background: var(--primary-weak); }

/* ================= 筛选栏 ================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-bar select,
.filter-bar input {
  padding: 9px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  flex: 1 1 118px;
  min-width: 0;
  max-width: 190px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.13);
}

/* ================= 卡片列表 ================= */
.card-list { display: flex; flex-direction: column; gap: 12px; }

.diary-card, .product-card, .member-card, .circle-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  padding: 18px 18px 16px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.diary-card:hover, .product-card:hover, .member-card:hover, .circle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.card-title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.2px; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
/* FOGFIRE圈 名片墙 */
.circle-card {
  position: relative;
  padding-left: 58px;
}
.circle-card.circle-first {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #fffdf6, #fff8e2);
}
.circle-rank {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.circle-rank.rank-crown {
  background: linear-gradient(135deg, #f6d365, #e0a800);
  color: #fff;
  font-size: 15px;
}
.circle-stats {
  margin-bottom: 0;
}
.tag {
  display: inline-block;
  background: var(--primary-weak);
  color: var(--primary-deep);
  border-radius: 7px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.card-content {
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
  color: var(--text-2);
}
.card-remark {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--muted);
}
.empty-ico {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.75;
}
.empty p:first-of-type { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }

.load-more-row { text-align: center; margin: 18px 0; }

/* ================= FAB ================= */
.fab {
  position: fixed;
  right: 22px;
  bottom: calc(var(--tabbar-h) + 26px);
  height: 50px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.18s var(--spring), background 0.2s;
}
.fab:hover { background: var(--primary-hover); }
.fab:active { transform: scale(0.93); }

/* ================= 底部导航（毛玻璃 iOS 风） ================= */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid var(--hairline);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 15;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 2px;
  border: none;
  background: none;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.tab-ico { font-size: 20px; line-height: 1.2; transition: transform 0.2s var(--spring); }
.tab-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; }
.tab-label-long { font-size: 8.5px; letter-spacing: -0.2px; white-space: nowrap; }
.tab.active { color: var(--primary); }
.tab.active .tab-ico { transform: translateY(-1px) scale(1.08); }

/* ================= 我的 ================= */
.me-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  padding: 22px 20px;
  margin-bottom: 18px;
}
.me-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s var(--spring);
}
.me-avatar:hover { transform: scale(1.05); }
.me-name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.me-role { margin-top: 4px; }
.me-actions { display: flex; flex-direction: column; gap: 4px; }
.me-status-line {
  margin-top: 5px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: mask-in 0.25s var(--ease);
}
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .modal-mask { align-items: center; }
}
.modal {
  background: var(--card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  width: min(540px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  animation: sheet-up 0.34s var(--spring);
}
@media (min-width: 640px) {
  .modal {
    border-radius: var(--r-xl);
    padding: 26px 26px 24px;
    animation: modal-pop 0.32s var(--spring);
  }
}
@keyframes sheet-up {
  from { transform: translateY(46px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
@keyframes modal-pop {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; padding: 12px 18px; }

/* ================= 头像库选择 ================= */
.ap-hint {
  font-size: 13px;
  color: var(--text-2, #86868b);
  margin: -6px 0 12px;
}
.ap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.ap-item {
  aspect-ratio: 1;
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s var(--ease), border-color 0.15s ease;
}
.ap-item img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.ap-item:hover { transform: scale(1.1); }
.ap-item:active { transform: scale(0.96); }
.ap-item.selected {
  border-color: var(--primary, #0071e3);
  box-shadow: 0 0 0 3px var(--primary-weak, rgba(0, 113, 227, 0.18));
}
@media (max-width: 420px) {
  .ap-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
.ap-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2, #86868b);
  margin: 14px 2px 8px;
}
.ap-item { position: relative; }
.ap-item .ap-crown {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.ap-item .ap-lock {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.ap-item.locked { cursor: not-allowed; }
.ap-item.locked img { opacity: 0.85; }
.ap-grid-premium .ap-item.selected {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* ================= 便利贴墙（固定大小校园墙） ================= */
.wall-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wall-sub {
  font-size: 12px;
  margin: -6px 0 12px;
}
.note-wall {
  position: relative;
  isolation: isolate; /* 墙内自成叠放体系：便签 z-index 不再穿透到弹窗/顶栏之上 */
  height: 440px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.3), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(155deg, #f4e9d2 0%, #eedcb9 55%, #e5cda4 100%);
  border: 10px solid #e2c79c;
  box-shadow:
    inset 0 3px 16px rgba(118, 82, 30, 0.22),
    inset 0 -3px 12px rgba(118, 82, 30, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.08);
}
.wall-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6f47;
  font-size: 14px;
}
.sticky-note {
  position: absolute;
  width: 118px;
  min-height: 100px;
  max-height: 132px;
  padding: 8px 9px;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 2px 3px 8px rgba(60, 40, 10, 0.22);
  transform: rotate(var(--rot)) translate(var(--dx, 0px), var(--dy, 0px));
  transition: transform 0.16s var(--ease), box-shadow 0.16s ease;
}
.sticky-note:hover {
  transform: rotate(var(--rot)) translate(var(--dx, 0px), var(--dy, 0px)) scale(1.09);
  box-shadow: 4px 9px 20px rgba(60, 40, 10, 0.32);
}
.sn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.sn-type {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-stack {
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 0 5px;
  color: rgba(0, 0, 0, 0.62);
}
.sn-content {
  font-size: 11.5px;
  line-height: 1.5;
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sn-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.sn-foot b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}
.sn-foot img {
  border-radius: 50%;
  flex-shrink: 0;
}

/* 便签详情弹窗 */
.nd-date {
  font-size: 12px;
  margin: -4px 0 10px;
}
.nd-content {
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, #fffdf3, #fff7c2);
  border: 1px solid rgba(180, 150, 60, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0 12px;
  box-shadow: inset 0 1px 4px rgba(160, 130, 40, 0.1);
}
.nd-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.nd-foot img { border-radius: 50%; }
.nd-stack-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 12.5px;
}
.nd-idx {
  font-weight: 700;
  white-space: nowrap;
}
/* 便签修改记录：原内容划线保留，不可抹除 */
.nd-history {
  margin: 10px 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}
.nd-history-title {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.nd-old {
  font-size: 13px;
  line-height: 1.7;
  color: #9a9a9e;
  white-space: pre-wrap;
  word-break: break-word;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 59, 48, 0.65);
  text-decoration-thickness: 1.5px;
}
.nd-old + .nd-old {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  margin-top: 6px;
  padding-top: 6px;
}
.sn-edited {
  font-size: 9px;
  opacity: 0.65;
}
@media (max-width: 640px) {
  .note-wall {
    height: 360px;
    border-width: 8px;
  }
  .sticky-note {
    width: 92px;
    min-height: 88px;
    max-height: 112px;
    padding: 7px 8px;
    gap: 4px;
  }
  .sn-content {
    font-size: 10.5px;
    -webkit-line-clamp: 3;
  }
}

/* ================= Toast ================= */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 40px);
  text-align: center;
  animation: toast-in 0.3s var(--spring);
}
@keyframes toast-in {
  from { transform: translateX(-50%) translateY(-14px); opacity: 0; }
  to { transform: translateX(-50%); opacity: 1; }
}
.toast.error { background: rgba(255, 59, 48, 0.92); }

/* ================= 维度 / SPU / SKU 标签 ================= */
.dim-tag {
  display: inline-block;
  border-radius: 7px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.spu-tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================= SKU 列表 ================= */
.sku-list {
  margin-top: 10px;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sku-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.sku-code {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  background: var(--bg-soft);
  border-radius: 7px;
  padding: 2px 9px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.asin-code {
  color: var(--muted);
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 12px;
}
.sku-actions { margin-left: auto; display: flex; gap: 6px; }

/* ================= 批量导入预览 ================= */
.import-ok { color: var(--green); font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.import-warn { color: var(--danger); font-size: 13px; margin: 6px 0; }
.import-preview {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 12px 14px;
  max-height: 210px;
  overflow-y: auto;
}
.import-row {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--hairline-strong);
}
.import-row:last-child { border-bottom: none; }

/* ================= 时间线表格 ================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.tl-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
#tl-table { min-width: 860px; }
.tl-table th {
  text-align: left;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.028);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.tl-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.tl-table tbody tr { transition: background 0.12s; }
.tl-table tbody tr:hover { background: rgba(0, 113, 227, 0.035); }
.tl-table tr:last-child td { border-bottom: none; }
.tl-table .tl-date { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-table .tl-text { max-width: 230px; word-break: break-word; }

/* ================= 图片 ================= */
.img-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.img-list.compact { gap: 6px; margin-top: 0; }
.img-thumb {
  display: block;
  width: 86px; height: 86px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  flex: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.img-thumb:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-list.compact .img-thumb { width: 52px; height: 52px; border-radius: var(--r-sm); }
.img-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.img-pick-item {
  position: relative;
  width: 74px; height: 74px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.img-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-pick-del {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
}

/* ================= 表单字段补充 ================= */
.field-block { margin: 12px 0; }
/* 表单行内多列（写日记级联 ①-④ 与 维度+日期 排 1-2 行） */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.form-row > label {
  margin-bottom: 0;
  min-width: 0;
  font-size: 12.5px;
}
.form-row > label input,
.form-row > label select {
  margin-top: 5px;
  padding: 9px 12px;
  font-size: 14px;
  text-overflow: ellipsis;
}
.field-label-inline { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field-label {
  display: inline-block;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 7px;
  margin-right: 8px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.card-purpose {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-word;
}
.card-ratings {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.card-ratings .rv { font-weight: 600; color: var(--text); }

/* ================= 店铺标签 ================= */
.shop-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: #e8f8ef;
  color: #0b7a45;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

/* ================= 头衔标签 ================= */
.title-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---- 卡通字体（站酷快乐体子集 woff2，仅含头衔/角色/宝座用字，8KB） ---- */
@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('fonts/ZCOOLKuaiLe-sub.woff2') format('woff2'),
       url('fonts/ZCOOLKuaiLe-sub.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.title-tag, .role-badge {
  font-family: 'ZCOOL KuaiLe', 'YouYuan', '幼圆', 'STYouYuan', 'Comic Sans MS', cursive;
  letter-spacing: 0.5px;
}

/* ================= 头像 ================= */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  vertical-align: middle;
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 800;
  overflow: hidden;
}
.author-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================= 在线状态点 ================= */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  vertical-align: middle;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.status-online { background: var(--green); }
.status-busy { background: var(--warn); }
.status-offline { background: #c7c7cc; }

/* ================= 公告页 ================= */
.notice-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.notice-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.notice-update {
  padding: 11px 0;
  border-bottom: 1px dashed var(--hairline-strong);
}
.notice-update:last-child { border-bottom: none; }
.notice-update-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.notice-update-head b { font-size: 14px; letter-spacing: -0.1px; }
.notice-date {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 2px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.notice-update ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.85;
}
.pts-up { color: #ff3b30; font-weight: 700; font-variant-numeric: tabular-nums; }
.pts-down { color: #34c759; font-weight: 700; font-variant-numeric: tabular-nums; }
.title-change { color: var(--muted); }
.title-change b { color: #b45309; }

/* ================= 分段控件（上周 / 本周） ================= */
.seg {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--r-md);
  padding: 2.5px;
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ================= 产品审批 ================= */
.tag-pending { background: var(--warn-weak); color: #b25e00; }
.tag-rejected { background: var(--danger-weak); color: var(--danger); }
.approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.approval-item:last-child { border-bottom: none; }
.approval-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin: 14px 0 6px;
}

/* ================= 日记卡片挂件 ================= */
.card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
}
.card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.card-btns { display: flex; gap: 6px; }
.del-req-tag {
  background: var(--warn-weak);
  border: 1px solid rgba(255, 149, 0, 0.35);
  color: #b25e00;
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 12.5px;
  margin: 8px 0;
}

/* ================= 状元宝座 ================= */
.throne-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--r-xl);
  padding: 30px 20px 26px;
  margin-bottom: 16px;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.6), transparent 55%),
    linear-gradient(165deg, #fff8e2 0%, #fbe3a0 30%, #efc660 58%, #d9a62b 100%);
  border: 1px solid rgba(212, 160, 23, 0.65);
  box-shadow: 0 12px 36px rgba(212, 160, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.throne-glow {
  position: absolute;
  top: -64px; left: 50%;
  transform: translateX(-50%);
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 244, 195, 0.85), transparent 70%);
  pointer-events: none;
}
.throne-crown {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(120, 80, 0, 0.3));
  animation: crown-bob 3.2s ease-in-out infinite;
}
@keyframes crown-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
.throne-heading {
  font-family: 'ZCOOL KuaiLe', 'YouYuan', '幼圆', 'STYouYuan', 'Comic Sans MS', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #6b4500;
  letter-spacing: 2px;
  margin: 8px 0 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.throne-avatar {
  width: 88px; height: 88px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(120, 80, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.throne-avatar .avatar { width: 80px !important; height: 80px !important; font-size: 32px !important; }
.throne-name {
  font-size: 21px;
  font-weight: 800;
  color: #4a2c00;
  letter-spacing: -0.3px;
  margin-bottom: 7px;
}
.throne-badges { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.throne-delta { font-size: 13.5px; color: #7a5200; margin-bottom: 14px; }
.throne-delta b { font-size: 17px; color: #b45309; }
.throne-empty { font-size: 15px; color: #8a6a20; margin: 20px 0; }
.throne-prize {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, #fff8e6 100%);
  border: 1.5px dashed #d97706;
  color: #b45309;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(180, 83, 9, 0.16);
}
.throne-rules {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-2, #6e6e73);
  text-align: left;
}
.throne-rules b { color: var(--text, #1d1d1f); }
.throne-history { display: flex; flex-direction: column; gap: 8px; }
.throne-history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #fffbeb 0%, transparent 100%);
  border-left: 3px solid var(--warn);
  border-radius: var(--r-sm);
}

/* ================= 产品属性标签 + 新品跟进向导（v2.14） ================= */
.tag-new { background: #fde8f0; color: #c2185b; }
.tag-old { background: var(--bg-soft); color: var(--text-2); }
.tag-np { background: var(--primary-weak); color: var(--primary-deep); }
.tag-ok { background: #e6f7ec; color: #1b7f3b; }

.np-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: -8px 0 12px;
  line-height: 1.6;
}
.np-progress {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.np-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.np-dot.act { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35); }
.np-dot.ok { background: var(--green); color: #fff; }

.np-steps { display: flex; flex-direction: column; gap: 10px; }
.np-step {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--card);
  transition: all 0.2s var(--ease);
}
.np-step.active { border-color: var(--primary); box-shadow: 0 2px 12px rgba(0, 113, 227, 0.10); }
.np-step.done { background: #fafcfb; border-color: rgba(52, 199, 89, 0.25); }
.np-step.locked { opacity: 0.55; background: var(--bg); }
.np-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.np-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.np-step.active .np-num { background: var(--primary); color: #fff; }
.np-step.done .np-num { background: var(--green); color: #fff; }
.np-step-title { font-size: 14px; font-weight: 600; flex: 1; }
.np-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--muted);
  flex: none;
}
.np-badge.ok { background: #e6f7ec; color: #1b7f3b; }
.np-badge.act { background: var(--primary-weak); color: var(--primary-deep); }
.np-body { margin-top: 10px; }
.np-body label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 8px 0 4px; }
.np-body input[type="date"],
.np-body input[type="number"],
.np-body select,
.np-body textarea {
  width: 100%;
  font-size: 14px;
}
.np-sum { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 6px; }
.np-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: flex-end; }
.np-locked-tip { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.np-late-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--warn-weak);
  border: 1px solid rgba(255, 149, 0, 0.25);
  animation: sheet-up 0.25s var(--ease);
}
.np-late-box textarea { min-height: 64px; resize: vertical; }

/* ⑧ 正常备货 / 淘汰 二选一 */
.np-decision { display: flex; gap: 10px; margin-top: 8px; }
.np-dec {
  flex: 1;
  cursor: pointer;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.18s var(--ease);
  user-select: none;
}
.np-dec input { display: none; }
.np-dec:hover { border-color: var(--primary); }
.np-dec.sel {
  border-color: var(--primary);
  background: var(--primary-weak);
  color: var(--primary-deep);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.14);
}
.np-dec-t { pointer-events: none; }

/* ================= 大屏适配 ================= */
@media (min-width: 900px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

/* ================= 消息通知 · 师徒任务（v2.16） ================= */
.notif-panel {
  background: var(--card, #fff);
  border: 1px solid var(--hairline, #ececf0);
  border-radius: var(--r-lg, 16px);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.notif-head h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.notif-badge {
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
}
.notif-list, .task-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md, 12px);
  background: var(--bg, #f5f5f7);
}
.notif-item.unread { background: #eef4ff; box-shadow: inset 3px 0 0 #0071e3; }
.notif-ico { font-size: 18px; line-height: 1.4; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13.5px; font-weight: 600; color: var(--text, #1d1d1f); }
.notif-time { font-size: 11px; color: var(--muted, #86868b); font-weight: 400; margin-left: 8px; }
.notif-content { font-size: 12.5px; color: var(--text-2, #515154); margin-top: 2px; word-break: break-word; }
.notif-actions { flex-shrink: 0; align-self: center; }
.task-item {
  padding: 10px 12px;
  border-radius: var(--r-md, 12px);
  background: var(--bg, #f5f5f7);
}
.task-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.task-hours {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 2px 10px;
}
.task-content { font-size: 13.5px; color: var(--text-2, #515154); white-space: pre-wrap; word-break: break-word; }
.task-review {
  margin-top: 6px;
  font-size: 12.5px;
  color: #0b7a45;
  background: #e8f8ef;
  border-radius: var(--r-md, 12px);
  padding: 6px 10px;
}
.avatar-act {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .15s ease;
}
.avatar-act:hover { transform: scale(1.08); }
.rel-tag { background: #e8f8ef !important; color: #0b7a45 !important; margin-left: 4px; }
.rel-master { background: #eef4ff !important; color: #1d4ed8 !important; }
.tag-np-age {
  background: #fff7e6;
  color: #b45309;
  border: 1px solid #fde68a;
}
.ap-owned {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #34c759;
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.6;
}
.ap-price {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.6;
}
.ap-item.owned { outline: 2px solid #34c759; outline-offset: -2px; }

/* ---------- v2.17：折叠半隐藏 / 签名 / 便利贴社交 / 师徒看板 ---------- */
.clp-hidden { display: none !important; }
.clp-toggle { margin-top: 10px; }

/* 个性签名：圈名片醒目展示 + 我的页 */
.circle-sign {
  margin: 6px 0 2px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #b45309;
  background: linear-gradient(90deg, #fef3c7, #fde68a 40%, #fef3c7);
  border-radius: 10px;
  border: 1px dashed #d97706;
  letter-spacing: .5px;
  overflow-wrap: anywhere;
}
.me-sign-line { margin: 4px 0; }
.sign-text {
  font-size: 15px;
  font-weight: 700;
  color: #b45309;
  background: linear-gradient(90deg, #fef3c7, #fde68a 40%, #fef3c7);
  border-radius: 8px;
  padding: 2px 10px;
  border: 1px dashed #d97706;
  overflow-wrap: anywhere;
}

/* 便利贴卡片点赞评论角标 */
.sn-acts {
  margin-left: auto;
  font-size: 11px;
  opacity: .75;
  white-space: nowrap;
}
.sn-foot { display: flex; align-items: center; gap: 4px; }

/* 便签详情：社交区 */
.nd-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 6px;
  flex-wrap: wrap;
}
.nd-comments {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line, #e5e5ea);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
}
.nd-comment { padding: 6px 0; border-bottom: 1px dashed var(--line, #e5e5ea); }
.nd-comment:last-child { border-bottom: none; }
.nd-comment-text { margin-top: 2px; overflow-wrap: anywhere; }
.nd-comment-form { display: flex; gap: 8px; margin: 8px 0; }
.nd-comment-form input { flex: 1; }

/* 师徒看板 */
.stats-list { display: flex; flex-direction: column; gap: 10px; }
.stats-sub { font-size: 12px; }
.stats-row {
  padding: 10px 12px;
  border: 1px solid var(--line, #e5e5ea);
  border-radius: 12px;
  background: var(--card, #fff);
}
.stats-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.stats-nums { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-score { background: #fef3c7; color: #b45309; }
.tag-sat { background: #dbeafe; color: #1d4ed8; }

/* ===== v2.19 打卡签到 / 勋章墙 / 日历 / 周战报 ===== */
.checkin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1px solid #fde68a; margin-bottom: 14px; }
.ck-info { display: flex; align-items: center; gap: 12px; }
.ck-flame { font-size: 34px; line-height: 1; }
.ck-streak { font-size: 16px; font-weight: 700; color: #b45309; }
.ck-sub { font-size: 12px; margin-top: 2px; }
.checkin-bar .btn:disabled { opacity: .55; cursor: default; }

.medal-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.medal-mini { font-size: 18px; cursor: default; }
.medal-more { font-size: 12px; }
.medal-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; max-height: 52vh; overflow-y: auto; }
.medal-cell { text-align: center; padding: 12px 8px; border-radius: 14px; background: linear-gradient(180deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.medal-cell.medal-locked { background: #f3f4f6; border-color: #e5e7eb; filter: grayscale(1); opacity: .72; }
.medal-ico { font-size: 30px; }
.medal-name { font-size: 13px; font-weight: 700; margin-top: 4px; }
.medal-desc { font-size: 11px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
.medal-got { font-size: 10px; margin-top: 6px; color: #b45309; font-weight: 600; }
.medal-cell.medal-locked .medal-got { color: #9ca3af; }

.view-toggle { display: inline-flex; gap: 6px; margin-left: auto; }
.diary-calendar { margin: 12px 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #e5e5ea); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { text-align: center; font-size: 12px; color: #9ca3af; padding: 4px 0; }
.cal-cell { min-height: 58px; border-radius: 10px; background: #f9fafb; padding: 6px; cursor: default; }
.cal-cell.empty { background: transparent; }
.cal-cell.has-entries { background: #eff6ff; cursor: pointer; border: 1px solid #bfdbfe; }
.cal-cell.has-entries:hover { background: #dbeafe; }
.cal-cell.is-today { outline: 2px solid var(--primary, #0071e3); }
.cal-day { font-size: 13px; font-weight: 600; color: #374151; }
.cal-count { font-size: 11px; color: #1d4ed8; margin-top: 4px; font-weight: 600; }
.day-entries { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: 50vh; overflow-y: auto; }
.day-entry { padding: 10px 12px; border-radius: 12px; background: #f9fafb; border: 1px solid #e5e7eb; }
.user-task-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; font-size: 12px; }
.user-task-head .btn-link { margin-left: auto; }

.report-card { border: 1px solid #c7d2fe; background: linear-gradient(180deg, #eef2ff, #f8fafc); }
.report-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.report-col { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 12px; }
.report-col-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #4338ca; }
.report-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.report-medal { font-size: 16px; }
@media (max-width: 640px) { .medal-wall { grid-template-columns: repeat(3, 1fr); } .report-cols { grid-template-columns: 1fr; } .view-toggle { margin-left: 0; } }

/* ===== v2.20 深色模式 ===== */
.dark {
  --bg: #1c1c1e;
  --bg-soft: #2c2c2e;
  --card: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #c7c7cc;
  --muted: #8e8e93;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --primary: #0a84ff;
  --primary-hover: #409cff;
  --primary-weak: #1c3a5f;
  --primary-deep: #64b5ff;
  --danger: #ff453a;
  --danger-weak: #3c1c1a;
  --warn: #ff9f0a;
  --warn-weak: #3c2e10;
  --green: #30d158;
  --gold: #ffd60a;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.35), 0 22px 48px rgba(0, 0, 0, 0.3);
}
.dark .panel, .dark .card, .dark .modal-box, .dark .sheet, .dark .note-card,
.dark .medal-cell, .dark .report-col, .dark .cal-cell, .dark .day-entry,
.dark .user-task-item, .dark .np-step, .dark .day-entry {
  background: var(--card);
  color: var(--text);
}
.dark .cal-cell.has-entries { background: #1e3a5f; border-color: #2d5a8e; }
.dark .cal-cell.has-entries:hover { background: #264e7a; }
.dark .cal-day { color: var(--text); }
.dark .report-card { border-color: #3a3a6e; background: linear-gradient(180deg, #1e1e3a, #1c1c1e); }
.dark .report-col { background: rgba(255, 255, 255, 0.06); }
.dark .report-col-title { color: #a5b4fc; }
.dark .medal-wall .medal-locked { background: #2c2c2e; opacity: 0.5; }
.dark .note-wall { background: #2c2416; border-color: #4a3c20; }
.dark input, .dark select, .dark textarea {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--hairline-strong);
}
.dark .btn-ghost { background: var(--bg-soft); color: var(--text); }
.dark .seg { background: var(--bg-soft); }
.dark .tabbar, .dark .topbar { background: rgba(28, 28, 30, 0.82); }
.dark .page-head { color: var(--text); }
.dark .page-sub { color: var(--text-2); }
.dark .checkin-bar { background: var(--bg-soft); border-color: var(--hairline-strong); }
.dark .ck-sub { color: var(--text-2); }

/* ===== v2.20 仪表盘卡片 ===== */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.dash-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px; text-align: center; }
.dash-card .dash-num { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.dash-card .dash-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dash-section { margin: 16px 0; }
.dash-section-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.dash-rank { display: flex; flex-direction: column; gap: 6px; }
.dash-rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 13px; }
.dash-rank-medal { font-size: 16px; width: 24px; text-align: center; }
.dash-rank-name { flex: 1; color: var(--text); }
.dash-rank-val { font-weight: 600; color: var(--primary); }
@media (max-width: 640px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== v2.20 趋势图 ===== */
.trend-wrap { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px; margin: 16px 0; }
.trend-wrap canvas { width: 100% !important; max-height: 260px; }
.trend-tabs { display: flex; gap: 8px; margin-bottom: 12px; }

/* ===== v2.20 通知偏好 ===== */
.np-prefs { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.np-pref-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-soft); }
.np-pref-label { font-size: 14px; color: var(--text); }
.np-pref-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.np-pref-toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.np-pref-toggle input { opacity: 0; width: 0; height: 0; }
.np-pref-slider { position: absolute; inset: 0; background: var(--hairline-strong); border-radius: 13px; cursor: pointer; transition: background .2s; }
.np-pref-slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .2s; }
.np-pref-toggle input:checked + .np-pref-slider { background: var(--primary); }
.np-pref-toggle input:checked + .np-pref-slider::before { transform: translateX(18px); }

/* ===== v2.20 审计日志 ===== */
.audit-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.audit-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 12px; }
.audit-action { font-weight: 600; color: var(--primary); min-width: 70px; }
.audit-user { color: var(--text); min-width: 50px; }
.audit-detail { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-time { color: var(--muted); font-size: 11px; }

/* ===== v2.20 备份管理 ===== */
.backup-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.backup-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 12px; }
.backup-name { flex: 1; color: var(--text); }
.backup-size { color: var(--muted); min-width: 60px; text-align: right; }
.backup-time { color: var(--muted); }

/* ===== v2.20 深色切换按钮 ===== */
.theme-toggle { background: none; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 4px 10px; font-size: 16px; cursor: pointer; color: var(--text); line-height: 1; }
.theme-toggle:hover { background: var(--bg-soft); }

/* ===== v2.21 等级光环边框 ===== */
.avatar-frame { position: relative; display: inline-block; border-radius: 50%; }
.avatar-frame img, .avatar-frame .avatar-placeholder {
  display: block; border-radius: 50%; object-fit: cover;
  width: 44px; height: 44px;
}
.avatar-frame.frame-bronze { box-shadow: 0 0 0 3px #cd7f32, 0 0 12px rgba(205, 127, 50, 0.35); }
.avatar-frame.frame-silver { box-shadow: 0 0 0 3px #c0c0c0, 0 0 14px rgba(192, 192, 192, 0.4); }
.avatar-frame.frame-gold { box-shadow: 0 0 0 3px #ffd700, 0 0 18px rgba(255, 215, 0, 0.5); }
.avatar-frame.frame-diamond { box-shadow: 0 0 0 3px #b9f2ff, 0 0 22px rgba(185, 242, 255, 0.6); }
.avatar-frame.frame-rainbow {
  box-shadow: 0 0 0 3px transparent, 0 0 24px rgba(255, 100, 100, 0.3);
  background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
  padding: 3px;
}
.avatar-frame.frame-rainbow img, .avatar-frame.frame-rainbow .avatar-placeholder { width: 38px; height: 38px; }
/* 大号头像框 */
.avatar-frame.lg img, .avatar-frame.lg .avatar-placeholder { width: 72px; height: 72px; }
.avatar-frame.xl img, .avatar-frame.xl .avatar-placeholder { width: 96px; height: 96px; }
.avatar-frame.frame-rainbow.lg { padding: 4px; }
.avatar-frame.frame-rainbow.lg img { width: 64px; height: 64px; }
.avatar-frame.frame-rainbow.xl { padding: 5px; }
.avatar-frame.frame-rainbow.xl img { width: 86px; height: 86px; }
/* 呼吸光效（高等级） */
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 3px #ffd700, 0 0 18px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 0 4px #ffd700, 0 0 28px rgba(255, 215, 0, 0.7); }
}
.avatar-frame.frame-gold.pulse { animation: avatarPulse 3s ease-in-out infinite; }
@keyframes avatarRainbowSpin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.avatar-frame.frame-rainbow.pulse { animation: avatarRainbowSpin 6s linear infinite; }

/* ===== v2.21 动态头像效果 ===== */
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.avatar-frame.float img { animation: avatarFloat 3s ease-in-out infinite; }
@keyframes avatarShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.avatar-frame.shine::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: avatarShine 4s ease-in-out infinite;
  pointer-events: none;
}
/* 成就限定头像标记 */
.avatar-badge-ach {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #ff6b20, #ff4500);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
/* 节日限定标记 */
.avatar-badge-limited {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #ff4060, #c02040);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
/* 头像选择器分区标题 */
.ap-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-section-title .ap-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 500;
}

/* ===== v2.21 三元及第横排 ===== */
.rank-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 4px; }
@media (max-width: 640px) { .rank-trio { grid-template-columns: 1fr; } }

/* ===== v2.23 视觉排版优化 11 项 ===== */

/* ① 统计卡片：彩色左边条 + 图标 */
.dash-card { position: relative; overflow: hidden; text-align: left; padding: 18px 16px 18px 20px; transition: transform .2s var(--ease), box-shadow .2s ease; }
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; }
.dash-card:nth-child(1)::before { background: linear-gradient(180deg, #0071e3, #40a0ff); }
.dash-card:nth-child(2)::before { background: linear-gradient(180deg, #34c759, #6be08a); }
.dash-card:nth-child(3)::before { background: linear-gradient(180deg, #ff9500, #ffb84d); }
.dash-card:nth-child(4)::before { background: linear-gradient(180deg, #af52de, #c98aff); }
.dash-card .dash-ico { font-size: 22px; margin-bottom: 4px; }
.dash-card .dash-num { font-size: 26px; font-weight: 700; line-height: 1.15; }
.dash-card .dash-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ② 卡片间距加大 */
.card-list, .dash-grid { gap: 16px; }
.notice-card, .panel { margin-bottom: 16px; }

/* ③ 章节标题装饰：彩色小竖条 */
.section-head h3, .notice-card h3, .dash-section-title {
  position: relative;
  padding-left: 14px;
}
.section-head h3::before, .notice-card h3::before, .dash-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #40a0ff);
}

/* ④ 表格行 hover 高亮 */
.tl-table tbody tr, .dash-rank-row, .audit-item, .backup-item {
  transition: background 0.15s ease;
}
.tl-table tbody tr:hover, .dash-rank-row:hover, .audit-item:hover, .backup-item:hover {
  background: rgba(0, 113, 227, 0.06);
}
.dark .tl-table tbody tr:hover, .dark .dash-rank-row:hover {
  background: rgba(10, 132, 255, 0.12);
}

/* ⑤ 卡片顶部渐变色条 */
.notice-card { position: relative; overflow: hidden; }
.notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #64b5ff, var(--primary));
  opacity: 0.7;
}

/* ⑥ 按钮按压反馈 */
.btn { user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.96); }
.btn.primary:active { transform: scale(0.96); box-shadow: 0 1px 4px rgba(0,113,227,0.2); }

/* ⑦ 空状态插画 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 28px;
  text-align: center;
}
.empty-state .empty-ico { font-size: 52px; margin-bottom: 12px; opacity: 0.85; filter: grayscale(0.15); }
.empty-state .empty-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ⑧ 数字滚动动画（JS 辅助） */
.dash-num.counting { transition: none; }

/* ⑨ FOGFIRE圈错落排布 */
.circle-card:nth-child(odd) { transform: translateY(6px); }
.circle-card:nth-child(even) { transform: translateY(-2px); }
.circle-card:nth-child(3n) { transform: translateY(10px) rotate(0.3deg); }
.circle-card { transition: transform .25s var(--ease), box-shadow .25s ease; }
.circle-card:hover { transform: translateY(-3px) scale(1.01) !important; box-shadow: var(--shadow-md); z-index: 2; }

/* ⑩ 页面切换滑动动画 */
.tab-panel { animation: tabSlideIn 0.3s var(--ease); }
@keyframes tabSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ⑪ 深色模式自动切换（JS 检测 prefers-color-scheme） */
@media (prefers-color-scheme: dark) {
  .auto-theme { /* JS 挂载类名 */ }
}

/* 统计图标（JS 渲染） */
.dash-card .dash-ico { display: block; }

/* ===== v2.23 团队动态流 + 每日一问 ===== */
.feed-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px 0; }
.feed-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bg-soft); font-size: 13px;
  transition: background .15s;
}
.feed-item:hover { background: rgba(0,113,227,0.06); }
.feed-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.feed-body { flex: 1; }
.feed-user { font-weight: 600; color: var(--text); }
.feed-text { color: var(--text-2); margin-top: 1px; }
.feed-time { font-size: 11px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.feed-item.anniversary { background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,149,0,0.08)); border: 1px solid rgba(255,215,0,0.25); }

/* 每日一问 */
.dq-question { font-size: 15px; font-weight: 600; color: var(--text); margin: 8px 0 12px; line-height: 1.5; }
.dq-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.dq-input { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--bg-soft); color: var(--text); font-size: 13px; resize: none; }
.dq-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.dq-answers { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.dq-answer { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 13px; }
.dq-answer-content { flex: 1; color: var(--text); line-height: 1.5; }
.dq-answer-name { font-weight: 600; font-size: 12px; color: var(--muted); }
.dq-done { padding: 10px 0; color: var(--green); font-size: 13px; }

/* ===== v2.25 FOGFIRE圈成员卡片全新设计 ===== */
.cc {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px 18px 14px 52px;
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s;
}
.cc:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}
.cc-founder {
  background: linear-gradient(135deg, #fffdf5 0%, #fff8e8 100%);
  border-color: #f0d88a;
}
.dark .cc-founder { background: linear-gradient(135deg, #2c2810 0%, #2a2518 100%); border-color: #6b5a20; }
.cc-self { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-xs); }

/* 排名 */
.cc-rank {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-crown {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

/* 主体两栏 */
.cc-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cc-avatar-wrap, .cc-avatar-btn {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.cc-avatar-btn:hover { transform: scale(1.05); transition: transform .15s; }
.cc-info {
  flex: 1;
  min-width: 0;
}

/* 姓名行 */
.cc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.cc-rel {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  background: #e8f8ef;
  color: #0b7a45;
  font-size: 10px;
  font-weight: 600;
}
.cc-rel-m { background: #e8eef8; color: #2060b0; }
.cc-me {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
}

/* 头衔/角色 */
.cc-badges {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

/* 签名 */
.cc-sign {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧数据区 */
.cc-right {
  flex-shrink: 0;
  text-align: right;
}
.cc-stats {
  display: flex;
  gap: 14px;
}
.cc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.cc-stat-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.cc-stat-label {
  font-size: 10px;
  color: var(--muted);
}
.cc-meta {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.cc-task-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}
.cc-task-link:hover { text-decoration: underline; }

/* 勋章行 */
.cc-medals {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.cc-medal {
  font-size: 16px;
  cursor: default;
  transition: transform .15s;
}
.cc-medal:hover { transform: scale(1.25); }
.cc-medal-more {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.cc-medal-link {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.cc-medal-link:hover { text-decoration: underline; }

/* 移动端 */
@media (max-width: 520px) {
  .cc { padding: 14px 14px 12px 48px; }
  .cc-main { flex-direction: column; gap: 10px; }
  .cc-right { text-align: left; }
  .cc-stats { gap: 18px; }
  .cc-meta { justify-content: flex-start; }
}

/* ===== v2.25.1 名片动态轮播 ===== */
.cc-feed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text-2);
  transition: opacity .25s ease;
  overflow: hidden;
}
.cc-feed-icon { font-size: 14px; flex-shrink: 0; }
.cc-feed-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.cc-feed.feed-anni {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,149,0,0.08));
  border: 1px solid rgba(255,215,0,0.2);
}

/* ===== v2.25.1 消息通知全新设计 ===== */
.notif-panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.notif-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff453a, #ff6b5a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255,69,58,0.35);
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 13px;
  transition: background .15s, transform .15s;
  position: relative;
}
.notif-item:hover {
  background: rgba(0,113,227,0.05);
  transform: translateX(2px);
}
.notif-item.unread {
  background: rgba(0,113,227,0.06);
  border-left: 3px solid var(--primary);
}
.notif-item.unread .notif-title { font-weight: 600; }
.notif-ico {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.notif-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-time {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ===== v2.26 日记日期分组 + 筛选标签块 ===== */
/* 日期分组 */
.date-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 6px;
}
.date-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.date-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* 筛选标签块 */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--card);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-weak);
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,113,227,0.28);
}
.dark .chip { background: var(--panel); }
.dark .chip.active { background: var(--primary); color: #fff; }

/* ===== v2.27 时间线+产品板块 10 项优化 ===== */

/* ① 时间线行高亮 + 维度色点 */
.tl-table tbody tr { transition: background .15s; }
.tl-table tbody tr:hover { background: rgba(0,113,227,0.06); }
.dark .tl-table tbody tr:hover { background: rgba(10,132,255,0.1); }
.dim-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.dim-dot-price { background: #0071e3; }
.dim-dot-visual { background: #34c759; }
.dim-dot-link { background: #af52de; }
.dim-dot-product { background: #ff9500; }
.dim-dot-service { background: #ff453a; }
.dim-dot-infringe { background: #8e8e93; }

/* ② 图片灯箱 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn .25s ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lbZoomIn .25s ease;
}
@keyframes lbZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ③ 时间线日期分隔线 */
.tl-date-sep {
  background: var(--bg-soft) !important;
}
.tl-date-sep td {
  padding: 6px 12px !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  border-top: 2px solid var(--hairline) !important;
}

/* ④ 行折叠 */
.tl-content-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-expand-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
}

/* ⑤ 导出按钮 loading */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* ⑥ SKU 行美化 */
.sku-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 13px;
  transition: background .15s;
}
.sku-row:hover { background: rgba(0,113,227,0.06); }
.sku-code {
  font-weight: 600;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  background: var(--card);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}
.asin-code {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  color: var(--primary);
}
.asin-code a {
  color: var(--primary);
  text-decoration: none;
}
.asin-code a:hover { text-decoration: underline; }

/* ⑧ 产品统计角标 */
.card-stat-badges {
  display: flex;
  gap: 6px;
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ⑨ SKU 收起/展开 */
.sku-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
}
.sku-toggle:hover { text-decoration: underline; }

/* ⑩ 产品卡颜色区分 */
.product-card { position: relative; overflow: hidden; }
.product-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.product-card.pd-new::before { background: linear-gradient(180deg, #ff9500, #ffb84d); }
.product-card.pd-old::before { background: linear-gradient(180deg, #0071e3, #40a0ff); }
.product-card { padding-left: 22px; }

/* ===== v2.28 OT KING 职场黑鸡汤 ===== */
.otk-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.otk-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%);
  pointer-events: none;
}
.otk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.otk-icon { font-size: 28px; }
.otk-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.otk-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
}
.otk-quote {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  color: #fff;
  letter-spacing: 0.5px;
}
.otk-date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
}

/* NEW tab 页面 */
#tab-newtab .page-head h2 {
  background: linear-gradient(135deg, #af52de, #0071e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== v2.29.2 朋友圈风格个人动态 ===== */
.cc-moment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,113,227,0.06), rgba(100,181,255,0.08));
  border: 1px solid rgba(0,113,227,0.12);
  transition: all .2s var(--ease);
}
.cc-moment:hover {
  background: linear-gradient(135deg, rgba(0,113,227,0.1), rgba(100,181,255,0.12));
  border-color: rgba(0,113,227,0.2);
}
.cc-moment-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cc-moment-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.2px;
  flex: 1;
}
.cc-moment-empty {
  background: var(--bg-soft);
  border-color: var(--hairline);
}
.cc-moment-empty .cc-moment-text {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}
.dark .cc-moment {
  background: linear-gradient(135deg, rgba(10,132,255,0.1), rgba(64,156,255,0.08));
  border-color: rgba(10,132,255,0.18);
}
.dark .cc-moment:hover {
  background: linear-gradient(135deg, rgba(10,132,255,0.15), rgba(64,156,255,0.12));
}

/* ===== v2.30 公告板块 8 项优化 ===== */

/* ① 状元宝座领奖台 */
.throne-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px 16px;
  background: linear-gradient(180deg, #fff8e1 0%, #fff3cd 100%);
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1.5px solid #f0d88a;
}
.dark .throne-podium { background: linear-gradient(180deg, #2c2810, #2a2518); border-color: #6b5a20; }
.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.podium-bar {
  width: 80px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.podium-bar.p1 { height: 120px; background: linear-gradient(180deg, #ffd700, #ffaa00); box-shadow: 0 4px 20px rgba(255,215,0,0.4); animation: podium-glow 2s ease-in-out infinite; }
.podium-bar.p2 { height: 90px; background: linear-gradient(180deg, #c0c0c0, #a0a0a0); }
.podium-bar.p3 { height: 70px; background: linear-gradient(180deg, #cd7f32, #b0682a); }
@keyframes podium-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,215,0,0.4); }
  50% { box-shadow: 0 4px 35px rgba(255,215,0,0.7); }
}
.podium-avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.podium-name { font-size: 13px; font-weight: 700; color: var(--text); }
.podium-score { font-size: 11px; color: var(--muted); }
.throne-crown { font-size: 32px; margin-bottom: 4px; animation: crown-float 3s ease-in-out infinite; }
@keyframes crown-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ② 战报柱状图 */
.report-chart { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.rc-row { display: flex; align-items: center; gap: 10px; }
.rc-label { width: 60px; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: right; flex-shrink: 0; }
.rc-bar-wrap { flex: 1; height: 24px; background: var(--bg-soft); border-radius: 12px; overflow: hidden; }
.rc-bar {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  min-width: 36px;
  transition: width .8s var(--ease);
}
.rc-bar.diary { background: linear-gradient(90deg, #0071e3, #40a0ff); }
.rc-bar.points { background: linear-gradient(90deg, #34c759, #6ee88e); }

/* ③ 等级进度条 */
.level-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.lp-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lp-bar-wrap { flex: 1; height: 10px; background: var(--hairline); border-radius: 5px; overflow: hidden; }
.lp-bar { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0071e3, #40a0ff); transition: width .8s var(--ease); }
.lp-pct { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 36px; text-align: right; }

/* ④ 签到排行火苗 */
.ck-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 6px;
}
.ck-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ck-rank-num.top1 { background: linear-gradient(135deg,#ffd700,#ffaa00); color:#fff; }
.ck-rank-num.top2 { background: linear-gradient(135deg,#c0c0c0,#a0a0a0); color:#fff; }
.ck-rank-num.top3 { background: linear-gradient(135deg,#cd7f32,#b0682a); color:#fff; }
.ck-flame-sm { font-size: 18px; animation: flame-wiggle 1.5s ease-in-out infinite; }
@keyframes flame-wiggle { 0%,100%{transform:scale(1) rotate(-3deg)} 50%{transform:scale(1.1) rotate(3deg)} }
.ck-streak-badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ⑤ 公告栏 */
.notice-board {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
  color: #fff;
}
.nb-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255,215,0,0.2);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.nb-content {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

/* ⑦ 等级表渐变行 */
.lv-table tr { transition: background .2s; }
.lv-table tr.lv-row-1 { background: rgba(255,215,0,0.06); }
.lv-table tr.lv-row-2 { background: rgba(255,215,0,0.04); }
.lv-table tr.lv-row-3 { background: rgba(255,215,0,0.02); }
.lv-table tr:hover { background: rgba(0,113,227,0.08) !important; }

/* ⑧ 历史状元墙 */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.hof-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8e1, #fff3cd);
  border: 1px solid #f0d88a;
  text-align: center;
}
.dark .hof-card { background: linear-gradient(180deg, #2c2810, #2a2518); border-color: #6b5a20; }
.hof-month { font-size: 11px; color: var(--muted); font-weight: 600; }
.hof-name { font-size: 13px; font-weight: 700; color: var(--text); }
.hof-score { font-size: 11px; color: var(--primary); font-weight: 600; }

/* ⑩ 切换动效 */
.notice-fade { animation: notice-fade-in .4s ease; }
@keyframes notice-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 公告板块整体排版 */
#tab-notice .notif-panel {
  margin-bottom: 14px;
}
#tab-notice .notif-panel .notif-head h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
}

/* ===== v2.31 NEWS 板块 9 项优化 ===== */

/* ⑤ 今日待办横幅 */
.todo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0071e3, #40a0ff);
  color: #fff;
  margin-bottom: 16px;
}
.todo-banner-icon { font-size: 32px; }
.todo-banner-num { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.todo-banner-text { font-size: 14px; opacity: .9; }
.todo-banner-items { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.todo-chip {
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ② 消息分类 Tab */
.notif-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.notif-tab {
  padding: 5px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.notif-tab:hover { border-color: var(--primary); color: var(--primary); }
.notif-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.notif-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255,255,255,0.25);
  font-size: 10px;
  margin-left: 4px;
}
.notif-tab:not(.active) .notif-tab-count {
  background: var(--bg-soft);
  color: var(--muted);
}

/* ③ 师徒任务卡片化 */
.task-card {
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 10px;
  transition: all .2s var(--ease);
}
.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.task-card-status {
  height: 4px;
}
.task-card-status.pending { background: linear-gradient(90deg, #ff9500, #ffb84d); }
.task-card-status.accepted { background: linear-gradient(90deg, #0071e3, #40a0ff); }
.task-card-status.completed { background: linear-gradient(90deg, #34c759, #6ee88e); }
.task-card-status.reviewed { background: linear-gradient(90deg, #af52de, #c77dff); }
.task-card-body { padding: 14px 16px; }
.task-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.task-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.task-card-status-badge {
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.task-card-status-badge.pending { background: rgba(255,149,0,0.12); color: #cc6600; }
.task-card-status-badge.accepted { background: var(--primary-weak); color: var(--primary); }
.task-card-status-badge.completed { background: rgba(52,199,89,0.12); color: #0b7a45; }
.task-card-status-badge.reviewed { background: rgba(175,82,222,0.12); color: #7b2fc4; }
.task-card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.task-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ④ 未读置顶+红点闪烁 */
.notif-item.unread {
  animation: notif-pulse 2s ease-in-out infinite;
}
@keyframes notif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,58,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(255,69,58,0.08); }
}

/* ⑥ 已读动效 */
.notif-item.reading {
  animation: notif-read .4s ease forwards;
}
@keyframes notif-read {
  to { opacity: 0; transform: translateX(20px); height: 0; margin: 0; padding: 0; overflow: hidden; }
}

/* ⑦ 看板环形进度 */
.stats-ring-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.stats-ring {
  width: 72px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}
.stats-ring svg { transform: rotate(-90deg); }
.stats-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.stats-ring-label { font-size: 12px; color: var(--muted); }
.stats-ring-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }

/* ⑧ 消息搜索 */
.notif-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 10px;
}
.notif-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

/* ⑩ OTK 深色星空 */
.dark .otk-panel {
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0f2460 100%);
  border: 1px solid rgba(100,140,255,0.15);
}
.dark .otk-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3), transparent),
              radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.2), transparent),
              radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.25), transparent),
              radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.15), transparent),
              radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.2), transparent),
              radial-gradient(1px 1px at 70% 85%, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.dark .otk-quote { text-shadow: 0 0 20px rgba(100,181,255,0.3); }

/* ===== v2.32 弹窗通知 + 日常任务 ===== */
.popup-notif {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  max-width: 380px;
  min-width: 280px;
  animation: pn-slide-in .35s var(--ease);
}
@keyframes pn-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.popup-notif.pn-out {
  animation: pn-slide-out .3s ease forwards;
}
@keyframes pn-slide-out {
  to { opacity: 0; transform: translateX(40px); }
}
.pn-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-body { flex: 1; min-width: 0; }
.pn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.pn-content {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.pn-close {
  padding: 2px 8px !important;
  font-size: 12px !important;
  opacity: 0.5;
}
.pn-close:hover { opacity: 1; }

/* 日常任务面板 */
#daily-task-list .task-card { margin-bottom: 10px; }
#daily-stats-list .tl-table { font-size: 12px; }
