/* ==========================================================================
   轩驿魔力 1.3.0 · Discuz 论坛公告同步（首页 / 登陆器页）
   独立文件：不依赖 site.css，避免线上旧样式没被覆盖时新样式不生效。
   在 header.php 的 wp_head() 之后加载，优先级高于后台插件注入的额外 CSS。
   ========================================================================== */

/* 论坛分类短标签：『活动任务』→ 活 / 官方公告 → 官方（对应论坛橙色小方块） */
body.home2 .contentBulletin li .xy-news-tag,
.xy-launcher-news .ln-list li .xy-news-tag {
  float: left;
  display: inline-block;
  width: 22px;
  height: 18px;
  margin: 3px 6px 0 0;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: normal;
  color: #fff;
  background: #ff6a13;
  border-radius: 2px;
  overflow: hidden;
  white-space: nowrap;
}
body.home2 .contentBulletin li .xy-news-tag[title="官方公告"],
.xy-launcher-news .ln-list li .xy-news-tag[title="官方公告"] {
  width: 34px;
  background: #f0921c;
}

/* 论坛行的日期徽标：与原站蓝标区分，贴近论坛截图 */
body.home2 .contentBulletin li.xy-discuz-row > span:first-child {
  width: 36px;
  height: 18px;
  margin: 3px 6px 0 0;
  line-height: 18px;
  font-size: 10px;
  color: #fff;
  background: #ff6a13;
  border-radius: 2px;
}

/* 论坛公告标题：外链新窗口打开 */
body.home2 .contentBulletin li a.xy-news-link {
  color: #4a5058;
}
body.home2 .contentBulletin li a.xy-news-link:hover {
  color: #088fb2;
  text-decoration: none;
}

/* 登陆器独立页里的论坛标签：与 .ln-title 同行（该页为块级结构） */
.xy-launcher-news .ln-list li .xy-news-tag {
  float: none;
  vertical-align: 1px;
  margin: 0 5px 0 0;
}

/* 窄窗口 */
@media (max-width: 480px) {
  body.home2 .contentBulletin li .xy-news-tag { width: 20px; font-size: 10px; margin-right: 4px; }
  body.home2 .contentBulletin li.xy-discuz-row > span:first-child { width: 34px; font-size: 9px; }
}
