/* ==============================
   公告页（notice.html 专用）
   风格基准：首页 index.html —— 白色圆角卡片 + 主色 #66ccff，正文按换行分段
   ⚠️ 只写本页自己的样式，公共 style.css 只读复用（见 AGENTS.md 第二、四条）
   ============================== */

.notice-body {
    background-color: var(--background-color);
}

.notice-main {
    flex: 1;

    width: 100%;
}

.notice-wrap {
    box-sizing: border-box;

    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* ---------- 板块 ---------- */

.nt-block + .nt-block {
    margin-top: 30px;
}

.nt-block-title {
    margin: 0 0 14px;

    padding-left: 11px;

    border-left: 4px solid var(--main-color);

    font-size: 19px;
    font-weight: 700;

    color: #1f1f1f;
}

.nt-list {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

/* ---------- 一条公告一张卡 ---------- */

.nt-item {
    box-sizing: border-box;

    padding: 20px 22px;

    border: 1px solid #eeeeee;
    border-radius: 18px;

    background-color: rgba(255, 255, 255, 0.97);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 置顶那张稍微标出来一点，免得和更新公告看着一样 */
.nt-item.pinned {
    border-color: rgba(102, 204, 255, 0.55);
}

.nt-head {
    display: flex;

    flex-wrap: wrap;

    align-items: baseline;

    gap: 8px 12px;

    margin-bottom: 10px;
}

.nt-title {
    margin: 0;

    font-size: 17px;
    font-weight: 700;

    /* 长标题（一串英文站名那种）不许把卡片顶宽 */
    min-width: 0;
    overflow-wrap: anywhere;

    color: #1f1f1f;
}

.nt-tag {
    flex-shrink: 0;

    padding: 2px 9px;

    border-radius: 999px;

    font-size: 12px;

    color: var(--main-color);
    background-color: rgba(102, 204, 255, 0.15);
}

.nt-time {
    margin-left: auto;

    font-size: 12px;

    color: #9a9a9a;
    white-space: nowrap;
}

/* 正文：一行一段（后端存的就是站长敲的换行），段内软换行不掐字 */
.nt-text {
    margin: 0;

    font-size: 14px;
    line-height: 1.75;

    overflow-wrap: anywhere;

    color: #4a4a4a;
}

.nt-text + .nt-text {
    margin-top: 8px;
}

/* ---------- 提示 / 空态 / 翻页 ---------- */

.nt-msg,
.nt-empty {
    margin: 4px 0 0;

    font-size: 13px;

    color: #9a9a9a;
}

.nt-msg.bad {
    color: #e05a5a;
}

/* 自动加载：拉下一批时在这行给个信儿，平时是空的 */
.nt-loading {
    margin: 16px 0 0;

    font-size: 13px;

    color: #9a9a9a;
    text-align: center;
}

/* 看不见的高度占位，滚到它跟前就发下一页请求 */
.nt-sentinel {
    height: 1px;
}

/* ---------- 手机端 ---------- */

@media (max-width: 768px) {
    .notice-wrap {
        padding: 20px 12px 44px;
    }

    .nt-block-title {
        font-size: 17px;
    }

    .nt-item {
        padding: 16px 15px;
    }

    /* 窄屏上时间不再靠右（挤在标题右边会换行错位），单独占一行 */
    .nt-time {
        margin-left: 0;

        width: 100%;
    }
}
