﻿/* ============================================
   汇友之家论坛模板样式 v2.1 "流光翠金"
   forumdisplay 版块列表页重构样式
   ============================================ */

/* ===== 页面容器 ===== */
.hv-forumdisplay-page {
  padding-bottom: 48px;
}

.hv-wrap {
  width: 100%;
  max-width: var(--hv-wrap-w);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.hv-risk-bar {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.06));
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
  font-size: 13px;
  color: var(--hv-text-body);
  padding: 10px 0;
}

.hv-risk-bar strong {
  color: var(--hv-accent);
  font-weight: 700;
}

.hv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  font-size: 13px;
  color: var(--hv-text-muted);
  background: linear-gradient(135deg, var(--hv-bg-card) 0%, var(--hv-primary-bg) 100%);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius-lg);
  margin-bottom: 16px;
  position: relative;
}

.hv-breadcrumb::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  border-radius: 0 2px 2px 0;
}

.hv-breadcrumb a {
  color: var(--hv-text-body);
  transition: color .2s;
}

.hv-breadcrumb a:hover {
  color: var(--hv-primary);
}

.hv-breadcrumb .hv-sep {
  color: var(--hv-border);
  font-size: 11px;
}

.hv-breadcrumb .hv-current {
  color: var(--hv-primary);
  font-weight: 600;
}

/* ===== 版块横幅（重新设计）===== */
.hv-section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  border-radius: var(--hv-radius-lg);
  margin-bottom: 20px;
  background: var(--hv-bg-card);
  border: 1px solid var(--hv-border);
  box-shadow: var(--hv-shadow-sm);
  position: relative;
  overflow: hidden;
}

/* 左侧色彩条 */
.hv-section-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  z-index: 2;
  flex-shrink: 0;
}

/* 右侧装饰光晕 */
.hv-section-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background:
    radial-gradient(circle at 75% 50%, rgba(27,58,95,.06) 0%, transparent 55%),
    radial-gradient(circle at 55% 30%, rgba(201,168,76,.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* === 分类主题 === */
.hv-section-banner.broker {
  background: linear-gradient(135deg, rgba(27,58,95,.04), rgba(59,130,246,.03)), var(--hv-bg-card);
}
.hv-section-banner.broker::before {
  background: linear-gradient(180deg, #1B3A5F, #3B82F6);
}
.hv-section-banner.broker::after {
  background: radial-gradient(circle at 75% 50%, rgba(59,130,246,.08) 0%, transparent 55%);
}

.hv-section-banner.trade {
  background: linear-gradient(135deg, rgba(201,168,76,.05), rgba(168,137,58,.03)), var(--hv-bg-card);
}
.hv-section-banner.trade::before {
  background: linear-gradient(180deg, #C9A84C, #A8893A);
}
.hv-section-banner.trade::after {
  background: radial-gradient(circle at 75% 50%, rgba(201,168,76,.08) 0%, transparent 55%);
}

.hv-section-banner.admin {
  background: linear-gradient(135deg, rgba(59,130,246,.05), rgba(245,247,250,.04)), var(--hv-bg-card);
}
.hv-section-banner.admin::before {
  background: linear-gradient(180deg, #3B82F6, #1D4ED8);
}
.hv-section-banner.admin::after {
  background: radial-gradient(circle at 75% 50%, rgba(59,130,246,.08) 0%, transparent 55%);
}

.hv-section-banner.ea {
  background: linear-gradient(135deg, rgba(34,197,94,.04), rgba(27,58,95,.03)), var(--hv-bg-card);
}
.hv-section-banner.ea::before {
  background: linear-gradient(180deg, #22C55E, #1B3A5F);
}
.hv-section-banner.ea::after {
  background: radial-gradient(circle at 75% 50%, rgba(34,197,94,.07) 0%, transparent 55%);
}

.hv-section-banner.warn {
  background: linear-gradient(135deg, rgba(239,68,68,.04), rgba(201,168,76,.03)), var(--hv-bg-card);
}
.hv-section-banner.warn::before {
  background: linear-gradient(180deg, #EF4444, #C9A84C);
}
.hv-section-banner.warn::after {
  background: radial-gradient(circle at 75% 50%, rgba(239,68,68,.07) 0%, transparent 55%);
}

/* === 内容区 === */
.hv-banner-left {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 24px 24px 24px 28px;
}

.hv-banner-left h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--hv-text-title);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.hv-banner-left h1::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--hv-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hv-banner-left h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--hv-text-title);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-banner-left h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--hv-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hv-banner-left p {
  font-size: 13px;
  color: var(--hv-text-body);
  margin: 0;
  line-height: 1.6;
  padding-left: 18px;
}

/* === 按钮区 === */
.hv-banner-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 24px 28px 24px 0;
}

.hv-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--hv-primary) 0%, var(--hv-primary-light) 100%);
  border-radius: var(--hv-radius-lg);
  box-shadow: 0 4px 14px rgba(27,58,95,.22);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.hv-btn-action::before {
  content: '\270E';
  font-size: 15px;
}

.hv-btn-action:hover {
  background: linear-gradient(135deg, var(--hv-primary-dark) 0%, var(--hv-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27,58,95,.30);
}

/* ===== 主内容网格 ===== */
.hv-forum-main {
  padding-top: 16px;
}

.hv-forum-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.hv-forum-content {
  min-width: 0;
}

.hv-forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ===== 卡片基础 ===== */
.hv-card {
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: 0 1px 3px rgba(27,58,95,.04);
  overflow: hidden;
  transition: box-shadow .2s;
}

.hv-card:hover {
  box-shadow: 0 2px 8px rgba(27,58,95,.06);
}

.hv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--hv-bg-hover) 0%, rgba(255,255,255,.5) 100%);
  border-bottom: 1px solid var(--hv-border-light);
  position: relative;
}

