/* =========================================================
   科室大赏 · 全站看板
   依赖 site.css 的设计变量 / glass / btn / eyebrow / footer
   ========================================================= */

/* ---------------- 1. 页面骨架 ---------------- */
/* JS 用 el.hidden 切换骨架/空状态，这里保证 hidden 始终生效（类选择器会覆盖 UA 的 [hidden]） */
[hidden] { display: none !important; }

.page-stats .site-main { padding-bottom: 40px; }

.stats-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 20px;
}

/* ---------------- 2. 头部 ---------------- */
.stats-hero {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.stats-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.stats-hero h1 .grad-text { font-style: normal; }
.stats-sub {
  max-width: 34em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.stats-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 700;
}
.stats-meta .dot { opacity: 0.5; }
#updatedAt { color: var(--rose-text); }
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
}
.btn-refresh .refresh-icon { display: inline-block; }
.btn-refresh.is-loading .refresh-icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 3. KPI ---------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -32px rgba(120, 60, 150, 0.55);
}
.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--kpi-a, #ffd6e8), transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}
.kpi-top { display: flex; align-items: center; gap: 8px; }
.kpi-emoji { font-size: 1.05rem; }
.kpi-label { color: var(--ink-mute); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.4px; }
.kpi-value {
  display: block;
  margin: 10px 0 4px;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ff4d8d, #a66bff 55%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-value.is-text { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.kpi-sub { margin: 0; color: var(--ink-mute); font-size: 0.72rem; font-weight: 600; line-height: 1.5; }

/* ---------------- 4. 通用面板 ---------------- */
.stats-panel {
  margin-top: 18px;
  padding: 24px 24px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 50px -42px rgba(120, 60, 150, 0.6);
}
.stats-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.stats-panel-head h2 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }
.stats-panel-head .panel-kicker {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.panel-hint { margin: 0; color: var(--ink-mute); font-size: 0.74rem; font-weight: 600; }

/* ---------------- 5. 档位分布 ---------------- */
.tier-bar-list { display: grid; gap: 10px; }
.tier-bar-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
}
.tier-bar-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}
.tier-bar-name .emoji { font-size: 1rem; }
.tier-bar-name .sub { color: var(--ink-mute); font-size: 0.68rem; font-weight: 700; }
.tier-bar-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(150, 110, 180, 0.1);
  overflow: hidden;
}
.tier-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1, #ff4d8d), var(--c2, #a66bff));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.tier-bar-count {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tier-bar-count small { display: block; color: var(--ink-mute); font-size: 0.66rem; font-weight: 600; }

/* ---------------- 6. 六维平均 ---------------- */
.dim-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
.dim-bar-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 10px;
}
.dim-bar-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.dim-bar-name .emoji { font-size: 0.95rem; }
.dim-bar-name .tag { color: var(--ink-mute); font-size: 0.64rem; font-weight: 700; }
.dim-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(150, 110, 180, 0.1);
  overflow: hidden;
}
.dim-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1, #7dd3fc), var(--c2, #a78bfa));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.dim-bar-value {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dim-bar-value small { color: var(--ink-mute); font-size: 0.64rem; font-weight: 600; }

/* ---------------- 7. 科室排行 ---------------- */
.rank-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.rank-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}
.rank-search input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(190, 160, 220, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}
.rank-search input:focus-visible { border-color: rgba(255, 95, 162, 0.6); box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.12); }
.rank-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  opacity: 0.55;
  pointer-events: none;
}
.rank-sort {
  padding: 10px 34px 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(190, 160, 220, 0.35);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.rank-sort:focus-visible { outline: none; border-color: rgba(255, 95, 162, 0.6); box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.12); }

.rank-list { display: grid; gap: 8px; }
.rank-more {
  margin-top: 4px;
  padding: 13px 16px;
  border: 1.5px dashed rgba(255, 95, 162, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--rose-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.rank-more:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(255, 95, 162, 0.62); }
.rank-empty { padding: 26px 0; text-align: center; color: var(--ink-mute); font-size: 0.86rem; }

.rank-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.rank-item:hover { background: rgba(255, 255, 255, 0.86); }
.rank-item.is-open { border-color: rgba(255, 95, 162, 0.4); background: rgba(255, 255, 255, 0.92); }
.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.5fr) 64px 72px 52px minmax(80px, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rank-row:focus-visible { outline: 3px solid rgba(255, 95, 162, 0.35); outline-offset: 2px; }
.rank-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(255, 214, 232, 0.9), rgba(214, 238, 255, 0.9));
  color: var(--rose-text);
  font-size: 0.74rem;
  font-weight: 900;
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(140deg, #ffd76a, #ffb347); color: #7a4a08; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(140deg, #e8ecf5, #cfd8e8); color: #4a5872; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(140deg, #ffd9b0, #eab07a); color: #7a4a1e; }
.rank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
}
.rank-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name .group {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  color: #7b5ea7;
  font-size: 0.62rem;
  font-weight: 800;
}
.rank-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 214, 232, 0.9), rgba(224, 240, 255, 0.9));
  color: var(--rose-text);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}
