/* ==========================================================================
   同修榜 · social.css
   宣纸水墨 / 玄金朱砂；仅作用于 body.sect 内的同修榜页面。
   ========================================================================== */
body.sect .social-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 36px;
}

/* ---------- 榜头 ---------- */
body.sect .social-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 4px 20px;
  border-bottom: 1px solid var(--line-gold);
}
body.sect .social-hero::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -4px;
  height: 7px;
  background: radial-gradient(46% 100% at 28% 30%, rgba(31, 37, 44, .10), transparent 70%),
              radial-gradient(36% 100% at 64% 70%, rgba(154, 116, 40, .08), transparent 72%);
  filter: blur(1.2px);
  pointer-events: none;
}
body.sect .social-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--gold);
  opacity: .85;
}
body.sect .social-hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
body.sect .social-seal {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 58px;
}
body.sect .social-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink);
  line-height: 1.08;
}
body.sect .social-sub {
  margin: 7px 0 0;
  font-family: var(--font-kai);
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
body.sect .social-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
  padding-bottom: 5px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
body.sect .social-meta-k {
  white-space: nowrap;
  font-family: var(--font-kai);
}
body.sect .social-meta-time {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .78;
}
body.sect .social-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 8px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(200, 165, 92, .08);
  font-family: var(--font-kai);
  font-size: 11.5px;
  letter-spacing: .08em;
}
body.sect .social-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 0 rgba(172, 58, 43, .35);
  animation: socialPulse 2.4s ease-out infinite;
}
@keyframes socialPulse {
  0% { box-shadow: 0 0 0 0 rgba(172, 58, 43, .30); }
  70% { box-shadow: 0 0 0 7px rgba(172, 58, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(172, 58, 43, 0); }
}

/* ---------- 我的名次 ---------- */
body.sect .social-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.sect .social-me {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 16px 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .72), rgba(247, 242, 231, .40)),
    var(--card);
}
body.sect .social-me-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
  flex: 0 0 auto;
}
body.sect .social-me-seal {
  width: 42px;
  height: 42px;
  line-height: 42px;
  font-size: 21px;
  flex: 0 0 auto;
}
body.sect .social-me-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .08em;
  color: var(--ink);
  font-weight: 600;
}
body.sect .social-me-sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-kai);
}
body.sect .social-me-sub i {
  font-style: normal;
  color: var(--line-gold);
  margin: 0 2px;
}
body.sect .social-me-online {
  margin-left: 2px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-kai);
  letter-spacing: .08em;
}
body.sect .social-me-online.is-on {
  color: var(--jade);
  border-color: rgba(79, 127, 106, .38);
  background: rgba(79, 127, 106, .07);
}
body.sect .social-me-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  flex: 1;
  min-width: 0;
}
body.sect .social-me-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 2px 14px;
  border-left: 1px solid var(--line-soft);
  min-width: 0;
}
body.sect .social-me-k {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
  font-family: var(--font-kai);
}
body.sect .social-me-v {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cinnabar);
  font-weight: 600;
  line-height: 1.1;
}
body.sect .social-me-v em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0;
}
body.sect .social-me-m {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--font-kai);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sect .social-me-guest {
  justify-content: flex-start;
}

/* ---------- 主栅格 ---------- */
body.sect .social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .82fr);
  gap: 18px;
  align-items: start;
}
body.sect .social-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
body.sect .social-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 18px;
  min-width: 0;
}

