﻿/*
 * beautify.css - 前台美化增强样式
 * 在 style.css 之后加载，对现有样式进行现代化增强
 * 不修改 Adminsite 后台，不改变 HTML 结构
 * 兼容 PC 和移动端，PC 专属样式用 @media (min-width:993px) 隔离
 * 保持品牌主色调（蓝色），仅做视觉打磨
 */

/* ============================================
   1. 全局基础美化（PC 和移动端共用）
   ============================================ */
:root {
  --th-primary: #3b82f6;
  --th-primary-dark: #2563eb;
  --th-primary-light: #dbeafe;
  --th-accent: #f97316;
  --th-text: #1e293b;
  --th-text-light: #64748b;
  --th-bg: #f8fafc;
  --th-border: #e2e8f0;
  --th-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --th-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --th-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --th-radius: 8px;
  --th-radius-lg: 12px;
  --th-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--th-bg);
  background-image: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--th-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

::selection {
  background: var(--th-primary);
  color: #fff;
  text-shadow: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

a {
  color: var(--th-text);
  transition: var(--th-transition);
}

a:hover,
a:focus {
  color: var(--th-primary);
}

/* ============================================
   2. 文字 LOGO：粤 + 粤语发音网（PC + 移动端共用）
   ============================================ */
.th_logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--th-transition);
  vertical-align: middle;
  line-height: 1;
}

.th_logo:hover {
  transform: scale(1.03);
  text-decoration: none;
}

/* "粤" 字徽章：红渐变圆角方块，呼应站内"粤"标签色 */
.th_logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff !important;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: var(--th-transition);
}

.th_logo:hover .th_logo-icon {
  box-shadow: 0 5px 14px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: rotate(-3deg);
}

/* "粤语发音网" 文字：蓝紫渐变 */
.th_logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: var(--th-transition);
}

/* 旧浏览器降级：不支持 background-clip:text 时显示蓝色 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .th_logo-text {
    background: none;
    color: var(--th-primary);
    -webkit-text-fill-color: currentColor;
  }
}

/* ============================================
   2.1 区块容器（PC + 移动端共用）
   ============================================ */
.thjingxuan,
.thhotnews,
.thleftcon {
  background: #fff !important;
  border-radius: var(--th-radius-lg) !important;
  box-shadow: var(--th-shadow-card) !important;
  border: 1px solid rgba(226, 232, 240, 0.6);
  overflow: hidden;
}

.thjingxuan {
  padding: 20px !important;
}

.thhotnews {
  padding: 20px !important;
}

/* 区块标题 */
.thjingxuan_title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: flex;
  align-items: center;
  line-height: 1.5 !important;
  letter-spacing: 0.5px;
}

.thjingxuan_title i {
  width: 4px !important;
  height: 18px !important;
  border-radius: 4px !important;
  margin-top: 0 !important;
  margin-right: 10px !important;
  background: linear-gradient(180deg, var(--th-primary), #6366f1) !important;
}

/* hotnews 标题徽章 */
.thhotnews .iconhot {
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  width: auto !important;
  min-width: 200px;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  letter-spacing: 0.5px;
}

/* 左侧栏标题 */
.thleftbt {
  height: 48px !important;
  line-height: 48px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border-bottom: 1px solid var(--th-border) !important;
}

.thleftbt::before {
  background: linear-gradient(180deg, var(--th-primary), #6366f1) !important;
  border-radius: 4px;
  top: 30% !important;
  height: 40% !important;
}

.thleftbt span {
  margin-left: 15px;
}

/* ============================================
   3. 卡片 thliorder1（PC + 移动端共用）
   ============================================ */
.thliorder1 {
  padding: 16px !important;
  margin: 6px !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius) !important;
  background: #fff;
  box-shadow: var(--th-shadow-card);
  transition: var(--th-transition) !important;
  position: relative;
  overflow: hidden;
}

.thliorder1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--th-primary), #6366f1);
  opacity: 0;
  transition: var(--th-transition);
}

.thliorder1:hover {
  background-color: #f8fafc !important;
  border-color: var(--th-primary-light) !important;
  box-shadow: var(--th-shadow-hover) !important;
  transform: translateY(-2px);
}

.thliorder1:hover::before {
  opacity: 1;
}

.thjingxuan_sec {
  margin-top: 18px !important;
}

