/* ============================================================
   个人动态网站 · 光场设计（ColorOS 16 风格）
   毛玻璃 / 光斑背景 / 大圆角 / 丝滑动效
   ============================================================ */

:root {
  --primary: #FF6B9D;
  --primary-2: #FFA26B;
  --accent: #FF8A5C;
  --bg: #FFF6F2;
  --text: #2D2430;
  --text-2: #8A7E86;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 8px 32px rgba(255, 107, 157, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 暗色主题：显式 data-theme=dark 时强制暗色 */
:root[data-theme="dark"] {
  --bg: #1A1218;
  --text: #F5ECF0;
  --text-2: #B0A4AC;
  --card-bg: rgba(42, 30, 38, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
/* 跟随系统：无 data-theme（或 auto）时，系统暗色则暗色 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1218;
    --text: #F5ECF0;
    --text-2: #B0A4AC;
    --card-bg: rgba(42, 30, 38, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

/* ---------- 背景光场（流动光斑） ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 18s var(--ease) infinite alternate;
}
.b1 { width: 45vw; height: 45vw; background: linear-gradient(135deg, #FF6B9D, #FFA26B); top: -12%; left: -8%; }
.b2 { width: 38vw; height: 38vw; background: linear-gradient(135deg, #FFB37A, #FF6B9D); bottom: -10%; right: -6%; animation-delay: -6s; }
.b3 { width: 30vw; height: 30vw; background: linear-gradient(135deg, #FFD180, #FF8A5C); top: 40%; left: 55%; opacity: 0.32; animation-delay: -12s; }
.b4 { width: 22vw; height: 22vw; background: linear-gradient(135deg, #FF8A5C, #FF6B9D); top: -5%; right: 20%; opacity: 0.28; animation-delay: -3s; animation-duration: 24s; }
.b5 { width: 18vw; height: 18vw; background: linear-gradient(135deg, #FFB37A, #FFD180); bottom: 20%; left: -4%; opacity: 0.25; animation-delay: -9s; animation-duration: 28s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(5vw, -3vh) scale(1.12) rotate(20deg); }
  66%  { transform: translate(-3vw, 4vh) scale(0.95) rotate(-15deg); }
  100% { transform: translate(6vw, 4vh) scale(1.15) rotate(10deg); }
}

/* ---------- 毛玻璃工具类 ---------- */
.glass {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1080px, calc(100% - 24px));
  margin: 12px auto 0;
  border-radius: var(--radius-lg);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease);
}
.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.nav { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(108, 124, 255, 0.1); }
.nav-link.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px rgba(108, 124, 255, 0.4);
}
.menu-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

/* ---------- 用户区（导航栏右侧） ---------- */
.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.user-chip {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; }