.hv-card-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  border-radius: 0 2px 2px 0;
}

.hv-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hv-text-title);
}

.hv-card-body {
  padding: 20px;
}

.hv-animate {
  animation: hvFadeInUp 0.5s ease;
}

@keyframes hvFadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 子版块卡片 ===== */
.hv-subforums-card {
  margin-bottom: 20px;
}

.hv-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hv-board-card {
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-md);
  border: 1px solid var(--hv-border);
  padding: 18px;
  transition: var(--hv-transition);
}

.hv-board-card:hover {
  box-shadow: var(--hv-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--hv-primary-border);
}

.hv-board-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hv-board-card h3 a {
  color: var(--hv-text-title);
}

.hv-board-card h3 a:hover {
  color: var(--hv-primary);
}

.hv-board-desc {
  font-size: 13px;
  color: var(--hv-text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-board-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--hv-text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--hv-border-light);
}

.hv-board-stats strong {
  color: var(--hv-text-title);
  font-family: var(--hv-font-mono);
  margin-left: 4px;
}

/* ===== 筛选排序栏 ===== */
.hv-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--hv-bg-card) 0%, var(--hv-primary-bg) 100%);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: 0 1px 3px rgba(27,58,95,.04);
  margin-bottom: 16px;
  position: sticky;
  top: 64px;
  z-index: 80;
}

.hv-filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.6);
  padding: 3px;
  border-radius: var(--hv-radius-lg);
}

.hv-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hv-text-muted);
  border-radius: var(--hv-radius-md);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.hv-filter-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  width: 16px;
  height: 16px;
  opacity: .7;
  transition: opacity .2s;
}

.hv-filter-tab:hover {
  color: var(--hv-primary);
  background: var(--hv-bg-card);
}

.hv-filter-tab:hover .hv-filter-ico { opacity: 1; }

.hv-filter-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--hv-primary) 0%, var(--hv-primary-dark) 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(27,58,95,.25);
}

.hv-filter-tab.active .hv-filter-ico { opacity: 1; }

.hv-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--hv-accent);
  border-radius: 1px;
  opacity: .8;
}

.hv-filter-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hv-filter-search {
  display: flex;
  align-items: center;
  background: var(--hv-bg-card);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.hv-filter-search:focus-within {
  border-color: var(--hv-primary);
  box-shadow: 0 0 0 3px var(--hv-primary-bg);
}

.hv-filter-input {
  width: 130px;
  padding: 7px 14px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--hv-text-body);
  outline: none;
  transition: width .3s ease;
}

.hv-filter-input::placeholder { color: var(--hv-text-muted); opacity: .6; }
.hv-filter-input:focus { width: 190px; }

.hv-filter-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--hv-primary) 0%, var(--hv-primary-dark) 100%);
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  line-height: 1;
}

