:root {
  --ink: #151515;
  --muted: #5e5e5e;
  --line: rgba(20, 20, 20, 0.16);
  --line-strong: rgba(20, 20, 20, 0.32);
  --glass: rgba(247, 247, 247, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-card: rgba(255, 255, 255, 0.42);
  --glass-card-hover: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 4px 14px rgba(15, 15, 15, 0.08);
  --shadow: 0 24px 64px rgba(15, 15, 15, 0.22);
  --shadow-card: 0 6px 18px rgba(15, 15, 15, 0.08);
  --shadow-card-hover: 0 12px 28px rgba(15, 15, 15, 0.16);
  --accent: #111513;
  --focus-ring: 0 0 0 3px rgba(17, 21, 19, 0.18);
}

* {
  box-sizing: border-box;
}

/* 核心：只保留浏览器唯一的纵向滚动条，根除双滚动条；overflow-x 用 clip 彻底禁止横向滚动 */
html {
  overflow-y: scroll;
  overflow-x: hidden;
  height: auto;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: #d0d0d0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  word-break: break-word;
}

button {
  font: inherit;
  color: inherit;
}

/* ============================================
   场景背景 (Scene & Washes)
   ============================================ */
.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: visible;
  isolation: isolate;
  padding: 40px 24px;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.checkerboard,
.wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.checkerboard {
  z-index: -3;
  background: #8f8f8f;
  /* 不再用 scale 放大：放大会让背景层横向溢出约 2%，产生 6~15px 可横向滚动的假溢出 */
  /* 这里不放 filter: blur()：本站无任何背景图，纯色模糊等于原地空转，只会让每帧合成变贵 */
}

.wash {
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.48), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(30, 30, 30, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(70, 70, 70, 0.24)),
    rgba(150, 150, 150, 0.45);
  /* 不放 backdrop-filter：它的 backdrop 只有下面那片纯色 checkerboard，模糊/去色采不到任何像素 */
}

/* ============================================
   主面板 (Glass Panel) - 直角边框
   ============================================ */
.glass-panel {
  width: min(880px, 100%);
  margin-inline: auto;
  min-height: min(640px, calc(100vh - 80px));
  min-height: min(640px, calc(100svh - 80px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 0;
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(0.75);
  -webkit-backdrop-filter: blur(28px) saturate(0.75);
  animation: panel-fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-panel {
  max-width: 880px;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 顶部栏 / 底部落款 - 纯直角 */
.panel-topline,
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-topline {
  border-bottom: 1px solid var(--line);
}

.panel-footer {
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 0;
  background: #111513;
  box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.14);
  vertical-align: middle;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.5; }
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 0;
  background: rgba(20, 20, 20, 0.06);
  border: 1px solid var(--line);
}

/* ============================================
   首页内容区
   ============================================ */
.panel-content {
  width: min(720px, 100%);
  padding: 64px 48px 60px;
}

.eyebrow-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #111513;
  color: #fff;
  border-radius: 0;
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.main-title {
  position: relative;
  margin: 0;
  padding-bottom: 22px;
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.main-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: var(--accent);
}

.main-title .title-line {
  display: block;
}

.intro-block {
  margin-top: 28px;
}

.intro {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 醒目联系条：有问题找我（点击唤起 QQ） */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 15, 15, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 15, 15, 0.32);
}

.contact-cta:active {
  transform: translateY(0);
}

.contact-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 16px 34px rgba(15, 15, 15, 0.32);
}

.contact-cta-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #fff;
  animation: cta-blink 1.6s ease-in-out infinite;
}

@keyframes cta-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.contact-cta-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.contact-cta-qq {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.02em;
}

.contact-cta-arrow {
  color: rgba(255, 255, 255, 0.62);
  transition: transform 160ms ease;
}

.contact-cta:hover .contact-cta-arrow {
  transform: translateX(3px);
}

/* ===== 群聊选择弹层 ===== */
.group-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.group-picker.active {
  opacity: 1;
  visibility: visible;
}

.group-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.group-picker-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 24px 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.group-picker.active .group-picker-panel {
  transform: none;
}