/* ---------- 帖子操作栏 / 点赞 / 评论 ---------- */
.post-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 127, 127, 0.12);
}
.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: rgba(127, 127, 127, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.act-btn:hover { background: rgba(108, 124, 255, 0.14); color: var(--text); }
.act-btn:active { transform: scale(0.95); }
.act-btn.liked { background: rgba(237, 100, 166, 0.14); color: #ED64A6; }
.author-mini { font-weight: 600; color: var(--primary); }

/* ---------- 评论弹窗 ---------- */
.comment-modal { max-width: 480px; }
.cm-title {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(127, 127, 127, 0.07);
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-list { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.cm-item { padding: 10px 0; border-bottom: 1px solid rgba(127, 127, 127, 0.08); }
.cm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cm-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.cm-name { font-size: 13px; font-weight: 600; }
.cm-time { font-size: 11px; color: var(--text-2); flex: 1; }
.cm-del { font-size: 11px; color: #ED64A6; text-decoration: none; }
.cm-content { font-size: 14px; line-height: 1.6; word-break: break-word; }
.cm-input-row { display: flex; gap: 8px; }
.cm-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.cm-input-row input:focus { border-color: var(--primary); }
:root[data-theme="dark"] .cm-input-row input { background: rgba(255,255,255,0.06); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cm-input-row input { background: rgba(255,255,255,0.06); color: var(--text); }
}

/* ---------- 登录弹窗 ---------- */
.auth-modal { max-width: 400px; }

/* ---------- 设置页 · 主题选项 ---------- */
.theme-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.theme-opt {
  text-align: center;
  padding: 18px 14px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: rgba(127, 127, 127, 0.07);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.theme-opt:hover { background: rgba(108, 124, 255, 0.12); transform: translateY(-2px); }
.theme-opt.active {
  border-color: var(--primary);
  background: rgba(108, 124, 255, 0.14);
  box-shadow: 0 6px 20px rgba(108, 124, 255, 0.25);
}
.theme-ico { font-size: 30px; margin-bottom: 6px; }
.theme-name { font-size: 14px; font-weight: 600; }
.theme-desc { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.theme-opt.active .theme-name { color: var(--primary); }

/* ---------- 主容器 ---------- */
.container {
  width: min(1080px, calc(100% - 24px));
  margin: 24px auto 90px;
  animation: pageIn 0.35s var(--ease);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 聚合主页 · 欢迎横幅 ---------- */
.hero {
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, rgba(108,124,255,0.16), rgba(154,108,255,0.14), rgba(79,209,197,0.12));
  animation: pageIn 0.4s var(--ease);
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-text { flex: 1; }
.hero-greet { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.hero-text h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.hero-text p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 40px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(108,124,255,0.4);
  border: 3px solid rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
}
.section-head h2 { font-size: 18px; font-weight: 700; }
@media (max-width: 860px) {
  .hero { padding: 24px 20px; }
  .hero-text h1 { font-size: 21px; }
  .hero-avatar { width: 68px; height: 68px; font-size: 28px; }
}

/* ---------- 搜索栏 & 标签筛选 ---------- */
.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 124, 255, 0.15); }
:root[data-theme="dark"] .search-bar input { background: rgba(255,255,255,0.06); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .search-bar input { background: rgba(255,255,255,0.06); color: var(--text); }
}
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  background: rgba(127, 127, 127, 0.06);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.tag-chip:hover { background: rgba(108, 124, 255, 0.14); color: var(--text); }
.tag-chip.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 124, 255, 0.35);
}
.tag-chip .tag-cnt {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 1px 7px;
}
.tag-link { text-decoration: none; cursor: pointer; transition: opacity 0.2s; }
.tag-link:hover { opacity: 0.7; }

/* ---------- 首页 · 双栏布局 ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

/* 侧边站长名片 */
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.card {
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(80, 100, 200, 0.18); }
/* 渐变发光边框（悬停时显现） */
.card.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(108,124,255,0.5), rgba(154,108,255,0.5), rgba(79,209,197,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card.glass:hover::after { opacity: 1; }
.profile-card { text-align: center; }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 4px auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 124, 255, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.6);
}
.profile-card h2 { font-size: 17px; margin-bottom: 4px; }
.profile-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(108, 124, 255, 0.12);
  color: var(--primary);
  font-weight: 500;
}
.stat-row { display: flex; justify-content: space-around; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(127, 127, 127, 0.15); }
.stat { text-align: center; }
.stat b { display: block; font-size: 20px; background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12px; color: var(--text-2); }

/* 动态流 */
.feed { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  animation: cardIn 0.4s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-card .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.pin-badge {
  background: linear-gradient(120deg, #F6AD55, #ED64A6);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.post-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.post-card .content { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.post-card .content p { margin-bottom: 8px; }
.post-card .content ul { padding-left: 20px; margin-bottom: 8px; }
.post-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---------- 新闻区 ---------- */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 700; }
.page-head p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  animation: cardIn 0.4s var(--ease) both;
}
.news-item .cat {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 600;
}
.news-item h3 { font-size: 16px; flex: 1; }
.news-item time { font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.news-detail .content { font-size: 15px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; }

/* ---------- 站长资料 ---------- */
.profile-page { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-page .full { grid-column: 1 / -1; }
.about-card h2 { font-size: 18px; margin-bottom: 10px; }
.about-card .content { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.timeline { list-style: none; }
.timeline li { position: relative; padding-left: 22px; padding-bottom: 18px; font-size: 14px; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 10px rgba(108, 124, 255, 0.6);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 7px; top: 20px; bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(108,124,255,0.4), transparent);
}
.timeline li:last-child::after { display: none; }
.timeline b { display: block; margin-bottom: 2px; }
.timeline span { color: var(--text-2); font-size: 13px; }

/* ---------- 项目合作 ---------- */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.collab-card { border-radius: var(--radius-lg); padding: 22px; animation: cardIn 0.4s var(--ease) both; }
.collab-card .ico { font-size: 30px; margin-bottom: 10px; }
.collab-card h3 { font-size: 16px; margin-bottom: 6px; }
.collab-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.collab-card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  font-weight: 600;
}
.form-card { margin-top: 18px; }
.form-card h2 { font-size: 18px; margin-bottom: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(127, 127, 127, 0.2);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 124, 255, 0.15);
}
.form-row textarea { min-height: 110px; resize: vertical; }
:root[data-theme="dark"] .form-row input,
:root[data-theme="dark"] .form-row textarea,
:root[data-theme="dark"] .form-row select { background: rgba(255,255,255,0.06); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-row input,
  :root:not([data-theme="light"]) .form-row textarea,
  :root:not([data-theme="light"]) .form-row select { background: rgba(255,255,255,0.06); color: var(--text); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 124, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
  font-family: inherit;
}
.btn:active { transform: scale(0.96); }
.btn:hover { box-shadow: 0 8px 26px rgba(108, 124, 255, 0.45); transform: translateY(-1px); }
/* 水波纹容器 */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
.btn-ghost {
  background: rgba(108, 124, 255, 0.1);
  color: var(--primary);
  box-shadow: none;
}
.btn-danger {
  background: linear-gradient(120deg, #F56565, #ED64A6);
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 管理后台 ---------- */
.admin-login { max-width: 400px; margin: 40px auto; text-align: center; }
.admin-login .card { padding: 32px; }
.admin-login h2 { margin-bottom: 20px; }
.admin-panel h2 { font-size: 18px; margin-bottom: 16px; }
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(127, 127, 127, 0.07);
  margin-bottom: 10px;
  font-size: 14px;
}
.admin-item .btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-2);
  font-size: 14px;
}
.empty .big { font-size: 44px; display: block; margin-bottom: 10px; }

/* ---------- Toast 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(31, 36, 48, 0.9);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 100;
  backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 底部 & 移动端 Tabbar ---------- */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: var(--radius-lg);
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto 24px;
}
.tabbar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  border-radius: var(--radius-lg);
  z-index: 50;
  padding: 8px;
  justify-content: space-around;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
  flex: 1;
}
.tab .tab-ico { font-size: 20px; }
.tab.active { color: var(--primary); background: rgba(108, 124, 255, 0.12); font-weight: 600; }

/* ---------- 管理后台 ---------- */
.admin-shell { display: flex; flex-direction: column; gap: 18px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.admin-tab:hover { background: rgba(108, 124, 255, 0.1); color: var(--text); }
.admin-tab.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px rgba(108, 124, 255, 0.4);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
  animation: cardIn 0.4s var(--ease) both;
}
.stat-card .num {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stat-card .ico { font-size: 26px; margin-bottom: 6px; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.45);
  backdrop-filter: blur(6px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: pageIn 0.3s var(--ease);
}
.modal h3 { font-size: 17px; margin-bottom: 16px; }
.modal .form-row { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.admin-table { width: 100%; }
.admin-table .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(127, 127, 127, 0.07);
  margin-bottom: 10px;
  font-size: 14px;
}
.admin-table .row .info { flex: 1; min-width: 0; }
.admin-table .row .info .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .row .info .sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.badge-pending {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(246, 173, 85, 0.15);
  color: #D69E2E;
  font-weight: 600;
}
.badge-done {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  font-weight: 600;
}
:root[data-theme="dark"] .badge-pending { background: rgba(246, 173, 85, 0.18); color: #EDB64E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-pending { background: rgba(246, 173, 85, 0.18); color: #EDB64E; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .profile-page { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 12px; border-radius: var(--radius-lg); }
  .menu-btn { display: block; }
  .tabbar { display: flex; }
  .container { margin-bottom: 110px; }
  .topbar { top: 8px; }
  .topbar-inner { position: relative; }
  .nav.open .nav-link { display: block; width: 100%; text-align: center; }
  .user-area { margin-left: auto; }
  .user-name { display: none; }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(108, 124, 255, 0.3); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 媒体展示（图片/视频/实况照片） ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.media-grid.single { grid-template-columns: 1fr; }
.media-cell {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(127, 127, 127, 0.08);
}
.media-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}
/* 单图：不裁剪，按原比例显示（GIF 动图也能正常展示） */
.media-grid.single .media-cell { aspect-ratio: auto; }
.media-grid.single .media-cell img { object-fit: contain; }
.media-cell:hover img { transform: scale(1.05); }
.media-video {
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.media-video video {
  width: 100%;
  max-height: 420px;
  display: block;
}
/* 实况照片 */
.live-photo {
  position: relative;
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: rgba(127, 127, 127, 0.08);
  aspect-ratio: 4/3;
}
.live-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--ease);
}
.live-photo .live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.post-del {
  font-size: 12px;
  color: #ED64A6;
  text-decoration: none;
  margin-left: auto;
  cursor: pointer;
}
.post-del:hover { opacity: 0.7; }

/* ---------- 发帖弹窗 ---------- */
.composer-modal { max-width: 560px; }
.media-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(108, 124, 255, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.pick-btn:hover { background: rgba(108, 124, 255, 0.18); }

/* 上传进度条 */
.upload-progress {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,107,157,0.08);
  border: 1px solid rgba(255,107,157,0.2);
}
.upload-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,107,157,0.15);
  overflow: hidden;
}
.upload-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF6B9D, #FFA26B);
  transition: width 0.2s var(--ease);
}
.upload-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-preview { margin-top: 12px; }
.cp-media {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cp-media img, .cp-media video {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}
.cp-media video { width: 140px; }

/* ---------- 维护模式开关 ---------- */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  background: rgba(127, 127, 127, 0.25);
  border-radius: 999px;
  transition: background 0.3s var(--ease);
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease);
}
.switch.on {
  background: linear-gradient(120deg, #F56565, #ED64A6);
}
.switch.on::after { transform: translateX(22px); }
.switch input { display: none; }

/* ---------- 全屏图片查看（Lightbox） ---------- */
.lightbox-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 16, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s var(--ease);
}
.lightbox-body { position: relative; max-width: 92vw; max-height: 88vh; }
.lightbox-img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-img.zoomed { transform: scale(1.8); cursor: zoom-out; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }
.lightbox-count {
  position: absolute;
  top: -40px;
  left: 0;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 12px;
}
@media (max-width: 860px) {
  .lightbox-nav.prev { left: -8px; }
  .lightbox-nav.next { right: -8px; }
}

