/* =====================================================================
   文件：assets/css/style.css
   用途：山海回响 全站自定义样式（在 Bootstrap 5 基础上叠加）
   轮次：第 2 轮
   ---------------------------------------------------------------------
   配色思路：
     山 —— 深青绿 #2c6e5b（主色，稳重、乡土、自然）
     海 —— 深海蓝 #1f4e5f（辅助）
     回响 —— 暖橙 #e59a4a（强调色，行动按钮、高亮）
   ---------------------------------------------------------------------
   修改配色：改下面的 :root 变量即可，全站会跟着变。
   ===================================================================== */

:root {
  --shhx-primary:      #2c6e5b;
  --shhx-primary-dark: #1e4d3f;
  --shhx-primary-light:#e7f0ec;
  --shhx-accent:       #e59a4a;
  --shhx-accent-dark:  #cf8236;

  --shhx-bg:           #f6f7f5;
  --shhx-card:         #ffffff;
  --shhx-text:         #2b2f2c;
  --shhx-text-muted:   #6b7570;
  --shhx-border:       #e3e7e4;

  --shhx-radius:       12px;
  --shhx-radius-lg:    18px;
}

/* ---------- 基础 ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--shhx-bg);
  color: var(--shhx-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;              /* 移动端不缩小，保证可读 */
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shhx-main { flex: 1 0 auto; }

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

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

/* ---------- 导航栏 ---------- */
.shhx-navbar {
  background: linear-gradient(135deg, var(--shhx-primary-dark), var(--shhx-primary));
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.shhx-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .5px;
}

.shhx-navbar .nav-link {
  padding: .45rem .7rem;
  border-radius: 8px;
  transition: background-color .15s ease;
}

.shhx-navbar .nav-link:hover,
.shhx-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, .14);
}

.shhx-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .6);
}

/* 移动端展开菜单时的可读性 */
@media (max-width: 991.98px) {
  .shhx-navbar .navbar-collapse {
    padding-top: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: .6rem;
  }
  .shhx-navbar .nav-link { padding: .6rem .75rem; }
}

/* ---------- 管理员模式提示条 ----------
 * 登着后台时，前台也能编辑 / 删除任何人的内容。
 * 这条提醒就钉在导航栏正下方（导航栏是 sticky-top，所以它也 sticky）。 */
.shhx-admin-mode {
  position: sticky;
  top: var(--shhx-navbar-h, 56px);
  z-index: 1019;
  background: #fff7e6;
  border-bottom: 1px solid #f0d9a8;
  color: #8a6314;
  font-size: .82rem;
  line-height: 1.5;
  padding: .35rem 0;
}
.shhx-admin-mode .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- 首页 Hero ---------- */
.shhx-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--shhx-radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  /* 没有图时用渐变兜底 */
  background: linear-gradient(135deg, #1e4d3f 0%, #2c6e5b 45%, #1f4e5f 100%);
  color: #fff;
}

/* 如果有背景图，把 background-image 加到行内样式即可：
   style="background-image:url(...)" */

.shhx-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.48) 100%);
}

.shhx-hero-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.75rem;
  width: 100%;
}

.shhx-hero-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: .6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  /* 要折行时自动均分两行，避免「12 个字 + 1 个孤字」那种断法 */
  text-wrap: balance;
}

.shhx-hero-slogan {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: .95;
  margin-bottom: 1.4rem;
  letter-spacing: 2px;
}

.shhx-hero-actions .btn { border-radius: 999px; padding: .6rem 1.4rem; }

/* ---------- 统计卡片 ---------- */
.shhx-stat {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  transition: transform .15s ease, box-shadow .15s ease;
}

.shhx-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 110, 91, .12);
}

.shhx-stat-icon {
  font-size: 1.5rem;
  color: var(--shhx-primary);
}

.shhx-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--shhx-primary-dark);
  line-height: 1.2;
}

.shhx-stat-label {
  font-size: .875rem;
  color: var(--shhx-text-muted);
}

/* ---------- 版块卡片 ---------- */
.shhx-forum-card {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--shhx-text);
}

.shhx-forum-card:hover {
  transform: translateY(-3px);
  border-color: var(--shhx-primary);
  box-shadow: 0 8px 20px rgba(44, 110, 91, .12);
}

.shhx-forum-icon {
  font-size: 1.4rem;
  color: var(--shhx-primary);
  margin-bottom: .5rem;
}

.shhx-forum-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}

.shhx-forum-desc {
  font-size: .85rem;
  color: var(--shhx-text-muted);
  min-height: 2.6em;
}

.shhx-forum-meta {
  font-size: .8rem;
  color: var(--shhx-accent-dark);
  margin-top: .5rem;
}

/* ---------- 通用卡片 ---------- */
.card {
  border-radius: var(--shhx-radius);
  border-color: var(--shhx-border);
}

.shhx-section-title {
  font-weight: 700;
  border-left: 4px solid var(--shhx-accent);
  padding-left: .65rem;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  background-color: var(--shhx-primary);
  border-color: var(--shhx-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--shhx-primary-dark);
  border-color: var(--shhx-primary-dark);
}

