/* ============================================
   汇友之家全站设计系统 v2.0 "深海鎏金"
   色系：深海蓝#1B3A5F / 鎏金#C9A84C / 浅蓝灰#F5F7FA
   类名前缀：hv- (避免与v1的hy-冲突)
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  /* 主色系 - 深海蓝 */
  --hv-primary: #1B3A5F;
  --hv-primary-dark: #0F2A47;
  --hv-primary-light: #2A5283;
  --hv-primary-bg: rgba(27,58,95,.08);
  --hv-primary-border: rgba(27,58,95,.2);

  /* 强调色系 - 鎏金 */
  --hv-accent: #C9A84C;
  --hv-accent-dark: #A8893A;
  --hv-accent-light: #DBC56E;
  --hv-accent-bg: rgba(201,168,76,.08);
  --hv-accent-border: rgba(201,168,76,.2);

  /* 功能色 */
  --hv-success: #22C55E;
  --hv-success-bg: rgba(34,197,94,.08);
  --hv-danger: #EF4444;
  --hv-danger-bg: rgba(239,68,68,.08);
  --hv-danger-border: rgba(239,68,68,.2);
  --hv-warning: #F59E0B;
  --hv-warning-bg: rgba(245,158,11,.08);
  --hv-info: #3B82F6;
  --hv-info-bg: rgba(59,130,246,.08);

  /* 背景 */
  --hv-bg-page: #F5F7FA;
  --hv-bg-card: #FFFFFF;
  --hv-bg-hover: #F1F5F9;
  --hv-bg-dark: #1E293B;

  /* 文本 */
  --hv-text-title: #1E293B;
  --hv-text-body: #475569;
  --hv-text-muted: #94A3B8;
  --hv-text-placeholder: #CBD5E1;
  --hv-text-inverse: #FFFFFF;

  /* 边框 */
  --hv-border: #E2E8F0;
  --hv-border-light: #F1F5F9;

  /* 圆角 */
  --hv-radius-sm: 6px;
  --hv-radius-md: 10px;
  --hv-radius-lg: 14px;
  --hv-radius-xl: 20px;
  --hv-radius-full: 9999px;

  /* 阴影 */
  --hv-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --hv-shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --hv-shadow-lg: 0 8px 24px rgba(0,0,0,.10);
  --hv-shadow-card: 0 2px 8px rgba(27,58,95,.06);
  --hv-shadow-hover: 0 8px 20px rgba(27,58,95,.10);
  --hv-shadow-primary: 0 4px 16px rgba(27,58,95,.15);

  /* 字体 */
  --hv-font: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
  --hv-font-mono: "SF Mono","Consolas","Monaco","Courier New",monospace;

  /* 布局 */
  --hv-wrap-w: 1232px;
  --hv-transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ===== 全局重置 =====
   注意：不使用 margin:0/padding:0 通配符，避免破坏 Discuz 原生编辑器和表单样式 */
.hv-page *, .hv-portal * { box-sizing: border-box; }
.hv-page, .hv-portal { font-family: var(--hv-font); color: var(--hv-text-title); line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--hv-bg-page); margin: 0; padding: 0; }
.hv-page h1,.hv-page h2,.hv-page h3,.hv-page h4,.hv-page h5,.hv-page h6,
.hv-portal h1,.hv-portal h2,.hv-portal h3,.hv-portal h4,.hv-portal h5,.hv-portal h6,
.hv-page p, .hv-portal p { margin: 0; }
.hv-page a, .hv-portal a { text-decoration: none; color: inherit; transition: var(--hv-transition); }
.hv-page img, .hv-portal img { max-width: 100%; display: block; }
.hv-page ul, .hv-portal ul { list-style: none; margin: 0; padding: 0; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--hv-bg-page); }
::-webkit-scrollbar-thumb { background: var(--hv-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hv-text-muted); }

/* ===== 通用容器 ===== */
.hv-wrap { max-width: var(--hv-wrap-w); margin: 0 auto; padding: 0 16px; }
.hv-section { padding: 40px 0; }
.hv-section-card { background: var(--hv-bg-card); }
.hv-section-title { font-size: 22px; font-weight: 800; color: var(--hv-text-title); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hv-section-title::before { content: ""; width: 4px; height: 22px; background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent)); border-radius: 2px; }
.hv-section-title .hv-more { margin-left: auto; font-size: 13px; color: var(--hv-text-muted); font-weight: 400; }
.hv-section-title .hv-more:hover { color: var(--hv-primary); }