/* 图片放大提示 */
.media-cell { cursor: pointer; }
.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-cell:hover .zoom-hint { opacity: 1; }

/* ---------- 动态详情页 ---------- */
.post-title {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.post-title:hover { color: var(--primary); }
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(127,127,127,0.12);
  flex-wrap: wrap;
}
.like-summary { font-size: 13px; color: var(--text-2); }
.media-video.detail video { max-height: 520px; }
.live-photo.detail { aspect-ratio: auto; min-height: 200px; }
.detail-grid .media-cell { aspect-ratio: 16/10; }
@media (max-width: 860px) {
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions > div { justify-content: space-between; }
}

/* ---------- 左上角设置齿轮 ---------- */
.settings-gear {
  font-size: 18px;
  text-decoration: none;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
  margin-left: 8px;
}
.settings-gear:hover { color: var(--primary); background: rgba(108,124,255,0.1); transform: rotate(30deg); }

/* ---------- 用户个人中心 ---------- */
.user-profile-card { padding: 24px; }
.user-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.user-avatar-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 20px rgba(108,124,255,0.35);
  flex-shrink: 0;
}
.user-avatar-fallback {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(108,124,255,0.35);
  flex-shrink: 0;
}
.user-profile-info { flex: 1; min-width: 0; }
.user-profile-info h2 { font-size: 20px; margin-bottom: 4px; }
.user-username { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.user-bio { font-size: 14px; color: var(--text); margin-top: 6px; line-height: 1.6; }
.user-hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.my-post-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(127,127,127,0.06);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s;
}
.my-post-row:hover { background: rgba(108,124,255,0.1); }