.group-picker-tag {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.group-picker-title {
  margin: 8px 0 20px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.group-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.group-option:hover,
.group-option:focus-visible {
  outline: none;
  background: #fff;
  border-color: #111513;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.group-option-index {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.group-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.group-option-text strong {
  font-size: 15px;
  font-weight: 800;
}

.group-option-text small {
  color: var(--muted);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.02em;
}

.group-option-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.group-option:hover .group-option-arrow {
  transform: translateX(3px);
  color: var(--ink);
}

.group-picker-cancel {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.group-picker-cancel:hover {
  color: var(--ink);
  background: rgba(20, 20, 20, 0.06);
}

/* 首页操作按钮 (Actions) - 纯直角 */
.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.action {
  position: relative;
  min-width: 0;
  min-height: 114px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.action:hover,
.action:focus-visible {
  outline: none;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(20, 20, 20, 0.6);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
}

.action:active {
  transform: translateY(0);
}

/* 第三个入口：材料站（横跨整行，用 <a> 直接链接） */
a.action {
  text-decoration: none;
  color: inherit;
}

.action-wide {
  grid-column: 1 / -1;
  min-height: 92px;
}

.action-primary {
  background: #111513;
  color: #ffffff;
  border-color: #111513;
  box-shadow: 0 6px 20px rgba(20, 20, 20, 0.16);
}

.action-primary:hover,
.action-primary:focus-visible {
  background: #232725;
  border-color: #232725;
  box-shadow: 0 14px 32px rgba(20, 20, 20, 0.26);
}

.action-index {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.action-text {
  min-width: 0;
}

.action strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.action small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.7;
}

.arrow {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
  transition: transform 160ms ease;
}

.action:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   人员名单页 (List Page)
   ============================================ */
.page {
  display: none;
  width: 100%;
}

.page.active {
  display: block;
}

.list-page {
  padding: 32px 0;
}

.content-panel {
  width: min(1200px, 100%);
  margin-inline: auto;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  padding: 40px clamp(20px, 4.5vw, 64px) 56px;
  border-radius: 0;
}

.content-header {
  max-width: 820px;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 160ms ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--ink);
  transform: translateX(-2px);
}

.back-arrow {
  font-size: 15px;
  transition: transform 160ms ease;
}

.back-btn:hover .back-arrow {
  transform: translateX(-3px);
}

.header-group-tag {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(20, 20, 20, 0.05);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 0;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.content-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.stats-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #111513;
}

.contact-line {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-line strong {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 0;
  background: rgba(20, 20, 20, 0.07);
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

/* 搜索框 (Search Box) - 直角 */
.search-box {
  position: relative;
  max-width: 620px;
  margin: 28px 0 40px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 44px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 160ms ease;
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.search-box input:focus {
  border-color: #111513;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(20, 20, 20, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(20, 20, 20, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  transition: background 140ms ease;
}

.search-clear:hover {
  background: rgba(20, 20, 20, 0.22);
}

/* ============================================
   板块与网格 (Sections & Friend Grids)
   ============================================ */
.section-block {
  margin-bottom: 44px;
}

.section-block + .section-block {
  margin-top: 8px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 18px;
  padding: 0 0 12px 12px;
  border-bottom: 2px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 72%);
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-count {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(20, 20, 20, 0.06);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 0;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

/* 成员卡片 (Friend Card) - 纯直角 */
.friend-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px 10px 16px;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), var(--glass-card) 58%, rgba(20, 20, 20, 0.035));
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.04);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.friend-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.friend-card:focus-visible::before {
  transform: scaleX(1);
}

.friend-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--glass-card-hover) 58%, rgba(20, 20, 20, 0.08));
  box-shadow: var(--shadow-card-hover);
}

/* 触屏没有真正的 hover，点一下会粘在悬停态；hover 反馈只在具备悬停能力的设备上启用。
   :focus-visible 与 :active 留在外面，保证键盘可达性与按压反馈不受影响。 */
@media (hover: hover) {
  .friend-card:hover::before {
    transform: scaleX(1);
  }

  .friend-card:hover {
    outline: none;
    transform: translateY(-4px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--glass-card-hover) 58%, rgba(20, 20, 20, 0.08));
    box-shadow: var(--shadow-card-hover);
  }

  .friend-card:hover .avatar {
    transform: scale(1.05);
  }
}

