/* ============================================================
   RYTT.COM — 视频讨论与文件分享
   ============================================================ */

:root {
  --bg: #f5f7fc;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f0f3f9;
  --border: #e5e9f2;
  --border-2: #d2d9e6;
  --text: #232a3d;
  --text-2: #5b6577;
  --text-3: #99a2b3;
  --pink: #f0507e;
  --blue: #0092d1;
  --purple: #7c5cf0;
  --green: #16a34a;
  --red: #e5484d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(35, 42, 61, 0.10);
  --grad: linear-gradient(135deg, #fb7299 0%, #8b5cf6 55%, #00aeec 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 174, 236, 0.08), transparent 60%),
    radial-gradient(800px 480px at -10% 30%, rgba(251, 114, 153, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(251, 114, 153, 0.22); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ccd4e2; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b7c1d4; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

.hidden { display: none !important; }
.dot { color: var(--text-3); margin: 0 4px; }

/* ---------------- 导航栏 ---------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px clamp(18px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px rgba(251, 114, 153, 0.35); }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: var(--pink); background: rgba(251, 114, 153, 0.10); font-weight: 700; }

.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* 手机汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #fb7299, #8b5cf6);
  user-select: none;
  flex: none;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: default;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-avatar.uploadable { cursor: pointer; transition: box-shadow 0.16s, transform 0.16s; }
.user-avatar.uploadable:hover {
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.3);
  transform: scale(1.06);
}
.user-avatar.uploadable:disabled { opacity: 0.55; }
.user-avatar.sm { width: 22px; height: 22px; font-size: 11px; }

.admin-badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  padding: 0 8px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vh, 128px) 20px clamp(64px, 10vh, 104px);
  text-align: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  background: var(--pink);
  top: -180px; left: -140px;
  animation: float-a 13s ease-in-out infinite;
}
.hero::after {
  width: 540px; height: 540px;
  background: var(--blue);
  bottom: -260px; right: -160px;
  animation: float-b 15s ease-in-out infinite;
}
@keyframes float-a { 50% { transform: translate(70px, 46px) scale(1.07); } }
@keyframes float-b { 50% { transform: translate(-60px, -34px) scale(0.94); } }

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }

.hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--pink);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-2);
  font-size: clamp(15px, 2.2vw, 17px);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
}
.hstat { min-width: 96px; }
.hstat b {
  display: block;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hstat span { font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  color: #fff;
  background: var(--card-2);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-ic { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #fb7299, #8b5cf6);
  box-shadow: 0 6px 22px rgba(251, 114, 153, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(251, 114, 153, 0.45); }

.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); transform: translateY(-1px); }

.btn-bili { background: linear-gradient(135deg, #fb7299, #ff9db6); box-shadow: 0 6px 20px rgba(251, 114, 153, 0.3); white-space: nowrap; }
.btn-bili:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(251, 114, 153, 0.42); }

.btn-video { background: linear-gradient(135deg, #ff9d3c, #ffc36b); box-shadow: 0 6px 20px rgba(255, 157, 60, 0.32); white-space: nowrap; }
.btn-video:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(255, 157, 60, 0.45); }

.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--red);
  padding: 7px 9px;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); border-color: var(--red); }
.btn-danger svg { width: 14px; height: 14px; }

/* ---------------- 区块 ---------------- */

.section { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) 20px 20px; }

.section-head { margin-bottom: 28px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin-top: 12px;
}
.section-desc { color: var(--text-2); font-size: 15px; }

/* ---------------- 视频区 ---------------- */

.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.player-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, #e9edf5 30%, #f6f8fc 45%, #e9edf5 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.player-skeleton span {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(35, 42, 61, 0.12);
  border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.video-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 8px 6px;
}
.video-meta h3 { font-size: clamp(17px, 2.6vw, 21px); font-weight: 700; margin-bottom: 6px; }
.video-up { font-size: 13.5px; color: var(--text-2); }
.video-up b { color: var(--text); }

.live-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  vertical-align: 2px;
}

.video-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vstat {
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.vstat b { color: var(--text); font-weight: 700; margin-right: 5px; }

/* ---------------- 视频列表页（B站空间同步） ---------------- */

.up-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.up-avatar {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fb7299, #00aeec);
  border: 2px solid var(--border-2);
}
.up-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-info { flex: 1; min-width: 220px; }
.up-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-name-row h3 { font-size: 18px; font-weight: 800; }
.up-stats { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.up-sign {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.up-skeleton { display: flex; align-items: center; gap: 18px; width: 100%; }
.sk-avatar {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--card-2);
  animation: pulse 1.4s ease-in-out infinite;
}
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-lines span {
  height: 14px;
  border-radius: 7px;
  background: var(--card-2);
  animation: pulse 1.4s ease-in-out infinite;
}
.sk-lines span:last-child { width: 40%; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* 搜索工具栏 */
.video-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.v-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 340px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.v-search:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.12);
}
.v-search svg { flex: none; width: 17px; height: 17px; color: var(--text-3); }
.v-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.v-search input::placeholder { color: var(--text-3); }
.v-search input::-webkit-search-cancel-button { cursor: pointer; }

/* 分页控件（视频网格下方居中） */
.v-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pg-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--card);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s;
}
.pg-btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.pg-btn.on {
  background: linear-gradient(135deg, #fb7299, #8b5cf6);
  border-color: transparent;
  color: #fff;
}
.pg-btn:disabled { opacity: 0.4; cursor: default; }
.pg-ell { align-self: center; color: var(--text-3); font-size: 13.5px; padding: 0 2px; user-select: none; }

/* ---------------- 修改密码弹窗 ---------------- */

.pwd-btn { display: inline-flex; align-items: center; gap: 5px; }
.pwd-btn svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .pwd-btn .pwd-txt { display: none; }   /* 手机端只留钥匙图标，省导航空间 */
  .pwd-btn { padding: 8px 10px; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 28, 44, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  animation: rise 0.22s ease;
}
.modal-card h3 { font-size: 18px; font-weight: 800; }
.modal-sub { color: var(--text-3); font-size: 12.5px; margin: 4px 0 16px; }
.modal-card input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.modal-card input:focus { border-color: var(--pink); }
.modal-card input::placeholder { color: var(--text-3); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

@keyframes fadeIn { from { opacity: 0; } }

/* ---------------- 粉丝变动弹窗（柱状图） ---------------- */

.lv-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.fan-card { max-width: 540px; }

.fan-chart {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 190px;
  margin-top: 4px;
  padding: 8px 4px 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.fan-col {
  flex: 1;
  min-width: 4px;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.fan-col:hover { background: rgba(251, 114, 153, 0.07); }
.fan-zone { flex: 1; display: flex; justify-content: center; }
.fan-zone.up { align-items: flex-end; border-bottom: 1px dashed var(--border-2); }
.fan-zone.down { align-items: flex-start; }
.fan-bar { width: 72%; border-radius: 3px; }
.fan-bar.up { background: linear-gradient(180deg, #34d399, var(--green)); }
.fan-bar.down { background: linear-gradient(180deg, var(--red), #f87171); }
.fan-col:hover .fan-bar { filter: brightness(1.18); }

.fan-range {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
}

.v-search-hint { font-size: 12.5px; color: var(--text-3); margin: -6px 0 14px 4px; }

/* ---------------- B站更新提示 ---------------- */

.update-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.08), rgba(0, 174, 236, 0.08));
  border: 1px solid rgba(251, 114, 153, 0.32);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.update-bar:hover { border-color: rgba(251, 114, 153, 0.6); transform: translateY(-1px); }

/* 新回放徽标（封面左上角） */
.v-new-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fb7299, #ff6b81);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.4);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: rise 0.35s ease both;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}

.v-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.08), rgba(0, 174, 236, 0.08));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.v-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.video-card:hover .v-cover img { transform: scale(1.05); }

.v-play-ic {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: 0.2s;
}
.v-play-ic svg { width: 22px; height: 22px; }
.video-card:hover .v-play-ic { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.v-dur {
  position: absolute;
  right: 8px; bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 6px;
  padding: 1px 7px;
}

.v-body { padding: 12px 14px 14px; flex: 1; }
.v-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.v-meta { font-size: 12.5px; color: var(--text-3); margin-top: 7px; }

.site-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink);
  border: 1px solid rgba(251, 114, 153, 0.4);
  border-radius: 999px;
  padding: 1px 9px;
}

.back-row { margin-bottom: 18px; }

/* ---------------- 讨论区 ---------------- */

.discussion { margin-top: 36px; }
.discussion-head { margin-bottom: 18px; }
.discussion-head h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.count-badge {
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fb7299, #8b5cf6);
  border-radius: 999px;
}
.discussion-head p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }

.composer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 26px;
}
.composer:focus-within { border-color: rgba(251, 114, 153, 0.45); }

.composer-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.who-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
}

