/* ========================================
   公告弹窗样式 — announce.js 专用
   ======================================== */

/* Overlay */
.announce-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* Modal box */
.announce-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 85vh;
    overflow-y: auto;
}

/* Header */
.announce-header {
    text-align: center;
    margin-bottom: 18px;
}

.announce-header-icon {
    font-size: 2.2rem;
    margin-bottom: 2px;
}

.announce-header-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}

.announce-header-version {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Update list */
.announce-updates {
    margin-bottom: 18px;
}

.announce-updates-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.announce-update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announce-update-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

.announce-update-item:last-child {
    border-bottom: none;
}

.announce-update-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #fff;
    margin-top: 1px;
}

.announce-update-icon--new {
    background: #2563eb;
}

.announce-update-icon--fix {
    background: #16a34a;
}

.announce-update-icon--opt {
    background: #8b5cf6;
}

/* QQ group section */
.announce-qq-section {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.announce-qq-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2px;
}

.announce-qq-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.announce-qq-group-name {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
}

.announce-qq-group-name span {
    color: #2563eb;
}

.announce-qq-link-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
    box-sizing: border-box;
    text-align: center;
}

.announce-qq-link-btn:hover {
    background: #1d4ed8;
}

.announce-qq-qr-fallback {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #bfdbfe;
}

.announce-qq-qr-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 6px;
}

.announce-qq-qr-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

/* Action row */
.announce-actions {
    display: flex;
    gap: 8px;
}

.announce-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.announce-btn--primary {
    background: #2563eb;
    color: #fff;
}

.announce-btn--primary:hover {
    background: #1d4ed8;
}

.announce-btn--secondary {
    background: #f1f5f9;
    color: #475569;
}

.announce-btn--secondary:hover {
    background: #e2e8f0;
}

/* Nav link */
.announce-nav-link {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s;
}

.announce-nav-link:hover {
    color: #1d4ed8;
}

/* ===== 公告历史卡片（列表页） ===== */
.announce-history-card {
    padding: 24px 20px;
    margin-bottom: 16px;
}
.announce-history-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.announce-history-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}
.announce-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
}
.announce-history-version {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.announce-history-date {
    color: #94a3b8;
}

/* ===== 弹窗底部链接 ===== */
.announce-footer-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.announce-footer-link:hover {
    background: #eff6ff;
}

/* Responsive */
@media (max-width: 380px) {
    .announce-modal {
        padding: 22px 16px 16px;
    }
    .announce-actions {
        flex-direction: column;
    }
    .announce-qq-qr-img {
        width: 100px;
        height: 100px;
    }
}