/* ---------- 资料编辑弹窗 ---------- */
.profile-editor { max-width: 520px; }
.avatar-editor { display: flex; align-items: center; gap: 14px; }
.avatar-preview {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
}
.avatar-preview.fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 26px; font-weight: 700;
}
.hobby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hobby-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127,127,127,0.25);
  background: rgba(127,127,127,0.06);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.hobby-chip:hover { background: rgba(108,124,255,0.12); }
.hobby-chip.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(108,124,255,0.3);
}
@media (max-width: 860px) {
  .user-profile-head { flex-direction: column; text-align: center; }
  .user-avatar-img, .user-avatar-fallback { width: 90px; height: 90px; }
}

/* ---------- 通知铃铛 ---------- */
.notif-bell {
  position: relative;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}
.notif-bell:hover { background: rgba(108,124,255,0.1); }
.notif-dot {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #F56565;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.notif-panel { max-width: 420px; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(127,127,127,0.08);
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}
.notif-item:hover { background: rgba(108,124,255,0.06); }
.notif-item.unread { background: rgba(108,124,255,0.08); }
.notif-ico { font-size: 18px; }

/* ---------- 功能区入口（主页） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 18px 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.feature-card:hover { border-color: var(--primary); }
.f-ico { font-size: 28px; }
.f-name { font-size: 14px; font-weight: 600; }
.f-desc { font-size: 12px; color: var(--text-2); }

/* ---------- 收藏按钮 ---------- */
.fav-btn.faved { color: #F6AD55; }
.fav-btn.faved .fav-ico { text-shadow: 0 0 8px rgba(246,173,85,0.6); }

/* ---------- 主题色选择 ---------- */
.color-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: rgba(127,127,127,0.07);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 13px;
}
.color-opt.active { border-color: var(--primary); background: rgba(108,124,255,0.12); }
.color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- 字体大小 ---------- */
.font-group { display: flex; gap: 10px; }
.font-opt {
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid rgba(127,127,127,0.25);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.font-opt.active {
  border-color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}

/* ---------- 搜索 ---------- */
.search-btn {
  border: none;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  color: var(--text-2);
}
.search-btn:hover { background: rgba(108,124,255,0.1); }
.search-modal { max-width: 500px; }
.gs-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(127,127,127,0.08);
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}
.gs-item:hover { background: rgba(108,124,255,0.08); }