.reply-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--border-2);
  padding: 6px 12px;
  border-radius: 999px;
}
.reply-chip b { color: var(--pink); }
.reply-chip button {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.reply-chip button:hover { color: var(--red); }

#commentInput {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.18s;
}
#commentInput:focus { border-color: var(--pink); }
#commentInput::placeholder { color: var(--text-3); }

.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.char-hint { font-size: 12px; color: var(--text-3); }

.comment-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- 留言板：主题贴 ---------------- */

.thread-form #threadTitle {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.thread-form #threadTitle:focus { border-color: var(--pink); }
.thread-form #threadTitle::placeholder { color: var(--text-3); font-weight: 400; }

.thread-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.thread-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s, border-color 0.18s;
  animation: rise 0.35s ease both;
}
.thread-card:hover { transform: translateY(-3px); border-color: rgba(251, 114, 153, 0.45); }
.thread-card .avatar { width: 42px; height: 42px; }
.thread-card-body { min-width: 0; }
.thread-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-card:hover .thread-card-title { color: var(--pink); }
.thread-card-meta { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }

.thread-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 26px;
  animation: rise 0.35s ease both;
}
.thread-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.thread-page-title { font-size: 20px; font-weight: 800; line-height: 1.45; }
.thread-page-meta { color: var(--text-2); font-size: 13px; margin-top: 6px; }

