/* 60/assets/css/announcements.css —— 公告页样式（正式版） */

/* ============================================
   前台：左右布局
   ============================================ */
.anc-layout {
    display: flex;
    gap: 22px;
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* ===== 左侧栏 ===== */
.anc-side {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.anc-side::-webkit-scrollbar { display: none; }

.anc-side-title {
    font-size: 15px;
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    padding-left: 10px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.anc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.anc-filter-btn {
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.anc-filter-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.anc-filter-btn.active {
    background: rgba(212,175,55,0.12);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 600;
}

.anc-list { list-style: none; padding: 0; margin: 0; }
.anc-list li { margin-bottom: 6px; }
.anc-list a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.5;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.anc-list a:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
}
.anc-list a.active {
    background: var(--bg-hover);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
    font-weight: 600;
}
.anc-list .anc-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.anc-list a.active .anc-item-top { color: var(--text-secondary); }
.anc-list .anc-item-tag {
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid;
}
.anc-list .anc-item-tag.phase  { color: var(--gold-primary); border-color: var(--gold-primary); }
.anc-list .anc-item-tag.system { color: var(--info);         border-color: var(--info); }
.anc-list .anc-item-tag.notice { color: var(--warning);      border-color: var(--warning); }
.anc-list .anc-item-pin {
    color: var(--gold-primary);
    font-weight: bold;
}
.anc-list .anc-item-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anc-side-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 30px 10px;
}

/* ===== 右侧正文 ===== */
.anc-reader {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px 48px;
}

.anc-reader-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.anc-reader-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.anc-reader-meta .anc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid;
}
.anc-reader-meta .anc-badge.phase  { color: var(--gold-primary); border-color: var(--gold-primary); background: rgba(212,175,55,0.10); }
.anc-reader-meta .anc-badge.system { color: var(--info);         border-color: var(--info);         background: rgba(100,181,246,0.10); }
.anc-reader-meta .anc-badge.notice { color: var(--warning);      border-color: var(--warning);      background: rgba(255,183,77,0.10); }
.anc-reader-meta .anc-badge.pin {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #1a1a1a;
    border-color: transparent;
    font-weight: 700;
}

.anc-reader-title {
    font-size: 26px;
    color: var(--gold-primary);
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.4;
    margin: 0;
}

.anc-reader-summary {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.anc-reader-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 2.1;
    letter-spacing: 0.3px;
}
.anc-reader-content p {
    margin: 0 0 18px 0;
}
.anc-reader-content p:last-child { margin-bottom: 0; }
.anc-reader-content strong {
    color: var(--gold-primary);
    font-weight: 600;
}

/* 正文内图片（Markdown 语法渲染出来） */
.anc-reader-content .anc-img-wrap {
    margin: 22px 0;
    text-align: center;
}
.anc-reader-content .anc-img-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: block;
    margin: 0 auto;
}

.anc-reader-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .anc-layout {
        flex-direction: column;
        padding: 0 14px;
        margin-top: 16px;
    }
    .anc-side {
        width: 100%;
        position: static;
        max-height: none;
        padding: 16px 14px;
    }
    .anc-reader {
        padding: 26px 20px 32px;
        border-radius: var(--radius-md);
    }
    .anc-reader-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    .anc-reader-content {
        font-size: 14.5px;
        line-height: 2;
    }
}

/* ===== 公告底部评论区 ===== */
.anc-reader-comments {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}
.anc-comments-title {
    font-size: 15px;
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    padding-left: 10px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