/* ---------- 榜单卡 ---------- */
body.sect .social-board {
  padding: 16px 16px 12px;
  min-width: 0;
}
body.sect .social-board-study {
  grid-column: span 2;
}
body.sect .social-board-study .social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
body.sect .social-board-study .social-row.is-me {
  outline: 1px solid rgba(189, 76, 57, .30);
  outline-offset: -1px;
}
body.sect .social-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
body.sect .social-board-kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--gold);
  opacity: .9;
}
body.sect .social-board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--ink);
  font-weight: 600;
}
body.sect .social-board-desc {
  margin: 5px 0 0;
  font-family: var(--font-kai);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
body.sect .social-board-total {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
  padding-top: 3px;
}
body.sect .social-list {
  display: flex;
  flex-direction: column;
}
body.sect .social-row {
  display: grid;
  grid-template-columns: 26px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line-soft);
  border-left: 2px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
body.sect .social-row:last-child { border-bottom: 0; }
body.sect .social-row:hover {
  background: rgba(200, 165, 92, .055);
}
body.sect .social-row.is-me {
  background: rgba(172, 58, 43, .045);
  border-left-color: var(--cinnabar);
}
body.sect .social-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  background: rgba(255, 253, 247, .5);
}
body.sect .social-rank.rank-1 {
  color: #6d4d12;
  border-color: rgba(154, 116, 40, .55);
  background: linear-gradient(145deg, #f5e6c0, #e2c88a);
  box-shadow: 0 1px 4px rgba(154, 116, 40, .22);
}
body.sect .social-rank.rank-2 {
  color: #545b60;
  border-color: rgba(84, 91, 96, .35);
  background: linear-gradient(145deg, #f3f2ee, #dfdeda);
}
body.sect .social-rank.rank-3 {
  color: #7a5030;
  border-color: rgba(151, 102, 63, .38);
  background: linear-gradient(145deg, #f2e2d4, #dbc0aa);
}
body.sect .social-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kai);
  font-size: 14.5px;
  color: var(--ink);
  background: linear-gradient(150deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 247, .55);
}
body.sect .social-who { min-width: 0; }
body.sect .social-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
body.sect .social-name {
  font-family: var(--font-kai);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sect .social-role {
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 1;
  padding: 2px 3px;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 1px;
  font-family: var(--font-kai);
}
body.sect .social-role-me {
  color: var(--cinnabar);
  border-color: rgba(172, 58, 43, .35);
}
body.sect .social-online {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(79, 127, 106, .12);
}
body.sect .social-subline {
  margin: 3px 0 0;
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sect .social-metric {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .02em;
  white-space: nowrap;
  padding-left: 4px;
}
body.sect .social-empty {
  margin: 14px 2px;
  font-family: var(--font-kai);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- 宗门动态 ---------- */
body.sect .social-feed {
  padding: 16px 16px 10px;
}
body.sect .social-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
body.sect .social-feed-live {
  font-family: var(--font-kai);
  font-size: 10.5px;
  color: var(--cinnabar);
  letter-spacing: .12em;
  padding-top: 2px;
}
body.sect .social-feed-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
  position: relative;
}
body.sect .social-feed-list::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-gold), var(--line-soft) 60%, transparent);
  opacity: .55;
}
body.sect .social-feed-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 2px;
}
body.sect .social-feed-ico {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kai);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 3px var(--card);
}
body.sect .social-feed-ico.kind-breakthrough { color: var(--gold); border-color: var(--line-gold); }
body.sect .social-feed-ico.kind-word { color: var(--jade); border-color: rgba(79, 127, 106, .35); }
body.sect .social-feed-ico.kind-join { color: var(--cinnabar); border-color: rgba(172, 58, 43, .30); }
body.sect .social-feed-body {
  min-width: 0;
  padding-top: 1px;
}
body.sect .social-feed-text {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
body.sect .social-feed-text strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 5px;
}
body.sect .social-feed-kind {
  color: var(--gold);
  margin-right: 4px;
  font-size: 10px;
  letter-spacing: .06em;
}
body.sect .social-feed-detail {
  color: var(--ink-3);
}
body.sect .social-feed-time {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  opacity: .8;
}
body.sect .social-feed-item.is-mine .social-feed-text strong {
  color: var(--cinnabar);
}

/* ---------- 榜规 ---------- */
body.sect .social-rules {
  padding: 14px 16px 12px;
  background:
    linear-gradient(180deg, rgba(200, 165, 92, .045), transparent 55%),
    var(--card);
}
body.sect .social-rule-line {
  margin: 6px 0 0;
  font-family: var(--font-kai);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* ---------- 骨架 / 错误 ---------- */
body.sect .social-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.sect .social-skeleton-line {
  height: 92px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, rgba(255, 253, 247, .5) 20%, rgba(200, 165, 92, .07) 38%, rgba(255, 253, 247, .5) 56%);
  background-size: 220% 100%;
  animation: socialSheen 1.7s linear infinite;
}
@keyframes socialSheen {
  from { background-position: 120% 0; }
  to { background-position: -80% 0; }
}
body.sect .social-error {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}
body.sect .social-retry {
  margin-top: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  body.sect .social-grid { grid-template-columns: minmax(0, 1fr); }
  body.sect .social-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
    align-items: start;
  }
}
@media (max-width: 900px) {
  body.sect .social-me {
    flex-direction: column;
    gap: 12px;
  }
  body.sect .social-me-cells { width: 100%; }
  body.sect .social-me-cell:first-child { border-left: 0; padding-left: 2px; }
}
@media (max-width: 720px) {
  body.sect .social-page { gap: 15px; padding-bottom: 24px; }
  body.sect .social-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
  }
  body.sect .social-hero-meta {
    justify-content: flex-start;
    text-align: left;
  }
  body.sect .social-seal {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 23px;
  }
  body.sect .social-title { font-size: 29px; letter-spacing: .12em; }
  body.sect .social-sub { font-size: 12px; }
  body.sect .social-main,
  body.sect .social-skeleton,
  body.sect .social-side {
    grid-template-columns: minmax(0, 1fr);
  }
  body.sect .social-me { padding: 13px 14px; }
  body.sect .social-me-head { min-width: 0; }
  body.sect .social-me-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
  body.sect .social-board-study { grid-column: auto; }
  body.sect .social-board-study .social-list { grid-template-columns: minmax(0, 1fr); }
  body.sect .social-me-cell { padding: 2px 10px; }
  body.sect .social-me-cell:nth-child(3) { border-left: 0; padding-left: 2px; }
  body.sect .social-row {
    grid-template-columns: 22px 30px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 9px 1px;
  }
  body.sect .social-avatar { width: 29px; height: 29px; font-size: 13px; }
  body.sect .social-metric { font-size: 12px; }
  body.sect .social-subline { font-size: 10px; }
  body.sect .social-board,
  body.sect .social-feed { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sect .social-live-dot { animation: none; }
  body.sect .social-skeleton-line { animation: none; }
  body.sect .social-row { transition: none; }
}