/* ===== 按钮 ===== */
.hv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--hv-radius-md); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: var(--hv-transition); white-space: nowrap; }
.hv-btn:hover { transform: translateY(-1px); }
.hv-btn-primary { background: var(--hv-primary); color: var(--hv-text-inverse) !important; box-shadow: var(--hv-shadow-primary); }
.hv-btn-primary:hover { background: var(--hv-primary-dark); box-shadow: 0 6px 20px rgba(27,58,95,.25); }
.hv-btn-accent { background: var(--hv-accent); color: var(--hv-text-inverse) !important; }
.hv-btn-accent:hover { background: var(--hv-accent-dark); }
.hv-btn-outline { background: transparent; color: var(--hv-primary); border-color: var(--hv-primary-border); }
.hv-btn-outline:hover { background: var(--hv-primary-bg); border-color: var(--hv-primary); }
.hv-btn-ghost { background: var(--hv-bg-hover); color: var(--hv-text-body); }
.hv-btn-ghost:hover { background: var(--hv-border); }
.hv-btn-danger { background: var(--hv-danger); color: var(--hv-text-inverse) !important; }
.hv-btn-danger:hover { background: #DC2626; }
.hv-btn-sm { padding: 6px 14px; font-size: 13px; }
.hv-btn-lg { padding: 14px 28px; font-size: 16px; }
.hv-btn-block { display: flex; width: 100%; }

/* ===== 卡片 ===== */
.hv-card { 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; transition: var(--hv-transition); }
.hv-card:hover { box-shadow: var(--hv-shadow-hover); transform: translateY(-2px); }
.hv-card-head { padding: 14px 20px; border-bottom: 1px solid var(--hv-border-light); display: flex; align-items: center; justify-content: space-between; }
.hv-card-title { font-size: 16px; font-weight: 700; color: var(--hv-text-title); }
.hv-card-body { padding: 20px; }

/* ===== 徽章/标签 ===== */
.hv-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--hv-radius-full); font-size: 12px; font-weight: 600; }
.hv-badge-primary { background: var(--hv-primary-bg); color: var(--hv-primary); }
.hv-badge-accent { background: var(--hv-accent-bg); color: var(--hv-accent-dark); }
.hv-badge-success { background: var(--hv-success-bg); color: var(--hv-success); }
.hv-badge-danger { background: var(--hv-danger-bg); color: var(--hv-danger); }
.hv-badge-info { background: var(--hv-info-bg); color: var(--hv-info); }
.hv-badge-pin { background: var(--hv-accent); color: #fff; }
.hv-badge-hot { background: var(--hv-danger); color: #fff; }
.hv-badge-new { background: var(--hv-primary); color: #fff; }
.hv-badge-warn { background: var(--hv-warning); color: #fff; }

/* ===== 标签(帖子分类) ===== */
.hv-tag { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.hv-tag-essence { background: var(--hv-accent-bg); color: var(--hv-accent-dark); border: 1px solid var(--hv-accent-border); }
.hv-tag-pin { background: var(--hv-primary-bg); color: var(--hv-primary); border: 1px solid var(--hv-primary-border); }
.hv-tag-warn { background: var(--hv-danger-bg); color: var(--hv-danger); border: 1px solid var(--hv-danger-border); }
.hv-tag-tested { background: var(--hv-info-bg); color: var(--hv-info); }

/* ===== 表格 ===== */
.hv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hv-table th { background: var(--hv-bg-hover); color: var(--hv-text-muted); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hv-border); }
.hv-table td { padding: 10px 14px; border-bottom: 1px solid var(--hv-border-light); color: var(--hv-text-body); }
.hv-table tr:hover td { background: var(--hv-bg-hover); }
.hv-table .num { font-family: var(--hv-font-mono); font-weight: 600; }

/* ===== 表单 ===== */
.hv-input, .hv-select, .hv-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-md); font-size: 14px; color: var(--hv-text-title); background: var(--hv-bg-card); outline: none; transition: var(--hv-transition); }
.hv-input:focus, .hv-select:focus, .hv-textarea:focus { border-color: var(--hv-primary); box-shadow: 0 0 0 3px var(--hv-primary-bg); }
.hv-input::placeholder { color: var(--hv-text-placeholder); }
.hv-label { display: block; font-size: 13px; font-weight: 600; color: var(--hv-text-body); margin-bottom: 6px; }

/* ===== 文本工具 ===== */
.hv-text-primary { color: var(--hv-primary); }
.hv-text-accent { color: var(--hv-accent); }
.hv-text-danger { color: var(--hv-danger); }
.hv-text-success { color: var(--hv-success); }
.hv-text-muted { color: var(--hv-text-muted); }

/* ===== 风险横幅 ===== */
.hv-risk-bar { background: linear-gradient(90deg, #FEF3C7, #FEE2E2); border-bottom: 1px solid var(--hv-accent-border); padding: 8px 0; font-size: 13px; color: #92400E; }
.hv-risk-bar strong { color: var(--hv-danger); }

/* ===== 头部导航 ===== */
.hv-header { position: sticky; top: 0; z-index: 1000; background: var(--hv-bg-card); border-bottom: 1px solid var(--hv-border); box-shadow: var(--hv-shadow-sm); }
.hv-header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.hv-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hv-logo img { height: 40px; width: auto; }
.hv-logo-text { font-size: 20px; font-weight: 800; color: var(--hv-primary); }
.hv-logo-sub { font-size: 10px; color: var(--hv-text-muted); letter-spacing: 1px; }

.hv-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.hv-nav-item { position: relative; padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--hv-text-body); border-radius: var(--hv-radius-md); cursor: pointer; }
.hv-nav-item:hover { color: var(--hv-primary); background: var(--hv-primary-bg); }
.hv-nav-item.active { color: var(--hv-primary); font-weight: 700; }
.hv-nav-item.active::after { content: ""; position: absolute; bottom: -22px; left: 16px; right: 16px; height: 3px; background: linear-gradient(90deg, var(--hv-primary), var(--hv-accent)); border-radius: 2px; }

/* Mega menu dropdown */
.hv-mega-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--hv-bg-card); border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--hv-transition); }
.hv-nav-item:hover .hv-mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hv-mega-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--hv-radius-sm); font-size: 14px; color: var(--hv-text-body); }
.hv-mega-menu a:hover { background: var(--hv-primary-bg); color: var(--hv-primary); }

