/*
 * 「关注我们」双账号版样式（2026-11-15 晚）
 * ────────────────────────────────────────────────────────────────────────────
 * ## 结构变了
 *
 *   原来：一个平台一张卡，卡里一个链接。
 *   现在：**一个平台一张卡，卡里列两个号**（官号 / 羽毛号）。
 *
 *   关于页：`.social-grid` > `.social-plat` > `.social-plat-l` > `.social-acc`
 *   右栏：  `.fxside-social` > `.fxside-social-a`（每条一个账号，平台名 + 账号标签）
 *
 * ## 与上一版的关系
 *
 *   上一版 `.social-card` 那套样式**已被本层覆盖/替换**，保留是为了兼容
 *   万一回退到旧模板。新写法只在 `.social-plat` / `.social-acc` 上生效。
 * ────────────────────────────────────────────────────────────────────────────
 */

/* ==========================================================================
   一、右栏：平台名 + 账号标签
   ========================================================================== */
.fxside-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.fxside-social-a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--fxside-line, #e4eaf3);
  border-radius: 9px;
  background: var(--fxside-bg, #fff);
  color: var(--fxside-ink-2, #3c4453);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background .14s, border-color .14s, color .14s;
}
.fxside-social-a svg {
  flex: none;
  color: var(--fxside-brand, #4176e6);
}
.fxside-social-a:hover {
  background: var(--fxside-brand-soft, #eef3ff);
  border-color: var(--fxside-brand, #4176e6);
  color: var(--fxside-brand-600, #3567d4);
}

/* 平台名 + 后面那个小标签（官号 / 羽毛） */
.fxside-social-t {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fxside-social-t i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  opacity: .62;
  flex: none;
}

html[data-theme="dark"] .fxside-social-a {
  background: #141b28;
  border-color: #232b3a;
  color: #c6cddd;
}
html[data-theme="dark"] .fxside-social-a:hover {
  background: #172235;
  border-color: #7c9bf7;
  color: #a8bfff;
}

/* ==========================================================================
   二、关于页：一个平台一张卡，卡里两个号
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.social-plat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge, #eef2f9);
  border-radius: 14px;
  background: var(--card-bg, #fff);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.social-plat:hover {
  border-color: var(--edge-2, #dde6f7);
  box-shadow: 0 2px 6px rgba(30, 52, 110, .05), 0 12px 28px rgba(30, 52, 110, .08);
}

/* 卡片头：图标 + 平台名 + 一句话说明 */
.social-plat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--edge, #f1f4fa);
}
.social-plat-n {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.social-plat-n b {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink, #0f1115);
}
.social-plat-n em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted, #8792a4);
}

/* 图标方块 */
.social-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(107, 143, 245, .10);
  color: var(--blue-deep, #3a5fcf);
}
/* 各平台主色（只用在图标上） */
.social-plat:nth-child(1) .social-ic { background: rgba(251, 114, 153, .13); color: #e05a83; }  /* B站 */
.social-plat:nth-child(2) .social-ic { background: rgba(37, 244, 238, .13);  color: #0e9e98; }  /* 抖音 */
.social-plat:nth-child(3) .social-ic { background: rgba(255, 71, 25, .12);   color: #e2542a; }  /* 快手 */
.social-plat:nth-child(4) .social-ic { background: rgba(255, 36, 66, .12);   color: #d63b52; }  /* 小红书 */
.social-plat:nth-child(5) .social-ic { background: rgba(60, 200, 130, .13);  color: #23915f; }  /* 小黑盒 */
/* 兜底：用 key 属性也行，防止以后顺序变了 */
.social-plat[data-key="bilibili"]    .social-ic { background: rgba(251, 114, 153, .13); color: #e05a83; }
.social-plat[data-key="douyin"]      .social-ic { background: rgba(37, 244, 238, .13);  color: #0e9e98; }
.social-plat[data-key="kuaishou"]    .social-ic { background: rgba(255, 71, 25, .12);   color: #e2542a; }
.social-plat[data-key="xiaohongshu"] .social-ic { background: rgba(255, 36, 66, .12);   color: #d63b52; }
.social-plat[data-key="heybox"]      .social-ic { background: rgba(60, 200, 130, .13);  color: #23915f; }

/* 卡里的账号列表 */
.social-plat-l {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}

.social-acc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .14s;
}
.social-acc:hover {
  background: rgba(107, 143, 245, .08);
}

.social-acc-t {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
/* 「官号 / 羽毛」小标签 */
.social-acc-t i {
  flex: none;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(107, 143, 245, .12);
  color: var(--blue-deep, #3a5fcf);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
}
.social-acc-t b {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2, #2c3444);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 右侧的「粉丝 191」这类注记 */
.social-acc-n {
  flex: none;
  font-size: 11.5px;
  color: var(--muted, #8b96a8);
}
.social-go {
  flex: none;
  font-size: 15px;
  line-height: 1;
  color: var(--muted, #b3bccb);
  transition: color .14s, transform .14s;
}
.social-acc:hover .social-go {
  color: var(--blue, #4a6ee2);
  transform: translateX(2px);
}

/* 待补充的号 */
.social-acc--soon {
  cursor: default;
  opacity: .72;
}
.social-acc--soon:hover {
  background: transparent;
}
.social-acc--soon .social-acc-t b {
  color: var(--muted, #8b96a8);
  font-weight: 500;
}
.social-soon {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(150, 165, 190, .14);
  color: #808b9c;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 深色 */
html[data-theme="dark"] .social-plat {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .social-plat:hover {
  border-color: rgba(140, 170, 240, .4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .social-plat-h { border-bottom-color: rgba(120, 150, 220, .13); }
html[data-theme="dark"] .social-plat-n b { color: #eef2fa; }
html[data-theme="dark"] .social-plat-n em { color: #8e9fb8; }
html[data-theme="dark"] .social-acc:hover { background: rgba(107, 143, 245, .13); }
html[data-theme="dark"] .social-acc-t b { color: #dde5f2; }
html[data-theme="dark"] .social-acc-t i { background: rgba(107, 143, 245, .2); color: #a8bfff; }
html[data-theme="dark"] .social-acc-n { color: #8e9fb8; }
html[data-theme="dark"] .social-go { color: #5c6a80; }
html[data-theme="dark"] .social-soon { background: rgba(150, 165, 190, .2); color: #9fb0c8; }

/* ==========================================================================
   三、窄屏
   ========================================================================== */
@media (max-width: 1399px) {
  .fxside-social { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .social-grid { grid-template-columns: 1fr; gap: 10px; }
  .social-plat-h { padding: 12px 12px 10px; }
  .social-plat-l { padding: 5px; }
}

/* 打印 */
@media print {
  .social-plat { break-inside: avoid; }
  .social-go, .social-soon { display: none; }
}

/* ==========================================================================
   七、团队成员卡片里的社交账号图标（2026-11-15 服主：「在我的卡片下面加上我的社交账号」）
   --------------------------------------------------------------------------
   一排小圆角方框，鼠标移上去显示平台名（靠 title 属性，不额外做浮层）。
   ⚠️ 用 `flex-wrap` 是为了以后加平台也不撑破卡片宽度。
   ========================================================================== */
.member-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}
.member-social-a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge, #e7ecf6);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  color: var(--muted, #7b8698);
  text-decoration: none;
  transition: background .14s, border-color .14s, color .14s, transform .14s;
}
.member-social-a:hover {
  background: rgba(107, 143, 245, .10);
  border-color: var(--blue, #6b8ff5);
  color: var(--blue-deep, #3a5fcf);
  transform: translateY(-1px);
}
/* 各平台主色（与「关注我们」那张卡一致，方便认） */
.member-social-a[href*="bilibili"]     { color: #e05a83; }
.member-social-a[href*="douyin"]       { color: #0e9e98; }
.member-social-a[href*="kuaishou"]     { color: #e2542a; }
.member-social-a[href*="xiaohongshu"],
.member-social-a[href*="xhslink"]      { color: #d63b52; }
.member-social-a[href*="xiaoheihe"]    { color: #23915f; }
.member-social-a[href*="bilibili"]:hover     { background: rgba(251, 114, 153, .11); border-color: #e05a83; }
.member-social-a[href*="douyin"]:hover       { background: rgba(37, 244, 238, .11);  border-color: #0e9e98; }
.member-social-a[href*="kuaishou"]:hover     { background: rgba(255, 71, 25, .10);   border-color: #e2542a; }
.member-social-a[href*="xiaohongshu"]:hover,
.member-social-a[href*="xhslink"]:hover      { background: rgba(255, 36, 66, .10);   border-color: #d63b52; }
.member-social-a[href*="xiaoheihe"]:hover    { background: rgba(60, 200, 130, .11);  border-color: #23915f; }

html[data-theme="dark"] .member-social-a {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .2);
}
html[data-theme="dark"] .member-social-a:hover {
  background: rgba(107, 143, 245, .16);
  border-color: rgba(140, 170, 240, .5);
}

@media print {
  .member-social { display: none; }
}