.hv-filter-search-btn:hover { opacity: .85; }

/* ===== 帖子列表（紧凑列表）===== */
.hv-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

/* --- 卡片 --- */
.hv-thread-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.hv-thread-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hv-primary), var(--hv-accent));
  opacity: 0;
  transition: opacity .2s;
}

.hv-thread-card:hover {
  border-color: var(--hv-primary-border);
  background: rgba(255,255,255,.8);
  box-shadow: 0 4px 16px rgba(27,58,95,.08);
  transform: translateY(-1px);
}

.hv-thread-card:hover::before { opacity: 1; }

.hv-thread-pin { border-left: 3px solid var(--hv-danger); }
.hv-thread-pin::before { background: var(--hv-danger); opacity: 1; }

.hv-thread-essence { border-left: 3px solid var(--hv-accent); }
.hv-thread-essence::before { background: linear-gradient(90deg, var(--hv-accent), var(--hv-accent-light)); opacity: 1; }

.hv-thread-hot { border-left: 3px solid var(--hv-danger); }

/* --- 头像 --- */
.hv-thread-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--hv-border);
  transition: border-color .2s;
}

.hv-thread-card:hover .hv-thread-avatar {
  border-color: var(--hv-primary-border);
}

.hv-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.hv-thread-avatar a {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- 主体 --- */
.hv-thread-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 第一行：标题 + 标签 + 统计 */
.hv-thread-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-thread-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.hv-thread-title a {
  color: var(--hv-text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  transition: color .2s;
}

.hv-thread-title a:hover {
  color: var(--hv-primary);
}

.hv-thread-pin .hv-thread-title a {
  color: var(--hv-primary);
  font-weight: 700;
}

.hv-thread-essence .hv-thread-title a {
  color: var(--hv-accent-dark);
}
.hv-thread-essence .hv-thread-title a:hover {
  color: var(--hv-accent);
}

/* 标签 */
.hv-thread-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hv-tag-pin {
  background: rgba(239, 68, 68, 0.1);
  color: var(--hv-danger);
}

.hv-tag-essence {
  background: rgba(201, 168, 76, 0.12);
  color: var(--hv-accent);
}

.hv-tag-poll,
.hv-tag-normal {
  background: rgba(27, 58, 95, 0.08);
  color: var(--hv-primary);
}

/* 统计区 */
.hv-thread-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 12px;
}

.hv-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--hv-font-mono);
  font-weight: 600;
  color: var(--hv-text-muted);
  transition: color .2s;
}

.hv-stat-reply {
  color: var(--hv-primary);
}

.hv-thread-card:hover .hv-stat-reply {
  color: var(--hv-primary);
}

.hv-thread-hot .hv-stat-reply {
  color: var(--hv-danger);
}

/* 第二行：作者 + 时间 + 最后回复 */
.hv-thread-row-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hv-text-muted);
  flex-wrap: wrap;
}

.hv-thread-author {
  color: var(--hv-primary);
  font-weight: 500;
}

.hv-thread-author:hover {
  text-decoration: underline;
}

.hv-thread-dot {
  color: var(--hv-border);
  font-size: 10px;
}

.hv-thread-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--hv-bg-hover);
  color: var(--hv-text-muted);
}

.hv-thread-last {
  color: var(--hv-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.hv-thread-last a {
  color: var(--hv-text-body);
  font-weight: 500;
}

.hv-thread-last a:hover {
  color: var(--hv-primary);
}

.hv-thread-last time {
  font-size: 11px;
  color: var(--hv-text-muted);
  margin-left: 2px;
}

/* ===== 版块列表卡片内部结构 (forumdisplay.htm) ===== */

/* 主内容区 */
.hv-thread-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 侧边统计区 */
.hv-thread-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--hv-border-light);
}

/* 标题行 */
.hv-thread-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 类型标签 (forumdisplay 版) */
.hv-thread-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hv-tag-warn { background: rgba(239,68,68,.1); color: var(--hv-danger); }
.hv-tag-ea { background: rgba(27,58,95,.08); color: var(--hv-primary); }

/* 信息行 */
.hv-thread-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hv-text-muted);
  flex-wrap: wrap;
}

.hv-thread-info .hv-thread-author {
  color: var(--hv-primary);
  font-weight: 500;
}

