@charset "UTF-8";

/* 资料中心 */
.main > .main-bg > .main-content > .main-content-right > .content-right-title > .data{
    background-image: url("/assets/img/data-details-title.png");
}

.main > .main-bg > .main-content > .main-content-right > .content-right-title > .news{
    background-image: url("/assets/img/news-details-title.png");
}

.main > .main-bg > .main-content > .main-content-right > .content {
    /* 四边 1rem：桌面端 flexible.js 固定 1rem=15px；手机/超宽屏随视口缩放，单位与体系一致 */
    padding: 1rem;
    margin: 0 auto;
    width: 95%;
}

.main > .main-bg > .main-content > .main-content-right > .content > div {
    width: 100%;
    color: white;
}

.main > .main-bg > .main-content > .main-content-right > .content > .title {
    font-weight: bold;
    font-size: 1.6rem;
}

/*
  语义标签对齐：正文标题由 <div class="title"> 改为 <h1 class="title">（SEO，2026-09-30）。
  三个属性都必须显式补，理由都是**实测出来的**，不是想当然：

  1) width / color —— 上面第 19 行的 `.content > div` 只匹配 **div**，
     换成 h1 后 `width:100%` 与 `color:white` 会静默丢失（标题缩成内容宽、颜色变暗）。

  2) margin: 0 auto —— 垂直方向清零 h1 的 UA 默认 margin（0.67em）；
     **水平方向必须是 auto 而不是 0**：`.rich-title` 靠 `margin-left/right: auto`
     把 760px 的标题块居中，本规则特异度更高，写死 `margin: 0` 会把居中干掉
     （资料详情页实测：标题从居中位 550 掉回 479）。
     写 auto 则两种情形都对：宽度 100% 无 max-width 时 auto 退化为 0（新闻详情页），
     有 max-width: 760px 时正好居中（资料详情页）。

  3) line-height: 1.5 —— **最容易漏的一条**：Bootstrap 4 的 reboot 给 h1~h6 设了
     `line-height: 1.2`，而 <div> 继承的是 body 的 1.5。不改则 24px 字号下行高
     36px → 28.8px，标题矮 7.2px、下方内容整体上移（几何比对实测）。
     ⚠️ 这里**不能写 `line-height: inherit`** —— inherit 取父级**计算值** 22.5px
     （父元素字号 15px），结果仍然是错的。必须写数值 1.5。

  ⚠️ 改这里必须重跑几何比对（跑 plan Task 6 的比对脚本），证明与改造前数值完全一致。
*/
.main > .main-bg > .main-content > .main-content-right > .content > h1.title {
    width: 100%;
    color: white;
    margin: 0 auto;
    line-height: 1.5;
}

.main > .main-bg > .main-content > .main-content-right > .content > .createTime {
    color: white;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.7rem;
}

.main > .main-bg > .main-content > .main-content-right > .content > div img {
    max-width: 100%;
}
.dit-img {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #1b1e2180;
}

.dit-img-box {
    position: absolute;
    display: flex;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dit-img-box > .img-box {
    width: 100%;
    height: 100%;
}

.dit-img-box > .img-box > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dit-img-box > .img-box-close {
    width: 1.76rem;
    height: 1.76rem;
    cursor: pointer;
}

.dit-img-box > .img-box-close > svg {
    width: 1.76rem;
    height: 1.76rem;
}
/* ============================================================================
   相关内容（相关资讯 / 相关资料）—— 2026-10-02 新增
   作用：详情页原先**一条指向其它内容的链接都没有**；补上后 57 个资讯页 + 27 个资料页
   互相指认，深层内容拿到更多内链权重、爬虫也多一条发现路径。
   样式沿用 `.content` 的宽度/内边距体系与站点金色（#ffeeb8 / hover #d3c698）。
   ⚠️ h2 必须显式写 line-height: 1.5 —— Bootstrap reboot 给 h1~h6 是 1.2，
      与正文 1.5 不一致（`.content > h1.title` 上已踩过同一个坑，见本文件上方长注释）。
   ============================================================================ */
.main > .main-bg > .main-content > .main-content-right > .related-news{
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 238, 184, 0.25);
}
.main > .main-bg > .main-content > .main-content-right > .related-news > .related-news-title{
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffeeb8;
    margin: 0 0 0.8rem 0;
    line-height: 1.5;
}
.main > .main-bg > .main-content > .main-content-right > .related-news > .related-news-list > li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}
.main > .main-bg > .main-content > .main-content-right > .related-news > .related-news-list > li > a{
    color: #ffeeb8;
    text-decoration: none;
    /* 窄屏必须允许收缩：flex 子项默认 min-width:auto，不写这条长标题会把日期顶出屏幕 */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main > .main-bg > .main-content > .main-content-right > .related-news > .related-news-list > li > a:hover{
    color: #d3c698;
}
.main > .main-bg > .main-content > .main-content-right > .related-news > .related-news-list > li > .related-news-date{
    color: #d3c698;
    font-size: 0.8rem;
    margin-left: 1rem;
    flex: 0 0 auto;
}