.btn-outline-primary {
  color: var(--shhx-primary);
  border-color: var(--shhx-primary);
}
.btn-outline-primary:hover {
  background-color: var(--shhx-primary);
  border-color: var(--shhx-primary);
}

.btn-warning {
  background-color: var(--shhx-accent);
  border-color: var(--shhx-accent);
  color: #fff;
}
.btn-warning:hover,
.btn-warning:focus {
  background-color: var(--shhx-accent-dark);
  border-color: var(--shhx-accent-dark);
  color: #fff;
}

/* ---------- 表单 ---------- */
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--shhx-border);
  padding: .55rem .85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--shhx-primary);
  box-shadow: 0 0 0 .2rem rgba(44, 110, 91, .15);
}

/* ---------- 分页 ---------- */
.pagination .page-link {
  color: var(--shhx-primary);
  border-radius: 8px !important;
  margin: 0 2px;
  border-color: var(--shhx-border);
}

.pagination .page-item.active .page-link {
  background-color: var(--shhx-primary);
  border-color: var(--shhx-primary);
}

/* ---------- 页脚 ---------- */
.shhx-footer {
  background: #23282a;
  color: #b9c2be;
  margin-top: auto;
}

.shhx-footer-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
}

.shhx-footer-slogan {
  font-size: .85rem;
  color: #8d9793;
  margin-top: .25rem;
}

.shhx-footer-links a {
  color: #b9c2be;
  text-decoration: none;
  margin-left: 1rem;
  font-size: .875rem;
}

.shhx-footer-links a:hover { color: #fff; text-decoration: underline; }

.shhx-footer-copy {
  font-size: .8rem;
  color: #7b8581;
  margin-top: .5rem;
}

@media (max-width: 767.98px) {
  .shhx-footer-links a { margin-left: 0; margin-right: 1rem; display: inline-block; }
}

/* ---------- 回到顶部 ---------- */
.shhx-backtop {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--shhx-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  z-index: 1040;
  padding: 0;
}

.shhx-backtop:hover { background-color: var(--shhx-primary-dark); color: #fff; }
.shhx-backtop.show { display: flex; }

/* ---------- Toast 提示（替代 alert，微信内体验更好） ---------- */
.shhx-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translate(-50%, -12px);
  max-width: min(90vw, 420px);
  padding: .7rem 1.15rem;
  border-radius: 10px;
  background: rgba(35, 40, 42, .94);
  color: #fff;
  font-size: .92rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1080;
  word-break: break-word;
}

.shhx-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.shhx-toast.is-error { background: rgba(176, 52, 52, .95); }

/* ---------- 内容正文（帖子 / 案例 / 政策的正文区） ---------- */
.shhx-content {
  font-size: 1.02rem;
  line-height: 1.9;
  word-wrap: break-word;
  word-break: break-word;
}

.shhx-content img {
  border-radius: 10px;
  margin: .5rem 0;
}

.shhx-content p { margin-bottom: 1rem; }

/* ---------- 标签 ---------- */
.shhx-tag {
  display: inline-block;
  font-size: .78rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: var(--shhx-primary-light);
  color: var(--shhx-primary-dark);
  margin: 0 .35rem .35rem 0;
  text-decoration: none;
}

.shhx-tag:hover { background: #d3e5dd; color: var(--shhx-primary-dark); }

.shhx-tag-accent {
  background: #fdf0e0;
  color: var(--shhx-accent-dark);
}

/* ---------- 空状态 ---------- */
.shhx-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--shhx-text-muted);
}

.shhx-empty i { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .5; }

/* ---------- 中文标题防「孤字」----------
 * 中文标题在窄屏上折行时，经常出现「前面排满一整行、最后只剩一两个字」
 * 的情况，非常难看（比如首页大标题末尾单独一个「台」字）。
 * text-wrap: balance 会让浏览器把多出来的字平均分到两行上。
 * 只对标题类生效，不给长正文用（长正文更适合 text-wrap: pretty）。 */
h1, h2, h3, h4, h5, h6,
.shhx-section-title,
.shhx-hero-title,
.shhx-thread-title,
.shhx-page-title {
  text-wrap: balance;
}

/* ---------- 移动端通用微调 ---------- */
@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .container { padding-left: 14px; padding-right: 14px; }

  /* 所有可点元素至少 44px 高，方便手指点击 */
  .btn { min-height: 40px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }

  .shhx-hero { min-height: 220px; }
  .shhx-hero-body { padding: 1.8rem 1.2rem; }

  /* 首页大标题：手机上字号再收一档，让「山海回响·洄游青年支持平台」
     13 个字尽量一行放下；万一还是放不下，会因为 title 里的 <wbr>
     从「·」处断成整齐的两半，不会留一个孤零零的「台」字。 */
  .shhx-hero-title {
    font-size: clamp(1.22rem, 5.9vw, 1.62rem);
    letter-spacing: .5px;
  }
  .shhx-hero-slogan { letter-spacing: 1px; }
}