.hv-thread-info .hv-thread-time {
  color: var(--hv-text-muted);
}

/* 统计块 */
.hv-thread-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
}

.hv-thread-stat .hv-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--hv-text-title);
  font-family: var(--hv-font-mono);
  line-height: 1.2;
}

.hv-thread-stat .hv-stat-label {
  font-size: 11px;
  color: var(--hv-text-muted);
}

.hv-thread-stat .hv-stat-muted {
  color: var(--hv-text-muted);
}

/* 最后回复 */
.hv-thread-last-reply {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  min-width: 100px;
  max-width: 140px;
}

.hv-thread-last-author {
  color: var(--hv-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.hv-thread-last-time {
  font-size: 11px;
  color: var(--hv-text-muted);
}

.hv-thread-no-reply {
  font-size: 12px;
  color: var(--hv-text-muted);
  font-style: italic;
}

/* forumdisplay 徽章 */
.hv-thread-attach,
.hv-thread-perm {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--hv-bg-hover);
  color: var(--hv-text-muted);
}

.hv-thread-price {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(201,168,76,.12);
  color: var(--hv-accent);
}

/* ===== 空状态 ===== */
.hv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  border: 2px dashed var(--hv-border);
  border-radius: var(--hv-radius-lg);
  background: var(--hv-bg-card);
}

.hv-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.hv-empty-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--hv-text-title);
  margin-bottom: 6px;
}

.hv-empty-sub {
  font-size: 14px;
  color: var(--hv-text-muted);
  margin-bottom: 20px;
}

/* ===== 分页 ===== */
.hv-pagination {
  padding: 20px 0;
  text-align: center;
}

.hv-pagination .pg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.hv-pagination .pg a,
.hv-pagination .pg strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--hv-radius-md);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}

.hv-pagination .pg a {
  color: var(--hv-text-body);
  background: var(--hv-bg-card);
  border: 1px solid var(--hv-border);
}

.hv-pagination .pg a:hover {
  color: var(--hv-primary);
  border-color: var(--hv-primary);
  background: var(--hv-primary-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(27,58,95,.1);
}

.hv-pagination .pg strong {
  color: #fff;
  background: linear-gradient(135deg, var(--hv-primary) 0%, var(--hv-primary-dark) 100%);
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27,58,95,.2);
}

/* ===== 底部操作栏 ===== */
.hv-forum-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, var(--hv-bg-card) 0%, var(--hv-primary-bg) 100%);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: 0 1px 3px rgba(27,58,95,.04);
  margin-bottom: 16px;
}

.hv-forum-action-left {
  display: flex;
  gap: 10px;
}

.hv-forum-moderators {
  font-size: 13px;
  color: var(--hv-text-muted);
}

/* ===== 按钮 ===== */
.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--hv-radius-md);
  transition: var(--hv-transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.hv-btn-primary {
  color: #fff !important;
  background: var(--hv-primary);
  border-color: var(--hv-primary);
  box-shadow: var(--hv-shadow-primary);
}

.hv-btn-primary:hover {
  background: var(--hv-primary-dark);
  transform: translateY(-1px);
}

.hv-btn-ghost {
  color: var(--hv-primary);
  background: transparent;
  border-color: var(--hv-primary-border);
}

.hv-btn-ghost:hover {
  background: var(--hv-primary-bg);
}

.hv-btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.hv-btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.hv-btn-block {
  display: flex;
  width: 100%;
}

/* ===== 侧边栏 ===== */
.hv-sidebar-card .hv-card-body {
  padding: 16px 20px;
}

.hv-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--hv-text-body);
  border-bottom: 1px solid var(--hv-border-light);
  transition: padding-left .2s;
}

.hv-stat-row:hover {
  padding-left: 4px;
}

.hv-stat-row:last-child {
  border-bottom: none;
}

.hv-stat-num {
  font-weight: 700;
  color: var(--hv-text-title);
  font-family: var(--hv-font-mono);
  font-size: 14px;
}

.hv-stat-today {
  color: var(--hv-danger);
}

.hv-stat-latest {
  align-items: flex-start;
  gap: 12px;
}

.hv-stat-latest span {
  flex-shrink: 0;
}

.hv-stat-latest a {
  color: var(--hv-primary);
  text-align: right;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-moderators {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hv-border-light);
}

