﻿/* ========== 全局重置 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* 跨浏览器 normalize */
html {
  font-size: 17.5px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::placeholder {
  color: #9ca3af;
  opacity: 1;
}
::-moz-placeholder {
  color: #9ca3af;
  opacity: 1;
}
::-ms-input-placeholder {
  color: #9ca3af;
}

/* ========== 主题变量（默认：深空蓝）========== */
:root,
[data-theme="deepblue"] {
  --primary: #5c6cf0;
  --primary-light: #8b97ff;
  --primary-dark: #4a52d4;
  --primary-rgb: 92, 108, 240;
  --bg: #f3f5fc;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e0e4f7;
  --surface: #f4f6fd;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --hero-gradient: linear-gradient(135deg, #6c5ce7 0%, #6678f0 25%, #e84393 50%, #fd7e40 75%, #fdcb6e 100%);
  --bubble-gradient: linear-gradient(135deg, #6c5ce7, #e84393);
  --hero-text: #ffffff;
  --hero-subtext: rgba(255,255,255,0.9);
  --tag-bg: #eef0ff;
  --guestbook-bg: rgba(108, 92, 231, 0.04);
  --guestbook-border: rgba(108, 92, 231, 0.15);
  /* 鲜艳强调色 */
  --accent-pink: #e84393;
  --accent-orange: #fd7e40;
  --accent-yellow: #fdcb6e;
  --accent-cyan: #00cec9;
  --accent-green: #00b894;
  /* 全局排版与间距刻度（所有主题共用，便于统一精致感） */
  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.5rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --section-gap: 22px;
  --container: 1200px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 24px -10px rgba(15, 23, 42, 0.12);
}

/* 主题2：极光绿 */
[data-theme="aurora"] {
  --primary: #059669;
  --primary-light: #34d399;
  --primary-dark: #047857;
  --primary-rgb: 5, 150, 105;
  --bg: #f1faf4;
  --card-bg: #ffffff;
  --text: #1a2e1a;
  --text-secondary: #4b7c5f;
  --border: #d1fae5;
  --surface: #f4faf6;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --bubble-gradient: linear-gradient(135deg, #11998e, #38ef7d);
  --hero-text: #ffffff;
  --hero-subtext: rgba(255,255,255,0.9);
  --tag-bg: #d1fae5;
  --guestbook-bg: rgba(17, 153, 142, 0.04);
  --guestbook-border: rgba(17, 153, 142, 0.15);
}

/* 主题3：日落橙 */
[data-theme="sunset"] {
  --primary: #ea580c;
  --primary-light: #fb923c;
  --primary-dark: #c2410c;
  --primary-rgb: 234, 88, 12;
  --bg: #fdf8f3;
  --card-bg: #ffffff;
  --text: #2e1a0f;
  --text-secondary: #9a6544;
  --border: #fed7aa;
  --surface: #fdf7f2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
  --bubble-gradient: linear-gradient(135deg, #f12711, #f5af19);
  --hero-text: #ffffff;
  --hero-subtext: rgba(255,255,255,0.9);
  --tag-bg: #ffedd5;
  --guestbook-bg: rgba(241, 39, 17, 0.03);
  --guestbook-border: rgba(241, 39, 17, 0.12);
}

/* 主题4：暗夜紫 */
[data-theme="midnight"] {
  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-dark: #8b5cf6;
  --primary-rgb: 167, 139, 250;
  --bg: #0f0f1e;
  --card-bg: #1a1a2e;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --border: #2d2d44;
  --surface: #16162b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
  --hero-gradient: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #6d28d9 100%);
  --bubble-gradient: linear-gradient(135deg, #6d28d9, #a78bfa);
  --hero-text: #f0f0ff;
  --hero-subtext: rgba(200, 200, 255, 0.7);
  --tag-bg: rgba(167, 139, 250, 0.15);
  --guestbook-bg: rgba(167, 139, 250, 0.06);
  --guestbook-border: rgba(167, 139, 250, 0.15);
}

/* 主题5：白蓝渐变（官方专业） */
[data-theme="sky"] {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --primary-rgb: 59, 130, 246;
  --bg: #f4f8fb;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --surface: #f5f8fc;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 30%, #93c5fd 60%, #3b82f6 100%);
  --bubble-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
  --hero-text: #1e3a5f;
  --hero-subtext: rgba(30, 58, 95, 0.72);
  --tag-bg: #dbeafe;
  --guestbook-bg: rgba(59, 130, 246, 0.03);
  --guestbook-border: rgba(59, 130, 246, 0.1);
}

/* 主题6：深海商务（企业稳重） */
[data-theme="ocean"] {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --primary-rgb: 30, 64, 175;
  --bg: #f0f4fa;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --border: #e2e8f0;
  --surface: #f3f6fb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #0c1445 0%, #1e3a8a 40%, #2563eb 100%);
  --bubble-gradient: linear-gradient(135deg, #1e3a8a, #2563eb);
  --hero-text: #ffffff;
  --hero-subtext: rgba(191, 219, 254, 0.85);
  --tag-bg: #dbeafe;
  --guestbook-bg: rgba(30, 64, 175, 0.03);
  --guestbook-border: rgba(30, 64, 175, 0.1);
}

/* 主题7：学术墨绿（典雅稳重） */
[data-theme="ivy"] {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --primary-rgb: 15, 118, 110;
  --bg: #f2f7f5;
  --card-bg: #ffffff;
  --text: #1a2a28;
  --text-secondary: #5c7c76;
  --border: #d1e8e2;
  --surface: #f4f8f6;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #0a2e2a 0%, #134e4a 40%, #0f766e 100%);
  --bubble-gradient: linear-gradient(135deg, #0f766e, #14b8a6);
  --hero-text: #f0fdfa;
  --hero-subtext: rgba(204, 251, 241, 0.82);
  --tag-bg: #ccfbf1;
  --guestbook-bg: rgba(15, 118, 110, 0.03);
  --guestbook-border: rgba(15, 118, 110, 0.1);
}

/* 主题8：素净灰（极简专业） */
[data-theme="slate"] {
  --primary: #475569;
  --primary-light: #64748b;
  --primary-dark: #334155;
  --primary-rgb: 71, 85, 105;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --surface: #f7f9fb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  --bubble-gradient: linear-gradient(135deg, #475569, #64748b);
  --hero-text: #f8fafc;
  --hero-subtext: rgba(226, 232, 240, 0.8);
  --tag-bg: #f1f5f9;
  --guestbook-bg: rgba(71, 85, 105, 0.03);
  --guestbook-border: rgba(71, 85, 105, 0.1);
}

/* 主题9：苹果风（Apple Design） */
[data-theme="apple"] {
  --primary: #0071e3;
  --primary-light: #2997ff;
  --primary-dark: #0058b0;
  --primary-rgb: 0, 113, 227;
  --bg: #fbfbfd;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --border: #d2d2d7;
  --surface: #f5f5f7;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --hero-gradient: linear-gradient(180deg, #1d1d1f 0%, #2d2d30 50%, #1d1d1f 100%);
  --bubble-gradient: linear-gradient(135deg, #0071e3, #2997ff);
  --hero-text: #f5f5f7;
  --hero-subtext: rgba(245, 245, 247, 0.65);
  --tag-bg: #f5f5f7;
  --guestbook-bg: rgba(0, 113, 227, 0.02);
  --guestbook-border: rgba(0, 113, 227, 0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ========== 顶部区域 ========== */
.hero {
  background: var(--hero-gradient);
  padding: 32px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, rgba(253,126,64,0.08) 40%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(253,203,110,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,206,201,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ========== 顶部背景广告位（Hero 背景，后台「广告位管理 → 顶部背景广告位」）========== */
/* 层级：.hero-ad 固定 z-index:0，低于 .hero-inner 的 z-index:1，
   所以站名/副标题与右上角按钮始终可点，广告图不会挡住任何操作。 */
.hero.has-hero-ad {
  background: #0d1117;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 开启广告后关掉原来的漂浮光斑与彩色高光，避免糊在广告图上 */
.hero.has-hero-ad::before,
.hero.has-hero-ad::after { display: none; }

.hero-ad {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-ad[hidden] { display: none; }

.hero-ad-media {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0d1117;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-ad-media.is-active { opacity: 1; }
.hero-ad-media[hidden] { display: none; }
.hero-ad[data-fit="contain"] .hero-ad-media { background-size: contain; }
.hero-ad[data-fit="repeat"] .hero-ad-media {
  background-size: auto;
  background-repeat: repeat;
}

/* 轮播指示点（多张时显示，可在后台关闭） */
.hero-ad-dots {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-ad-dots[hidden] { display: none; }
.hero-ad-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
  font: inherit;
  line-height: 0;
}
.hero-ad-dot:hover { background: rgba(255,255,255,0.75); }
.hero-ad-dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}
.hero-ad-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 自定义 HTML 广告（高级模式，图片留空时生效） */
.hero-ad-html {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ad-html[hidden] { display: none; }
.hero-ad-html > img,
.hero-ad-html > svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 可读性遮罩：浅色广告图上保证白色站名清晰，可在后台关闭 */
.hero-ad-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(8,12,22,0.34) 0%,
    rgba(8,12,22,0.22) 45%,
    rgba(8,12,22,0.46) 100%);
}
.hero-ad[data-mask="0"] .hero-ad-mask { display: none; }

/* 外链点击层：铺满整条，位于 .hero-inner 之下 */
.hero-ad-hit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}
.hero-ad-hit[hidden] { display: none; }

/* 广告标识（合规提示，可在后台关闭） */
.hero-ad-tag {
  position: absolute;
  right: 10px;
  bottom: 6px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.3);
  pointer-events: none;
  user-select: none;
}
.hero-ad-tag[hidden] { display: none; }

@media (max-width: 768px) {
  .hero.has-hero-ad { min-height: 156px; }
  .hero-ad-tag { right: 8px; bottom: 4px; font-size: 0.58rem; }
  .hero-ad-dots { bottom: 4px; gap: 5px; padding: 3px 7px; }
  .hero-ad-dot { width: 6px; height: 6px; }
  .hero-ad-dot.is-active { width: 15px; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -20px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.logo-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}

.logo-text {
  text-align: left;
}

.hero h1 {
  color: var(--hero-text);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.28),
    0 2px 0 rgba(0,0,0,0.18),
    0 3px 0 rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.14),
    0 8px 28px rgba(0,0,0,0.08);
}

.hero p {
  color: var(--hero-subtext);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== 搜索栏（悬浮于 Banner 上方）========== */
.search-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: 88%;
  z-index: 10;
}

.search-input-wrap {
  position: relative;
  background: var(--card-bg);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  transition: box-shadow 0.3s;
}

.search-input-wrap:focus-within {
  box-shadow: 0 4px 30px rgba(var(--primary-rgb), 0.3);
}

/* 无Banner时的搜索栏（独立居中） */
.search-bar--standalone {
  position: static;
  transform: none;
  margin: 24px auto;
  width: 580px;
  max-width: 88%;
}

.search-bar--standalone .search-input-wrap {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.search-input-wrap .search-icon {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-right: 12px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  height: 100%;
}

.search-input-wrap input::placeholder { color: #bbb; }

.search-clear {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 4px 8px;
  display: none;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--text); }

/* ========== 搜索结果 ========== */
.search-results {
  max-width: var(--container);
  margin: 20px auto;
  padding: 0 24px;
  display: none;
}

.search-results.active { display: block; }

.search-results h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
}

.search-result-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.search-result-item .icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-result-item:hover .icon {
  transform: scale(1.1) rotate(-5deg);
}

.search-result-item .info { flex: 1; min-width: 0; }
.search-result-item .info .title { font-weight: 600; font-size: 0.95rem; }
.search-result-item .info .desc { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item .cat-tag {
  font-size: 0.72rem;
  background: var(--tag-bg);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ========== 主内容区域 ========== */
.main-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 0;
}

.main-content.hidden { display: none; }

/* ========== 分类区块 ========== */
.category-section {
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 分区标题统一规范 ==========
   各分区头部（.category-header / .quick-entries-title / .ai-search-header / .guestbook-header）
   视觉规范保持一致：标题 1.05rem/700/var(--text)；带分隔线者统一为
   品牌主色 → 透明、2px（见下方 .line）。DOM 结构各异，仅对齐视觉，不动 JS。 */
.category-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding-left: 2px;
}

.category-header .cat-icon {
  font-size: 1.2rem;
}

.category-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.category-header .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 1px;
}

/* ========== 链接卡片网格 ========== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* 分类数量标签 */
.category-header .cat-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(var(--primary-rgb), 0.06);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

/* 展开更多按钮 */
.show-more-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(var(--primary-rgb), 0.25);
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.02);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.show-more-links:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.4);
  border-style: solid;
  box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.1);
}

.show-more-links .show-more-icon {
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.show-more-links .show-more-icon.collapse {
  transform: rotate(180deg);
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* 悬浮时顶部流光条 */
.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark), var(--primary-light));
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* 悬浮时背景光晕 */
.link-card::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08), transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.link-card:hover::before {
  transform: scaleX(1);
  animation: shimmer 1.5s linear infinite;
}

.link-card:hover::after {
  width: 200%; height: 200%;
}

@keyframes shimmer {
  0% { background-position: 300% 0; }
  100% { background-position: -100% 0; }
}

/* 首字母渐变头像 */
.link-card .card-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.link-card:hover .card-avatar {
  transform: scale(1.12) rotate(-5deg);
}

.link-card .card-body {
  flex: 1;
  min-width: 0;
}

.link-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}

.link-card:hover .card-title {
  color: var(--primary);
}

.link-card .card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-bottom: 3px;
}

.link-card .card-domain {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s;
}

.link-card:hover .card-domain {
  opacity: 1;
}

/* 热门标识 */
.link-card .card-hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
}

.link-card.is-hot {
  border-color: rgba(255, 107, 107, 0.3);
}

.link-card.is-hot:hover {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.12);
}

