/* ============================================
   29_Top_Horizontal_Nav - 顶部横向导航风格
   主色#2563EB | 配色干净清爽 | 横向布局
   ============================================ */
:root{
  --th-primary:#2563EB;
  --th-primary-dark:#1D4ED8;
  --th-primary-light:#DBEAFE;
  --th-bg:#FFFFFF;
  --th-surface:#F9FAFB;
  --th-text:#111827;
  --th-text-2:#6B7280;
  --th-text-3:#9CA3AF;
  --th-border:#E5E7EB;
  --th-border-2:#D1D5DB;
  --th-shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --th-shadow-md:0 4px 12px rgba(0,0,0,.1);
  --th-radius:8px;
  --th-radius-lg:12px;
  --th-container:1200px;
}
*{margin:0;padding:0;box-sizing:border-box}
.th-body{
  font-family:'Inter','Noto Sans SC',sans-serif;
  background:var(--th-bg);
  color:var(--th-text);
  line-height:1.6;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;display:block}
.th-container{max-width:var(--th-container);margin:0 auto;padding:0 20px}
.th-flex{display:flex;gap:24px;align-items:flex-start}
.th-content{flex:1;min-width:0}
.th-sidebar{width:300px;flex-shrink:0}
.th-ic{width:20px;height:20px;flex-shrink:0}
.th-ic-sm{width:16px;height:16px;flex-shrink:0}
.th-ic-lg{width:24px;height:24px;flex-shrink:0}

/* ===== 顶部导航栏 ===== */
.th-header{
  background:var(--th-bg);
  border-bottom:1px solid var(--th-border);
  position:sticky;top:0;z-index:100;
  box-shadow:var(--th-shadow);
}
.th-header-inner{
  max-width:1400px;margin:0 auto;
  padding:0 20px;
  display:flex;align-items:center;gap:16px;
  height:64px;
}
.th-logo{display:flex;align-items:center;gap:8px;flex-shrink:0}
.th-logo-img{width:36px;height:36px}
.th-logo-text{font-size:20px;font-weight:800;color:var(--th-primary);letter-spacing:-.5px}
.th-nav{display:flex;align-items:center;gap:2px;flex:1;overflow-x:auto;scrollbar-width:none}
.th-nav::-webkit-scrollbar{display:none}
.th-nav-item{
  display:flex;align-items:center;gap:4px;
  padding:8px 12px;border-radius:var(--th-radius);
  font-size:14px;font-weight:500;color:var(--th-text-2);
  white-space:nowrap;transition:all .2s;cursor:pointer;
}
.th-nav-item .th-ic{width:16px;height:16px;opacity:.7}
.th-nav-item:hover{background:var(--th-primary-light);color:var(--th-primary)}
.th-nav-item:hover .th-ic{opacity:1}
.th-nav-item.active{background:var(--th-primary);color:#fff}
.th-nav-item.active .th-ic{opacity:1}
.th-search-user{display:flex;align-items:center;gap:12px;flex-shrink:0}
.th-search-box{
  display:flex;align-items:center;gap:6px;
  background:var(--th-surface);border:1px solid var(--th-border);
  border-radius:20px;padding:6px 14px;width:220px;transition:all .2s;
}
.th-search-box:focus-within{border-color:var(--th-primary);box-shadow:0 0 0 3px var(--th-primary-light)}
.th-search-box .th-ic-sm{color:var(--th-text-3)}
.th-search-input{border:none;background:none;outline:none;font-size:13px;flex:1;color:var(--th-text);font-family:inherit}
.th-user-area{display:flex;align-items:center;gap:8px}
.th-icon-btn{
  position:relative;width:36px;height:36px;border-radius:50%;
  border:none;background:var(--th-surface);cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--th-text-2);transition:all .2s;
}
.th-icon-btn:hover{background:var(--th-primary-light);color:var(--th-primary)}
.th-badge{
  position:absolute;top:-2px;right:-2px;
  background:#EF4444;color:#fff;font-size:10px;font-weight:700;
  min-width:16px;height:16px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
}
.th-user-info{display:flex;align-items:center;gap:6px;cursor:pointer}
.th-avatar-sm{width:32px;height:32px;border-radius:50%}
.th-user-name{font-size:13px;font-weight:600;color:var(--th-text)}
.th-menu-toggle{
  display:none;width:36px;height:36px;border-radius:var(--th-radius);
  border:none;background:var(--th-surface);cursor:pointer;color:var(--th-text);
  align-items:center;justify-content:center;
}