/* ---------- 热门排行徽章 ---------- */
.rank-badge {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #F6AD55, #ED64A6);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- 赞助/赞赏码 ---------- */
.support-qr-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}
.support-qr {
  max-width: 240px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.support-qr:hover { transform: scale(1.03); }

/* ---------- 维护模式提示横幅 ---------- */
.maintenance-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(246, 173, 85, 0.18), rgba(237, 100, 166, 0.14));
  border: 1px solid rgba(246, 173, 85, 0.4);
  box-shadow: 0 6px 20px rgba(246, 173, 85, 0.15);
  animation: pageIn 0.35s var(--ease);
}
.mb-icon { font-size: 28px; flex-shrink: 0; }
.mb-text { flex: 1; min-width: 0; }
.mb-text b { display: block; font-size: 15px; color: #D69E2E; margin-bottom: 3px; }
.mb-text span { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.mb-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #F6AD55, #ED64A6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(246, 173, 85, 0.35);
}
.mb-btn:hover { opacity: 0.9; }
@media (max-width: 860px) {
  .maintenance-banner { flex-wrap: wrap; }
  .mb-btn { width: 100%; text-align: center; }
}

/* ---------- 积分榜 ---------- */
.lb-list { display: flex; flex-direction: column; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(127,127,127,0.08);
}
.lb-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  background: rgba(127,127,127,0.08);
  flex-shrink: 0;
}
.lb-rank.top1 { background: linear-gradient(135deg,#FFD700,#FFA500); color:#fff; }
.lb-rank.top2 { background: linear-gradient(135deg,#C0C0C0,#8fa3b0); color:#fff; }
.lb-rank.top3 { background: linear-gradient(135deg,#CD7F32,#b0703c); color:#fff; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lb-avatar-fb { display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:700; }
.lb-name { flex: 1; font-size: 14px; font-weight: 600; }
.lb-points { font-size: 13px; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ---------- 任务 ---------- */
.points-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(127,127,127,0.06);
}
.task-item.done { opacity: 0.6; }
.task-ico { font-size: 18px; flex-shrink: 0; }
.task-info { flex: 1; min-width: 0; font-size: 14px; }

/* ---------- 私信 ---------- */
.dm-panel { max-width: 460px; }
.dm-conv-list { max-height: 360px; overflow-y: auto; }
.dm-conv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(127,127,127,0.08);
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}
.dm-conv:hover { background: rgba(108,124,255,0.06); }
.dm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dm-avatar-fb { display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:700; }
.dm-unread {
  background: #F56565;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.dm-msgs { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.dm-msg { display: flex; flex-direction: column; max-width: 80%; }
.dm-msg.me { align-self: flex-end; align-items: flex-end; }
.dm-bubble {
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(127,127,127,0.1);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.dm-msg.me .dm-bubble {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}
.dm-time { font-size: 11px; color: var(--text-2); margin-top: 3px; }

/* ---------- 站点公告横幅 ---------- */
.site-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(79, 209, 197, 0.15), rgba(108, 124, 255, 0.12));
  border: 1px solid rgba(79, 209, 197, 0.35);
  animation: pageIn 0.35s var(--ease);
}
.sb-icon { font-size: 18px; flex-shrink: 0; }
.sb-text { font-size: 14px; color: var(--text); line-height: 1.6; flex: 1; }

/* ---------- 作者头像（帖子 meta） ---------- */
.meta .author-avatar, .meta .author-avatar-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---------- 底部弹出面板（发帖） ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.5);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s var(--ease);
}
.sheet-panel {
  width: 100%;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.3s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
.sheet-grabber {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: rgba(127,127,127,0.3);
  margin: 0 auto 10px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sheet-body { overflow-y: auto; }

/* 发帖标题输入框 */
.cp-title-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(127,127,127,0.2);
  background: rgba(255,255,255,0.5);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}
.cp-title-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,157,0.12); }

/* 富文本编辑器 */
.rt-editor {
  min-height: 120px;
  max-height: 40vh;
  overflow-y: auto;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(127,127,127,0.2);
  font-size: 15px;
  line-height: 1.7;
  outline: none;
}
.rt-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,124,255,0.12); }
.rt-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-2);
  pointer-events: none;
}
:root[data-theme="dark"] .rt-editor { background: rgba(255,255,255,0.06); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt-editor { background: rgba(255,255,255,0.06); color: var(--text); } }

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.rt-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(127,127,127,0.2);
  background: rgba(127,127,127,0.06);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s var(--ease);
}
.rt-btn:hover { background: rgba(108,124,255,0.14); border-color: var(--primary); }
.rt-color { padding: 0 8px; font-size: 16px; }

