/* ============================================================
   NexFC 金融问答社区 - 前台样式
   设计参考：知乎 - 蓝色主题 + 现代卡片风格
   ============================================================ */

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  background: #f4f5f5;
  color: #1a1a1b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; outline: none; }

/* ==================== CSS 变量 ==================== */
:root {
  --blue:        #1772F6;
  --blue-dark:   #0f5ed3;
  --blue-light:  #ecf2fe;
  --blue-lighter:#f0f7ff;
  --text:        #1a1a1b;
  --text-sec:    #8590a6;
  --text-sub:    #6d7379;
  --border:      #ebebeb;
  --border-light:#f0f0f0;
  --bg:          #f4f5f5;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(26,26,27,.08);
  --shadow-md:   0 4px 12px rgba(26,26,27,.12);
  --shadow-lg:   0 8px 24px rgba(26,26,27,.16);
  --radius:      6px;
  --radius-lg:   10px;
  --green:       #00a896;
  --orange:      #ff8c00;
  --red-badge:   #e53935;
}

/* ==================== 布局容器 ==================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ==================== 顶部导航 ==================== */
.site-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 14px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.3px;
}
.site-logo:hover { color: var(--blue-dark); }
.logo-icon { font-size: 26px; line-height: 1; }
.logo-text { font-size: 18px; }
.logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: #f6f7f8;
  transition: all .2s;
}
.header-search:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23,114,246,.1);
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-sec); }
.search-btn {
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.search-btn:hover { color: var(--blue); }

/* 右侧区域 */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-ask {
  background: var(--blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.btn-ask:hover { background: var(--blue-dark); color: #fff; }

.btn-login {
  color: var(--blue);
  font-size: 14px;
  padding: 7px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 20px;
  font-weight: 500;
}
.btn-login:hover { background: var(--blue-light); color: var(--blue); }
.btn-register {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 500;
}
.btn-register:hover { background: var(--blue-dark); color: #fff; }

/* 通知铃铛 */
.notif-bell { position: relative; cursor: pointer; padding: 6px; color: var(--text-sec); border-radius: 50%; transition: background .15s; }
.notif-bell:hover { background: var(--bg); color: var(--blue); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red-badge); color: #fff;
  font-size: 10px; min-width: 14px; height: 14px;
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid #fff;
}

/* 用户菜单 */
.user-menu { position: relative; display: flex; align-items: center; gap: 6px; }
.user-avatar-wrap {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 6px; border-radius: 20px;
  transition: background .15s;
}
.user-avatar-wrap:hover { background: var(--bg); }
.header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.user-name-sm { font-size: 14px; color: var(--text); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-lg);
  min-width: 168px; display: none; z-index: 300;
  overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 10px 16px; font-size: 14px; color: var(--text); }
.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-divider { border-top: 1px solid var(--border); }

/* 地区选择器 */
.region-selector {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; padding: 6px 12px; border-radius: 18px;
  border: 1.5px solid var(--border); font-size: 13px;
  color: var(--text-sub); transition: all .2s; white-space: nowrap; user-select: none;
}
.region-selector:hover, .region-selector[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.region-icon { display: flex; align-items: center; flex-shrink: 0; }
.region-name { max-width: 52px; overflow: hidden; text-overflow: ellipsis; }
.region-arrow { transition: transform .2s; flex-shrink: 0; }
.region-selector[aria-expanded="true"] .region-arrow { transform: rotate(180deg); }

/* 地区选择浮层 */
.region-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 300;
}
.region-panel-inner { padding: 16px 0 14px; }
.region-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.region-panel-title { font-weight: 700; color: var(--text); font-size: 14px; }
.region-panel-cur { font-size: 12px; color: var(--text-sec); }
.region-panel-cur strong { color: var(--blue); }

/* 省份 + 城市两列布局 */
.region-panel-body { display: flex; gap: 0; min-height: 180px; }
.region-prov-col {
  flex-shrink: 0; width: 110px; overflow-y: auto; max-height: 220px;
  border-right: 1px solid var(--border-light); padding-right: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.region-city-col {
  flex: 1; padding-left: 14px; display: flex; flex-wrap: wrap;
  align-content: flex-start; gap: 6px; overflow-y: auto; max-height: 220px;
}
.region-city-tip { font-size: 13px; color: #999; padding: 4px 0; width: 100%; }

.region-item {
  display: block; padding: 5px 10px; border-radius: 4px;
  font-size: 13px; color: var(--text-sub);
  cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap;
}
.region-item:hover { background: var(--blue-lighter); color: var(--blue); }
.region-item.active, .region-item.prov-selected { background: var(--blue); color: #fff; border-radius: 4px; }

/* 城市 pill 风格 */
.city-item {
  display: inline-flex; padding: 4px 12px; border-radius: 14px;
  border: 1px solid var(--border); height: auto;
  font-size: 12px; color: var(--text-sub);
}
.city-item:hover { border-color: var(--blue); background: var(--blue-lighter); color: var(--blue); }

.region-panel-footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.region-explore-link { font-size: 13px; color: var(--blue); font-weight: 500; }
.region-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==================== 双模块 Tab + 分类导航 ==================== */
.cat-nav { background: #fff; border-top: 1px solid var(--border-light); }
.module-tabs { display: flex; }
.module-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-sub); border-bottom: 2.5px solid transparent;
  transition: all .2s; text-decoration: none;
}
.module-tab:hover { color: var(--blue); }
.module-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.cat-nav-list {
  display: flex; overflow-x: auto; scrollbar-width: none; gap: 0;
  border-top: 1px solid var(--border-light);
}
.cat-nav-list::-webkit-scrollbar { display: none; }
.cat-nav-list li a {
  display: block; padding: 9px 14px; font-size: 13px;
  color: var(--text-sub); white-space: nowrap; transition: all .2s;
  border-bottom: 2px solid transparent;
}
.cat-nav-list li a:hover, .cat-nav-list li a.active {
  color: var(--blue); border-bottom-color: var(--blue);
}
.cat-nav-sep { color: var(--border); padding: 0 4px; pointer-events: none; display: flex; align-items: center; font-size: 18px; }

/* ==================== 主布局 ==================== */
.site-main { padding: 20px 0 40px; }
.layout-main { display: flex; gap: 24px; align-items: flex-start; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* ==================== Feed 头部 ==================== */
.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 4px 16px 0;
}
.feed-tabs { display: flex; }
.feed-tab {
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-sub); cursor: pointer; transition: all .2s;
  border-bottom: 2.5px solid transparent; text-decoration: none;
}
.feed-tab:hover { color: var(--blue); }
.feed-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.btn-ask-inline {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 16px; background: var(--blue); color: #fff;
  border-radius: 18px; font-size: 14px; font-weight: 600;
  margin: 6px 0; transition: background .2s;
}
.btn-ask-inline:hover { background: var(--blue-dark); color: #fff; }

/* ==================== 信任背书 ==================== */
.trust-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #d0e8fd; border-radius: var(--radius-lg);
  padding: 14px 24px; margin-bottom: 14px;
}
.trust-banner-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 12px; }
.trust-item-wrap { display: flex; align-items: center; gap: 10px; }
.trust-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--blue-light); border-radius: 50%; color: var(--blue); flex-shrink: 0; }
.trust-text strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.trust-text small { display: block; font-size: 11px; color: var(--text-sec); margin-top: 1px; }
.trust-divider { width: 1px; height: 34px; background: var(--border); }

/* ==================== 问题卡片 ==================== */
.question-list { display: flex; flex-direction: column; gap: 0; }
.q-card {
  background: #fff; border-bottom: 1px solid var(--border-light);
  padding: 18px 20px; transition: background .15s; cursor: default;
}
.q-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.q-card:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.q-card:only-child { border-radius: var(--radius); }
.q-card:hover { background: #fafcff; }

.badge-top { background: var(--blue); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; font-weight: 600; }
.badge-essence { background: var(--orange); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; font-weight: 600; }

.q-title { font-size: 16px; font-weight: 600; line-height: 1.5; margin: 2px 0 8px; }
.q-title a { color: var(--text); }
.q-title a:hover { color: var(--blue); }
.q-excerpt {
  font-size: 13px; color: var(--text-sec); line-height: 1.65; margin-bottom: 10px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag-pill-sm {
  font-size: 12px; color: var(--text-sub);
  background: #f6f7f8; border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 12px; transition: all .15s;
}
.tag-pill-sm:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.q-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.q-author { display: flex; align-items: center; }
.author-link { display: flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 13px; }
.author-link:hover { color: var(--blue); }
.q-cat { font-size: 12px; color: var(--text-sec); margin-left: 6px; }
.q-cat a { color: var(--blue); opacity: .75; }
.q-cat a:hover { opacity: 1; }
.q-stats { display: flex; align-items: center; gap: 14px; }
.q-stat { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-sec); }
.q-time { font-size: 12px; color: #adb5bd; }

.empty-state {
  text-align: center; padding: 60px 20px;
  background: #fff; border-radius: var(--radius);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.empty-state p { color: var(--text-sec); font-size: 15px; }
.empty-state a { color: var(--blue); }

/* 头像尺寸 */
.avatar-xs { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.avatar-md { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ==================== 侧边栏 Widget ==================== */
.widget {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.widget-title {
  padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: .02em;
  border-left: 3px solid var(--blue); padding-left: 13px;
}
.widget-more { font-size: 12px; color: #adb5bd; font-weight: 400; transition: color .15s; }
.widget-more:hover { color: var(--blue); }

/* 提问指南 */
.guide-text { padding: 10px 16px 14px; }
.guide-text > p { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.guide-text ul { padding-left: 0; list-style: none; margin: 0; }
.guide-text ul li {
  position: relative; padding: 6px 0 6px 16px;
  font-size: 13px; color: var(--text-sec); line-height: 1.5;
}
.guide-text ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .5;
}

/* 标签云 */
.widget .tag-cloud { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-block; font-size: 12px;
  color: var(--text-sub); background: var(--bg);
  border: 1px solid var(--border-light); padding: 3px 10px; border-radius: 3px;
  transition: all .15s;
}
.tag-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.tag-pill small { color: #adb5bd; margin-left: 3px; font-size: 11px; }

/* 分类列表 */
.category-list { padding: 4px 0; }
.category-list li a {
  display: flex; align-items: center; gap: 0;
  padding: 8px 16px; font-size: 13px; color: var(--text); transition: all .15s;
}
.category-list li a:hover { background: var(--blue-light); color: var(--blue); }
.category-list li.active a { color: var(--blue); font-weight: 600; background: var(--blue-light); }
.cat-icon { margin-right: 7px; font-size: 14px; opacity: .85; }
.cat-count { margin-left: auto; font-size: 11px; color: #c0c4cc; background: var(--bg); padding: 1px 6px; border-radius: 8px; }

/* 统计数据 */
.stat-list { padding: 6px 0; }
.stat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px; font-size: 13px;
}
.stat-list li + li { border-top: 1px solid var(--border-light); }
.stat-list li span { color: var(--text-sec); }
.stat-list li strong { color: var(--blue); font-size: 14px; font-weight: 700; }

/* 加入社区 */
.widget-join { text-align: center; padding: 16px 16px 18px; }
.widget-join p { font-size: 13px; color: var(--text-sec); margin-bottom: 12px; line-height: 1.6; }

/* ==================== 通用按钮 ==================== */
.btn {
  display: inline-block; padding: 8px 18px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; border: 1px solid var(--border);
  background: #fff; color: var(--text); transition: all .2s; text-align: center;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 4px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ==================== 问题详情 ==================== */
.breadcrumb {
  font-size: 13px; color: var(--text-sec);
  padding: 12px 0 8px; display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 4px; color: #ccc; }

.question-main {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 28px 20px; margin-bottom: 12px;
}
.question-title { font-size: 22px; font-weight: 700; line-height: 1.45; color: var(--text); margin-bottom: 14px; }
.question-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--border-light); margin-top: 8px;
}
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-sec); }
/* 问题元操作栏（弱化风格，突出回答区） */
.question-meta-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 0 2px; border-top: 1px solid var(--border-light); margin-top: 10px;
}
.q-meta-action {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: none; background: none;
  font-size: 12px; color: #b0b8c1; cursor: pointer;
  transition: color .15s; white-space: nowrap;
}
.q-meta-action:hover { color: var(--text-sub); }
.q-meta-action.active { color: var(--blue); }
.q-meta-action.followed { color: var(--blue); }
/* 保留旧类名兼容 */
.question-action-bar { display: none; }
.q-action-btn { display: none; }
.vote-col { display: none; }
.vote-count { font-size: 15px; font-weight: 700; color: var(--blue); }
.vote-btn { display: none; }
.follow-btn { cursor: pointer; }

/* 描述折叠切换链接 */
.desc-toggle-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--blue); cursor: pointer; text-decoration: none;
}
.desc-toggle-link:hover { text-decoration: underline; }
.desc-hide-link { color: var(--text-sec); font-size: 12px; }
.desc-hide-link:hover { color: var(--text); }
.question-body { flex: 1; font-size: 15px; line-height: 1.8; color: var(--text); }

/* 富文本内容 */
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 18px 0 10px; font-weight: 600; color: var(--text); }
.rich-content h2 { font-size: 20px; }
.rich-content h3 { font-size: 17px; }
.rich-content p { margin-bottom: 14px; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: 5px; }
.rich-content blockquote { border-left: 4px solid var(--blue); padding: 10px 16px; background: var(--blue-lighter); margin: 14px 0; color: var(--text-sub); border-radius: 0 4px 4px 0; }
.rich-content code { background: #f0f2f5; padding: 2px 6px; border-radius: 3px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13px; color: #c62828; }
.rich-content pre { background: #1e2026; color: #abb2bf; padding: 18px; border-radius: 8px; overflow-x: auto; margin-bottom: 14px; }
.rich-content pre code { background: none; color: inherit; padding: 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.rich-content th { background: var(--bg); font-weight: 600; }
.rich-content a { color: var(--blue); }

/* 评论区 */
.comment-section { border-top: 1px solid var(--border-light); padding-top: 14px; }
.comment-item { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid #fafafa; }
.comment-author { display: flex; align-items: center; gap: 4px; color: var(--text-sub); flex-shrink: 0; }
.comment-author strong { color: var(--text); }
.comment-content { flex: 1; color: var(--text); }
.comment-time { font-size: 12px; color: #adb5bd; flex-shrink: 0; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 18px; font-size: 13px; background: var(--bg); transition: all .2s; }
.comment-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23,114,246,.08); }
.comment-submit { padding: 8px 18px; background: var(--blue); color: #fff; border: none; border-radius: 18px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .2s; }
.comment-submit:hover { background: var(--blue-dark); }

/* ==================== 回答区 ==================== */
.answers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.answers-header h2 { font-size: 18px; font-weight: 700; }
.answer-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px 24px; margin-bottom: 10px;
  position: relative; transition: box-shadow .2s;
}
.answer-card:hover { box-shadow: var(--shadow-sm); }
.answer-card.accepted { border-color: var(--green); }
.accepted-badge { position: absolute; top: 18px; right: 18px; background: var(--green); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.answer-author { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; background: var(--blue-light); border-radius: 8px; padding: 12px 14px; }
.author-info { flex: 1; }
.author-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.author-name { font-size: 15px; font-weight: 700; color: var(--text); }
.author-name:hover { color: var(--blue); }
.author-pro { display: inline-block; font-size: 12px; color: var(--blue); background: #fff; border: 1px solid var(--blue); border-radius: 3px; padding: 0 6px; line-height: 1.7; margin-bottom: 3px; }
.author-region { font-size: 12px; color: var(--text-sub); margin-left: 6px; }
.author-bio { font-size: 13px; color: var(--text-sec); margin: 4px 0 2px; line-height: 1.6; }
.author-meta { font-size: 12px; color: #adb5bd; margin-top: 4px; display: block; }
.answer-body { font-size: 14px; line-height: 1.85; margin-bottom: 16px; color: var(--text); }
.answer-actions {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border-light); padding-top: 12px; flex-wrap: wrap;
}
.vote-inline { display: flex; align-items: center; gap: 4px; }
.vote-btn-inline {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 14px; border: 1.5px solid var(--border); border-radius: 18px;
  font-size: 13px; cursor: pointer; color: var(--text-sub); background: #fff; transition: all .2s;
}
.vote-btn-inline:hover, .vote-btn-inline.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.vote-num { font-weight: 700; }
.answer-time { font-size: 12px; color: #adb5bd; margin-left: auto; }
.accept-btn, .edit-answer-btn, .comment-toggle {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; cursor: pointer; background: #fff; color: var(--text-sub); transition: all .2s;
}
.accept-btn:hover { border-color: var(--green); color: var(--green); }
.edit-answer-btn:hover, .comment-toggle:hover { border-color: var(--blue); color: var(--blue); }
.answer-comments { padding: 12px 0 0; border-top: 1px solid var(--border-light); margin-top: 8px; }
.answer-question-ref { font-size: 13px; color: var(--text-sec); margin-bottom: 8px; }
.answer-question-ref a { color: var(--text); font-weight: 600; }
.answer-question-ref a:hover { color: var(--blue); }
.answer-excerpt { font-size: 13px; color: var(--text-sec); margin-bottom: 8px; }

/* 写回答区 */
.write-answer {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px 24px; margin-top: 16px;
}
.write-answer h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.login-prompt {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; margin-top: 16px;
}
.login-prompt a { color: var(--blue); font-weight: 600; }

/* ==================== 编辑器 ==================== */
.editor-toolbar {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  padding: 8px 10px; background: #f8f9fb; border: 1.5px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
}
.toolbar-btn { padding: 4px 10px; border: 1px solid #dde; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; color: var(--text-sub); transition: all .15s; }
.toolbar-btn:hover { border-color: var(--blue); color: var(--blue); }
.toolbar-hint { margin-left: auto; font-size: 12px; color: #adb5bd; }
.answer-textarea, .editor-textarea {
  width: 100%; padding: 14px; border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius); font-size: 14px; line-height: 1.75;
  resize: vertical; min-height: 160px; color: var(--text); background: #fff; transition: border-color .2s;
}
.answer-textarea:focus, .editor-textarea:focus { border-color: var(--blue); }
.editor-preview { border: 1.5px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 14px; min-height: 160px; background: #fff; font-size: 14px; line-height: 1.8; }
.editor-footer { display: flex; gap: 10px; margin-top: 12px; align-items: center; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label small { font-weight: 400; color: var(--text-sec); }
.form-label-link { float: right; font-weight: 400; font-size: 13px; }
.required { color: var(--red-badge); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  background: #fff; transition: all .2s;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,114,246,.08); }
.form-control-lg { font-size: 15px; padding: 12px 14px; }
.form-hint { font-size: 12px; color: #adb5bd; margin-top: 5px; display: block; }
.char-count { font-size: 12px; color: #adb5bd; text-align: right; margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.form-agree { margin-bottom: 16px; font-size: 13px; }
.input-password { position: relative; }
.input-password .form-control { padding-right: 44px; }
.show-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; }

/* ==================== 提问页 ==================== */
.ask-page { max-width: 760px; }
.ask-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.ask-hint { font-size: 14px; color: var(--text-sec); margin-bottom: 24px; }
.ask-tips { background: var(--blue-lighter); border: 1px solid #bdd4f8; border-radius: var(--radius); padding: 16px; margin-top: 8px; }
.ask-tips h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--blue); }
.ask-tips ul { padding-left: 18px; list-style: disc; }
.ask-tips li { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.suggest-tag { cursor: pointer; }
.suggest-tag:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.tags-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ==================== 认证页 ==================== */
.auth-page { display: flex; gap: 40px; align-items: flex-start; max-width: 900px; margin: 0 auto; padding: 32px 0; }
.auth-card { flex: 0 0 420px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { font-size: 24px; font-weight: 800; color: var(--blue); }
.auth-header h1 { font-size: 22px; margin: 14px 0 6px; }
.auth-header p { font-size: 14px; color: var(--text-sec); }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-sec); }
.auth-footer a { color: var(--blue); font-weight: 600; }
.auth-side { flex: 1; padding: 24px 0; }
.auth-side h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.auth-features { list-style: none; padding: 0; margin: 0; }
.auth-features li {
  font-size: 14px; padding: 8px 0 8px 18px; color: var(--text-sec);
  border-bottom: 1px solid var(--border-light); position: relative;
}
.auth-features li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .6;
}
.auth-features li:last-child { border-bottom: none; }

/* 登录/注册页侧边栏 widget */
.auth-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.auth-widget-title { padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border-light); border-left: 3px solid var(--blue); padding-left: 13px; display: flex; justify-content: space-between; align-items: center; }
.auth-widget-more { font-size: 12px; color: #adb5bd; font-weight: 400; transition: color .15s; }
.auth-widget-more:hover { color: var(--blue); }
.auth-list { padding: 4px 0; margin: 0; list-style: none; }
.auth-list li { padding: 8px 16px; border-bottom: 1px solid var(--border-light); }
.auth-list li:last-child { border-bottom: none; }
.auth-list a { font-size: 13px; color: var(--text); line-height: 1.45; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-list a:hover { color: var(--blue); }
.auth-tags { padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.auth-tag { display: inline-block; font-size: 12px; color: var(--text-sub); background: var(--bg); border: 1px solid var(--border-light); padding: 3px 10px; border-radius: 3px; transition: all .15s; }
.auth-tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ==================== 个人主页 ==================== */
.profile-header {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  display: flex; gap: 22px; margin-bottom: 16px;
}
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); flex-shrink: 0; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.profile-username { font-size: 13px; color: #adb5bd; margin-bottom: 8px; }
.profile-profession { font-size: 14px; color: var(--text-sub); margin-bottom: 6px; }
.profile-bio { font-size: 14px; color: var(--text-sec); line-height: 1.65; margin-bottom: 14px; }
.profile-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.pstat { text-align: center; }
.pstat strong { display: block; font-size: 20px; font-weight: 700; color: var(--blue); }
.pstat span { font-size: 12px; color: var(--text-sec); }
.profile-actions { display: flex; gap: 10px; }
.profile-tabs {
  display: flex; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden;
}
.profile-tab { padding: 12px 24px; font-size: 14px; color: var(--text-sub); border-bottom: 2.5px solid transparent; transition: all .2s; }
.profile-tab:hover { color: var(--blue); }
.profile-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.follow-user-btn.followed { background: #f0f2f5; border-color: #ccc; color: var(--text-sub); }

/* 专家标识 */
.badge-expert { display: inline-block; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; line-height: 1.6; vertical-align: middle; }
.badge-expert-lg { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; vertical-align: middle; }
.badge-expert-inline { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; background: var(--blue); color: #fff; font-size: 8px; font-weight: 700; border-radius: 50%; margin-left: 3px; vertical-align: middle; }
.profile-sameas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sameas-link { font-size: 12px; color: var(--blue); border: 1px solid var(--blue); border-radius: 12px; padding: 2px 10px; transition: all .2s; }
.sameas-link:hover { background: var(--blue); color: #fff; }

/* ==================== 设置页 ==================== */
.settings-page { max-width: 680px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.settings-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.settings-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.avatar-setting { display: flex; gap: 20px; align-items: flex-start; }
.current-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.upload-label { cursor: pointer; }

/* ==================== 搜索页 ==================== */
.search-header { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.search-main-form { display: flex; gap: 10px; }
.search-main-input { flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 15px; transition: all .2s; }
.search-main-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,114,246,.08); }
.search-types { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.stype-tab { padding: 10px 20px; font-size: 14px; color: var(--text-sub); transition: all .2s; border-bottom: 2px solid transparent; }
.stype-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.search-result-info { padding: 10px 0; font-size: 14px; color: var(--text-sec); margin-bottom: 8px; }
.search-result-info strong { color: var(--blue); }
.search-result-info em { color: var(--text); font-style: normal; font-weight: 600; }
.user-card-item { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.search-inline { display: flex; gap: 8px; margin-top: 12px; }
.search-inline input { flex: 1; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 14px; }

/* ==================== 标签 / 分类 / 静态单页 ==================== */
.page-content {
  max-width: 820px;
  margin: 20px auto 32px;
}
.page-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-desc { font-size: 14px; color: var(--text-sec); line-height: 1.7; }
.page-section {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.page-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.page-section p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 10px;
}
.page-section p:last-child { margin-bottom: 0; }
.tags-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tag-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; transition: all .2s; }
.tag-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.tag-card-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tag-card:hover .tag-card-name { color: var(--blue); }
.tag-card-desc { font-size: 12px; color: var(--text-sec); margin-bottom: 8px; line-height: 1.4; }
.tag-card-count { font-size: 12px; color: #adb5bd; }
.tag-detail-header, .cat-detail-header { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.cat-icon-lg { font-size: 40px; flex-shrink: 0; }
.tag-desc, .cat-desc { font-size: 14px; color: var(--text-sec); margin: 6px 0; }
.tag-meta, .cat-count { font-size: 13px; color: #adb5bd; display: flex; gap: 16px; }

/* ==================== 分页 ==================== */
.pagination-wrap {
  padding: 16px 0;
  display: flex;
  justify-content: center;
}
.pagination-wrap .pagination {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
/* 兼容 ThinkPHP 默认分页输出（a / span） */
.pagination-wrap .pagination a,
.pagination-wrap .pagination span {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-sub);
  background: #fff;
  margin: 0 1px;
  transition: all .2s;
}
.pagination-wrap .pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
.pagination-wrap .pagination .active,
.pagination-wrap .pagination span.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}
.pagination-wrap .pagination .disabled,
.pagination-wrap .pagination span.disabled {
  color: #adb5bd;
  cursor: default;
  background: #f8f9fa;
}
/* 兼容 Bootstrap/自定义 page-item 结构（未来扩展） */
.pagination-wrap .page-item .page-link {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: all .2s;
}
.pagination-wrap .page-item.active .page-link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pagination-wrap .page-item .page-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination-wrap .page-item.disabled .page-link {
  color: #adb5bd;
}

/* ==================== 用户相关 ==================== */
.user-card { padding: 16px; }
.user-card-info { margin-top: 10px; }
.user-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.user-card-name:hover { color: var(--blue); }
.user-card-pro { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.user-card-bio { font-size: 13px; color: var(--text-sec); margin: 6px 0; line-height: 1.5; }
.user-card-stats { display: flex; gap: 12px; font-size: 12px; color: #adb5bd; }
/* 延伸阅读侧边栏 */
.related-sidebar-list { padding: 4px 0; list-style: none; }
.related-sidebar-list li { border-bottom: 1px solid var(--border-light); }
.related-sidebar-list li:last-child { border-bottom: none; }
.related-sidebar-link { display: flex; flex-direction: column; padding: 9px 16px; gap: 3px; text-decoration: none; transition: background .15s; }
.related-sidebar-link:hover { background: var(--blue-lighter); }
.related-sidebar-title { font-size: 13px; color: var(--text); line-height: 1.45; }
.related-sidebar-link:hover .related-sidebar-title { color: var(--blue); }
.related-sidebar-meta { font-size: 11px; color: #adb5bd; }

/* ==================== 资讯详情页 相关资讯 正文区卡片 ==================== */
.news-related-section { margin: 32px 0 0; border-top: 2px solid var(--border-light); padding-top: 20px; }
.news-related-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.news-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.news-related-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  text-decoration: none; transition: box-shadow .15s, border-color .15s;
}
.news-related-card:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(23,114,246,.1); }
.news-related-card-title { font-size: 13px; color: var(--text); line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-related-card:hover .news-related-card-title { color: var(--blue); }
.news-related-card-meta { font-size: 11px; color: #adb5bd; display: flex; justify-content: space-between; }

/* 相关资讯列表（侧边栏） */
.widget-related-news { }
.related-news-list { padding: 4px 0; list-style: none; }
.related-news-list li { border-bottom: 1px solid var(--border-light); }
.related-news-list li:last-child { border-bottom: none; }
.related-news-link {
  display: flex; flex-direction: column; padding: 9px 16px; gap: 3px;
  text-decoration: none; transition: background .15s;
}
.related-news-link:hover { background: #fff8ec; }
.related-news-title {
  font-size: 13px; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-news-link:hover .related-news-title { color: #e65c00; }
.related-news-meta { font-size: 11px; color: #adb5bd; }

/* 兼容旧样式 */
.related-list { padding: 6px 0; }
.related-list li { padding: 8px 16px; border-bottom: 1px solid var(--border-light); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 13px; color: var(--text); line-height: 1.45; display: block; }
.related-list a:hover { color: var(--blue); }
.related-meta { font-size: 11px; color: #adb5bd; }

/* 问答列表：最佳回答预览 */
.q-answer-preview { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; padding: 5px 0 2px; font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.ans-expert-badge { flex-shrink: 0; font-size: 10px; background: var(--blue); color: #fff; border-radius: 3px; padding: 1px 5px; margin-right: 2px; }
.ans-author { flex-shrink: 0; color: var(--text-sub); font-weight: 500; }
.ans-excerpt { color: var(--text-sec); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==================== 专家列表 ==================== */
.expert-list { display: flex; flex-direction: column; padding: 4px 0; }
.expert-item { }
.expert-item + .expert-item { border-top: 1px solid var(--border-light); }
.expert-link { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text); transition: background .15s; }
.expert-link:hover { background: var(--blue-light); }
.expert-link:hover .expert-name { color: var(--blue); }
.expert-info { flex: 1; min-width: 0; }
.expert-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; color: var(--text); transition: color .15s; }
.expert-prof { font-size: 11px; color: var(--text-sec); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.expert-rep { font-size: 12px; color: var(--blue); font-weight: 600; white-space: nowrap; background: var(--blue-light); padding: 2px 7px; border-radius: 10px; }

/* ==================== 资讯列表（侧边栏） ==================== */
.news-list { display: flex; flex-direction: column; padding: 4px 0; }
.news-item { padding: 8px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.news-item + .news-item { border-top: 1px solid var(--border-light); }
.news-item a { flex: 1; font-size: 13px; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.news-item a:hover { color: var(--blue); }
.news-item small { font-size: 11px; color: #bbb; white-space: nowrap; padding-top: 2px; }

/* ==================== 资讯网格页 ==================== */
.feed-h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feed-desc { font-size: 13px; color: var(--text-sec); }
.news-grid { display: flex; flex-direction: column; gap: 0; }
.news-card {
  background: #fff; border-bottom: 1px solid var(--border-light);
  margin-bottom: 0; transition: background .15s;
}
.news-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.news-card:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.news-card:hover { background: #fafcff; }
.news-card-body { padding: 18px 22px; }
.news-meta-top { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.news-cat { background: var(--blue-light); color: var(--blue); font-size: 11px; padding: 2px 9px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.news-cat:hover { background: var(--blue); color: #fff; }
/* 资讯页内分类 tab 栏 */
.feed-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #fff; border-radius: 8px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.feed-tabs .feed-tab { padding: 5px 14px; border-radius: 20px; font-size: 13px; border-bottom: none; color: var(--text-sub); background: transparent; }
.feed-tabs .feed-tab:hover { color: var(--blue); background: var(--blue-light); }
.feed-tabs .feed-tab.active { color: #fff; background: var(--blue); }
.news-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--blue); }
.news-summary { font-size: 13px; color: var(--text-sec); line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-footer { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #adb5bd; }
.news-readmore { color: var(--blue); font-weight: 600; margin-left: auto; }
.news-readmore:hover { color: var(--blue-dark); }
.news-card-img { display: block; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.news-card-img img { width: 100%; height: 200px; object-fit: cover; }
.news-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--blue); }
.news-card-summary { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin-bottom: 8px; }
.news-card-meta { display: flex; gap: 12px; font-size: 12px; color: #adb5bd; }

/* ==================== 文章详情 ==================== */
.article-detail { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 30px 34px; margin-bottom: 16px; }
.article-header { border-bottom: 1px solid var(--border-light); padding-bottom: 18px; margin-bottom: 22px; }
.article-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-sec); margin-bottom: 14px; }
.article-time { color: #adb5bd; }
.article-views { color: #adb5bd; }
.article-summary { font-size: 14px; color: var(--text-sub); background: var(--blue-lighter); border-left: 3px solid var(--blue); padding: 12px 16px; border-radius: 0 6px 6px 0; }
.article-body { font-size: 15px; line-height: 1.85; color: var(--text); }
.article-body h2 { font-size: 20px; margin: 26px 0 12px; }
.article-body h3 { font-size: 17px; margin: 20px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 12px 0 12px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body dl dt { font-weight: 700; color: var(--blue); margin-top: 14px; }
.article-body dl dd { margin-left: 16px; margin-bottom: 8px; }
.article-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.risk-notice { font-size: 12px; color: #adb5bd; background: #f9f9f9; padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.article-share { font-size: 13px; color: var(--text-sec); display: flex; align-items: center; gap: 10px; }
.article-share a { color: var(--blue); }

/* ==================== 作者卡片 ==================== */
.author-card { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.author-card-info { flex: 1; }
.author-card-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.author-card-name:hover { color: var(--blue); }
.author-card-prof { font-size: 12px; color: var(--text-sec); margin: 4px 0; }
.author-card-rep { font-size: 12px; color: var(--blue); font-weight: 700; }
.author-prof { font-size: 11px; color: var(--text-sec); margin-left: 4px; }

/* ==================== 排行榜 ==================== */
.ranking-tabs { display: flex; margin-bottom: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.ranking-tab { flex: 1; text-align: center; padding: 13px; font-size: 14px; font-weight: 600; color: var(--text-sub); border-bottom: 2.5px solid transparent; transition: all .2s; }
.ranking-tab.active, .ranking-tab:hover { color: var(--blue); border-bottom-color: var(--blue); background: var(--blue-lighter); }
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.rank-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 14px 18px; display: flex; align-items: center; gap: 14px; transition: all .2s; }
.rank-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.rank-no { width: 32px; height: 32px; border-radius: 50%; background: #f0f2f5; color: var(--text-sub); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-no-1 { background: #ffd700; color: #7a5c00; }
.rank-no-2 { background: #d0d0d8; color: #555; }
.rank-no-3 { background: #e8a060; color: #fff; }
.rank-avatar { flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rank-name a { color: var(--text); }
.rank-name a:hover { color: var(--blue); }
.rank-prof { font-size: 12px; color: var(--text-sec); margin-bottom: 6px; }
.rank-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-sec); }
.rank-stats strong { color: var(--blue); font-weight: 700; }
.rank-view-btn { background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 16px; white-space: nowrap; transition: all .2s; }
.rank-view-btn:hover { background: var(--blue); color: #fff; }

/* ==================== 地区页 ==================== */
.trust-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.trust-bar .trust-item { background: var(--blue-light); color: var(--blue); padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.region-grid-section { margin-bottom: 30px; }
.region-grid-section h2 { font-size: 16px; color: var(--text); margin-bottom: 14px; font-weight: 700; }
.region-province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.region-province-card { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border: 1px solid var(--border); border-radius: 8px; text-align: center; text-decoration: none; transition: all .2s; background: #fff; }
.region-province-card:hover { border-color: var(--blue); background: var(--blue-lighter); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.region-prov-name { font-size: 15px; font-weight: 600; color: var(--text); }
.region-prov-count { font-size: 11px; color: var(--text-sec); margin-top: 4px; }

.region-hero { background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 100%); color: #fff; border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.region-hero h1 { font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.region-hero-desc { font-size: 13px; opacity: .85; line-height: 1.65; max-width: 420px; }
.region-switch-tip a { color: rgba(255,255,255,.85); font-size: 13px; border: 1px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 16px; text-decoration: none; white-space: nowrap; transition: all .2s; }
.region-switch-tip a:hover { background: rgba(255,255,255,.2); color: #fff; }

.region-section { margin-bottom: 28px; }
.section-title { font-size: 16px; color: var(--text); font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; display: block; width: 4px; height: 16px; background: var(--blue); border-radius: 2px; }

.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.expert-card-lg { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all .2s; background: #fff; }
.expert-card-lg:hover { border-color: var(--blue); background: var(--blue-lighter); }
.expert-card-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.expert-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.expert-card-prof { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.expert-card-stats { display: flex; gap: 8px; font-size: 11px; color: var(--text-sec); margin-top: 4px; }

.region-sidebar-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.region-pill { padding: 4px 10px; border-radius: 12px; border: 1px solid var(--border); font-size: 12px; color: var(--text-sub); text-decoration: none; transition: all .2s; }
.region-pill:hover, .region-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.region-sidebar-list { list-style: none; padding: 4px 0; }
.region-sidebar-list li { padding: 0; border-bottom: 1px solid var(--border-light); }
.region-sidebar-list a { display: block; padding: 8px 16px; font-size: 13px; color: var(--text-sub); text-decoration: none; transition: all .15s; }
.region-sidebar-list a:hover { color: var(--blue); background: var(--blue-lighter); }
.widget-local { border-top: 3px solid var(--blue); }

/* ==================== FAQ ==================== */
.faq-section { margin-top: 32px; }
.faq-section h2 { font-size: 16px; margin-bottom: 16px; color: var(--text); font-weight: 700; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: box-shadow .2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.faq-a p { font-size: 14px; color: var(--text-sec); line-height: 1.75; margin: 0; }

/* ==================== 通知下拉 ==================== */
.notif-dropdown { position: absolute; top: calc(100% + 10px); right: -60px; width: 320px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); display: none; z-index: 300; }
.notif-dropdown.show { display: block; }

/* ==================== 页脚 ==================== */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; }
.footer-inner { text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-sec); transition: color .15s; }
.footer-links a:hover { color: var(--blue); }
.footer-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.footer-cats a { font-size: 12px; color: #adb5bd; }
.footer-cats a:hover { color: var(--blue); }
.footer-regions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.footer-regions a { font-size: 12px; color: #adb5bd; }
.footer-regions a:hover { color: var(--blue); }
.footer-copy { font-size: 12px; color: #bbb; }
.footer-copy a { color: #bbb; }

/* ==================== 后台 Logo ==================== */
.logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.logo-upload-wrap { display: flex; align-items: center; gap: 16px; padding: 14px; background: #f8f9fb; border-radius: var(--radius); border: 1px solid var(--border); }
.logo-preview { min-width: 80px; text-align: center; }
.logo-placeholder { font-size: 13px; color: #bbb; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-danger { background: #e53935; color: #fff; border: none; border-radius: var(--radius); padding: 6px 12px; cursor: pointer; font-size: 13px; transition: background .2s; }
.btn-danger:hover { background: #c62828; }

/* 徽章 */
.badge-info { background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-success { background: #e6f4ea; color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .sidebar { width: 240px; }
}
@media (max-width: 768px) {
  .layout-main { flex-direction: column; }
  .sidebar { width: 100%; }
  .header-search { max-width: 200px; }
  .logo-text { display: none; }
  .btn-register { display: none; }
  .auth-page { flex-direction: column; }
  .auth-card { flex: none; width: 100%; }
  .tags-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-header { flex-direction: column; }
  .question-body-wrap { flex-direction: column; }
  .vote-col { flex-direction: row; }
  .trust-banner-inner { justify-content: flex-start; }
  .trust-divider { display: none; }
  .region-selector { display: none; }
  .region-hero { flex-direction: column; gap: 12px; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .region-province-grid { grid-template-columns: repeat(4, 1fr); }
  .module-tab { padding: 9px 12px; font-size: 13px; }
  .header-inner { height: 52px; }
}
@media (max-width: 480px) {
  .cat-nav-list li a { padding: 8px 10px; font-size: 12px; }
  .question-title { font-size: 15px; }
  .tags-grid { grid-template-columns: 1fr 1fr; }
  .region-province-grid { grid-template-columns: repeat(3, 1fr); }
}