/* 表格在手机上改为横向滚动，不撑破页面 */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* =====================================================================
   以下为第 3 轮「用户系统」新增样式
   ===================================================================== */

/* ---------- 注册 / 登录卡片 ---------- */
.shhx-auth-card {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius-lg);
  box-shadow: 0 8px 30px rgba(44, 110, 91, .08);
}

.shhx-auth-sub {
  font-size: .9rem;
  letter-spacing: 1px;
}

/* ---------- 验证码图片 ---------- */
.shhx-captcha {
  height: 46px;
  width: 132px;
  border: 1px solid var(--shhx-border);
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  background: #f3f6f4;
}

.shhx-captcha:hover { border-color: var(--shhx-primary); }

/* ---------- 大头像 ---------- */
.shhx-avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  background: var(--shhx-primary-light);
}

/* ---------- 个人中心导航 ---------- */
.shhx-user-nav .nav-link {
  color: var(--shhx-primary-dark);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin: 0 .35rem .5rem 0;
  font-size: .92rem;
  background: #fff;
  border: 1px solid var(--shhx-border);
}

.shhx-user-nav .nav-link:hover {
  background: var(--shhx-primary-light);
  border-color: var(--shhx-primary-light);
}

.shhx-user-nav .nav-link.active {
  background: var(--shhx-primary);
  border-color: var(--shhx-primary);
  color: #fff;
}

/* ---------- 资料卡片 ---------- */
.shhx-profile-card {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f5 100%);
}

.shhx-intro {
  color: var(--shhx-text-muted);
  line-height: 1.7;
}

/* ---------- 小统计（帖子 / 评论 / 获赞） ---------- */
.shhx-mini-stat {
  display: inline-block;
  min-width: 56px;
  margin-left: .75rem;
  text-align: center;
}

.shhx-mini-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--shhx-primary-dark);
  line-height: 1.2;
}

.shhx-mini-stat span {
  font-size: .75rem;
  color: var(--shhx-text-muted);
}

/* ---------- 标签选择器 ---------- */
.shhx-tag-picker {
  padding: .75rem .85rem;
  border: 1px solid var(--shhx-border);
  border-radius: 10px;
  background: #fafbfa;
}

.shhx-tag-check {
  margin-right: 1.1rem;
  margin-bottom: .35rem;
}

.shhx-tag-check .form-check-input:checked {
  background-color: var(--shhx-primary);
  border-color: var(--shhx-primary);
}

/* ---------- 列表（我的帖子 / 评论 / 收藏） ---------- */
.shhx-list .list-group-item {
  border-color: var(--shhx-border);
  padding: .9rem 1.1rem;
}

.shhx-list .list-group-item:hover {
  background: var(--shhx-primary-light);
}

.shhx-list-title {
  font-weight: 600;
  color: var(--shhx-text);
  font-size: .98rem;
  line-height: 1.5;
}

.shhx-list-quote {
  color: var(--shhx-text);
  font-size: .92rem;
  line-height: 1.6;
}

.shhx-list-meta {
  font-size: .8rem;
  color: var(--shhx-text-muted);
  margin-top: .3rem;
}

/* ---------- 单页文档（用户协议 / 隐私说明） ---------- */
.shhx-doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.8rem 0 .8rem;
  padding-left: .6rem;
  border-left: 3px solid var(--shhx-accent);
}

.shhx-doc h2:first-child { margin-top: 0; }

.shhx-doc ul, .shhx-doc ol { padding-left: 1.4rem; }

.shhx-doc li { margin-bottom: .35rem; }

.shhx-doc table { font-size: .9rem; }

.shhx-doc code {
  background: var(--shhx-primary-light);
  color: var(--shhx-primary-dark);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .88em;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 767.98px) {
  .shhx-avatar-lg { width: 64px; height: 64px; }

  .shhx-mini-stat {
    min-width: 44px;
    margin-left: .35rem;
  }

  .shhx-mini-stat strong { font-size: 1rem; }

  .shhx-user-nav .nav-link {
    padding: .35rem .75rem;
    font-size: .85rem;
    margin-right: .3rem;
  }

  .shhx-auth-card { border-radius: var(--shhx-radius); }

  .shhx-captcha { width: 116px; height: 42px; }
}

/* =====================================================================
   以下为第 4 / 5 轮「论坛模块」新增样式
   ===================================================================== */

.min-w-0 { min-width: 0; }

.shhx-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--shhx-primary-light);
}

/* ---------- 帖子标题与元信息 ---------- */
.shhx-thread-title {
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--shhx-text);
  word-break: break-word;
}

.shhx-thread-meta {
  font-size: .8rem;
  color: var(--shhx-text-muted);
  margin-top: .3rem;
}

.shhx-thread-counts {
  font-size: .82rem;
  color: var(--shhx-primary-dark);
  line-height: 1.6;
}

/* ---------- 标记（置顶 / 精 / 问 / 锁 / 楼主） ---------- */
.shhx-badge-top,
.shhx-badge-essence,
.shhx-badge-q,
.shhx-badge-lock,
.shhx-badge-op {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 .42rem;
  border-radius: 4px;
  margin-right: .35rem;
  vertical-align: 1px;
  color: #fff;
}