/* ===== 首页侧边栏卡片（discuz.htm）===== */
.hv-sidebar-user,
.hv-sidebar-stats,
.hv-sidebar-tools {
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: var(--hv-shadow-sm);
  overflow: hidden;
}

.hv-sidebar-header {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hv-text-title);
  background: var(--hv-bg-hover);
  border-bottom: 1px solid var(--hv-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-sidebar-header::before {
  content: "";
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  border-radius: 2px;
  flex-shrink: 0;
}

.hv-sidebar-body {
  padding: 16px 20px;
}

.hv-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--hv-text-body);
  border-bottom: 1px solid var(--hv-border-light);
}

.hv-user-row:last-child {
  border-bottom: none;
}

.hv-user-row span:last-child {
  font-weight: 600;
  color: var(--hv-text-title);
}

.hv-sidebar-tools > div {
  padding: 8px 0;
}

.hv-sidebar-tools a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--hv-text-body);
  transition: var(--hv-transition);
  border-bottom: 1px solid var(--hv-border-light);
}

.hv-sidebar-tools a:last-child {
  border-bottom: none;
}

.hv-sidebar-tools a:hover {
  background: var(--hv-bg-hover);
  color: var(--hv-primary);
  padding-left: 24px;
}

/* ===== 热门内容区（discuz.htm）===== */
.hv-hot-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hv-hot-block {
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: var(--hv-shadow-sm);
  overflow: hidden;
}

.hv-hot-block h3 {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hv-text-title);
  margin: 0;
  border-bottom: 1px solid var(--hv-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hv-hot-block.essence h3 {
  background: linear-gradient(135deg, var(--hv-accent-bg), transparent);
}

.hv-hot-block.warn h3 {
  background: linear-gradient(135deg, var(--hv-danger-bg), transparent);
}

.hv-hot-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hv-hot-block li {
  padding: 10px 20px;
  border-bottom: 1px solid var(--hv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  transition: var(--hv-transition);
}

.hv-hot-block li:last-child {
  border-bottom: none;
}

.hv-hot-block li:hover {
  background: var(--hv-bg-hover);
}

.hv-hot-block li a {
  color: var(--hv-text-body);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--hv-transition);
}

.hv-hot-block li:hover a {
  color: var(--hv-primary);
}

.hv-hot-block li .hv-time {
  font-size: 12px;
  color: var(--hv-text-muted);
  flex-shrink: 0;
  font-family: var(--hv-font-mono);
}

@media (max-width: 768px) {
  .hv-hot-section {
    grid-template-columns: 1fr;
  }
}

.hv-moderators-label {
  display: block;
  font-size: 12px;
  color: var(--hv-text-muted);
  margin-bottom: 8px;
}

.hv-moderators-list {
  font-size: 13px;
  color: var(--hv-text-body);
  line-height: 1.6;
}

.hv-moderators-list a {
  color: var(--hv-primary);
}

/* 版块规则折叠（内嵌版块信息卡） */
.hv-rules-section {
  margin-top: 16px;
  border-top: 1px solid var(--hv-border-light);
  padding-top: 12px;
}

.hv-rules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--hv-text-title);
  cursor: pointer;
  user-select: none;
}

.hv-rules-arrow {
  font-size: 10px;
  color: var(--hv-text-muted);
  transition: transform 0.3s;
}

.hv-rules-header.expanded .hv-rules-arrow {
  transform: rotate(180deg);
}

.hv-rules-body {
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--hv-text-body);
  line-height: 1.8;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.hv-rules-body.show {
  max-height: 500px;
  margin-top: 8px;
}

/* 快捷导航 */
.hv-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hv-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hv-text-body);
  background: var(--hv-bg-hover);
  border-radius: var(--hv-radius-md);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}

.hv-quick-link:hover {
  background: var(--hv-bg-card);
  color: var(--hv-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27,58,95,.08);
}

.hv-quick-icon {
  font-size: 18px;
  line-height: 1;
}

/* 合规提示 */
.hv-compliance-tip {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--hv-text-muted);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--hv-bg-hover) 0%, var(--hv-primary-bg) 100%);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border-light);
  border-left: 3px solid var(--hv-accent);
}