.link-card .card-clicks {
  margin-left: 6px;
  color: var(--primary);
  opacity: 0.7;
  font-weight: 500;
}

.link-card .card-arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.85rem;
  font-weight: 700;
}

.link-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  transform: translateX(0);
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: 1rem; }

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 20px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer a {
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer a:hover { opacity: 0.8; }

/* ========== 右上角操作区（主题切换 + 深浅模式 + 在线人数 + 登录）==========
   统一玻璃拟态规格：34px 高、圆角胶囊、1px 低对比描边 + 轻投影
   —— 尺寸/描边/阴影三个变量改动请同步 .hero-user-btn / .online-badge */
.hero-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 主题切换器 */
.theme-switcher {
  position: relative;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-size: 0.88rem;
  color: #fff;
}

.theme-switcher:hover {
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}

.theme-switcher:active { transform: translateY(0) scale(0.95); }

.theme-current {
  line-height: 1;
}

.theme-dropdown {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  padding: 6px;
  min-width: 132px;
  z-index: 101;
  animation: fadeIn 0.2s;
}

.theme-switcher.active .theme-dropdown {
  display: block;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #333;
  transition: background 0.2s;
  white-space: nowrap;
}

.theme-option:hover {
  background: #f3f4f6;
}

.theme-option.active {
  background: #eef2ff;
  font-weight: 600;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* 隐藏后台入口：离屏占位，肉眼不可见、不可点击、不进 Tab 序、不影响布局 */
.admin-hidden-entry {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  font-size: 0;
}

/* 深浅切换按钮（与 .theme-switcher 同规格） */
.dark-toggle {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.dark-toggle:hover {
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}
.dark-toggle:active { transform: translateY(0) scale(0.95); }

/* 顶部用户登录/注册入口（与图标按钮同高 34px，视觉更整齐） */
.hero-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-user-btn {
  height: 34px;
  padding: 0 14px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 17px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.hero-user-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.42);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}
.hero-user-btn:active { transform: translateY(0) scale(0.97); }
.hero-user-btn.hero-user-logout {
  background: rgba(255,90,90,0.22);
  border-color: rgba(255,150,150,0.38);
}
.hero-user-btn.hero-user-logout:hover {
  background: rgba(255,90,90,0.34);
  border-color: rgba(255,150,150,0.55);
}
.hero-user-name {
  display: inline-flex;
  align-items: center;
}
.hero-user-center-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0 14px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 17px;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  white-space: nowrap;
}
.hero-user-center-link:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.42);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}
@media (max-width: 768px) {
  .hero-user-btn { padding: 0 11px; font-size: 0.78rem; }
  .hero-user-center-link { padding: 0 11px; font-size: 0.78rem; }
}

/* 全局暗色模式覆盖 */
body[data-mode="dark"] {
  --bg: #1a1a2e;
  --card-bg: #252540;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --border: #3d3d5c;
  --surface: #16162b;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
  --tag-bg: rgba(255,255,255,0.08);
  --guestbook-bg: rgba(255,255,255,0.04);
  --guestbook-border: rgba(255,255,255,0.1);
}

