/* simple reset + kffund-aligned typography */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-size: var(--fs-base); color: var(--text-2); background: var(--bg-1); line-height: 1.7; }
body {
  font-family: "Microsoft YaHei", 微软雅黑, "PingFangSC", "Roboto", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main, .content-wrapper { flex: 1 1 auto; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .4s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-md); font-weight: var(--fw-normal); line-height: 1.3; color: var(--text-1); }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 .65rem; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }

/* ---- 通用工具 ---- */
.text-primary { color: var(--primary) !important; }
.text-primary-dk { color: var(--primary-hover) !important; }
.text-accent { color: var(--accent); }
.text-dark { color: var(--text-1) !important; }
.text-muted { color: var(--text-3) !important; }
.text-muted-lt { color: var(--text-4) !important; }
.text-warning { color: var(--warning) !important; }
.bg-primary { background-color: var(--primary) !important; color: #fff; }
.bg-gray { background: var(--bg-2) !important; }
.bg-gray-lt { background: var(--bg-3) !important; }
.bg-light { background: var(--bg-2); }

/* 块间距（对齐 kffund py-section 响应刻度） */
.py-section, .pt-section { padding-top: 40px; }
.py-section, .pb-section { padding-bottom: 40px; }
@media (min-width: 768px) {
  .py-section, .pt-section { padding-top: 50px; }
  .py-section, .pb-section { padding-bottom: 50px; }
}
@media (min-width: 1024px) {
  body { font-size: 1rem; }
  .py-section, .pt-section { padding-top: 65px; }
  .py-section, .pb-section { padding-bottom: 65px; }
}
@media (min-width: 1366px) {
  .py-section, .pt-section { padding-top: 85px; }
  .py-section, .pb-section { padding-bottom: 85px; }
}

/* ---- 按钮（对齐 kffund .btn / .btn-primary / .btn-outline-secondary） ---- */
.btn, button.btn { display: inline-block; padding: 9px 24px; font-size: var(--fs-base); border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: .4s; line-height: 1.3; text-align: center; background: transparent; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff !important; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-secondary { border-color: rgba(0,0,0,.1); color: rgba(0,0,0,.7); transition: .6s; }
.btn-outline-secondary:hover { background: rgba(0,0,0,.4); border-color: rgba(0,0,0,.2); color: #fff; }
@media (min-width: 1024px) { .btn { padding: 9px 40px; } }

/* ---- 标题主块（对齐 kffund .title-main） ---- */
.title-main { margin-bottom: 40px; text-align: center; }
.title-main .title { font-size: 22px; line-height: 1.3; position: relative; display: inline-block; font-weight: var(--fw-normal); margin: 0; color: var(--text-1); }
.title-main .title::before {
  position: absolute;
  content: '';
  bottom: -0.5em;
  left: 50%;
  width: 2.1em;
  height: 2px;
  margin-left: -1.05em;
  background-color: var(--primary);
}
.title-main .des-top { color: var(--primary); font-size: var(--fs-base); margin-bottom: 6px; }
.title-main.no-line { margin-bottom: 25px; border-bottom: 1px solid var(--border); }
.title-main.no-line .title { padding-bottom: .4em; }
.title-main.no-line .title::before { display: none; }
.title-main.h-title-main { margin-bottom: 30px; text-align: left; }
.title-main.h-title-main .title::before { left: 0; margin-left: 0; }
@media (min-width: 768px) { .title-main { margin-bottom: 65px; } .title-main .title { font-size: 24px; } .title-main.h-title-main { margin-bottom: 40px; } }
@media (min-width: 1024px) { .title-main { margin-bottom: 85px; } .title-main .title { font-size: 26px; } .title-main.h-title-main { margin-bottom: 40px; } }
@media (min-width: 1366px) { .title-main { margin-bottom: 100px; } .title-main .title { font-size: 30px; } .title-main.h-title-main { margin-bottom: 45px; } }

/* ---- 面包屑 ---- */
.breadcrumb { font-size: var(--fs-sm); color: var(--text-3); padding: var(--space-md) 0; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 var(--space-xs); color: var(--text-4); }

/* ---- 分页 ---- */
.pagination { display: flex; justify-content: center; gap: var(--space-xs); padding: var(--space-xl) 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-1); transition: .4s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-4); cursor: not-allowed; }

/* ---- 空态 ---- */
.empty { text-align: center; padding: var(--space-xxl) 0; color: var(--text-3); }
.empty-icon { font-size: 64px; opacity: .3; margin-bottom: var(--space-md); }

/* ---- 盒子阴影（对齐 kffund .box-shadow） ---- */
.box-shadow { box-shadow: var(--shadow-1); transition: .4s ease-out; }
.box-shadow:hover, .box-shadow-hover:hover { box-shadow: var(--shadow-2); }

/* ---- 背景图占位容器（对齐 kffund .bg-img） ---- */
.bg-img { background-repeat: no-repeat; background-size: cover; background-position: center center; }

/* ---- 文字截断 ---- */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-truncate2 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.text-truncate3 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }

/* ---- Hover 上浮（kffund .hover-up） ---- */
@media (min-width: 992px) {
  .hover-up { transition: transform .35s ease-out, box-shadow .35s ease-out; }
  .hover-up:hover { transform: translateY(-8px); }
}

/* ---- 链接下划线偏移（kffund 默认无下划线，hover 蓝字；富文本 rich-text 区内显示下划线） ---- */
.rich-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.rich-text a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

/* ---- 图片渲染微调：防止细小 icon 模糊 ---- */
img[loading="lazy"] { content-visibility: auto; }