.hv-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hv-search { position: relative; }
.hv-search input { width: 200px; padding: 8px 12px 8px 36px; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-full); font-size: 13px; background: var(--hv-bg-hover); color: var(--hv-text-title); outline: none; transition: var(--hv-transition); }
.hv-search input:focus { border-color: var(--hv-primary); background: var(--hv-bg-card); box-shadow: 0 0 0 3px var(--hv-primary-bg); }
.hv-search::before { content: "\1F50D"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .5; }
.hv-icon-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--hv-radius-full); font-size: 18px; cursor: pointer; color: var(--hv-text-body); transition: var(--hv-transition); }
.hv-icon-btn:hover { background: var(--hv-bg-hover); color: var(--hv-primary); }

.hv-mobile-toggle { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.hv-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--hv-text-title); border-radius: 1px; transition: var(--hv-transition); }

/* ===== 尾部 ===== */
.hv-footer { background: var(--hv-bg-dark); color: rgba(255,255,255,.7); padding: 40px 0 0; margin-top: 40px; }
.hv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.hv-footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.hv-footer-brand p { font-size: 13px; line-height: 1.7; }
.hv-footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.hv-footer-col a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255,255,255,.6); }
.hv-footer-col a:hover { color: var(--hv-primary-light); }
.hv-footer-disclaimer { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.5); }
.hv-footer-risk { background: rgba(239,68,68,.1); padding: 8px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.6); }
.hv-footer-bottom { padding: 12px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.1); }

/* ===== 客服悬浮窗 ===== */
.hv-float-cs { position: fixed; right: 20px; bottom: 80px; z-index: 999; }
.hv-float-cs-btn { width: 48px; height: 48px; border-radius: var(--hv-radius-full); background: var(--hv-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--hv-shadow-primary); cursor: pointer; transition: var(--hv-transition); }
.hv-float-cs-btn:hover { transform: scale(1.1); background: var(--hv-primary-dark); }