.shhx-badge-top     { background: #c0392b; }
.shhx-badge-essence { background: var(--shhx-accent); }
.shhx-badge-q       { background: #2d7fb8; }
.shhx-badge-lock    { background: #6c757d; }
.shhx-badge-op      { background: var(--shhx-primary); }

/* ---------- 首页帖子列表 ---------- */
.shhx-thread-list { }

.shhx-thread-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--shhx-border);
  text-decoration: none;
}

.shhx-thread-item:last-child { border-bottom: none; }
.shhx-thread-item:hover .shhx-thread-title { color: var(--shhx-primary); }

/* ---------- 热门列表 ---------- */
.shhx-hot-list { list-style: none; padding: 0; margin: 0; }

.shhx-hot-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--shhx-border);
  font-size: .9rem;
}

.shhx-hot-list li:last-child { border-bottom: none; }

.shhx-hot-list a {
  flex: 1;
  min-width: 0;
  color: var(--shhx-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shhx-hot-list a:hover { color: var(--shhx-primary); }

.shhx-hot-rank {
  flex: 0 0 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  background: #e9edeb;
  color: #6b7570;
}

.shhx-hot-rank.top { background: var(--shhx-accent); color: #fff; }

/* ---------- 帖子详情 ---------- */
.shhx-post { border: 1px solid var(--shhx-border); }

.shhx-post-title {
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1rem;
  word-break: break-word;
}

.shhx-post-meta { font-size: .875rem; }

.shhx-post-images {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.shhx-post-images img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--shhx-border);
}

.shhx-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

/* ---------- 互动按钮 ---------- */
.shhx-act {
  background: #fff;
  border: 1px solid var(--shhx-border);
  color: var(--shhx-text-muted);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  text-decoration: none;
  transition: all .15s ease;
}

.shhx-act:hover {
  border-color: var(--shhx-primary);
  color: var(--shhx-primary);
  background: #fff;
}

.shhx-act.is-active {
  background: var(--shhx-primary-light);
  border-color: var(--shhx-primary);
  color: var(--shhx-primary-dark);
  font-weight: 600;
}

.shhx-act-danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* ---------- 评论 ---------- */
.shhx-comments { }

.shhx-comment {
  display: flex;
  gap: .75rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--shhx-border);
}

.shhx-comment:last-child { border-bottom: none; }

.shhx-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--shhx-primary-light);
}

.shhx-comment-body { flex: 1; min-width: 0; }

.shhx-comment-head {
  font-size: .88rem;
  margin-bottom: .25rem;
}

.shhx-comment-text {
  font-size: .95rem;
  line-height: 1.75;
  word-break: break-word;
  color: var(--shhx-text);
}

.shhx-comment-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.shhx-comment-foot .shhx-act {
  padding: .15rem .6rem;
  font-size: .78rem;
}

/* 子回复（追问）：左侧缩进 + 竖线 + 浅底，一眼看出是「挂在上面那条回答下面」的 */
.shhx-subcomments {
  margin-left: 2.6rem;
  padding: .15rem .9rem .35rem;
  border-left: 2px solid var(--shhx-primary-light);
  background: #fafbfa;
  border-radius: 0 10px 10px 0;
}

.shhx-comment-sub { padding: .7rem 0; }

.shhx-comment-sub .shhx-comment-avatar { width: 30px; height: 30px; }

/* 「追问」小标签 */
.shhx-sub-tag {
  display: inline-block;
  padding: .05rem .38rem;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--shhx-primary-dark);
  background: var(--shhx-primary-light);
  border-radius: 4px;
  vertical-align: 1px;
}

/* 高亮被定位到的评论 */
.shhx-comment:target {
  background: #fff8ec;
  border-radius: 10px;
}

/* ---------- 编辑页：旧图保留 ---------- */
.shhx-img-keep {
  display: block;
  position: relative;
  border: 1px solid var(--shhx-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.shhx-img-keep img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.shhx-img-keep-check {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .5rem;
  font-size: .8rem;
  background: #f7f9f8;
}

/* ---------- 分享页 ---------- */
.shhx-share-title {
  padding: .6rem .85rem;
  background: var(--shhx-primary-light);
  border-radius: 10px;
  font-weight: 600;
  word-break: break-word;
}

/* ---------- 移动端 ---------- */
@media (max-width: 767.98px) {
  .shhx-thread-counts { font-size: .75rem; }

  .shhx-thread-avatar { width: 34px; height: 34px; }

  .shhx-post-images img { max-width: 100%; max-height: 260px; }

  .shhx-subcomments {
    margin-left: .5rem;
    padding-left: .6rem;
  }

  .shhx-comment-avatar { width: 32px; height: 32px; }

  .shhx-post-actions .btn,
  .shhx-post-actions a.btn {
    padding: .3rem .6rem;
    font-size: .8rem;
  }
}

/* =====================================================================
   以下为第 6 / 7 轮「案例库 + 政策库」新增样式
   ===================================================================== */

/* ---------- 小号 Hero ---------- */
.shhx-hero-sm { min-height: 190px; }
.shhx-hero-sm .shhx-hero-body { padding: 1.8rem 1.6rem; }

/* ---------- 案例卡片 ---------- */
.shhx-case-card {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--shhx-text);
  height: 100%;
}

.shhx-case-card:hover {
  transform: translateY(-3px);
  border-color: var(--shhx-primary);
  box-shadow: 0 10px 24px rgba(44, 110, 91, .13);
}

.shhx-case-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: var(--shhx-primary-light);
}