.comment {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: rise 0.35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-nick { font-size: 14.5px; }
.c-time { font-size: 12px; color: var(--text-3); }

.c-quote {
  margin-top: 6px;
  display: inline-block;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--card-2);
  border-left: 2px solid var(--pink);
  padding: 3px 10px;
  border-radius: 6px;
}

.c-content {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.c-reply-btn {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: 0.16s;
}
.c-reply-btn:hover { color: var(--pink); background: rgba(251, 114, 153, 0.1); }
.c-reply-btn.danger:hover { color: var(--red); background: rgba(229, 72, 77, 0.1); }
.c-actions { display: flex; gap: 2px; }

/* 评论图片 */
.c-img-wrap { margin-top: 10px; }
.c-img {
  max-width: min(360px, 100%);
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  object-fit: contain;
}

/* 评论框：图片选择 + 预览 */
.composer-tools { display: flex; align-items: center; gap: 14px; }
.c-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  transition: 0.16s;
}
.c-tool-btn svg { width: 16px; height: 16px; }
.c-tool-btn:hover { color: var(--pink); background: rgba(251, 114, 153, 0.1); }

.composer-img {
  position: relative;
  display: inline-flex;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.composer-img img {
  display: block;
  max-width: min(280px, 100%);
  max-height: 180px;
  object-fit: contain;
}
.composer-img button {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.composer-img button:hover { background: var(--red); }

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 46px 0;
  font-size: 14px;
}

/* 未登录讨论提示卡 */
.login-prompt {
  text-align: center;
  padding: 34px 20px 38px;
  background: var(--card);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.login-prompt svg { width: 38px; height: 38px; color: var(--text-3); margin: 0 auto 10px; }
.lp-title { font-size: 16px; font-weight: 700; }
.lp-sub { font-size: 13px; color: var(--text-3); margin: 6px auto 16px; max-width: 420px; }
.lp-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 文件共享区 ---------------- */

.upload-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.dropzone {
  border: 2px dashed var(--border-2);
  border-radius: 14px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: rgba(251, 114, 153, 0.55);
  background: rgba(251, 114, 153, 0.05);
}
.dropzone.drag {
  border-color: var(--pink);
  background: rgba(251, 114, 153, 0.1);
  transform: scale(1.01);
}
.dz-icon { width: 46px; height: 46px; color: var(--pink); margin: 0 auto 12px; }
.dz-title { font-size: 16px; font-weight: 700; }
.dz-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* 文件页横幅（非站长所见） */
.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.banner svg { width: 30px; height: 30px; color: var(--text-3); flex: none; }
.banner-title { font-size: 14.5px; font-weight: 700; }
.banner-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
}
.chip-ic { width: 13px; height: 13px; }

.progress { margin-top: 16px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.progress-info span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}
.progress-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--card-2);
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--grad);
  transition: width 0.2s;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.file-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
  animation: rise 0.35s ease both;
}
.file-card:hover { transform: translateY(-3px); border-color: var(--border-2); }