/* ===== Banner区 ===== */
.th-banner{
  background:linear-gradient(135deg,#1E40AF 0%,#2563EB 50%,#3B82F6 100%);
  position:relative;overflow:hidden;
}
.th-banner-inner{
  max-width:1400px;margin:0 auto;padding:48px 20px;
  display:flex;align-items:center;gap:32px;position:relative;z-index:1;
}
.th-banner-img{width:320px;flex-shrink:0;filter:drop-shadow(0 8px 24px rgba(0,0,0,.2))}
.th-banner-text{flex:1;color:#fff}
.th-banner-title{font-size:32px;font-weight:800;margin-bottom:12px;letter-spacing:-.5px}
.th-banner-desc{font-size:16px;opacity:.9;margin-bottom:20px}
.th-banner-actions{display:flex;gap:12px}
.th-btn-primary{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--th-primary);color:#fff;
  padding:10px 20px;border-radius:var(--th-radius);
  font-size:14px;font-weight:600;border:none;cursor:pointer;
  transition:all .2s;font-family:inherit;
}
.th-btn-primary:hover{background:var(--th-primary-dark);transform:translateY(-1px);box-shadow:var(--th-shadow-md)}
.th-btn-ghost{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.15);color:#fff;
  padding:10px 20px;border-radius:var(--th-radius);
  font-size:14px;font-weight:600;border:1px solid rgba(255,255,255,.3);
  cursor:pointer;transition:all .2s;
}
.th-btn-ghost:hover{background:rgba(255,255,255,.25)}