.rank-tier.is-none { background: rgba(150, 110, 180, 0.08); color: var(--ink-mute); font-weight: 700; }
.rank-count { color: var(--ink-mute); font-size: 0.72rem; font-weight: 700; text-align: right; }
.rank-spark { height: 8px; border-radius: 999px; background: rgba(150, 110, 180, 0.1); overflow: hidden; }
.rank-spark span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8fb7, #a78bfa);
}
.rank-caret { color: var(--ink-mute); font-size: 0.7rem; transition: transform 0.2s ease; text-align: center; }
.rank-item.is-open .rank-caret { transform: rotate(180deg); }

/* 雷达图 */
.radar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.radar-controls .rank-sort { flex: 1 1 240px; min-width: 0; }
.radar-score {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 244, 250, 0.92);
  color: var(--rose-text);
  font-size: 0.78rem;
  font-weight: 900;
}
.radar-wrap {
  display: grid;
  place-items: center;
  padding: 4px 0 2px;
}
.radar-wrap canvas { display: block; max-width: 100%; }
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-weight: 700;
}
.radar-legend li { display: inline-flex; align-items: center; gap: 7px; }
.radar-dot { width: 12px; height: 12px; border-radius: 4px; }
.radar-legend .is-dept .radar-dot { background: rgba(255, 77, 141, 0.25); border: 2px solid rgba(255, 77, 141, 0.95); }
.radar-legend .is-site .radar-dot { background: rgba(91, 200, 255, 0.2); border: 2px dashed rgba(58, 167, 224, 0.9); }

/* 排行榜分数 */
.rank-score {
  justify-self: end;
  color: var(--rose-text);
  font-size: 0.82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.rank-score.is-none { color: var(--ink-mute); }
.detail-score {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.detail-score strong { color: var(--rose-text); font-size: 1rem; font-weight: 900; }

.rank-detail {
  padding: 4px 16px 18px 58px;
  display: none;
}
.rank-item.is-open .rank-detail { display: block; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(150, 110, 180, 0.22);
}
.detail-title {
  margin: 0 0 8px;
  color: var(--ink-mute);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 1.4px;
}
.detail-tier-list { display: grid; gap: 5px; }
.detail-tier-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.detail-tier-track { height: 8px; border-radius: 999px; background: rgba(150, 110, 180, 0.1); overflow: hidden; }
.detail-tier-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1, #ff8fb7), var(--c2, #a78bfa)); }
.detail-tier-row em { color: var(--ink-mute); font-style: normal; text-align: right; }
.detail-dim-list { display: grid; gap: 5px; }
.detail-dim-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.detail-dim-row .track { height: 8px; border-radius: 999px; background: rgba(150, 110, 180, 0.1); overflow: hidden; }
.detail-dim-row .track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7dd3fc, #a78bfa); }
.detail-dim-row em { color: var(--ink-mute); font-style: normal; text-align: right; }
.detail-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 244, 250, 0.8);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ---------------- 8. 最新留言 ---------------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.note-card {
  position: relative;
  margin: 0;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.note-card::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 12px;
  color: rgba(255, 95, 162, 0.28);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  pointer-events: none;
}
.note-text {
  margin: 0 0 10px;
  padding-left: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 0.68rem;
  font-weight: 700;
}
.note-meta .note-dept { color: var(--rose-text); }
.note-meta .note-tier { padding: 2px 7px; border-radius: 999px; background: rgba(255, 214, 232, 0.6); color: var(--rose-text); }
.notes-empty { padding: 20px 0; text-align: center; color: var(--ink-mute); font-size: 0.82rem; }

/* ---------------- 9. 空 / 失败 / 加载态 ---------------- */
.stats-state {
  padding: 54px 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px dashed rgba(190, 160, 220, 0.5);
  text-align: center;
}
.stats-state[hidden] { display: none; }
.state-emoji { display: block; margin-bottom: 10px; font-size: 2.6rem; }
.stats-state h2 { margin: 0 0 8px; font-size: 1.4rem; }
.stats-state p { margin: 0 auto 18px; max-width: 26em; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.skeleton-grid { display: grid; gap: 14px; }
.skeleton {
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.55) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-kpi { height: 118px; }
.skeleton-panel { height: 180px; margin-top: 14px; }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }

/* ---------------- 10. 响应式 ---------------- */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dim-bar-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .stats-main { width: min(100% - 28px, 1180px); padding-top: 30px; }
  .stats-panel { padding: 20px 16px 18px; border-radius: 24px; }
  .tier-bar-row { grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 8px; }
  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "no name score tier"
      "no spark spark count";
    row-gap: 8px;
  }
  .rank-no { grid-area: no; align-self: start; }
  .rank-name { grid-area: name; }
  .rank-score { grid-area: score; justify-self: end; }
  .rank-tier { grid-area: tier; justify-self: end; }
  .rank-count { grid-area: count; }
  .rank-spark { grid-area: spark; }
  .rank-caret { display: none; }
  .rank-detail { padding: 0 14px 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 16px 16px 14px; border-radius: 20px; }
  .stats-hero h1 { font-size: 1.95rem; }
  .tier-bar-name .sub { display: none; }
  .stats-meta { font-size: 0.72rem; }
}

