/* ============================================
   虎晕晕 - 酒类社交种草社区
   版本: 10.0
   设计: Cursor 暖色极简风 · Warm Minimalism
   ============================================ */

/* ========== CSS变量定义 ========== */
:root {
  /* 主色调 - 琥珀色（酒类微醺氛围）*/
  --primary-color: #c08532;
  --primary-light: #d4a048;
  --primary-dark: #a06d26;
  --primary-bg: rgba(192, 133, 50, 0.08);
  
  /* 品牌色彩 */
  --color-accent: #c08532;
  --color-error: #cf2d56;
  --color-success: #1f8a65;
  --color-gold: #c08532;
  
  /* 多彩点缀色系 */
  --accent-blue: #9fbbe0;
  --accent-orange: #f54e00;
  --accent-yellow: #c08532;
  --accent-red: #cf2d56;
  --accent-green: #1f8a65;
  --accent-purple: #c0a8dd;
  
  /* 辅助色系 - 温暖酒色调 */
  --mint-green: #e1e0db;
  --light-grass: #ebeae5;
  --soft-green: #f7f7f4;
  --forest-green: #26251e;
  
  /* 背景色 - 暖奶油 */
  --bg-page: #f2f1ed;
  --bg-card: #f7f7f4;
  --bg-hover: #ebeae5;
  --bg-active: #e6e5e0;
  
  /* 中性色 */
  --earth-light: #f7f7f4;
  --earth-beige: #ebeae5;
  --earth-warm: #e1e0db;
  
  /* 辅助色 */
  --success-color: #1f8a65;
  --warning-color: #c08532;
  --danger-color: #cf2d56;
  --info-color: #c08532;
  
  /* 文本颜色 */
  --text-primary: #26251e;
  --text-secondary: rgba(38, 37, 30, 0.55);
  --text-tertiary: rgba(38, 37, 30, 0.4);
  --text-link: #c08532;
  
  /* 边框 - 暖棕色透明 */
  --border-color: rgba(38, 37, 30, 0.1);
  --border-light: rgba(38, 37, 30, 0.06);
  
  /* 阴影 - 温暖扩散 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), rgba(38, 37, 30, 0.1) 0px 0px 0px 1px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), rgba(38, 37, 30, 0.1) 0px 0px 0px 1px;
  --shadow-lg: rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px, rgba(38, 37, 30, 0.1) 0px 0px 0px 1px;
  --shadow-glow: 0 0 20px rgba(192, 133, 50, 0.08);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 10px;
  --radius-full: 9999px;
  
  /* 动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

/* ========== 夜间模式（23:00 ~ 06:00）—— 护眼暖棕深色模式 ========== */
/*
 * 设计灵感：Bear App / Obsidian / Kindle 夜读
 * 核心原则：非纯黑，用温暖棕灰色调，减少蓝光刺激，字色柔和不刺眼
 * 背景色阶：#1a1814（页面）→ #211f1b（卡片）→ #2a2723（hover）→ #332f2a（active）
 */
.night-mode {
  /* 背景 - 温暖深棕，不是冷黑 */
  --bg-page:   #1a1814;
  --bg-card:   #211f1b;
  --bg-hover:  #2a2723;
  --bg-active: #332f2a;

  /* 文字 - 温暖近白，不刺眼 */
  --text-primary:   #e6ddd0;
  --text-secondary: #9e968c;
  --text-tertiary:  #5e5750;
  --text-link:      #d97a42;

  /* 边框 - 温暖细线，低调融入 */
  --border-color: rgba(230, 221, 208, 0.10);
  --border-light: rgba(230, 221, 208, 0.06);

  /* 阴影 - 自然深度感 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(217, 122, 66, 0.15);

  /* 辅助色对齐 */
  --earth-light:  #211f1b;
  --earth-beige:  #2a2723;
  --earth-warm:   #332f2a;
  --soft-green:   #211f1b;
  --light-grass:  #2a2723;
  --mint-green:   #332f2a;
  --forest-green: #e6ddd0;

  /* 强调色 - 柔和暖橙，不刺眼 */
  --primary-color: #d97a42;
  --primary-light: #e8945c;
  --primary-dark:  #c06030;
  --primary-bg:    rgba(217, 122, 66, 0.18);
  --color-accent:  #d97a42;
  --color-error:   #d95f6a;
  --color-success: #4db87a;
  --color-gold:    #c9963a;
  --accent-orange: #d97a42;
  --accent-blue:   #5b9bd5;
  --accent-green:  #4db87a;
  --accent-yellow: #c9963a;
  --accent-red:    #d95f6a;
}

/* 夜间模式 - body / navbar 温暖深底 */
.night-mode body,
body.night-mode {
  background: #1a1814 !important;
  color: #e6ddd0 !important;
}
.night-mode .navbar {
  background: rgba(26, 24, 20, 0.92) !important;
  border-bottom: 1px solid rgba(230, 221, 208, 0.09) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 夜间模式 - 卡片 */
.night-mode .card,
.night-mode .sidebar-card {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
  color: #e6ddd0 !important;
}
.night-mode .card:hover,
.night-mode .sidebar-card:hover {
  background: #2a2723 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

/* 夜间模式 - 表单控件 */
.night-mode .form-control,
.night-mode .form-select {
  background: #211f1b !important;
  color: #e6ddd0 !important;
  border: 1px solid rgba(230, 221, 208, 0.12) !important;
}
.night-mode .form-control:focus,
.night-mode .form-select:focus {
  background: #2a2723 !important;
  border-color: rgba(217, 122, 66, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(217, 122, 66, 0.12) !important;
}
.night-mode .form-control::placeholder {
  color: #5e5750;
}

/* 夜间模式 - 下拉菜单 */
.night-mode .dropdown-menu {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}
.night-mode .dropdown-item {
  color: #e6ddd0 !important;
}
.night-mode .dropdown-item:hover {
  background: #2a2723 !important;
}

/* 夜间模式 - 文字透传 */
.night-mode .text-muted,
.night-mode .text-secondary {
  color: #9e968c !important;
}
.night-mode .text-danger {
  color: #d95f6a !important;
}

/* 夜间模式 - 链接 */
.night-mode a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
  color: #d97a42;
}
.night-mode a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):hover {
  color: #e8945c;
}

/* 夜间模式 - 按钮 */
.night-mode .btn-primary {
  background: rgba(217, 122, 66, 0.18) !important;
  border: 1px solid rgba(217, 122, 66, 0.35) !important;
  color: #e8945c !important;
  border-radius: 9999px !important;
}
.night-mode .btn-primary:hover {
  background: rgba(217, 122, 66, 0.28) !important;
  border-color: rgba(217, 122, 66, 0.55) !important;
}
.night-mode .btn-outline,
.night-mode .btn-outline-primary {
  background: transparent !important;
  border: 1px solid rgba(230, 221, 208, 0.18) !important;
  color: #e6ddd0 !important;
  border-radius: 9999px !important;
}
.night-mode .btn-outline:hover,
.night-mode .btn-outline-primary:hover {
  background: #2a2723 !important;
  border-color: rgba(230, 221, 208, 0.3) !important;
}

/* 夜间模式 - 分割线 */
.night-mode hr,
.night-mode .dropdown-divider {
  border-color: rgba(230, 221, 208, 0.08) !important;
}

/* 夜间模式 - 导航链接 */
.night-mode .nav-link {
  color: #9e968c !important;
}
.night-mode .nav-link:hover,
.night-mode .nav-link.active {
  color: #e6ddd0 !important;
}

/* 夜间模式 - 品牌文字 */
.night-mode .brand-name {
  color: #e6ddd0 !important;
}
.night-mode .brand-tagline {
  color: #9e968c !important;
}

/* 夜间模式 - 侧边文案灯光感 */
.night-mode .sidebar-about-desc {
  color: #9e968c;
  animation: lamp-breathe-night 6s ease-in-out infinite;
}
@keyframes lamp-breathe-night {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

/* 夜间模式 - 分类导航 / 标签 */
.night-mode .category-nav .nav-link,
.night-mode .sidebar-category-item {
  color: #9e968c !important;
  border-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .category-nav .nav-link.active,
.night-mode .category-nav .nav-link:hover,
.night-mode .sidebar-category-item.active,
.night-mode .sidebar-category-item:hover {
  color: #e6ddd0 !important;
  background: #2a2723 !important;
}

/* 夜间模式 - Tab 栏 */
.night-mode .tab-bar .tab-item {
  color: #9e968c !important;
}
.night-mode .tab-bar .tab-item.active,
.night-mode .tab-bar .tab-item:hover {
  color: #e6ddd0 !important;
}

/* 夜间模式 - Feed 卡片 */
.night-mode .tucao-card {
  background: #1a1814 !important;
  border-bottom-color: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .tucao-card:hover {
  background: #211f1b !important;
}
.night-mode .tucao-card .tucao-content {
  color: #e6ddd0 !important;
}
.night-mode .tucao-card .tucao-meta,
.night-mode .tucao-card .tucao-time {
  color: #5e5750 !important;
}

/* 夜间模式 - 情绪标签 */
.night-mode .mood-tag {
  background: rgba(217, 122, 66, 0.14) !important;
  color: #e8945c !important;
  border: 1px solid rgba(217, 122, 66, 0.22) !important;
}

/* 夜间模式 - 热门卡片 */
.night-mode .hot-card {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
}
.night-mode .hot-card:hover {
  background: #2a2723 !important;
  border-color: rgba(230, 221, 208, 0.16) !important;
}

/* 夜间模式 - 分页 */
.night-mode .pagination .page-link {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
  color: #9e968c !important;
}
.night-mode .pagination .page-link:hover {
  background: #2a2723 !important;
  color: #e6ddd0 !important;
}
.night-mode .pagination .active .page-link {
  background: rgba(217, 122, 66, 0.22) !important;
  border-color: rgba(217, 122, 66, 0.4) !important;
  color: #e8945c !important;
}

/* 夜间模式 - 发布区 */
.night-mode .publish-cta {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
}

/* 夜间模式 - 内联硬编码背景覆盖 */
.night-mode [style*="background:#f7f7f4"],
.night-mode [style*="background: #f7f7f4"],
.night-mode [style*="background-color:#f7f7f4"],
.night-mode [style*="background-color: #f7f7f4"],
.night-mode [style*="background:#fff"],
.night-mode [style*="background: #fff"],
.night-mode [style*="background:#ffffff"],
.night-mode [style*="background-color:#fff"] {
  background-color: #211f1b !important;
}

/* 夜间模式 - 内联边框/颜色覆盖 */
.night-mode [style*="border-color:#f54e00"],
.night-mode [style*="border-color: #f54e00"] {
  border-color: rgba(230, 221, 208, 0.12) !important;
}
.night-mode [style*="color:#26251e"],
.night-mode [style*="color: #26251e"] {
  color: #e6ddd0 !important;
}

/* 夜间模式 - 复选框 */
.night-mode .form-check-input {
  border-color: rgba(230, 221, 208, 0.25) !important;
  background-color: #211f1b !important;
}
.night-mode .form-check-input:checked {
  background-color: #d97a42 !important;
  border-color: #d97a42 !important;
}

/* 夜间模式 - 密码强度条 */
.night-mode .pwd-strength-bar span {
  background: rgba(230, 221, 208, 0.10);
}

/* 夜间模式 - 警告/成功提示 */
.night-mode .alert-danger {
  background: rgba(217, 95, 106, 0.12) !important;
  border: 1px solid rgba(217, 95, 106, 0.22) !important;
  color: #e07a86 !important;
}
.night-mode .alert-success {
  background: rgba(77, 184, 122, 0.10) !important;
  border: 1px solid rgba(77, 184, 122, 0.22) !important;
  color: #6dcf98 !important;
}

/* 夜间模式 - Footer */
.night-mode .site-footer {
  background: #1a1814 !important;
  border-top: 1px solid rgba(230, 221, 208, 0.08) !important;
}
.night-mode .site-footer,
.night-mode .site-footer a,
.night-mode .footer-link {
  color: #5e5750 !important;
}
.night-mode .site-footer a:hover,
.night-mode .footer-link:hover {
  color: #9e968c !important;
}

/* 夜间模式 - 页面标题区 */
.night-mode .page-header {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.09) !important;
}
.night-mode .page-header::before,
.night-mode .page-header::after {
  opacity: 0.03;
}

/* 夜间模式 - 详情页 */
.night-mode .detail-content,
.night-mode .comment-item {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
  color: #e6ddd0 !important;
}

/* 夜间模式 - 回声卡片 */
.night-mode .echo-card {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
}
.night-mode .echo-card:hover {
  background: #2a2723 !important;
  border-color: rgba(230, 221, 208, 0.16) !important;
}

/* 夜间模式 - 统计卡片 */
.night-mode .stats-card {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.10) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
}
.night-mode .stats-card:hover {
  background: #2a2723 !important;
}
.night-mode .stats-card-value {
  color: #e6ddd0 !important;
}
.night-mode .stats-card-label {
  color: #9e968c !important;
}

/* 夜间模式 - 表格 */
.night-mode table {
  color: #e6ddd0 !important;
}
.night-mode .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e6ddd0;
  --bs-table-striped-bg: rgba(230, 221, 208, 0.03);
  --bs-table-hover-bg: #2a2723;
  --bs-table-border-color: rgba(230, 221, 208, 0.10);
}
.night-mode th {
  border-color: rgba(230, 221, 208, 0.10) !important;
  color: #9e968c !important;
}
.night-mode td {
  border-color: rgba(230, 221, 208, 0.07) !important;
}

/* 夜间模式 - Modal */
.night-mode .modal-content {
  background: #211f1b !important;
  border: 1px solid rgba(230, 221, 208, 0.12) !important;
  color: #e6ddd0 !important;
}
.night-mode .modal-header {
  border-bottom-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .modal-footer {
  border-top-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .btn-close {
  filter: invert(0.85) sepia(0.1) !important;
}

/* 夜间模式 - Badge */
.night-mode .badge {
  border: 1px solid rgba(230, 221, 208, 0.10);
}
.night-mode .badge.bg-primary,
.night-mode .badge.bg-info {
  background: rgba(91, 155, 213, 0.18) !important;
  color: #7ab6e0 !important;
}
.night-mode .badge.bg-success {
  background: rgba(77, 184, 122, 0.15) !important;
  color: #6dcf98 !important;
}
.night-mode .badge.bg-warning {
  background: rgba(201, 150, 58, 0.18) !important;
  color: #d4a84e !important;
}
.night-mode .badge.bg-danger {
  background: rgba(217, 95, 106, 0.18) !important;
  color: #e07a86 !important;
}

/* 夜间模式 - stats.php 组件 */
.night-mode .stats-section {
  background: #211f1b !important;
  border-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .stat-card-large {
  background: #211f1b !important;
  border-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .stat-number-large,
.night-mode .today-stat-number {
  color: #e6ddd0 !important;
}
.night-mode .today-stat-item,
.night-mode .category-stat-item {
  background: #1a1814 !important;
  border-color: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .today-stat-item:hover,
.night-mode .category-stat-item:hover {
  background: #2a2723 !important;
}
.night-mode .progress-bar-container {
  background: rgba(230, 221, 208, 0.07) !important;
  border-color: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .progress-bar {
  background: linear-gradient(90deg, #d97a42, #e8945c) !important;
}
.night-mode .active-user-rank.rank-other {
  background: rgba(230, 221, 208, 0.08) !important;
  color: #9e968c !important;
}
.night-mode .active-user-item {
  background: #1a1814 !important;
  border-color: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .active-user-item:hover {
  background: #2a2723 !important;
}
.night-mode .section-title {
  color: #e6ddd0 !important;
  border-bottom-color: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .category-stat-name,
.night-mode .active-user-name {
  color: #e6ddd0 !important;
}

/* 夜间模式 - category.php 组件 */
.night-mode .stat-card {
  background: #211f1b !important;
  border-color: rgba(230, 221, 208, 0.10) !important;
}
.night-mode .stat-card .stat-number {
  color: #e6ddd0 !important;
}
.night-mode .category-card {
  background: #211f1b !important;
  border-color: rgba(230, 221, 208, 0.10) !important;
  color: #e6ddd0 !important;
}
.night-mode .category-card:hover {
  background: #2a2723 !important;
  border-color: #d97a42 !important;
}
.night-mode .category-name {
  color: #e6ddd0 !important;
}
.night-mode .category-count {
  color: #9e968c !important;
}

/* 夜间模式 - hot.php 排名徽标 */
.night-mode .hot-rank-badge.rank-other {
  background: rgba(230, 221, 208, 0.08) !important;
}
.night-mode .hot-rank-badge.rank-other .rank-number {
  color: #9e968c !important;
}

/* 夜间模式 - 滚动条 */
.night-mode ::-webkit-scrollbar-track {
  background: #1a1814;
}
.night-mode ::-webkit-scrollbar-thumb {
  background: rgba(230, 221, 208, 0.14);
  border-radius: 9999px;
}
.night-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 221, 208, 0.24);
}

/* 夜间模式 - 平滑过渡 */
body {
  transition: background-color 0.8s ease, color 0.8s ease;
}
.navbar,
.card,
.sidebar-card,
.form-control {
  transition: background-color 0.8s ease, border-color 0.5s ease, color 0.5s ease;
}

/* ========== 全局重置 ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-error);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(38, 37, 30, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(38, 37, 30, 0.3);
}

/* ========== 导航栏 ========== */
.navbar {
  background: #f2f1ed !important;
  border-bottom: 1px solid rgba(38, 37, 30, 0.1);
  box-shadow: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 同步导航内容宽度与主内容层对齐，与 main.container 相同的 max-width */
.navbar > .container {
  max-width: 1280px;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.brand-logo-wrapper {
  width: 44px;
  height: 44px;
  background: #f2f1ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-brand:hover .brand-logo-wrapper {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-logo-wrapper::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 70%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.28) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo-wrapper svg {
  position: relative;
  z-index: 1;
  display: block;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  gap: 1px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c08532;
    letter-spacing: 2px;
    line-height: 1.2;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 图标风格（替换旧灯泡为酒杯，符合酒类主题） */
.brand-lamp-icon {
    color: var(--nm-primary, #c96f1a) !important;
    font-size: 0.9rem;
    margin-left: 4px;
    filter: drop-shadow(0 1px 2px rgba(201, 111, 26, 0.25));
    animation: glassGlow 5s ease-in-out infinite;
}

@keyframes glassGlow {
    0%, 100% {
        filter: drop-shadow(0 1px 2px rgba(201, 111, 26, 0.25));
        opacity: 0.85;
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(201, 111, 26, 0.5)) drop-shadow(0 0 14px rgba(184, 37, 74, 0.25));
        opacity: 1;
    }
}

/* 夜间模式 - 酒杯图标发光 */
.night-mode .brand-lamp-icon {
  color: #d97a42 !important;
  animation: glassGlowNight 5s ease-in-out infinite;
}
@keyframes glassGlowNight {
  0%, 100% {
    filter: drop-shadow(0 1px 3px rgba(217, 122, 66, 0.3));
    opacity: 0.85;
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(217, 122, 66, 0.65)) drop-shadow(0 0 18px rgba(217, 122, 66, 0.3));
    opacity: 1;
  }
}

/* 导航链接 */
.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--color-error) !important;
  background: rgba(245, 78, 0, 0.06);
}

.nav-link.active {
  color: var(--text-primary) !important;
  font-weight: 600;
  background: rgba(245, 78, 0, 0.06);
}

.nav-link i {
  font-size: 1.1rem;
}

/* 移动端菜单按钮 */
.navbar-toggler {
  border: none;
  padding: 8px;
  border-radius: var(--radius-md);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}

.toggler-icon::before,
.toggler-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  left: 0;
}

.toggler-icon::before { top: -6px; }
.toggler-icon::after { top: 6px; }

/* ========== 主内容区 ========== */
main.container {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  min-height: calc(100vh - 200px);
  max-width: 1280px;
}

/* ========== 宽屏两栏布局（首页专用） ========== */
/* 桌面端：主内容 + 右侧边栏网格 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* 左侧主内容列 */
.page-main {
  min-width: 0; /* 防止内容溢出网格 */
}

/* 右侧边栏 */
.page-sidebar {
  position: sticky;
  top: 72px; /* navbar高度+间距 */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 边栏卡片基础样式 */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-card-header i {
  color: var(--primary-color);
  font-size: 1rem;
}

.sidebar-card-body {
  padding: 12px 16px;
}

/* 边栏分类列表 */
.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-category-item:hover {
  background: #ebeae5;
  color: var(--color-error);
}

.sidebar-category-item.active {
  background: #ebeae5;
  color: #26251e;
  font-weight: 600;
}

.sidebar-category-item.qiuzhu:hover,
.sidebar-category-item.qiuzhu.active {
  background: #FFF3E0;
  color: #BF360C;
}

.sidebar-category-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg-page);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* 边栏站点简介 */
.sidebar-about {
  text-align: center;
  padding: 16px;
}

.sidebar-about-logo {
  width: 52px;
  height: 52px;
  background: #f2f1ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-about-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sidebar-about-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 12px;
  animation: lamp-breathe 6s ease-in-out infinite;
}

@keyframes lamp-breathe {
  0%, 100% { opacity: 0.38; }
  50%      { opacity: 0.88; }
}

.sidebar-publish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: #ebeae5;
  color: #26251e;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-publish-btn:hover {
  color: var(--color-error);
  transform: translateY(-1px);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

/* 边栏热门标签/快速链接 */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-link-item:hover {
  background: #ebeae5;
  color: var(--color-error);
}

.sidebar-link-item i {
  color: var(--text-tertiary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link-item:hover i {
  color: #f54e00;
}

/* 移动端：单列，隐藏侧边栏 */
@media (max-width: 991px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    display: none;
  }
}

/* ========== 页面标题 ========== */
.page-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  background: #e6e5e0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(38, 37, 30, 0.1);
  box-shadow: none;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f54e00, #c08532);
  border-radius: 2px;
  pointer-events: none;
}

.page-header::after {
  display: none;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ========== 统计栏 - 暖色风格 ========== */
.stats-bar {
  margin-bottom: var(--space-lg);
}

.stats-wrapper {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(38, 37, 30, 0.2);
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: #ebeae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f54e00;
  font-size: 0.875rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ========== category.php 专属 ========== */

/* stat-card（category.php 统计栏用的胶囊卡片） */
.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
  color: var(--primary-color);
}
.stat-card .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1;
}

/* 分类网格 */
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              border-color var(--transition-fast), background var(--transition-fast);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  background: var(--earth-light);
  color: inherit;
  text-decoration: none;
}
.category-card:hover .category-icon {
  transform: rotate(-8deg) scale(1.1);
}
.category-card:hover .category-arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.category-icon.bg-primary   { background: var(--primary-color); }
.category-icon.bg-secondary  { background: var(--text-secondary); }
.category-icon.bg-success    { background: #1f8a65; }
.category-icon.bg-danger     { background: #c44040; }
.category-icon.bg-warning    { background: #c08532; }
.category-icon.bg-info       { background: #2f7abf; }

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.category-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--forest-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.category-arrow {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

/* ========== 分类导航 ========== */
.category-nav {
  margin-bottom: var(--space-md);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-item:hover {
  color: var(--color-error);
  border-color: rgba(38, 37, 30, 0.2);
  background: #ebeae5;
}

.category-item.active {
  color: #26251e;
  background: #e6e5e0;
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: none;
  font-weight: 600;
}

/* ========== 求助分类 - 橙色特殊标识 ========== */
/* 导航栏求助标签 */
.category-item.qiuzhu {
  color: #BF360C;
  border-color: #FFAB91;
  background: #FFF3E0;
}
.category-item.qiuzhu:hover {
  color: #fff;
  background: linear-gradient(135deg, #FF7043, #E64A19);
  border-color: #FF7043;
  box-shadow: 0 2px 8px rgba(255, 112, 67, 0.35);
}
.category-item.qiuzhu.active {
  color: #fff;
  background: linear-gradient(135deg, #FF7043, #E64A19);
  border-color: #FF7043;
  box-shadow: 0 2px 8px rgba(255, 112, 67, 0.45);
}

/* 卡片内分类标签（通用） */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--soft-green);
  border: 1px solid var(--mint-green);
  color: var(--forest-green);
  transition: all var(--transition-fast);
}

/* 求助分类卡片标签 - 温暖橙色 */
.category-badge.qiuzhu {
  background: #FFF3E0;
  border-color: #FFAB91;
  color: #BF360C;
}
.category-badge.qiuzhu i {
  color: #FF7043;
}

/* ========== 排序标签 ========== */
.sort-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-sm);
}

.sort-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sort-tab:hover {
  color: var(--color-error);
  background: #ebeae5;
}

.sort-tab.active {
  color: #26251e;
  background: #ebeae5;
  font-weight: 600;
}

/* ========== 种草笔记卡片 - 社交Feed风格 ========== */
.tucao-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tucao-card {
  background: #f7f7f4;
  border: none;
  border-bottom: 1px solid rgba(38, 37, 30, 0.08);
  border-radius: 0;
  padding: var(--space-lg) 0;
  box-shadow: none;
  transition: background var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.tucao-card:first-child {
  padding-top: var(--space-md);
}

.tucao-card::before {
  display: none;
}

.tucao-card::after {
  display: none;
}

.tucao-card:hover {
  transform: none;
  box-shadow: none;
  background: #ebeae5;
  border-color: rgba(38, 37, 30, 0.08);
  margin: 0 calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-radius: 8px;
}

/* ========== hot.php 排名徽标 ========== */
@keyframes rankGlow1 {
  0%,100% { box-shadow: 0 0 6px 1px rgba(245,200,66,0.4); }
  50%     { box-shadow: 0 0 14px 3px rgba(245,200,66,0.7); }
}
@keyframes rankGlow2 {
  0%,100% { box-shadow: 0 0 6px 1px rgba(160,176,196,0.35); }
  50%     { box-shadow: 0 0 12px 2px rgba(160,176,196,0.6); }
}

.hot-card-item {
  position: relative;
  padding-left: 52px !important;
}

.hot-rank-badge {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  animation: countPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.hot-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f5c842, #f59d00);
  animation: countPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards,
             rankGlow1 2.5s ease-in-out 0.5s infinite;
}
.hot-rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c8d4, #8fa0b4);
  animation: countPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards,
             rankGlow2 2.8s ease-in-out 0.5s infinite;
}
.hot-rank-badge.rank-3 {
  background: linear-gradient(135deg, #d4915a, #b06a3a);
}
.hot-rank-badge.rank-other {
  background: var(--earth-beige);
}
.rank-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hot-rank-badge.rank-other .rank-number {
  color: var(--text-secondary);
}

.tucao-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-top: 0;
}

.tucao-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.tucao-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tucao-nickname {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tucao-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.tucao-content {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 种草笔记图片缩略图 */
.tucao-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  max-width: 360px;
}

.thumbnail-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: none;
  transition: opacity var(--transition-fast);
  display: block;
}

.thumbnail-item:hover {
  opacity: 0.85;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

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

.thumbnail-more {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  min-height: 80px;
}

.tucao-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: none;
}

.tucao-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ========== 情绪标签 - 暖色圆点风格 ========== */
.mood-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: #e6e5e0;
  border: none;
  transition: all var(--transition-fast);
}

.mood-tag:hover {
  transform: scale(1.05);
}

.mood-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* 快乐 - 暖橙风格 */
.mood-happy {
  background: #e6e5e0;
  border: none;
  color: #c08532;
}
.mood-happy::before {
  background: #f54e00;
  box-shadow: 0 0 5px rgba(245, 78, 0, 0.4);
}

/* 悲伤 - 柔蓝 */
.mood-sad {
  background: #e6e5e0;
  border: none;
  color: rgba(38, 37, 30, 0.7);
}
.mood-sad::before {
  background: #9fbbe0;
  box-shadow: 0 0 5px rgba(159, 187, 224, 0.5);
}

/* 愤怒 - 暖纯红 */
.mood-angry {
  background: #e6e5e0;
  border: none;
  color: #cf2d56;
}
.mood-angry::before {
  background: #cf2d56;
  box-shadow: 0 0 5px rgba(207, 45, 86, 0.4);
}

/* 焦虑 - 暖金 */
.mood-anxious {
  background: #e6e5e0;
  border: none;
  color: #c08532;
}
.mood-anxious::before {
  background: #c08532;
  box-shadow: 0 0 5px rgba(192, 133, 50, 0.4);
}

/* 困惑 - 淡紫 */
.mood-confused {
  background: #e6e5e0;
  border: none;
  color: rgba(38, 37, 30, 0.7);
}
.mood-confused::before {
  background: #c0a8dd;
  box-shadow: 0 0 5px rgba(192, 168, 221, 0.5);
}

/* 平静 - 暖色风格 */
.mood-neutral {
  background: #e6e5e0;
  border: none;
  color: rgba(38, 37, 30, 0.7);
}
.mood-neutral::before {
  background: #9fc9a2;
  box-shadow: 0 0 5px rgba(159, 201, 162, 0.5);
}

/* 激动 - 金色风格 */
.mood-excited {
  background: #e6e5e0;
  border: none;
  color: #c08532;
}
.mood-excited::before {
  background: #c08532;
  box-shadow: 0 0 6px rgba(192, 133, 50, 0.4);
}

/* ========== 操作按钮 ========== */
.action-btns {
  display: flex;
  gap: var(--space-md);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: 0;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.action-btn:hover {
  color: var(--color-error);
  border-color: transparent;
  background: transparent;
}

.action-btn:hover .action-icon {
  color: #cf2d56;
}

.action-btn i {
  font-size: 1rem;
}

/* 共鸣已点击状态 */
.action-btn.resonated .action-icon {
  color: #cf2d56 !important;
  font-size: 1rem;
}

.action-btn.resonated .action-text {
  color: #cf2d56;
}

/* 心跳动画 */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.4); }
  50%  { transform: scale(1.1); }
  75%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.action-icon.heart-beat {
  animation: heartbeat 0.5s ease;
  display: inline-block;
}

/* ========== 按钮 - 暖色风格 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ebeae5;
  color: #26251e;
  box-shadow: none;
}

.btn-primary:hover {
  color: var(--color-error);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e6e5e0;
  color: rgba(38, 37, 30, 0.6);
  border: none;
}

.btn-secondary:hover {
  color: var(--color-error);
  background: #e1e0db;
}

.btn-outline {
  background: transparent;
  color: #26251e;
  border: 1px solid rgba(38, 37, 30, 0.2);
}

.btn-outline:hover {
  background: #ebeae5;
  color: var(--color-error);
}

/* ========== 表单 ========== */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

/* ========== 复选框 / 单选框 ========== */
.form-check-input {
  width: 1.1em;
  height: 1.1em;
  border: 1.5px solid rgba(38, 37, 30, 0.35);
  background-color: var(--bg-card);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-check-input:checked {
  background-color: #f54e00;
  border-color: #f54e00;
}

.form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(245, 78, 0, 0.15);
  border-color: rgba(38, 37, 30, 0.4);
}

/* ========== 密码强度指示器 ========== */
.pwd-strength-wrap {
  margin-top: 8px;
}
.pwd-strength-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.pwd-strength-bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(38, 37, 30, 0.1);
  transition: background 0.25s ease;
}
.pwd-strength-bar.weak span:nth-child(1) {
  background: #e04343;
}
.pwd-strength-bar.medium span:nth-child(1),
.pwd-strength-bar.medium span:nth-child(2) {
  background: #c08532;
}
.pwd-strength-bar.strong span:nth-child(1),
.pwd-strength-bar.strong span:nth-child(2),
.pwd-strength-bar.strong span:nth-child(3) {
  background: #1f8a65;
}
.pwd-strength-bar.very_strong span {
  background: #1f8a65;
}
.pwd-strength-text {
  font-size: 12px;
  color: rgba(38, 37, 30, 0.5);
  line-height: 1.4;
}
.pwd-strength-text .level {
  font-weight: 600;
}
.pwd-strength-text .level.weak       { color: #e04343; }
.pwd-strength-text .level.medium     { color: #c08532; }
.pwd-strength-text .level.strong     { color: #1f8a65; }
.pwd-strength-text .level.very_strong { color: #1f8a65; }
.pwd-rules {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(38, 37, 30, 0.45);
}
.pwd-rules li {
  padding: 1px 0;
  transition: color 0.2s;
}
.pwd-rules li.pass {
  color: #1f8a65;
}
.pwd-rules li::before {
  content: '✗ ';
}
.pwd-rules li.pass::before {
  content: '✓ ';
}

/* ========== 搜索框 ========== */
.search-box-wrapper {
  margin-bottom: var(--space-lg);
}

.search-form {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper .search-input {
  width: 100%;
  padding: 14px 50px 14px 48px;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.search-input-wrapper .search-input:focus {
  outline: none;
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: rgba(38, 37, 30, 0.3);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: #ebeae5;
  color: var(--color-error);
}

.search-btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .search-form {
    flex-direction: column;
  }
  
  .search-input-wrapper {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    padding: 12px 24px;
  }
}

/* 热门搜索 */
.hot-keywords-section {
  margin-bottom: var(--space-xl);
}

.hot-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hot-keyword {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hot-keyword:hover {
  color: var(--color-error);
  border-color: rgba(38, 37, 30, 0.2);
  background: #ebeae5;
}

.hot-keyword i {
  font-size: 0.875rem;
  color: #f54e00;
}

/* ========== 标签 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--soft-green);
  border-radius: var(--radius-full);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--mint-green);
}

.tag:hover {
  background: var(--light-grass);
  color: var(--forest-green);
}

/* ========== 评论图片缩略图 ========== */
.comment-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-width: 280px;
}

.comment-image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--soft-green);
  transition: transform var(--transition-fast);
  border: 1px solid var(--mint-green);
}

.comment-image-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-image-thumb .image-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(44, 62, 107, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ========== 种草笔记图片缩略图 ========== */
.complaint-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-width: 280px;
}

.complaint-image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--soft-green);
  transition: transform var(--transition-fast);
  border: 1px solid var(--mint-green);
}

.complaint-image-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.complaint-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complaint-image-thumb .image-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(44, 62, 107, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ========== 图片灯箱 ========== */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 16px;
  }
  
  .lightbox-next {
    right: 16px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* ========== 分割线 ========== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint-green), transparent);
  margin: var(--space-lg) 0;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: var(--space-sm);
}

.empty-state-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========== 浮动按钮 ========== */
.fab-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  height: 48px;
  padding: 0 20px;
  background: #ebeae5;
  color: #26251e;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  z-index: 100;
  text-decoration: none;
}

.fab-btn .fab-text {
  display: inline;
  font-size: 0.875rem;
}

.fab-btn:hover {
  color: var(--color-error);
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px;
  background: #e6e5e0;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.page-link:hover {
  color: var(--color-error);
  border-color: rgba(38, 37, 30, 0.2);
  background: #ebeae5;
}

.page-link.active {
  color: #26251e;
  background: #e6e5e0;
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: none;
  font-weight: 600;
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 底部 ========== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

footer a {
  color: var(--text-secondary);
}

footer a:hover {
  color: var(--primary-color);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scale-in {
  animation: scaleIn 0.3s ease forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* 错开动画 */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* ========== 响应式 ========== */
@media (max-width: 991.98px) {
  /* 移动端导航菜单 */
  .navbar-collapse {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md);
    overflow-y: auto;
    z-index: 999;
    display: flex;
    flex-direction: column;
  }
  
  .navbar-collapse.show {
    display: flex !important;
  }
  
  .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    gap: 4px;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 12px 16px !important;
    font-size: 1rem;
    border-radius: var(--radius-md);
    width: 100%;
  }
  
  .nav-link i {
    font-size: 1.125rem;
    width: 24px;
  }
  
  /* 移动端下拉菜单 */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: var(--bg-hover);
    width: 100%;
    margin-top: 4px;
    padding: 4px;
  }
  
  .dropdown-item {
    padding: 10px 16px;
  }
  
  /* 登录注册按钮 */
  .navbar-nav .btn {
    width: 100%;
    margin: 4px 0 !important;
    justify-content: center;
  }
  
  .navbar-nav .ms-2 {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  main.container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .page-header {
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    border-radius: 0;
  }
  
  .page-title {
    font-size: 1.4rem;
  }
  
  .tucao-card {
    padding: var(--space-md) 0;
  }
  
  .tucao-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
  
  .fab-btn {
    right: 16px;
    bottom: 16px;
    height: 44px;
    padding: 0 16px;
    font-size: 0.8125rem;
  }
}

/* ========== 热门种草笔记区 ========== */
.hot-section {
  margin-bottom: var(--space-lg);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title i {
  color: #f54e00;
  font-size: 1.1rem;
}

.section-link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.section-link:hover {
  color: var(--primary-color);
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 0;
}

.hot-grid::-webkit-scrollbar {
  display: none;
}

.hot-card {
  position: relative;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.hot-card:hover {
  transform: translateY(-3px);
  box-shadow: rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px;
  border-color: rgba(38, 37, 30, 0.2);
}

.hot-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.rank-other { background: var(--primary-color); }

.hot-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(38, 37, 30, 0.1);
}

.hot-nickname {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-green);
  flex: 1;
}

.hot-emotion {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
}

.hot-content {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-stats {
  display: flex;
  gap: var(--space-sm);
}

.hot-stat {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hot-stat i {
  color: #f54e00;
}

.hot-category {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--light-grass);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
}

/* 热门区求助分类标签 - 橙色 */
.hot-category.qiuzhu {
  background: #FFF3E0;
  color: #BF360C;
}

/* ========== 发帖引导区 ========== */
.publish-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.publish-cta:hover {
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: var(--shadow-md);
}

.publish-cta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.publish-cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-cta-avatar i {
  font-size: 1.5rem;
  color: rgba(38, 37, 30, 0.3);
}

.publish-cta-input {
  flex: 1;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  padding: 8px 16px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.publish-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.publish-cta-tag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ebeae5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f54e00;
  font-size: 1rem;
}

.publish-cta-btn {
  padding: 8px 20px;
  background: #ebeae5;
  color: #26251e;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.publish-cta-btn:hover {
  color: var(--color-error);
}

.publish-cta-guest {
  background: var(--bg-card);
}

/* ========== 标签切换栏 ========== */
.tab-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-sm);
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.tab-item:hover {
  color: var(--color-error);
  background: #ebeae5;
}

.tab-item.active {
  color: #26251e;
  background: #ebeae5;
  font-weight: 600;
}

/* ========== 统计卡片 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stats-card {
  background: #f7f7f4;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(38, 37, 30, 0.1);
  box-shadow: none;
  text-align: center;
  transition: all var(--transition-fast);
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(38, 37, 30, 0.2);
}

.stats-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  background: #ebeae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f54e00;
}

.stats-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1;
  margin-bottom: 4px;
}

.stats-card-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ========== 活跃用户榜 ========== */
.active-users {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.active-users-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.active-users-title i {
  color: var(--accent-sun);
}

.active-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.active-user-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--soft-green);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.active-user-item:hover {
  background: var(--light-grass);
  transform: scale(1.02);
}

.active-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest-green);
}

.active-user-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ========== stats.php 专属样式 + 动画 ========== */

/* 动画关键帧 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes progressFill {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes countPop {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes rankShimmer {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,78,0,0); }
  50%     { box-shadow: 0 0 12px 2px rgba(245,78,0,0.3); }
}

/* 大型统计卡片 */
.stat-card-large {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  opacity: 0;
  animation: scaleIn 0.45s ease forwards;
}
.stat-card-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
.stat-icon-large.bg-primary  { background: var(--primary-color); }
.stat-icon-large.bg-success  { background: #1f8a65; }
.stat-icon-large.bg-danger   { background: #c44040; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-number-large {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--forest-green);
  opacity: 0;
  animation: countPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-delay: 0.2s;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 统计区块 */
.stats-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}
.section-title i { color: var(--primary-color); }

/* 今日动态 */
.today-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.today-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--earth-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  transition: transform var(--transition-fast);
}
.today-stat-item:nth-child(1) { animation-delay: 0.15s; }
.today-stat-item:nth-child(2) { animation-delay: 0.25s; }
.today-stat-item:hover { transform: translateY(-2px); }
.today-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.today-stat-icon.bg-primary { background: var(--primary-color); }
.today-stat-icon.bg-success { background: #1f8a65; }
.today-stat-info { display: flex; flex-direction: column; gap: 2px; }
.today-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--forest-green);
}
.today-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 情绪分布 */
.emotion-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.emotion-stat-item {
  opacity: 0;
  animation: fadeInLeft 0.4s ease forwards;
}
.emotion-stat-item:nth-child(1) { animation-delay: 0.05s; }
.emotion-stat-item:nth-child(2) { animation-delay: 0.12s; }
.emotion-stat-item:nth-child(3) { animation-delay: 0.19s; }
.emotion-stat-item:nth-child(4) { animation-delay: 0.26s; }
.emotion-stat-item:nth-child(5) { animation-delay: 0.33s; }
.emotion-stat-item:nth-child(6) { animation-delay: 0.40s; }
.emotion-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.emotion-stat-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.emotion-stat-percent {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 3px;
  display: block;
  text-align: right;
}

/* 进度条 */
.progress-bar-container {
  background: var(--earth-light);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  clip-path: inset(0 100% 0 0);
  animation: progressFill 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

/* 分类分布 */
.category-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.category-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--earth-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.category-stat-item:nth-child(1) { animation-delay: 0.05s; }
.category-stat-item:nth-child(2) { animation-delay: 0.1s; }
.category-stat-item:nth-child(3) { animation-delay: 0.15s; }
.category-stat-item:nth-child(4) { animation-delay: 0.2s; }
.category-stat-item:nth-child(5) { animation-delay: 0.25s; }
.category-stat-item:nth-child(6) { animation-delay: 0.3s; }
.category-stat-item:hover {
  transform: translateX(4px);
  background: var(--earth-beige);
}
.category-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.category-stat-icon.bg-primary   { background: var(--primary-color); }
.category-stat-icon.bg-secondary  { background: var(--text-secondary); }
.category-stat-icon.bg-success    { background: #1f8a65; }
.category-stat-icon.bg-danger     { background: #c44040; }
.category-stat-icon.bg-warning    { background: #c08532; }
.category-stat-icon.bg-info       { background: #2f7abf; }
.category-stat-info { display: flex; flex-direction: column; gap: 1px; }
.category-stat-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-green);
}
.category-stat-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 活跃用户榜 - 排名角标 */
.active-user-item {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.active-user-item:nth-child(1) { animation-delay: 0.05s; }
.active-user-item:nth-child(2) { animation-delay: 0.1s; }
.active-user-item:nth-child(3) { animation-delay: 0.15s; }
.active-user-item:nth-child(4) { animation-delay: 0.2s; }
.active-user-item:nth-child(5) { animation-delay: 0.25s; }
.active-user-item:nth-child(6) { animation-delay: 0.3s; }
.active-user-item:nth-child(7) { animation-delay: 0.35s; }
.active-user-item:nth-child(8) { animation-delay: 0.4s; }
.active-user-item:nth-child(9) { animation-delay: 0.45s; }
.active-user-item:nth-child(10){ animation-delay: 0.5s; }
.active-user-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 {
  background: linear-gradient(135deg, #f5c842, #f59d00);
  color: #fff;
  animation: rankShimmer 2.5s ease-in-out infinite;
}
.rank-2 {
  background: linear-gradient(135deg, #c0c8d4, #8fa0b4);
  color: #fff;
}
.rank-3 {
  background: linear-gradient(135deg, #d4915a, #b06a3a);
  color: #fff;
}
.rank-other {
  background: var(--earth-beige);
  color: var(--text-secondary);
  font-weight: 600;
}
.active-user-info { display: flex; flex-direction: column; gap: 1px; }

/* ========== 评论区域 ========== */
.comments-section {
  margin-top: var(--space-xl);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.comments-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest-green);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comments-count {
  font-size: 0.875rem;
  padding: 2px 10px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
}

.comment-item {
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
}

.comment-item:hover {
  border-color: rgba(38, 37, 30, 0.2);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(38, 37, 30, 0.1);
}

.comment-meta {
  flex: 1;
}

.comment-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-green);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.comment-content {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========== 表单样式增强 ========== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: var(--space-sm);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: all var(--transition-fast);
}

.form-textarea:focus {
  outline: none;
  border-color: rgba(38, 37, 30, 0.2);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

/* ========== 上传区域 ========== */
.upload-area {
  border: 2px dashed rgba(38, 37, 30, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  background: #f7f7f4;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-area:hover {
  border-color: rgba(38, 37, 30, 0.3);
  background: #ebeae5;
}

.upload-icon {
  font-size: 2.5rem;
  color: #f54e00;
  margin-bottom: var(--space-sm);
}

.upload-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* ========== 情绪选择器 ========== */
.emotion-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.emotion-option {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emotion-option:hover {
  border-color: rgba(38, 37, 30, 0.2);
  background: #ebeae5;
}

.emotion-option.selected {
  color: #26251e;
  background: #e6e5e0;
  border-color: rgba(38, 37, 30, 0.2);
  font-weight: 600;
}

/* ========== 响应式补充 ========== */
@media (max-width: 768px) {
  /* 移动端隐藏热门晕晕模块，减少首屏内容密度 */
  .hot-section {
    display: none;
  }

  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .hot-card {
    padding: 10px;
  }
  
  .publish-cta-actions {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 情绪标签横向展示 ========== */
.emotion-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.emotion-tag-item {
  display: flex;
  align-items: center;
  margin-right: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.emotion-tag-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emotion-tag-label:hover {
  border-color: rgba(38, 37, 30, 0.2);
  background: #ebeae5;
}

.form-check-input:checked + .emotion-tag-label {
  color: #26251e;
  background: #e6e5e0;
  border-color: rgba(38, 37, 30, 0.2);
  font-weight: 600;
}

.emotion-tags-wrapper .form-check-input {
  display: none;
}

/* ========== 详情页 - 社区帖子风格 ========== */
.complaint-detail {
  max-width: 680px;
  margin: 0 auto;
}

.complaint-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.complaint-card .user-info {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.complaint-card .user-info img {
  border: none;
}

.complaint-card .nickname {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.complaint-card .create-time {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.complaint-card .content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  padding: var(--space-md) 0;
}

.complaint-card .emotion-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--soft-green);
  border: 1px solid var(--mint-green);
  color: var(--primary-dark);
  margin: var(--space-sm) 0;
}

.complaint-card .action-bar {
  display: flex;
  gap: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-md);
}

.complaint-card .action-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.complaint-card .action-item:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
}

.complaint-card .action-item.resonated {
  color: var(--danger-color);
}

.complaint-card .action-icon {
  font-size: 1.1rem;
}

.complaint-card .action-text {
  font-size: 0.8125rem;
}

/* 评论区增强 */
.comments-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid #f54e00;
  display: inline-block;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  transition: border-color var(--transition-fast);
}

.comment-item:hover {
  border-color: rgba(38, 37, 30, 0.2) !important;
}

.comment-item .nickname {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-item .comment-content {
  color: var(--text-primary);
  line-height: 1.7;
}

/* 评论图片上传 */
.comment-image-upload .image-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-page);
}

.comment-image-upload .image-upload-box:hover {
  border-color: var(--primary-light);
  background: var(--bg-hover);
}

.comment-image-upload .upload-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.comment-image-upload .upload-placeholder i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.comment-image-upload .image-preview-box {
  position: relative;
  display: inline-block;
}

.comment-image-upload .image-preview-box img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.comment-image-upload .remove-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger-color);
  color: #fff;
  border: 2px solid #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 举报模态框增强 */
.modal .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-lg);
}

.modal .modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.modal .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-lg);
}

/* “每日种草推荐”社区感 CTA样式 */
.publish-cta-input-highlight {
  color: var(--text-primary) !important;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 热门卡片排名样式优化 */
.hot-rank {
  font-size: 0.6875rem;
}

.rank-1 { background: linear-gradient(135deg, #f54e00, #ff6a2a); }
.rank-2 { background: linear-gradient(135deg, #7C8DB0, #A0B4D0); }
.rank-3 { background: linear-gradient(135deg, #c08532, #d4a574); }

/* 标签切换栏下划线样式 */
.tab-item.active {
  color: #26251e;
  background: transparent;
  font-weight: 600;
  position: relative;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #f54e00;
  border-radius: 2px;
}

/* 活跃触摸状态 */
.active-touch {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* 全局卡片容器 - 给 feed 列表加背景 */
.tucao-list {
  background: #f7f7f4;
  border-radius: var(--radius-lg);
  padding: 0 var(--space-md);
  border: 1px solid rgba(38, 37, 30, 0.1);
}

/* 最后一个卡片无下边框 */
.tucao-card:last-child {
  border-bottom: none;
}

/* 空状态优化 */
.empty-state {
  padding: var(--space-2xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-title {
  color: var(--text-primary);
  font-size: 1rem;
}

/* 分页样式优化 */
.pagination {
  gap: 6px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.page-link {
  min-width: 36px;
  height: 36px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* ========== 灯下回响样式 ========== */

/* 灯下回响 Tab */
.tab-item.echo-tab {
  color: #c08532;
}
.tab-item.echo-tab:hover,
.tab-item.echo-tab.active {
  color: #26251e;
  background: #ebeae5;
  font-weight: 600;
}
.tab-item.echo-tab.active {
  border-bottom-color: #c08532;
}

/* 灯下回响标签图标动画 */
.echo-tab .bi-chat-heart {
  animation: echoGlow 2s ease-in-out infinite;
}
@keyframes echoGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 加载动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* ========== 视频上传样式 ========== */

/* 视频上传容器 */
.video-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* 视频上传框 */
.video-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: var(--space-lg);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-upload-box:hover {
  border-color: var(--primary-color);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-upload-box:active {
  transform: translateY(0);
}

/* 视频上传占位符 */
.video-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
}

.video-upload-placeholder i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.video-upload-box:hover .video-upload-placeholder i {
  transform: scale(1.15);
}

.video-upload-placeholder span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.video-upload-placeholder small {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* 视频预览框 */
.video-preview-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.video-preview-box video {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
  background: #000;
}

/* 视频信息 */
.video-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

#videoFileName {
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#videoFileSize {
  color: var(--text-tertiary);
}

/* 移除视频按钮 */
.video-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--danger-color);
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-remove-btn:hover {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

/* ========== 视频播放样式（详情页） ========== */

/* 视频播放容器 */
.complaint-video-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.complaint-video-container video {
  width: 100%;
  max-height: 400px;
  display: block;
}

/* 视频标签 */
.video-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.video-label i {
  font-size: 0.7rem;
}

/* ========== 首页视频标识样式 ========== */

/* 种草笔记卡片视频标识 */
.tucao-video-indicator {
  margin-top: var(--space-sm);
}

.video-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.video-preview-link:hover {
  background: linear-gradient(135deg, rgba(38, 37, 30, 0.85), rgba(38, 37, 30, 0.65));
  transform: scale(1.02);
}

.video-preview-link i {
  font-size: 1.1rem;
  color: #f54e00;
}

/* ========== 图片上传区域样式 ========== */

/* 图片列表容器 */
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* 图片上传按钮 */
.image-upload {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.image-upload:hover {
  border-color: var(--primary-color);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.image-upload:active {
  transform: translateY(0);
}

/* 图片上传内容区 */
.image-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-sm);
  text-align: center;
}

.image-upload-content i {
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.image-upload:hover .image-upload-content i {
  transform: scale(1.15);
}

.image-upload-content .upload-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.image-upload-content small {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* 已上传图片预览项 */
.image-item {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.image-item:hover .image-remove {
  opacity: 1;
}

.image-remove:hover {
  background: var(--danger-color);
}

/* 图片数量角标 */
.image-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.625rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   全站神秘感样式 - 匿名社区氛围增强
   ============================================================ */

/* --- 匿名头像统一风格（兜帽微光） --- */
.anon-avatar-mask {
  position: relative;
  display: inline-block;
}
.anon-avatar-mask img {
  border: 1.5px solid rgba(107,92,231,0.35);
  box-shadow: 0 0 8px rgba(107,92,231,0.15), 0 0 20px rgba(107,92,231,0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* hover 时增强微光 */
.tucao-card:hover .anon-avatar-mask img,
.hot-card:hover .anon-avatar-mask img {
  border-color: rgba(107,92,231,0.55);
  box-shadow: 0 0 12px rgba(107,92,231,0.25), 0 0 28px rgba(107,92,231,0.10);
}
/* 匿名标识微光圆点 */
.anon-avatar-mask::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(107,92,231,0.7);
  box-shadow: 0 0 6px rgba(107,92,231,0.8);
  border: 1.5px solid rgba(240,237,230,0.9);
}
.night-mode .anon-avatar-mask::after {
  border-color: rgba(26,24,20,0.9);
}

/* 通用 .anon-avatar 类（用于 detail.php / my-comments.php 等非 feed 页面） */
.anon-avatar {
  border: 1.5px solid rgba(107,92,231,0.35) !important;
  box-shadow: 0 0 8px rgba(107,92,231,0.15), 0 0 20px rgba(107,92,231,0.06) !important;
}

/* --- 匿名昵称文字 --- */
.anon-nick {
  color: rgba(38,37,30,0.38) !important;
  font-style: italic;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.anon-nick::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(201,111,26,0.45);
  box-shadow: 0 0 5px rgba(201,111,26,0.5);
  flex-shrink: 0;
}
.night-mode .anon-nick {
  color: rgba(230,221,208,0.32) !important;
}

/* --- 页面整体微噪点背景（加强神秘感）--- */
.page-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}
.page-layout {
  position: relative;
}

/* --- 神秘「密封信封」卡片增强 --- */
/* 在 detail 等其他页面的通用 card 也加入微左边框 */
.card:hover {
  border-left: 2px solid rgba(201,111,26,0.2) !important;
}

/* --- 全站烛光主色调微调（更深更神秘） --- */
:root {
  --primary-color: #c96f1a;
  --primary-light: #e08930;
}

/* --- 夜间模式：加强暗部对比 --- */
.night-mode body {
  background: #1a1814;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.night-mode .anon-nick {
  color: rgba(230,221,208,0.3) !important;
}
.night-mode .tucao-card::before {
  background: linear-gradient(180deg, transparent, rgba(201,111,26,0.45), rgba(158,94,24,0.3), transparent);
}
.night-mode .tucao-card:hover::before {
  background: linear-gradient(180deg, transparent, rgba(201,111,26,0.65), rgba(158,94,24,0.45), transparent);
}
/* 夜间模式 echo 引用卡片 */
.night-mode .echo-card { background: rgba(38,35,28,0.85); }
.night-mode .echo-quote { color: rgba(230,221,208,0.82); }

/* --- 减少动画（无障碍） --- */
@media (prefers-reduced-motion: reduce) {
  .hero-particles::before,
  .hero-particles::after,
  .hero-banner::before {
    animation: none;
  }
  .tucao-card {
    animation: none;
    opacity: 1;
  }
}