/* ===== 移动端底部导航 ===== */
.hv-mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--hv-bg-card); border-top: 1px solid var(--hv-border); box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.hv-mobile-nav-inner { display: flex; justify-content: space-around; align-items: center; height: 56px; }
.hv-mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--hv-text-muted); padding: 4px 8px; }
.hv-mobile-nav-item.active { color: var(--hv-primary); }
.hv-mobile-nav-icon { font-size: 20px; }

/* ===== 轮播 ===== */
.hv-slider { position: relative; border-radius: var(--hv-radius-lg); overflow: hidden; box-shadow: var(--hv-shadow-md); }
.hv-slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hv-slider-slide { min-width: 100%; }
.hv-slider-slide img { width: 100%; height: auto; }
.hv-slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hv-slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--hv-transition); }
.hv-slider-dot.active { background: var(--hv-primary); width: 24px; border-radius: 4px; }

/* ===== 空状态 ===== */
.hv-empty { text-align: center; padding: 40px 20px; }
.hv-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.hv-empty-text { font-size: 14px; color: var(--hv-text-muted); }
.hv-empty-text a { color: var(--hv-primary); font-weight: 600; }

/* ===== 加载 ===== */
.hv-loading { text-align: center; padding: 40px; color: var(--hv-text-muted); font-size: 14px; }
.hv-spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--hv-border); border-top-color: var(--hv-primary); border-radius: 50%; animation: hv-spin .8s linear infinite; margin-bottom: 8px; }
@keyframes hv-spin { to { transform: rotate(360deg); } }

/* ===== 动画 ===== */
.hv-animate { animation: hv-fade-in .4s ease-out; }
@keyframes hv-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hv-animate-delay-1 { animation-delay: .1s; animation-fill-mode: backwards; }
.hv-animate-delay-2 { animation-delay: .2s; animation-fill-mode: backwards; }
.hv-animate-delay-3 { animation-delay: .3s; animation-fill-mode: backwards; }

/* ===== 面包屑 ===== */
.hv-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hv-text-muted); padding: 12px 0; }
.hv-breadcrumb a { color: var(--hv-text-body); }
.hv-breadcrumb a:hover { color: var(--hv-primary); }
.hv-breadcrumb .hv-sep { color: var(--hv-text-placeholder); }
.hv-breadcrumb .hv-current { color: var(--hv-text-title); font-weight: 600; }

/* ===== 分页(注意:用hv-pager不用hv-page避免冲突) ===== */
.hv-pager { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 20px 0; }
.hv-pager a, .hv-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-sm); font-size: 14px; color: var(--hv-text-body); cursor: pointer; transition: var(--hv-transition); }
.hv-pager a:hover { border-color: var(--hv-primary); color: var(--hv-primary); background: var(--hv-primary-bg); }
.hv-pager .active { background: var(--hv-primary); border-color: var(--hv-primary); color: #fff; }
.hv-pager .disabled { opacity: .4; cursor: default; }

/* ===== 侧边栏卡片 ===== */
.hv-sidebar-card { background: var(--hv-bg-card); border-radius: var(--hv-radius-lg); padding: 20px; border: 1px solid var(--hv-border); box-shadow: var(--hv-shadow-sm); margin-bottom: 16px; }
.hv-sidebar-card h3 { font-size: 15px; font-weight: 700; color: var(--hv-text-title); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hv-sidebar-card h3::before { content: ""; width: 3px; height: 16px; background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent)); border-radius: 2px; }

/* ===== 统计数字 ===== */
.hv-stat { text-align: center; }
.hv-stat-num { font-size: 28px; font-weight: 800; color: var(--hv-primary); font-family: var(--hv-font-mono); }
.hv-stat-num.accent { color: var(--hv-accent); }
.hv-stat-num.success { color: var(--hv-success); }
.hv-stat-label { font-size: 13px; color: var(--hv-text-muted); margin-top: 4px; }

/* ===== Discuz原生覆盖 ===== */
#hd { display: none !important; }
#hv-page-ct { width: 100% !important; margin: 0 auto !important; }
.wp { width: 100% !important; max-width: var(--hv-wrap-w) !important; margin: 0 auto !important; padding: 0 16px !important; }
#append_parent { position: absolute; z-index: 9999; }
#ajaxwaitid { position: fixed; }

