/* ==========================
   重要通知区块
   —— 首页置顶通知（长期有效）+ 普通通知列表
   ========================== */

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- 置顶通知：突出显示 ---------- */
.notice-card-pinned {
    position: relative;
    display: block;
    padding: 20px 22px 20px 26px;
    border-radius: 18px;
    background: var(--card-color);
    border: 1px solid rgba(0, 113, 227, 0.28);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* 左侧竖条强调 */
.notice-card-pinned::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0071e3, #0a84ff);
}

.notice-card-pinned:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 113, 227, 0.5);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.12);
}

.notice-card-pinned h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-card-pinned p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--subtext-color);
}

.notice-card-pinned .notice-more {
    font-size: 13px;
    color: #0071e3;
    font-weight: 500;
}

[data-theme="dark"] .notice-card-pinned .notice-more {
    color: #0a84ff;
}

/* 置顶徽标 */
.pinned-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .pinned-badge {
    background: rgba(10, 132, 255, 0.16);
    color: #0a84ff;
}

/* ---------- 普通通知：紧凑行 ---------- */
.notice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.notice-row:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.3);
}

.notice-row-date {
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--subtext-color);
    font-variant-numeric: tabular-nums;
    min-width: 82px;
}

.notice-row-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.notice-row-arrow {
    flex-shrink: 0;
    color: var(--subtext-color);
    font-size: 13px;
}

/* ---------- 空状态 ---------- */
.notice-empty {
    padding: 22px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--subtext-color);
    text-align: center;
    font-size: 14px;
}

[data-theme="dark"] .notice-empty {
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================
   移动端
   ========================== */
@media (max-width: 768px) {

    .notice-card-pinned {
        padding: 16px 16px 16px 20px;
        border-radius: 16px;
    }

    .notice-card-pinned h3 {
        font-size: 15.5px;
    }

    .notice-card-pinned p {
        font-size: 13.5px;
    }

    .notice-row {
        padding: 12px 14px;
        gap: 9px;
    }

    .notice-row-date {
        min-width: 68px;
        font-size: 11.5px;
    }

    .notice-row-title {
        font-size: 13.5px;
    }
}