.cp-thumb {
  position: relative;
  display: inline-block;
}
.cp-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cp-del, .cp-delvideo, .cp-dellive {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.wx-tip {
  font-size: 11px;
  color: var(--text-2);
  margin-left: 6px;
}

/* ---------- 火花风首页布局 ---------- */
.home-top { padding: 6px 2px 4px; }
.home-greet { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.home-hello { font-size: 24px; font-weight: 800; }
.home-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.home-me {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
  overflow: hidden;
}
.home-me img { width: 100%; height: 100%; object-fit: cover; }

/* 金刚区 */
.dock {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  padding: 4px 0;
}
.dock-ico {
  width: 50px; height: 50px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dock-name { font-size: 12px; color: var(--text-2); }

/* 公告提示条 */
.announce-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 12px 0;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255,107,157,0.1), rgba(255,162,107,0.1));
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

/* 动态流标题 */
.feed-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 700;
}
.feed-title a { font-size: 13px; color: var(--text-2); text-decoration: none; }

/* 帖子头部（头像+昵称+时间） */
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-head .author-mini { font-weight: 600; color: var(--text); }
.post-head time { margin-left: auto; font-size: 12px; color: var(--text-2); }
.post-head .pin-badge { font-size: 11px; }

/* 手机端 dock 滚动 */
@media (max-width: 860px) {
  .dock { grid-template-columns: repeat(7, 1fr); overflow-x: auto; gap: 4px; }
  .dock-ico { width: 44px; height: 44px; border-radius: 16px; font-size: 19px; }
}

