﻿:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eef7f8;
  --text: #1d2733;
  --muted: #697789;
  --line: #dce4eb;
  --cyan: #19a9bd;
  --coral: #ef7468;
  --gold: #f1b84b;
  --blue: #4f83d8;
  --mint: #42b883;
  --pink: #d95d92;
  --sidebar-width: 248px;
  --sidebar-collapsed: 72px;
  --topbar-height: 68px;
  --radius: 8px;
  --shadow: 0 14px 36px rgba(27, 39, 51, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    system-ui, sans-serif;
  line-height: 1.5;
}

body.dark-mode {
  --bg: #121821;
  --surface: #192231;
  --surface-soft: #202d3d;
  --text: #edf4fb;
  --muted: #9aa9bb;
  --line: #314154;
  color-scheme: dark;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  font: inherit;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: var(--topbar-height);
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(90deg, #00a9c7 0%, #27c6de 58%, #68d7e7 100%);
  box-shadow: 0 8px 22px rgba(0, 169, 199, 0.2);
  backdrop-filter: blur(16px);
}

.topbar .brand-copy strong,
.topbar .brand-copy small {
  color: #fff;
}

.menu-button {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 43, 56, 0.12);
  cursor: pointer;
}

body.dark-mode .topbar,
body.dark-mode .sidebar {
  background: rgba(25, 34, 49, 0.96);
}

body.dark-mode .menu-button,
body.dark-mode .top-search input,
body.dark-mode .top-search button,
body.dark-mode .login-link,
body.dark-mode .register-link,
body.dark-mode .auth-icon-button,
body.dark-mode .user-trigger,
body.dark-mode .auth-form input,
body.dark-mode .auth-form select,
body.dark-mode .auth-form textarea,
body.dark-mode .composer-shell,
body.dark-mode .composer-options,
body.dark-mode .composer-tools button,
body.dark-mode .forum-filter input,
body.dark-mode .pagination a,
body.dark-mode .pagination span,
body.dark-mode .pagination strong {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

body.dark-mode .register-link,
body.dark-mode .form-button,
body.dark-mode .dropdown-action {
  background: #edf4fb;
  color: #121821;
}

body.dark-mode .side-nav a:hover,
body.dark-mode .side-nav a.active,
body.dark-mode .sidebar-more-toggle:hover,
body.dark-mode .sidebar-more-toggle[aria-expanded="true"],
body.dark-mode .auth-icon-button:hover,
body.dark-mode .user-trigger:hover,
body.dark-mode .auth-icon-button:focus-visible,
body.dark-mode .user-trigger:focus-visible {
  background: var(--surface-soft);
}

body.dark-mode .side-nav .nav-icon-wrap,
body.dark-mode .side-nav a.active span,
body.dark-mode .sidebar-more-toggle[aria-expanded="true"] span,
body.dark-mode .logo-slot {
  border-color: rgba(25, 169, 189, 0.46);
  background: var(--surface);
}

body.dark-mode .zone-card,
body.dark-mode .live-strip article,
body.dark-mode .thread-list a,
body.dark-mode .info-card,
body.dark-mode .page-card,
body.dark-mode .placeholder-list a,
body.dark-mode .forum-post-card,
body.dark-mode .comment-card,
body.dark-mode .post-cover {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

body.dark-mode .info-card a,
body.dark-mode .section-title a,
body.dark-mode .section-title span {
  color: var(--muted);
}

body.dark-mode .composer-topline,
body.dark-mode .composer-main,
body.dark-mode .reply-scope,
body.dark-mode .composer-footer {
  border-color: var(--line);
}

body.dark-mode .composer-draft,
body.dark-mode .composer-tools button,
body.dark-mode .reply-scope,
body.dark-mode .composer-count {
  color: #2cc8df;
}

body.dark-mode .composer-tools button {
  background: transparent;
}

body.dark-mode .composer-tools button:hover,
body.dark-mode .composer-tools button:focus-visible {
  background: rgba(44, 200, 223, 0.12);
}

body.dark-mode .composer-submit {
  background: var(--cyan);
  color: #fff;
}

body.dark-mode .composer-title-label,
body.dark-mode .composer-options summary {
  color: var(--muted);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
}

.logo-slot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  background: #fff;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.brand-logo-img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.top-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
}

.top-search input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 14px;
  background: #fff;
}

.top-search button,
.login-link,
.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  background: #fff;
  cursor: pointer;
}

.top-search button {
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #008aa4;
  font-weight: 800;
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.login-link,
.register-link {
  border-radius: var(--radius);
  font-weight: 800;
}

.register-link {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.auth-icon-button,
.user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.auth-icon-button {
  position: relative;
  width: 42px;
  padding: 0;
}

.auth-icon-button svg,
.user-trigger svg,
.avatar-default svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-icon-button:hover,
.user-trigger:hover,
.auth-icon-button:focus-visible,
.user-trigger:focus-visible {
  border-color: var(--cyan);
  background: #eaf7f9;
  outline: none;
}

.auth-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--coral);
}

.user-menu-wrap {
  position: relative;
}

.user-trigger {
  gap: 6px;
  min-width: 64px;
  padding: 3px 8px 3px 4px;
}

.avatar-frame {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(25, 169, 189, 0.38);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--cyan);
}

.avatar-frame.large {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-trigger-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 0;
  width: min(304px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 0 10px;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}

.user-profile-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0 16px 12px;
  text-align: center;
}

.user-profile-card .avatar-frame.large {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}

.user-profile-card > strong {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.15;
}

.user-profile-card > span {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.user-profile-card > strong,
.user-profile-card > span,
.user-stats span,
.user-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.user-stats span {
  display: grid;
  gap: 1px;
  border-right: 1px solid var(--line);
}

.user-stats span:last-child {
  border-right: 0;
}

.user-stats strong {
  color: var(--cyan);
  font-size: 14px;
}

.user-menu-list {
  display: grid;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.user-menu-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
}

a.user-menu-item {
  text-decoration: none;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.user-menu-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.user-menu-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-badge {
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
}

.user-menu-separator {
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}

.theme-toggle-row {
  cursor: default;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.toggle-switch span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cfd6de;
  transition: background 160ms ease;
}

.toggle-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 30, 42, 0.24);
  transition: transform 160ms ease;
}

.toggle-switch input:checked + span {
  background: var(--cyan);
}

.toggle-switch input:checked + span::after {
  transform: translateX(20px);
}

.user-menu-note {
  margin: 8px 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  width: var(--sidebar-width);
  border-right: 1px solid var(--line);
  background: #fff;
  transition: width 180ms ease, transform 180ms ease;
}

.side-nav {
  display: grid;
  align-content: start;
  flex: 0 0 auto;
  gap: 6px;
  padding: 16px 12px;
}

.side-nav a,
.sidebar-more-toggle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-left: 4px solid transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 4px 10px 4px 4px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.side-nav span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--surface-soft);
  color: var(--cyan);
  font-weight: 900;
}

.nav-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.side-nav strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav a strong,
.sidebar-more-toggle strong,
.quick-nav-settings strong {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

body.sidebar-transitioning .side-nav strong,
body.sidebar-transitioning .sidebar-more-toggle strong,
body.sidebar-transitioning .quick-nav-settings strong {
  opacity: 0;
  visibility: hidden;
}

.side-nav a:hover,
.side-nav a.active,
.sidebar-more-toggle:hover,
.sidebar-more-toggle[aria-expanded="true"] {
  border-left-color: var(--cyan);
  background: var(--surface-soft);
  color: var(--text);
}

.side-nav a.active span,
.sidebar-more-toggle[aria-expanded="true"] span {
  background: #fff;
  color: inherit;
}

.side-nav .nav-icon-wrap {
  border: 1px solid rgba(25, 169, 189, 0.24);
  border-radius: 0;
  background: #fff;
  color: inherit;
}

.side-nav a:hover .nav-icon-wrap,
.side-nav a.active .nav-icon-wrap,
.sidebar-more-toggle:hover .nav-icon-wrap,
.sidebar-more-toggle[aria-expanded="true"] .nav-icon-wrap {
  border-color: rgba(25, 169, 189, 0.44);
  background: #dff6fa;
  box-shadow: inset 4px 0 0 var(--cyan);
}

.sidebar-extra-item {
  display: none !important;
}

body.sidebar-more-open .sidebar-extra-item {
  display: grid !important;
}

body.sidebar-collapsed .sidebar-extra-item {
  display: none !important;
}

.sidebar-more-mark {
  font-size: 20px;
  line-height: 1;
}

.sidebar-footer {
  display: none;
  flex: 0 0 auto;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

body.sidebar-more-open .sidebar-footer {
  display: grid;
}

.sidebar-logo-link {
  display: block;
  min-width: 0;
}

.sidebar-logo-link img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
}

.quick-nav-settings {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 4px 10px 4px 4px;
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: default;
}

.quick-nav-settings strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-nav-settings .nav-icon-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(25, 169, 189, 0.24);
  border-radius: 8px;
  background: #fff;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 22px) 24px 80px;
  transition: margin-left 180ms ease;
}

.content {
  min-width: 0;
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .side-nav a,
body.sidebar-collapsed .sidebar-more-toggle {
  grid-template-columns: 36px;
  justify-content: center;
  padding-right: 4px;
}

body.sidebar-collapsed .side-nav strong,
body.sidebar-collapsed .sidebar-more-toggle {
  display: none;
}

body.sidebar-collapsed .sidebar-footer {
  display: none;
  padding: 10px 8px;
}

body.sidebar-collapsed .sidebar-logo-link {
  display: none;
}

body.sidebar-collapsed .quick-nav-settings {
  grid-template-columns: 36px;
  justify-content: center;
  padding: 4px;
}

body.sidebar-collapsed .quick-nav-settings strong {
  display: none;
}

body.sidebar-collapsed .page-shell {
  margin-left: var(--sidebar-collapsed);
}

@media (min-width: 821px) {
  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed) !important;
    transform: translateX(0) !important;
  }

  body.sidebar-collapsed .side-nav {
    overflow-x: hidden;
    padding-right: 8px;
    padding-left: 8px;
  }

  body.sidebar-collapsed .side-nav a,
  body.sidebar-collapsed .sidebar-more-toggle {
    grid-template-columns: 36px !important;
    justify-content: center !important;
    gap: 0 !important;
    min-width: 0;
    padding: 4px !important;
  }

  body.sidebar-collapsed .side-nav strong,
  body.sidebar-collapsed .sidebar-more-toggle,
  body.sidebar-collapsed .quick-nav-settings strong {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar-logo-link {
    display: none !important;
  }

  body.sidebar-collapsed .quick-nav-settings {
    grid-template-columns: 36px !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 4px !important;
  }

  body.sidebar-collapsed .page-shell,
  body.sidebar-collapsed .site-footer {
    margin-left: var(--sidebar-collapsed) !important;
  }
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title a,
.section-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.headline-row,
.forum-hall,
.portal-section,
.page-card {
  margin-bottom: 28px;
}

.carousel {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(18, 31, 44, 0.78), rgba(18, 31, 44, 0.24)),
    url("./assets/community-live-banner.png") center/cover;
  box-shadow: var(--shadow);
}

.carousel-slide {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  max-width: 620px;
  padding: 30px 72px;
  color: #fff;
}

.carousel-slide h2,
.carousel-slide p {
  margin: 0;
}

.carousel-slide h2 {
  font-size: 30px;
  line-height: 1.18;
}

.carousel-slide p {
  color: rgba(255, 255, 255, 0.88);
}

.carousel-slide a {
  width: fit-content;
  margin-top: 6px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 9px 14px;
  font-weight: 900;
}

.slide-kicker {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow.left {
  left: 16px;
}

.carousel-arrow.right {
  right: 16px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zone-card,
.live-strip article,
.thread-list a,
.info-card,
.page-card,
.placeholder-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
}

.zone-card {
  display: grid;
  gap: 6px;
  min-height: 130px;
  padding: 16px;
  border-top: 4px solid var(--accent, var(--cyan));
}

.zone-card small {
  color: var(--accent, var(--cyan));
  font-weight: 900;
}

.zone-card strong {
  font-size: 18px;
}

.zone-card p,
.live-strip p,
.info-card p,
.page-card p {
  margin: 0;
  color: var(--muted);
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-coral {
  --accent: var(--coral);
}

.accent-gold {
  --accent: var(--gold);
}

.accent-blue {
  --accent: var(--blue);
}

.accent-mint {
  --accent: var(--mint);
}

.accent-pink {
  --accent: var(--pink);
}

.live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-strip article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.status {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.status.live {
  background: #e8f8f0;
  color: #16764b;
}

.status.upcoming {
  background: #e8f6fa;
  color: #08758a;
}

.status.ended {
  background: #eef1f4;
  color: var(--muted);
}

.thread-list {
  display: grid;
  gap: 8px;
}

.thread-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.thread-list span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

body[data-page="live"],
body[data-page="user-live"] {
  background:
    linear-gradient(180deg, rgba(25, 169, 189, 0.08), transparent 340px),
    var(--bg);
}

body[data-page="live"] .site-footer,
body[data-page="user-live"] .site-footer,
body[data-page="live"].sidebar-collapsed .site-footer,
body[data-page="user-live"].sidebar-collapsed .site-footer {
  margin-left: 0;
}

.live-page-shell {
  display: grid;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 8px) 22px 76px;
}

.live-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.live-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-home-button {
  text-decoration: none;
}

.live-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  overflow: hidden;
  min-height: 90px;
  border: 1px solid rgba(25, 169, 189, 0.18);
  border-top: 5px solid #19bdd5;
  border-radius: 0;
  background:
    linear-gradient(110deg, rgba(20, 32, 47, 0.78), rgba(25, 169, 189, 0.16)),
    url("./assets/community-live-banner.png") center/cover;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 16px 18px;
}

.live-hero h1,
.live-hero p {
  margin: 0;
}

.live-hero h1 {
  font-size: 30px;
  line-height: 1.15;
}

.live-hero p {
  max-width: 620px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.live-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.live-hero .live-kicker {
  color: #9df0ff;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  overflow: hidden;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 18, 26, 0.5);
}

.live-stats span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.live-stats span:last-child {
  border-right: 0;
}

.live-stats strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.live-board {
  display: grid;
  gap: 18px;
}

.live-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(25, 169, 189, 0.28);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 10px;
}

.live-board-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.18;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.live-action-stack {
  display: grid;
  gap: 6px;
}

.live-standalone-actions {
  display: flex;
  justify-content: flex-end;
  min-height: 38px;
}

.user-live-entry {
  min-width: 168px;
}

body[data-page="live"] .home-tabs,
body[data-page="user-live"] .home-tabs,
body[data-page="user-live"] .member-filter,
body[data-page="live"] .member-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page="live"] .home-tabs button,
body[data-page="user-live"] .home-tabs button,
body[data-page="user-live"] .member-filter select,
body[data-page="live"] .member-filter select,
.live-board-link {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

body[data-page="live"] .home-tabs button {
  cursor: pointer;
}

body[data-page="live"] .home-tabs button:hover,
body[data-page="live"] .home-tabs button.active,
body[data-page="user-live"] .home-tabs button:hover,
body[data-page="user-live"] .home-tabs button.active,
.live-board-link:hover {
  border-color: var(--cyan);
  background: var(--surface-soft);
  color: var(--text);
}

.live-board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.live-board-link img {
  width: 20px;
  height: 20px;
}

.live-board-link.primary {
  border-color: rgba(25, 169, 189, 0.5);
  background: #e8f6fa;
  color: #08758a;
}

.live-member-filter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.live-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.live-video-card {
  display: grid;
  grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  overflow: hidden;
  min-height: 172px;
  border: 4px solid #101820;
  border-radius: 0;
  background: var(--surface);
  box-shadow: 8px 8px 0 rgba(25, 169, 189, 0.12);
  padding: 34px 14px 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.live-video-card:hover {
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 rgba(25, 169, 189, 0.2);
}

.live-video-card.is-disabled {
  cursor: default;
  opacity: 0.82;
}

.live-thumb {
  position: relative;
  display: grid;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(25, 169, 189, 0.2), rgba(104, 215, 231, 0.14)),
    var(--surface-soft);
}

.live-thumb img,
.live-thumb-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.live-thumb-placeholder {
  position: relative;
  border: 1px solid rgba(25, 169, 189, 0.22);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.85) 0 6%, transparent 7%),
    linear-gradient(135deg, rgba(25, 169, 189, 0.28), rgba(104, 215, 231, 0.1));
}

.live-thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  clip-path: polygon(32% 22%, 32% 78%, 78% 50%);
  background: rgba(8, 117, 138, 0.86);
  transform: translate(-50%, -50%);
}

.live-thumb .status {
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 6px 16px rgba(11, 18, 26, 0.16);
}

.live-thumb .sched-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 6px 16px rgba(11, 18, 26, 0.16);
}

.live-card-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
}

.live-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: auto;
  color: var(--text);
  font-size: 17px;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-card-body p,
.live-card-body small {
  margin: 0;
  color: var(--muted);
}

.live-member-line,
.live-meta-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.live-member-line {
  gap: 8px;
}

.live-member-line span,
.live-meta-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(25, 169, 189, 0.2);
}

.live-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.live-meta-row {
  justify-content: space-between;
  gap: 10px;
}

.live-viewers {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 80, 100, 0.1);
  color: #d92f50;
  font-weight: 900;
}

.live-card-actions {
  display: none;
}

.live-card-actions a {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.live-card-actions a:first-child {
  border-color: rgba(25, 169, 189, 0.42);
  background: #e8f6fa;
  color: #08758a;
}

body.dark-mode .live-video-card,
body.dark-mode .live-card-actions a,
body.dark-mode .live-board-link,
body.dark-mode[data-page="live"] .home-tabs button,
body.dark-mode[data-page="user-live"] .home-tabs button,
body.dark-mode[data-page="user-live"] .member-filter select,
body.dark-mode[data-page="live"] .member-filter select {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

body.dark-mode .live-card-actions a:first-child {
  background: var(--surface-soft);
  color: #2cc8df;
}

.live-side-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.live-side-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(27, 39, 51, 0.06);
  padding: 12px;
}

.live-side-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.live-side-card a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  color: #225a66;
  font-size: 14px;
  font-weight: 900;
}

.live-side-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.live-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.info-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.info-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.info-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.info-card a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  color: #225a66;
  font-weight: 800;
}

.info-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(27, 39, 51, 0.18);
}

.page-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.page-card h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.placeholder-list {
  display: grid;
  gap: 10px;
}

.placeholder-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
}

.placeholder-list span {
  color: var(--muted);
}

.forum-board {
  align-content: start;
}

.forum-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forum-head h1,
.forum-head p {
  margin: 0;
}

.forum-head p {
  margin-top: 6px;
}

.forum-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.forum-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.forum-filter input {
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.category-tabs a:hover,
.category-tabs a.active {
  border-color: var(--cyan);
  background: #eaf7f9;
  color: var(--text);
}

.forum-list {
  display: grid;
  gap: 12px;
}

.forum-post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
}

.forum-post-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
}

.forum-post-main {
  min-width: 0;
}

.forum-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.forum-post-tags span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: #225a66;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.forum-post-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.forum-post-card p {
  margin: 0;
  color: var(--muted);
}