.shhx-case-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--shhx-primary-dark), var(--shhx-primary));
}

.shhx-case-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: .4rem;
  color: var(--shhx-text);
}

.shhx-case-summary {
  font-size: .86rem;
  color: var(--shhx-text-muted);
  line-height: 1.7;
  margin-bottom: .6rem;
  min-height: 3.4em;
}

.shhx-case-tags { margin-bottom: .5rem; }
.shhx-case-tags .shhx-tag { font-size: .72rem; }

.shhx-case-foot {
  padding-top: .5rem;
  border-top: 1px dashed var(--shhx-border);
  font-size: .78rem;
}

/* ---------- 案例详情 ---------- */
.shhx-case-hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--shhx-radius-lg);
}

.shhx-case-person { font-size: .9rem; }

.shhx-case-lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--shhx-primary-dark);
  padding: .9rem 1.1rem;
  background: var(--shhx-primary-light);
  border-radius: 10px;
  border-left: 4px solid var(--shhx-primary);
}

.shhx-block-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--shhx-text);
}

.shhx-case-box {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--shhx-border);
  background: #fafbfa;
  font-size: .95rem;
  line-height: 1.85;
  word-break: break-word;
}

.shhx-case-box-good {
  background: #eef7f1;
  border-color: #cbe6d6;
}

.shhx-case-box-advice {
  background: #fdf6ec;
  border-color: #f2dfc0;
}

.shhx-tag-warn {
  background: #fdeceb;
  color: #a3392d;
}

.shhx-tag-warn:hover {
  background: #f9d9d6;
  color: #8c2b21;
}

/* ---------- 时间线 ---------- */
.shhx-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  position: relative;
}

.shhx-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--shhx-primary), var(--shhx-accent));
  border-radius: 2px;
}

.shhx-timeline li {
  position: relative;
  padding-bottom: 1.15rem;
}

.shhx-timeline li:last-child { padding-bottom: 0; }

.shhx-timeline li::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: .42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--shhx-primary);
}

.shhx-timeline-time {
  font-size: .78rem;
  font-weight: 700;
  color: var(--shhx-accent-dark);
  letter-spacing: .5px;
}

.shhx-timeline-title {
  font-size: .93rem;
  font-weight: 600;
  margin-top: .1rem;
}

.shhx-timeline-text {
  font-size: .86rem;
  color: var(--shhx-text-muted);
  line-height: 1.7;
  margin-top: .15rem;
}

/* ---------- 相关推荐 ---------- */
.shhx-related-item {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--shhx-border);
  text-decoration: none;
}

.shhx-related-item:last-of-type { border-bottom: none; }

.shhx-related-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--shhx-primary-light);
}

.shhx-related-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--shhx-primary-dark), var(--shhx-primary));
}

.shhx-related-title {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--shhx-text);
  line-height: 1.5;
}

.shhx-related-item:hover .shhx-related-title { color: var(--shhx-primary); }

.shhx-related-meta {
  display: block;
  font-size: .76rem;
  color: var(--shhx-text-muted);
  margin-top: .2rem;
}

/* ---------- 政策列表 ---------- */
.shhx-policy-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--shhx-primary-dark), var(--shhx-primary));
}

.shhx-policy-summary {
  font-size: .85rem;
  color: var(--shhx-text-muted);
  line-height: 1.7;
  margin: .3rem 0 .35rem;
}

/* ---------- 政策详情：关键信息表 ---------- */
.shhx-policy-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .9rem;
  padding: 1rem 1.15rem;
  background: #f8faf9;
  border: 1px solid var(--shhx-border);
  border-radius: 12px;
}

.shhx-policy-facts > div {
  display: flex;
  gap: .5rem;
  font-size: .88rem;
  line-height: 1.6;
}

.shhx-policy-facts .k {
  flex: 0 0 66px;
  color: var(--shhx-text-muted);
}