@media (max-width: 560px) {
  /* 窄屏头部：品牌不换行、隐藏副标签，给按钮留空间 */
  .page-stats .site-header--slim .brand-name { font-size: 1rem; white-space: nowrap; }
  .page-stats .header-step { display: none; }
  /* 排行榜：窄屏隐藏分组小标签与档位，让科室名与分数有更多宽度 */
  .page-stats .rank-name .group { display: none; }
  .page-stats .rank-tier { display: none; }
  .page-stats .rank-row {
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "no name score count"
      "no spark spark spark";
  }
  .page-stats .rank-score { grid-area: score; }
  .page-stats .rank-count { grid-area: count; }
}

@media (prefers-reduced-motion: reduce) {
  .tier-bar-fill, .dim-bar-fill, .rank-caret { transition: none; }
  .skeleton { animation: none; }
  .btn-refresh.is-loading .refresh-icon { animation: none; }
}

/* ---------------- 9. 细分问题（v0.5） ---------------- */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(150, 110, 180, 0.18);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.sub-tab small {
  font-size: 0.66rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(150, 110, 180, 0.08);
  color: var(--ink-mute);
}
.sub-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(120, 70, 160, 0.55); }
.sub-tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, #ff5fa2, #a78bfa);
  border-color: transparent;
  box-shadow: 0 12px 26px -14px rgba(163, 60, 140, 0.6);
}
.sub-tab.is-active small { background: rgba(255, 255, 255, 0.28); color: #fff; }
.sub-bars { display: grid; gap: 10px; }
.sub-bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; align-items: center; gap: 12px; }
.sub-bar-name { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.sub-bar-track { height: 10px; border-radius: 999px; background: rgba(150, 110, 180, 0.1); overflow: hidden; }
.sub-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1, #ff8fb7), var(--c2, #a78bfa));
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.sub-bar-value { font-size: 0.78rem; font-weight: 900; color: var(--ink-soft); text-align: right; }
.sub-bar-value small { color: var(--ink-mute); font-weight: 700; }
.detail-subs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(150, 110, 180, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.detail-sub-chip strong { color: #d63384; }
@media (max-width: 760px) {
  .sub-bar-row { grid-template-columns: 108px minmax(0, 1fr) 64px; gap: 9px; }
  .sub-bar-name { font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sub-bar-fill { animation: none !important; }
}

/* =========================================================
   匿名八卦墙
   ========================================================= */
.gossip-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gossip-card {
  margin: 0;
  padding: 16px 18px 13px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 247, 0.9));
  border: 1px solid rgba(255, 120, 170, 0.18);
  box-shadow: 0 12px 26px rgba(120, 80, 140, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.gossip-card:nth-child(3n + 2) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 255, 0.92));
  border-color: rgba(91, 200, 255, 0.22);
}
.gossip-card:nth-child(3n + 3) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 255, 0.92));
  border-color: rgba(167, 139, 250, 0.22);
}
.gossip-card:hover {
  transform: translateY(-4px) rotate(-0.6deg) scale(1.015);
  box-shadow: 0 20px 38px rgba(120, 80, 140, 0.18);
}
.gossip-text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3b2b52;
  word-break: break-word;
}
.gossip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: #9a8bb0;
}
.gossip-dept { color: #c2447e; font-weight: 700; }

@media (max-width: 900px) {
  .gossip-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gossip-wall { grid-template-columns: minmax(0, 1fr); }
  .gossip-card { padding: 14px 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gossip-card { transition: none !important; }
  .gossip-card:hover { transform: none; }
}