body[data-mode="dark"] .announcement-bar {
  background: linear-gradient(90deg, #2d2d44, #252540, #2d2d44);
  border-bottom-color: #3d3d5c;
}
body[data-mode="dark"] .ann-face-label {
  color: #ffd54f;
  background: linear-gradient(90deg, rgba(255,213,79,0.16), rgba(255,213,79,0));
}
body[data-mode="dark"] .ann-badge { box-shadow: 0 0 0 2px #2d2d44; }
body[data-mode="dark"] .announcement-item { color: #94a3b8; }
body[data-mode="dark"] .announcement-item .ann-title { color: #c4b5fd; }
body[data-mode="dark"] .announcement-item:hover { background: rgba(255,255,255,0.05); }
body[data-mode="dark"] .search-input-wrap input::placeholder { color: #6b7280; }
body[data-mode="dark"] .contact-modal { background: #252540; }
body[data-mode="dark"] .cm-form-group input,
body[data-mode="dark"] .cm-form-group textarea {
  background: #1a1a2e; color: #e2e8f0;
}
body[data-mode="dark"] .cm-form-group input:focus,
body[data-mode="dark"] .cm-form-group textarea:focus {
  background: #1e1e36;
}
body[data-mode="dark"] .cm-form-group input::placeholder,
body[data-mode="dark"] .cm-form-group textarea::placeholder { color: #6b7280; }
body[data-mode="dark"] .announcement-list-card { background: #252540; }
body[data-mode="dark"] .ann-list-header { border-bottom-color: #3d3d5c; }
body[data-mode="dark"] .ann-list-item { border-bottom-color: #3d3d5c; }
body[data-mode="dark"] .ann-list-item:hover { background: rgba(255,255,255,0.03); }
body[data-mode="dark"] .ann-list-close { background: rgba(255,255,255,0.1); color: #94a3b8; }
body[data-mode="dark"] .ann-list-close:hover { background: rgba(255,255,255,0.2); }
body[data-mode="dark"] .theme-dropdown { background: #252540; }
body[data-mode="dark"] .theme-option { color: #e2e8f0; }
body[data-mode="dark"] .theme-option:hover { background: rgba(255,255,255,0.08); }
body[data-mode="dark"] .theme-option.active { background: rgba(167,139,250,0.2); }
body[data-mode="dark"] .banner-wrapper { background: #1a1a2e; }
body[data-mode="dark"] .search-input-wrap { background: #252540; }

/* ========== 苹果风皮肤 — 全组件覆盖 ========== */

/* --- 全局排版 --- */
[data-theme="apple"] body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero 顶部区域 --- */
[data-theme="apple"] .hero {
  padding: 56px 20px 32px;
  background: linear-gradient(180deg, #1d1d1f 0%, #2d2d30 60%, #1d1d1f 100%);
}
[data-theme="apple"] .hero::before { display: none; }
[data-theme="apple"] .hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.8px;
  text-shadow: none;
}
[data-theme="apple"] .hero p {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: none;
}
[data-theme="apple"] .logo-icon {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
[data-theme="apple"] .logo-icon img {
  border-radius: 22px;
}
[data-theme="apple"] .logo-text h1 { letter-spacing: -0.5px; }

/* --- 右上角操作区 --- */
[data-theme="apple"] .hero-actions .theme-switcher,
[data-theme="apple"] .hero-actions .dark-toggle {
  border-radius: 50px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .hero-actions .theme-switcher:hover,
[data-theme="apple"] .hero-actions .dark-toggle:hover {
  background: rgba(255,255,255,0.15);
}
[data-theme="apple"] .theme-dropdown {
  border-radius: 14px;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="apple"] .theme-option {
  border-radius: 10px;
  transition: background 0.2s;
}
[data-theme="apple"] .theme-option:hover {
  background: rgba(0,0,0,0.04);
}
[data-theme="apple"] .theme-option.active {
  background: rgba(0,113,227,0.06);
}
[data-theme="apple"] .theme-dot {
  border-radius: 50%;
}

/* --- 公告栏 --- */
[data-theme="apple"] .announcement-bar {
  background: #f5f5f7;
  border-bottom: 1px solid var(--border);
  height: 40px;
}
[data-theme="apple"] .ann-face-label {
  color: var(--primary);
  background: linear-gradient(90deg, rgba(0,113,227,0.12), rgba(0,113,227,0));
  font-weight: 500;
  letter-spacing: 0.2px;
}
[data-theme="apple"] .ann-badge { box-shadow: 0 0 0 2px #f5f5f7; }
[data-theme="apple"] .announcement-item {
  color: var(--text);
  font-weight: 400;
}
[data-theme="apple"] .announcement-item .ann-title {
  color: var(--primary);
}
[data-theme="apple"] .announcement-item .ann-sep {
  color: var(--text-secondary);
}

/* --- Banner 轮播图 --- */
[data-theme="apple"] .banner-section {
  margin: 16px auto 16px;
}
[data-theme="apple"] .banner-wrapper {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="apple"] .banner-arrow {
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .banner-arrow:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.05);
}
[data-theme="apple"] .banner-dot {
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .banner-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 50px;
}

/* --- 主搜索栏 --- */
[data-theme="apple"] .search-input-wrap {
  border-radius: 50px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
[data-theme="apple"] .search-input-wrap:focus-within {
  border-color: rgba(0,113,227,0.3);
  box-shadow: 0 4px 30px rgba(0,113,227,0.12);
}
[data-theme="apple"] .search-input-wrap input {
  font-weight: 400;
}
[data-theme="apple"] .search-input-wrap input::placeholder {
  color: #aeaeb2;
}

/* --- 搜索结果 --- */
[data-theme="apple"] .search-results h3 {
  font-weight: 600;
  letter-spacing: -0.2px;
}
[data-theme="apple"] .search-result-item {
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .search-result-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
[data-theme="apple"] .search-result-item .icon {
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="apple"] .search-result-item .info .title {
  font-weight: 600;
}
[data-theme="apple"] .search-result-item .cat-tag {
  border-radius: 50px;
  font-weight: 500;
}

/* --- AI 搜索区域 --- */
[data-theme="apple"] .ai-search-section {
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
[data-theme="apple"] .ai-search-section:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
[data-theme="apple"] .ai-search-input-wrap {
  border-radius: 12px;
  background: #f5f5f7;
  border-color: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .ai-search-input-wrap:focus-within {
  background: #efeff3;
  box-shadow: 0 0 0 4px rgba(0,113,227,0.08);
}
[data-theme="apple"] .ai-search-input {
  background: transparent;
  font-weight: 400;
}
[data-theme="apple"] .ai-search-input::placeholder {
  color: #aeaeb2;
}
[data-theme="apple"] .ai-search-btn {
  border-radius: 980px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .ai-search-btn:hover {
  opacity: 0.88;
  transform: scale(1.02);
}
[data-theme="apple"] .ai-search-clear {
  border-radius: 50%;
  transition: all 0.2s;
}
[data-theme="apple"] .ai-search-clear:hover {
  background: rgba(0,0,0,0.06);
}
[data-theme="apple"] .ai-plat-card {
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .ai-plat-card:hover {
  background: #e8e8ed;
  transform: translateY(-1px);
}

/* --- 快捷入口 --- */
[data-theme="apple"] .quick-entries-section {
  padding: 0 20px;
}
[data-theme="apple"] .quick-entries-title h3 {
  font-weight: 600;
  letter-spacing: -0.3px;
}
[data-theme="apple"] .quick-entry-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .quick-entry-card:hover {
  background: #f5f5f7;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
[data-theme="apple"] .qe-title {
  font-weight: 600;
}

/* --- 分类区 + 链接卡片 --- */
[data-theme="apple"] .main-content {
  padding: 18px 24px 0;
}
[data-theme="apple"] .category-section {
  margin-bottom: 16px;
}
[data-theme="apple"] .category-header h2 {
  font-weight: 600;
  letter-spacing: -0.4px;
  font-size: 1.05rem;
}
[data-theme="apple"] .category-header .line {
  height: 1px;
  background: var(--border);
}
[data-theme="apple"] .links-grid {
  gap: 10px;
}
[data-theme="apple"] .link-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .link-card::before { display: none; }
[data-theme="apple"] .link-card::after { display: none; }
[data-theme="apple"] .link-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: transparent;
}
[data-theme="apple"] .link-card:hover::before { display: none; }
[data-theme="apple"] .link-card:hover::after { display: none; }
[data-theme="apple"] .link-card .card-title {
  font-weight: 600;
  letter-spacing: -0.1px;
}
[data-theme="apple"] .link-card .card-avatar {
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="apple"] .link-card:hover .card-avatar {
  transform: scale(1.05);
}
[data-theme="apple"] .link-card .card-desc {
  color: var(--text-secondary);
}
[data-theme="apple"] .link-card .card-domain {
  color: var(--text-secondary);
}
[data-theme="apple"] .link-card .card-hot-badge {
  border-radius: 6px;
}
[data-theme="apple"] .link-card.is-hot:hover {
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.1);
}
[data-theme="apple"] .link-card .card-arrow {
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .link-card:hover .card-arrow {
  color: var(--primary);
  transform: translateX(2px);
}
[data-theme="apple"] .empty-state .icon {
  opacity: 0.3;
}
[data-theme="apple"] .empty-state p {
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- 留言本 --- */
[data-theme="apple"] .guestbook-wrapper {
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 4%, #f5f5f7 96%, #fbfbfd 100%);
}
[data-theme="apple"] .guestbook-wrapper::before {
  background: linear-gradient(90deg, transparent, rgba(0,113,227,0.15), transparent);
}
[data-theme="apple"] .guestbook-header h2 {
  font-weight: 700;
  letter-spacing: -0.4px;
  font-size: 0.95rem;
}
[data-theme="apple"] .gb-header-icon {
  filter: none;
}
[data-theme="apple"] .gb-header-stats {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}
[data-theme="apple"] .gb-user-name-display {
  border-radius: 50px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 5px 14px;
}
[data-theme="apple"] .guestbook-post-btn {
  border-radius: 980px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 5px 16px;
  font-size: 0.78rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .guestbook-post-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
[data-theme="apple"] .gb-user-btn {
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 5px 14px;
}
[data-theme="apple"] .gb-content-card {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
[data-theme="apple"] .gb-toolbar {
  border-bottom: 1px solid var(--border);
}
[data-theme="apple"] .gb-cat-tab {
  border-radius: 50px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .gb-cat-tab:hover {
  background: rgba(0,113,227,0.04);
}
[data-theme="apple"] .gb-cat-tab.active {
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,113,227,0.15);
}
[data-theme="apple"] .gb-sort-bar {
  border-radius: 50px;
  border: 1px solid var(--border);
}
[data-theme="apple"] .gb-sort-tab {
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .gb-sort-tab.active {
  box-shadow: 0 1px 4px rgba(0,113,227,0.15);
}
[data-theme="apple"] .guestbook-card {
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .guestbook-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
[data-theme="apple"] .guestbook-card.pinned {
  border-radius: 18px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(0,113,227,0.02), var(--card-bg));
}
[data-theme="apple"] .gb-avatar {
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="apple"] .gb-user-name {
  font-weight: 600;
  letter-spacing: -0.1px;
}
[data-theme="apple"] .gb-pin-badge {
  border-radius: 50px;
  font-weight: 500;
}
[data-theme="apple"] .gb-cat-badge {
  border-radius: 50px;
  font-weight: 500;
}
[data-theme="apple"] .gb-content {
  line-height: 1.6;
  letter-spacing: -0.01em;
}
[data-theme="apple"] .gb-action-row {
  border-top: 1px solid var(--border);
}
[data-theme="apple"] .gb-like-btn,
[data-theme="apple"] .gb-fav-btn,
[data-theme="apple"] .gb-reply-btn {
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .gb-pagination .page-btn,
[data-theme="apple"] .gb-pagination .page-arrow {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}
[data-theme="apple"] .guestbook-empty .icon { opacity: 0.25; }
[data-theme="apple"] .guestbook-empty p { color: var(--text-secondary); font-weight: 400; }

/* --- 联系管理员弹窗 --- */
[data-theme="apple"] .contact-modal-overlay {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="apple"] .contact-modal {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: contactSlideApple 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes contactSlideApple {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
[data-theme="apple"] .contact-modal .cm-header {
  border-radius: 18px 18px 0 0;
}
[data-theme="apple"] .contact-modal .cm-close {
  border-radius: 50%;
  transition: all 0.2s;
}
[data-theme="apple"] .contact-modal .cm-close:hover {
  background: rgba(255,255,255,0.25);
}
[data-theme="apple"] .cm-form-group input {
  border-radius: 10px;
  font-weight: 400;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .cm-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.08);
}
[data-theme="apple"] .cm-form-group textarea {
  border-radius: 10px;
  font-weight: 400;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="apple"] .cm-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.08);
}

/* --- 联系浮钮 --- */
[data-theme="apple"] .contact-bubble {
  background: linear-gradient(135deg, #0a84ff 0%, #0071e3 100%);
  box-shadow: 0 8px 24px rgba(0,113,227,0.35), 0 2px 6px rgba(0,0,0,0.12);
}
[data-theme="apple"] .contact-bubble:hover {
  box-shadow: 0 12px 32px rgba(0,113,227,0.45), 0 4px 10px rgba(0,0,0,0.15);
}

/* --- 公告详情弹窗 --- */
[data-theme="apple"] .announcement-detail-overlay {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="apple"] .announcement-list-card {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* --- 页脚 --- */
[data-theme="apple"] .footer {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: #f5f5f7;
  padding: 24px 20px;
}
[data-theme="apple"] .footer a {
  color: var(--primary);
  font-weight: 400;
  transition: opacity 0.2s;
}
[data-theme="apple"] .footer a:hover { opacity: 0.7; }

/* --- 滚动条 --- */
[data-theme="apple"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
[data-theme="apple"] ::-webkit-scrollbar-track {
  background: transparent;
}
[data-theme="apple"] ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 50px;
}
[data-theme="apple"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

/* ========== 苹果风暗色模式 ========== */
body[data-mode="dark"][data-theme="apple"] {
  --bg: #000000;
  --card-bg: #1d1d1f;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --border: #38383a;
  --surface: #1a1a1c;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
  --tag-bg: rgba(255,255,255,0.08);
  --guestbook-bg: rgba(255,255,255,0.02);
  --guestbook-border: rgba(255,255,255,0.06);
}
body[data-mode="dark"][data-theme="apple"] .hero {
  --hero-gradient: linear-gradient(180deg, #000 0%, #1d1d1f 100%);
}
body[data-mode="dark"][data-theme="apple"] .hero-actions .theme-switcher,
body[data-mode="dark"][data-theme="apple"] .hero-actions .dark-toggle {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
body[data-mode="dark"][data-theme="apple"] .theme-dropdown {
  background: rgba(30,30,32,0.9);
  border-color: rgba(255,255,255,0.08);
}
body[data-mode="dark"][data-theme="apple"] .announcement-bar {
  background: #1d1d1f;
  border-bottom-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .search-input-wrap {
  background: rgba(30,30,32,0.8);
  border-color: rgba(255,255,255,0.08);
}
body[data-mode="dark"][data-theme="apple"] .search-input-wrap input::placeholder {
  color: #6e6e72;
}
body[data-mode="dark"][data-theme="apple"] .ai-search-input-wrap {
  background: #2d2d30;
}
body[data-mode="dark"][data-theme="apple"] .ai-plat-card {
  background: #2d2d30;
}
body[data-mode="dark"][data-theme="apple"] .ai-plat-card:hover {
  background: #3a3a3c;
}
body[data-mode="dark"][data-theme="apple"] .quick-entry-card {
  background: var(--card-bg);
  border-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .quick-entry-card:hover {
  background: #2d2d30;
}
body[data-mode="dark"][data-theme="apple"] .link-card {
  background: var(--card-bg);
  border-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .guestbook-wrapper {
  background: linear-gradient(180deg, #000 0%, #1d1d1f 4%, #1d1d1f 96%, #000 100%);
}
body[data-mode="dark"][data-theme="apple"] .gb-content-card {
  background: var(--card-bg);
  border-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .gb-toolbar {
  border-bottom-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .gb-cat-tab {
  background: var(--bg);
}
body[data-mode="dark"][data-theme="apple"] .gb-sort-bar {
  background: var(--bg);
}
body[data-mode="dark"][data-theme="apple"] .guestbook-card {
  background: var(--card-bg);
  border-color: var(--border);
}
body[data-mode="dark"][data-theme="apple"] .gb-user-name-display {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
body[data-mode="dark"][data-theme="apple"] .contact-modal {
  background: var(--card-bg);
}
body[data-mode="dark"][data-theme="apple"] .footer {
  background: #1d1d1f;
}
body[data-mode="dark"][data-theme="apple"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}
body[data-mode="dark"][data-theme="apple"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ========== 苹果风移动端适配 ========== */
@media (max-width: 768px) {
  [data-theme="apple"] .hero { padding: 48px 16px 28px; }
  [data-theme="apple"] .hero h1 { font-size: 2rem; letter-spacing: -0.5px; }
  [data-theme="apple"] .hero p { font-size: 1rem; letter-spacing: 0.3px; }
  [data-theme="apple"] .announcement-bar { height: 38px; }
  [data-theme="apple"] .ann-face-label { padding: 0 8px; font-size: 0.68rem; }
  [data-theme="apple"] .main-content { padding: 14px 16px 0; }
  [data-theme="apple"] .category-header h2 { font-size: 0.95rem; }
  [data-theme="apple"] .link-card { border-radius: 12px; }
  [data-theme="apple"] .guestbook-card { border-radius: 14px; }
  [data-theme="apple"] .guestbook-header h2 { font-size: 0.95rem; }
  [data-theme="apple"] .footer { padding: 20px 16px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  [data-theme="apple"] .hero h1 { font-size: 1.75rem; }
  [data-theme="apple"] .hero p { font-size: 0.92rem; }
  [data-theme="apple"] .logo-icon img { width: 52px; height: 52px; border-radius: 18px; }
  [data-theme="apple"] .category-header h2 { font-size: 0.95rem; }
  [data-theme="apple"] .link-card { border-radius: 10px; }
  [data-theme="apple"] .quick-entry-card { border-radius: 10px; }
  [data-theme="apple"] .guestbook-card { border-radius: 12px; }
  [data-theme="apple"] .contact-modal { border-radius: 14px; }
}

@media (max-width: 768px) {
  /* === Hero 区域 === */
  .hero { padding: 44px 16px 28px; }
  .logo-block { gap: 10px; }
  .logo-icon { font-size: 2rem; }
  .logo-icon img { width: 56px; height: 56px; }
  .hero h1 { font-size: 1.7rem; letter-spacing: 1px; }
  .hero p { font-size: 0.95rem; letter-spacing: 2px; margin-top: 6px; }

  /* === 右上角操作区 === */
  .hero-actions { gap: 6px; }
  .theme-switcher, .dark-toggle { width: 30px; height: 30px; font-size: 0.8rem; }

  /* === 公告栏 === */
  .announcement-bar { height: 38px; }
  .ann-face-label { padding: 0 8px; font-size: 0.78rem; }
  .announcement-item { font-size: 0.88rem; }

  /* === Banner + 搜索栏 === */
  .banner-wrapper { aspect-ratio: 16 / 9; }
  .banner-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }
  .search-bar { bottom: 8px; width: 92%; }
  .search-bar--standalone { width: 92%; margin: 16px auto; }
  .search-input-wrap { height: 48px; padding: 0 16px; }
  .search-input-wrap input { font-size: 1rem; }
  .search-input-wrap .search-icon { font-size: 1.1rem; margin-right: 8px; }

  /* === 快捷入口 === */
  .quick-entries-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-entries-section { padding: 0 12px; }
  .quick-entry-card {
    padding: 10px 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    gap: 3px;
    min-height: 44px;
    min-width: 0;
    overflow: hidden;
  }
  .qe-title { font-size: 0.84rem; }
  .qe-url { font-size: 0.64rem; }
  .quick-entries-title h3 { font-size: 0.95rem; }

  /* === 链接卡片 === */
  .links-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; }
  .link-card { padding: 10px 8px; gap: 8px; }
  .link-card .card-avatar { width: 34px; height: 34px; min-width: 34px; font-size: 1rem; border-radius: 8px; }
  .link-card .card-title { font-size: 0.85rem; }
  .link-card .card-desc { font-size: 0.72rem; }
  .link-card .card-domain { font-size: 0.62rem; }
  .category-header h2 { font-size: 0.95rem; }
  .category-header .cat-icon { font-size: 1.05rem; }

  /* === 主内容 === */
  .main-content { padding: 14px 14px 0; }

  /* === 留言板 === */
  .guestbook-wrapper { padding: 14px 0 14px; }
  .guestbook-section { max-width: 100%; padding: 0 12px; }
  .guestbook-header { flex-direction: column; align-items: flex-start; }
  .guestbook-header h2 { font-size: 0.95rem; }
  .gb-header-left { flex-wrap: wrap; gap: 6px; }
  .guestbook-post-btn { padding: 5px 14px; font-size: 0.78rem; }
  .gb-user-btn { padding: 4px 12px; font-size: 0.76rem; }
  .gb-header-stats { font-size: 0.76rem; }
  .guestbook-card { padding: 14px; border-radius: 12px; }
  .guestbook-card.pinned { padding: 14px; margin: 0; border-radius: 12px; }
  .gb-content { font-size: 0.88rem; }
  .gb-avatar { width: 38px; height: 38px; font-size: 0.88rem; }
  .gb-reply-avatar { width: 24px; height: 24px; font-size: 0.68rem; }
  .gb-reply-content { font-size: 0.84rem; }
  .gb-reply-btn-sm { font-size: 0.72rem; }
  .gb-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px; }
  .guestbook-list-wrap { padding: 12px 14px; }
  .gb-scroll-viewport { height: 320px; }
  .gb-section-label { font-size: 0.73rem; }
  .gb-unread-badge { font-size: 0.63rem; padding: 1px 8px; }
  .gb-content-card { border-radius: 12px; }
  .gb-cat-tab { padding: 5px 12px; font-size: 0.76rem; }
  .gb-cat-badge { font-size: 0.68rem; padding: 1px 6px; }
  .gb-inline-reply textarea { font-size: 0.84rem; }
  .guestbook-post-btn { padding: 8px 18px; font-size: 0.84rem; }
  .gb-like-btn, .gb-fav-btn, .gb-reply-btn { padding: 4px 12px; font-size: 0.78rem; }
  .gb-hot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gb-hot-card { padding: 10px 12px; }
  .gb-hot-card-avatar { width: 30px; height: 30px; font-size: 0.75rem; }
  .gb-hot-card-name { font-size: 0.78rem; }
  .gb-hot-card-content { font-size: 0.72rem; }

  /* === 联系浮钮 === */
  .contact-bubble { right: 14px; bottom: 60px; padding: 9px 16px; font-size: 0.82rem; }

  /* === 页脚 === */
  .footer { font-size: 0.82rem; padding: 16px 16px; }

  /* === 广告位 === */
  .ad-section { margin-bottom: 14px; padding: 0 14px; }
  .banner-section { padding: 0 14px; }
  .quick-entries-section { padding: 0 14px; }
  .guestbook-section { padding: 0 12px; }
  .search-results { padding: 0 14px; }
}

@media (max-width: 480px) {
  /* === Hero === */
  .hero { padding: 40px 12px 24px; }
  .logo-block { gap: 8px; }
  .logo-icon { font-size: 1.7rem; }
  .logo-icon img { width: 48px; height: 48px; }
  .hero h1 { font-size: 1.25rem; letter-spacing: 0.5px; }
  .hero p { font-size: 0.82rem; letter-spacing: 1.5px; }

  /* === 右上角操作区 === */
  .hero-actions { gap: 5px; }
  .theme-switcher, .dark-toggle { width: 28px; height: 28px; font-size: 0.76rem; }
  .theme-dropdown { right: 0; left: auto; min-width: 130px; }

  /* === 搜索栏 === */
  .search-bar { width: 94%; bottom: 6px; }
  .search-bar--standalone { width: 94%; }
  .search-input-wrap { height: 44px; padding: 0 12px; }
  .search-input-wrap input { font-size: 0.9rem; }
  .search-input-wrap .search-icon { font-size: 1rem; margin-right: 6px; }

  /* === 链接卡片 === */
  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .link-card { padding: 10px 8px; gap: 8px; }
  .link-card .card-avatar { width: 32px; height: 32px; min-width: 32px; font-size: 0.95rem; border-radius: 8px; }
  .link-card .card-title { font-size: 0.82rem; }
  .link-card .card-desc { font-size: 0.68rem; }
  .link-card .card-domain { display: none; }

  /* === 快捷入口 === */
  .quick-entries-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick-entries-section { padding: 0 8px; }
  .quick-entry-card {
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
    gap: 2px;
    min-height: 44px;
    min-width: 0;
    overflow: hidden;
  }
  .qe-title { font-size: 0.82rem; }
  .qe-url { display: none; }
  /* === 留言板 === */
  .guestbook-wrapper { padding: 12px 0 12px; }
  .guestbook-section { padding: 0 8px; }
  .guestbook-header h2 { font-size: 0.95rem; }
  .gb-header-icon { font-size: 1.05rem; }
  .gb-header-stats { font-size: 0.7rem; }
  .guestbook-post-btn { padding: 5px 12px; font-size: 0.76rem; }
  .guestbook-card { padding: 12px; border-radius: 10px; }
  .guestbook-card.pinned { padding: 12px; margin: 0; border-radius: 10px; }
  .gb-avatar { width: 34px; height: 34px; font-size: 0.78rem; }
  .gb-content { font-size: 0.84rem; }
  .gb-like-btn, .gb-fav-btn, .gb-reply-btn { padding: 3px 10px; font-size: 0.74rem; }
  .gb-hot-grid { grid-template-columns: 1fr; gap: 6px; }
  .gb-hot-card { padding: 8px 10px; }
  .gb-hot-card-stats { font-size: 0.65rem; }
  .gb-reply-thread.gb-reply-flat { margin-left: 0; }
  .gb-inline-reply .btn-submit { padding: 5px 12px; font-size: 0.76rem; }
  .gb-toolbar { padding: 8px 10px; }
  .guestbook-list-wrap { padding: 10px 10px; }
  .gb-content-card { border-radius: 10px; }

  /* === 联系浮钮 === */
  .contact-bubble { right: 10px; bottom: 50px; padding: 8px 14px; font-size: 0.78rem; }

  /* === Banner === */
  .banner-arrow { width: 28px; height: 28px; font-size: 0.85rem; }
  .banner-arrow.prev { left: 6px; }
  .banner-arrow.next { right: 6px; }
  .banner-dots { bottom: 8px; gap: 5px; }
  .banner-dot { width: 8px; height: 8px; }

  /* === 公告 === */
  .announcement-bar { height: 36px; }
  .ann-face-label { padding: 0 8px; font-size: 0.68rem; }
  .ann-badge { font-size: 0.58rem; min-width: 14px; height: 14px; padding: 0 4px; }
  .face-badge { top: 1px; right: -5px; }
  .announcement-marquee { padding-right: 56px; }
  .announcement-item { font-size: 0.76rem; height: 36px; line-height: 36px; }

  /* === 弹窗 === */
  .contact-modal { border-radius: 16px; }
  .contact-modal .cm-header { padding: 22px 20px 18px; }
  .contact-modal .cm-body { padding: 18px 20px; }
  .announcement-list-card { border-radius: 16px 16px 0 0; max-height: 88vh; }

  /* === 页脚 === */
  .footer { font-size: 0.76rem; padding: 14px 12px; }
}

/* ========== 公告栏（最新公告 / 寻物启事 3D 切换）========== */
.announcement-bar {
  background: linear-gradient(90deg, #fff8e1, #fffde7, #fff8e1);
  border-bottom: 1px solid #ffe082;
  overflow: hidden;
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
}

.announcement-bar.empty { display: none; }

/* 红色数字角标：贴在「最新公告 / 寻物启事」各自右上角 */
.ann-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fff8e1;
  line-height: 1;
  white-space: nowrap;
}
.ann-badge i { font-style: normal; }
.face-badge {
  position: absolute;
  top: 2px;
  right: -6px;
  z-index: 7;
  pointer-events: none;
}

/* 每面左侧固定标题前缀（不随跑马灯滚动） */
.ann-face-label {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e65100;
  background: linear-gradient(90deg, #ffe082, rgba(255,224,130,0));
  white-space: nowrap;
  cursor: default;
}

/* 3D 切换舞台 */
.ann-stage {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 1200px;
}
.ann-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ann-flip-inner.show-lf { transform: rotateX(180deg); }
.ann-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ann-face-back { transform: rotateX(180deg); }

/* 横向（右→左）滚动跑马灯 —— 文字保持平整，不做形变 */
.announcement-marquee {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding-right: 64px;
}
.announcement-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
/* 鼠标经过内容时暂停滚动（便于看清/点选），不影响两面自动翻转 */
.announcement-track:hover {
  animation-play-state: paused;
}
.announcement-item {
  font-size: 0.86rem;
  color: #5d4037;
  display: inline-flex;
  align-items: center;
  height: 42px;
  line-height: 42px;
  white-space: nowrap;
  cursor: pointer;
  padding: 0 14px;
}
.announcement-item .ann-title {
  font-weight: 700;
  color: #e65100;
  margin-right: 6px;
}
.announcement-item:hover { background: rgba(230, 81, 0, 0.08); }
.announcement-item .ann-sep { color: #ffcc02; font-size: 1rem; margin-left: 8px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== 广告位 ========== */
.ad-section {
  max-width: var(--container);
  margin: 0 auto 16px;
  padding: 0 24px;
}

.ad-section.empty { display: none; }

.ad-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 60px;
}

.ad-container :is(img, a, div, p, span, iframe) { max-width: 100%; }

/* ========== Banner 轮播图 ========== */
.banner-section {
  max-width: var(--container);
  margin: 14px auto 16px;
  padding: 0 20px;
  position: relative;
}

.banner-section.empty { display: none; }

.banner-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-bg);
  aspect-ratio: 1100 / 280;
  cursor: pointer;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slide .banner-ad {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 广告代码轮播：强制填满整个幻灯片 */
.banner-slide .banner-ad > div {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.banner-slide .banner-ad img { max-width: 100%; }

/* 轮播箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 5;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  opacity: 0;
}

.banner-wrapper:hover .banner-arrow { opacity: 1; }

.banner-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.1);
}

.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.banner-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ========== AI 智能搜索 — 专业风格 ========== */
:root {
  --ai-accent: #6c5ce7;
  --ai-accent-hover: #5a4bd1;
  --ai-accent-light: #8b97ff;
  --ai-accent-light: #2c5282;
  --ai-bg: #ffffff;
  --ai-border: #e2e8f0;
  --ai-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --ai-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --ai-radius: 12px;
  --ai-radius-sm: 8px;
}

.ai-search-wrapper {
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 0 24px;
}
.ai-search-wrapper.empty { display: none; }

.ai-search-section {
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  border-radius: 12px;
  padding: 18px 100px;
  box-shadow: var(--ai-shadow);
  transition: box-shadow 0.3s ease;
}
.ai-search-section:hover {
  box-shadow: var(--ai-shadow-lg);
}

/* 头部 */
.ai-search-header {
  margin-bottom: 14px;
}
.ai-search-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-search-title-row.title-center,
.ai-search-title-row.subtitle-center {
  justify-content: center;
}
.ai-search-title-row.title-center .ai-search-brand-icon,
.ai-search-title-row.title-center .ai-search-badge {
  display: none;
}
.ai-search-title-row.title-center .ai-search-title-group {
  flex: 0 1 auto;
}
.ai-search-brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6c5ce7, #e84393);
  color: #fff;
}
.ai-search-brand-icon svg {
  width: 20px;
  height: 20px;
}
.ai-search-title-group {
  flex: 1;
  min-width: 0;
}
.ai-search-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ai-search-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 400;
  line-height: 1.4;
}
/* 副标题居中 */
.ai-search-title-row.subtitle-center .ai-search-subtitle {
  text-align: center;
}
.ai-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #6c5ce7;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* 搜索栏 */
.ai-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.ai-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.ai-search-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.25s;
}
.ai-search-input-wrap:focus-within .ai-search-input-icon {
  color: var(--ai-accent);
}
.ai-search-input {
  width: 100%;
  height: 44px;
  padding: 0 110px 0 40px;
  border: 1.5px solid var(--ai-border);
  border-radius: var(--ai-radius);
  font-size: 0.95rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}
.ai-search-input:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
  background: #fff;
}
.ai-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.ai-search-clear {
  position: absolute;
  right: 84px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  padding: 0;
}
.ai-search-clear svg {
  width: 14px;
  height: 14px;
}
.ai-search-clear:hover {
  background: rgba(0,0,0,0.06);
  color: #475569;
}
.ai-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: var(--ai-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: inherit;
  z-index: 2;
}
.ai-search-btn:hover {
  background: var(--ai-accent-hover);
}
.ai-search-btn:active {
  background: #16304d;
}
.ai-search-btn-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 平台标签分隔 */
.ai-platforms-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-platforms-label-line {
  flex: 1;
  height: 1px;
  background: var(--ai-border);
}
.ai-platforms-label-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 平台网格 — 紧凑纯图标+名称风格，超出翻滚 */
.ai-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 72px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.ai-platform-grid::-webkit-scrollbar {
  width: 4px;
}
.ai-platform-grid::-webkit-scrollbar-track {
  background: transparent;
}
.ai-platform-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
.ai-platform-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 平台卡片 */
.ai-plat-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ai-plat-card:hover {
  background: #fff;
  border-color: var(--ai-border);
  box-shadow: var(--ai-shadow);
}
.ai-plat-card.active {
  background: #fff;
  border-color: var(--ai-accent);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.06);
}
.ai-plat-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.ai-plat-card.active .ai-plat-icon-wrap { }
.ai-plat-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.2;
}
.ai-plat-card.active .ai-plat-name {
  color: var(--ai-accent);
  font-weight: 600;
}

/* 暗色模式 */
body[data-mode="dark"] .ai-search-section {
  background: #1e1e32;
  border-color: #2d2d44;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
body[data-mode="dark"] .ai-search-section:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
body[data-mode="dark"] .ai-search-title-group h2 { color: #e2e8f0; }
body[data-mode="dark"] .ai-search-subtitle { color: #94a3b8; }
body[data-mode="dark"] .ai-search-badge {
  color: #93c5fd;
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.15);
}
body[data-mode="dark"] .ai-search-input {
  background: #16162a;
  border-color: #2d2d44;
  color: #e2e8f0;
}
body[data-mode="dark"] .ai-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  background: #1a1a30;
}
body[data-mode="dark"] .ai-search-input::placeholder { color: #64748b; }
body[data-mode="dark"] .ai-search-input-icon { color: #64748b; }
body[data-mode="dark"] .ai-search-input-wrap:focus-within .ai-search-input-icon { color: #60a5fa; }
body[data-mode="dark"] .ai-search-clear { color: #64748b; }
body[data-mode="dark"] .ai-search-clear:hover { background: rgba(255,255,255,0.08); color: #94a3b8; }
body[data-mode="dark"] .ai-search-btn {
  background: #3b82f6;
}
body[data-mode="dark"] .ai-search-btn:hover {
  background: #2563eb;
}
body[data-mode="dark"] .ai-platforms-label-line { background: #2d2d44; }
body[data-mode="dark"] .ai-platforms-label-text { color: #64748b; }
body[data-mode="dark"] .ai-plat-card { background: #16162a; border-color: transparent; }
body[data-mode="dark"] .ai-plat-card:hover { background: #1a1a30; border-color: #2d2d44; }
body[data-mode="dark"] .ai-plat-card.active {
  background: #1a1a30;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}
body[data-mode="dark"] .ai-plat-name { color: #cbd5e1; }
body[data-mode="dark"] .ai-plat-card.active .ai-plat-name { color: #93c5fd; }

/* 移动端适配 */
@media (max-width: 768px) {
  .ai-search-wrapper { padding: 0 12px; }
  .ai-search-section { padding: 14px 14px; border-radius: 10px; }
  .ai-search-title-row { gap: 10px; }
  .ai-search-brand-icon { width: 30px; height: 30px; border-radius: 7px; }
  .ai-search-brand-icon svg { width: 15px; height: 15px; }
  .ai-search-title-group h2 { font-size: 1.05rem; }
  .ai-search-subtitle { font-size: 0.74rem; }
  .ai-search-badge { padding: 3px 8px; font-size: 0.66rem; }
  .ai-search-bar { gap: 6px; }
  .ai-search-input { height: 38px; font-size: 0.87rem; padding: 0 90px 0 34px; }
  .ai-search-btn { height: 30px; padding: 0 12px; font-size: 0.82rem; }
  .ai-search-clear { right: 76px; }
  .ai-platform-grid { gap: 4px; }
  .ai-plat-card { padding: 3px 7px; }
  .ai-plat-icon-wrap { font-size: 0.76rem; }
  .ai-plat-name { font-size: 0.66rem; }
}

@media (max-width: 480px) {
  .ai-search-wrapper { padding: 0 8px; }
  .ai-search-section { padding: 12px 10px; border-radius: 8px; }
  .ai-search-title-row { gap: 8px; }
  .ai-search-brand-icon { width: 28px; height: 28px; border-radius: 6px; }
  .ai-search-brand-icon svg { width: 14px; height: 14px; }
  .ai-search-title-group h2 { font-size: 0.95rem; }
  .ai-search-subtitle { font-size: 0.7rem; }
  .ai-search-badge { padding: 3px 7px; font-size: 0.63rem; }
  .ai-search-bar { gap: 6px; }
  .ai-search-input { height: 38px; padding: 0 82px 0 34px; font-size: 0.83rem; }
  .ai-search-btn { height: 28px; padding: 0 10px; font-size: 0.78rem; right: 3px; }
  .ai-search-input-icon { left: 10px; width: 14px; height: 14px; }
  .ai-search-clear { right: 70px; width: 22px; height: 22px; }
  .ai-search-clear svg { width: 12px; height: 12px; }
  .ai-platform-grid { gap: 3px; }
  .ai-plat-card { padding: 2px 6px; }
  .ai-plat-icon-wrap { font-size: 0.72rem; }
  .ai-plat-name { font-size: 0.62rem; }
}

/* ========== 快捷入口 ========== */
.quick-entries-section {
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 0 24px;
}

.quick-entries-section.empty { display: none; }

.quick-entries-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-left: 2px;
}

.quick-entries-title .qe-title-icon {
  font-size: 1.1rem;
}

.quick-entries-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.quick-entries-title .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 1px;
}

.quick-entries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.quick-entry-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  min-width: 0;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-entry-card:hover {
  background: rgba(79, 109, 245, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.qe-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}

.qe-url {
  font-size: 0.68rem;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}



/* ========== 关注 & 私信按钮 ========== */
.gb-follow-btn, .gb-pm-btn {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}
.gb-follow-btn {
  color: #1976d2;
  background: rgba(25,118,210,0.06);
  border-color: rgba(25,118,210,0.2);
}
.gb-follow-btn:hover {
  background: #1976d2;
  color: #fff;
}
.gb-follow-btn.followed {
  color: #43a047;
  background: rgba(67,160,71,0.08);
  border-color: rgba(67,160,71,0.25);
}
.gb-follow-btn.followed:hover {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}
.gb-pm-btn {
  color: #7b1fa2;
  background: rgba(123,31,162,0.06);
  border-color: rgba(123,31,162,0.2);
}
.gb-pm-btn:hover {
  background: #7b1fa2;
  color: #fff;
}

/* ========== 私信弹窗 ========== */
.pm-modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.pm-modal-overlay.active { display: flex; }
.pm-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  animation: pmSlideIn 0.3s ease;
}
@keyframes pmSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pm-header {
  padding: 20px 24px 14px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.pm-icon { font-size: 2rem; }
.pm-header h3 { margin: 8px 0 4px; font-size: 1.1rem; color: #333; }
.pm-receiver-label { font-size: 0.82rem; color: #888; margin: 0; }
.pm-receiver-label span { color: #1976d2; font-weight: 600; }
.pm-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.2rem; color: #999; cursor: pointer;
  padding: 4px 6px; border-radius: 50%;
  transition: all 0.2s;
}
.pm-close:hover { color: #333; background: #f0f0f0; }
.pm-body { padding: 18px 24px 24px; }
.pm-form-group { position: relative; margin-bottom: 14px; }
.pm-form-group textarea {
  width: 100%; border: 1.5px solid #e0e0e0; border-radius: 10px;
  padding: 12px 14px; font-size: 0.92rem; resize: vertical;
  outline: none; font-family: inherit; transition: border-color 0.2s;
}
.pm-form-group textarea:focus { border-color: #1976d2; }
.pm-char-count {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 0.72rem; color: #bbb;
}
.pm-submit-btn {
  width: 100%; padding: 10px 0;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: #fff; border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.25s;
}
.pm-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.pm-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.pm-success {
  display: none; text-align: center; padding: 20px 0;
}
.pm-success-icon { font-size: 2.5rem; margin-bottom: 8px; }
.pm-success p { color: #43a047; font-size: 0.95rem; font-weight: 600; }

/* 暗色模式适配 */
body.dark .pm-modal { background: #1e1e2f; }
body.dark .pm-header { border-bottom-color: #2a2a3d; }
body.dark .pm-header h3 { color: #e0e0e0; }
body.dark .pm-receiver-label { color: #aaa; }
body.dark .pm-receiver-label span { color: #90caf9; }
body.dark .pm-form-group textarea {
  background: #2a2a3d; border-color: #3a3a4d; color: #e0e0e0;
}
body.dark .pm-form-group textarea:focus { border-color: #90caf9; }
body.dark .pm-success p { color: #66bb6a; }
body.dark .gb-follow-btn { color: #90caf9; background: rgba(144,202,249,0.08); border-color: rgba(144,202,249,0.2); }
body.dark .gb-follow-btn:hover { background: #1976d2; color: #fff; }
body.dark .gb-follow-btn.followed { color: #66bb6a; background: rgba(102,187,106,0.08); border-color: rgba(102,187,106,0.25); }
body.dark .gb-pm-btn { color: #ce93d8; background: rgba(206,147,216,0.08); border-color: rgba(206,147,216,0.2); }

/* ========== 心跳气泡（联系管理员）—— 重新美化 ========== */
.contact-bubble {
  position: fixed;
  right: 28px;
  bottom: 80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8cff 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* 柔和呼吸光环：吸引注意，不喧宾夺主 */
.contact-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: contactPulse 2.6s ease-out infinite;
}

@keyframes contactPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.contact-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  filter: brightness(1.06);
}

.contact-bubble:active {
  transform: translateY(-1px) scale(0.98);
}

.contact-bubble .bubble-icon {
  display: none;
}

.contact-bubble .bubble-label {
  line-height: 1;
}

/* ========== 需求征集 · 悬浮游动入口 ========== */
.req-bubble {
  position: fixed;
  left: 80%;
  top: 70%;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: left 3.6s cubic-bezier(.37,.01,.4,1), top 3.6s cubic-bezier(.37,.01,.4,1), transform .3s;
  will-change: left, top;
}
.req-bubble .req-bubble-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 6px 26px rgba(239,68,68,.4), 0 0 0 6px rgba(245,158,11,.1);
  animation: reqBeat 2.4s ease-in-out infinite;
  transition: transform .3s, box-shadow .3s;
}
.req-bubble:hover { transform: scale(1.1); }
.req-bubble:hover .req-bubble-icon {
  animation-play-state: paused;
  box-shadow: 0 8px 34px rgba(239,68,68,.5), 0 0 0 10px rgba(245,158,11,.14);
}
.req-bubble .req-bubble-label {
  margin-top: 8px;
  background: rgba(30,30,46,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: .76rem; padding: 5px 14px; border-radius: 22px;
  white-space: nowrap; font-weight: 500; letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@keyframes reqBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@media (max-width: 768px) {
  .req-bubble .req-bubble-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .req-bubble .req-bubble-label { font-size: .7rem; padding: 4px 12px; }
}
@media (max-width: 480px) {
  .req-bubble .req-bubble-icon { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ========== 寻物启事 · 面板（替代原大区块）========== */
.lf-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 18, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lf-panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lf-panel {
  width: 100%;
  max-width: 580px;
  max-height: 86vh;
  margin: 0 10px;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.lf-panel-overlay.active .lf-panel {
  transform: translateY(0);
}
.lf-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.lf-panel-icon { font-size: 1.5rem; }
.lf-panel-titles { display: flex; flex-direction: column; }
.lf-panel-titles h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.lf-panel-sub { font-size: 0.72rem; color: var(--muted); }
.lf-panel-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lf-panel-close:hover { background: rgba(239, 68, 68, 0.18); color: #ef4444; transform: scale(1.08); }
.lf-panel-filter {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.lf-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  -webkit-overflow-scrolling: touch;
}
.lf-panel-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
}
.lf-panel-foot .lf-post-btn { width: 100%; }

@media (min-width: 768px) {
  .lf-panel-overlay { align-items: center; }
  .lf-panel { max-height: 82vh; border-radius: 20px; margin: 0; }
}
/* ========== 联系管理员弹窗 ========== */
.contact-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.contact-modal-overlay.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal {
  background: #fff;
  border-radius: 20px;
  width: 440px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: contactSlide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

@keyframes contactSlide {
  from { opacity: 0; transform: translateY(-30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal .cm-header {
  background: var(--bubble-gradient);
  padding: 28px 28px 22px;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.contact-modal .cm-header .cm-icon { font-size: 2rem; margin-bottom: 8px; }
.contact-modal .cm-header h3 { color: #fff; font-size: 1.2rem; font-weight: 700; }
.contact-modal .cm-header p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-top: 4px; }

.contact-modal .cm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.contact-modal .cm-close:hover { background: rgba(255,255,255,0.35); }

.contact-modal .cm-body { padding: 24px 28px; }

.cm-form-group { margin-bottom: 16px; }
.cm-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.cm-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.cm-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
  background: var(--card-bg);
}
.cm-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.cm-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08), 0 4px 16px rgba(var(--primary-rgb), 0.06);
  background: var(--card-bg);
}
.cm-form-group textarea::placeholder {
  color: #aaa;
  transition: color 0.25s;
}
.cm-form-group textarea:focus::placeholder {
  color: #ccc;
}

.cm-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--bubble-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: inherit;
}
.cm-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.cm-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cm-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.cm-success.active { display: block; }
.cm-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounceIn 0.5s ease-out;
}
.cm-success p { color: var(--text); font-size: 0.95rem; }

/* ========== 需求征集弹窗 · 简约暖色覆盖（仅作用于 .req-modal，不影响联系/寻物弹窗）========== */
.req-modal { --primary: #f59e0b; --primary-rgb: 245,158,11; box-shadow: 0 24px 70px rgba(15,23,42,0.22); }
.req-modal .cm-header {
  background: #fff;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #eef1f6;
  border-radius: 18px 18px 0 0;
  text-align: center;
}
.req-modal .cm-header .cm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 10px;
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  border-radius: 14px; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(245,158,11,0.30);
}
.req-modal .cm-header h3 { color: #1f2937; font-size: 1.18rem; font-weight: 700; }
.req-modal .cm-header p { color: #94a3b8; font-size: 0.82rem; margin-top: 5px; line-height: 1.5; }
.req-modal .cm-close { background: #f1f5f9; color: #64748b; }
.req-modal .cm-close:hover { background: #e2e8f0; color: #475569; }
.req-modal .cm-body { padding: 20px 24px 22px; }
.req-modal .cm-form-group { margin-bottom: 13px; }
.req-modal .cm-form-group label { color: #475569; font-weight: 600; font-size: 0.83rem; margin-bottom: 5px; }
.req-modal .cm-form-group input {
  padding: 10px 13px; border-radius: 11px; font-size: 0.9rem;
}
.req-modal .cm-form-group textarea {
  height: 86px; min-height: 86px; padding: 10px 13px; border-radius: 11px; font-size: 0.9rem;
}
.req-modal .cm-form-inline { display: flex; gap: 12px; }
.req-modal .cm-form-col { flex: 1; min-width: 0; }
.req-modal .cm-submit-btn {
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  border-radius: 11px; padding: 12px; margin-top: 4px;
  box-shadow: 0 6px 16px rgba(239,68,68,0.22);
}
.req-modal .cm-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(239,68,68,0.28); }
.req-modal .cm-success .success-icon { font-size: 2.6rem; }

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ========== 移动端适配补充 ========== */
/* 768px 以下主要规则已在上方统一定义，此处仅补充局部细节 */

/* ========== 留言本 — 大气全宽风格 ========== */

/* 外层全宽容器 */
.guestbook-wrapper {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--primary-rgb), 0.02) 8%, rgba(var(--primary-rgb), 0.04) 50%, var(--bg) 100%);
  padding: 16px 0 16px;
  margin-top: 0;
  position: relative;
}
.guestbook-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}
.guestbook-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部 */
.guestbook-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.gb-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gb-header-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.guestbook-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.gb-header-stats {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 2px;
  white-space: nowrap;
}
.gb-user-name-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
  padding: 5px 12px;
  border-radius: 16px;
}

/* 写留言按钮 */
.guestbook-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.guestbook-post-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

/* 统一内容卡片 — 包裹分类筛选 + 留言列表 */
.gb-content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* 工具栏 — 统一卡片内的子区域 */
.gb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

/* 分类标签 */
.gb-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gb-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: inherit;
}
.gb-cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}
.gb-cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}
.gb-cat-count {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.3);
  padding: 1px 6px;
  border-radius: 8px;
}

/* 排序栏 */
.gb-sort-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 14px;
  padding: 3px;
  border: 1px solid var(--border);
}
.gb-sort-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-weight: 600;
}
.gb-sort-tab:hover { color: var(--primary); }
.gb-sort-tab.active {
  color: #fff;
  background: var(--bubble-gradient);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.2);
}

/* ====== 首条最新留言 — 顶部醒目横幅 ====== */
.guestbook-card { position: relative; overflow: hidden; }

/* 顶部渐变横幅 */
.gb-latest-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #ef4444, #f97316, #f59e0b);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  letter-spacing: 0.03em;
  z-index: 3;
  animation: gb-latest-glow 2.5s ease-in-out infinite;
  white-space: nowrap;
}
.gb-latest-banner-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
@keyframes gb-latest-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
  50% { box-shadow: 0 2px 18px rgba(239,68,68,0.45); }
}

/* 最新留言卡片整体高亮 */
.guestbook-card.is-latest {
  background: linear-gradient(135deg, rgba(239,68,68,0.07) 0%, rgba(249,115,22,0.05) 40%, var(--card-bg) 100%);
  box-shadow: 0 4px 24px rgba(239,68,68,0.16), 0 2px 8px rgba(249,115,22,0.08);
  padding-top: 32px;
}
.guestbook-card.is-latest .gb-avatar {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2), 0 2px 8px rgba(0,0,0,0.1);
}

/* ====== 待回复滚动区 — 紧凑卡片 ====== */
.gb-compact-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.12);
  border-left: 3px solid #ef4444;
  cursor: pointer;
  transition: all 0.25s;
}
.gb-compact-card:hover {
  background: linear-gradient(135deg, rgba(239,68,68,0.04) 0%, var(--card-bg) 80%);
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
  transform: translateX(2px);
}
.gb-compact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.gb-compact-body {
  flex: 1;
  min-width: 0;
}
.gb-compact-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.gb-compact-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.gb-compact-unread {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  padding: 1px 8px;
  border-radius: 8px;
  white-space: nowrap;
  animation: gb-dot-pulse 2s ease-in-out infinite;
}
.gb-compact-content {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 待回复区视口高度（实际由 JS 动态设置，最多展示3条） */
.gb-unread-section .gb-scroll-viewport {
  height: 280px;
}

/* ====== 留言卡片（现代化卡片风格） ====== */
.guestbook-list-wrap {
  padding: 16px 18px;
}
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 区域标签 */
.gb-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0 4px 12px;
  letter-spacing: 0.02em;
}
.gb-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
  animation: gb-dot-pulse 2s ease-in-out infinite;
}
.gb-section-dot.replied {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: gb-dot-pulse-green 2.5s ease-in-out infinite;
}
@keyframes gb-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes gb-dot-pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* ====== 热门话题区域 ====== */
.gb-hot-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.gb-section-dot.hot {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
  animation: gb-dot-pulse-hot 1.8s ease-in-out infinite;
}
@keyframes gb-dot-pulse-hot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}
.gb-hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.gb-hot-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, rgba(251,191,36,0.03) 50%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.18);
  border-left: 3px solid #f59e0b;
  cursor: pointer;
  transition: all 0.25s;
}
.gb-hot-card:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(251,191,36,0.06) 50%, var(--card-bg) 100%);
  box-shadow: 0 4px 16px rgba(245,158,11,0.15);
  transform: translateY(-2px);
  border-color: rgba(245,158,11,0.35);
}
.gb-hot-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.gb-hot-card-body {
  flex: 1;
  min-width: 0;
}
.gb-hot-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.gb-hot-card-content {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gb-hot-card-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.gb-hot-stat {
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
}
.gb-hot-score {
  font-weight: 700;
  color: #f59e0b;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ====== 热门徽章 ====== */
.gb-hot-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
  animation: gb-hot-glow 1.8s ease-in-out infinite;
}
@keyframes gb-hot-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,0.35); }
  50% { box-shadow: 0 2px 16px rgba(245,158,11,0.6); }
}

/* ====== 热门留言卡片 ====== */
.guestbook-card.is-hot {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, rgba(251,191,36,0.02) 50%, var(--card-bg) 100%);
  box-shadow: 0 4px 20px rgba(245,158,11,0.1), 0 2px 8px rgba(0,0,0,0.04);
}
.guestbook-card.is-hot:hover {
  box-shadow: 0 6px 28px rgba(245,158,11,0.18), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(245,158,11,0.3);
}
.guestbook-card.is-hot.is-latest {
  background: linear-gradient(135deg, rgba(239,68,68,0.07) 0%, rgba(245,158,11,0.05) 40%, var(--card-bg) 100%);
  box-shadow: 0 4px 24px rgba(239,68,68,0.12), 0 2px 12px rgba(245,158,11,0.08);
}

/* 未回复区域（顶部滚动） */
.gb-unread-section.gb-scroll-top {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

/* 已回复区域（静态列表） */
.gb-replied-section {
  margin-top: 16px;
}

/* 滚动视口 */
.gb-scroll-viewport {
  height: 420px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}
.gb-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
}

/* 未读徽章 */
.gb-unread-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
  animation: gb-unread-blink 2s ease-in-out infinite;
}
@keyframes gb-unread-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* 未读卡片高亮 */
.guestbook-card.is-unread {
  border-left: 3px solid #ef4444;
  background: linear-gradient(135deg, rgba(239,68,68,0.04) 0%, var(--card-bg) 60%);
}

.guestbook-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(128,128,128,0.06);
  transition: all 0.3s;
  cursor: pointer;
}
.guestbook-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  border-color: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-2px);
}
.guestbook-card.pinned {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), var(--card-bg));
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.08);
}

/* 头像 */
.gb-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bubble-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
}

/* 右侧内容区 */
.gb-card-body {
  flex: 1;
  min-width: 0;
}

/* 用户行 */
.gb-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.gb-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.gb-pin-badge {
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(245,158,11,0.2);
}
.gb-cat-badge {
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.gb-time {
  font-size: 0.75rem;
  color: #aaa;
  margin-left: auto;
  flex-shrink: 0;
}

/* 留言正文 */
.gb-content {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  word-break: break-word;
  margin-bottom: 12px;
}

/* 底部操作栏 */
.gb-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(128,128,128,0.06);
}

.gb-like-btn, .gb-fav-btn, .gb-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s;
  color: var(--text-secondary);
}
.gb-like-btn:hover {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255,71,87,0.04);
}
.gb-like-btn.liked {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255,71,87,0.06);
}
.gb-fav-btn:hover {
  color: #f59e0b;
  border-color: #f59e0b;
  background: rgba(245,158,11,0.04);
}
.gb-fav-btn.favored {
  color: #f59e0b;
  border-color: #f59e0b;
  background: rgba(245,158,11,0.06);
}
.gb-reply-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}
.gb-like-icon, .gb-fav-icon {
  font-size: 0.95rem;
}
.gb-like-btn.liked .gb-like-icon,
.gb-fav-btn.favored .gb-fav-icon {
  animation: gbLikePop 0.35s ease;
}
@keyframes gbLikePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.gb-reply-count {
  font-size: 0.7rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 10px;
  padding: 0 7px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  line-height: 1.6;
}
.gb-views-info {
  font-size: 0.75rem;
  color: #bbb;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ====== 管理员回复 ====== */
.gb-reply.gb-reply-admin {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), rgba(var(--primary-rgb), 0.01));
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 8px;
  border-left: 4px solid var(--primary);
}
.gb-reply-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.gb-reply-admin-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

/* ====== 公开评论（扁平对齐） ====== */
.gb-reply-thread.gb-reply-flat {
  margin-top: 8px;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}
.gb-reply.gb-reply-public {
  padding: 10px 0;
  display: flex;
  gap: 10px;
  background: none;
}
.gb-reply-public + .gb-reply-public {
  border-top: 1px solid rgba(128,128,128,0.05);
}
.gb-reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.gb-reply-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.gb-reply-body { flex: 1; min-width: 0; }
.gb-reply-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.gb-reply-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.gb-reply-to {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 400;
}
.gb-reply-to strong { color: var(--primary); font-weight: 600; }
.gb-reply-time {
  font-size: 0.7rem;
  color: #bbb;
  margin-left: auto;
  flex-shrink: 0;
}
.gb-reply-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
}
.gb-reply-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gb-reply-btn-sm {
  background: none;
  border: none;
  color: #999;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s;
  font-family: inherit;
}
.gb-reply-btn-sm:hover { color: var(--primary); }

/* 回复点赞 */
.gb-reply-like-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s, transform 0.15s;
  font-family: inherit;
}
.gb-reply-like-btn:hover { color: #e74c3c; transform: scale(1.08); }
.gb-reply-like-btn.liked { color: #e74c3c; }
.gb-reply-like-btn.liked .gb-reply-like-icon { animation: replyLikePop 0.35s ease; }
@keyframes replyLikePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.gb-reply-like-icon { font-size: 0.84rem; display: inline-block; transition: transform 0.2s; }
.gb-reply-like-count { font-size: 0.7rem; color: inherit; }

/* 展开更多回复 */
.gb-expand-replies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 2px;
  font-family: inherit;
}
.gb-expand-replies:hover { text-decoration: underline; }
.gb-expand-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.gb-expand-arrow.open { transform: rotate(180deg); }

/* ====== 内联回复表单 ====== */
.gb-inline-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(var(--primary-rgb), 0.02);
  border-radius: 12px;
  border: 1px solid rgba(128,128,128,0.06);
  display: none;
}
.gb-inline-reply.active { display: block; }
.gb-inline-reply .form-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.gb-inline-reply textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 52px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.gb-inline-reply textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
  background: var(--card-bg);
}
.gb-inline-reply textarea::placeholder { color: #bbb; transition: color 0.25s; }
.gb-inline-reply-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.gb-inline-reply .btn-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.gb-inline-reply .btn-cancel:hover { background: var(--tag-bg); }
.gb-inline-reply .btn-submit {
  background: var(--bubble-gradient);
  border: none;
  color: #fff;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}
.gb-inline-reply .btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.gb-inline-reply .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.gb-inline-login-hint {
  text-align: center;
  padding: 8px 0;
}
.gb-inline-login-hint span { font-size: 0.84rem; color: var(--text-secondary); }
.gb-inline-login-hint a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: 4px;
}
.gb-inline-login-hint a:hover { text-decoration: underline; }

/* 空状态 */
.guestbook-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.guestbook-empty .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.guestbook-empty p { font-size: 0.95rem; }

/* 用户认证弹窗 */
.user-auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.user-auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.user-auth-switch a:hover { text-decoration: underline; }

/* 用户按钮 */
.gb-user-area { display: flex; align-items: center; gap: 6px; }
.gb-user-center-link {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.gb-user-center-link:hover { color: var(--primary); }
.gb-user-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid rgba(var(--primary-rgb), 0.25);
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  white-space: nowrap;
}
.gb-user-btn:hover {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: var(--primary);
}
.gb-user-btn.gb-user-logout {
  color: var(--text-secondary);
  border-color: var(--border);
}
.gb-user-btn.gb-user-logout:hover {
  background: #fff0f0;
  border-color: #ef4444;
  color: #ef4444;
}

/* ====== 暗色模式适配 ====== */
body.dark .guestbook-wrapper {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--primary-rgb), 0.03) 8%, rgba(var(--primary-rgb), 0.02) 50%, var(--bg) 100%);
}
body.dark .guestbook-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.05);
}
body.dark .guestbook-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  border-color: rgba(var(--primary-rgb), 0.2);
}
body.dark .guestbook-card.is-latest {
  background: linear-gradient(135deg, rgba(239,68,68,0.09) 0%, rgba(249,115,22,0.06) 40%, var(--card-bg) 100%);
}
body.dark .gb-content-card {
  background: #1e293b;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.06);
}
body.dark .gb-toolbar {
  border-bottom-color: rgba(255,255,255,0.06);
}
body.dark .gb-user-name-display {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
body.dark .guestbook-post-btn {
  box-shadow: none;
}
body.dark .gb-user-btn {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}
body.dark .gb-user-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}
body.dark .gb-user-btn.gb-user-logout:hover {
  background: rgba(239,68,68,0.12);
  border-color: #ef4444;
  color: #ef4444;
}
body.dark .gb-action-row {
  border-top-color: rgba(255,255,255,0.04);
}
body.dark .gb-reply-public + .gb-reply-public {
  border-top-color: rgba(255,255,255,0.04);
}
body.dark .gb-inline-reply {
  background: rgba(var(--primary-rgb), 0.04);
  border-color: rgba(255,255,255,0.05);
}
body.dark .gb-inline-reply textarea:focus {
  background: rgba(255,255,255,0.04);
}
body.dark .guestbook-card.pinned {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), var(--card-bg));
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.12);
}
body.dark .guestbook-card.is-hot {
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(251,191,36,0.04) 50%, var(--card-bg) 100%);
  box-shadow: 0 4px 20px rgba(245,158,11,0.08), 0 2px 8px rgba(0,0,0,0.15);
}
body.dark .guestbook-card.is-hot:hover {
  box-shadow: 0 6px 28px rgba(245,158,11,0.14), 0 4px 12px rgba(0,0,0,0.2);
}
body.dark .gb-hot-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(251,191,36,0.04) 50%, var(--card-bg) 100%);
  border-color: rgba(245,158,11,0.15);
}
body.dark .gb-hot-card:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.14) 0%, rgba(251,191,36,0.08) 50%, var(--card-bg) 100%);
  border-color: rgba(245,158,11,0.3);
}
body.dark .gb-cat-tab { background: rgba(255,255,255,0.03); }
body.dark .gb-sort-bar { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
body.dark .gb-header-stats { color: #94a3b8; }
/* ========== 表情选择器 ========== */
.emoji-textarea-wrap {
  position: relative;
}

.emoji-textarea-wrap textarea {
  width: 100%;
  padding-right: 42px;
}

.emoji-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.emoji-trigger:hover {
  transform: scale(1.15);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 99, 102, 241), 0.2);
}

/* 前台表情面板 */
.emoji-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.emoji-picker-overlay.active { display: block; }

.emoji-picker {
  position: fixed;
  width: 320px;
  max-height: 300px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: ep-slide-in 0.2s ease;
}

.emoji-picker.active { display: flex; }

@keyframes ep-slide-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.ep-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ep-close {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.ep-close:hover {
  background: var(--bg);
  color: var(--text);
}

.ep-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.ep-tabs::-webkit-scrollbar { display: none; }

.ep-tab {
  padding: 4px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.ep-tab:hover {
  background: var(--bg);
  color: var(--text);
}

.ep-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ep-grid::-webkit-scrollbar { width: 6px; }
.ep-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.ep-item {
  font-size: 1.25rem;
  text-align: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ep-item:hover {
  background: var(--bg);
  transform: scale(1.25);
}

/* ========== 后台最新待回复留言面板 ========== */
.latest-msg-admin-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.lma-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.lma-icon { font-size: 1.2rem; }

.lma-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.lma-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  animation: lma-count-pulse 2s ease-in-out infinite;
}

@keyframes lma-count-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.lma-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
  opacity: 0.2;
}

.lma-view-all {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s;
}

.lma-view-all:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

.lma-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lma-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.lma-item:hover {
  border-color: rgba(var(--primary-rgb, 99, 102, 241), 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lma-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lma-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light, var(--primary)));
}

.lma-item-info {
  flex: 1;
  min-width: 0;
}

.lma-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lma-item-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.lma-contact {
  margin-left: 6px;
  color: var(--text-secondary);
}

.lma-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 500;
  background: var(--tag-bg, rgba(99, 102, 241, 0.1));
  color: var(--primary);
}

.lma-tag-pin { background: rgba(255, 107, 53, 0.12); color: #ff6b35; }
.lma-tag-warn { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.lma-item-content {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lma-item-actions {
  display: flex;
  gap: 8px;
}

/* 后台表情面板（复用前台样式） */
.admin-emoji-picker {
  width: 320px;
  max-height: 300px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  flex-direction: column;
  overflow: hidden;
  animation: ep-slide-in 0.2s ease;
}

.admin-emoji-picker .ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.admin-emoji-picker .ep-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.admin-emoji-picker .ep-close {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.admin-emoji-picker .ep-close:hover {
  background: var(--bg);
  color: var(--text);
}

.admin-emoji-picker .ep-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-emoji-picker .ep-tabs::-webkit-scrollbar { display: none; }

.admin-emoji-picker .ep-tab {
  padding: 4px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.admin-emoji-picker .ep-tab:hover {
  background: var(--bg);
  color: var(--text);
}

.admin-emoji-picker .ep-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.admin-emoji-picker .ep-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-emoji-picker .ep-grid::-webkit-scrollbar { width: 6px; }
.admin-emoji-picker .ep-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.admin-emoji-picker .ep-item {
  font-size: 1.25rem;
  text-align: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.admin-emoji-picker .ep-item:hover {
  background: var(--bg);
  transform: scale(1.25);
}

/* ========== 暗夜紫主题特殊适配 ========== */
[data-theme="midnight"] .announcement-bar {
  background: linear-gradient(90deg, #2d2d44, #1a1a2e, #2d2d44);
  border-bottom-color: var(--border);
}

[data-theme="midnight"] .ann-face-label {
  color: var(--primary-light);
  background: linear-gradient(90deg, rgba(167,139,250,0.16), rgba(167,139,250,0));
}
[data-theme="midnight"] .ann-badge { box-shadow: 0 0 0 2px var(--border); }

[data-theme="midnight"] .announcement-item {
  color: var(--text-secondary);
}

[data-theme="midnight"] .announcement-item .ann-title {
  color: var(--primary-light);
}

[data-theme="midnight"] .search-input-wrap input::placeholder {
  color: #6b7280;
}

[data-theme="midnight"] .contact-modal {
  background: var(--card-bg);
}

[data-theme="midnight"] .cm-form-group input,
[data-theme="midnight"] .cm-form-group textarea {
  background: var(--bg);
  color: var(--text);
}

[data-theme="midnight"] .cm-form-group input::placeholder,
[data-theme="midnight"] .cm-form-group textarea::placeholder {
  color: #6b7280;
}

/* ========== 全部公告列表弹窗 ========== */
.announcement-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.announcement-detail-overlay.active { display: flex; }

.announcement-list-card {
  background: #fff;
  border-radius: 16px;
  width: 620px;
  max-width: 94vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: contactSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ann-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  position: relative;
}

.ann-list-header-icon {
  font-size: 1.5rem;
}

.ann-list-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ann-list-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--tag-bg);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 4px;
}

.ann-list-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ann-list-close:hover { background: rgba(0,0,0,0.15); }

.ann-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

/* 每条公告 */
.ann-list-item {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

.ann-list-item:last-child { border-bottom: none; }

.ann-list-item:hover {
  background: #fafafa;
}

.ann-list-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.ann-list-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ann-list-item-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.ann-list-item-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 8px;
}

.ann-list-item-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 32px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-list-item-footer {
  padding-left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ann-list-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: var(--bubble-gradient);
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.ann-list-link:hover { opacity: 0.85; transform: translateY(-1px); }
.ann-list-link.hidden { display: none; }

/* 暗夜紫公告列表适配 */
[data-theme="midnight"] .announcement-list-card {
  background: var(--card-bg);
}
[data-theme="midnight"] .ann-list-header {
  border-bottom-color: var(--border);
}
[data-theme="midnight"] .ann-list-item {
  border-bottom-color: var(--border);
}
[data-theme="midnight"] .ann-list-item:hover {
  background: rgba(255,255,255,0.03);
}
[data-theme="midnight"] .ann-list-close {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
[data-theme="midnight"] .ann-list-close:hover { background: rgba(255,255,255,0.2); }

/* 移动端公告列表适配 — 已在上方 480px 块中处理 */

/* theme-dropdown 移动端 — 已在上方统一 480px 块中处理 */

/* 移动端搜索栏 — 已在上方 768px/480px 块中统一处理 */


/* ============ 实时在线人数徽章（与图标按钮同高 34px） ============ */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  white-space: nowrap;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.online-badge .online-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: online-breathe 2s infinite;
}
@keyframes online-breathe {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.online-badge.online-error .online-dot {
  background: #9ca3af;
  animation: none;
}
.online-badge.online-pulse {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.36);
  transform: scale(1.04);
}
.online-badge .online-text b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
[data-theme="apple"] .hero-actions .online-badge {
  border-radius: 50px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 768px) {
  .online-badge { height: 30px; padding: 0 9px; font-size: 0.74rem; gap: 5px; }
}
@media (max-width: 480px) {
  .online-badge { height: 28px; padding: 0 8px; }
  .online-badge .online-label { display: none; }
}

/* ========== 顶部 Hero 万年历（节气/节日 + 万年历弹层）========== */
.hero-calendar {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 16px;
  background: rgba(13, 18, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #fff;
  cursor: pointer;
  text-align: left;
  max-width: 252px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hero-calendar:hover { transform: translateY(-50%) translateY(-1px); background: rgba(13, 18, 30, 0.52); }
.hero-calendar:active { transform: translateY(-50%) scale(0.98); }
.hero-calendar .hc-icon { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.hero-calendar .hc-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-calendar .hc-solar { font-size: 0.82rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.hero-calendar .hc-lunar { font-size: 0.72rem; opacity: 0.92; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.hero-calendar .hc-now { margin-left: 4px; font-weight: 700; }
.hero-calendar .hc-now.is-fest { color: #FFD479; }
.hero-calendar .hc-now.is-term { color: #8FE3C4; }
.hero-calendar[hidden] { display: none; }

/* 万年历弹层 */
.cal-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.cal-modal[hidden] { display: none; }
.cal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); }
.cal-panel {
  position: relative;
  width: min(92vw, 460px);
  background: rgba(20, 26, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  color: #e8edf5;
  padding: 16px 18px 14px;
  animation: calPop 0.18s ease;
}
@keyframes calPop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.cal-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; flex: 1; text-align: center; }
.cal-nav, .cal-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08); color: #e8edf5; font-size: 1.2rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cal-nav:hover, .cal-close:hover { background: rgba(255, 255, 255, 0.16); }
.cal-close { margin-left: 2px; font-size: 1.35rem; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 0.72rem; color: #9fb0c4; padding: 4px 0; font-weight: 600; }
.cal-grid { margin-top: 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / 1; min-height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255, 255, 255, 0.04); overflow: hidden;
}
.cal-cell.cal-empty { background: transparent; }
.cal-cell .cal-d { font-size: 0.92rem; font-weight: 600; }
.cal-cell .cal-lunar, .cal-cell .cal-term, .cal-cell .cal-fest {
  font-size: 0.58rem; line-height: 1.1; margin-top: 2px; opacity: 0.8; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px;
}
.cal-cell .cal-term { color: #8FE3C4; }
.cal-cell .cal-fest { color: #FFD479; font-weight: 700; opacity: 1; }
.cal-cell.is-today { background: rgba(99, 179, 237, 0.22); box-shadow: inset 0 0 0 1.5px #63b3ed; }
.cal-cell.is-today .cal-d { color: #cfe6ff; }
.cal-cell.is-term-day { background: rgba(143, 227, 196, 0.12); }
.cal-cell.is-term-day .cal-d { color: #bff0dd; }
.cal-foot { margin-top: 12px; font-size: 0.74rem; color: #9fb0c4; text-align: center; }

@media (max-width: 560px) {
  .hero-calendar { left: 12px; padding: 7px 12px 7px 10px; max-width: 200px; }
  .hero-calendar .hc-solar { font-size: 0.72rem; }
  .hero-calendar .hc-lunar { font-size: 0.64rem; }
  .hero-calendar .hc-icon { font-size: 1.25rem; }
  .cal-cell { min-height: 40px; }
  .cal-cell .cal-d { font-size: 0.82rem; }
}

/* ===== LOGO 容器：圆形裁切 + 静态外发光（无扫光动效） =====
   仅做圆形 overflow 裁切，保证校徽图始终为正圆；白光外圈为静态描边，非动效。 */
.logo-icon { position: relative; display: inline-block; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 4px 20px rgba(0,0,0,0.15); }

/* ===== 寻物启事===== */
.lost-found-section {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 18px 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.lf-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.lf-title-wrap { display: flex; align-items: center; gap: 10px; }
.lf-title-icon {
  font-size: 1.4rem; width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px; box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}
.lf-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0; }
.lf-subtitle {
  font-size: 0.76rem; color: var(--text-secondary);
  background: rgba(var(--primary-rgb), 0.1); padding: 3px 10px; border-radius: 999px;
}
.lf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lf-filter {
  display: inline-flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.lf-filter-btn {
  border: 0; background: rgba(100, 116, 139, 0.08); color: var(--text-secondary); cursor: pointer;
  font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; transition: all .2s;
}
.lf-filter-btn:hover { background: rgba(100, 116, 139, 0.16); }
.lf-filter-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3); }
.lf-post-btn {
  border: 0; cursor: pointer; color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35); transition: transform .15s, box-shadow .15s;
}
.lf-post-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45); }
.lf-post-btn:active { transform: scale(.97); }

.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lf-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;
  transform-style: preserve-3d; animation: lfCardFlip .55s cubic-bezier(.2,.7,.3,1) both;
}
.lf-card:nth-child(2) { animation-delay: .06s; }
.lf-card:nth-child(3) { animation-delay: .12s; }
.lf-card:nth-child(4) { animation-delay: .18s; }
.lf-card:nth-child(5) { animation-delay: .24s; }
.lf-card:nth-child(6) { animation-delay: .30s; }
.lf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

@keyframes lfCardFlip {
  from { transform: perspective(800px) rotateX(-80deg); opacity: 0; }
  to   { transform: perspective(800px) rotateX(0);     opacity: 1; }
}
.lf-card.resolved { opacity: 0.7; }
.lf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lf-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.lf-badge.lost { background: rgba(239,68,68,0.12); color: #dc2626; }
.lf-badge.found { background: rgba(16,185,129,0.14); color: #059669; }
.lf-badge.resolved { background: rgba(100,116,139,0.16); color: #64748b; }
.lf-cat { font-size: 0.74rem; color: var(--text-secondary); }
.lf-card-title { font-size: 1.02rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.lf-card-img { width: 100%; height: 132px; object-fit: cover; border-radius: 10px; background: var(--border); }
.lf-card-meta { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 9px; margin-top: 2px; }
.lf-card-meta > div { line-height: 1.55; }
.lf-card-meta b { color: var(--text); font-weight: 600; }
.lf-card-desc {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin-top: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.lf-card-time { font-size: 0.72rem; color: var(--text-secondary); }
.lf-resolve-btn {
  border: 1px solid var(--border); background: var(--card-bg); color: var(--primary);
  font-size: 0.76rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.lf-resolve-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.lf-card.resolved .lf-resolve-btn { display: none; }
.lf-empty-hint { text-align: center; color: var(--text-secondary); padding: 24px 0; font-size: 0.9rem; }

/* 发布弹窗补充样式（复用 .contact-modal 基础）*/
.lf-modal { max-width: 460px; }
.lf-type-switch { display: flex; gap: 10px; flex-wrap: wrap; }
.lf-type-opt {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem;
  color: var(--text); cursor: pointer; background: var(--bg);
  border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px;
}
.lf-type-opt input { accent-color: var(--primary); }
.cm-form-inline { display: flex; gap: 12px; }
.cm-form-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-req { color: #ef4444; }

@media (max-width: 560px) {
  .lost-found-section { margin: 14px 10px 0; padding: 14px 14px 18px; }
  .lf-header { gap: 10px; }
  .lf-actions { width: 100%; justify-content: space-between; }
  .cm-form-inline { flex-direction: column; gap: 0; }
}

/* ========== 顶部导航入口（NBA 直播等） ========== */
.hero-nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 12px; border-radius: 17px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: .9rem; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform .15s ease, background .15s ease;
}
.hero-nav-link:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.hero-nav-link:active { transform: scale(.95); }

/* ========== NBA 直播独立页 ========== */
.nba-topbar {
  max-width: var(--container); margin: 0 auto; padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nba-back { color: var(--text-secondary); text-decoration: none; font-size: .9rem; }
.nba-back:hover { color: var(--text); }
.nba-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nba-logo { font-size: 1.3rem; }
.nba-wrap { max-width: var(--container); margin: 0 auto; padding: 0 16px 40px; }
.nba-hero { padding: 24px 0 16px; }
.nba-title { font-size: 1.6rem; margin: 0 0 8px; color: var(--text); }
.nba-sub { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.nba-notice {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--surface, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 12px; padding: 12px 14px; margin: 16px 0 22px;
  font-size: .88rem; color: var(--text-secondary); line-height: 1.5;
}
.nba-notice-dot { flex: 0 0 auto; line-height: 1.4; }
.nba-footer { margin-top: 28px; text-align: center; font-size: .8rem; color: var(--text-secondary); opacity: .8; }
@media (max-width: 480px) {
  .nba-topbar { padding: 12px; }
  .nba-brand { font-size: 1rem; }
  .nba-title { font-size: 1.3rem; }
}