.forum-post-meta {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
  min-width: 128px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span,
.pagination strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.pagination a,
.pagination strong {
  color: var(--text);
  font-weight: 900;
}

.auth-panel {
  max-width: 520px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body[data-page="create"] .page-shell {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.composer-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.composer-topline {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 6px 14px;
}

.composer-topline h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.composer-close,
.composer-draft {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.composer-close {
  width: 38px;
}

.composer-close svg,
.composer-tools svg,
.reply-scope svg,
.composer-avatar svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-close svg {
  width: 22px;
  height: 22px;
}

.composer-draft {
  padding: 0 10px;
  color: var(--cyan);
  font-weight: 900;
}

.composer-form {
  gap: 0;
}

.composer-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 14px;
}

.composer-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(25, 169, 189, 0.36);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--cyan);
}

.composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-avatar svg {
  width: 24px;
  height: 24px;
}

.composer-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.composer-intro {
  font-size: 14px;
}

.auth-form .composer-category {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-category span,
.composer-title-label span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.composer-category select {
  width: auto;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 34px 0 12px;
  color: var(--cyan);
  font-weight: 900;
}

.auth-form .composer-content-label {
  display: block;
}

.auth-form .composer-content-label textarea {
  min-height: 166px;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
  resize: vertical;
}

.auth-form .composer-content-label textarea:focus,
.auth-form .composer-title-label input:focus,
.auth-form .composer-options input:focus {
  outline: none;
}

.auth-form .composer-content-label textarea::placeholder {
  color: #8f99a6;
}

.auth-form .composer-title-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.auth-form .composer-title-label input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.composer-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0;
}

.composer-options summary {
  cursor: pointer;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.composer-options label {
  padding: 0 12px 12px;
}

.auth-form .composer-options input {
  width: 100%;
  background: var(--surface);
}

.reply-scope {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
}

.reply-scope svg {
  width: 18px;
  height: 18px;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.composer-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-tools button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.composer-tools button:hover,
.composer-tools button:focus-visible {
  background: rgba(25, 169, 189, 0.12);
  outline: none;
}

.composer-tools svg {
  width: 21px;
  height: 21px;
}

.composer-submit-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.composer-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.composer-count.warning {
  color: var(--coral);
}

.composer-submit {
  min-width: 84px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--cyan);
}

.composer-form .form-message {
  padding: 0 20px 16px 84px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.auth-form textarea {
  min-height: 160px;
  padding: 10px 12px;
  resize: vertical;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.form-button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.form-button.danger {
  background: #ba3b35;
}

.form-button:disabled,
.watch-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.form-message,
.api-empty {
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: #ba3b35;
}

.form-message.success {
  color: #16764b;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.post-body {
  white-space: pre-wrap;
  color: var(--text);
}

.post-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-actions .form-button {
  min-width: 86px;
  padding: 0 14px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 13px 16px;
}

.comment-card strong {
  font-size: 14px;
}

.comment-card p {
  white-space: pre-wrap;
}

.auth-nav button.login-link {
  border-radius: var(--radius);
}

.site-footer {
  margin-left: var(--sidebar-width);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 16px 24px 28px;
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed .site-footer {
  margin-left: var(--sidebar-collapsed);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.site-footer strong {
  color: var(--muted);
}

/* 页脚导航链接 */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}

.site-footer a {
  color: var(--muted);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-links a:hover {
  color: var(--cyan);
  text-decoration: none;
}

/* 免责声明 */
.footer-disclaimer {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  text-align: center;
}

/* 版权与技术行 */
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: 12px;
}

.footer-copy span {
  font-size: 12px;
}

.footer-dot {
  opacity: 0.35;
  font-size: 14px;
}

/* 赞助链接 */
.site-footer .footer-coffee {
  color: var(--gold);
  font-weight: 600;
}

.site-footer .footer-coffee:hover {
  color: var(--gold);
  opacity: 0.8;
  text-decoration: none;
}

.mobile-scrim {
  display: none;
}

@media (max-width: 1120px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="live"] .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    height: auto;
    min-height: var(--topbar-height);
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .auth-nav {
    justify-content: end;
  }

  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
  }

  body.sidebar-collapsed .side-nav a {
    grid-template-columns: 36px 1fr;
    justify-content: start;
    padding-right: 10px;
  }

  body.sidebar-collapsed .sidebar-more-toggle {
    display: grid;
    grid-template-columns: 36px 1fr;
    justify-content: start;
    gap: 10px;
    padding: 4px 10px 4px 4px;
  }

  body.sidebar-collapsed.sidebar-more-open .sidebar-extra-item {
    display: grid !important;
  }

  body.sidebar-collapsed.sidebar-more-open .sidebar-footer {
    display: grid;
  }

  body.sidebar-collapsed .side-nav strong,
  body.sidebar-collapsed .sidebar-more-toggle strong {
    display: block;
  }

  .page-shell,
  body.sidebar-collapsed .page-shell {
    margin-left: 0;
    padding: 138px 14px 86px;
  }

  .site-footer,
  body.sidebar-collapsed .site-footer {
    margin-left: 0;
    padding: 18px 14px 86px;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    background: rgba(20, 30, 42, 0.36);
  }

  body.sidebar-open .mobile-scrim {
    display: block;
  }

  .zone-grid,
  .live-strip,
  .live-video-grid,
  .info-rail {
    grid-template-columns: 1fr;
  }

  .live-page-shell {
    padding: 138px 14px 76px;
  }

  .live-layout {
    grid-template-columns: 1fr;
  }

  .live-side-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .live-stats {
    width: 100%;
    min-width: 0;
  }

  .live-board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .live-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  body[data-page="live"] .home-tabs,
  body[data-page="user-live"] .home-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body[data-page="live"] .home-tabs button,
  body[data-page="user-live"] .home-tabs button {
    flex: 0 0 auto;
  }

  body[data-page="live"] .member-filter,
  body[data-page="user-live"] .member-filter {
    justify-content: space-between;
    width: 100%;
  }

  .live-board-link {
    display: grid;
    place-items: center;
  }

  .carousel-slide {
    padding: 28px 58px;
  }

  .carousel-slide h2 {
    font-size: 24px;
  }

  .thread-list a,
  .placeholder-list a,
  .forum-post-card a {
    grid-template-columns: 1fr;
  }

  .thread-list span,
  .forum-post-meta {
    white-space: normal;
  }

  .forum-post-meta {
    justify-items: start;
  }

  .forum-head,
  .forum-filter {
    grid-template-columns: 1fr;
  }

  .forum-head {
    display: grid;
  }

  body[data-page="create"] .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .composer-main {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .composer-avatar {
    width: 40px;
    height: 40px;
  }

  .auth-form .composer-content-label textarea {
    min-height: 150px;
    font-size: 20px;
  }

  .composer-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .composer-submit-area {
    width: 100%;
    justify-content: space-between;
  }

  .composer-form .form-message {
    padding: 0 14px 14px 68px;
  }
}

@media (max-width: 520px) {
  .logo-slot {
    width: 40px;
    height: 40px;
  }

  .auth-nav {
    gap: 6px;
  }

  .login-link,
  .register-link {
    min-height: 38px;
    padding: 0 10px;
  }

  .auth-icon-button {
    width: 38px;
    min-height: 38px;
  }

  .user-trigger {
    min-width: 48px;
    min-height: 38px;
    padding: 2px;
  }

  .avatar-frame {
    width: 32px;
    height: 32px;
  }

  .user-trigger-arrow {
    display: none;
  }

  .carousel {
    min-height: 260px;
  }

  .live-hero h1 {
    font-size: 28px;
  }

  .live-side-rail {
    grid-template-columns: 1fr;
  }

  .live-video-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    border-width: 3px;
    padding: 12px;
  }

  .live-stats {
    grid-template-columns: 1fr;
  }

  .live-stats span {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .live-stats span:last-child {
    border-bottom: 0;
  }

  .live-card-actions {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    min-height: 260px;
    padding: 28px 52px;
  }

  .site-footer-inner {
    gap: 10px;
  }

  .footer-links a,
  .footer-copy {
    text-align: center;
  }

  .composer-topline {
    grid-template-columns: 36px 1fr auto;
    padding-inline: 10px;
  }

  .auth-form .composer-title-label {
    grid-template-columns: 1fr;
  }

  .auth-form .composer-category {
    display: grid;
    align-items: stretch;
  }

  .composer-category select {
    width: 100%;
  }

  .composer-tools {
    max-width: 100%;
  }

  .composer-tools button {
    width: 32px;
    height: 32px;
  }
}

/* Home page enhancements. */
body[data-page="home"] {
  --radius: 0;
  --bg: #eef3f6;
  --surface: #ffffff;
  --surface-soft: #edf7f8;
  --text: #17212c;
  --muted: #627083;
  --line: #cfd9e2;
  --cyan: #00a9c7;
  --coral: #f06d5f;
  --gold: #d99a20;
  --blue: #4f78cf;
  --mint: #28a778;
  --pink: #cb4f86;
  --shadow: 0 12px 28px rgba(23, 33, 44, 0.09);
}

body[data-page="home"] * {
  border-radius: 0 !important;
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 123, 189, 0.2), transparent 28vw),
    radial-gradient(circle at 86% 10%, rgba(255, 209, 102, 0.2), transparent 30vw),
    radial-gradient(circle at 72% 76%, rgba(69, 224, 255, 0.18), transparent 26vw),
    linear-gradient(180deg, rgba(0, 169, 199, 0.08), transparent 320px),
    var(--bg);
  isolation: isolate;
  overflow-x: hidden;
}

body[data-page="home"] .home-ambient-bg {
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body[data-page="home"] .home-ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 62%, rgba(255, 255, 255, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 34%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    linear-gradient(124deg, transparent 0 18%, rgba(255, 123, 189, 0.14) 30%, transparent 46%),
    linear-gradient(52deg, transparent 0 22%, rgba(69, 224, 255, 0.16) 36%, transparent 54%);
  opacity: 0.86;
  transform: translate3d(-3%, -2%, 0);
  animation: stageAuroraDrift 26s ease-in-out infinite alternate;
}

body[data-page="home"] .stage-light-ribbon {
  position: absolute;
  top: 40px;
  left: -20vw;
  width: 150vw;
  height: 260px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent),
    repeating-linear-gradient(112deg, rgba(255, 123, 189, 0.22) 0 34px, rgba(255, 209, 102, 0.22) 34px 68px, rgba(69, 224, 255, 0.22) 68px 102px, rgba(124, 92, 255, 0.2) 102px 136px, rgba(61, 220, 151, 0.2) 136px 170px);
  opacity: 0.62;
  filter: blur(1px) saturate(1.16);
  transform: rotate(-7deg);
  animation: stageRibbonSweep 20s ease-in-out infinite alternate;
}

body[data-page="home"] .support-light-particles {
  position: absolute;
  inset: 0;
}

body[data-page="home"] .support-light-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(12px * var(--s, 1));
  height: calc(12px * var(--s, 1));
  background: var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 54%, transparent);
  opacity: 0.72;
  transform: rotate(18deg);
  animation: supportLightFloat 12s ease-in-out infinite;
  animation-delay: var(--d);
}

body[data-page="home"] .support-light-particles i.star {
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 55%, 79% 90%, 50% 69%, 21% 90%, 32% 55%, 2% 35%, 39% 34%);
}

body[data-page="home"] .support-light-particles i.dot {
  border-radius: 999px !important;
}

body[data-page="home"] .support-light-particles i.ribbon {
  width: calc(8px * var(--s, 1));
  height: calc(34px * var(--s, 1));
  clip-path: polygon(0 0, 100% 10%, 82% 100%, 12% 88%);
}

body[data-page="home"] .oshi-mark-track {
  position: absolute;
  left: 0;
  display: flex;
  width: max-content;
  gap: 16px;
  color: rgba(23, 33, 44, 0.42);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  filter: drop-shadow(0 6px 12px rgba(0, 169, 199, 0.12));
  animation: oshiMarkFly 34s linear infinite;
}

body[data-page="home"] .oshi-mark-track span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 20px rgba(23, 33, 44, 0.08);
  padding: 4px 8px;
}

body[data-page="home"] .oshi-mark-track.track-one {
  top: 22%;
}

body[data-page="home"] .oshi-mark-track.track-two {
  top: 52%;
  animation-duration: 42s;
  animation-delay: -10s;
}

body[data-page="home"] .oshi-mark-track.track-three {
  top: 76%;
  animation-duration: 48s;
  animation-delay: -22s;
}

body[data-page="home"] .music-wave-line {
  position: absolute;
  right: -18vw;
  bottom: 7%;
  width: 112vw;
  height: 120px;
  opacity: 0.52;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px) 0 0 / 54px 54px,
    repeating-linear-gradient(116deg, transparent 0 26px, rgba(255, 123, 189, 0.28) 26px 34px, transparent 34px 58px, rgba(255, 209, 102, 0.28) 58px 66px, transparent 66px 88px, rgba(69, 224, 255, 0.28) 88px 96px, transparent 96px 126px);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  transform: rotate(-10deg);
  animation: confettiStreamSlide 17s ease-in-out infinite alternate;
}

body[data-page="home"] .page-shell {
  position: relative;
  z-index: 1;
}

body[data-page="home"].dark-mode {
  --bg: #111821;
  --surface: #182333;
  --surface-soft: #223244;
  --text: #edf4fb;
  --muted: #9badbf;
  --line: #314457;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body[data-page="home"].dark-mode .oshi-mark-track {
  color: rgba(237, 244, 251, 0.22);
}

body[data-page="home"].dark-mode .oshi-mark-track span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(24, 35, 51, 0.48);
}

body[data-page="home"] .topbar {
  border-bottom: 3px solid #008aa4;
  background: linear-gradient(90deg, #00a9c7 0%, #27c6de 58%, #68d7e7 100%);
  box-shadow: 0 8px 22px rgba(0, 169, 199, 0.2);
}

body[data-page="home"].dark-mode .topbar,
body[data-page="home"].dark-mode .sidebar {
  background: rgba(25, 34, 49, 0.96);
}

body[data-page="home"].dark-mode .menu-button,
body[data-page="home"].dark-mode .top-search input,
body[data-page="home"].dark-mode .top-search button,
body[data-page="home"].dark-mode .quick-panel button,
body[data-page="home"].dark-mode .watch-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

body[data-page="home"].dark-mode .side-nav a:hover,
body[data-page="home"].dark-mode .side-nav a.active,
body[data-page="home"].dark-mode .sidebar-more-toggle:hover,
body[data-page="home"].dark-mode .sidebar-more-toggle[aria-expanded="true"] {
  background: var(--surface-soft);
}

body[data-page="home"] .logo-slot {
  border: 2px solid var(--cyan);
  display: grid;
  place-items: center;
  background: #fff;
}

body[data-page="home"] .menu-button {
  border: 2px solid var(--cyan);
  background: #fff;
}

.menu-icon,
.brand-logo-img {
  display: block;
}

.menu-icon {
  width: 28px;
  height: 28px;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
}

body[data-page="home"] .side-nav {
  gap: 8px;
  padding: 18px 12px;
}

body[data-page="home"] .side-nav a {
  border-left: 4px solid transparent;
}

body[data-page="home"] .side-nav a:hover,
body[data-page="home"] .side-nav a.active,
body[data-page="home"] .sidebar-more-toggle:hover,
body[data-page="home"] .sidebar-more-toggle[aria-expanded="true"] {
  border-left-color: var(--cyan);
  background: var(--surface-soft);
}

body[data-page="home"] .page-shell {
  gap: 22px;
  padding-top: calc(var(--topbar-height) + 20px);
}

.nav-icon-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 169, 199, 0.24);
  background: #fff;
}

.nav-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.side-nav a:hover .nav-icon-wrap,
.side-nav a.active .nav-icon-wrap {
  border-color: rgba(0, 169, 199, 0.44);
  background: #dff6fa;
}

.side-nav a.active .nav-icon-wrap {
  box-shadow: inset 4px 0 0 var(--cyan);
}

body[data-page="home"] .sidebar-footer {
  border-top: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="home"] .quick-nav-settings {
  border: 1px solid var(--line);
  border-radius: 10px !important;
  background: #fff;
}

body[data-page="home"] .quick-nav-settings .nav-icon-wrap {
  border-radius: 8px !important;
}

.quick-panel button,
.watch-button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--text);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="home"] .section-title {
  border-left: 6px solid var(--cyan);
  padding-left: 12px;
}

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] strong,
body[data-page="home"] p,
body[data-page="home"] a,
body[data-page="home"] button {
  overflow-wrap: anywhere;
}

body[data-page="home"] .side-nav a strong,
body[data-page="home"] .sidebar-more-toggle strong,
body[data-page="home"] .quick-nav-settings strong {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

body[data-page="home"] .section-title a,
body[data-page="home"] .section-title span {
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

body[data-page="home"] .carousel {
  --carousel-image: url("./assets/community-live-banner.png");
  min-height: 380px;
  border: 0;
  border-left: 8px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(12, 19, 27, 0.86), rgba(12, 19, 27, 0.42)),
    var(--carousel-image) center/cover;
  transition:
    filter 220ms ease,
    box-shadow 220ms ease;
}

body[data-page="home"] .carousel-slide {
  min-height: 380px;
  max-width: 800px;
  padding: 48px 104px 88px;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
  will-change: opacity, transform;
}

body[data-page="home"] .carousel.is-switching {
  filter: saturate(1.08);
}

body[data-page="home"] .carousel.is-switching .carousel-arrow {
  pointer-events: none;
  opacity: 0.72;
}

body[data-page="home"] .carousel-slide.is-leaving {
  opacity: 0;
  filter: blur(3px);
}

body[data-page="home"] .carousel-slide.is-leaving.from-next {
  transform: translateX(-24px);
}

body[data-page="home"] .carousel-slide.is-leaving.from-prev {
  transform: translateX(24px);
}

body[data-page="home"] .carousel-slide.is-entering {
  opacity: 0;
  filter: blur(3px);
}

body[data-page="home"] .carousel-slide.is-entering.from-prev {
  transform: translateX(-24px);
}

body[data-page="home"] .carousel-slide.is-entering.from-next {
  transform: translateX(24px);
}

body[data-page="home"] .carousel-slide.is-entering.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

body[data-page="home"] .carousel-slide h2 {
  font-size: 38px;
  max-width: 760px;
}

body[data-page="home"] .carousel-slide a,
body[data-page="home"] .slide-kicker,
body[data-page="home"] .status {
  border: 1px solid rgba(255, 255, 255, 0.42);
}

body[data-page="home"] .carousel-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
}

body[data-page="home"] .carousel-dots {
  position: absolute;
  right: 18px;
  bottom: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-page="home"] .carousel-dots button {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 4px 12px rgba(11, 18, 26, 0.18);
  cursor: pointer;
  opacity: 0.78;
  padding: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    width 180ms ease;
}

body[data-page="home"] .carousel-dots button:hover,
body[data-page="home"] .carousel-dots button:focus-visible {
  background: #fff;
  opacity: 1;
  transform: scale(1.18);
}

body[data-page="home"] .carousel-dots button.active {
  width: 26px;
  border-color: #fff;
  background: var(--cyan);
  opacity: 1;
}

body[data-page="home"] .carousel.is-switching .carousel-dots button {
  pointer-events: none;
}

.hero-metrics {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 18, 26, 0.72);
  color: #fff;
}

.hero-metrics span {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

body[data-page="home"] .zone-grid {
  gap: 14px;
}

body[data-page="home"] .zone-card,
body[data-page="home"] .live-strip article,
body[data-page="home"] .thread-list a,
body[data-page="home"] .info-card {
  border-color: var(--line);
  border-left: 5px solid var(--accent, var(--cyan));
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

body[data-page="home"] .zone-card {
  min-height: 154px;
  border-top: 1px solid var(--line);
}

body[data-page="home"] .zone-card:hover,
body[data-page="home"] .live-strip article:hover,
body[data-page="home"] .thread-list a:hover,
body[data-page="home"] .info-card:hover {
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 18px 36px rgba(23, 33, 44, 0.14);
  transform: translateY(-2px);
}

.zone-meta {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

body[data-page="home"] .live-strip article {
  --accent: var(--mint);
  align-content: start;
}

.watch-button {
  width: fit-content;
  margin-top: 4px;
  background: #fff;
  color: var(--text);
}

body[data-page="home"] .thread-list {
  gap: 10px;
}

body[data-page="home"] .thread-list a {
  border-left-color: var(--blue);
  padding: 16px 18px;
}

body[data-page="home"] .info-card {
  --accent: var(--gold);
}

.quick-panel {
  --accent: var(--pink) !important;
}

.quick-panel button {
  width: 100%;
  background: #fff;
  color: var(--text);
  text-align: left;
}

body[data-page="home"] .post-fab {
  right: 24px;
  bottom: 24px;
  border-left: 6px solid var(--coral);
  min-width: 86px;
  border-radius: 999px !important;
}

body[data-page="home"] .top-search input {
  border-radius: 999px 0 0 999px !important;
}

body[data-page="home"] .top-search button {
  border-radius: 0 999px 999px 0 !important;
}

body[data-page="home"] .login-link,
body[data-page="home"] .register-link,
body[data-page="home"] .auth-icon-button,
body[data-page="home"] .user-trigger,
body[data-page="home"] .avatar-frame,
body[data-page="home"] .menu-badge,
body[data-page="home"] .toggle-switch span {
  border-radius: 999px !important;
}

body[data-page="home"] .user-dropdown {
  border-radius: 8px !important;
}

body[data-page="home"] .home-dashboard {
  display: grid;
  gap: 24px;
}

body[data-page="home"] .home-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  border-top: 4px solid var(--accent, var(--cyan));
  background: rgba(255, 255, 255, 0.58);
  padding: 14px 0 4px;
}

body[data-page="home"].dark-mode .home-section {
  background: rgba(24, 35, 51, 0.54);
}

body[data-page="home"] .news-masonry-section {
  --accent: var(--cyan);
}

body[data-page="home"] .live-schedule-section {
  --accent: var(--mint);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(61, 220, 151, 0.12), rgba(69, 224, 255, 0.1) 42%, rgba(255, 209, 102, 0.08)),
    rgba(255, 255, 255, 0.58);
}

body[data-page="home"].dark-mode .live-schedule-section {
  background:
    linear-gradient(135deg, rgba(61, 220, 151, 0.14), rgba(69, 224, 255, 0.1) 42%, rgba(255, 209, 102, 0.08)),
    rgba(24, 35, 51, 0.54);
}

body[data-page="home"] .live-schedule-section > :not(.live-hololive-flyfield) {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .live-hololive-flyfield {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

body[data-page="home"] .live-hololive-flyfield span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(0, 169, 199, 0.13);
  font-size: calc(30px * var(--s, 1));
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  mix-blend-mode: multiply;
  text-shadow: 0 8px 20px rgba(0, 169, 199, 0.12);
  transform: rotate(-45deg);
  animation: hololiveFlyDownLeft var(--dur, 18s) linear infinite;
  animation-delay: var(--d, 0s);
}

body[data-page="home"] .live-hololive-flyfield span:nth-child(3n) {
  color: rgba(61, 220, 151, 0.13);
}

body[data-page="home"] .live-hololive-flyfield span:nth-child(3n + 1) {
  color: rgba(69, 224, 255, 0.13);
}

body[data-page="home"].dark-mode .live-hololive-flyfield span {
  color: rgba(104, 215, 231, 0.15);
  mix-blend-mode: screen;
}

body[data-page="home"] .live-schedule-section .video-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

body[data-page="home"].dark-mode .live-schedule-section .video-card {
  background: rgba(24, 35, 51, 0.88);
}

body[data-page="home"] .clips-section {
  --accent: var(--blue);
}

body[data-page="home"] .rank-section {
  --accent: var(--gold);
}

body[data-page="home"] .fanwork-section {
  --accent: var(--pink);
}

body[data-page="home"] .home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

body[data-page="home"] .home-section-head.split {
  align-items: flex-start;
}

body[data-page="home"] .home-section-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

body[data-page="home"] .home-section-kicker {
  color: var(--accent, var(--cyan));
  font-size: 13px;
  font-weight: 900;
}

body[data-page="home"] .home-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

body[data-page="home"] .home-tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="home"] .home-tabs button:hover,
body[data-page="home"] .home-tabs button.active {
  border-color: var(--accent, var(--cyan));
  background: var(--surface-soft);
  color: var(--text);
}

body[data-page="home"] .home-filter-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

body[data-page="home"] .member-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

body[data-page="home"] .member-filter select {
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 28px 0 10px;
}

body[data-page="home"] .news-masonry,
body[data-page="home"] .video-grid,
body[data-page="home"] .clip-grid,
body[data-page="home"] .fanwork-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-page="home"] .news-masonry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}

body[data-page="home"] .video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .clip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .fanwork-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .news-card,
body[data-page="home"] .video-card,
body[data-page="home"] .clip-card,
body[data-page="home"] .fanwork-card,
body[data-page="home"] .rank-row {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

body[data-page="home"] .news-card:hover,
body[data-page="home"] .video-card:hover,
body[data-page="home"] .clip-card:hover,
body[data-page="home"] .fanwork-card:hover,
body[data-page="home"] .rank-row:hover {
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 14px 30px rgba(23, 33, 44, 0.12);
  transform: translateY(-2px);
}

body[data-page="home"] .news-card,
body[data-page="home"] .video-card,
body[data-page="home"] .clip-card,
body[data-page="home"] .fanwork-card {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  padding: 9px;
}

body[data-page="home"] .news-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}

body[data-page="home"] .news-card img,
body[data-page="home"] .video-card img,
body[data-page="home"] .clip-card img,
body[data-page="home"] .fanwork-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition:
    filter 220ms ease,
    transform 220ms ease;
  will-change: transform;
}

body[data-page="home"] .news-card:hover img,
body[data-page="home"] .video-card:hover img,
body[data-page="home"] .clip-card:hover img,
body[data-page="home"] .fanwork-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

body[data-page="home"] .news-card.feature img {
  aspect-ratio: 16 / 10;
}

body[data-page="home"] .news-card span,
body[data-page="home"] .video-status {
  width: fit-content;
  background: var(--surface-soft);
  color: var(--accent, var(--cyan));
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 900;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

body[data-page="home"] .news-card:hover span,
body[data-page="home"] .video-card:hover .video-status {
  background: var(--accent, var(--cyan));
  color: #fff;
  transform: translateY(-1px);
}

body[data-page="home"] .news-card strong,
body[data-page="home"] .video-card strong,
body[data-page="home"] .clip-card strong,
body[data-page="home"] .fanwork-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="home"] .news-card.feature strong {
  font-size: 19px;
}

body[data-page="home"] .news-card p,
body[data-page="home"] .video-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="home"] .news-card small,
body[data-page="home"] .video-card small,
body[data-page="home"] .clip-card span,
body[data-page="home"] .clip-card small,
body[data-page="home"] .fanwork-card span,
body[data-page="home"] .fanwork-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .rank-list {
  display: grid;
  gap: 6px;
}

body[data-page="home"] .rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
}

