/*
 * 口碑主题补充样式：老 css/common.css 之外、新组件需要的部分。
 * - .k-toast / .k-loading：替代 layer_mobile 的 msg / loading（老 need/layer.css 是空文件）
 * - .k-pre：访客文字按原样换行（老站输出时换行被折叠）
 * - .k-honeypot：蜜罐字段移出可视区
 * - 灯箱：Swiper 11 的根 class 是 .swiper，老 CSS 写的是 .swiper-container
 */
.k-toast {
  position: fixed;
  z-index: 19891015;
  left: 0;
  right: 0;
  bottom: 20%;
  text-align: center;
  pointer-events: none;
}
.k-toast span {
  display: inline-block;
  max-width: 80%;
  padding: 0.25rem 0.4rem;
  border-radius: 0.1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.36rem;
  line-height: 0.5rem;
}
.k-loading {
  position: fixed;
  z-index: 19891016;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}
.k-loading__box {
  padding: 0.4rem 0.5rem;
  border-radius: 0.1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.36rem;
  text-align: center;
}
.k-loading__icon {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 auto 0.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: k-spin 0.8s linear infinite;
}
@keyframes k-spin {
  to {
    transform: rotate(360deg);
  }
}
.k-pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.k-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.k-empty {
  padding: 0.4rem 0;
  text-align: center;
  font-size: 0.36rem;
  color: #999;
}
#origin-img .swiper {
  width: 100%;
  height: 100%;
}
#origin-img .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
#origin-img .swiper-zoom-container img {
  width: 100%;
}
/* 列表项里的链接块与图片：老模板 a 内含 div，需要块级 */
.commentlist ul li > a,
.complanintlist ul li > a,
.newslist ul li > a {
  display: block;
}
.imgUpload ul li.imgview {
  list-style: none;
}

/*
 * SEO 语义标签（计划四任务 3）：头部标题 h2 → h1（KLayout.vue，老 CSS 只按 .header .title 写，无需补）；
 * 新闻详情标题 h4 → h1（ContDetail.vue），照抄 `.news_point .art_title h4`。
 * .k-sr-only：表单页头部标题为空时的视觉隐藏 h1 文字（clip 隐藏，绝对定位不占位，读屏 / 搜索引擎可见）。
 */
.news_point .art_title h1 { line-height: 0.6rem; font-family: 'Microsoft YaHei'; font-size: 0.46rem; color: #3f4146; font-weight: bold; }
.k-sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