/* ===== 标签页 ===== */
.th-tabs-wrap{border-bottom:1px solid var(--th-border);background:var(--th-bg)}
.th-tabs{display:flex;gap:4px;padding:12px 0}
.th-tab{
  padding:8px 16px;border-radius:var(--th-radius);
  font-size:14px;font-weight:500;border:none;cursor:pointer;
  background:none;color:var(--th-text-2);transition:all .2s;font-family:inherit;
}
.th-tab:hover{background:var(--th-surface);color:var(--th-text)}
.th-tab.active{background:var(--th-primary);color:#fff}

/* ===== 板块卡片 ===== */
.th-main{padding:24px 0 48px;background:var(--th-surface);min-height:60vh}
.th-board{
  background:var(--th-bg);border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);margin-bottom:16px;overflow:hidden;
  transition:box-shadow .2s;
}
.th-board:hover{box-shadow:var(--th-shadow-md)}
.th-board-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--th-border)}
.th-board-icon{
  width:44px;height:44px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;color:#fff;
}
.th-ic-blue{background:#2563EB}
.th-ic-purple{background:#7C3AED}
.th-ic-cyan{background:#0891B2}
.th-ic-green{background:#16A34A}
.th-ic-orange{background:#EA580C}
.th-ic-pink{background:#DB2777}
.th-ic-indigo{background:#4F46E5}
.th-ic-teal{background:#0D9488}
.th-ic-red{background:#DC2626}
.th-ic-amber{background:#D97706}
.th-board-title-wrap{flex:1}
.th-board-title{font-size:16px;font-weight:700;color:var(--th-text)}
.th-board-title a:hover{color:var(--th-primary)}
.th-board-desc{font-size:12px;color:var(--th-text-3);margin-top:2px}
.th-board-stat{text-align:right;flex-shrink:0}
.th-stat-num{display:block;font-size:18px;font-weight:700;color:var(--th-primary)}
.th-stat-label{font-size:11px;color:var(--th-text-3)}
.th-topic-list{padding:8px 20px 12px}
.th-topic{
  display:flex;align-items:center;gap:8px;
  padding:7px 0;font-size:14px;
  border-bottom:1px dashed var(--th-border);
}
.th-topic:last-child{border-bottom:none}
.th-topic a{flex:1;color:var(--th-text);transition:color .15s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-topic a:hover{color:var(--th-primary)}
.th-topic-meta{font-size:12px;color:var(--th-text-3);flex-shrink:0}
.th-tag{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;padding:1px 6px;border-radius:4px;
  flex-shrink:0;line-height:1.5;
}
.th-tag-hot{background:#FEE2E2;color:#DC2626}
.th-tag-new{background:#DCFCE7;color:#16A34A}
.th-tag-essence{background:#FEF3C7;color:#D97706}
.th-tag-cat{background:var(--th-primary-light);color:var(--th-primary)}

/* ===== 侧边栏组件 ===== */
.th-widget{
  background:var(--th-bg);border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);padding:16px;margin-bottom:16px;
}
.th-widget-title{
  display:flex;align-items:center;gap:6px;
  font-size:14px;font-weight:700;color:var(--th-text);
  margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--th-border);
}
.th-widget-title .th-ic-sm{color:var(--th-primary)}
.th-online-stats{display:flex;flex-direction:column;gap:10px}
.th-stat-item{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--th-text-2)}
.th-stat-item strong{color:var(--th-text);font-weight:700}
.th-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.th-dot-green{background:#16A34A;box-shadow:0 0 6px rgba(22,163,74,.5)}
.th-dot-blue{background:#2563EB}
.th-dot-orange{background:#EA580C}
.th-dot-purple{background:#7C3AED}
.th-hot-list{display:flex;flex-direction:column;gap:8px}
.th-hot-item{display:flex;align-items:center;gap:8px;font-size:13px}
.th-hot-rank{
  width:20px;height:20px;border-radius:4px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;background:var(--th-surface);color:var(--th-text-3);
}
.th-hot-rank-top{background:var(--th-primary);color:#fff}
.th-hot-item a{flex:1;color:var(--th-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-hot-item a:hover{color:var(--th-primary)}
.th-hot-views{font-size:11px;color:var(--th-text-3);flex-shrink:0}
.th-bar-list{display:flex;flex-direction:column;gap:10px}
.th-bar-item{display:flex;align-items:center;gap:8px;font-size:12px}
.th-bar-label{width:64px;flex-shrink:0;color:var(--th-text-2)}
.th-bar-track{flex:1;height:8px;background:var(--th-surface);border-radius:4px;overflow:hidden}
.th-bar-fill{height:100%;background:linear-gradient(90deg,var(--th-primary),#60A5FA);border-radius:4px;transition:width .6s}
.th-bar-val{width:40px;text-align:right;color:var(--th-text-3);font-size:11px}
.th-notice{font-size:13px;color:var(--th-text-2);line-height:1.7}
.th-user-list{display:flex;flex-direction:column;gap:10px}
.th-user-card{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--th-text)}
.th-user-card img{width:32px;height:32px;border-radius:50%}
.th-user-card:hover{color:var(--th-primary)}

/* ===== 面包屑 ===== */
.th-breadcrumb-wrap{background:var(--th-bg);border-bottom:1px solid var(--th-border)}
.th-breadcrumb{display:flex;align-items:center;gap:6px;padding:12px 0;font-size:13px;color:var(--th-text-3)}
.th-breadcrumb a{display:flex;align-items:center;gap:4px;color:var(--th-text-2);transition:color .15s}
.th-breadcrumb a:hover{color:var(--th-primary)}
.th-bc-sep{color:var(--th-text-3)}

/* ===== 板块信息(list) ===== */
.th-board-info{
  display:flex;align-items:center;gap:16px;
  background:var(--th-bg);border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);padding:20px;margin-bottom:16px;
}
.th-board-info-icon{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.th-board-info-text{flex:1}
.th-board-info-title{font-size:22px;font-weight:800;color:var(--th-text)}
.th-board-info-desc{font-size:13px;color:var(--th-text-2);margin-top:4px;line-height:1.6}
.th-board-info-stats{display:flex;gap:20px;margin-top:8px}
.th-board-info-stats span{font-size:13px;color:var(--th-text-3)}
.th-board-info-stats strong{color:var(--th-primary);font-size:16px;font-weight:700}
.th-new-post{white-space:nowrap}

/* ===== 排序栏 ===== */
.th-sort-bar{display:flex;align-items:center;justify-content:space-between;background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:8px 16px;margin-bottom:16px}
.th-sort-tabs{display:flex;gap:4px}
.th-sort-tab{padding:6px 14px;border-radius:6px;font-size:13px;font-weight:500;border:none;cursor:pointer;background:none;color:var(--th-text-2);transition:all .2s;font-family:inherit}
.th-sort-tab:hover{background:var(--th-surface)}
.th-sort-tab.active{background:var(--th-primary);color:#fff}
.th-filter-btn{display:flex;align-items:center;gap:4px;padding:6px 12px;border-radius:6px;font-size:13px;border:1px solid var(--th-border);background:var(--th-bg);color:var(--th-text-2);cursor:pointer;font-family:inherit}
.th-filter-btn:hover{border-color:var(--th-primary);color:var(--th-primary)}

/* ===== 帖子列表 ===== */
.th-post-list{display:flex;flex-direction:column;gap:8px}
.th-post-item{
  display:flex;align-items:center;gap:12px;
  background:var(--th-bg);border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);padding:14px 16px;transition:all .2s;
}
.th-post-item:hover{border-color:var(--th-primary);box-shadow:var(--th-shadow)}
.th-post-avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.th-post-avatar-xs{width:24px;height:24px;border-radius:50%}
.th-post-main{flex:1;min-width:0}
.th-post-title-row{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.th-post-title{font-size:15px;font-weight:600;color:var(--th-text);transition:color .15s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-post-title:hover{color:var(--th-primary)}
.th-post-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.th-post-meta span{display:flex;align-items:center;gap:3px;font-size:12px;color:var(--th-text-3)}
.th-post-author{color:var(--th-text-2)!important;font-weight:500}
.th-post-cat{color:var(--th-primary)!important}
.th-post-time{color:var(--th-text-3)}
.th-post-last{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;color:var(--th-text-3);min-width:80px;text-align:right}
.th-post-last span:first-of-type{color:var(--th-text-2);font-weight:500}

/* ===== 分页 ===== */
.th-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:24px;flex-wrap:wrap}
.th-page-btn{
  display:flex;align-items:center;gap:4px;
  min-width:36px;height:36px;padding:0 10px;
  border-radius:var(--th-radius);border:1px solid var(--th-border);
  background:var(--th-bg);color:var(--th-text-2);
  font-size:13px;font-weight:500;cursor:pointer;
  justify-content:center;transition:all .2s;
}
.th-page-btn:hover:not(.th-page-disabled):not(.active){border-color:var(--th-primary);color:var(--th-primary)}
.th-page-btn.active{background:var(--th-primary);color:#fff;border-color:var(--th-primary)}
.th-page-disabled{opacity:.5;cursor:not-allowed}
.th-page-ellipsis{color:var(--th-text-3);padding:0 4px}

/* ===== 帖子详情 ===== */
.th-detail-head{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:20px;margin-bottom:16px}
.th-detail-tags{display:flex;gap:6px;margin-bottom:10px}
.th-detail-title{font-size:24px;font-weight:800;color:var(--th-text);line-height:1.4;margin-bottom:10px}
.th-detail-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.th-detail-meta span{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--th-text-3)}
.th-post-detail{
  display:flex;gap:20px;background:var(--th-bg);
  border:1px solid var(--th-border);border-radius:var(--th-radius-lg);
  padding:20px;margin-bottom:16px;
}
.th-post-detail-left{width:160px;flex-shrink:0;text-align:center;border-right:1px solid var(--th-border);padding-right:16px}
.th-post-detail-avatar{width:72px;height:72px;border-radius:50%;margin:0 auto 8px}
.th-post-detail-user{display:flex;flex-direction:column;align-items:center;gap:4px;margin-bottom:8px}
.th-post-detail-name{font-size:15px;font-weight:700;color:var(--th-primary)}
.th-user-level{font-size:11px;color:#D97706;background:#FEF3C7;padding:2px 8px;border-radius:10px}
.th-user-badge{display:flex;flex-direction:column;gap:4px;align-items:center;margin-bottom:10px}
.th-badge-tag{font-size:11px;padding:2px 8px;border-radius:4px;background:var(--th-surface);color:var(--th-text-2);border:1px solid var(--th-border)}
.th-badge-gold{background:#FEF3C7;color:#D97706;border-color:#FDE68A}
.th-user-stat{display:flex;justify-content:center;gap:12px}
.th-user-stat div{display:flex;flex-direction:column}
.th-user-stat strong{font-size:15px;font-weight:700;color:var(--th-text)}
.th-user-stat span{font-size:11px;color:var(--th-text-3)}
.th-post-detail-right{flex:1;min-width:0}
.th-post-detail-floor{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--th-border)}
.th-floor-num{font-size:12px;font-weight:700;color:#fff;background:var(--th-primary);padding:2px 10px;border-radius:10px}
.th-post-content{font-size:14px;color:var(--th-text);line-height:1.85}
.th-post-content p{margin-bottom:12px}
.th-post-content ul{margin:0 0 12px 20px}
.th-post-content li{margin-bottom:6px}
.th-content-img{width:100%;max-width:560px;border-radius:var(--th-radius);margin:12px 0;border:1px solid var(--th-border)}
.th-post-actions{display:flex;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid var(--th-border)}
.th-action-btn{display:flex;align-items:center;gap:5px;padding:6px 14px;border-radius:20px;border:1px solid var(--th-border);background:var(--th-bg);color:var(--th-text-2);font-size:13px;cursor:pointer;transition:all .2s;font-family:inherit}
.th-action-btn:hover{border-color:var(--th-primary);color:var(--th-primary);background:var(--th-primary-light)}

/* ===== 回复 ===== */
.th-reply-section{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:20px;margin-bottom:16px}
.th-reply-section-title{font-size:16px;font-weight:700;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--th-border)}
.th-reply-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--th-border)}
.th-reply-item:last-child{border-bottom:none}
.th-reply-avatar{width:40px;height:40px;border-radius:50%;flex-shrink:0}
.th-reply-body{flex:1;min-width:0}
.th-reply-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.th-reply-name{font-size:14px;font-weight:600;color:var(--th-primary)}
.th-reply-time{font-size:12px;color:var(--th-text-3);margin-left:auto}
.th-reply-text{font-size:14px;color:var(--th-text);line-height:1.7;margin-bottom:8px}
.th-reply-actions{display:flex;gap:12px}
.th-reply-actions button{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--th-text-3);background:none;border:none;cursor:pointer;font-family:inherit;padding:2px 0}
.th-reply-actions button:hover{color:var(--th-primary)}

/* ===== 回复框 ===== */
.th-reply-box{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:20px}
.th-reply-box-title{font-size:16px;font-weight:700;margin-bottom:12px}
.th-reply-box{display:flex;gap:12px;align-items:flex-start}
.th-reply-box-avatar{width:40px;height:40px;border-radius:50%;flex-shrink:0}
.th-reply-box-input{flex:1}
.th-reply-box-input textarea{width:100%;border:1px solid var(--th-border);border-radius:var(--th-radius);padding:12px;font-size:14px;font-family:inherit;resize:vertical;outline:none;transition:border-color .2s;min-height:80px}
.th-reply-box-input textarea:focus{border-color:var(--th-primary);box-shadow:0 0 0 3px var(--th-primary-light)}
.th-reply-box-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.th-reply-tools{display:flex;gap:4px}
.th-reply-tools button{width:32px;height:32px;border-radius:6px;border:none;background:var(--th-surface);color:var(--th-text-2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.th-reply-tools button:hover{background:var(--th-primary-light);color:var(--th-primary)}

/* ===== 楼主信息卡 ===== */
.th-author-card{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.th-author-avatar{width:64px;height:64px;border-radius:50%}
.th-author-name{font-size:15px;font-weight:700;color:var(--th-primary)}
.th-author-stats{display:flex;justify-content:center;gap:16px;width:100%;margin:8px 0;padding:10px 0;border-top:1px solid var(--th-border);border-bottom:1px solid var(--th-border)}
.th-author-stats div{display:flex;flex-direction:column}
.th-author-stats strong{font-size:15px;font-weight:700;color:var(--th-text)}
.th-author-stats span{font-size:11px;color:var(--th-text-3)}
.th-follow-btn{width:100%;justify-content:center}

/* ===== 搜索页 ===== */
.th-search-hero{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:28px;margin-bottom:16px;text-align:center}
.th-search-hero-title{font-size:24px;font-weight:800;margin-bottom:16px;color:var(--th-text)}
.th-search-hero-form{display:flex;align-items:center;gap:8px;max-width:640px;margin:0 auto 12px;background:var(--th-surface);border:2px solid var(--th-border);border-radius:var(--th-radius);padding:6px 6px 6px 16px;transition:border-color .2s}
.th-search-hero-form:focus-within{border-color:var(--th-primary)}
.th-search-hero-form .th-ic-lg{color:var(--th-text-3)}
.th-search-hero-input{flex:1;border:none;background:none;outline:none;font-size:16px;padding:8px 0;font-family:inherit;color:var(--th-text)}
.th-search-hero-form .th-btn-primary{padding:10px 24px}
.th-search-result-info{font-size:14px;color:var(--th-text-2)}
.th-search-result-info strong{color:var(--th-primary)}
.th-search-filter{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:14px 20px;margin-bottom:16px;display:flex;flex-direction:column;gap:10px}
.th-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.th-filter-label{font-size:13px;font-weight:600;color:var(--th-text-2);min-width:48px}
.th-filter-chip{padding:4px 12px;border-radius:16px;font-size:12px;border:1px solid var(--th-border);background:var(--th-bg);color:var(--th-text-2);cursor:pointer;transition:all .2s;font-family:inherit}
.th-filter-chip:hover{border-color:var(--th-primary);color:var(--th-primary)}
.th-filter-chip.active{background:var(--th-primary);color:#fff;border-color:var(--th-primary)}
.th-search-results{display:flex;flex-direction:column;gap:10px}
.th-search-item{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-radius-lg);padding:16px 20px;transition:all .2s}
.th-search-item:hover{border-color:var(--th-primary);box-shadow:var(--th-shadow)}
.th-search-item-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.th-search-item-title{font-size:16px;font-weight:600;color:var(--th-text);transition:color .15s}
.th-search-item-title:hover{color:var(--th-primary)}
.th-search-item-title em{color:var(--th-primary);font-style:normal;background:#FEF3C7;padding:0 2px;border-radius:2px}
.th-search-item-summary{font-size:13px;color:var(--th-text-2);line-height:1.7;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.th-search-item-summary em{color:var(--th-primary);font-style:normal;font-weight:600}
.th-search-item-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.th-search-item-meta span{display:flex;align-items:center;gap:3px;font-size:12px;color:var(--th-text-3)}
.th-search-cat{color:var(--th-primary)!important}

/* ===== 热门搜索/标签云 ===== */
.th-hot-search{display:flex;flex-direction:column;gap:6px}
.th-hot-search-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--th-radius);font-size:13px;color:var(--th-text-2);transition:background .15s}
.th-hot-search-item:hover{background:var(--th-surface);color:var(--th-primary)}
.th-tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.th-cloud-tag{padding:4px 12px;border-radius:16px;font-size:13px;border:1px solid var(--th-border);color:var(--th-text-2);transition:all .2s}
.th-cloud-tag:hover{border-color:var(--th-primary);color:var(--th-primary);background:var(--th-primary-light)}
.th-cloud-sm{font-size:12px}
.th-cloud-md{font-size:14px}
.th-cloud-lg{font-size:16px;font-weight:600}

/* ===== 页脚 ===== */
.th-footer{background:#0F172A;color:#94A3B8;padding-top:40px}
.th-footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding-bottom:24px}
.th-footer-logo{width:40px;height:40px;margin-bottom:12px}
.th-footer-desc{font-size:13px;line-height:1.7;color:#64748B}
.th-footer-title{font-size:14px;font-weight:700;color:#E2E8F0;margin-bottom:12px}
.th-footer-links{display:flex;flex-direction:column;gap:8px}
.th-footer-links a{font-size:13px;color:#94A3B8;transition:color .15s}
.th-footer-links a:hover{color:var(--th-primary)}
.th-social{display:flex;gap:8px}
.th-social-btn{width:36px;height:36px;border-radius:50%;background:#1E293B;display:flex;align-items:center;justify-content:center;color:#94A3B8;transition:all .2s}
.th-social-btn:hover{background:var(--th-primary);color:#fff}
.th-footer-bottom{border-top:1px solid #1E293B;padding:16px 0;text-align:center}
.th-footer-bottom p{font-size:12px;color:#64748B}

/* ===== 响应式 ===== */
@media (max-width:1024px){
  .th-sidebar{width:260px}
  .th-nav{gap:0}
  .th-nav-item{padding:8px 10px;font-size:13px}
  .th-search-box{width:160px}
  .th-footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .th-header-inner{height:56px;flex-wrap:wrap;gap:8px}
  .th-nav{order:3;width:100%;display:none;border-top:1px solid var(--th-border);padding-top:8px}
  .th-nav.open{display:flex}
  .th-search-box{width:auto;flex:1}
  .th-user-name{display:none}
  .th-menu-toggle{display:flex}
  .th-banner-inner{flex-direction:column;text-align:center;padding:32px 20px}
  .th-banner-img{width:200px}
  .th-banner-title{font-size:24px}
  .th-flex{flex-direction:column}
  .th-sidebar{width:100%}
  .th-post-detail{flex-direction:column}
  .th-post-detail-left{width:100%;border-right:none;border-bottom:1px solid var(--th-border);padding-right:0;padding-bottom:12px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
  .th-user-badge{flex-direction:row}
  .th-user-stat{flex-direction:row}
  .th-post-last{display:none}
  .th-footer-inner{grid-template-columns:1fr}
  .th-board-info{flex-direction:column;align-items:flex-start}
  .th-search-hero-form{flex-wrap:wrap}
}

/* ============================================================
   CMS 扩展样式 - 使用 th- 变量
   ============================================================ */

/* ---------- 分页(CMS) ---------- */
.jv-pagination{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  padding:24px 0;
  justify-content:center;
}
.jv-page-info{
  font-size:13px;
  color:var(--th-text-3);
  margin-right:12px;
}
.jv-pagination a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  background:var(--th-bg);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius);
  color:var(--th-text-2);
  transition:all .2s;
  text-decoration:none;
}
.jv-pagination a:hover{
  border-color:var(--th-primary);
  color:var(--th-primary);
}
.jv-pagination a.active{
  background:var(--th-primary);
  border-color:var(--th-primary);
  color:#fff;
  font-weight:600;
}
.jv-pagination a.disabled{
  color:var(--th-text-3);
  border-color:var(--th-border);
  cursor:not-allowed;
  pointer-events:none;
  opacity:.5;
}
.jv-page-dots{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  color:var(--th-text-3);
  font-size:13px;
}

/* ---------- 评论区 ---------- */
.comment-section{margin-top:0}
.comment-form-area{margin-bottom:20px}
.comment-login-notice{
  background:var(--th-surface);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius);
  padding:20px;
  text-align:center;
}
.comment-list{display:flex;flex-direction:column}
.comment-item{
  display:flex;gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--th-border);
}
.comment-item:last-child{border-bottom:none}
.comment-avatar{
  flex-shrink:0;
  width:40px;height:40px;
  border-radius:50%;
  background:var(--th-primary);
  color:#fff;
  font-size:16px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.comment-main{flex:1;min-width:0}
.comment-head{
  display:flex;align-items:center;gap:8px;
  margin-bottom:6px;flex-wrap:wrap;
}
.comment-author{font-size:14px;font-weight:700;color:var(--th-text)}
.comment-reply-to{font-size:12px;color:var(--th-text-3)}
.comment-reply-to::before{content:'\2192';margin-right:3px}
.comment-time{font-size:12px;color:var(--th-text-3);margin-left:auto}
.comment-content{font-size:14px;color:var(--th-text);line-height:1.7;word-break:break-word}
.comment-actions{margin-top:8px}
.comment-reply-btn{
  display:inline-flex;align-items:center;
  height:26px;padding:0 12px;
  border:none;background:transparent;
  color:var(--th-text-3);font-size:12px;
  cursor:pointer;
  transition:all .15s;
}
.comment-reply-btn:hover{color:var(--th-primary)}
.comment-reply-form{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.comment-reply-input{
  width:100%;
  border:1px solid var(--th-border-2);
  border-radius:var(--th-radius);
  padding:10px 14px;
  font-size:13px;line-height:1.5;
  resize:vertical;min-height:60px;
  font-family:inherit;
  background:var(--th-bg);
  color:var(--th-text);
  transition:border-color .2s;
  outline:none;
}
.comment-reply-input:focus{border-color:var(--th-primary)}
.comment-reply-submit{
  align-self:flex-end;
  display:inline-flex;align-items:center;
  height:32px;padding:0 16px;
  border:1px solid var(--th-primary);
  background:var(--th-primary);color:#fff;
  font-size:12px;font-weight:600;
  cursor:pointer;
  border-radius:var(--th-radius);
  transition:all .15s;
}
.comment-reply-submit:hover{background:var(--th-primary-dark);border-color:var(--th-primary-dark)}
.comment-reply-submit:disabled{opacity:.6;cursor:not-allowed}
.comment-replies{
  margin-left:52px;
  padding-left:16px;
  border-left:2px solid var(--th-border);
  display:flex;flex-direction:column;
}
.comment-reply-item{
  display:flex;gap:10px;
  padding:12px 0;
  border-bottom:1px solid var(--th-border);
}
.comment-reply-item:last-child{border-bottom:none}
.comment-reply-item .comment-avatar{width:32px;height:32px;font-size:13px}
.comment-reply-item .comment-author{font-size:13px}
.comment-reply-item .comment-content{font-size:13px}
.comment-empty{text-align:center;padding:32px 16px;color:var(--th-text-3);font-size:14px}
.comment-empty p{margin:0}
.comment-load-more{display:flex;justify-content:center;padding:16px 0}
.comment-load-more-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 28px;
  border:1px solid var(--th-border);
  border-radius:var(--th-radius);
  background:var(--th-bg);color:var(--th-text-2);
  font-size:13px;font-weight:600;
  cursor:pointer;
  transition:all .15s;
}
.comment-load-more-btn:hover{border-color:var(--th-primary);color:var(--th-primary)}
.comment-submit-btn:disabled{opacity:.6;cursor:not-allowed}
.comment-char-count{font-size:13px;color:var(--th-text-3)}

/* ---------- 下载页 ---------- */
.th-download-info{
  background:var(--th-bg);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);
  padding:20px;
  margin-bottom:16px;
}
.th-download-file{
  display:flex;align-items:center;gap:16px;
  padding:16px;
  background:var(--th-surface);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius);
}
.th-download-meta{flex:1;min-width:0}
.th-download-name{font-size:15px;font-weight:700;color:var(--th-text);margin-bottom:4px}
.th-download-desc{font-size:13px;color:var(--th-text-2);line-height:1.6}
.th-download-btn{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--th-primary);color:#fff;
  padding:10px 24px;border-radius:var(--th-radius);
  font-size:14px;font-weight:600;border:none;cursor:pointer;
  transition:all .2s;font-family:inherit;flex-shrink:0;
}
.th-download-btn:hover{background:var(--th-primary-dark)}

/* ---------- 标签云 ---------- */
.th-tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.th-tag-item{
  padding:4px 12px;border-radius:16px;font-size:13px;
  border:1px solid var(--th-border);color:var(--th-text-2);
  transition:all .2s;cursor:pointer;text-decoration:none;
}
.th-tag-item:hover{border-color:var(--th-primary);color:var(--th-primary);background:var(--th-primary-light)}

/* ---------- 用户页面 ---------- */
.th-user-page{max-width:440px;margin:0 auto}
.th-user-form{
  background:var(--th-bg);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);
  padding:32px;
}
.th-user-links{
  display:flex;flex-direction:column;gap:12px;
  margin-top:20px;
}

/* ---------- 认证页面(登录/注册) ---------- */
.th-auth-wrap{
  display:flex;
  justify-content:center;
  padding:48px 0;
}
.th-auth-box{
  width:100%;
  max-width:440px;
  background:var(--th-bg);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);
  padding:32px;
}
.th-auth-header{
  text-align:center;
  margin-bottom:28px;
}
.th-auth-header h1{
  font-size:24px;
  font-weight:800;
  color:var(--th-text);
  margin-bottom:8px;
}
.th-auth-header p{
  font-size:14px;
  color:var(--th-text-3);
}
.th-auth-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.th-auth-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.th-auth-group label{
  font-size:13px;
  color:var(--th-text-2);
  font-weight:500;
}
.th-auth-group input{
  width:100%;
  height:44px;
  padding:0 14px;
  font-size:14px;
  color:var(--th-text);
  background:var(--th-surface);
  border:1px solid var(--th-border-2);
  border-radius:var(--th-radius);
  transition:border-color .2s,background .2s;
  outline:none;
  font-family:inherit;
}
.th-auth-group input:focus{
  border-color:var(--th-primary);
  background:var(--th-bg);
  box-shadow:0 0 0 3px var(--th-primary-light);
}
.th-auth-submit{
  width:100%;
  height:44px;
  font-size:15px;
  font-weight:600;
  justify-content:center;
  margin-top:8px;
}
.th-auth-footer{
  text-align:center;
  margin-top:24px;
  font-size:14px;
  color:var(--th-text-2);
}
.th-auth-link{
  color:var(--th-primary);
  font-weight:600;
  margin-left:6px;
}
.th-auth-link:hover{
  text-decoration:underline;
}

/* ---------- 链接行(用户中心等) ---------- */
.th-link-row{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;
  background:var(--th-bg);
  border:1px solid var(--th-border);
  border-radius:var(--th-radius-lg);
  transition:all .2s;cursor:pointer;text-decoration:none;
}
.th-link-row:hover{border-color:var(--th-primary);box-shadow:var(--th-shadow)}
.th-link-row-icon{
  width:40px;height:40px;border-radius:var(--th-radius);
  background:var(--th-surface);
  display:flex;align-items:center;justify-content:center;
  color:var(--th-primary);flex-shrink:0;
}
.th-link-row-text{flex:1;font-size:14px;font-weight:500;color:var(--th-text)}
.th-link-row-arrow{color:var(--th-text-3);flex-shrink:0}

/* ---------- 文章内容图片 ---------- */
.th-post-content img{max-width:100%;height:auto}