.shhx-policy-facts .v {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* "我申请过"按钮激活态用不同的颜色，和"有用"区分开 */
.shhx-act-apply.is-active {
  background: #eef7f1;
  border-color: #4a9b6e;
  color: #1a7f4b;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .shhx-policy-facts { grid-template-columns: 1fr; }
  .shhx-case-cover { height: 130px; }
  .shhx-hero-sm { min-height: 160px; }
  .shhx-case-hero { max-height: 220px; }
}

/* =====================================================================
   以下为第 9 / 10 轮「准备度自测」新增样式
   ===================================================================== */

/* ---------- 题目卡片 ---------- */
.shhx-quiz-item {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.shhx-quiz-item.is-answered {
  border-color: var(--shhx-primary);
  box-shadow: 0 4px 16px rgba(44, 110, 91, .08);
}

.shhx-quiz-q {
  display: flex;
  gap: .7rem;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: var(--shhx-text);
}

.shhx-quiz-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--shhx-primary-light);
  color: var(--shhx-primary-dark);
  font-size: .86rem;
  font-weight: 700;
  margin-top: .15rem;
}

.shhx-quiz-item.is-answered .shhx-quiz-num {
  background: var(--shhx-primary);
  color: #fff;
}

/* ---------- 选项 ---------- */
.shhx-quiz-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.shhx-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem 1rem;
  border: 1px solid var(--shhx-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  margin: 0;
}

.shhx-quiz-opt:hover {
  background: #fafcfb;
  border-color: #bcd4cb;
}

.shhx-quiz-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shhx-quiz-opt-mark {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #cfd8d4;
  color: var(--shhx-text-muted);
  font-size: .82rem;
  font-weight: 700;
  transition: all .15s ease;
}

.shhx-quiz-opt-text {
  flex: 1;
  font-size: .96rem;
  line-height: 1.7;
  padding-top: .1rem;
  color: var(--shhx-text);
}

/* 选中态 */
.shhx-quiz-opt input[type="radio"]:checked ~ .shhx-quiz-opt-mark {
  background: var(--shhx-primary);
  border-color: var(--shhx-primary);
  color: #fff;
}

.shhx-quiz-opt input[type="radio"]:checked ~ .shhx-quiz-opt-text {
  color: var(--shhx-primary-dark);
  font-weight: 600;
}

.shhx-quiz-opt:has(input[type="radio"]:checked) {
  background: var(--shhx-primary-light);
  border-color: var(--shhx-primary);
}

/* 同一套高亮，改用 class 写一遍 —— 老浏览器不认 :has()，靠 PHP 回填时加的
   .is-chosen 兜底，保证「选过的选项」在任何设备上都是亮的 */
.shhx-quiz-opt.is-chosen {
  background: var(--shhx-primary-light);
  border-color: var(--shhx-primary);
}

/* 焦点可达性 */
.shhx-quiz-opt input[type="radio"]:focus-visible ~ .shhx-quiz-opt-mark {
  box-shadow: 0 0 0 4px rgba(44, 110, 91, .18);
}

/* ---------- 底部固定提交栏 ---------- */
.shhx-quiz-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--shhx-border);
  padding: .8rem 0;
  backdrop-filter: blur(8px);
}