body[data-page="home"] .rank-row > span {
  color: var(--accent, var(--gold));
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

body[data-page="home"] .rank-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .rank-row small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

body[data-page="home"] .rail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

body[data-page="home"] .rail-stat-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="home"] .rail-stat-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
}

body[data-page="home"] .rail-rank-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  counter-reset: rail-rank;
}

body[data-page="home"] .rail-rank-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  counter-increment: rail-rank;
}

body[data-page="home"] .rail-rank-card li::before {
  content: counter(rail-rank);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

body[data-page="home"] .rail-rank-card a {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .info-rail > .info-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@keyframes holoFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes holoSoftGlow {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(0, 169, 199, 0.1);
  }

  50% {
    box-shadow: 0 18px 42px rgba(0, 169, 199, 0.24);
  }
}

@keyframes holoLivePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 120, 0.34);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px rgba(40, 167, 120, 0);
  }
}

@keyframes holoBackgroundDrift {
  from {
    background-position: center center;
  }

  to {
    background-position: 54% 48%;
  }
}

@keyframes stageAuroraDrift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.04);
  }
}

@keyframes stageRibbonSweep {
  from {
    transform: translate3d(-4%, -4px, 0) rotate(-8deg);
  }

  to {
    transform: translate3d(5%, 20px, 0) rotate(-4deg);
  }
}

@keyframes supportLightFloat {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) rotate(16deg) scale(0.8);
  }

  45% {
    opacity: 0.84;
    transform: translate3d(18px, -58px, 0) rotate(64deg) scale(1.16);
  }

  70% {
    opacity: 0.46;
    transform: translate3d(-14px, -96px, 0) rotate(118deg) scale(0.94);
  }
}

@keyframes oshiMarkFly {
  from {
    transform: translate3d(104vw, 0, 0);
  }

  to {
    transform: translate3d(-100%, -28px, 0);
  }
}

@keyframes confettiStreamSlide {
  from {
    background-position: 0 0, 0 0;
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }

  to {
    background-position: 72px 28px, 180px 0;
    transform: translate3d(-8vw, -18px, 0) rotate(-6deg);
  }
}

@keyframes hololiveFlyDownLeft {
  from {
    opacity: 0;
    transform: translate3d(0, -24px, 0) rotate(-45deg);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 0.92;
  }

  to {
    opacity: 0;
    transform: translate3d(-78vw, 78vw, 0) rotate(-45deg);
  }
}

@keyframes holoSlideInNext {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes holoSlideInPrev {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes holoFabBreath {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

body[data-page="home"] .topbar,
body[data-page="home"] .sidebar,
body[data-page="home"] .headline-row,
body[data-page="home"] .home-section,
body[data-page="home"] .info-rail {
  animation: holoFadeUp 520ms ease both;
}

body[data-page="home"] .sidebar {
  animation-delay: 80ms;
}

body[data-page="home"] .headline-row {
  animation-delay: 120ms;
}

body[data-page="home"] .home-section:nth-child(1) {
  animation-delay: 190ms;
}

body[data-page="home"] .home-section:nth-child(2) {
  animation-delay: 260ms;
}

body[data-page="home"] .home-section:nth-child(3) {
  animation-delay: 330ms;
}

body[data-page="home"] .home-section:nth-child(4) {
  animation-delay: 400ms;
}

body[data-page="home"] .home-section:nth-child(5) {
  animation-delay: 470ms;
}

body[data-page="home"] .info-rail {
  animation-delay: 240ms;
}

body[data-page="home"] .carousel {
  animation:
    holoFadeUp 560ms ease 140ms both,
    holoBackgroundDrift 12s ease-in-out 700ms infinite alternate;
  overflow: hidden;
}

body[data-page="home"] .zone-card,
body[data-page="home"] .live-strip article,
body[data-page="home"] .thread-list a,
body[data-page="home"] .news-card,
body[data-page="home"] .video-card,
body[data-page="home"] .clip-card,
body[data-page="home"] .fanwork-card,
body[data-page="home"] .rank-row,
body[data-page="home"] .info-card {
  will-change: transform;
}

body[data-page="home"] .zone-card:nth-child(1) {
  animation: holoFadeUp 460ms ease 180ms both;
}

body[data-page="home"] .zone-card:nth-child(2) {
  animation: holoFadeUp 460ms ease 240ms both;
}

body[data-page="home"] .zone-card:nth-child(3) {
  animation: holoFadeUp 460ms ease 300ms both;
}

body[data-page="home"] .zone-card:nth-child(4) {
  animation: holoFadeUp 460ms ease 360ms both;
}

body[data-page="home"] .zone-card:nth-child(5) {
  animation: holoFadeUp 460ms ease 420ms both;
}

body[data-page="home"] .zone-card:nth-child(6) {
  animation: holoFadeUp 460ms ease 480ms both;
}

body[data-page="home"] .live-strip article:nth-child(1),
body[data-page="home"] .info-card:nth-child(1) {
  animation: holoFadeUp 460ms ease 260ms both;
}

body[data-page="home"] .live-strip article:nth-child(2),
body[data-page="home"] .info-card:nth-child(2) {
  animation: holoFadeUp 460ms ease 340ms both;
}

body[data-page="home"] .live-strip article:nth-child(3),
body[data-page="home"] .info-card:nth-child(3) {
  animation: holoFadeUp 460ms ease 420ms both;
}

body[data-page="home"] .thread-list a {
  animation: holoFadeUp 420ms ease both;
}

body[data-page="home"] .thread-list a:nth-child(1) {
  animation-delay: 80ms;
}

body[data-page="home"] .thread-list a:nth-child(2) {
  animation-delay: 140ms;
}

body[data-page="home"] .thread-list a:nth-child(3) {
  animation-delay: 200ms;
}

body[data-page="home"] .thread-list a:nth-child(4) {
  animation-delay: 260ms;
}

body[data-page="home"] .thread-list a:nth-child(n + 5) {
  animation-delay: 320ms;
}

body[data-page="home"] .side-nav a,
body[data-page="home"] .sidebar-more-toggle,
body[data-page="home"] .top-search button,
body[data-page="home"] .login-link,
body[data-page="home"] .register-link,
body[data-page="home"] .carousel-arrow,
body[data-page="home"] .watch-button,
body[data-page="home"] .quick-panel button,
body[data-page="home"] .post-fab {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body[data-page="home"] .side-nav a:hover,
body[data-page="home"] .sidebar-more-toggle:hover,
body[data-page="home"] .top-search button:hover,
body[data-page="home"] .login-link:hover,
body[data-page="home"] .register-link:hover,
body[data-page="home"] .watch-button:hover,
body[data-page="home"] .quick-panel button:hover {
  transform: translateY(-2px);
}

body[data-page="home"] .zone-card:hover,
body[data-page="home"] .live-strip article:hover,
body[data-page="home"] .thread-list a:hover,
body[data-page="home"] .news-card:hover,
body[data-page="home"] .video-card:hover,
body[data-page="home"] .clip-card:hover,
body[data-page="home"] .fanwork-card:hover,
body[data-page="home"] .rank-row:hover,
body[data-page="home"] .info-card:hover {
  animation-name: holoSoftGlow;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

body[data-page="home"] .carousel-arrow:hover {
  box-shadow: 0 10px 22px rgba(11, 18, 26, 0.2);
  transform: translateY(-50%) scale(1.06);
}

body[data-page="home"] .carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

body[data-page="home"] .carousel:hover {
  box-shadow: 0 18px 42px rgba(0, 169, 199, 0.18);
}

body[data-page="home"] .status.live {
  animation: holoLivePulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

body[data-page="home"] .post-fab {
  animation: holoFabBreath 2.8s ease-in-out infinite;
}

body[data-page="home"] .post-fab:hover {
  animation-play-state: paused;
  box-shadow: 0 14px 30px rgba(239, 116, 104, 0.28);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] *,
  body[data-page="home"] *::before,
  body[data-page="home"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body[data-page="home"] .home-ambient-bg {
    opacity: 0.48;
  }
}

@media (max-width: 1120px) {
  body[data-page="home"] .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .news-masonry,
  body[data-page="home"] .video-grid,
  body[data-page="home"] .clip-grid,
  body[data-page="home"] .fanwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .info-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-page="home"] .home-ambient-bg {
    inset-block-start: 118px;
  }

  body[data-page="home"] .stage-light-ribbon {
    top: 36px;
    height: 130px;
    opacity: 0.42;
  }

  body[data-page="home"] .support-light-particles i:nth-child(n + 14) {
    display: none;
  }

  body[data-page="home"] .oshi-mark-track {
    gap: 10px;
    font-size: 17px;
    opacity: 0.8;
  }

  body[data-page="home"] .oshi-mark-track span {
    min-width: 28px;
    min-height: 28px;
    padding: 3px 7px;
  }

  body[data-page="home"] .music-wave-line {
    right: -28vw;
    bottom: 8%;
    width: 116vw;
    opacity: 0.34;
  }

  body[data-page="home"] .live-hololive-flyfield span {
    font-size: calc(18px * var(--s, 1));
  }

  body[data-page="home"] .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-page="home"] .brand {
    min-width: 0;
  }

  body[data-page="home"] .page-shell,
  body[data-page="home"].sidebar-collapsed .page-shell {
    padding: 152px 14px 88px;
    max-width: 100vw;
    overflow: hidden;
  }

  body[data-page="home"] .content,
  body[data-page="home"] .headline-row,
  body[data-page="home"] .home-dashboard,
  body[data-page="home"] .home-section,
  body[data-page="home"] .carousel {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="home"] .home-section-head,
  body[data-page="home"] .home-section-head.split {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="home"] .home-filter-actions {
    justify-items: stretch;
  }

  body[data-page="home"] .home-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body[data-page="home"] .home-tabs button {
    flex: 0 0 auto;
  }

  body[data-page="home"] .member-filter {
    justify-content: space-between;
  }

  body[data-page="home"] .member-filter select {
    min-width: 160px;
  }

  body[data-page="home"] .news-masonry,
  body[data-page="home"] .video-grid,
  body[data-page="home"] .clip-grid,
  body[data-page="home"] .fanwork-grid,
  body[data-page="home"] .info-rail {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .news-card.feature {
    grid-column: span 1;
    grid-row: span 1;
  }

  body[data-page="home"] .rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  body[data-page="home"] .rank-row small {
    grid-column: 2;
    white-space: normal;
  }

  body[data-page="home"] .carousel {
    min-height: 360px;
  }

  body[data-page="home"] .carousel-slide {
    min-height: 360px;
    padding: 30px 42px 132px;
  }

  body[data-page="home"] .carousel-dots {
    right: 14px;
    bottom: 118px;
  }

  body[data-page="home"] .carousel-slide h2 {
    font-size: 26px;
    max-width: calc(100vw - 104px);
    word-break: break-all;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics span {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .topbar {
    gap: 8px;
  }

  body[data-page="home"] .brand-copy {
    display: none;
  }

  body[data-page="home"] .logo-slot {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }

  body[data-page="home"] .auth-nav .register-link {
    display: none;
  }

  body[data-page="home"] .login-link {
    min-width: 56px;
  }

  body[data-page="home"] .carousel-slide {
    padding: 26px 22px 134px;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  body[data-page="home"] .carousel-dots {
    right: 12px;
    bottom: 120px;
  }

  body[data-page="home"] .carousel-slide h2 {
    font-size: 23px;
    width: calc(100vw - 72px);
    max-width: 100%;
  }

  body[data-page="home"] .carousel-slide p {
    width: calc(100vw - 72px);
    max-width: 100%;
  }

  body[data-page="home"] .carousel-arrow {
    display: none;
  }

  body[data-page="home"] .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body[data-page="home"] .post-fab {
    right: 14px;
    bottom: 14px;
    min-width: 68px;
  }
}

/* =====================================================================
   综合讨论 — Twitter 风格帖子流
   ===================================================================== */

/* 排序标签栏 */
.forum-sort-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 2px;
}

.forum-sort-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.forum-sort-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.forum-sort-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 帖子列表容器 */
.forum-feed {
  display: grid;
  gap: 10px;
}

/* 帖子卡片 */
.forum-tweet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(27, 39, 51, 0.04);
  overflow: hidden;
  transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.forum-tweet-card:hover {
  background: var(--surface-soft);
  border-color: rgba(25, 169, 189, 0.38);
  box-shadow: 0 6px 20px rgba(25, 169, 189, 0.08);
}

/* 置顶帖左侧有蓝色高亮边 */
.forum-tweet-card--pinned {
  border-left: 3px solid var(--cyan);
}

/* 链接区域：两列（头像 + 正文） */
.forum-tweet-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

/* 头像列 */
.tweet-avatar-col {
  padding-top: 2px;
  flex-shrink: 0;
}

.tweet-avatar-circle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

/* 正文列 */
.tweet-body-col {
  min-width: 0;
}

/* 作者行 */
.tweet-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 4px;
}

.tweet-author-name {
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
}

.tweet-handle {
  color: var(--muted);
  font-size: 13px;
}

/* 徽章（置顶 / 精华 / 自定义） */
.tweet-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.6;
}

.tweet-badge--pin {
  background: rgba(241, 184, 75, 0.15);
  color: #92400e;
}

.tweet-badge--feat {
  background: rgba(239, 116, 104, 0.14);
  color: #be185d;
}

.tweet-badge--label {
  background: rgba(25, 169, 189, 0.12);
  color: #0e7490;
}

/* 时间戳（右对齐） */
.tweet-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 分类徽章行 */
.tweet-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tweet-cat-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #225a66;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 900;
}

/* 帖子标题 */
.tweet-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  transition: color 120ms ease;
}

.forum-tweet-card:hover .tweet-title {
  color: var(--cyan);
}

/* 摘要正文（默认 3 行，有封面时 2 行） */
.tweet-excerpt {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-tweet-card--has-cover .tweet-excerpt {
  -webkit-line-clamp: 2;
}

/* 封面图 */
.tweet-cover-wrap {
  margin: 6px 0 10px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}

.tweet-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.forum-tweet-card:hover .tweet-cover {
  transform: scale(1.03);
}

/* 话题标签 */
.tweet-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tweet-hashtag {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

/* 统计数据行 */
.tweet-stats {
  display: flex;
  gap: 20px;
}

.tweet-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.tweet-stat em {
  font-style: normal;
}

.tweet-stat-icon {
  font-size: 13px;
  line-height: 1;
}

/* =====================================================================
   右侧面板：热门话题 & 社区数据
   ===================================================================== */

.forum-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.forum-trending-item a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}

.forum-trending-item:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.forum-trending-item a:hover {
  color: var(--cyan);
}

.trending-cat {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trending-title {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  color: inherit;
}

.trending-count {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* 社区数据 2×2 格 */
.forum-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.forum-stat-grid span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.forum-stat-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

/* =====================================================================
   暗色模式适配
   ===================================================================== */

body.dark-mode .forum-tweet-card {
  border-color: var(--line);
  background: var(--surface);
}

body.dark-mode .forum-tweet-card:hover {
  background: var(--surface-soft);
  border-color: rgba(25, 169, 189, 0.28);
}

body.dark-mode .tweet-cat-badge,
body.dark-mode .forum-stat-grid span {
  background: var(--surface-soft);
  color: #7dd3de;
}

body.dark-mode .tweet-badge--label {
  background: rgba(25, 169, 189, 0.16);
  color: #7dd3de;
}

body.dark-mode .forum-sort-btn:hover {
  background: var(--surface-soft);
}

body.dark-mode .trending-title {
  color: var(--text);
}

body.dark-mode .forum-trending-item a:hover .trending-title {
  color: var(--cyan);
}

/* =====================================================================
   响应式适配
   ===================================================================== */

@media (max-width: 768px) {
  .forum-tweet-link {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  .tweet-avatar-circle {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .tweet-title {
    font-size: 15px;
  }

  .tweet-stats {
    gap: 14px;
  }

  .forum-sort-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .forum-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   综合讨论 — Twitter 风格三栏布局与左侧快捷导航
   ===================================================================== */

/* ── 入场动画 keyframes ── */
@keyframes forum-slide-left {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes forum-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes forum-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── 三栏容器 ── */
.forum-page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 310px;
  align-items: start;
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

/* ── 左侧快捷导航 ── */
.forum-sidenav {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 12px 32px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  animation: forum-slide-left 300ms ease both;
}

.forum-sidenav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.forum-sidenav-link:hover {
  background: var(--surface-soft);
  color: var(--text);
  transform: translateX(2px);
}

.forum-sidenav-link.active {
  color: var(--cyan);
  font-weight: 900;
}

.forum-sidenav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.forum-sidenav-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.forum-sidenav-link:hover .forum-sidenav-icon img,
.forum-sidenav-link.active .forum-sidenav-icon img {
  opacity: 1;
}

/* ── 主内容区 ── */
.forum-main {
  padding: 24px 20px 80px;
  min-width: 0;
  border-right: 1px solid var(--line);
  animation: forum-fade-up 320ms ease both;
  animation-delay: 60ms;
}

/* 帖子卡片入场动画（nth-child 错位） */
.forum-feed .forum-tweet-card {
  animation: forum-fade-up 280ms ease both;
}
.forum-feed .forum-tweet-card:nth-child(1)  { animation-delay: 40ms; }
.forum-feed .forum-tweet-card:nth-child(2)  { animation-delay: 90ms; }
.forum-feed .forum-tweet-card:nth-child(3)  { animation-delay: 140ms; }
.forum-feed .forum-tweet-card:nth-child(4)  { animation-delay: 180ms; }
.forum-feed .forum-tweet-card:nth-child(5)  { animation-delay: 210ms; }
.forum-feed .forum-tweet-card:nth-child(6)  { animation-delay: 235ms; }
.forum-feed .forum-tweet-card:nth-child(7)  { animation-delay: 255ms; }
.forum-feed .forum-tweet-card:nth-child(8)  { animation-delay: 270ms; }
.forum-feed .forum-tweet-card:nth-child(n+9) { animation-delay: 280ms; }

/* ── 右侧信息栏（重新设计） ── */
.forum-rail {
  position: sticky;
  top: calc(var(--topbar-height) + 16px);
  max-height: calc(100vh - var(--topbar-height) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 20px 24px 16px;
  animation: forum-fade-in 380ms ease both;
  animation-delay: 120ms;
}

.forum-rail-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(27, 39, 51, 0.05);
  transition: box-shadow 200ms ease;
}

.forum-rail-card:hover {
  box-shadow: 0 6px 20px rgba(25, 169, 189, 0.09);
}

.forum-rail-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

/* 暗色模式 */
body.dark-mode .forum-sidenav {
  background: var(--surface);
  border-right-color: var(--line);
}

body.dark-mode .forum-rail-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

/* ── 中屏（≤1100px）：sidenav 收图标模式，隐藏右侧栏 ── */
@media (max-width: 1100px) {
  .forum-page-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .forum-rail {
    display: none;
  }

  .forum-sidenav {
    padding: 24px 8px 32px;
    align-items: center;
  }

  .forum-sidenav-link {
    justify-content: center;
    padding: 0;
    width: 52px;
    min-height: 52px;
    gap: 0;
    transform: none !important;
  }

  .forum-sidenav-label {
    display: none;
  }

  .forum-sidenav-icon img {
    width: 26px;
    height: 26px;
  }
}

/* ── 小屏（≤820px）：隐藏 sidenav，单栏 ── */
@media (max-width: 820px) {
  .forum-page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-sidenav {
    display: none;
  }

  .forum-main {
    padding: 18px 14px 80px;
    border-right: none;
    animation-delay: 0ms;
  }
}

/* ── 搜索按钮加宽 ── */
.forum-filter .form-button {
  padding: 0 26px;
  white-space: nowrap;
}

/* ── 左侧导航底部：社区数据 ── */
.forum-sidenav-stats {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.forum-sidenav-stats-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.forum-stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.forum-stat-mini-grid span {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.forum-stat-mini-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

/* 图标模式下隐藏社区数据 */
@media (max-width: 1100px) {
  .forum-sidenav-stats {
    display: none;
  }
}

/* ── 右侧：创作者推荐 ── */
.forum-creator-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.forum-creator-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-creator-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  user-select: none;
}

.forum-creator-info {
  flex: 1;
  min-width: 0;
}

.forum-creator-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-creator-desc {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-creator-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.forum-creator-follow:hover {
  background: var(--cyan);
  color: #fff;
}

/* 暗色模式 */
body.dark-mode .forum-stat-mini-grid span {
  background: var(--surface-soft);
}

body.dark-mode .forum-creator-follow {
  border-color: var(--cyan);
  color: var(--cyan);
}

body.dark-mode .forum-creator-follow:hover {
  background: var(--cyan);
  color: #fff;
}

/* =====================================================================
   回到顶部按钮
   ===================================================================== */

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 102px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: rgba(25, 169, 189, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(25, 169, 189, 0.4);
  /* 默认隐藏 */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, background 160ms ease, box-shadow 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--cyan);
  box-shadow: 0 6px 22px rgba(25, 169, 189, 0.5);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

body.dark-mode .back-to-top {
  background: rgba(25, 169, 189, 0.85);
}

/* =====================================================================
   帖子详情浮层（Twitter 风格）
   ===================================================================== */

.post-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: transparent;
  visibility: hidden;
  transition: background 220ms ease, visibility 0ms linear 280ms;
}

.post-modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.48);
  visibility: visible;
  transition: background 220ms ease;
}

/* 面板：居中从底部滑入，左右留白 */
.post-modal-panel {
  position: fixed;
  top: var(--topbar-height);
  bottom: 0;
  left: 50%;
  width: min(700px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%) translateY(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -6px 48px rgba(27, 39, 51, 0.14);
}

.post-modal-overlay.is-open .post-modal-panel {
  transform: translateX(-50%) translateY(0);
}

/* 顶部固定栏 */
.post-modal-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  min-height: 52px;
}

.post-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.post-modal-back:hover {
  background: var(--surface-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.post-modal-topbar-label {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* 可滚动内容区 */
.post-modal-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 60px;
}

/* 作者行 */
.post-modal-author-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.post-modal-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.post-modal-author-info {
  min-width: 0;
}

.post-modal-author-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.post-modal-author-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

/* 徽章行 */
.post-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* 标题 */
.post-modal-title {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
}

/* 正文 */
.post-modal-body-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
  word-break: break-word;
}

/* 封面图 */
.post-modal-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 16px;
}

/* Hashtags */
.post-modal-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.post-modal-hashtag {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* 动作栏（赞 / 评论 / 分享） */
.post-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.post-modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.post-modal-action-btn:hover {
  background: var(--surface-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.post-modal-action-btn.liked {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

/* 评论区 */
.post-modal-comments-head {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
}

.post-modal-comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.post-modal-comment:last-child {
  border-bottom: none;
}

.post-modal-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  align-self: start;
}

.post-modal-comment-body .comment-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.post-modal-comment-body .comment-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.post-modal-comment-body .comment-time {
  color: var(--muted);
  font-size: 12px;
}

.post-modal-comment-body .comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

/* 评论输入区 */
.post-modal-comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post-modal-comment-input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  resize: none;
  line-height: 1.5;
  transition: border-color 150ms;
}

.post-modal-comment-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.post-modal-comment-submit {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 120ms;
}

.post-modal-comment-submit:hover {
  opacity: 0.88;
}

/* 加载骨架屏 */
.post-modal-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
  animation: skel-pulse 1.5s ease infinite;
}

.post-modal-loading .skel {
  height: 16px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.post-modal-loading .skel-title { height: 26px; width: 85%; }
.post-modal-loading .skel-short { width: 45%; }

@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 防止 body 在浮层打开时滚动 */
body.post-modal-open {
  overflow: hidden;
}

/* 暗色模式 */
body.dark-mode .post-modal-panel {
  box-shadow: 0 -6px 48px rgba(0, 0, 0, 0.5);
}

body.dark-mode .post-modal-topbar {
  background: var(--surface);
}

body.dark-mode .post-modal-comment-input {
  background: var(--surface);
}

/* 移动端（≤640px）：全屏覆盖，从底部滑入 */
@media (max-width: 640px) {
  .post-modal-panel {
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(100%);
  }

  .post-modal-overlay.is-open .post-modal-panel {
    transform: translateY(0);
  }

  .post-modal-scroll {
    padding: 16px 16px 80px;
  }
}

/* ── SVG 图标工具类（mask-image 方案，自动继承主题色）────────────────── */

.ic {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
}

.ic-reply    { -webkit-mask-image: url('../icons/forum/reply.svg');           mask-image: url('../icons/forum/reply.svg'); }
.ic-retweet  { -webkit-mask-image: url('../icons/forum/retweet.svg');         mask-image: url('../icons/forum/retweet.svg'); }
.ic-like     { -webkit-mask-image: url('../icons/forum/like.svg');            mask-image: url('../icons/forum/like.svg'); }
.ic-like-on  { -webkit-mask-image: url('../icons/forum/like-filled.svg');     mask-image: url('../icons/forum/like-filled.svg'); }
.ic-bookmark { -webkit-mask-image: url('../icons/forum/bookmark.svg');        mask-image: url('../icons/forum/bookmark.svg'); }
.ic-bm-on    { -webkit-mask-image: url('../icons/forum/bookmark-filled.svg'); mask-image: url('../icons/forum/bookmark-filled.svg'); }
.ic-share    { -webkit-mask-image: url('../icons/forum/share.svg');           mask-image: url('../icons/forum/share.svg'); }
.ic-views    { -webkit-mask-image: url('../icons/forum/views.svg');           mask-image: url('../icons/forum/views.svg'); }

/* ── 论坛帖子详情：中栏内容切换（Twitter 同款） ─────────────────────── */

.forum-detail { display: flex; flex-direction: column; }

.forum-detail-hd {
  position: sticky;
  top: var(--topbar-height, 56px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.forum-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms;
}

.forum-detail-back:hover { background: var(--surface-soft); }
.forum-detail-back .ic   { width: 20px; height: 20px; }

.forum-detail-hd-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-detail-body { padding: 0 20px 80px; }

/* ── 帖子详情浮层：Twitter 风格互动区 ─────────────────────────────── */

/* 分割线 */
.pm-divider {
  height: 1px;
  background: var(--line);
  margin: 0 -24px;
}

/* 时间 + 浏览行 */
.pm-datetime-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 10px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.pm-datetime-row strong { color: var(--text); }

/* 统计数字行（评论 / 转帖 / 喜欢 / 收藏） */
.pm-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}

.pm-stat-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 120ms;
}

.pm-stat-btn:hover { color: var(--cyan); }
.pm-stat-btn strong { color: var(--text); font-size: 15px; }

/* 操作图标行（💬 🔁 ♥ 🔖 ↑） */
.pm-action-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.pm-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

.pm-icon-btn:hover { background: var(--surface-soft); }
.pm-icon-btn.pm-icon-like:hover, .pm-icon-btn.pm-icon-like.active { color: #ef4444; }
.pm-icon-btn.pm-icon-retweet:hover, .pm-icon-btn.pm-icon-retweet.active { color: #10b981; }
.pm-icon-btn.pm-icon-bookmark:hover, .pm-icon-btn.pm-icon-bookmark.active { color: #f59e0b; }
.pm-icon-btn.pm-icon-reply:hover { color: var(--cyan); }
.pm-icon-btn.pm-icon-share:hover { color: var(--blue); }

.pm-icon-count {
  font-size: 13px;
  font-weight: 700;
}

/* 回复输入区 */
.pm-reply-area {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0 10px;
}

.pm-reply-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}

.pm-reply-main {
  flex: 1;
  min-width: 0;
}

.pm-reply-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  resize: none;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 2px solid var(--line);
  transition: border-color 150ms;
}

.pm-reply-input::placeholder { color: var(--muted); }
.pm-reply-input:focus { outline: none; border-bottom-color: var(--cyan); }

.pm-reply-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.pm-reply-submit {
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 120ms;
}

.pm-reply-submit:hover { opacity: 0.88; }

/* 作者行（含三点菜单） */
.pm-author-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.pm-author-info { flex: 1; min-width: 0; }

/* 三点菜单按钮 */
.pm-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.pm-menu-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: background 120ms, color 120ms;
  letter-spacing: 2px;
}

.pm-menu-btn:hover {
  background: var(--surface-soft);
  color: var(--cyan);
}

/* 下拉菜单 */
.pm-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.pm-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 100ms;
  white-space: nowrap;
}

.pm-menu-item:hover { background: var(--surface-soft); }

.pm-menu-item.pm-menu-danger { color: #ef4444; }
.pm-menu-item.pm-menu-sponsor { color: var(--pink); }

.pm-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* 转帖编辑浮层 */
.pm-retweet-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  padding: 20px;
}

.pm-retweet-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.pm-retweet-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  font-size: 16px;
}

.pm-retweet-close {
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 120ms;
}

.pm-retweet-close:hover { background: var(--surface-soft); color: var(--text); }

.pm-retweet-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  padding: 14px 18px;
  resize: none;
  min-height: 80px;
  transition: border-color 150ms;
}

.pm-retweet-input:focus { outline: none; border-bottom-color: var(--cyan); }
.pm-retweet-input::placeholder { color: var(--muted); }

.pm-retweet-preview {
  margin: 0 18px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
}

.pm-rt-prev-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pm-rt-prev-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.pm-rt-prev-author { font-weight: 700; font-size: 13px; }
.pm-rt-prev-title { font-size: 13px; color: var(--muted); line-height: 1.4; }

.pm-retweet-ft {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
}

.pm-retweet-submit {
  padding: 8px 24px;
  border: none;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 120ms;
}

.pm-retweet-submit:hover { opacity: 0.88; }

/* 评论列表（新版） */
.pm-comments-section { margin-top: 8px; }

.pm-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pm-comment:last-child { border-bottom: none; }

.pm-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  align-self: start;
  flex-shrink: 0;
}

.pm-comment-body { min-width: 0; }

.pm-comment-hd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.pm-comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.pm-comment-time { color: var(--muted); font-size: 12px; }
.pm-comment-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

/* 评论操作行 */
.pm-comment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.pm-cmt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 100ms, color 100ms;
}

.pm-cmt-btn:hover { background: var(--surface-soft); }
.pm-cmt-btn.cmt-liked { color: #ef4444; }
.pm-cmt-btn.cmt-retweeted { color: #10b981; }
.pm-cmt-btn.cmt-bookmarked { color: #f59e0b; }

.pm-cmt-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}

/* 暗色模式补充 */
body.dark-mode .pm-menu-dropdown { background: var(--surface); }
body.dark-mode .pm-retweet-box   { background: var(--surface); }
body.dark-mode .pm-retweet-input { background: var(--surface); }

/* 浮层内 Toast 通知 */
.pm-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
  z-index: 50;
}

.pm-toast.pm-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   关于 / 博客 / 加入 / FAQ 专属样式
   ============================================= */

.page-lead {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- 关于页 ---- */
.about-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.about-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.about-section h2 {
  margin: 0;
  font-size: 15px;
}

.about-section p,
.about-section li {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.about-section ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.about-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

/* ---- 博客页 ---- */
.blog-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}

.blog-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface);
  text-decoration: none;
  transition: background 120ms ease;
}

.blog-entry:hover {
  background: var(--surface-soft);
}

.blog-entry-date {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 72px;
  font-variant-numeric: tabular-nums;
}

.blog-entry-body {
  display: grid;
  gap: 4px;
  flex: 1;
}

.blog-entry-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(25, 169, 189, 0.12);
  color: var(--cyan);
  width: fit-content;
}

.blog-entry-tag.tag-sub  { background: rgba(25,169,189,.12); color: var(--cyan); }
.blog-entry-tag.tag-tech { background: rgba(79,131,216,.12); color: var(--blue); }
.blog-entry-tag.tag-rec  { background: rgba(66,184,131,.12); color: var(--mint); }
.blog-entry-tag.tag-evt  { background: rgba(241,184,75,.14); color: var(--gold); }
.blog-entry-tag.tag-ann  { background: rgba(239,116,104,.12); color: var(--coral); }

.blog-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.blog-entry-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ---- 招募页 ---- */
.role-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.role-card-icon {
  font-size: 26px;
  line-height: 1;
}

.role-card h3 {
  margin: 0;
  font-size: 15px;
}

.role-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  background: rgba(66, 184, 131, 0.12);
  color: var(--mint);
}

.role-badge.urgent {
  background: rgba(239, 116, 104, 0.12);
  color: var(--coral);
}

.join-apply-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 20px;
  text-align: center;
  display: grid;
  gap: 8px;
}

.join-apply-box h2 {
  margin: 0;
  font-size: 17px;
}

.join-apply-box p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.join-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 4px auto 0;
  width: fit-content;
  transition: opacity 120ms ease;
}

.join-apply-btn:hover {
  opacity: 0.87;
  color: #fff;
}

/* ---- FAQ 页 ---- */
.faq-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

details.faq-item {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

details.faq-item:last-child {
  border-bottom: none;
}

details.faq-item summary {
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background 120ms ease;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::before {
  content: '+';
  font-size: 16px;
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

details.faq-item[open] summary::before {
  content: '−';
}

details.faq-item summary:hover {
  background: var(--surface-soft);
}

.faq-answer {
  padding: 0 16px 14px 42px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--cyan);
}

.faq-answer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .about-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .blog-entry {
    flex-direction: column;
    gap: 6px;
  }

  .blog-entry-date {
    min-width: unset;
  }
}

/* ================================================================
   粉丝俱乐部页面 (fan-club)
   ================================================================ */

/* 三栏布局 */
.fc-shell {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 28px) 20px 48px;
  align-items: start;
}

/* ---- 左侧快捷导航 ---- */
.fc-sidenav {
  position: sticky;
  top: calc(var(--topbar-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27,39,51,.06);
  padding: 12px 8px;
}

.fc-sidenav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: calc(var(--radius) - 2px);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  position: relative;
}

.fc-sidenav-link:hover {
  background: var(--surface-soft);
  color: var(--cyan);
}

.fc-sidenav-link.active {
  background: linear-gradient(90deg, rgba(25,169,189,.12), rgba(25,169,189,.04));
  color: var(--cyan);
}

.fc-sidenav-icon {
  font-size: 18px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.fc-sidenav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.fc-sidenav-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.fc-sidenav-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--line);
}

