/* 公告弹窗样式 */
#announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none;
}

#announcement-popup .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

#announcement-popup .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); */
    background: #111;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
}

#announcement-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#announcement-popup .popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

#announcement-popup .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#announcement-popup .close-btn:hover {
    opacity: 1;
}

#announcement-popup .save-address-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 5px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

#announcement-popup .save-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#announcement-popup .email-section {
    /* background: rgba(255, 255, 255, 0.1); */
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#announcement-popup .email-label {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

#announcement-popup .email-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#announcement-popup .email-primary {
    /* color: #ff4444; */
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}

#announcement-popup .email-note {
    /* color: #ccc; */
    color: #eee;
    font-size: 13px;
}

#announcement-popup .address-section {
    margin-bottom: 10px;
}

#announcement-popup .address-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
}

#announcement-popup .address-label {
    color: #aaa;
    min-width: 80px;
}

#announcement-popup .address-link {
    color: #4a9eff;
    text-decoration: none;
    word-break: break-all;
}

#announcement-popup .address-link:hover {
    text-decoration: underline;
}

#announcement-popup .warning-text {
    color: #ff4444;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

#announcement-popup .highlight-box {
    /* background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%); */
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
}

#announcement-popup .highlight-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 500;
}

#announcement-popup .highlight-link:last-child {
    margin-bottom: 0;
}

#announcement-popup .button-group {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

#announcement-popup .action-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

#announcement-popup .action-btn:hover {
    transform: translateY(-2px);
}

#announcement-popup .btn-community {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

#announcement-popup .btn-vpn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
}

#announcement-popup .btn-close {
    /* background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); */
    background: #fee140;
    color: #fff;
}
#announcement-popup .color-fff{
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #announcement-popup .popup-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #announcement-popup .popup-title {
        font-size: 16px;
    }

    #announcement-popup .address-item {
        flex-direction: column;
        align-items: flex-start;
    }

    #announcement-popup .address-label {
        min-width: auto;
    }
}
