/* 公告弹窗样式 */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.announcement-modal {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.announcement-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.announcement-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    color: #666;
}

.announcement-content {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.announcement-content::-webkit-scrollbar {
    width: 6px;
}

.announcement-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.announcement-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.announcement-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.announcement-content-login {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.announcement-content-login::-webkit-scrollbar {
    width: 6px;
}

.announcement-content-login::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.announcement-content-login::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.announcement-content-login::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.confirm-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.reading-tip {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.reading-tip.completed {
    color: #00aa66;
}

.no-show-again {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.no-show-again input[type="checkbox"] {
    margin: 0;
}

.announcement-confirm {
    background-color: rgb(0, 170, 166);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.announcement-confirm:hover:not(:disabled) {
    background-color: rgb(0, 150, 146);
}

.announcement-confirm:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}