.fc-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.fc-stat-item strong {
  font-size: 15px;
  color: var(--cyan);
  line-height: 1.2;
}

/* ---- 视图区 ---- */
.fc-view { display: block; }
.fc-view[hidden] { display: none; }

/* ---- 大厅横幅 ---- */
.fc-hall-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
  height: 120px;
  background: linear-gradient(135deg, #00a9c7 0%, #27c6de 50%, #68d7e7 100%);
}

.fc-hall-banner-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .18;
}

.fc-hall-emoji-track {
  display: block;
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: fcEmojiScroll 22s linear infinite;
  letter-spacing: 10px;
}

@keyframes fcEmojiScroll {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-50%); }
}

.fc-hall-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 28px;
}

.fc-hall-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.fc-hall-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

/* ---- 标签页 ---- */
.fc-tab-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fc-tab {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.fc-tab:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.fc-tab.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

/* ---- 搜索行 ---- */
.fc-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.fc-search-form {
  display: flex;
  flex: 1;
  min-width: 0;
}

.fc-search-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.fc-search-form input:focus {
  outline: none;
  border-color: var(--cyan);
}

.fc-search-form .form-button {
  border-radius: 0 var(--radius) var(--radius) 0;
  height: 38px;
  padding: 0 16px;
}

.fc-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cyan), #27c6de);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .12s;
  box-shadow: 0 4px 14px rgba(25,169,189,.28);
}

.fc-create-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.fc-create-btn.full {
  width: 100%;
  justify-content: center;
  height: 42px;
  font-size: 14px;
}

/* ---- 粉丝团卡片网格 ---- */
.fc-club-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fc-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.fc-club-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(27,39,51,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .18s;
}

.fc-club-card:hover {
  box-shadow: 0 12px 32px rgba(27,39,51,.12);
  transform: translateY(-2px);
}

.fc-club-card-body {
  cursor: pointer;
  flex: 1;
}

.fc-club-card-body:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* 封面 */
.fc-club-card-cover {
  position: relative;
  height: 70px;
  overflow: hidden;
}

.fc-club-card-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--club-color, var(--cyan)) 0%, color-mix(in srgb, var(--club-color, var(--cyan)) 40%, transparent) 100%);
  opacity: .72;
}

.fc-club-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.fc-club-badge.new {
  background: #42b883;
  color: #fff;
}

.fc-club-badge.hot {
  background: var(--coral);
  color: #fff;
}

/* 头像 */
.fc-club-card-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid var(--surface);
  background: var(--surface-soft);
  font-size: 24px;
  margin: -26px 0 0 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* 文字区 */
.fc-club-card-info {
  padding: 8px 16px 12px;
}

.fc-club-card-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-club-card-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-club-card-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* 底部操作栏 */
.fc-club-card-footer {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

/* 加入按钮 */
.fc-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.fc-join-btn:hover {
  background: var(--cyan);
  color: #fff;
}

.fc-join-btn.joined {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
}

.fc-join-btn.joined:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: transparent;
}

.fc-join-btn.large {
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

/* ---- 分页 ---- */
.fc-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---- 粉丝团详情 ---- */
.fc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.fc-back-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.fc-detail-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  background: var(--surface-soft);
  min-height: 160px;
}

.fc-detail-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, transparent 80%);
}

.fc-detail-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.44) 100%);
}

.fc-detail-cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 24px 24px;
  min-height: 160px;
}

.fc-detail-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 36px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.fc-detail-meta {
  flex: 1;
  min-width: 0;
}

.fc-detail-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.fc-detail-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

.fc-detail-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.fc-detail-stats strong {
  color: #fff;
  font-weight: 900;
}

.fc-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fc-detail-share-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .15s;
}

.fc-detail-share-btn:hover {
  background: rgba(255,255,255,.24);
}

/* 详情内容标签页 */
.fc-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  background: var(--surface);
  margin-bottom: 0;
}

.fc-detail-tab {
  padding: 12px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}

.fc-detail-tab:hover {
  color: var(--cyan);
}

.fc-detail-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.fc-detail-body {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  padding: 20px;
  min-height: 200px;
}

/* 公告板 */
.fc-board {
  display: grid;
  gap: 12px;
}

.fc-board-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--cyan);
  background: var(--surface-soft);
}

.fc-board-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.fc-board-item-head strong {
  font-size: 14px;
  font-weight: 800;
}

.fc-board-item-head time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.fc-board-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 讨论区 */
.fc-discuss {
  display: grid;
  gap: 14px;
}

.fc-compose-mini {
  display: grid;
  gap: 8px;
}

.fc-compose-mini textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  resize: none;
  font-size: 13px;
}

.fc-compose-mini textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.fc-compose-mini .form-button {
  justify-self: end;
  height: 34px;
  padding: 0 18px;
}

.fc-discuss-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fc-discuss-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fc-discuss-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.fc-discuss-body {
  flex: 1;
  min-width: 0;
}

.fc-discuss-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fc-discuss-meta strong {
  font-size: 13px;
  font-weight: 800;
}

.fc-discuss-meta time {
  font-size: 12px;
  color: var(--muted);
}

.fc-discuss-body p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.fc-discuss-actions {
  display: flex;
  gap: 8px;
}

.fc-discuss-actions button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.fc-discuss-actions button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 成员名册 */
.fc-member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-member-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s;
}

.fc-member-chip:hover {
  border-color: var(--cyan);
}

.fc-member-chip.more {
  color: var(--muted);
}

.fc-member-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---- 右侧面板 ---- */
.fc-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fc-panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(27,39,51,.06);
  overflow: hidden;
}

.fc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.fc-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.fc-panel-more {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.fc-panel-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 排行列表 */
.fc-rank-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.fc-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transition: background .15s;
  cursor: pointer;
}

.fc-rank-item:hover {
  background: var(--surface-soft);
}

.fc-rank-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
}

.fc-rank-num.rank-1 { background: #ffd700; color: #7a5800; }
.fc-rank-num.rank-2 { background: #c0c0c0; color: #555; }
.fc-rank-num.rank-3 { background: #cd7f32; color: #fff; }

.fc-rank-mark {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.fc-rank-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-rank-score {
  font-size: 12px;
  color: var(--coral);
  font-weight: 800;
  flex-shrink: 0;
}

/* 动态列表 */
.fc-activity-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.fc-activity-item {
  display: flex;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.fc-activity-item:last-child {
  border-bottom: none;
}

.fc-activity-mark {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 2px;
}

.fc-activity-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fc-activity-body strong {
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-activity-body span {
  font-size: 12px;
  color: var(--muted);
}

.fc-activity-body time {
  font-size: 11px;
  color: var(--muted);
}

/* 创建 CTA */
.fc-create-cta {
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(25,169,189,.08), rgba(25,169,189,.02));
  border-color: rgba(25,169,189,.28);
}

.fc-create-cta-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.fc-create-cta-desc {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- 排行榜完整页 ---- */
.fc-rank-page {
  padding: 24px;
}

.fc-rank-page-head {
  margin-bottom: 20px;
}

.fc-rank-page-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.fc-muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.fc-rank-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fc-rank-full-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--club-color, var(--cyan));
  transition: box-shadow .15s;
}

.fc-rank-full-item:hover {
  box-shadow: 0 4px 16px rgba(27,39,51,.1);
}

.fc-rank-full-item .fc-rank-mark {
  font-size: 22px;
}

.fc-rank-full-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fc-rank-full-info strong {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-rank-full-info span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- 创建粉丝团弹窗 ---- */
.fc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.fc-modal-overlay[hidden] {
  display: none;
}

.fc-modal {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
}

.fc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.fc-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.fc-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}

.fc-modal-close:hover {
  background: var(--surface-soft);
  color: var(--text);
}

/* 预览卡 */
.fc-modal-preview {
  margin: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  gap: 0;
}

.fc-preview-cover {
  width: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), #27c6de);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  transition: background .3s;
}

.fc-preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: border-color .3s;
}

.fc-preview-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.fc-preview-info strong {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-preview-info span {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 表单 */
.fc-modal-form {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fc-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.fc-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fc-required {
  color: var(--coral);
}

.fc-field-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font: inherit;
  transition: border-color .15s;
}

.fc-field-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,169,189,.12);
}

textarea.fc-field-input {
  resize: vertical;
}

.fc-field-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* 颜色选择器 */
.fc-color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}

.fc-swatch:hover {
  transform: scale(1.15);
}

.fc-swatch.active {
  border-color: var(--text);
  transform: scale(1.12);
}

/* 复选框 */
.fc-checkbox-group {
  flex-direction: row;
  align-items: center;
}

.fc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.fc-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* 弹窗底部 */
.fc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.fc-cancel-btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.fc-cancel-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =====================================================
   切片（Clips）模块样式
   ===================================================== */

/* 页面外壳 */
.clips-page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 28px) 20px 60px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.clips-sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clips-side-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.clips-side-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.clips-filter-stack {
  flex-direction: column;
}

.clips-filter-stack .clips-filter-btn {
  width: 100%;
  justify-content: flex-start;
}

.clips-member-cloud {
  flex-wrap: wrap;
}

.clips-main {
  min-width: 0;
}

/* 标题区 */
.clips-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.clips-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 18px;
}

.clips-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.clips-toolbar-copy strong {
  font-size: 14px;
  color: var(--text);
}

.clips-toolbar-copy span {
  font-size: 12px;
  color: var(--muted);
}

.clips-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.clips-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

.clips-hero p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.clips-hero-stats {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.clips-hero-stats strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
  margin-right: 3px;
}

/* 筛选栏 */
.clips-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.clips-filter-group {
  display: flex;
  gap: 6px;
}

.clips-sort-group {
  margin-left: auto;
}

.clips-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.clips-filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.clips-filter-btn.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

/* 切片卡片网格 */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  min-height: 160px;
}

/* 单个卡片 */
.clip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
  cursor: pointer;
}

.clip-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.clip-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface-soft);
  overflow: hidden;
}

.clip-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  background:
    linear-gradient(135deg, rgba(25,169,189,.85), rgba(255,125,125,.75)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.42), transparent 30%);
}

.clip-card__thumb-placeholder span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
}

.clip-card__platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
}

.clip-card__platform-badge.youtube {
  background: #ff0000;
  color: #fff;
}

.clip-card__platform-badge.bilibili {
  background: #00a1d6;
  color: #fff;
}

.clip-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.clip-card__body {
  padding: 12px 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clip-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  margin: 0;
}

.clip-card__channel {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.clip-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.clip-card__tag {
  height: 20px;
  padding: 0 8px;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  line-height: 20px;
}

/* 卡片底部互动栏 */
.clip-card__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.clip-card__stat-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.clip-card__stat-btn:hover {
  color: var(--cyan);
  background: var(--surface-soft);
}

.clip-card__stat-btn.liked {
  color: var(--coral);
}

.clip-card__stat-btn.saved {
  color: var(--gold);
}

.clip-card__stat-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.clip-card__open-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.clip-card__open-link:hover {
  color: var(--cyan);
  background: var(--surface-soft);
}

/* 空状态和加载状态 */
.clips-loading,
.clips-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

.clips-empty-icon {
  font-size: 40px;
  opacity: .4;
}

/* 加载更多 */
.clips-pagination {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.clips-pagination[hidden] {
  display: none;
}

.clips-load-more-btn {
  height: 40px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.clips-load-more-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 分享按钮（FAB） */
.clips-share-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 24px;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(25,169,189,.4);
  transition: background .15s, box-shadow .15s, transform .15s;
  z-index: 900;
}

.clips-share-fab:hover {
  background: #1591a4;
  box-shadow: 0 6px 20px rgba(25,169,189,.5);
  transform: translateY(-2px);
}

.clips-share-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 投稿模态框 */
.clips-submit-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.clips-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

/* 步骤指示器 */
.clips-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  flex-wrap: wrap;
}

.clips-step {
  color: var(--muted);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: color .15s, border-color .15s, background .15s;
}

.clips-step.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(25,169,189,.08);
}

.clips-step.done {
  color: var(--mint);
  border-color: var(--mint);
}

.clips-step-sep {
  color: var(--line);
  font-size: 16px;
}