/* ===== 移动端固定发帖按钮 ===== */
.hv-mobile-post-btn {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hv-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  box-shadow: 0 6px 20px rgba(27, 58, 95, 0.35);
  z-index: 100;
  transition: var(--hv-transition);
}

.hv-mobile-post-btn:hover {
  background: var(--hv-primary-dark);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(27, 58, 95, 0.4);
}

.hv-mobile-post-btn span {
  line-height: 1;
  margin-top: -2px;
}

/* ===== 骨架屏 ===== */
.hv-skeleton {
  background: linear-gradient(90deg, var(--hv-bg-hover) 25%, var(--hv-bg-page) 50%, var(--hv-bg-hover) 75%);
  background-size: 200% 100%;
  animation: hvSkeletonShimmer 1.5s infinite;
  border-radius: var(--hv-radius-sm);
}

@keyframes hvSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1023px) {
  .hv-forum-grid {
    grid-template-columns: 1fr;
  }

  .hv-forum-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hv-compliance-tip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hv-section-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .hv-banner-left {
    padding: 20px 20px 12px 24px;
  }

  .hv-banner-left h1 {
    font-size: 20px;
  }

  .hv-banner-right {
    width: 100%;
    padding: 0 20px 20px 24px;
  }

  .hv-btn-action {
    width: 100%;
  }

  .hv-board-grid {
    grid-template-columns: 1fr;
  }

  .hv-filter-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hv-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .hv-filter-tools {
    justify-content: space-between;
  }

  .hv-filter-input {
    flex: 1;
    width: auto;
  }

  .hv-thread-avatar {
    width: 32px;
    height: 32px;
  }

  .hv-thread-row-top {
    flex-wrap: wrap;
  }

  .hv-thread-stats {
    gap: 8px;
  }

  .hv-thread-title {
    font-size: 14px;
  }

  .hv-thread-title a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hv-thread-tag {
    font-size: 10px;
    padding: 1px 6px;
  }

  .hv-thread-badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  .hv-thread-last {
    max-width: 100%;
  }

  /* forumdisplay 卡片响应式 */
  .hv-thread-side {
    flex-direction: row;
    gap: 12px;
    border-left: none;
    border-top: 1px solid var(--hv-border-light);
    padding-left: 0;
    padding-top: 8px;
    margin-top: 4px;
  }

  .hv-thread-stat .hv-stat-val {
    font-size: 14px;
  }

  .hv-thread-last-reply {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .hv-forum-sidebar {
    grid-template-columns: 1fr;
  }

  .hv-quick-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .hv-forum-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hv-forum-action-left {
    justify-content: center;
  }

  .hv-forum-moderators {
    text-align: center;
  }

  .hv-mobile-post-btn {
    display: flex;
  }

  .hv-pagination .pg a,
  .hv-pagination .pg strong {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hv-wrap {
    padding: 0 12px;
  }

  .hv-quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv-filter-search {
    flex: 1;
  }

  .hv-filter-input {
    width: 0;
  }
}

/* ============================================
   论坛首页三栏布局 (discuz.htm)
   ============================================ */

/* ===== 页面容器 ===== */
.hv-forum-index-page {
  padding-bottom: 48px;
}

/* ===== 三栏网格 ===== */
.hv-forum-index-grid {
  display: grid !important;
  grid-template-columns: 220px 1fr 300px !important;
  gap: 20px;
  align-items: start;
  padding-top: 12px;
}

/* ===== 左侧导航面板 ===== */
.hv-forum-nav {
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: var(--hv-shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
}

.hv-forum-nav-head {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hv-text-title);
  background: var(--hv-bg-hover);
  border-bottom: 1px solid var(--hv-border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hv-forum-nav-head::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  border-radius: 2px;
  flex-shrink: 0;
}

.hv-forum-nav-body {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--hv-border) transparent;
}

.hv-forum-nav-body::-webkit-scrollbar {
  width: 4px;
}

.hv-forum-nav-body::-webkit-scrollbar-thumb {
  background: var(--hv-border);
  border-radius: 2px;
}

/* 导航分组 */
.hv-nav-group {
  margin-bottom: 2px;
}

/* 覆盖主题CSS中顶部导航的::after横条样式（类名冲突修复） */
.hv-forum-nav-body .hv-nav-item::after {
  content: none !important;
  display: none !important;
}

.hv-nav-cat {
  padding: 14px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hv-nav-group:first-child .hv-nav-cat {
  padding-top: 6px;
}

/* 导航项 */
.hv-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 13px;
  font-size: 14px;
  color: var(--hv-text-body);
  transition: var(--hv-transition);
  border-left: 3px solid transparent;
  cursor: pointer;
  position: relative;
}

.hv-nav-item:hover {
  background: var(--hv-bg-hover);
  color: var(--hv-primary);
  border-left-color: var(--hv-primary-border);
}

.hv-nav-item.active {
  background: var(--hv-primary-bg);
  color: var(--hv-primary);
  font-weight: 600;
  border-left-color: var(--hv-primary);
}

.hv-nav-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.hv-nav-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-nav-count {
  font-size: 11px;
  color: var(--hv-text-muted);
  font-family: var(--hv-font-mono);
  flex-shrink: 0;
  min-width: 20px;
  text-align: right;
}

.hv-nav-item:hover .hv-nav-count {
  color: var(--hv-primary);
}

.hv-nav-item.active .hv-nav-count {
  color: var(--hv-primary);
  font-weight: 700;
}

/* ===== 中间区域 ===== */
.hv-forum-index-main {
  min-width: 0;
}

/* 版块标题 */
.hv-index-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--hv-bg-card);
  border-radius: var(--hv-radius-lg);
  border: 1px solid var(--hv-border);
  box-shadow: var(--hv-shadow-sm);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hv-index-board-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
}