/* ---------- 结果大卡 ---------- */
.shhx-quiz-result {
  position: relative;
  overflow: hidden;
  border-radius: var(--shhx-radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #16382e 0%, #2c6e5b 50%, #1b4450 100%);
  color: #fff;
}

.shhx-quiz-level-xuli    { background: linear-gradient(140deg, #2b3f52 0%, #3d6b8c 55%, #4a86a8 100%); }
.shhx-quiz-level-qicheng { background: linear-gradient(140deg, #1e4d3f 0%, #2c6e5b 50%, #3f8f73 100%); }
.shhx-quiz-level-zhagen  { background: linear-gradient(140deg, #4a3418 0%, #8a5a24 45%, #c98a3a 100%); }

.shhx-quiz-result-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.14) 0%, rgba(0,0,0,.34) 100%);
}

.shhx-quiz-result-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.8rem 1.5rem;
  width: 100%;
}

.shhx-quiz-result-label {
  font-size: .84rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: rgba(255,255,255,.72);
  margin-bottom: 1rem;
}

.shhx-quiz-result-level {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-indent: .1em;
  margin: 0 0 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.shhx-quiz-result-score {
  display: inline-block;
  padding: .35rem 1.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.3rem;
}

.shhx-quiz-result-score span {
  font-size: .9rem;
  font-weight: 500;
  opacity: .8;
}

.shhx-quiz-result-title {
  font-size: clamp(1.02rem, 3.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
  opacity: .96;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 分享图 ---------- */
.shhx-share-img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 1px solid var(--shhx-border);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  background: var(--shhx-primary-light);
}

@media (max-width: 767.98px) {
  .shhx-quiz-q { font-size: .98rem; }
  .shhx-quiz-opt { padding: .7rem .8rem; }
  .shhx-quiz-opt-text { font-size: .92rem; }
  .shhx-quiz-result { min-height: 260px; }
  .shhx-quiz-result-body { padding: 2rem 1.1rem; }
  .shhx-quiz-bar { padding: .65rem 0; }
}

/* =====================================================================
   以下为第 8 轮（补做）「经验问答」新增样式
   ===================================================================== */

/* 问题卡片：左侧一条竖线做区分 */
.shhx-question {
  border-left: 4px solid #2d7fb8;
}

/* 最佳答案区块 */
.shhx-best-answer {
  border: 1px solid #bfe3cd;
  background: #f4fbf6;
  border-radius: var(--shhx-radius);
  box-shadow: 0 6px 20px rgba(26, 127, 75, .08);
}

.shhx-best-badge {
  display: inline-block;
  background: #1a7f4b;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: .28rem .75rem;
  border-radius: 999px;
  letter-spacing: .5px;
}

/* =====================================================================
   以下为第 10 轮（补做）「文章 / 公告」新增样式
   ===================================================================== */

/* 列表缩略图 */
.shhx-article-thumb {
  width: 108px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--shhx-primary-light);
}

/* 置顶大卡片 */
.shhx-article-top {
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius-lg);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.shhx-article-top:hover {
  border-color: var(--shhx-primary);
  box-shadow: 0 10px 26px rgba(44, 110, 91, .12);
}

.shhx-article-top-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767.98px) {
  .shhx-article-thumb { width: 84px; height: 60px; }
  .shhx-article-top-img { min-height: 150px; max-height: 190px; }
  .shhx-best-answer { box-shadow: none; }
}


/* =====================================================================
   联系方式卡片（page.php?slug=contact）
   ===================================================================== */

.shhx-contact-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: .95rem 1rem;
  background: #fff;
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.shhx-contact-card:hover {
  border-color: var(--shhx-primary);
  box-shadow: 0 8px 22px rgba(44, 110, 91, .10);
  transform: translateY(-2px);
}

.shhx-contact-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--shhx-primary-light);
  color: var(--shhx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.shhx-contact-body {
  flex: 1 1 auto;
  min-width: 0;          /* 允许内部文字省略号 */
}

.shhx-contact-label {
  font-size: .74rem;
  color: var(--shhx-text-muted);
  letter-spacing: .04em;
}

.shhx-contact-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--shhx-text);
  word-break: break-all;   /* 长邮箱不撑破卡片 */
  line-height: 1.4;
}

.shhx-contact-action {
  flex: 0 0 auto;
}

/* 微信 / QQ 这类不可跳转的，给个可点选的样式 */
.shhx-contact-value::selection {
  background: var(--shhx-accent);
  color: #fff;
}

@media (max-width: 575.98px) {
  .shhx-contact-card { padding: .8rem .85rem; gap: .7rem; }
  .shhx-contact-icon { width: 36px; height: 36px; font-size: 1rem; }
  .shhx-contact-value { font-size: .88rem; }
}


/* =====================================================================
   正式首页（index.php，第 12 轮）
   ===================================================================== */

/* 通用小工具：让 flex 子元素里的长标题能正常省略 */
.min-w-0 { min-width: 0; }

/* ---------- Hero 补充 ---------- */
.shhx-hero-badge {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .28rem .8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(2px);
}

.shhx-hero-desc {
  font-size: .95rem;
  line-height: 1.9;
  opacity: .9;
  margin-bottom: 1.4rem;
  max-width: 40rem;
}

/* ---------- ② 三件事 ---------- */
.shhx-start-card {
  display: block;
  position: relative;
  height: 100%;
  padding: 1.4rem 1.25rem;
  background: #fff;
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius-lg);
  text-decoration: none;
  color: var(--shhx-text);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shhx-start-card:hover {
  transform: translateY(-4px);
  border-color: var(--shhx-primary);
  box-shadow: 0 14px 30px rgba(44, 110, 91, .14);
}

.shhx-start-num {
  position: absolute;
  top: .4rem;
  right: .9rem;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--shhx-primary);
  opacity: .09;
  pointer-events: none;
}

.shhx-start-icon {
  font-size: 1.6rem;
  color: var(--shhx-primary);
  margin-bottom: .6rem;
}

.shhx-start-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .45rem;
}

.shhx-start-desc {
  font-size: .86rem;
  color: var(--shhx-text-muted);
  line-height: 1.75;
  min-height: 4.6em;
}

.shhx-start-go {
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--shhx-accent-dark);
}

.shhx-start-card:hover .shhx-start-go i {
  transform: translateX(4px);
  display: inline-block;
  transition: transform .18s ease;
}

/* ---------- ③ 案例卡片 ---------- */
.shhx-home-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--shhx-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.shhx-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--shhx-primary);
  box-shadow: 0 10px 24px rgba(44, 110, 91, .12);
}

.shhx-home-thumb {
  height: 128px;
  overflow: hidden;
  background: var(--shhx-primary-light);
}

.shhx-home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shhx-home-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--shhx-primary);
  opacity: .55;
}

.shhx-home-body { padding: .85rem .95rem 1rem; }

.shhx-home-type {
  display: inline-block;
  font-size: .72rem;
  color: var(--shhx-primary);
  background: var(--shhx-primary-light);
  padding: .14rem .5rem;
  border-radius: 999px;
  margin-bottom: .45rem;
}

.shhx-home-title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: .35rem;
}

.shhx-home-summary {
  font-size: .82rem;
  color: var(--shhx-text-muted);
  line-height: 1.65;
}