/* 步骤面板 */
.clips-step-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clips-step-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* URL 输入 */
.clips-url-input-wrap {
  display: flex;
  gap: 8px;
}

.clips-url-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}

.clips-url-input:focus {
  border-color: var(--cyan);
}

/* 预览卡片 */
.clips-preview-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.clips-preview-thumb {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--line);
}

.clips-preview-info {
  flex: 1;
  min-width: 0;
}

.clips-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clips-preview-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* 字段组 */
.clips-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clips-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.clips-field-optional {
  color: var(--muted);
  font-weight: 400;
}

/* 标签选择器 */
.clips-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clips-tag-option {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}

.clips-tag-option:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.clips-tag-option.selected {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

/* 备注输入框 */
.clips-notes-input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
  line-height: 1.55;
}

.clips-notes-input:focus {
  border-color: var(--cyan);
}

.clips-char-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin: 0;
}

/* 声明框 */
.clips-ack-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clips-ack-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.clips-ack-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.clips-ack-list {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.6;
}

.clips-ack-list a {
  color: var(--cyan);
  text-decoration: none;
}

.clips-ack-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

/* 成功图标 */
.clips-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* 按钮行 */
.clips-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.clips-btn-primary {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.clips-btn-primary:hover {
  background: #1591a4;
}

.clips-btn-primary:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.clips-btn-ghost {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.clips-btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 响应式 */
@media (max-width: 900px) {
  .clips-page-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
  }
  .clips-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .clips-page-shell {
    padding-top: 146px;
    padding-left: 12px;
    padding-right: 12px;
    display: block;
  }
  .clips-sidebar {
    position: static;
    margin-bottom: 18px;
  }
  .clips-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .clips-sort-group {
    margin-left: 0;
  }
  .clips-grid {
    grid-template-columns: 1fr;
  }
  .clips-share-fab {
    bottom: 16px;
    right: 16px;
  }
  .clips-submit-modal {
    padding: 20px 16px 16px;
  }
  .clips-url-input-wrap {
    flex-direction: column;
  }
}

/* 暗色模式补充 */
body.dark-mode .clip-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.modal-overlay.hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 18, 26, .58);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(23, 33, 44, .22);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

/* ---- Toast 通知 ---- */
.fc-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  white-space: nowrap;
}

.fc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fc-toast.warn {
  background: var(--coral);
  color: #fff;
}

/* ---- 页面背景 ---- */
body[data-page="fan-club"] {
  background:
    linear-gradient(180deg, rgba(25,169,189,.07), transparent 320px),
    var(--bg);
}

/* ---- 暗色模式适配 ---- */
body.dark-mode .fc-sidenav,
body.dark-mode .fc-club-card,
body.dark-mode .fc-panel-card,
body.dark-mode .fc-detail-body,
body.dark-mode .fc-modal,
body.dark-mode .fc-board-item,
body.dark-mode .fc-rank-full-item {
  border-color: var(--line);
  background: var(--surface);
}

body.dark-mode .fc-field-input,
body.dark-mode .fc-search-form input,
body.dark-mode .fc-compose-mini textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

body.dark-mode .fc-tab {
  background: var(--surface);
  border-color: var(--line);
}

body.dark-mode .fc-back-btn {
  background: var(--surface);
  border-color: var(--line);
}

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .fc-shell {
    grid-template-columns: 60px 1fr 260px;
  }
  .fc-sidenav-label {
    display: none;
  }
  .fc-sidenav-link {
    justify-content: center;
    padding: 10px;
  }
  .fc-sidenav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
  }
  .fc-sidenav-stats {
    display: none;
  }
  .fc-sidenav-divider {
    display: none;
  }
}

@media (max-width: 860px) {
  .fc-shell {
    grid-template-columns: 1fr;
    padding-top: calc(var(--topbar-height) + 16px);
  }
  .fc-sidenav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }
  .fc-sidenav-label {
    display: inline;
    font-size: 12px;
  }
  .fc-sidenav-link {
    flex-direction: column;
    padding: 8px 10px;
    font-size: 11px;
    gap: 3px;
    min-width: 60px;
    text-align: center;
  }
  .fc-sidenav-divider {
    display: none;
  }
  .fc-sidenav-stats {
    display: none;
  }
  .fc-panel {
    position: static;
  }
  .fc-club-grid {
    grid-template-columns: 1fr;
  }
  .fc-detail-cover-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .fc-detail-actions {
    flex-direction: row;
  }
}

/* ============================================================
   配信日程表 (schedule page)
   ============================================================ */

/* 页面外壳（复用 page-shell 侧边栏边距逻辑） */
.sched-page-shell {
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 22px) 24px 80px;
  transition: margin-left 180ms ease;
  max-width: 1400px;
}

body.sidebar-collapsed .sched-page-shell {
  margin-left: var(--sidebar-collapsed);
}

/* 页面标题 */
.sched-page-hd {
  margin-bottom: 18px;
}

.sched-page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.sched-page-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 筛选卡片 */
.sched-filter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}

/* 第一层：组织分组标签 */
.sched-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.sched-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms, box-shadow 120ms;
  white-space: nowrap;
}

.sched-group-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.sched-group-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 3px 10px rgba(25, 169, 189, 0.28);
}

/* 分组色点 */
.sched-group-jp-dot,
.sched-group-en-dot,
.sched-group-id-dot,
.sched-group-devis-dot,
.sched-group-personal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sched-group-jp-dot       { background: #d95d92; }
.sched-group-en-dot       { background: #4f83d8; }
.sched-group-id-dot       { background: #42b883; }
.sched-group-devis-dot    { background: #f1b84b; }
.sched-group-personal-dot { background: #9b59b6; }

.sched-group-btn.active .sched-group-jp-dot,
.sched-group-btn.active .sched-group-en-dot,
.sched-group-btn.active .sched-group-id-dot,
.sched-group-btn.active .sched-group-devis-dot,
.sched-group-btn.active .sched-group-personal-dot {
  background: rgba(255, 255, 255, 0.8);
}

/* 第二层：世代展开动画 */
.sched-gen-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease, border-bottom-width 240ms ease;
}

.sched-gen-wrap.open {
  max-height: 90px;
  border-bottom: 1px solid var(--line);
}

.sched-gen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px 12px;
}

.sched-gen-btn {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms;
  white-space: nowrap;
}

.sched-gen-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.sched-gen-btn.active {
  background: rgba(25, 169, 189, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
}

/* 第三层：类型筛选 */
.sched-type-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
}

.sched-row-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  min-width: 28px;
}

.sched-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sched-type-btn {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms;
}

.sched-type-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.sched-type-btn.active {
  background: var(--surface-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 日期导航卡 */
.sched-date-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
  padding: 12px 16px;
  margin-bottom: 18px;
  overflow: hidden;
}

.sched-today-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 120ms;
}

.sched-today-btn:hover {
  opacity: 0.85;
}

.sched-date-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 2px;
}

.sched-date-strip::-webkit-scrollbar {
  display: none;
}

.sched-date-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  min-width: 70px;
  transition: border-color 120ms, background 120ms, color 120ms;
}

.sched-date-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.sched-date-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.sched-date-md {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.sched-date-day {
  font-size: 12px;
  line-height: 1.2;
}

/* 内容+侧栏布局 */
.sched-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

/* 日期分组 */
.sched-day-group {
  margin-bottom: 28px;
}

.sched-day-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.sched-day-title::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  flex-shrink: 0;
}

.sched-day-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 直播卡片网格 */
.sched-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* 直播卡片 */
.sched-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.sched-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(25, 169, 189, 0.12);
  transform: translateY(-2px);
}

.sched-card.is-live {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.12);
}

.sched-card.is-live:hover {
  border-color: #e53935;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.18);
}

.sched-card.is-ended {
  opacity: 0.6;
}

/* 缩略图区域 */
.sched-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}

.sched-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.sched-card:hover .sched-card-thumb img {
  transform: scale(1.05);
}

/* 状态角标 */
.sched-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 卡片内的角标（绝对定位） */
.sched-card .sched-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  pointer-events: none;
}

.sched-badge--live,
.sched-card .sched-badge.sched-badge--live {
  background: #e53935;
  color: #fff;
  animation: sched-live-pulse 1.8s ease-in-out infinite;
}

@keyframes sched-live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.sched-badge--upcoming,
.sched-card .sched-badge.sched-badge--upcoming {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  backdrop-filter: blur(2px);
}

.sched-badge--ended,
.sched-card .sched-badge.sched-badge--ended {
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.65);
}

/* 平台图标 */
.sched-platform-icon {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.sched-platform-icon svg {
  width: 12px;
  height: 12px;
}

/* 卡片信息区 */
.sched-card-info {
  padding: 9px 12px 11px;
}

.sched-talent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  min-width: 0;
}

.sched-talent-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}

.sched-talent-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-gen-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.sched-card-title {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sched-countdown {
  margin: 0;
  font-size: 11.5px;
  color: var(--cyan);
  font-weight: 600;
}

/* 骨架屏 */
.sched-skel-line,
.sched-card-thumb.sked-skel-thumb {
  background: linear-gradient(
    90deg,
    var(--surface-soft) 25%,
    var(--line) 50%,
    var(--surface-soft) 75%
  );
  background-size: 200% 100%;
  animation: sched-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  display: block;
}

.sched-skel-card .sched-card-thumb {
  background: linear-gradient(
    90deg,
    var(--surface-soft) 25%,
    var(--line) 50%,
    var(--surface-soft) 75%
  );
  background-size: 200% 100%;
  animation: sched-shimmer 1.5s ease-in-out infinite;
}

.sched-skel-card .sched-card-info {
  padding: 9px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sched-skel-line {
  height: 12px;
  border-radius: 3px;
}

@keyframes sched-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 空状态 */
.sched-empty {
  text-align: center;
  padding: 60px 20px 40px;
  color: var(--muted);
}

.sched-empty-icon {
  font-size: 44px;
  margin-bottom: 14px;
  line-height: 1;
}

.sched-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.sched-empty-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 信息侧栏 */
.sched-info-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--topbar-height) + 16px);
}

.sched-rail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
  padding: 16px;
}

.sched-rail-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.sched-rail-card p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.sched-rail-card p:last-child {
  margin-bottom: 0;
}

/* 图例列表 */
.sched-legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sched-legend-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text);
}

/* 图例中的角标（静态，非定位） */
.sched-legend-list .sched-badge {
  flex-shrink: 0;
}

/* 世代指南 */
.sched-gen-guide {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 11.5px;
}

.sched-gen-guide dt {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.sched-gen-guide dd {
  margin: 0;
  color: var(--muted);
}

/* ── 响应式 ── */
@media (max-width: 1280px) {
  .sched-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sched-body-layout {
    grid-template-columns: 1fr;
  }
  .sched-info-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .sched-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sched-page-shell,
  body.sidebar-collapsed .sched-page-shell {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 50px) 14px 70px;
  }
  .sched-date-card {
    gap: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  .sched-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sched-group-tabs {
    gap: 6px;
    padding: 10px 12px;
  }
  .sched-group-btn {
    padding: 5px 12px;
    font-size: 12.5px;
  }
}

/* =============================================
   独立页面布局（about / blog / join / faq）
   去掉侧边栏，内容居中
   ============================================= */

.solo-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 28px) 24px 80px;
  display: grid;
  gap: 24px;
}

body[data-page="about"] .solo-wrap {
  max-width: 1160px;
}

body[data-page="about"] .site-footer,
body[data-page="blog"]  .site-footer,
body[data-page="join"]  .site-footer,
body[data-page="faq"]   .site-footer {
  margin-left: 0;
}

@media (max-width: 820px) {
  .solo-wrap {
    padding: calc(var(--topbar-height) + 18px) 16px 60px;
  }
}

/* =============================================
   About v2 — .abv2-* 命名空间
   ============================================= */

/* Hero */
.abv2-hero {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #19a9bd 0%, #0e8fa2 100%);
  padding: 44px 36px 40px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.abv2-hero::before,
.abv2-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.07;
  pointer-events: none;
}

.abv2-hero::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -70px;
}

.abv2-hero::after {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 36px;
}

.abv2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: fit-content;
}

.abv2-hero-title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.abv2-hero-sub {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 520px;
}

/* 区块标题行 */
.abv2-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.abv2-section-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.abv2-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

/* 我们做什么 卡片网格 */
.abv2-what-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.abv2-what-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.abv2-what-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 18px rgba(25, 169, 189, 0.12);
}

.abv2-what-card-icon {
  font-size: 28px;
  line-height: 1;
}

.abv2-what-card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.abv2-what-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* 故事叙述区 */
.abv2-story {
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.abv2-story p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.abv2-story strong {
  color: var(--text);
}

/* 团队卡片 */
.abv2-team-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.abv2-team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.abv2-team-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.abv2-team-card-emoji {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.abv2-team-card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.abv2-team-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA 区块 */
.abv2-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 28px 24px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.abv2-cta-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.abv2-cta-email {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.abv2-cta-email a {
  color: var(--cyan);
  font-weight: 600;
}

.abv2-cta-email a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abv2-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.abv2-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 120ms ease;
}

.abv2-cta-btn:hover {
  opacity: 0.87;
  color: #fff;
}

.abv2-cta-btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.abv2-cta-btn.secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  opacity: 1;
}

/* 免责声明行 */
.abv2-disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.abv2-disclaimer-icon {
  font-size: 15px;
  flex-shrink: 0;
  padding-top: 1px;
}

.abv2-disclaimer-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.abv2-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

/* 爱发电赞助 banner（blog 页） */
.blog-support-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(241, 184, 75, 0.10);
  border: 1px solid rgba(241, 184, 75, 0.30);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 120ms ease;
}

.blog-support-banner:hover {
  opacity: 0.80;
  color: var(--gold);
}

/* 响应式 */
@media (max-width: 640px) {
  .abv2-hero {
    padding: 30px 20px 28px;
  }

  .abv2-hero-title {
    font-size: 30px;
  }

  .abv2-what-grid,
  .abv2-team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .abv2-cta {
    padding: 22px 18px;
  }

  .abv2-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .abv2-what-grid,
  .abv2-team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   日程表：背景粒子画布 & 应援色点
   ============================================================ */

/* 粒子画布：固定全屏，在内容之下 */
.sched-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 世代指南应援色点（.oc = oshi color） */
.oc {
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 1px;
  filter: drop-shadow(0 0 2px currentColor);
}

/* 世代指南：调整行距，适应色点 */
.sched-gen-guide dd {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.8;
}

/* 深色模式：确保白色色点可见 */
body.dark-mode .oc[style*="#F0F0E8"],
body.dark-mode .oc[style*="#f0f0e8"] {
  color: #c0c0b0 !important;
}

/* 第二层展开区高度：世代多时允许两行 */
.sched-gen-wrap.open {
  max-height: 120px;
}

/* ================================================================
   粒子背景动画（about / blog / join / faq 四页面）
   ================================================================ */

#holocn2-bright-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f4ff 0%, #e8f0fe 40%, #f5f0ff 100%);
}

body.dark-mode #holocn2-bright-bg {
  background: linear-gradient(180deg, #121821 0%, #0d1520 100%);
}

@keyframes holoFairyFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8%  { opacity: var(--max-opacity, 0.7); }
  92% { opacity: var(--max-opacity, 0.7); }
  100% {
    transform: translateY(-120vh) translateX(var(--drift-x, 0px)) rotate(var(--rot-deg, 360deg));
    opacity: 0;
  }
}

.holo-triangle {
  position: absolute;
  bottom: -10vh;
  width: 0;
  height: 0;
  border-left: var(--size-half, 10px) solid transparent;
  border-right: var(--size-half, 10px) solid transparent;
  border-bottom: var(--size-full, 20px) solid var(--holo-color, rgba(0,206,240,0.45));
  filter: drop-shadow(0 0 6px var(--holo-glow, rgba(0,206,240,0.6)));
  animation: holoFairyFloat linear infinite;
  will-change: transform, opacity;
}

.holo-star {
  position: absolute;
  bottom: -10vh;
  width: var(--size-full, 20px);
  height: var(--size-full, 20px);
  background: var(--holo-color, rgba(0,206,240,0.45));
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  filter: drop-shadow(0 0 6px var(--holo-glow, rgba(0,206,240,0.6)));
  animation: holoFairyFloat linear infinite;
  will-change: transform, opacity;
}

/* ============================================================
   Toast 通知
   ============================================================ */
.hcn2-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-elevated, #1e1e2e);
  color: var(--text-primary, #cdd6f4);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: .75rem;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .25s ease;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.hcn2-toast--visible {
  transform: translateX(-50%) translateY(0);
}
/* ============================================================
   切片评论抽屉面板
   ============================================================ */