.hv-index-board-info {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}

.hv-index-board-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--hv-text-title);
  margin: 0 0 6px;
  line-height: 1.3;
}

.hv-index-board-info p {
  font-size: 13px;
  color: var(--hv-text-body);
  margin: 0;
  line-height: 1.6;
}

.hv-index-board-actions {
  flex-shrink: 0;
}

/* 查看更多 */
.hv-index-more {
  text-align: center;
  padding: 20px 0;
}

.hv-index-more a {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hv-primary);
  background: var(--hv-bg-card);
  border: 1px solid var(--hv-primary-border);
  border-radius: var(--hv-radius-md);
  transition: var(--hv-transition);
}

.hv-index-more a:hover {
  background: var(--hv-primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--hv-shadow-sm);
}

/* ===== 加载状态 ===== */
.hv-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.hv-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--hv-border);
  border-top-color: var(--hv-primary);
  border-radius: 50%;
  animation: hvSpin 0.8s linear infinite;
  margin-bottom: 16px;
}

.hv-loading p {
  font-size: 14px;
  color: var(--hv-text-muted);
  margin: 0;
}

@keyframes hvSpin {
  to { transform: rotate(360deg); }
}

/* ===== 右侧面板 ===== */
.hv-forum-index-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hv-forum-index-aside .hv-sidebar-card {
  transition: box-shadow .2s;
}

.hv-forum-index-aside .hv-sidebar-card:hover {
  box-shadow: 0 4px 16px rgba(27,58,95,.06);
}

/* 首页统计行增强 */
.hv-forum-index-aside .hv-stat-row {
  padding: 8px 0;
}

.hv-forum-index-aside .hv-stat-row span:first-child {
  color: var(--hv-text-muted);
  font-size: 12px;
}

.hv-forum-index-aside .hv-stat-num {
  font-size: 15px;
  font-weight: 800;
}

.hv-forum-index-aside .hv-stat-today {
  color: var(--hv-danger);
}

/* 首页快捷链接 */
.hv-forum-index-aside .hv-quick-link {
  padding: 14px 8px;
}

.hv-forum-index-aside .hv-quick-icon {
  font-size: 20px;
}