/* ============================================================
   性能分级（html.perf-high / perf-mid / perf-low）
   由 index.html 内联脚本实测帧率后自动标记
   低配：关毛玻璃 + 关光斑动画 + 关卡片动画 → 保证 ≥60fps
   中配：模糊减半 + 光斑弱化
   ============================================================ */

/* ---- 低性能：全部减负 ---- */
html.perf-low .glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--card-bg);
}
html.perf-low .blob { animation: none !important; opacity: 0.08 !important; }
html.perf-low .aurora { display: none; }
html.perf-low .post-card,
html.perf-low .news-item,
html.perf-low .collab-card,
html.perf-low .campus-item,
html.perf-low .stat-card,
html.perf-low .dock-item,
html.perf-low .page-in {
  animation: none !important;
}
html.perf-low .post-card,
html.perf-low .news-item,
html.perf-low .collab-card,
html.perf-low .campus-item {
  transition: none !important;
}
html.perf-low .card.glass::after { display: none; }
html.perf-low .topbar,
html.perf-low .bottom-dock {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---- 中性能：模糊减半、光斑弱化 ---- */
html.perf-mid .glass {
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}
html.perf-mid .blob {
  filter: blur(40px);
  animation-duration: 26s;
}
html.perf-mid .topbar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html.perf-mid .post-card { animation-duration: 0.25s; }

/* ---- 高/中性能：live-photo 详情页点击播放提示 ---- */
.live-photo.detail { cursor: pointer; }
.live-photo.detail .live-badge {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.live-photo.detail .live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

/* ---------- 好友 & 群组 ---------- */
.user-uid { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.user-uid b { color: var(--primary); font-size: 15px; letter-spacing: 0.5px; }
.friend-list { display: flex; flex-direction: column; gap: 10px; }
.friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(127,127,127,0.06);
  transition: background 0.2s var(--ease);
}
.friend-row:hover { background: rgba(127,127,127,0.12); }
.friend-row .btn { flex-shrink: 0; }

/* 媒体消息气泡 */
.dm-bubble.dm-media {
  padding: 4px;
  overflow: hidden;
  max-width: 240px;
  background: transparent;
}
.dm-msg.me .dm-bubble.dm-media { background: transparent; }
.dm-bubble.dm-media img {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
}
.dm-bubble.dm-media video {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 12px;
}
.dm-bubble.dm-media audio {
  display: block;
  width: 200px;
  max-width: 60vw;
}
