/*! ©2026 shanghai xinxi or info zhaozhishi.net */
/* CSS Document */

/* 图片 */
/* 分类信息内容图片自适应 */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 1.2em !important;
  border: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.article-content p,
.article-content div {
  overflow: hidden;
}

/* 小标题样式 */
.img-title {
  font-size: 1em;
  font-weight: bold;
  margin: 1em 0;
  padding-left: 0.5em;
  border-left: 4px solid #1677ff;
}

/* ======================
   图片组bj999.cc布局
======================= */
.img-group {
  margin: 1em 0;
}

/* PC端：图片一行两列 */
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 10px 15px;
}
.img-row img {
  flex: 1;
  min-width: 200px;
  margin: 0 !important;
}

/* 一张图时自动全屏，不强行两列 */
.img-row img:only-child {
  min-width: 100%;
}

/* 空图片隐藏 */
.img-row img[src=""],
.img-row img:not([src]) {
  display: none !important;
}

/* 没有图片 → 整个模块隐藏不占位 */
.img-group:not(:has(img[src]:not([src=""]))) {
  display: none !important;
}
/* ======================
   zhaozhishi.net相关阅读布局
/* 相关新闻：悬浮卡片 + 文字下划线 */
.relatednews li {
  position: relative;
  padding: 6px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 0.26s ease;
  /* 防止撑破外层 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.relatednews li:hover {
  background: #fff0f0;
}

/* 文字链接动画下划线 */
.relatednews li a {
  position: relative;
  display: inline;
  white-space: normal;
  line-height: 1.5;
}
.relatednews li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #e53e3e;
  transition: width 0.26s ease;
}
.relatednews li a:hover::after {
  width: 100%;
}

/* 收藏区+评论指引样式 */

/* 图标 + 文字 不换行、居中 */
.action-left a,
.areport {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
    padding:3px 6px;
    border-radius:8px;
    transition: all 0.2s ease;
}

/* 纯CSS字符图标 */
.icon-comment::before {
    content: "✉";
    font-size: 14px;
    color: #555;
}
.icon-view::before {
    content: "👁";
    font-size: 14px;
    color: #ff3333;
}
.icon-report::before {
    content: "⚠";
    font-size: 14px;
    color: #ff4444;
}

/* 中间竖线 | */
.action-left a + a::before {
    content: "|";
    margin: 0 6px;
    color: #ddd;
}

/* 查看全部评论变红 */
.action-left a:last-child {
    color: #FF0000;
}

/* 悬浮交互更精致 */
.article-actions a:hover {
    color: #ff0000 !important;
    background: #fff0f0;
    transform: translateY(-1px) scale(1.03);
}

/* 底部操作行：评论和投诉反馈 */
.action-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

/* 移动端适配：手机不隐藏收藏提示 */
@media (max-width:768px) {
    .action-left {gap:6px}
    .article-actions {padding:12px 14px}
}
@media (max-width:480px) {
    .share-group {gap:4px}
}