.friend-card:active {
  transform: translateY(0);
}

/* 头像外框 - 纯直角 */
.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 10px;
  border-radius: 0;
  background: rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.2);
  box-shadow: 0 2px 6px rgba(15, 15, 15, 0.08);
  transition: transform 160ms ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-note {
  margin: -8px 0 14px 16px;
  color: var(--muted);
  font-size: 12px;
}

.section-empty-avatars {
  margin: 4px 0 24px;
  padding: 0;
  border: 1px solid rgba(35, 35, 35, .5);
  background: rgba(255,255,255,.38);
  box-shadow: 5px 5px 0 rgba(30,30,30,.12);
}

.section-empty-avatars .section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-height: 90px;
  padding: 14px 18px;
  border: 0;
  border-left: 5px solid #222;
  background: linear-gradient(105deg, #e1e1e1, #f9f9f9 52%, #d2d2d2);
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease;
}
.section-empty-avatars .section-title-wrap:hover { background: linear-gradient(105deg, #d1d1d1, #fff 56%, #c5c5c5); }
.section-empty-avatars .section-title-wrap::-webkit-details-marker { display: none; }
.section-empty-avatars .section-title-wrap:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.section-empty-avatars .fold-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.section-empty-avatars .fold-copy .section-title { font-size: 19px; line-height: 1.25; }
.section-empty-avatars .fold-copy small { color: #555; font-size: 12px; line-height: 1.4; }
.section-empty-avatars .section-count { flex: none; background: #242424; color: #fff; border-color: #242424; padding: 6px 9px; }
.section-empty-avatars .fold-action { display: inline-flex; flex-flow: row nowrap; align-items: center; justify-content: center; gap: 9px; flex: 0 0 108px; width: 108px; height: 38px; box-sizing: border-box; border: 1px solid #333; background: #f7f7f7; color: #161616; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.section-empty-avatars .fold-closed,
.section-empty-avatars .fold-open { display: inline-block; flex: 0 0 auto; white-space: nowrap; }
.section-empty-avatars .fold-open { display: none; }
.section-empty-avatars[open] .fold-closed { display: none; }
.section-empty-avatars[open] .fold-open { display: inline; }
.section-empty-avatars .fold-arrow { display: block; flex: 0 0 auto; width: 16px; height: 10px; margin: 0; padding: 0; color: #242424; transform: rotate(0deg); transform-origin: center; transition: transform 160ms ease; }
.section-empty-avatars .fold-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.section-empty-avatars[open] .fold-arrow { transform: rotate(180deg); }
.section-empty-avatars .section-note { margin: 0; padding: 14px 18px 12px; border-top: 1px solid #bbb; }
.section-empty-avatars[hidden] { display: none !important; }
.section-empty-avatars .friend-grid { 
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

@media (max-width: 600px) {
  .section-empty-avatars .section-title-wrap { gap: 9px; min-height: 78px; padding: 10px; }
  .section-empty-avatars .fold-copy .section-title { font-size: 16px; }
  .section-empty-avatars .fold-copy small { font-size: 10px; }
  .section-empty-avatars .fold-action { flex-basis: 98px; width: 98px; height: 34px; gap: 6px; font-size: 11px; white-space: nowrap; }
  .section-empty-avatars .section-count { padding: 5px; font-size: 10px; }
  .section-empty-avatars .section-note { padding: 12px; }
  .section-empty-avatars .friend-grid { padding: 0 12px 12px; }
}

/* 仅“销号跑路”账号使用案件标签式小按键，其余成员卡片保持原样 */
.section-empty-avatars .friend-card {
  min-height: 60px;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) 16px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  align-items: center;
  padding: 8px 12px;
  color: #f5f5f5;
  background: linear-gradient(135deg, #252525, #111 68%, #3b3b3b);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.18);
  text-align: left;
}

.section-empty-avatars .friend-card::after {
  content: '→';
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: rgba(255, 255, 255, 0.8);
}

.section-empty-avatars .friend-card:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #3a3a3a, #161616 68%, #555);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.24);
}

@media (hover: hover) {
  .section-empty-avatars .friend-card:hover {
    color: #fff;
    background: linear-gradient(135deg, #3a3a3a, #161616 68%, #555);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.24);
  }
}

.section-empty-avatars .avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  margin: 0;
  background: #888;
  border: 0;
  box-shadow: none;
}

.section-empty-avatars .avatar img,
.section-empty-avatars .avatar-fallback {
  display: none;
}

.section-empty-avatars .friend-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.section-empty-avatars .friend-qq {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  text-align: left;
}

.section-empty-avatars .friend-qq::before {
  content: 'QQ ';
  color: inherit;
}

.section-empty-avatars .avatar-fallback {
  color: #fff;
  font-size: 14px;
}

.avatar-fallback {
  font-size: 20px;
  line-height: 1;
}

.friend-name,
.friend-qq {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.friend-qq {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hidden {
  display: none !important;
}

/* 水波纹反馈 - 直角扩散热区 */
.ripple {
  position: absolute;
  border-radius: 0;
  background: rgba(20, 20, 20, 0.14);
  transform: scale(0);
  animation: ripple-anim 480ms cubic-bezier(0, 0.2, 0.8, 1);
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* 加载动画 */
.list-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 13px;
  gap: 12px;
}

.list-loading.active {
  display: flex;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(20, 20, 20, 0.15);
  border-top-color: var(--ink);
  border-radius: 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 搜索无结果 */
.no-result {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.no-result-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.no-result-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.no-result-text {
  margin: 6px 0 0;
  font-size: 13px;
}

/* 页脚 */
.content-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.footer-tip {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.85;
}

.footer-sub {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* 全局 Toast - 纯直角黑底硬朗风 */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  padding: 10px 22px;
  border-radius: 0;
  background: #111513;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================
   响应式断点优化
   ============================================ */
@media (max-width: 1024px) {
  .friend-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .friend-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  /* 手机端性能 XQN-MOBILE-PERF：面板磨砂在移动端每帧重算，窄屏停用。
     弹窗遮罩 .group-picker-mask 的模糊保留（那才是真正需要模糊的地方）。*/
  .glass-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .scene {
    min-height: 100vh;
    min-height: 100svh;
    padding: 14px;
  }

  .glass-panel {
    min-height: calc(100vh - 28px);
    min-height: calc(100svh - 28px);
  }

  .panel-topline,
  .panel-footer {
    padding: 14px 18px;
    font-size: 9px;
  }

  .panel-footer span:last-child {
    display: none;
  }

  .panel-content {
    padding: 42px 20px 36px;
  }

  .main-title {
    padding-bottom: 16px;
  }

  .eyebrow-wrapper {
    margin-bottom: 20px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .main-title {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.16;
  }

  .intro-block {
    margin-top: 22px;
  }

  .intro {
    font-size: 15px;
  }

  .intro-sub {
    font-size: 12px;
  }

  .contact-cta {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 16px;
  }

  .group-picker {
    padding: 14px;
  }

  .group-picker-panel {
    padding: 22px 18px 16px;
  }

  .group-picker-title {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .group-option {
    gap: 10px;
    padding: 14px;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 36px;
  }

  .action {
    min-height: 94px;
    padding: 16px 18px;
  }

  .action strong {
    font-size: 16px;
  }

  /* 名单页手机端 */
  .list-page {
    padding: 12px 0;
  }

  .content-panel {
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    padding: 20px 16px 32px;
  }

  .header-nav {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .content-panel h2 {
    font-size: 30px;
  }

  .contact-line {
    font-size: 13px;
  }

  .search-box {
    margin: 18px 0 24px;
  }

  .search-box input {
    min-height: 44px;
    font-size: 13px;
  }

  .section-title {
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .section-title-wrap {
    margin-top: 32px;
    gap: 10px;
    align-items: center;
  }

  .section-title-wrap .section-count {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .section-note {
    margin-left: 8px;
    line-height: 1.5;
  }

  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .friend-card {
    padding: 14px 6px 12px;
  }

  /* 手机端：销号跑路名单收成小按键，一行两个 XQN-MOBILE-EMPTY */
  .section-empty-avatars .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px 10px;
  }

  .section-empty-avatars .friend-card {
    min-height: 40px;
    grid-template-columns: 6px minmax(0, 1fr) 11px;
    column-gap: 6px;
    padding: 5px 7px;
    box-shadow: 2px 2px 0 rgba(20, 20, 20, 0.18);
  }

  .section-empty-avatars .friend-card::after {
    font-size: 10px;
  }

  .section-empty-avatars .friend-name {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-empty-avatars .friend-qq {
    margin-top: 1px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .avatar {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .friend-name {
    font-size: 12px;
  }

  .friend-qq {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  /* 窄屏（360/375px 等）成员卡片也保持 3 列，不因屏窄掉成 2 列 */
  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 录音存档区块（2026-09-19 繁茂录音）===== */
/* 注：容器本身没有 .audio-archive 元素（只有 -head/-title/-meta/-note 与 .audio-side-panel），
   所以这里不定义 .audio-archive 本体。 */
.audio-archive-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.audio-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.audio-archive-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.audio-archive-meta {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}
.audio-player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 42px;
  margin-top: 12px;
  border-radius: 0;
}
.audio-archive-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .audio-archive-title { font-size: 14px; }
}

/* ===== 播放器方角（2026-09-19 依主站方角设计语言）===== */
.audio-player,
.audio-player::-webkit-media-controls-enclosure,
.audio-player::-webkit-media-controls-panel {
  border-radius: 0 !important;
}
.audio-player::-webkit-media-controls-enclosure {
  background: rgba(120, 120, 120, 0.14);
}

/* ===== 录音文字稿 ===== */
.transcript {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.transcript-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.transcript-head strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.transcript-head span {
  font-size: 11px;
  color: var(--muted);
}
.transcript-body {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
}
.tr-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}
.tr-row:last-child { border-bottom: 0; }
.tr-time {
  align-self: start;
  margin-top: 1px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.tr-time:hover { color: var(--ink); text-decoration: underline; }
.tr-time.is-active { color: var(--ink); }
.tr-time.is-current {
  margin-left: -5px;
  padding: 2px 5px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.tr-content { min-width: 0; }
.tr-who {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.tr-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}
@media (max-width: 640px) {
  .tr-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 7px 12px; }
  .tr-text { font-size: 13px; }
  .transcript-body { max-height: 300px; }
}

/* ===== 文字稿分段（2026-09-19 加标点整理）===== */
.tr-text {
  display: block;
  margin: 0 0 8px;
}
.tr-text:last-child { margin-bottom: 0; }
.tr-content .tr-text + .tr-text { margin-top: 2px; }

/* ===== 首页双栏：主面板 + 右侧常显语音会（2026-09-19）===== */
#page-home.active {
  width: min(1540px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(380px, 560px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 44px);
}
#page-home > .home-panel {
  width: 100%;
  margin: 0;
}
.audio-side-panel {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  align-self: stretch;
  justify-content: flex-start;
  padding: 26px 24px 24px;
  overflow: hidden;
}
.audio-side-panel .audio-archive-head {
  align-items: flex-start;
}
.audio-side-panel .audio-archive-title {
  flex: 1 1 220px;
  font-size: 17px;
  line-height: 1.35;
}
.audio-side-panel .audio-archive-meta {
  width: 100%;
  padding-left: 0;
}
.audio-side-panel .audio-player {
  margin-top: 16px;
}
.audio-side-panel .audio-archive-note {
  margin-top: 10px;
}
.audio-side-panel .transcript {
  min-height: 0;
  margin-top: 16px;
}
.audio-side-panel .transcript-body {
  max-height: min(620px, calc(100svh - 335px));
}
/* 旧的 04 折叠入口规则失效，避免影响右侧常显面板 */
.audio-side-panel[hidden] { display: flex; }

@media (max-width: 1280px) {
  #page-home.active {
    grid-template-columns: minmax(0, 760px) minmax(340px, 460px);
    gap: 20px;
  }
}

@media (max-width: 980px) {
  #page-home.active {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .audio-side-panel {
    min-height: 0;
  }
  .audio-side-panel .transcript-body {
    max-height: 430px;
  }
}

@media (max-width: 640px) {
  #page-home.active { gap: 12px; }
  .audio-side-panel { padding: 18px 14px; }
  .audio-side-panel .audio-archive-title { font-size: 15px; }
  .audio-side-panel .transcript-body { max-height: 320px; }
}