/* ---------- ③ 政策列表 ---------- */
.shhx-home-list > li + li { border-top: 1px solid var(--shhx-border); }

.shhx-home-list > li > a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  text-decoration: none;
  color: var(--shhx-text);
  transition: background .15s ease;
}

.shhx-home-list > li > a:hover { background: #f8faf9; }

.shhx-home-list-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--shhx-primary-light);
  color: var(--shhx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.shhx-home-list-title {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shhx-home-list-meta {
  font-size: .78rem;
  color: var(--shhx-text-muted);
  margin-top: .15rem;
}

/* ---------- 右栏卡片 ---------- */
.shhx-side-card { border-radius: var(--shhx-radius); }

.shhx-side-card-accent {
  border-color: var(--shhx-accent);
  background: #fffdf9;
}

.shhx-side-title {
  font-weight: 700;
  font-size: .95rem;
  padding-bottom: .6rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--shhx-border);
  color: var(--shhx-primary-dark);
}

.shhx-side-title i { color: var(--shhx-accent-dark); margin-right: .2rem; }

.shhx-side-item {
  padding: .5rem 0;
  font-size: .88rem;
  line-height: 1.6;
}

.shhx-side-item + .shhx-side-item { border-top: 1px dashed var(--shhx-border); }

.shhx-side-item > a {
  color: var(--shhx-text);
  text-decoration: none;
  display: block;
}

.shhx-side-item > a:hover { color: var(--shhx-primary); }

.shhx-side-time {
  font-size: .76rem;
  color: var(--shhx-text-muted);
  margin-top: .15rem;
}

/* ---------- ④ 数据条 ---------- */
.shhx-home-stats {
  padding: 1.1rem .5rem;
  background: #fff;
  border: 1px solid var(--shhx-border);
  border-radius: var(--shhx-radius-lg);
}

.shhx-home-stat {
  display: block;
  text-decoration: none;
  color: var(--shhx-text);
  padding: .3rem 0;
  border-radius: 10px;
  transition: background .15s ease;
}

.shhx-home-stat:hover { background: var(--shhx-primary-light); }

.shhx-home-stat > i {
  font-size: 1.15rem;
  color: var(--shhx-primary);
}

.shhx-home-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--shhx-primary-dark);
  line-height: 1.25;
}

.shhx-home-stat-label {
  font-size: .76rem;
  color: var(--shhx-text-muted);
  white-space: nowrap;      /* 标签整体不换行 —— 窄屏靠短标签解决 */
  line-height: 1.35;
}

/* ---------- ④ 底部号召 ---------- */
.shhx-home-cta {
  background: linear-gradient(135deg, #1e4d3f 0%, #2c6e5b 55%, #1f4e5f 100%);
  color: #fff;
  overflow: hidden;
}

.shhx-home-cta-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.shhx-home-cta-title {
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: .6rem;
}

.shhx-home-cta-text {
  font-size: .9rem;
  opacity: .88;
  margin-bottom: 1.2rem;
}

/* ---------- 带图标的按钮：图标和文字在胶囊里整体居中 ----------
 * 默认的 .btn 是 inline-block + line-height:1.5，里面塞个图标字体后，
 * 文字会看起来偏上、偏右（微信内置浏览器尤其明显）。
 * 改成 inline-flex 居中对齐，图标高矮都不影响文字位置。 */
.shhx-home-cta .btn,
.shhx-hero-actions .btn,
.shhx-home-cta .btn i.bi,
.shhx-hero-actions .btn i.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

/* ---------- 移动端 ---------- */
@media (max-width: 767.98px) {
  .shhx-start-desc { min-height: 0; }
  .shhx-home-thumb { height: 150px; }

  /* 数据条：手机上加高一点、数字放大，短标签撑得住不会挤 */
  .shhx-home-stats { padding: .85rem .15rem; }
  .shhx-home-stat { padding: .35rem 0; }
  .shhx-home-stat > i { font-size: 1.05rem; }
  .shhx-home-stat-num { font-size: 1.3rem; }
  .shhx-home-stat-label { font-size: .72rem; }

  .shhx-home-cta-body { padding: 1.6rem 1rem; }
  .shhx-home-cta-title { letter-spacing: 2px; }
}

/* 特别窄的老手机（iPhone SE 一类，375px 以下）再收一档 */
@media (max-width: 359.98px) {
  .shhx-home-stat-num { font-size: 1.15rem; }
  .shhx-home-stat-label { font-size: .68rem; }
  .shhx-home-stat > i { font-size: .95rem; }
}


/* =====================================================================
   404 页面（404.php，第 12 轮）
   ===================================================================== */

.shhx-404-num {
  font-size: clamp(3.4rem, 14vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  margin-bottom: .4rem;
  color: var(--shhx-primary);
  opacity: .18;
}

.shhx-404-addr {
  display: inline-block;
  max-width: 100%;
  padding: .5rem .9rem;
  background: var(--shhx-primary-light);
  border-radius: 8px;
  word-break: break-all;
}

.shhx-404-addr code {
  color: var(--shhx-primary-dark);
  font-size: .82rem;
}