.clip-detail-panel { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
.clip-detail-panel.hidden { display: none; }
.clip-detail-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.clip-detail-drawer { position: relative; width: 100%; max-width: 680px; max-height: 80vh; background: var(--bg-base, #1e1e2e); border-radius: 1.25rem 1.25rem 0 0; border: 1px solid var(--border, rgba(255,255,255,.08)); border-bottom: none; display: flex; flex-direction: column; overflow: hidden; }
.clip-detail-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem .75rem; border-bottom: 1px solid var(--border, rgba(255,255,255,.07)); flex-shrink: 0; }
.clip-detail-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.clip-detail-body { overflow-y: auto; padding: 1rem 1.25rem 2rem; flex: 1; }
.clip-comment-form { margin-bottom: 1.25rem; }
.clip-comment-input { width: 100%; background: var(--bg-input, rgba(255,255,255,.06)); border: 1px solid var(--border); border-radius: .625rem; color: var(--text-primary); font-size: .9rem; padding: .625rem .875rem; resize: vertical; font-family: inherit; transition: border-color .15s; box-sizing: border-box; }
.clip-comment-input:focus { outline: none; border-color: var(--accent, #89b4fa); }
.clip-comment-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-top: .5rem; }
.clip-comment-chars { font-size: .78rem; color: var(--text-muted); }
.clip-comment-list { display: flex; flex-direction: column; gap: .875rem; }
.clip-comment-empty { text-align: center; color: var(--text-muted); font-size: .875rem; padding: 1.5rem 0; }
.clip-comment-item { border-bottom: 1px solid var(--border, rgba(255,255,255,.05)); padding-bottom: .875rem; }
.clip-comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: .625rem; margin-bottom: .4rem; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar--placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent, #89b4fa); color: var(--bg-base, #1e1e2e); font-weight: 700; font-size: .875rem; text-transform: uppercase; }
.comment-meta-right { display: flex; flex-direction: column; line-height: 1.2; }
.comment-author { font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.comment-time   { font-size: .75rem; color: var(--text-muted); }
.comment-content { font-size: .875rem; color: var(--text-secondary, #bac2de); line-height: 1.55; margin: 0 0 .4rem; word-break: break-word; white-space: pre-wrap; }
.comment-actions { display: flex; align-items: center; gap: .75rem; }
.comment-like-btn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: none; color: var(--text-muted); font-size: .8rem; cursor: pointer; padding: .2rem .4rem; border-radius: .375rem; transition: color .15s, background .15s; }
.comment-like-btn:hover { color: var(--red, #f38ba8); background: rgba(243,139,168,.08); }
.comment-like-btn.liked { color: var(--red, #f38ba8); }
.comment-like-btn.liked svg { fill: var(--red, #f38ba8); }
.comment-replies-btn { background: none; border: none; color: var(--accent, #89b4fa); font-size: .8rem; cursor: pointer; padding: .2rem .4rem; border-radius: .375rem; transition: background .15s; }
.comment-replies-btn:hover { background: rgba(137,180,250,.08); }
.clip-replies-container { margin-top: .625rem; margin-left: 2.5rem; border-left: 2px solid var(--border, rgba(255,255,255,.08)); padding-left: .875rem; display: flex; flex-direction: column; gap: .4rem; }
.clip-replies-container.hidden { display: none; }
.clip-reply-item { font-size: .83rem; color: var(--text-secondary); line-height: 1.5; }
.clip-comment-more { text-align: center; padding: .75rem 0 0; }
.clip-comment-more.hidden { display: none; }
/* ============================================================
   管理后台 – clips-admin.html
   ============================================================ */
.admin-shell { max-width: 1024px; margin: 5rem auto 4rem; padding: 0 1.25rem; }
.admin-header { margin-bottom: 1.5rem; }
.admin-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 1rem; }
.admin-stats-bar { display: flex; flex-wrap: wrap; gap: .625rem; }
.admin-stat-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .3rem .75rem; border-radius: 2rem; background: var(--bg-elevated, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text-secondary); }
.admin-stat-chip strong { color: var(--text-primary); font-weight: 700; }
.admin-stat-chip.pending  { border-color: rgba(249,226,175,.3); }
.admin-stat-chip.approved { border-color: rgba(166,227,161,.3); }
.admin-stat-chip.rejected { border-color: rgba(243,139,168,.3); }
.admin-stat-chip.reported { border-color: rgba(250,179,135,.3); }
.admin-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: .875rem; font-weight: 500; padding: .625rem 1rem; cursor: pointer; white-space: nowrap; margin-bottom: -1px; transition: color .15s, border-color .15s; font-family: inherit; }
.admin-tab:hover { color: var(--text-primary); }
.admin-tab--active { color: var(--accent, #89b4fa); border-bottom-color: var(--accent, #89b4fa); }
.admin-panel { animation: fadeInPanel .15s ease; }
.admin-panel.hidden { display: none; }
@keyframes fadeInPanel { from { opacity: 0; } to { opacity: 1; } }
.admin-loading { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .875rem; }
.admin-clip-list { display: flex; flex-direction: column; }
.admin-clip-row { display: flex; gap: 1rem; align-items: flex-start; padding: .875rem 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.06)); transition: opacity .3s; }
.admin-clip-row:last-child { border-bottom: none; }
.admin-clip-thumb { width: 120px; height: 68px; border-radius: .5rem; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); }
.admin-clip-thumb--empty { background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(137,180,250,.08) 100%); }
.admin-clip-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.admin-clip-title { font-size: .9rem; font-weight: 600; color: var(--text-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.admin-clip-title:hover { color: var(--accent, #89b4fa); }
.admin-clip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .78rem; color: var(--text-muted); }
.admin-clip-tag { background: rgba(137,180,250,.1); color: var(--accent,#89b4fa); border-radius: .25rem; padding: .1rem .4rem; }
.admin-clip-status { border-radius: .25rem; padding: .1rem .45rem; font-size: .75rem; font-weight: 600; }
.admin-clip-status--pending  { background: rgba(249,226,175,.15); color: #f9e2af; }
.admin-clip-status--approved { background: rgba(166,227,161,.15); color: #a6e3a1; }
.admin-clip-status--rejected { background: rgba(243,139,168,.15); color: #f38ba8; }
.admin-clip-status--removed  { background: rgba(88,91,112,.3);    color: #585b70; }
.admin-clip-reject-reason { font-size: .78rem; color: var(--text-muted); font-style: italic; }
.admin-clip-notes { font-size: .8rem; color: var(--text-muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-report-badge { background: rgba(243,139,168,.15); color: #f38ba8; border-radius: .25rem; padding: .1rem .45rem; font-size: .75rem; font-weight: 700; }
.admin-clip-actions { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; }
.admin-logs-toolbar { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.admin-logs-table-wrap { overflow-x: auto; border-radius: .5rem; border: 1px solid var(--border); }
.admin-logs-table { width: 100%; border-collapse: collapse; font-size: .825rem; color: var(--text-secondary); }
.admin-logs-table th { background: var(--bg-elevated); color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding: .625rem .875rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-logs-table td { padding: .5rem .875rem; border-bottom: 1px solid var(--border, rgba(255,255,255,.04)); vertical-align: middle; }
.admin-logs-table tr:last-child td { border-bottom: none; }
.admin-logs-table a { color: var(--accent, #89b4fa); }
.admin-pagination { display: flex; justify-content: center; align-items: center; padding: 1rem 0; }
.btn-success { background: var(--green, #a6e3a1); color: #1e1e2e; border: none; }
.btn-success:hover { opacity: .85; }
.btn-danger { background: var(--red, #f38ba8); color: #1e1e2e; border: none; }
.btn-danger:hover { opacity: .85; }
.btn-sm { font-size: .8rem; padding: .3rem .75rem; border-radius: .375rem; }
/* 内容管理后台 */
.content-admin-shell { max-width: 1120px; }
.content-admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.content-admin-desc { margin: -.5rem 0 0; color: var(--text-muted); font-size: .9rem; }
.content-admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: .875rem 0 1.125rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.content-admin-toolbar label { display: flex; flex-direction: column; gap: .35rem; min-width: 160px; color: var(--text-muted); font-size: .78rem; }
.content-admin-toolbar select,
.content-admin-form input,
.content-admin-form select,
.content-admin-form textarea { width: 100%; border: 1px solid var(--border); background: var(--bg-elevated, rgba(255,255,255,.05)); color: var(--text-primary); border-radius: .45rem; padding: .55rem .65rem; font: inherit; }
.content-admin-form textarea { min-height: 86px; resize: vertical; }
.content-admin-list { display: flex; flex-direction: column; }
.content-admin-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.content-admin-main { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.content-admin-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.content-admin-title-line strong { font-size: .95rem; color: var(--text-primary); }
.content-admin-summary { margin: 0; color: var(--text-secondary); font-size: .84rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-admin-meta { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--text-muted); font-size: .78rem; }
.content-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; align-content: flex-start; }
.content-admin-empty { padding: 2rem 0; color: var(--text-muted); text-align: center; }
.content-admin-modal { width: min(860px, calc(100vw - 2rem)); max-height: 88vh; overflow: auto; }
.content-admin-form { padding: 1.25rem; }
.content-admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.content-admin-field { display: flex; flex-direction: column; gap: .35rem; color: var(--text-muted); font-size: .78rem; }
.content-admin-field.full { grid-column: 1 / -1; }
.content-admin-field.checkbox { flex-direction: row; align-items: center; gap: .55rem; padding-top: 1.55rem; }
.content-admin-field.checkbox input { width: auto; }
.content-admin-form-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ca-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid var(--border); border-radius: .45rem; padding: .45rem .8rem; background: var(--bg-elevated, rgba(255,255,255,.05)); color: var(--text-primary); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: none; }
.ca-btn:hover { border-color: var(--accent, #89b4fa); }
.ca-btn:disabled { opacity: .55; cursor: not-allowed; }
.ca-btn-primary { background: var(--accent, #89b4fa); border-color: var(--accent, #89b4fa); color: #07111f; font-weight: 700; }
.ca-btn-secondary { background: transparent; }
.ca-btn-danger { background: rgba(243,139,168,.14); color: #f38ba8; border-color: rgba(243,139,168,.3); }
.ca-btn-success { background: rgba(166,227,161,.14); color: #a6e3a1; border-color: rgba(166,227,161,.3); }
.ca-status { border-radius: 999px; padding: .16rem .5rem; font-size: .72rem; font-weight: 700; background: rgba(137,180,250,.12); color: var(--accent, #89b4fa); }
.ca-status.hidden,
.ca-status.deleted,
.ca-status.rejected { background: rgba(243,139,168,.14); color: #f38ba8; }
.ca-status.approved,
.ca-status.published,
.ca-status.on_sale,
.ca-status.preorder,
.ca-status.user_selling { background: rgba(166,227,161,.14); color: #a6e3a1; }
.ca-status.pending,
.ca-status.ending_soon,
.ca-status.wanted,
.ca-status.exchange { background: rgba(249,226,175,.14); color: #f9e2af; }
@media (max-width: 600px) {
  .admin-shell { margin-top: 4rem; padding: 0 .875rem; }
  .admin-clip-thumb { width: 80px; height: 46px; }
  .admin-clip-actions { flex-direction: row; }
  .clip-detail-drawer { max-height: 90vh; }
  .content-admin-header,
  .content-admin-row { display: flex; flex-direction: column; }
  .content-admin-actions { justify-content: flex-start; }
  .content-admin-form-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FAQ v2（faq.html 专用）
   ================================================================ */

/* 平滑滚动（锚点跳转） */
body[data-page="faq"] {
  scroll-behavior: smooth;
}

/* --- Hero 搜索区 --- */
.faq-hero {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  border-radius: var(--radius);
  padding: 44px 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -90px; right: -60px;
  pointer-events: none;
}

.faq-hero::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -60px; left: -40px;
  pointer-events: none;
}

.faq-hero-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.faq-hero-sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.faq-hero-sub a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
}

.faq-hero-sub a:hover {
  opacity: 1;
}

.faq-search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}

.faq-search {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #1a1a2e;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 150ms ease, border-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.faq-search:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
}

/* --- 分类卡片网格 --- */
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.faq-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  border-top: 3px solid var(--cat-color, var(--cyan));
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.faq-cat-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.faq-cat-card[data-color="cyan"]  { --cat-color: var(--cyan); }
.faq-cat-card[data-color="blue"]  { --cat-color: var(--blue); }
.faq-cat-card[data-color="mint"]  { --cat-color: var(--mint); }
.faq-cat-card[data-color="gold"]  { --cat-color: var(--gold); }

.faq-cat-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
}

.faq-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.faq-cat-count {
  font-size: 12px;
  color: var(--muted);
}

/* --- FAQ 区块 header --- */
.faq-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--cat-color, var(--cyan));
  margin-bottom: 16px;
}

.faq-section-head[data-color="cyan"]  { --cat-color: var(--cyan); }
.faq-section-head[data-color="blue"]  { --cat-color: var(--blue); }
.faq-section-head[data-color="mint"]  { --cat-color: var(--mint); }
.faq-section-head[data-color="gold"]  { --cat-color: var(--gold); }

.faq-section-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* --- details 重设计（仅 faq 页） --- */
body[data-page="faq"] details.faq-item[open] {
  border-left: 2px solid var(--cyan);
}

body[data-page="faq"] details.faq-item summary::before {
  content: '›';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
  display: inline-block;
  width: 16px;
  text-align: center;
}

body[data-page="faq"] details.faq-item[open] summary::before {
  content: '›';
  transform: rotate(90deg);
}

body[data-page="faq"] .faq-answer {
  line-height: 1.85;
}

/* --- 无结果提示 --- */
#faqNoResults {
  text-align: center;
  padding: 52px 24px;
  color: var(--muted);
}

.faq-no-results-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.faq-no-results-msg {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.faq-no-results-hint {
  margin: 0;
  font-size: 13px;
}

#faqNoResults a {
  color: var(--cyan);
}

/* --- 响应式 --- */
@media (max-width: 700px) {
  .faq-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-hero {
    padding: 30px 20px 26px;
  }

  .faq-hero-title {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .faq-cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   用户中心 (User Center) 模块
   ===================================================== */

.uc-content {
  padding: 0;
  max-width: 1200px;
}

/* Banner 区 */
.uc-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #00a9c7 0%, #19a9bd 50%, #27c6de 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.uc-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.15) 100%);
}

/* 个人资料卡片 */
.uc-profile-card {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 0;
}

.uc-profile-inner {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 1.5rem;
  padding: 1.5rem 2rem 1.25rem;
  align-items: start;
}

/* 头像列 */
.uc-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.uc-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  object-fit: cover;
  background: var(--surface-soft);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: block;
}

/* 信息列 */
.uc-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.uc-info-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uc-nickname {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.uc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 13px;
  color: var(--muted);
}

.uc-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.uc-level-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.uc-signature-box {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 2.5rem;
  word-break: break-all;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 统计列 */
.uc-stats-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.uc-stat-card {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  text-align: center;
}

.uc-stat-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}

.uc-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.uc-stat-card.uc-stat-hp .uc-stat-label,
.uc-stat-card.uc-stat-hp .uc-stat-value {
  color: var(--coral);
}

/* 展柜区 */
.uc-showcases {
  padding: 1.5rem 2rem 2rem;
}

.uc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.uc-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.uc-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* 展柜卡片 */
.uc-showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: grab;
}

.uc-showcase-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 16px rgba(25,169,189,0.1);
}

.uc-showcase-card.uc-card-locked {
  opacity: 0.6;
  background: var(--surface-soft);
  cursor: default;
}

.uc-showcase-card.uc-card-hidden {
  opacity: 0.45;
}

.uc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.uc-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.uc-card-icon {
  font-size: 18px;
  line-height: 1;
}

.uc-card-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.uc-card-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.uc-card-content {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.uc-card-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.uc-drag-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 14px;
  color: var(--line);
  transition: color 0.2s;
  user-select: none;
  letter-spacing: 1px;
}

.uc-showcase-card:hover .uc-drag-hint {
  color: var(--muted);
}

/* 展柜解锁提示 */
.uc-locked-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  text-align: center;
}

.uc-locked-notice p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* 徽章/表情 网格 */
.uc-badge-grid,
.uc-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.uc-badge-item,
.uc-emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  position: relative;
}

.uc-badge-item:hover,
.uc-emoji-item:hover {
  transform: scale(1.15);
  background: var(--cyan);
  color: #fff;
}

/* 进度条 */
.uc-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.uc-progress-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.uc-achievement-item {
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}

.uc-achievement-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.uc-achievement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.uc-achievement-done {
  color: var(--mint);
}

/* 列表型展柜 */
.uc-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.uc-list-item:last-child {
  border-bottom: none;
}

.uc-list-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  min-width: 20px;
}

/* 签到统计 */
.uc-checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0.5rem;
}

.uc-checkin-stat {
  background: var(--surface-soft);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
}

.uc-checkin-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.uc-checkin-lbl {
  font-size: 11px;
  color: var(--muted);
}

/* 评论墙 */
.uc-wall-item {
  background: var(--surface-soft);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
}

.uc-wall-author {
  font-weight: 600;
  color: var(--cyan);
  margin-right: 6px;
}

/* ==================== 编辑弹窗 ==================== */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.uc-modal-overlay[hidden] { display: none; }

.uc-modal {
  background: var(--surface);
  border-radius: 12px;
  width: 520px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.uc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.uc-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.uc-modal-close:hover {
  color: var(--text);
}

.uc-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.uc-modal-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}

.uc-modal-tab:hover {
  color: var(--text);
}

.uc-modal-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  font-weight: 600;
}

.uc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.uc-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.uc-tab-pane {
  display: block;
}

.uc-tab-pane[hidden] {
  display: none;
}

/* 表单元素 */
.uc-form-field {
  margin-bottom: 1.25rem;
}

.uc-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.uc-form-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.uc-input-wrap {
  position: relative;
}

.uc-input {
  width: 100%;
  height: 38px;
  padding: 0 2.5rem 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.uc-input:focus {
  border-color: var(--cyan);
}

.uc-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.uc-textarea:focus {
  border-color: var(--cyan);
}

.uc-char-count {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

.uc-sig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.uc-sig-footer .uc-char-count {
  position: static;
  transform: none;
}

.uc-sig-upgrade {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uc-sig-over {
  font-size: 12px;
  color: var(--coral);
}

/* 头像上传 */
.uc-avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uc-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.uc-avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 背景上传 */
.uc-bg-section {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.uc-locked-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.uc-locked-msg {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.uc-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 14px;
}

/* 展柜管理 */
.uc-showcase-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
}

.uc-showcase-manager-item:last-child {
  border-bottom: none;
}

.uc-manager-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.uc-manager-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.uc-manager-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uc-manager-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.uc-manager-status {
  font-size: 12px;
  color: var(--muted);
}

.uc-manager-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Toggle 开关 */
.uc-toggle {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.uc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.uc-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 11px;
  transition: background 0.2s;
}

.uc-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.uc-toggle input:checked + .uc-toggle-slider {
  background: var(--cyan);
}

.uc-toggle input:checked + .uc-toggle-slider::before {
  transform: translateX(18px);
}

/* 隐私设置列表 */
.uc-privacy-list {
  display: flex;
  flex-direction: column;
}

.uc-privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.uc-privacy-item:last-child {
  border-bottom: none;
}

.uc-privacy-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.uc-privacy-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.uc-privacy-desc {
  font-size: 12px;
  color: var(--muted);
}

/* 通用按钮 */
.uc-btn-primary {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.uc-btn-primary:hover {
  background: #1490a5;
  color: #fff;
}

.uc-btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.uc-btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.uc-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* Toast 通知 */
.uc-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1d2733;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.uc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.dark-mode .uc-toast {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* 响应式 */
@media (max-width: 900px) {
  .uc-profile-inner {
    grid-template-columns: 120px 1fr;
  }
  .uc-stats-col {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .uc-profile-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .uc-avatar-col {
    align-items: center;
    margin-top: -40px;
  }
  .uc-avatar-col,
  .uc-info-col,
  .uc-stats-col {
    grid-column: 1;
  }
  .uc-meta {
    justify-content: center;
  }
  .uc-actions {
    justify-content: center;
  }
  .uc-stats-col {
    grid-template-columns: repeat(4, 1fr);
  }
  .uc-showcases {
    padding: 1.25rem 1rem;
  }
  .uc-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .uc-banner {
    height: 140px;
  }
  .uc-stats-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .uc-showcase-grid {
    grid-template-columns: 1fr;
  }
  .uc-badge-grid,
  .uc-emoji-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Steam-like user profile showcase layout */
.uc-content {
  max-width: 1120px;
}

.uc-showcases {
  max-width: 980px;
  margin: 0 auto;
}

.uc-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uc-showcase-card {
  width: 100%;
  min-height: 176px;
  border-radius: 8px;
  padding: 0;
  cursor: default;
  overflow: hidden;
}

.uc-showcase-card:hover {
  box-shadow: 0 8px 22px rgba(25, 169, 189, 0.12);
}

.uc-card-header {
  min-height: 48px;
  padding: 0 16px;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(25, 169, 189, 0.12), rgba(255, 143, 163, 0.08));
  border-bottom: 1px solid var(--line);
}

.uc-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.uc-card-title {
  font-size: 15px;
  line-height: 1.3;
}

.uc-card-status {
  font-size: 12px;
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.uc-card-content {
  padding: 16px;
}

.uc-drag-hint {
  display: none;
}

.uc-showcase-achievement,
.uc-showcase-idol,
.uc-showcase-community {
  min-height: 220px;
}

.uc-showcase-creation,
.uc-showcase-advanced-community {
  min-height: 300px;
}

.uc-showcase-wall,
.uc-showcase-event {
  min-height: 250px;
}

.uc-badge-grid,
.uc-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.uc-badge-item {
  width: auto;
  height: 74px;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.uc-badge-item span {
  font-size: 22px;
}

.uc-badge-item small {
  max-width: 100%;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.uc-emoji-item {
  width: auto;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.uc-achievement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.uc-achievement-item {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uc-achievement-row strong,
.uc-creation-row strong,
.uc-collection-item strong,
.uc-community-card strong,
.uc-event-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-achievement-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.uc-ranking-list {
  display: grid;
  gap: 10px;
}

.uc-rank-row {
  display: grid;
  grid-template-columns: 64px 1fr 72px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uc-creation-feature {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(25, 169, 189, 0.35);
  background: linear-gradient(135deg, rgba(25, 169, 189, 0.16), rgba(255, 206, 91, 0.12));
}

.uc-creation-feature span,
.uc-creation-row span,
.uc-collection-item span,
.uc-event-row small {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.uc-creation-feature strong {
  font-size: 19px;
  color: var(--text);
}

.uc-creation-feature small,
.uc-creation-row small {
  color: var(--coral);
}

.uc-creation-list,
.uc-collection-list,
.uc-event-list,
.uc-wall-list,
.uc-follower-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.uc-creation-row,
.uc-collection-item,
.uc-follower-row,
.uc-event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uc-idol-grid,
.uc-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.uc-idol-card,
.uc-community-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uc-idol-card .uc-list-rank {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(25, 169, 189, 0.16);
}

.uc-idol-card small,
.uc-community-card span,
.uc-follower-row small {
  color: var(--muted);
}

.uc-follower-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.uc-follower-total strong {
  font-size: 34px;
  color: var(--coral);
}

.uc-follower-row {
  grid-template-columns: 34px 1fr auto;
}

.uc-follower-row .avatar-default {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(25, 169, 189, 0.14);
}

.uc-checkin-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.uc-checkin-week span {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.uc-checkin-week span.checked {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.uc-event-row {
  grid-template-columns: 28px 1fr;
  align-items: start;
}

.uc-event-row.done {
  border-color: rgba(99, 210, 178, 0.45);
}

.uc-wall-item {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.uc-advanced-empty,
.uc-locked-notice {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 170px;
  align-content: center;
  text-align: center;
}

.uc-advanced-empty p,
.uc-locked-notice p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

/* Steam-like profile editor */
.uc-edit-content {
  max-width: 1120px;
  padding-top: 18px;
}

.uc-edit-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.uc-edit-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--cyan);
  background: var(--surface-soft);
}

.uc-edit-hero h1 {
  margin: 4px 0;
  font-size: 24px;
}

.uc-edit-hero p,
.uc-edit-back {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.uc-edit-back:hover {
  color: var(--cyan);
}

.uc-edit-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.uc-edit-nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 84px;
  padding: 8px 0;
}

.uc-edit-nav button,
.uc-edit-nav a {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.uc-edit-nav button.active,
.uc-edit-nav button:hover,
.uc-edit-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.uc-edit-main {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.uc-edit-panel {
  display: none;
  padding: 24px;
}

.uc-edit-panel.active {
  display: block;
}

.uc-edit-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.uc-edit-form-grid {
  display: grid;
  gap: 18px;
}

.uc-edit-media-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
}

.uc-edit-avatar-tools {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.uc-default-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.uc-default-avatar-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 98px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.uc-default-avatar-option:hover,
.uc-default-avatar-option:focus-visible {
  border-color: rgba(25, 169, 189, 0.7);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.12);
  outline: none;
}

.uc-default-avatar-option.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.18);
}

.uc-default-avatar-option img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.uc-default-avatar-option span {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-edit-bg-preview {
  display: grid;
  min-height: 180px;
  margin-top: 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 169, 189, 0.14), rgba(255, 143, 163, 0.12));
  background-size: cover;
  background-position: center;
  color: var(--muted);
}

.uc-mini-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 420px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.uc-mini-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.uc-mini-preview span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.uc-theme-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.uc-theme-swatches button {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.uc-theme-swatches button.active {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.uc-edit-panel-head,
.uc-edit-showcase-controls,
.uc-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.uc-edit-panel-head p {
  margin: -10px 0 16px;
  color: var(--muted);
}

.uc-edit-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.uc-edit-showcase-preview {
  margin-top: 12px;
}

.uc-edit-showcase-preview .uc-showcase-card {
  min-height: 0;
}

.uc-edit-footer {
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .uc-edit-shell {
    grid-template-columns: 1fr;
  }

  .uc-edit-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .uc-showcases {
    padding-left: 12px;
    padding-right: 12px;
  }

  .uc-card-header,
  .uc-card-heading,
  .uc-edit-panel-head,
  .uc-edit-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .uc-achievement-list,
  .uc-idol-grid,
  .uc-community-grid,
  .uc-edit-media-row,
  .uc-mini-preview {
    grid-template-columns: 1fr;
  }

  .uc-rank-row,
  .uc-creation-row,
  .uc-collection-item,
  .uc-follower-row {
    grid-template-columns: 1fr;
  }

  .uc-edit-nav {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   点数商店 (Points Shop) 模块
   ===================================================== */

.shop-content {
  padding: 0;
  max-width: 1200px;
}

/* 商店顶部 */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.shop-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.shop-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.shop-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shop-hp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
}

.shop-hp-label {
  font-size: 13px;
  color: var(--muted);
}

.shop-hp-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
}

/* 筛选栏 */
.shop-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--topbar-height);
  z-index: 10;
}

.shop-cat-tabs {
  display: flex;
  gap: 0.375rem;
}

.shop-cat-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.shop-cat-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.shop-cat-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.shop-search-input {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.shop-search-input:focus {
  border-color: var(--cyan);
}

/* 商品网格 */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 2rem;
}

/* 商品卡片 */
.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 16px rgba(25,169,189,0.1);
}

.shop-card-icon {
  font-size: 40px;
  line-height: 1;
}

.shop-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.shop-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.shop-card-cost {
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
}

.shop-card-cost-free {
  font-size: 14px;
  color: var(--mint);
  font-weight: 600;
}

.shop-btn-buy {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn-buy:hover {
  background: #1490a5;
}

.shop-btn-buy:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.shop-btn-purchased {
  background: transparent;
  border: 1px solid var(--mint);
  color: var(--mint);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: default;
}

/* 消费记录面板 */
.shop-history-panel {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
}

.shop-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shop-history-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.shop-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.shop-history-item:last-child {
  border-bottom: none;
}

.shop-history-cost {
  font-weight: 600;
  color: var(--coral);
}

/* 响应式 */
@media (max-width: 768px) {
  .shop-header {
    padding: 1.25rem 1rem;
  }
  .shop-filters {
    padding: 0.75rem 1rem;
  }
  .shop-grid {
    padding: 1.25rem 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .shop-header-right {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .shop-cat-tabs {
    flex-wrap: wrap;
  }
}

/* ================================================================
   Merch 周边情报页
   ================================================================ */
body[data-page="merch"] {
  background:
    radial-gradient(circle at 12% 12%, rgba(25, 169, 189, 0.14), transparent 26%),
    radial-gradient(circle at 86% 0%, rgba(79, 131, 216, 0.12), transparent 30%),
    var(--bg);
}

body[data-page="merch"] .merch-shell {
  padding-top: calc(var(--topbar-height) + 28px);
}

body[data-page="merch"] .merch-content {
  display: grid;
  gap: 18px;
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto 48px;
}

.merch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 34px;
  border: 1px solid rgba(25, 169, 189, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 252, 0.92)),
    linear-gradient(120deg, rgba(25, 169, 189, 0.16), rgba(79, 131, 216, 0.12));
  box-shadow: 0 18px 42px rgba(25, 64, 89, 0.11);
  overflow: hidden;
  position: relative;
}

.merch-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 18px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(25, 169, 189, 0.16);
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(25, 169, 189, 0.12) 0 8px, transparent 8px 18px);
  opacity: 0.45;
  pointer-events: none;
}

.merch-hero-copy,
.merch-hero-actions {
  position: relative;
  z-index: 1;
}

.merch-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.merch-hero h1,
.merch-section-head h2,
.merch-rules-card h2,
.merch-empty-state h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.merch-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.merch-hero p:last-child,
.merch-section-head p,
.merch-rules-card p,
.merch-empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}

.merch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 320px;
}

.merch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.merch-btn:hover {
  transform: translateY(-1px);
}

.merch-btn-primary {
  background: linear-gradient(135deg, var(--cyan), #44c8d6);
  color: #fff;
  box-shadow: 0 10px 20px rgba(25, 169, 189, 0.18);
}

.merch-btn-ghost {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(25, 169, 189, 0.24);
  color: var(--cyan);
}

.merch-btn-outline {
  background: transparent;
  border-color: rgba(25, 169, 189, 0.34);
  color: #127f91;
}

.merch-notice,
.merch-user-risk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border: 1px solid rgba(241, 184, 75, 0.38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 250, 232, 0.96), rgba(236, 250, 252, 0.92));
  color: #6d5a1a;
  font-size: 14px;
}

.merch-notice strong {
  flex: 0 0 auto;
  color: #9b7218;
}

.merch-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  overflow-x: auto;
  box-shadow: 0 10px 26px rgba(27, 39, 51, 0.06);
}

.merch-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.merch-tab:hover {
  color: var(--cyan);
  background: rgba(25, 169, 189, 0.08);
}

.merch-tab.active {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 8px 18px rgba(25, 169, 189, 0.18);
}

.merch-panel {
  display: grid;
  gap: 16px;
}

.merch-panel[hidden] {
  display: none;
}

.merch-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px;
}

.merch-section-head h2 {
  font-size: 22px;
}

.merch-source-mark {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 169, 189, 0.1);
  color: #117f90;
  font-size: 12px;
  font-weight: 800;
}

.merch-source-mark.user {
  background: rgba(124, 108, 210, 0.12);
  color: #6254b8;
}

.merch-filter-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(27, 39, 51, 0.07);
}

.merch-filter-panel-user {
  border-color: rgba(124, 108, 210, 0.22);
}

.merch-filter-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.merch-filter-label {
  padding-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.merch-chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.merch-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.merch-chip:hover {
  border-color: rgba(25, 169, 189, 0.5);
  color: var(--cyan);
}

.merch-chip.active {
  border-color: rgba(25, 169, 189, 0.64);
  background: rgba(25, 169, 189, 0.1);
  color: #0f8798;
}

.merch-filter-panel-user .merch-chip.active {
  border-color: rgba(124, 108, 210, 0.58);
  background: rgba(124, 108, 210, 0.1);
  color: #6254b8;
}

.merch-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.merch-search {
  flex: 1 1 320px;
}

.merch-search input,
.merch-sort {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.merch-search input {
  padding: 0 13px;
}

.merch-sort {
  flex: 0 0 178px;
  padding: 0 10px;
}

.merch-search input:focus,
.merch-sort:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.12);
}

.official-merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.user-merch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.merch-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(27, 39, 51, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.merch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 169, 189, 0.42);
  box-shadow: 0 18px 36px rgba(27, 39, 51, 0.1);
}

.merch-card-user:hover {
  border-color: rgba(124, 108, 210, 0.42);
}

.merch-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(25, 169, 189, 0.1), rgba(79, 131, 216, 0.08));
  overflow: hidden;
}

.merch-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-card-official-mark,
.merch-card-user-mark {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.merch-card-official-mark {
  background: linear-gradient(135deg, #16a5ba, #42b883);
}

.merch-card-user-mark {
  background: linear-gradient(135deg, #7c6cd2, #8390b8);
}

.merch-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.merch-card-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.merch-card-meta,
.merch-card-deadline,
.merch-card-seller,
.merch-card-region {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.merch-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.merch-price {
  color: var(--coral);
  font-size: 17px;
  font-weight: 800;
}

.merch-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(25, 169, 189, 0.1);
  color: #0f8798;
  font-size: 12px;
  font-weight: 800;
}

.merch-status.ended,
.merch-status.sold-out,
.merch-status.user-sold,
.merch-status.closed {
  background: rgba(105, 119, 137, 0.12);
  color: var(--muted);
}

.merch-status.ending-soon {
  background: rgba(239, 116, 104, 0.12);
  color: var(--coral);
}

.merch-status.wanted,
.merch-status.exchange {
  background: rgba(241, 184, 75, 0.16);
  color: #9b7218;
}

.merch-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.merch-tag-row span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(25, 169, 189, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.merch-card-user .merch-tag-row span {
  background: rgba(124, 108, 210, 0.1);
}

.merch-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.merch-card-actions .merch-btn {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
}

.merch-external-user {
  background: #6f63c8;
  color: #fff;
  box-shadow: 0 10px 20px rgba(111, 99, 200, 0.16);
}

.merch-user-risk {
  border-color: rgba(124, 108, 210, 0.38);
  background: linear-gradient(135deg, rgba(246, 244, 255, 0.96), rgba(239, 249, 252, 0.92));
  color: #4d4780;
}

.merch-empty-state,
.merch-rules-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(27, 39, 51, 0.07);
}

.merch-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.merch-empty-state > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(25, 169, 189, 0.1);
  color: var(--cyan);
  font-size: 28px;
}

.merch-rules-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
}

.merch-rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merch-rules-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.merch-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

body.dark-mode[data-page="merch"] .merch-hero,
body.dark-mode[data-page="merch"] .merch-tabs {
  background: rgba(25, 34, 49, 0.9);
}

body.dark-mode[data-page="merch"] .merch-hero {
  border-color: rgba(68, 200, 214, 0.22);
}

body.dark-mode[data-page="merch"] .merch-btn-ghost,
body.dark-mode[data-page="merch"] .merch-btn-outline,
body.dark-mode[data-page="merch"] .merch-chip {
  background: rgba(25, 34, 49, 0.82);
}

body.dark-mode[data-page="merch"] .merch-notice {
  background: rgba(72, 61, 31, 0.62);
  color: #f4d78d;
}

body.dark-mode[data-page="merch"] .merch-user-risk {
  background: rgba(48, 43, 82, 0.72);
  color: #d8d2ff;
}

body.dark-mode[data-page="merch"] .merch-source-mark,
body.dark-mode[data-page="merch"] .merch-btn-outline,
body.dark-mode[data-page="merch"] .merch-chip.active {
  color: #7de2ee;
}

@media (max-width: 1120px) {
  .official-merch-grid,
  .user-merch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .merch-hero {
    grid-template-columns: 1fr;
  }

  .merch-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  body[data-page="merch"] .merch-content {
    width: min(100% - 24px, 760px);
  }

  .merch-hero {
    padding: 24px;
  }

  .merch-section-head,
  .merch-toolbar,
  .merch-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .merch-filter-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .merch-filter-label {
    padding-top: 0;
  }

  .official-merch-grid,
  .user-merch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merch-rules-card {
    grid-template-columns: 1fr;
  }

  .merch-sort {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  body[data-page="merch"] .merch-shell {
    padding-top: calc(var(--topbar-height) + 14px);
  }

  .merch-hero {
    padding: 20px;
    border-radius: 14px;
  }

  .merch-hero-actions,
  .merch-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .official-merch-grid,
  .user-merch-list {
    grid-template-columns: 1fr;
  }

  .merch-filter-panel,
  .merch-empty-state,
  .merch-rules-card {
    padding: 14px;
  }
}

/* ================================================================
   FAQ 索引页加宽 + 详情页基础样式
   ================================================================ */

body[data-page="faq"] .solo-wrap {
  max-width: 1160px;
}

body[data-page="faq-detail"] .site-footer {
  margin-left: 0;
}

/* 详情页 details 样式同步 */
body[data-page="faq-detail"] details.faq-item[open] {
  border-left: 2px solid var(--cyan);
}

body[data-page="faq-detail"] details.faq-item summary::before {
  content: '›';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
  display: inline-block;
  width: 16px;
  text-align: center;
}

body[data-page="faq-detail"] details.faq-item[open] summary::before {
  content: '›';
  transform: rotate(90deg);
}

body[data-page="faq-detail"] .faq-answer {
  line-height: 1.85;
}

/* --- 问题编号平铺列表 --- */
.faq-qlist {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: faqQ;
}

.faq-qlist-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: faqQ;
}

.faq-qlist-item:last-child { border-bottom: none; }

.faq-qlist-item::before {
  content: counter(faqQ, decimal-leading-zero);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.faq-qlist-link {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.55;
  transition: color 120ms ease;
}

.faq-qlist-link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-qlist-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.faq-qlist-tag[data-cat="account"] {
  background: rgba(25, 169, 189, 0.12);
  color: var(--cyan);
}

.faq-qlist-tag[data-cat="service"] {
  background: rgba(79, 131, 216, 0.12);
  color: var(--blue);
}

.faq-qlist-tag[data-cat="create"] {
  background: rgba(66, 184, 131, 0.12);
  color: var(--mint);
}

.faq-qlist-tag[data-cat="other"] {
  background: rgba(241, 184, 75, 0.12);
  color: var(--gold);
}

/* --- 问题分类导航区块 --- */
.faq-topics-section {
  padding: 0;
  overflow: hidden;
}

.faq-topics-header {
  background: var(--surface-soft);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: var(--text);
}

.faq-topics-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
}

.faq-topics-row:last-child { border-bottom: none; }

.faq-topics-cat-label {
  min-width: 72px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.faq-topics-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.faq-topics-links a {
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  padding: 0 8px;
  border-right: 1px solid var(--line);
  line-height: 1.4;
}

.faq-topics-links a:first-child { padding-left: 0; }
.faq-topics-links a:last-child { border-right: none; }

.faq-topics-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 详情页面包屑 + 返回按钮 --- */
.faq-detail-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.faq-detail-breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

.faq-detail-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-detail-breadcrumb span {
  color: var(--text);
  font-weight: 600;
}

.faq-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  padding: 8px 0;
  transition: opacity 120ms ease;
}

.faq-detail-back:hover { opacity: 0.75; }

/* --- 响应式补充 --- */
@media (max-width: 700px) {
  .faq-topics-row {
    flex-direction: column;
    gap: 6px;
  }

  .faq-topics-cat-label {
    min-width: unset;
  }
}

/* =====================================================
   切片页 多级筛选卡片（Phase 2 UI 改造）
   ===================================================== */

/* --- 筛选卡片容器 --- */
.clips-filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  margin-bottom: 20px;
  overflow: hidden;
}

/* --- Layer 1：组别 tabs --- */
.clips-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.clips-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.clips-group-btn:hover {
  background: var(--surface-soft);
  border-color: var(--cyan);
}

.clips-group-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0,180,200,.18);
}

/* --- Layer 2：世代展开区 --- */
.clips-gen-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.clips-gen-wrap.open {
  max-height: 80px;
  border-bottom: 1px solid var(--border);
}

.clips-gen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
}

.clips-gen-btn {
  padding: 3px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.clips-gen-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.clips-gen-btn.active {
  background: rgba(0,180,200,.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- Layer 3：成员横向滚动 --- */
.clips-member-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.clips-member-wrap.open {
  max-height: 56px;
  border-bottom: 1px solid var(--border);
}

.clips-member-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.clips-member-row::-webkit-scrollbar { display: none; }

.clips-member-chip {
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.clips-member-chip:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.clips-member-chip.active {
  background: rgba(0,180,200,.14);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- Row 4：底部工具行 --- */
.clips-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
}

.clips-bottom-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}

.clips-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.clips-row-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 2px;
}

.clips-campaign-chip {
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.clips-campaign-chip:hover {
  background: var(--surface-soft);
  border-color: var(--cyan);
}

.clips-campaign-chip.active {
  background: var(--surface-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- 侧边热门切片列表 --- */
.clips-side-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clips-hot-loading,
.clips-hot-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}

.clips-hot-item {
  display: grid;
  grid-template-columns: 18px 28px 1fr auto;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 4px;
  transition: background 120ms ease;
}

.clips-hot-item:hover { background: var(--surface-soft); }

.clips-hot-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  min-width: 14px;
}

.clips-hot-item:nth-child(1) .clips-hot-rank { color: #f5c518; }
.clips-hot-item:nth-child(2) .clips-hot-rank { color: #b0b0b0; }
.clips-hot-item:nth-child(3) .clips-hot-rank { color: #cd7f32; }

.clips-hot-thumb {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.clips-hot-thumb--empty {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--border);
}

.clips-hot-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clips-hot-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 2px;
}

/* --- 工具栏结果计数 --- */
.clips-result-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.clips-result-label {
  font-size: 13px;
  color: var(--muted);
}

/* --- 筛选卡片响应式 --- */
@media (max-width: 900px) {
  .clips-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .clips-bottom-right {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .clips-group-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

  .clips-gen-wrap.open { max-height: 120px; }
}

/* =====================================================
   情报搬运（News）页面
   ===================================================== */

/* ── 速报 Ticker ── */
.news-ticker {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  z-index: 39;
  height: 36px;
  transition: left 180ms ease;
  display: flex;
  align-items: center;
  background: #1a1a2e;
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  height: 100%;
  display: grid;
  place-items: center;
  background: #e63946;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-ticker-overflow {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: news-ticker-scroll 60s linear infinite;
  padding-left: 20px;
}

.news-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes news-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.news-ticker-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  transition: color 0.15s;
}

.news-ticker-item:hover {
  color: #fff;
}

.news-ticker-cat {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--cat-color, #19a9bd);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.news-ticker-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 16px;
}

/* ── 三栏页面壳 ── */
.news-page-shell {
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 36px + 28px) 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed .news-page-shell {
  margin-left: var(--sidebar-collapsed);
}

body.sidebar-collapsed .news-ticker {
  left: var(--sidebar-collapsed);
}

/* ── 左侧筛选栏 ── */
.news-filter-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 36px + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-filter-toggle {
  display: none;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  justify-content: space-between;
  align-items: center;
}

.news-filter-panel-body {
  display: flex;
  flex-direction: column;
}

.news-filter-panel-body.collapsed {
  display: none;
}

.news-filter-section {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.news-filter-section:last-child {
  border-bottom: none;
}

.news-filter-title {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-filter-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.news-filter-btn:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.news-filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  font-weight: 700;
}

/* ── 主内容区 ── */
.news-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── 工具栏 ── */
.news-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.news-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.12);
}

.news-search-input {
  flex: 1;
  padding: 9px 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.news-search-btn {
  padding: 0 14px;
  height: 38px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.14s;
}

.news-search-btn:hover {
  color: var(--cyan);
}

.news-sort-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  flex-shrink: 0;
}

.news-sort-btn {
  padding: 5px 14px;
  background: none;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}

.news-sort-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.news-sort-btn.active {
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
}

/* ── Feature 精选大卡片 ── */
.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.news-feature:hover {
  box-shadow: 0 18px 48px rgba(25, 169, 189, 0.14);
}

.news-feature-img-link {
  display: block;
  overflow: hidden;
}

.news-feature-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-feature:hover .news-feature-img {
  transform: scale(1.03);
}

.news-feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  justify-content: center;
}

.news-feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-feature-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature-title:hover {
  color: var(--cyan);
}

.news-feature-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── 分类色标（共用于卡片和 feature） ── */
.news-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cat-color, #19a9bd);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-card-source {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.news-card-hot {
  font-size: 11px;
  color: #ef7468;
  font-weight: 700;
}

.news-card-member,
.news-card-time,
.news-card-views {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.news-card-forum-link {
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.news-card-forum-link:hover {
  text-decoration: underline;
}

.news-card-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.14s;
}

.news-card-ext-link:hover {
  color: var(--cyan);
}

/* ── 卡片网格 ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ── 标准情报卡片 ── */
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(25, 169, 189, 0.12);
  transform: translateY(-2px);
}

.news-card-img-link {
  display: block;
  overflow: hidden;
}

.news-card-img-wrap {
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title:hover {
  color: var(--cyan);
}

.news-card-summary {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ── 加载中 / 空态 ── */
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}

.news-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--muted);
}

.news-empty-icon {
  font-size: 40px;
}

/* ── 加载更多 ── */
.news-load-more-wrap {
  text-align: center;
  padding: 4px 0;
}

.news-load-more-btn {
  padding: 10px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.news-load-more-btn:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

/* ── 右侧 Rail ── */
.news-rail {
  position: sticky;
  top: calc(var(--topbar-height) + 36px + 16px);
  max-height: calc(100vh - var(--topbar-height) - 36px - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.news-rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-rail-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-rail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-rail-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.news-rail-item-cat {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--cat-color, #19a9bd);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: fit-content;
}

.news-rail-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.14s;
}

.news-rail-item a:hover .news-rail-item-title {
  color: var(--cyan);
}

.news-rail-item-time {
  font-size: 11px;
  color: var(--muted);
}

/* ── 热门标签云 ── */
.news-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.news-tag-pill:hover {
  border-color: var(--cyan);
  background: rgba(25, 169, 189, 0.08);
  color: var(--cyan);
}

.news-tag-count {
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 0 5px;
  border-radius: 999px;
}

/* ── 响应式：≤1120px 两栏（去掉右 Rail） ── */
@media (max-width: 1120px) {
  .news-page-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .news-rail {
    display: none;
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-img {
    aspect-ratio: 16 / 7;
  }

  .news-feature-body {
    padding: 18px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 响应式：≤820px 单栏，筛选栏折叠 ── */
@media (max-width: 820px) {
  .news-ticker,
  body.sidebar-collapsed .news-ticker {
    left: 0;
  }

  .news-page-shell,
  body.sidebar-collapsed .news-page-shell {
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 14px;
    padding-right: 14px;
  }

  .news-filter-panel {
    position: static;
    order: -1;
  }

  .news-filter-toggle {
    display: flex;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-title {
    font-size: 17px;
  }

  .news-ticker-track {
    animation-duration: 40s;
  }
}

/* ── 响应式：≤520px 单列卡片 ── */
@media (max-width: 520px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-sort-tabs {
    justify-content: center;
  }
}

/* dark-mode 补丁 */
body.dark-mode .news-ticker {
  background: #0d1117;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* =====================================================
   Following timeline
   ===================================================== */

body[data-page="following"] {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(25, 169, 189, 0.1), rgba(245, 247, 250, 0) 320px),
    var(--bg);
}

body[data-page="following"] .following-layout {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 22px) 24px 86px;
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed[data-page="following"] .following-layout {
  margin-left: var(--sidebar-collapsed);
}

body[data-page="following"] .following-main {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

body[data-page="following"] .following-header,
body[data-page="following"] .following-tabs,
body[data-page="following"] .following-composer,
body[data-page="following"] .feed-card,
body[data-page="following"] .empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
  backdrop-filter: blur(14px);
}

body[data-page="following"] .following-header {
  position: sticky;
  top: calc(var(--topbar-height) + 10px);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-color: rgba(25, 169, 189, 0.22);
}

body[data-page="following"] .following-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

body[data-page="following"] .following-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

body[data-page="following"] .following-header-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(20, 184, 166, 0.1);
  color: #087c83;
  font-size: 12px;
  font-weight: 900;
}

body[data-page="following"] .following-tabs {
  position: sticky;
  top: calc(var(--topbar-height) + 91px);
  z-index: 11;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 10px;
  scrollbar-width: none;
}

body[data-page="following"] .following-tabs::-webkit-scrollbar {
  display: none;
}

body[data-page="following"] .following-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body[data-page="following"] .following-tab:hover,
body[data-page="following"] .following-tab.active {
  border-color: rgba(25, 169, 189, 0.32);
  background: rgba(25, 169, 189, 0.1);
  color: #087c83;
}

body[data-page="following"] .following-tab:hover {
  transform: translateY(-1px);
}

body[data-page="following"] .following-composer {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

body[data-page="following"] .following-composer-avatar,
body[data-page="following"] .feed-avatar,
body[data-page="following"] .feed-avatar-fallback {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

body[data-page="following"] .following-composer-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #14b8a6, #19a9bd);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

body[data-page="following"] .following-composer-input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

body[data-page="following"] .following-composer-input:hover {
  border-color: rgba(25, 169, 189, 0.34);
  color: var(--text);
}

body[data-page="following"] .following-composer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #14b8a6, #19a9bd);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.22);
}

body[data-page="following"] .following-feed-section,
body[data-page="following"] .following-feed,
body[data-page="following"] .loading-state {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body[data-page="following"] .feed-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body[data-page="following"] .feed-card[data-href] {
  cursor: pointer;
}

body[data-page="following"] .feed-card:hover {
  border-color: rgba(25, 169, 189, 0.36);
  box-shadow: 0 14px 30px rgba(27, 39, 51, 0.09);
  transform: translateY(-1px);
}

body[data-page="following"] .feed-avatar,
body[data-page="following"] .feed-avatar-fallback {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #14b8a6, #4f83d8);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.12);
}

body[data-page="following"] .feed-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="following"] .feed-body {
  min-width: 0;
}

body[data-page="following"] .feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

body[data-page="following"] .feed-author {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

body[data-page="following"] .feed-author:hover,
body[data-page="following"] .feed-tag:hover {
  color: var(--cyan);
}

body[data-page="following"] .feed-userid,
body[data-page="following"] .feed-time {
  color: var(--muted);
}

body[data-page="following"] .feed-more {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body[data-page="following"] .feed-more:hover {
  background: rgba(25, 169, 189, 0.1);
  color: var(--cyan);
}

body[data-page="following"] .feed-type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(79, 131, 216, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

body[data-page="following"] .feed-type-badge[data-type="work"],
body[data-page="following"] .feed-type-badge[data-type="fanwork"] {
  background: rgba(217, 93, 146, 0.12);
  color: var(--pink);
}

body[data-page="following"] .feed-type-badge[data-type="clip"] {
  background: rgba(20, 184, 166, 0.12);
  color: #087c83;
}

body[data-page="following"] .feed-title {
  margin: 9px 0 5px;
  font-size: 19px;
  line-height: 1.34;
  letter-spacing: 0;
}

body[data-page="following"] .feed-summary {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

body[data-page="following"] .feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

body[data-page="following"] .feed-tag {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

body[data-page="following"] .feed-tag.member {
  background: rgba(25, 169, 189, 0.1);
  color: #087c83;
}

body[data-page="following"] .feed-media {
  overflow: hidden;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

body[data-page="following"] .feed-media img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

body[data-page="following"] .feed-media-caption {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body[data-page="following"] .feed-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
}

body[data-page="following"] .feed-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="following"] .feed-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="following"] .empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 22px;
  text-align: center;
}

body[data-page="following"] .empty-state[hidden],
body[data-page="following"] .loading-state[hidden] {
  display: none;
}

body[data-page="following"] .empty-state strong {
  font-size: 20px;
}

body[data-page="following"] .empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

body[data-page="following"] .empty-state a {
  margin-top: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(25, 169, 189, 0.1);
  color: #087c83;
  font-weight: 900;
}

body[data-page="following"] .feed-card-skeleton {
  min-height: 174px;
  overflow: hidden;
}

body[data-page="following"] .feed-card-skeleton::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25px 25px, rgba(105, 119, 137, 0.16) 0 25px, transparent 26px),
    linear-gradient(90deg, rgba(105, 119, 137, 0.14), rgba(105, 119, 137, 0.05), rgba(105, 119, 137, 0.14)) 68px 0 / 62% 16px no-repeat,
    linear-gradient(90deg, rgba(105, 119, 137, 0.12), rgba(105, 119, 137, 0.05), rgba(105, 119, 137, 0.12)) 68px 32px / 84% 16px no-repeat,
    linear-gradient(90deg, rgba(105, 119, 137, 0.12), rgba(105, 119, 137, 0.05), rgba(105, 119, 137, 0.12)) 68px 60px / 72% 16px no-repeat,
    linear-gradient(90deg, rgba(105, 119, 137, 0.1), rgba(105, 119, 137, 0.04), rgba(105, 119, 137, 0.1)) 68px 104px / 88% 44px no-repeat;
  animation: following-skeleton 1.35s ease-in-out infinite alternate;
}

@keyframes following-skeleton {
  from { opacity: 0.52; }
  to { opacity: 1; }
}

body.dark-mode[data-page="following"] .following-header,
body.dark-mode[data-page="following"] .following-tabs,
body.dark-mode[data-page="following"] .following-composer,
body.dark-mode[data-page="following"] .feed-card,
body.dark-mode[data-page="following"] .empty-state {
  background: rgba(25, 34, 49, 0.92);
  box-shadow: none;
}

body.dark-mode[data-page="following"] .following-composer-input,
body.dark-mode[data-page="following"] .feed-tag,
body.dark-mode[data-page="following"] .feed-media {
  background: var(--surface-soft);
}

@media (max-width: 1120px) {
  body[data-page="following"] .following-main {
    width: min(100%, 840px);
  }
}

@media (max-width: 820px) {
  body[data-page="following"] .following-layout,
  body.sidebar-collapsed[data-page="following"] .following-layout {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 14px) 12px 78px;
  }

  body[data-page="following"] .following-main {
    width: 100%;
  }

  body[data-page="following"] .following-header {
    top: calc(var(--topbar-height) + 8px);
    padding: 15px;
  }

  body[data-page="following"] .following-tabs {
    top: calc(var(--topbar-height) + 80px);
    border-radius: 999px;
  }

  body[data-page="following"] .following-composer {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body[data-page="following"] .following-composer-button {
    grid-column: 2;
    justify-self: end;
  }

  body[data-page="following"] .feed-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  body[data-page="following"] .feed-avatar,
  body[data-page="following"] .feed-avatar-fallback {
    width: 42px;
    height: 42px;
  }

  body[data-page="following"] .feed-actions {
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    gap: 4px;
  }

  body[data-page="following"] .feed-action-label {
    display: none;
  }
}

@media (max-width: 520px) {
  body[data-page="following"] .following-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="following"] .following-header h1 {
    font-size: 24px;
  }

  body[data-page="following"] .following-tabs {
    top: calc(var(--topbar-height) + 104px);
  }

  body[data-page="following"] .feed-title {
    font-size: 17px;
  }
}

/* =====================================================
   Fanworks 创作大厅
   ===================================================== */

body[data-page="fanworks"] {
  background:
    linear-gradient(180deg, rgba(25, 169, 189, 0.08), rgba(245, 247, 250, 0) 280px),
    var(--bg);
}

body[data-page="fanworks"] .fanworks-shell {
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 28px) 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
  max-width: calc(1240px + var(--sidebar-width));
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed[data-page="fanworks"] .fanworks-shell {
  margin-left: var(--sidebar-collapsed);
}

body[data-page="fanworks"] .fanworks-main,
body[data-page="fanworks"] .fanworks-rail {
  min-width: 0;
}

body[data-page="fanworks"] .fanworks-main {
  display: grid;
  gap: 14px;
}

body[data-page="fanworks"] .fanworks-rail {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-page="fanworks"] .fw-box,
body[data-page="fanworks"] .fw-stat-box,
body[data-page="fanworks"] .fw-work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(27, 39, 51, 0.06);
}

body[data-page="fanworks"] .fw-box {
  overflow: hidden;
}

body[data-page="fanworks"] .fw-hero-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-color: rgba(25, 169, 189, 0.28);
  background:
    linear-gradient(135deg, rgba(25, 169, 189, 0.12), rgba(255, 255, 255, 0) 48%),
    var(--surface);
}

body[data-page="fanworks"] .fw-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(20, 184, 166, 0.12);
  color: #087c83;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="fanworks"] .fw-hero-copy h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

body[data-page="fanworks"] .fw-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
}

body[data-page="fanworks"] .fw-hero-actions,
body[data-page="fanworks"] .fw-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="fanworks"] .fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

body[data-page="fanworks"] .fw-btn:hover {
  transform: translateY(-1px);
}

body[data-page="fanworks"] .fw-btn-primary {
  background: linear-gradient(135deg, #14b8a6, #19a9bd);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.22);
}

body[data-page="fanworks"] .fw-btn-ghost {
  border-color: rgba(25, 169, 189, 0.34);
  background: rgba(25, 169, 189, 0.08);
  color: #087c83;
}

body[data-page="fanworks"] .fw-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="fanworks"] .fw-stat-box {
  display: grid;
  gap: 3px;
  padding: 14px;
}

body[data-page="fanworks"] .fw-stat-box span,
body[data-page="fanworks"] .fw-stat-box small {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="fanworks"] .fw-stat-box strong {
  color: #087c83;
  font-size: 25px;
  line-height: 1.15;
}

body[data-page="fanworks"] .fw-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 247, 248, 0.66);
}

body[data-page="fanworks"] .fw-box-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

body[data-page="fanworks"] .fw-box-head a,
body[data-page="fanworks"] .fw-box-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="fanworks"] .fw-box-head a:hover {
  color: var(--cyan);
}

body[data-page="fanworks"] .fw-category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 16px 16px;
}

body[data-page="fanworks"] .fw-chip,
body[data-page="fanworks"] .fw-sort-btn,
body[data-page="fanworks"] .fw-tag-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

body[data-page="fanworks"] .fw-chip {
  padding: 8px 13px;
}

body[data-page="fanworks"] .fw-chip:hover,
body[data-page="fanworks"] .fw-sort-btn:hover,
body[data-page="fanworks"] .fw-tag-btn:hover {
  border-color: rgba(25, 169, 189, 0.45);
  color: #087c83;
  transform: translateY(-1px);
}

body[data-page="fanworks"] .fw-chip.active,
body[data-page="fanworks"] .fw-sort-btn.active {
  border-color: transparent;
  background: #14b8a6;
  color: #fff;
}

body[data-page="fanworks"] .fw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

body[data-page="fanworks"] .fw-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

body[data-page="fanworks"] .fw-search:focus-within {
  border-color: rgba(25, 169, 189, 0.55);
  box-shadow: 0 0 0 3px rgba(25, 169, 189, 0.12);
}

body[data-page="fanworks"] .fw-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
}

body[data-page="fanworks"] .fw-search button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(25, 169, 189, 0.08);
  color: #087c83;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

body[data-page="fanworks"] .fw-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body[data-page="fanworks"] .fw-sort-btn {
  padding: 7px 11px;
}

body[data-page="fanworks"] .fw-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

body[data-page="fanworks"] .fw-work-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body[data-page="fanworks"] .fw-work-card:hover {
  border-color: rgba(25, 169, 189, 0.38);
  box-shadow: 0 14px 30px rgba(27, 39, 51, 0.12);
  transform: translateY(-2px);
}

body[data-page="fanworks"] .fw-work-thumb {
  position: relative;
  flex: 0 0 clamp(190px, 30%, 260px);
  width: clamp(190px, 30%, 260px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fw-accent, #19a9bd), rgba(255, 255, 255, 0.86));
}

body[data-page="fanworks"] .fw-work-thumb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
}

body[data-page="fanworks"] .fw-work-thumb strong {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  max-width: calc(100% - 28px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

body[data-page="fanworks"] .fw-type-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: #087c83;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="fanworks"] .fw-work-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 15px 16px;
}

body[data-page="fanworks"] .fw-work-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

body[data-page="fanworks"] .fw-work-title a:hover {
  color: var(--cyan);
}

body[data-page="fanworks"] .fw-work-meta,
body[data-page="fanworks"] .fw-work-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="fanworks"] .fw-work-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="fanworks"] .fw-member-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(79, 131, 216, 0.1);
  color: #3867ad;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="fanworks"] .fw-work-stats {
  justify-content: flex-start;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

body[data-page="fanworks"] .fw-empty {
  padding: 34px 18px 40px;
  text-align: center;
}

body[data-page="fanworks"] .fw-empty[hidden] {
  display: none;
}

body[data-page="fanworks"] .fw-empty-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(25, 169, 189, 0.1);
  color: #087c83;
  font-weight: 900;
}

body[data-page="fanworks"] .fw-empty strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

body[data-page="fanworks"] .fw-empty p {
  margin: 6px auto 16px;
  max-width: 360px;
  color: var(--muted);
}

body[data-page="fanworks"] .fw-empty-actions {
  justify-content: center;
}

body[data-page="fanworks"] .fw-skeleton {
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(238, 247, 248, 0.8), rgba(255, 255, 255, 0.94), rgba(238, 247, 248, 0.8));
  background-size: 220% 100%;
  animation: fwSkeleton 1.2s ease-in-out infinite;
}

@keyframes fwSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

body[data-page="fanworks"] .fw-rail-box {
  overflow: hidden;
}

body[data-page="fanworks"] .fw-creator-list,
body[data-page="fanworks"] .fw-event-list,
body[data-page="fanworks"] .fw-rules-box ul {
  margin: 0;
  padding: 12px 14px;
}

body[data-page="fanworks"] .fw-creator-list {
  list-style: none;
}

body[data-page="fanworks"] .fw-creator-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

body[data-page="fanworks"] .fw-creator-item:last-child,
body[data-page="fanworks"] .fw-event-card:last-child,
body[data-page="fanworks"] .fw-rules-box li:last-child {
  border-bottom: 0;
}

body[data-page="fanworks"] .fw-rank-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(25, 169, 189, 0.1);
  color: #087c83;
  font-size: 12px;
  font-weight: 900;
}

body[data-page="fanworks"] .fw-creator-meta {
  display: grid;
  min-width: 0;
}

body[data-page="fanworks"] .fw-creator-meta strong,
body[data-page="fanworks"] .fw-event-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

body[data-page="fanworks"] .fw-creator-meta span,
body[data-page="fanworks"] .fw-creator-score,
body[data-page="fanworks"] .fw-event-card p,
body[data-page="fanworks"] .fw-event-card small,
body[data-page="fanworks"] .fw-rules-box li {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="fanworks"] .fw-creator-score {
  font-weight: 800;
}

body[data-page="fanworks"] .fw-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

body[data-page="fanworks"] .fw-tag-btn {
  padding: 6px 10px;
}

body[data-page="fanworks"] .fw-event-list {
  display: grid;
  gap: 0;
}

body[data-page="fanworks"] .fw-event-card {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

body[data-page="fanworks"] .fw-event-card p {
  margin: 0;
}

body[data-page="fanworks"] .fw-rules-box ul {
  list-style: none;
}

body[data-page="fanworks"] .fw-rules-box li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 9px 0 9px 18px;
}

body[data-page="fanworks"] .fw-rules-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
}

body.dark-mode[data-page="fanworks"] .fw-box,
body.dark-mode[data-page="fanworks"] .fw-stat-box,
body.dark-mode[data-page="fanworks"] .fw-work-card,
body.dark-mode[data-page="fanworks"] .fw-chip,
body.dark-mode[data-page="fanworks"] .fw-sort-btn,
body.dark-mode[data-page="fanworks"] .fw-tag-btn,
body.dark-mode[data-page="fanworks"] .fw-search {
  background: var(--surface);
}

body.dark-mode[data-page="fanworks"] .fw-box-head {
  background: rgba(32, 45, 61, 0.72);
}

body.dark-mode[data-page="fanworks"] .fw-btn-ghost,
body.dark-mode[data-page="fanworks"] .fw-kicker {
  color: #7ddce7;
}

@media (max-width: 1180px) {
  body[data-page="fanworks"] .fanworks-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="fanworks"] .fanworks-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-page="fanworks"] .fanworks-shell,
  body.sidebar-collapsed[data-page="fanworks"] .fanworks-shell {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 18px) 16px 72px;
  }

  body[data-page="fanworks"] .fw-work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-page="fanworks"] .fw-hero-box,
  body[data-page="fanworks"] .fw-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="fanworks"] .fw-hero-actions {
    width: 100%;
  }

  body[data-page="fanworks"] .fw-hero-actions .fw-btn {
    flex: 1;
  }

  body[data-page="fanworks"] .fw-stats-grid,
  body[data-page="fanworks"] .fanworks-rail {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="fanworks"] .fw-category-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
  }

  body[data-page="fanworks"] .fw-chip {
    flex: 0 0 auto;
  }

  body[data-page="fanworks"] .fw-search {
    min-width: 0;
  }

  body[data-page="fanworks"] .fw-sort-tabs {
    justify-content: flex-start;
  }

  body[data-page="fanworks"] .fw-work-card {
    flex-direction: column;
  }

  body[data-page="fanworks"] .fw-work-thumb {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  body[data-page="fanworks"] .fanworks-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-page="fanworks"] .fw-hero-box {
    padding: 18px;
  }

  body[data-page="fanworks"] .fw-stats-grid,
  body[data-page="fanworks"] .fw-work-grid,
  body[data-page="fanworks"] .fanworks-rail {
    grid-template-columns: 1fr;
  }

  body[data-page="fanworks"] .fw-work-grid {
    padding: 12px;
  }

  body[data-page="fanworks"] .fw-box-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* ============================================================
   创作者主页 (creator-center)  .cc-*
   ============================================================ */

/* 布局：单列，居中，无右侧边栏 */
body[data-page="creator-center"] .cc-shell {
  display: block;
}
body[data-page="creator-center"] .cc-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 48px;
}

/* ---------- 创作者头部卡片 ---------- */
.cc-creator-card {
  padding: 24px;
}
.cc-creator-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cc-avatar-col {
  flex-shrink: 0;
}
.cc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--surface-soft);
  background: var(--surface-soft);
}
.cc-info-col {
  flex: 1;
  min-width: 0;
}
.cc-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.cc-nickname {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.cc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cc-badge-level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--cyan);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cc-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
body.dark-mode .cc-badge-verified {
  background: #44300a;
  color: #fcd34d;
}
.cc-signature {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-follow-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cc-follow-stats {
  display: flex;
  gap: 20px;
}
.cc-follow-stat {
  text-align: center;
  cursor: default;
}
.cc-follow-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.cc-follow-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cc-action-row {
  display: flex;
  gap: 8px;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 150ms, color 150ms, opacity 150ms;
  text-decoration: none;
  line-height: 1;
}
.cc-btn-primary {
  background: var(--cyan);
  color: #fff;
}
.cc-btn-primary:hover {
  background: #1590a3;
}
.cc-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cc-btn-ghost:hover {
  background: var(--surface-soft);
  color: var(--text);
}

/* ---------- 标签页 + 控制栏 ---------- */
.cc-tabs-card {
  padding: 0 20px;
}
.cc-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
}
.cc-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0 16px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}
.cc-tab:hover {
  color: var(--text);
}
.cc-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  font-weight: 600;
}
.cc-tabs-spacer {
  flex: 1;
}
.cc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-controls.hidden {
  visibility: hidden;
  pointer-events: none;
}
.cc-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23697789' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-width: 100px;
  transition: border-color 150ms;
}
.cc-select:hover,
.cc-select:focus {
  border-color: var(--cyan);
  outline: none;
}
body.dark-mode .cc-select {
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa9bb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 热力图 ---------- */
.cc-heatmap-card {
  padding: 20px 24px 16px;
}
.cc-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cc-heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.cc-heatmap-wrap {
  display: flex;
  gap: 3px;
  min-width: max-content;
}
.cc-heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-heatmap-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: default;
  transition: opacity 120ms;
  position: relative;
}
.cc-heatmap-dot:hover {
  opacity: 0.8;
}
.cc-heatmap-dot[data-level="0"] { background: var(--line); }
.cc-heatmap-dot[data-level="1"] { background: #bfdbfe; }
.cc-heatmap-dot[data-level="2"] { background: #60a5fa; }
.cc-heatmap-dot[data-level="3"] { background: var(--cyan); }
body.dark-mode .cc-heatmap-dot[data-level="0"] { background: var(--surface-soft); }
body.dark-mode .cc-heatmap-dot[data-level="1"] { background: #1e3a5f; }
body.dark-mode .cc-heatmap-dot[data-level="2"] { background: #1e52a8; }
body.dark-mode .cc-heatmap-dot[data-level="3"] { background: #1590a3; }

/* 热力图 tooltip */
.cc-heatmap-dot[title] {
  cursor: help;
}
.cc-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cc-legend-label {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 统计三栏 ---------- */
.cc-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cc-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  text-align: center;
}
.cc-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 4px;
}
.cc-stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 内容卡片列表 ---------- */
.cc-content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 通用卡片基础 */
.cc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 150ms, transform 150ms;
}
.cc-card:hover {
  box-shadow: 0 6px 20px rgba(27, 39, 51, 0.12);
  transform: translateY(-1px);
}
.cc-card-body {
  padding: 16px 20px;
}
.cc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.cc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-card-type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.cc-tag-post    { background: #dbeafe; color: #1e40af; }
.cc-tag-fanart  { background: #fce7f3; color: #9d174d; }
.cc-tag-fanfic  { background: #ede9fe; color: #5b21b6; }
.cc-tag-draft   { background: var(--surface-soft); color: var(--muted); }
body.dark-mode .cc-tag-post   { background: #1e2d4a; color: #93c5fd; }
body.dark-mode .cc-tag-fanart { background: #3b1728; color: #f9a8d4; }
body.dark-mode .cc-tag-fanfic { background: #2e1e4a; color: #c4b5fd; }
body.dark-mode .cc-tag-draft  { background: var(--surface-soft); color: var(--muted); }

.cc-card-section {
  font-size: 12px;
  color: var(--muted);
}
.cc-card-time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.cc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 8px;
  text-decoration: none;
  display: block;
}
.cc-card-title:hover {
  color: var(--cyan);
}
.cc-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cc-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cc-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.cc-stat-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cc-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  transition: background 150ms, color 150ms, border-color 150ms;
  text-decoration: none;
}
.cc-btn-edit {
  color: var(--cyan);
  border-color: var(--cyan);
}
.cc-btn-edit:hover {
  background: #e0f5f8;
  color: var(--cyan);
}
.cc-btn-publish {
  color: var(--mint);
  border-color: var(--mint);
}
.cc-btn-publish:hover {
  background: #d1fae5;
  color: var(--mint);
}
body.dark-mode .cc-btn-publish:hover { background: #0d2e1e; }
.cc-btn-delete {
  color: var(--coral);
  border-color: var(--coral);
}
.cc-btn-delete:hover {
  background: #fee2e0;
  color: var(--coral);
}
body.dark-mode .cc-btn-edit:hover  { background: #1a3a40; }
body.dark-mode .cc-btn-delete:hover { background: #3b1d1a; }

/* 二创卡片缩略图 */
.cc-fanart-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.cc-fanart-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface-soft);
}
.cc-fanart-count-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

/* 同人小说字数 */
.cc-fanfic-word-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 空状态 ---------- */
.cc-empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 24px;
  text-align: center;
}
.cc-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.6;
}
.cc-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.cc-empty-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.cc-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 删除确认弹窗 ---------- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.cc-modal-overlay[hidden] {
  display: none;
}
.cc-modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  padding: 28px;
  max-width: 380px;
  width: 100%;
}
.cc-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.cc-modal-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cc-modal-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 150ms, opacity 150ms;
}
.cc-modal-btn--cancel {
  background: var(--surface-soft);
  color: var(--text);
}
.cc-modal-btn--cancel:hover {
  background: var(--line);
}
.cc-modal-btn--danger {
  background: var(--coral);
  color: #fff;
}
.cc-modal-btn--danger:hover {
  opacity: 0.88;
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .cc-creator-inner {
    flex-wrap: wrap;
  }
  .cc-follow-col {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cc-follow-stats {
    gap: 14px;
  }
  .cc-stats-row {
    grid-template-columns: 1fr;
  }
  .cc-controls {
    display: none;
  }
  .cc-stat-value {
    font-size: 22px;
  }
  .cc-card-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 820px) {
  .cc-tabs-card {
    padding: 0 12px;
  }
  .cc-creator-card {
    padding: 16px;
  }
  .cc-heatmap-card {
    padding: 16px;
  }
}

/* =====================================================
   My Oshi（成员订阅）页面
   ===================================================== */
.oshi-layout {
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 24px) 24px 60px;
  transition: margin-left 180ms ease;
}
body.sidebar-collapsed .oshi-layout {
  margin-left: var(--sidebar-collapsed);
}
.oshi-main {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 32px;
}
.oshi-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.oshi-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--text);
}
.oshi-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 640px;
  line-height: 1.6;
}
.oshi-count {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--surface-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.oshi-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.oshi-search {
  flex: 1 1 240px;
  min-width: 180px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.oshi-search:focus {
  outline: none;
  border-color: var(--cyan);
}
.oshi-toolbar-actions {
  display: flex;
  gap: 8px;
}
.oshi-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.oshi-btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.oshi-btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  font-weight: 600;
}
.oshi-btn-primary:hover {
  opacity: 0.92;
}
.oshi-btn-primary:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.oshi-branch {
  margin-top: 26px;
}
.oshi-branch-title {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
}
.oshi-gen {
  margin-top: 14px;
}
.oshi-gen-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.oshi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.oshi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  border-top: 3px solid var(--oshi-color, var(--cyan));
}
.oshi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--oshi-color, var(--cyan));
}
.oshi-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--oshi-color, var(--cyan));
  background: var(--bg);
}
.oshi-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  border-color: transparent;
}
.oshi-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.oshi-card-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
.oshi-card-tag {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 1px 7px;
  border-radius: 999px;
}
/* 取消订阅态：删除线 + 灰度 */
.oshi-card.is-off {
  border-top-color: var(--line);
  opacity: 0.55;
}
.oshi-card.is-off .oshi-card-avatar {
  filter: grayscale(1);
  border-color: var(--line);
}
.oshi-card.is-off .oshi-card-name,
.oshi-card.is-off .oshi-card-sub {
  text-decoration: line-through;
}
.oshi-card.is-off::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 64px;
  height: 64px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom right, transparent calc(50% - 2px), #d0455a calc(50% - 2px), #d0455a calc(50% + 2px), transparent calc(50% + 2px));
  border-radius: 50%;
  pointer-events: none;
}
.oshi-loading,
.oshi-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
}
.oshi-empty strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 8px;
}
.oshi-empty p {
  margin: 0 0 14px;
  font-size: 13px;
}
@media (max-width: 820px) {
  .oshi-layout,
  body.sidebar-collapsed .oshi-layout {
    margin-left: 0;
    padding: 138px 14px 80px;
  }
}
@media (max-width: 600px) {
  .oshi-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
  .oshi-card-avatar {
    width: 54px;
    height: 54px;
  }
  .oshi-card.is-off::after {
    width: 54px;
    height: 54px;
  }
}