.thliorder1_title {
  margin-top: 30px !important;
  /* 覆盖原始 height:22px + overflow:hidden，让"详细"和分类链接完整显示并允许换行 */
  overflow: visible !important;
  height: auto !important;
  min-height: 24px;
  line-height: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.thliorder1_title span a {
  width: auto !important;
  padding: 0 14px !important;
  height: 24px !important;
  line-height: 24px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: var(--th-transition);
}

.thliorder1_title span a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* 序号徽章渐变色 */
.thjingxuan_sec div:nth-child(1) .thliorder1_title a {
  background: linear-gradient(135deg, #ff8f76, #f97316) !important;
}

.thjingxuan_sec div:nth-child(2) .thliorder1_title a {
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
}

.thjingxuan_sec div:nth-child(3) .thliorder1_title a {
  background: linear-gradient(135deg, #475569, #1e293b) !important;
}

.thjingxuan_sec div:nth-child(4) .thliorder1_title a {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
}

.thjingxuan_sec div:nth-child(5) .thliorder1_title a {
  background: linear-gradient(135deg, #84cc16, #22c55e) !important;
}

.thjingxuan_sec div:nth-child(6) .thliorder1_title a {
  background: linear-gradient(135deg, #64748b, #475569) !important;
}

.thjingxuan_sec div:nth-child(7) .thliorder1_title a {
  background: linear-gradient(135deg, #6495ED, #4169E1) !important;
}

.thjingxuan_sec div:nth-child(8) .thliorder1_title a {
  background: linear-gradient(135deg, #FF7F50, #ff6347) !important;
}

.thjingxuan_sec div:nth-child(9) .thliorder1_title a {
  background: linear-gradient(135deg, #D2691E, #b45309) !important;
}

.thjingxuan_sec div:nth-child(10) .thliorder1_title a {
  background: linear-gradient(135deg, #ec4899, #D02090) !important;
}

.thjingxuan_sec div:nth-child(11) .thliorder1_title a {
  background: linear-gradient(135deg, #BDB76B, #a09b4a) !important;
}

.thjingxuan_sec div:nth-child(12) .thliorder1_title a {
  background: linear-gradient(135deg, #5b21b6, #483D8B) !important;
}

/* ============================================
   粤语单字发音卡片（YueYuFaYin）- 字典风格
   ============================================ */
.yyfayin-card {
  padding: 0 !important;
  overflow: hidden;
  text-align: center;
}

/* 主体可点击区域 */
.yyfayin-main {
  display: block;
  padding: 28px 12px;
  text-decoration: none !important;
  transition: var(--th-transition);
}

.yyfayin-main:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #f0f9ff 100%);
}

/* 大号汉字 */
.yyfayin-char {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 卡片底部详细+hits 居中 */
.yyfayin-card .thliorder1_title {
  border-top: 1px dashed #e2e8f0;
  padding: 8px 12px !important;
  justify-content: center;
}

.thtime {
  color: #94a3b8 !important;
  font-size: 12px !important;
}

/* ============================================
   4. 导读条目 daodu（共用）
   ============================================ */
.daodu,
.daodu1 {
  margin-top: 6px !important;
}

.daodu a {
  font-size: 15px !important;
  color: #475569 !important;
  line-height: 26px !important;
  height: 26px !important;
  margin-bottom: 8px !important;
  transition: var(--th-transition);
}

.daodu1 a {
  font-size: 16px !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  height: 26px !important;
  margin-bottom: 8px !important;
}

.daodu a:hover {
  color: var(--th-primary) !important;
}

.daodu1 a:hover {
  color: var(--th-primary-dark) !important;
}

/* 中/粤 标签 — 列表页保持原样，详情页单独美化 */
.daoduview .zhong,
.daoduview .Yue {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 16px !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center !important;
  flex-shrink: 0;
  float: none !important;
}

.daoduview .zhong {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
}

.daoduview .Yue {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
}

/* ============================================
   5. 排行榜 th-5（共用）
   ============================================ */
.th-5 {
  padding: 12px 0 !important;
}

.th-5 li {
  line-height: 38px !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--th-transition);
}

.th-5 li:last-child {
  border-bottom: none;
}

.th-5 li:hover {
  background: #f8fafc;
}

.th-5 li a {
  color: #475569 !important;
  font-size: 14px;
}

.th-5 li a:hover {
  color: var(--th-primary) !important;
}

.th-5 li i {
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-radius: 6px !important;
  margin-right: 10px !important;
}

/* 注意：原始 style.css 用 .th-5 li:nth-child(n) i 选择器，
   此处用 [class] 提高特异性避免覆盖移动端，仅在非移动菜单上下文生效 */
.th-5 li:nth-child(1) i,
.th-5 li:nth-child(2) i,
.th-5 li:nth-child(3) i {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.th-5 .date {
  color: #94a3b8 !important;
  font-size: 12px;
}

/* ============================================
   6. 标签云 th-71 和友链 th-8（共用）
   ============================================ */
.th-71 {
  padding: 18px 18px 12px 18px !important;
}

.th-71 li {
  margin-right: 10px !important;
  margin-bottom: 8px;
  width: auto !important;
  min-width: 10%;
}

.th-71 li a {
  border: 1px solid var(--th-border) !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border-radius: 16px !important;
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  transition: var(--th-transition) !important;
}

.th-71 li a:hover {
  background: linear-gradient(135deg, var(--th-primary), #6366f1) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.th-8 {
  padding: 18px !important;
}

.th-8 li {
  margin-right: 18px !important;
  margin-bottom: 6px;
  line-height: 26px !important;
}

.th-8 li a {
  color: #64748b !important;
  font-size: 13px;
}

.th-8 li a:hover {
  color: var(--th-primary) !important;
}

/* ============================================
   7. 底部 Footer（共用）
   ============================================ */
.footer1 {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  padding: 40px 0 30px !important;
  border-top: 3px solid var(--th-primary);
}

.footer1 .row > div {
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0 20px;
}

.footer1 .row > div:last-child {
  border-right: none;
}

.footcon1,
.footcon2 {
  min-height: 100%;
}

.footcon1 dt,
.footcon2 dt {
  color: #f1f5f9 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  letter-spacing: 0.5px;
  padding-left: 10px;
  border-left: 3px solid var(--th-primary);
  line-height: 1.4;
}

.footcon1 dt a {
  color: var(--th-primary) !important;
  text-decoration: none;
  transition: var(--th-transition);
}

.footcon1 dt a:hover {
  opacity: 0.85;
}

.footcon1 dd {
  color: #94a3b8 !important;
  line-height: 1.8 !important;
  height: auto !important;
  font-size: 13px;
}

.footcon1 dd.footlianx {
  color: #94a3b8 !important;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.footcon1 dd.footlianx i {
  color: var(--th-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footcon1 dd.footlianx span {
  color: #e2e8f0 !important;
}

/* 底部简介 + 二维码（文字中嵌二维码） */
.footcon1 dd.footintro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.8 !important;
}

.footcon1 dd.footintro .footintro-text {
  flex: 1;
  color: #94a3b8 !important;
  font-size: 13px;
}

.footcon1 dd.footintro .footintro-ewm {
  flex-shrink: 0;
  text-align: center;
}

.footcon1 dd.footintro .footintro-ewm img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block;
}

.footcon1 dd.footintro .footintro-ewm i {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
  font-style: normal;
  letter-spacing: 0.3px;
}

.footcon2 dd {
  margin-bottom: 6px;
}

.footcon2 dd a {
  color: #94a3b8 !important;
  font-size: 13px;
  transition: var(--th-transition);
  display: inline-block;
  padding: 2px 0;
}

.footcon2 dd a:hover {
  color: var(--th-primary) !important;
  transform: translateX(4px);
}

.footer2 {
  background: #0a0f1c !important;
  padding: 14px 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer2 p {
  margin: 0;
  line-height: 1.8;
}

.footer2 a {
  color: #94a3b8 !important;
  transition: var(--th-transition);
}

.footer2 a:hover {
  color: var(--th-primary) !important;
}

/* ============================================
   8. 右侧悬浮按钮 thgotop（共用）
   ============================================ */
.thgotop ul li {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid var(--th-border) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  transition: var(--th-transition) !important;
}

.thgotop ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12) !important;
}

.ditop i {
  color: #475569 !important;
  margin-top: 0 !important;
  height: 44px;
  line-height: 44px;
}

.ditop:hover {
  background: linear-gradient(135deg, var(--th-primary), #6366f1) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3) !important;
}

.ditop:hover i {
  color: #fff !important;
}

.ditopcon {
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
  border: 1px solid var(--th-border) !important;
}

.topthewm {
  border: 1px solid var(--th-border) !important;
  border-radius: 8px !important;
}

/* ============================================
   9. 详情页（共用）
   ============================================ */
.detail-title {
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  padding: 10px 0 16px !important;
  border-bottom: 2px solid var(--th-primary-light);
  margin: 0 0 8px 0 !important;
  /* 覆盖原始 -webkit-line-clamp:2 / overflow:hidden，让长标题完整显示并自动换行 */
  overflow: visible !important;
  display: block !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: initial !important;
  text-overflow: clip !important;
  word-break: break-word;
  white-space: normal !important;
}

/* SEO: h1/h2/h3 语义化重置，防止浏览器默认 margin 影响布局 */
h1.detail-title,
h2.detail-title {
  margin: 0 0 8px 0 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
}

.detail-icon {
  color: #475569 !important;
  font-size: 13px !important;
  /* 相关信息加一条有颜色的背景框 */
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%) !important;
  border: 1px solid #dbeafe !important;
  border-left: 3px solid var(--th-primary) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08);
}

.detail-icon i {
  color: var(--th-primary);
  margin-right: 4px;
}

.detail-icon .meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.detail-icon .meta span {
  display: inline-flex;
  align-items: center;
  color: #475569;
}

.detail-con {
  font-size: 15px !important;
  color: #334155 !important;
  line-height: 1.8 !important;
  padding: 8px 4px;
}

/* 详情页标签行：左侧标签 + 右侧点击数 */
.detail-tags {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px !important;
  margin-top: 14px !important;
  background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%) !important;
  border: 1px solid #dbeafe !important;
  border-left: 3px solid var(--th-primary) !important;
  border-radius: 8px !important;
}

.detail-tags-left {
  flex: 1;
  min-width: 0;
  color: #475569;
  font-size: 14px;
}

.detail-tags-left i {
  color: var(--th-primary);
  margin-right: 4px;
}

.detail-tags-left a {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 10px;
  background: #fff;
  border: 1px solid var(--th-border);
  border-radius: 12px;
  color: #475569 !important;
  font-size: 13px;
  transition: var(--th-transition);
}

.detail-tags-left a:hover {
  background: var(--th-primary) !important;
  color: #fff !important;
  border-color: var(--th-primary) !important;
}

.detail-tags-right {
  flex-shrink: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--th-border);
}

.detail-tags-right i {
  color: var(--th-accent);
  margin-right: 4px;
}

.detail-con p {
  margin-bottom: 14px;
}

/* ============================================
   小程序二维码卡片（ViewVioice 详情页）
   ============================================ */
.miniqrcode {
  text-align: center;
  padding: 10px 0 6px;
}

.miniqrcode-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.miniqrcode-card {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  transition: var(--th-transition);
}

.miniqrcode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* 第一个卡片（扫码听发音小程序码）突出显示 */
.miniqrcode-row > .miniqrcode-card:first-child {
  position: relative;
  padding: 20px 24px 18px;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  border: 2px solid #07c160;
  box-shadow: 0 10px 30px rgba(7, 193, 96, 0.18), 0 4px 10px rgba(7, 193, 96, 0.08);
  transform: scale(1.04);
  z-index: 1;
}

.miniqrcode-row > .miniqrcode-card:first-child::before {
  content: '本页发音';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #07c160, #16a34a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(7, 193, 96, 0.3);
}

.miniqrcode-row > .miniqrcode-card:first-child .miniqrcode-header {
  background: linear-gradient(135deg, #07c160, #16a34a);
  color: #fff;
}

.miniqrcode-row > .miniqrcode-card:first-child .miniqrcode-header i {
  color: #fff;
}

.miniqrcode-row > .miniqrcode-card:first-child .miniqrcode-img img {
  width: 160px;
  height: 160px;
  border: 5px solid #fff;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.18);
}

.miniqrcode-row > .miniqrcode-card:first-child .miniqrcode-tip {
  color: #07c160;
  font-weight: 600;
}

.miniqrcode-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #07c160;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: #f0fdf4;
  border-radius: 20px;
}

.miniqrcode-header i {
  font-size: 16px;
  color: #07c160;
}

.miniqrcode-img {
  line-height: 0;
}

.miniqrcode-img img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  display: block;
  margin: 0 auto;
}

.miniqrcode-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* .daoduview 行：flex 布局，标签和内容不再挤在一起 */
.daoduview {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px !important;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
}

.daoduview h2,
.daoduview h3 {
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: #0f172a !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  margin: 0 !important;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
  display: flex;
  align-items: center;
  min-height: 36px;
}

/* 非标签行的 daoduview（纯文本内容行）不需要 flex 对齐 */
.daoduview:not(:has(.zhong)):not(:has(.Yue)) {
  display: block !important;
  padding: 16px 20px !important;
}

.daoduview p {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
  margin-bottom: 14px;
}

.umCopyright,
.detail-zhaiyao {
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
  font-size: 13px;
}

.detail-arr-left a,
.detail-arr-right a {
  background: #f8fafc;
  border: 1px solid var(--th-border);
  border-radius: 6px;
  padding: 8px 14px !important;
  color: #475569 !important;
  transition: var(--th-transition);
  display: inline-block;
}

.detail-arr-left a:hover,
.detail-arr-right a:hover {
  background: var(--th-primary);
  color: #fff !important;
  border-color: var(--th-primary);
}

/* ============================================
   10. 通用容器间距、滚动广告、微信学习区、发音列表、分页
   ============================================ */
.th_margintop {
  margin-top: 20px !important;
}

.wap_margintop {
  margin-top: 0;
}

.gundongimg {
  border-radius: var(--th-radius) !important;
  overflow: hidden;
  box-shadow: var(--th-shadow-card);
}

.weixininfo {
  text-align: center;
}

.weixininfo img {
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-card);
  margin: 0 8px !important;
  transition: var(--th-transition);
}

.weixininfo img:hover {
  transform: scale(1.02);
  box-shadow: var(--th-shadow-hover);
}

.voicelist {
  background: #f8fafc;
  border-radius: var(--th-radius);
  padding: 14px;
}

.voicelist audio {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
}

/* ============================================
   分页导航 / "相关信息" 标题盒 重新设计
   - .pagebar.commentpagebar = 详情页"相关信息"标题盒
   - .pagebar:not(.commentpagebar) = 列表页分页导航
   ============================================ */

/* "相关信息" 标题盒：彩色渐变背景 + 左侧白色装饰条 */
.pagebar.commentpagebar {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #fff !important;
  text-align: left !important;
  padding: 12px 18px 12px 22px !important;
  border-radius: 8px !important;
  margin: 20px 0 15px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
  line-height: 1.4 !important;
}

.pagebar.commentpagebar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
}

/* 分页导航容器：flex 居中布局 */
.pagebar:not(.commentpagebar) {
  text-align: center !important;
  margin: 24px 0 !important;
  padding: 16px 10px !important;
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--th-shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* "共X页/分页：N" 信息文字 */
.pagebar:not(.commentpagebar) > span:first-child,
.pagebar:not(.commentpagebar) span.pageinfo {
  display: inline-flex !important;
  align-items: center;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  border-radius: 16px !important;
  margin: 0 8px 0 0 !important;
  border: none !important;
  height: auto !important;
  min-width: auto !important;
  line-height: 1.5 !important;
  font-weight: 500;
}

.pagebar:not(.commentpagebar) > span:first-child strong,
.pagebar:not(.commentpagebar) span.pageinfo strong {
  color: var(--th-primary);
  margin: 0 3px;
  font-size: 14px;
}

/* 分页按钮容器 a */
.pagebar:not(.commentpagebar) a {
  display: inline-block !important;
  margin: 0 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  color: inherit !important;
}

/* 分页按钮 span.page - 现代圆角设计 */
.pagebar:not(.commentpagebar) span.page {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: var(--th-transition) !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 悬停状态：浅蓝填充 */
.pagebar:not(.commentpagebar) a:hover span.page,
.pagebar:not(.commentpagebar) span.page:hover {
  background: var(--th-primary-light) !important;
  color: var(--th-primary-dark) !important;
  border-color: var(--th-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

/* 当前页 now-page：蓝紫渐变高亮 */
.pagebar:not(.commentpagebar) span.now-page,
.pagebar:not(.commentpagebar) a:hover span.now-page {
  background: linear-gradient(135deg, var(--th-primary), #6366f1) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px);
}

/* 首页/上页/下页/尾页 - 药丸形按钮 */
.pagebar:not(.commentpagebar) span.pageicon {
  border-radius: 18px !important;
  padding: 0 16px !important;
}

.categorylist a {
  color: var(--th-primary) !important;
  font-weight: 500;
}

.categorylist a:hover {
  color: var(--th-primary-dark) !important;
}

.categorylist span {
  color: #94a3b8 !important;
}

/* ============================================
   11. PC 专属样式（≥ 993px）— 头部/导航/搜索布局
   ============================================ */
@media (min-width: 993px) {
  /* 头部高度收紧 + 毛玻璃 */
  .th_header {
    height: 64px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  }

  .pheaderpad {
    height: 64px !important;
  }

  .th_header .row {
    display: flex;
    align-items: center;
    height: 64px;
  }

  .th_header img {
    max-height: 40px;
    transition: var(--th-transition);
  }

  .th_header img:hover {
    transform: scale(1.03);
  }

  /* 导航 */
  .th_nav li {
    height: 64px !important;
    line-height: 64px !important;
    margin: 0 4px !important;
  }

  .th_nav li a {
    line-height: 64px !important;
    height: 64px !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #475569 !important;
    padding: 0 14px;
    position: relative;
  }

  .th_nav li a:hover {
    color: var(--th-primary) !important;
  }

  .th_nav li a:after {
    background: linear-gradient(90deg, var(--th-primary), #6366f1) !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0;
    bottom: 14px !important;
  }

  .th_nav li#nvabar-item-index a {
    color: var(--th-primary) !important;
  }

  /* 搜索面板：药丸式输入 + 渐变按钮 */
  .searchpanel {
    margin-top: 0 !important;
    display: flex;
    align-items: center;
  }

  .searchpanel form {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .searchpanel input:nth-child(1) {
    flex: 1 !important;
    width: auto !important;
    font-size: 13px !important;
    height: 36px !important;
    line-height: 36px !important;
    background: #f8fafc !important;
    border: 1px solid var(--th-border) !important;
    border-radius: 18px !important;
    padding: 0 16px !important;
    text-indent: 0 !important;
    transition: var(--th-transition) !important;
    color: var(--th-text) !important;
  }

  .searchpanel input:nth-child(1)::placeholder {
    color: #94a3b8;
  }

  .searchpanel input:nth-child(1):focus {
    border-color: var(--th-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
  }

  .searchpanel input:nth-child(2) {
    height: 36px !important;
    line-height: 36px !important;
    width: auto !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--th-primary), #6366f1) !important;
    border: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500;
    cursor: pointer;
    transition: var(--th-transition) !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
  }

  .searchpanel input:nth-child(2):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  }

  .searchpanel input:nth-child(2):focus {
    border: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  }
}

/* ============================================
   12. 移动端专属美化（≤ 992px）
   ============================================ */
@media (max-width: 992px) {
  /* 区块圆角和间距收窄 */
  .thjingxuan,
  .thhotnews,
  .thleftcon {
    border-radius: var(--th-radius) !important;
    padding: 14px !important;
  }

  .thliorder1 {
    margin: 4px !important;
    padding: 12px !important;
  }

  /* 移动端粤语单字卡片字号缩小 */
  .yyfayin-char {
    font-size: 44px;
  }

  .yyfayin-main {
    padding: 20px 10px;
  }

  .detail-title {
    font-size: 20px !important;
  }

  .th_margintop {
    margin-top: 14px !important;
  }

  .footer1 {
    padding-top: 24px !important;
  }

  .footcon1 dd {
    height: auto !important;
  }

  /* 移动端头部：保留原始 70px，仅做视觉打磨 */
  .th_header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  }

  /* 移动端文字 LOGO：适配 70px 头部，徽章和文字略小 */
  .th_logo {
    padding-left: 4px;
    height: 70px;
    align-items: center;
  }

  .th_logo-icon {
    width: 30px;
    height: 30px;
    font-size: 19px;
    border-radius: 6px;
  }

  .th_logo-text {
    font-size: 17px;
    letter-spacing: 0.5px;
  }

  .th_header img {
    max-height: 38px;
  }

  /* 移动端展开后的导航菜单：卡片化 */
  .wap_headernav {
    background: #fff !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    border-radius: var(--th-radius);
    box-shadow: var(--th-shadow-card);
    border: 1px solid var(--th-border);
  }

  .wap_headernav ul.th_nav li {
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .wap_headernav ul.th_nav li:last-child {
    border-bottom: none !important;
  }

  .wap_headernav ul.th_nav li a {
    color: #475569 !important;
    font-weight: 500;
  }

  .wap_headernav ul.th_nav li a:hover {
    color: var(--th-primary) !important;
    background: #f8fafc;
  }

  .wap_headernav ul.th_nav li#nvabar-item-index a {
    color: var(--th-primary) !important;
  }

  /* 移动端搜索：保持原始 padding 布局，仅美化输入框 */
  .wap_headersearch {
    background-color: #fff !important;
    padding: 0 16px 16px !important;
    border-bottom: 1px solid var(--th-border);
  }

  .searchpanel {
    padding: 0 !important;
  }

  .searchpanel input:nth-child(1) {
    font-size: 14px !important;
    background: #f8fafc !important;
    border: 1px solid var(--th-border) !important;
    border-radius: 18px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-indent: 0 !important;
    padding: 0 16px !important;
    transition: var(--th-transition) !important;
  }

  .searchpanel input:nth-child(1):focus {
    border-color: var(--th-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
  }

  .searchpanel input:nth-child(2) {
    background: linear-gradient(135deg, var(--th-primary), #6366f1) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 18px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
  }

  /* 菜单切换按钮颜色 */
  .wap_headerclick span {
    color: #475569 !important;
    transition: var(--th-transition);
  }

  .wap_headerclick span:hover {
    color: var(--th-primary) !important;
  }

  /* 卡片在移动端两列时紧凑 */
  .thjingxuan_sec > div.col-xs-6 {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* 详情页正文 */
  .detail-con {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .daoduview h2,
  .daoduview h3 {
    font-size: 16px !important;
  }

  .daoduview p {
    font-size: 14px !important;
  }

  /* 移动端 daoduview 更紧凑 */
  .daoduview {
    padding: 10px 12px !important;
    gap: 10px;
    margin-bottom: 12px !important;
  }

  .daoduview .zhong,
  .daoduview .Yue {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 14px !important;
  }

  /* 移动端小程序二维码略小 */
  .miniqrcode-img img {
    width: 120px;
    height: 120px;
  }

  .miniqrcode-card {
    padding: 12px 14px 10px;
  }

  /* 右侧悬浮按钮在移动端缩小 */
  .thgotop {
    bottom: 80px !important;
  }

  .thgotop ul li {
    width: 40px !important;
    height: 40px !important;
  }

  .ditop i {
    height: 40px;
    line-height: 40px;
  }

  /* 移动端页脚列分隔线隐藏 */
  .footer1 .row > div {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 12px 16px;
  }

  .footer1 .row > div:last-child {
    border-bottom: none;
  }

  .footcon1,
  .footcon2 {
    text-align: center;
  }

  .footcon2 dd,
  .footcon2 dt {
    text-align: center !important;
  }

  .footcon1 dt,
  .footcon2 dt {
    border-left: none;
    padding-left: 0;
  }

  .footcon1 dd.footlianx {
    justify-content: center;
  }

  /* 移动端底部文字+二维码：上下排列居中 */
  .footcon1 dd.footintro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 移动端小程序二维码并排间距缩小 */
  .miniqrcode-row {
    gap: 12px;
  }

  /* 移动端第一个突出卡片：去掉 scale 避免溢出 */
  .miniqrcode-row > .miniqrcode-card:first-child {
    transform: none;
    padding: 16px 16px 12px;
  }

  .miniqrcode-row > .miniqrcode-card:first-child .miniqrcode-img img {
    width: 130px;
    height: 130px;
  }

  /* 标签云在移动端更紧凑 */
  .th-71 li {
    width: auto !important;
    min-width: 30%;
  }

  /* 移动端分页：按钮略小，间距更紧凑 */
  .pagebar:not(.commentpagebar) {
    padding: 12px 6px !important;
    gap: 4px;
  }

  .pagebar:not(.commentpagebar) span.page {
    min-width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }

  .pagebar:not(.commentpagebar) > span:first-child,
  .pagebar:not(.commentpagebar) span.pageinfo {
    width: 100%;
    margin: 0 0 8px 0 !important;
    justify-content: center;
  }
}

/* ============================================
   13. 超小屏幕微调（≤ 480px）
   ============================================ */
@media (max-width: 480px) {
  .thjingxuan_title {
    font-size: 16px !important;
  }

  .thliorder1 {
    margin: 3px !important;
    padding: 10px !important;
  }

  .daodu a,
  .daodu1 a {
    font-size: 14px !important;
  }

  .thliorder1_title span a {
    padding: 0 10px !important;
  }

  /* 标签云两列布局 */
  .th-71 li {
    width: 46% !important;
    min-width: 46%;
    margin-right: 2% !important;
  }

  .th-71 li:nth-child(even) {
    margin-right: 0 !important;
  }
}