/* ===== 恢复 Discuz 多栏布局页面的原生 .wp/#ct 行为 =====
   发帖(post)、帖子回复等页面使用 .ct2_a/.ct3_a 创建多栏布局，
   上述 .wp 和 #ct 的 !important 会破坏其原生样式，
   通过更高优先级的选择器恢复 Discuz 默认值 */
#ct.ct2_a, #ct.ct3_a { width: auto !important; margin: 0 !important; max-width: 100% !important; padding: 0 !important; }
.ct2_a.wp, .ct3_a.wp { width: auto !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* 发帖页 .mn 保留原生 float 布局，仅添加 max-width 防止溢出 */
.ct2_a .mn, .ct3_a .mn { max-width: 100% !important; box-sizing: border-box !important; }
.ct2_a .sd, .ct3_a .sd { max-width: 100% !important; box-sizing: border-box !important; }

/* ===== Showmessage / 登录提示页 ===== */
.hv-showmessage-ct { min-height: 400px; padding: 40px 0; }
.hv-showmessage-ct .nfl { display: block !important; }
.hv-showmessage-ct .f_c { 
  max-width: 480px; margin: 0 auto !important; padding: 32px !important; 
  background: var(--hv-bg-card); border-radius: var(--hv-radius-lg); 
  box-shadow: var(--hv-shadow-md); border: 1px solid var(--hv-border);
}
.hv-showmessage-ct .alert_right,
.hv-showmessage-ct .alert_error,
.hv-showmessage-ct .alert_info {
  text-align: center; padding: 0 0 16px 0; border: none !important; background: transparent !important;
}
.hv-showmessage-ct .alert_right p,
.hv-showmessage-ct #messagetext p {
  font-size: 15px; color: var(--hv-text-body); line-height: 1.8; margin-bottom: 8px;
}
.hv-showmessage-ct .alert_btnleft a {
  display: inline-block; padding: 8px 24px; background: var(--hv-primary); color: #fff !important; 
  border-radius: var(--hv-radius); font-size: 14px; font-weight: 600; transition: var(--hv-transition);
}
.hv-showmessage-ct .alert_btnleft a:hover { background: var(--hv-primary-dark); }
.hv-showmessage-ct #messagelogin { margin-top: 20px; }
.hv-showmessage-ct #messagelogin .f_c { border: none; box-shadow: none; padding: 0 !important; }

/* ===== 面包屑导航 ===== */
#pt.bm.cl { padding: 0 0 16px; margin-bottom: 0; }
#pt.bm.cl .z a { color: var(--hv-text-muted); font-size: 13px; }
#pt.bm.cl .z a:hover { color: var(--hv-primary); }
#pt.bm.cl .z em { color: var(--hv-text-muted); margin: 0 4px; }

/* ===== 发帖页面：仅保留必要的容器防溢出，不干预编辑器原生样式 ===== */

/* 标题输入框 */
.px, .pt {
  border: 1px solid var(--hv-border) !important;
  border-radius: var(--hv-radius-md) !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  color: var(--hv-text-title) !important;
  background: var(--hv-bg-card) !important;
  transition: var(--hv-transition);
  outline: none !important;
}
.px:focus, .pt:focus {
  border-color: var(--hv-primary) !important;
  box-shadow: 0 0 0 3px var(--hv-primary-bg) !important;
}

/* 发帖按钮 */
#postsubmit {
  background: var(--hv-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--hv-radius-md) !important;
  padding: 10px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: var(--hv-shadow-primary);
  transition: var(--hv-transition);
}
#postsubmit:hover {
  background: var(--hv-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,95,.25);
}

/* 保存草稿按钮 */
#postsubmit_savedraft {
  background: var(--hv-bg-hover) !important;
  color: var(--hv-text-body) !important;
  border: 1px solid var(--hv-border) !important;
  border-radius: var(--hv-radius-md) !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: var(--hv-transition);
}
#postsubmit_savedraft:hover {
  background: var(--hv-bg-card) !important;
  border-color: var(--hv-primary-border) !important;
  color: var(--hv-primary) !important;
}

/* 发帖表单容器防溢出 */
#ct.ct2_a .area, #ct.ct3_a .area { padding: 0 !important; }
#postform, .tedt, .json-editor__content { max-width: 100%; box-sizing: border-box; }



/* 附加选项折叠区域 */
#postform .pnpost {
  padding: 16px 0 !important;
  border-top: 1px solid var(--hv-border);
  margin-top: 16px;
}