.file-cover {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.1), rgba(0, 174, 236, 0.1));
  border-bottom: 1px solid var(--border);
}
.file-cover svg { width: 34px; height: 34px; }
.file-cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.k-image { color: #f59e0b; }
.k-video { color: #fb7299; }
.k-audio { color: #22d3ee; }
.k-archive { color: #a78bfa; }
.k-doc { color: #38bdf8; }
.k-code { color: #4ade80; }
.k-other { color: #94a3b8; }

.file-body { padding: 14px 16px 6px; flex: 1; }
.file-name {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-meta { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }

.file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 14px;
}
.dl-count { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.file-actions .btns { display: flex; gap: 8px; }

/* ---------------- 欢快主页主题（仁义桃桃的小站） ---------------- */

.hero-fun { overflow: hidden; }
.hero-fun::before { background: var(--pink); }
.hero-fun::after { background: var(--blue); }

/* 首页统计：白色小卡片 */
.hero-fun .hero-stats {
  gap: 14px;
  margin-top: 46px;
}
.hero-fun .hstat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 26px 13px;
  min-width: 118px;
  box-shadow: 0 6px 18px rgba(35, 42, 61, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-fun .hstat:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 80, 126, 0.35);
  box-shadow: 0 12px 26px rgba(251, 114, 153, 0.16);
}
.hero-fun .hstat b {
  font-size: clamp(20px, 3vw, 26px);
  background: linear-gradient(135deg, #f0507e, #7c5cf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-fun .hstat span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .hero-fun .hstat { flex: 1 1 40%; min-width: 0; }
}

/* 漂浮装饰彩点 */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-deco.d1 {
  width: 18px; height: 18px;
  top: 22%; left: 12%;
  background: #ffd166;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.8);
  animation: bob 3.4s ease-in-out infinite;
}
.hero-deco.d2 {
  width: 12px; height: 12px;
  top: 30%; right: 16%;
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.8);
  animation: bob 4.2s ease-in-out 0.6s infinite;
}
.hero-deco.d3 {
  width: 26px; height: 26px;
  bottom: 18%; left: 20%;
  background: conic-gradient(#fb7299, #ffd166, #00aeec, #fb7299);
  opacity: 0.75;
  animation: spin-slow 7s linear infinite, bob 5s ease-in-out 1.2s infinite;
}
@keyframes bob { 50% { transform: translateY(-16px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* kicker 彩色胶囊 */
.hero-fun .hero-kicker {
  display: inline-block;
  background: rgba(251, 114, 153, 0.10);
  border: 1px solid rgba(240, 80, 126, 0.30);
  color: var(--pink);
  border-radius: 999px;
  padding: 7px 20px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* 渐变字流动 */
.hero-fun .grad-text {
  background: linear-gradient(90deg, #f0507e, #ff9e64, #eab308, #16a34a, #0092d1, #f0507e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: grad-flow 6s linear infinite;
}
@keyframes grad-flow { to { background-position: 300% 0; } }

/* 弹性按钮 */
.btn-pop { animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.btn-pop:nth-of-type(2) { animation-delay: 0.08s; }
.btn-pop:nth-of-type(3) { animation-delay: 0.16s; }
@keyframes pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 数字弹跳 */
.hero-fun .hstat b { animation: pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.hero-fun .hstat:nth-child(1) b { animation-delay: 0.10s; }
.hero-fun .hstat:nth-child(2) b { animation-delay: 0.18s; }
.hero-fun .hstat:nth-child(3) b { animation-delay: 0.26s; }
.hero-fun .hstat:nth-child(4) b { animation-delay: 0.34s; }
.hero-fun .hstat span { color: var(--text-2); }

/* ---------------- 登录 / 注册 ---------------- */

.auth-wrap {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--pink);
  margin-bottom: 10px;
}
.auth-head h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-head p { font-size: 13.5px; color: var(--text-2); }

.form-row { display: block; margin-bottom: 16px; }
.form-row > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.form-input:focus { border-color: var(--pink); }
.form-input::placeholder { color: var(--text-3); }

.form-error {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--red);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  padding: 9px 13px;
}

.btn-block { width: 100%; justify-content: center; font-size: 15px; padding: 13px 20px; }

.auth-alt {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.auth-alt a { color: var(--pink); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* ---------------- 页脚 ---------------- */

.footer {
  margin-top: 72px;
  padding: 44px 20px 52px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}
.footer-brand { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer .dim { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }

/* ---------------- Toast / Lightbox ---------------- */

#toastWrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  background: #ffffff;
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s, transform 0.3s;
  word-break: break-all;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-left-color: var(--red); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 7, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fade 0.2s ease;
}
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow); }
@keyframes fade { from { opacity: 0; } }

/* ---------------- 入场动画 ---------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- 直播提醒 ---------------- */

.e-live { color: #fff; background: linear-gradient(135deg, #fb7299, #ff9db6); box-shadow: 0 6px 18px rgba(251, 114, 153, 0.3); }

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.live-summary { font-size: 14px; color: var(--text-2); font-weight: 600; }

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.live-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.live-card:hover { border-color: var(--border-2); background: var(--card-2); }

.live-card.living {
  border-color: rgba(251, 114, 153, 0.55);
  background: rgba(251, 114, 153, 0.06);
  box-shadow: 0 0 0 1px rgba(251, 114, 153, 0.25), 0 10px 32px rgba(251, 114, 153, 0.16);
  animation: live-glow 2.4s ease-in-out infinite;
}
@keyframes live-glow {
  50% { box-shadow: 0 0 0 1px rgba(251, 114, 153, 0.45), 0 10px 40px rgba(251, 114, 153, 0.3); }
}

.lv-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
  user-select: none;
}
.live-card.living .lv-avatar { border: 2px solid var(--pink); }
.lv-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lv-body { min-width: 0; flex: 1; }
.lv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-nick { font-size: 16.5px; font-weight: 800; }

.lv-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.lv-badge.on {
  color: #fff;
  background: linear-gradient(135deg, #fb7299, #ff6080);
  border-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lv-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: lv-pulse 1.2s ease-in-out infinite;
}
@keyframes lv-pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.lv-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lv-meta { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.lv-body .btn { margin-top: 12px; }

/* 直播动态 */
.live-events { display: flex; flex-direction: column; gap: 18px; }

/* 直播动态：按直播间分组 */
.le-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.le-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.lv-avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.le-group-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.le-group-main b { font-size: 15.5px; font-weight: 800; }
.le-group-sub { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.le-list { display: flex; flex-direction: column; gap: 10px; padding: 14px; }

/* 场次配对：开播 / 下播 左右对应 */
.le-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.le-cell {
  padding: 12px 14px;
  border-radius: 12px;
  min-width: 0;
}
.le-cell.o {
  background: rgba(251, 114, 153, 0.07);
  border: 1px solid rgba(251, 114, 153, 0.25);
}
.le-cell.c {
  background: var(--bg);
  border: 1px solid var(--border);
}
.le-c1 { font-size: 13.5px; font-weight: 700; color: var(--text); }
.le-arrow { font-style: normal; font-size: 11px; margin-right: 2px; }
.le-arrow.up { color: var(--pink); }
.le-arrow.down { color: var(--text-3); }
.le-tt {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.le-tm { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.le-living {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
}
.le-pair.ongoing .le-cell.o {
  border-color: rgba(251, 114, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.08);
}
.le-pair.ongoing .le-cell.c {
  border-style: dashed;
  border-color: rgba(22, 163, 74, 0.45);
}

/* 直播动态分页（复用视频区分页按钮样式） */
.le-pager {
  justify-content: center;
  margin-top: 12px;
}

/* 粉丝变动（今日 +N / -N） */
.lv-fdiff { font-weight: 700; }
.lv-fdiff.up { color: var(--green); }
.lv-fdiff.down { color: var(--red); }

/* ---------------- 评论删除按钮 ---------------- */

.c-del-btn {
  margin-top: 8px;
  margin-left: 2px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: 0.18s;
}
.c-del-btn svg { width: 14px; height: 14px; }
.c-del-btn:hover { color: var(--red); background: rgba(248, 113, 113, 0.1); }
.c-del-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- 文本文件在线预览 ---------------- */

.text-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.2s ease;
}

.tv-card {
  width: min(860px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tv-title-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tv-title-wrap b { font-size: 15px; word-break: break-all; }
.tv-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.tv-btns { display: flex; gap: 8px; flex: none; }

.tv-content {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 18px 20px;
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 4;
}

/* ---------------- 站长管理：删除记录 ---------------- */

.rec-list { display: flex; flex-direction: column; gap: 12px; }

.rec-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.18s, background 0.18s;
}
.rec-card:hover { border-color: var(--border-2); background: var(--card-2); }

.rec-type {
  flex: none;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.rec-type.t-comment { color: var(--pink); border-color: rgba(251, 114, 153, 0.45); background: rgba(251, 114, 153, 0.08); }
.rec-type.t-file { color: var(--blue); border-color: rgba(0, 174, 236, 0.45); background: rgba(0, 174, 236, 0.08); }
.rec-type.t-login { color: var(--green); border-color: rgba(22, 163, 74, 0.45); background: rgba(22, 163, 74, 0.08); }
.rec-type.t-thread { color: var(--purple); border-color: rgba(124, 92, 240, 0.45); background: rgba(124, 92, 240, 0.08); }

.rec-role {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  border: 1px solid rgba(124, 92, 240, 0.4);
  background: rgba(124, 92, 240, 0.08);
  border-radius: 999px;
  vertical-align: 1px;
}

.rec-main { min-width: 0; flex: 1; }
.rec-line1 { font-size: 14px; font-weight: 600; word-break: break-all; }
.rec-line1 a { color: var(--blue); }
.rec-line1 a:hover { text-decoration: underline; }

.rec-content {
  margin-top: 6px;
  padding: 8px 12px;
  border-left: 3px solid var(--border-2);
  border-radius: 0 8px 8px 0;
  background: var(--bg);
  color: var(--text-2);
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow: auto;
}

.rec-meta { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 720px) {
  /* ---- 导航：汉堡菜单 ---- */
  .navbar { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; }
  .brand-text { font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px 14px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(35, 42, 61, 0.10);
  }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .nav-user { margin-left: auto; gap: 8px; }
  .nav-user .btn-sm { padding: 6px 10px; font-size: 12.5px; }
  .user-name { display: none; }

  /* ---- 首页 hero ---- */
  .hero-fun { padding: 52px 16px 48px; }
  .hero-fun .hero-kicker { letter-spacing: 0.16em; padding: 6px 15px; font-size: 11.5px; }
  .hero-fun .hero-actions { gap: 10px; margin-bottom: 32px; }
  .hero-fun .btn { padding: 10px 18px; font-size: 14px; }
  .hero-fun .hero-stats { gap: 10px; margin-top: 0; }
  .hero-fun .hstat { padding: 13px 14px 11px; }

  /* ---- 直播提醒 ---- */
  .live-toolbar { flex-wrap: wrap; }
  .live-card { padding: 15px; gap: 12px; }
  .lv-nick { font-size: 15.5px; }
  .lv-title { font-size: 13.5px; }
  .lv-meta { font-size: 12px; }
  .le-group-head { padding: 12px 14px; }
  .le-list { padding: 10px; gap: 8px; }
  /* 手机保持左右对应，缩小间距与字号 */
  .le-pair { gap: 8px; }
  .le-pager { margin-top: 8px; gap: 5px; }
  .le-cell { padding: 10px 11px; }
  .le-c1 { font-size: 12.5px; }
  .le-tt { font-size: 12px; }
  .le-tm { font-size: 11px; }
  .le-living { font-size: 12.5px; gap: 5px; }

  /* ---- 视频讨论 ---- */
  .video-grid { grid-template-columns: 1fr; }
  .up-card { padding: 14px 16px; gap: 12px; }
  .up-avatar { width: 50px; height: 50px; font-size: 20px; }
  .video-info { padding: 12px 2px 2px; }
  .comment { padding: 13px 14px; gap: 11px; }
  .avatar { width: 34px; height: 34px; font-size: 14px; }
  /* 手机端搜索框缩小 */
  .v-search { flex: 1 1 auto; padding: 7px 12px; gap: 7px; }
  .v-search svg { width: 15px; height: 15px; }
  .v-search input { font-size: 13px; }
  .video-toolbar { margin-bottom: 12px; }
  .v-pager { margin-top: 18px; gap: 5px; }
  .pg-btn { min-width: 32px; height: 32px; padding: 0 7px; font-size: 13px; }
  .v-search-hint { margin: -4px 0 10px 4px; font-size: 12px; }

  /* ---- 弹幕分享 ---- */
  .file-list { grid-template-columns: 1fr; }
  .thread-list { grid-template-columns: 1fr; }
  .thread-head { padding: 16px 18px; }
  .thread-page-title { font-size: 18px; }
  .admin-bar { flex-wrap: wrap; }
  .file-cover { height: 104px; }
  .file-actions { flex-wrap: wrap; }
  .file-actions .btns { flex-wrap: wrap; }
  .file-actions .btn-sm { padding: 8px 14px; }

  /* ---- 通用 ---- */
  .section { padding: 40px 16px 16px; }
  .section-head h2 { font-size: 24px; }
  .auth-card { padding: 26px 20px 22px; }
  .tv-head { flex-direction: column; align-items: stretch; }
  .tv-btns { justify-content: flex-end; }
  .tv-card { max-height: 92vh; }
  .rec-card { flex-direction: column; gap: 8px; }
  .live-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== 注册后头像选择弹窗 ===================== */

.avmodal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  animation: fade 0.25s ease both;
}
.avmodal-card {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(255, 143, 171, 0.28);
  padding: 30px 30px 22px;
  text-align: center;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.avmodal-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 2.5px;
  color: #fb7299; text-transform: uppercase;
}
.avmodal-head h2 { margin: 8px 0 6px; font-size: 24px; }
.avmodal-head p { margin: 0 0 20px; color: #9b8a90; font-size: 14px; }

.preset-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.preset-item {
  aspect-ratio: 1 / 1; border-radius: 50%;
  border: 3px solid #ffe3ea; background: #fff;
  padding: 4px; cursor: pointer; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.preset-item img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.preset-item:hover { transform: translateY(-3px) scale(1.05); border-color: #ffb3c6; }
.preset-item.selected {
  border-color: #fb7299;
  box-shadow: 0 0 0 5px rgba(251, 114, 153, 0.18);
  transform: scale(1.06);
}

.avmodal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.avmodal-skip {
  margin-top: 16px; background: none; border: none; cursor: pointer;
  color: #b3a4aa; font-size: 13px; text-decoration: none;
  transition: color 0.15s ease;
}
.avmodal-skip:hover { color: #fb7299; }

@media (max-width: 720px) {
  .avmodal { padding: 14px; }
  .avmodal-card { padding: 22px 18px 18px; }
  .avmodal-head h2 { font-size: 20px; }
  .preset-grid { gap: 10px; }
  .avmodal-actions .btn { flex: 1 1 auto; }
}