/* ===== 三栏响应式 ===== */
@media (max-width: 1200px) {
  .hv-forum-index-grid {
    grid-template-columns: 200px 1fr 280px;
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  .hv-forum-index-grid {
    grid-template-columns: 1fr;
  }

  .hv-forum-nav {
    position: static;
    max-height: none;
  }

  .hv-forum-nav-head {
    padding: 12px 16px;
  }

  .hv-forum-nav-body {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .hv-nav-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hv-nav-cat {
    padding: 0 8px 0 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .hv-nav-item {
    padding: 8px 14px;
    border-left: none;
    border-radius: var(--hv-radius-md);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hv-nav-item.active {
    border-left: none;
    background: var(--hv-primary);
    color: #fff;
  }

  .hv-nav-item.active .hv-nav-count {
    color: rgba(255,255,255,0.8);
  }

  .hv-forum-index-aside {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hv-index-board-header {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
  }

  .hv-index-board-info h2 {
    font-size: 18px;
  }

  .hv-index-board-actions {
    width: 100%;
  }

  .hv-index-board-actions .hv-btn {
    width: 100%;
  }

  .hv-forum-index-aside {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   论坛首页增强样式 (discuz.htm)
   ============================================ */

/* ===== Hero 区域 ===== */
.hv-forum-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 36px;
  background: linear-gradient(135deg, var(--hv-primary-dark) 0%, var(--hv-primary) 50%, var(--hv-primary-light) 100%);
}

.hv-forum-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201,168,76,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(59,130,246,.10) 0%, transparent 45%);
  pointer-events: none;
}

.hv-forum-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hv-forum-hero-text {
  flex: 1;
  min-width: 280px;
}

.hv-forum-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.hv-forum-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.6;
}

.hv-forum-hero-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.hv-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hv-hero-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: var(--hv-font-mono);
  line-height: 1.2;
}

.hv-hero-stat-hot {
  color: var(--hv-accent-light);
}

.hv-hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== 公告条 ===== */
.hv-announcement-bar {
  border-left: 3px solid var(--hv-accent);
  transition: var(--hv-transition);
}

.hv-announcement-bar:hover {
  box-shadow: var(--hv-shadow-hover);
}

/* ===== 区块标题 ===== */
.hv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hv-text-title);
  margin: 28px 0 14px;
}

.hv-section-title-bar {
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== 社区热帖卡片 ===== */
.hv-hot-section-wrap {
  margin-top: 8px;
}

.hv-hot-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hv-hot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--hv-bg-card);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius-md);
  transition: var(--hv-transition);
  text-decoration: none;
}

.hv-hot-card:hover {
  border-color: var(--hv-primary-border);
  box-shadow: var(--hv-shadow-hover);
  transform: translateY(-2px);
}

.hv-hot-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--hv-text-title);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-hot-card:hover .hv-hot-card-title {
  color: var(--hv-primary);
}

.hv-hot-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--hv-text-muted);
}

.hv-hot-card-stats {
  font-family: var(--hv-font-mono);
  flex-shrink: 0;
}

/* ===== 侧边栏用户信息 ===== */
.hv-sidebar-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hv-border-light);
}

.hv-sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hv-primary-bg), var(--hv-primary-border));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--hv-primary-border);
  box-shadow: 0 2px 8px rgba(27,58,95,.12);
  transition: transform .2s;
}

.hv-sidebar-user-box:hover .hv-sidebar-avatar {
  transform: scale(1.05);
}

.hv-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-sidebar-user-info {
  min-width: 0;
}

.hv-sidebar-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--hv-text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hv-sidebar-username::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hv-success, #22C55E);
  flex-shrink: 0;
}

.hv-sidebar-usergroup {
  font-size: 12px;
  color: var(--hv-text-muted);
  margin-top: 2px;
}

/* 用户统计行 */
.hv-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: var(--hv-text-body);
  border-bottom: 1px solid var(--hv-border-light);
  transition: padding-left .2s;
}

.hv-user-row:hover {
  padding-left: 4px;
}

.hv-user-row:last-child {
  border-bottom: none;
}

.hv-user-row span:last-child {
  font-weight: 700;
  color: var(--hv-text-title);
  font-family: var(--hv-font-mono);
  font-size: 14px;
}

/* ===== 登录卡片 ===== */
.hv-login-card .hv-card-body {
  background: linear-gradient(135deg, var(--hv-primary-bg) 0%, rgba(201,168,76,.05) 100%);
  padding: 20px 18px;
}

.hv-login-card .hv-card-body p {
  font-size: 13px;
  color: var(--hv-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hv-forum-hero {
    padding: 28px 0 24px;
  }

  .hv-forum-hero-title {
    font-size: 22px;
  }

  .hv-forum-hero-stats {
    gap: 16px;
  }

  .hv-hero-stat-val {
    font-size: 20px;
  }

  .hv-hot-cards {
    grid-template-columns: 1fr;
  }
}
